AfD politics violate the constitution in numerous ways, and the German institute for human rights says the party could be banned:
https://www.euronews.com/2023/06/14/should-germany-ban-afd-what-impact-could-this-have
Politically, it’s of course a risky maneuver, but the correct one if you ask me.