The German constitution allow the legal system to limit the fundamental rights of individuals who are found to be undermining the constitutional order. It can punish people as well as preventing people to form political parties. If the political views are so bad that they are seen as undermining the constitutional order, allowing people to hold those views and express them but not to form parties seems odd and counter-intuitive. If the views are that bad they should not be expressed regardless if its done with or without a party hat.