“The AfD pursues goals that run against the human dignity of certain groups and against democracy,” judges wrote.