Five hundred people were arrested in Germany after violent clashes broke out, authorities said.