Germany has pretty strict laws and our education system makes sure that you know that Nazis suck. (doesn't work everytime though, look at AfD)
Furthermore:
Volksverhetzung, in English "incitement of the masses", "instigation of the people" (the official English translation of the
German Criminal Code uses "incitement to hatred"
[1][2]), is a concept in German criminal law that refers to incitement to hatred against segments of the population and refers to calls for violent or arbitrary measures against them, including assaults against the human dignity of others by insulting, maliciously maligning, or defaming segments of the population.
[1][2][3]
It is often applied to, though not limited to, trials relating to
Holocaust denial in Germany. The criminal code (
Strafgesetzbuch) Chapter 7 (Offences against public order), Paragraph 130 (Incitement to hatred) of the
Federal Republic of Germany defines when a person is guilty of
Volksverhetzung.
[1][2][3]
(...)
Whosoever, in a manner capable of disturbing the public peace:
(...)
shall be liable to imprisonment from three months to five years.
[1][2]
en.wikipedia.org