It's a private service; private companies can choose whoever they want to do business with. They're not a public service.
I imagine the laws in Germany are similar to the laws in Poland in that regard, both countries being in the European Union.
In USA, I really doubt any company could refuse to serve black people. Or women.
I wonder if the downvoters of my previous message share your (I'd say quite wrong) opinion or there's another reason for the downvotes - I'm up for a discussion!
protected factors are: race or ethnic background, gender, religion or belief, disability, age, or sexual orientation.
belief has a very high bar to meet, you are for example still allowed to discriminate against members of a political party.
discriminating based on location matching ip adress or not doing business with certain countrys is fully legal