Not following what you mean here as I am unfamiliar with Germany’s justice system, but how would a judge be democratic? Criminal trials having the whole country vote on what the individual result would be? Or are you saying they democratically voted for free speech, and this judgement did not follow that?
I would say this is consistent with Germany’s rules about not having Nazi emblems, which would also be against free speech one could argue.
Unfortunately I don’t think you can easily write a law that said, ban people calling for violence against people do to their race, gender, nationality, or other discriminating factor, except when we don’t want it too.