I spent a little bit of time in Germany and I find that Germans are true to their stereotypes. They're straight forward talkers, disciplined, punctual and very law abiding. Even Pakistanis in Germany have seemed to picked up on these traits.
Maybe what you experienced as racism could be an incident of something else i.e. the other person getting offended due to some silly rule?
Just to give you an example.
I was entering at dusseldorf airport after completing my trip from mexico. Usually there are lines for local Germans and the other line is meant for international/foreign citizens. At that time there was so much rush for the line that was meant for foreign citizens. One of the airport staff was asking if someone had a local resident card so they could stand in other lines meant for German citizens. I showed my resident card and he told me to stand in the line meant for local Germans.
There were two lines/two counters meant for Germans. One line had a lot of Germans and there was another line only myself and there was a german girl. Only two people in total. That girl went to the counter and when my number came that German immigration officer told me to STAY BACK and then He CLOSED OFF his counter and went away. I felt ashamed and looked at other Germans who were standing in the other line. They pretended like nothign happened.
Then I stood up in another line meant for Germans. When my number came and reached to the counter. There was a Turkish guy standing near to teh country and was out of line. That German immigration officer pushed me back and handled that Turkish guy first.
Again I looked at the Germans who stood up in the line. No reaction came from not one person.
I still did not change my line because of their behavior. I went to the counter again this time he could not close off his counter because behind me there were quite a few Gemans left. So I passed by the counter.
When I visit local shopping mall when I pay by my debit card they ask for my identity card and literally match my name written on the debit card with that of my name written on the identiity card. However German customers are not asked for that sort of thing.
One day at my german university medics with ambulance comes for blood donation. Out of courtesy I went to them for donating my blood. However they showed me the list of countries citizens from these countries could not donate blood. for example, Pakistan, India, Bangladesh, and some african countries.
when i go to local REWE grocery store when i have put stuff on the belt when my number comes, the germany lady asks me in German " Did I buy all of these stuff by myself?"
I was at the post office and need to attach my documents with a stapler. It was on a nearby table. The postman was busy handling other customers so I went to the table and come to my table for attaching my documents. Their was a German lady nearby said to the postman guy that I stole teh stapler and that postman came running towards me. What happened to him. Well, If steal a staple by comign to Germany shame on me, like western politicians I have high standards, I will at least go for OIL if not OIL definitely huge amount of money.
deep down all I want to say "read your bloody black history then JUDGE other CITIZENS from underdeveloped countries."
I do not see any rule whatsoever in such incidents. It is a myth that there is no corruption in German society. Minister of Education in Germany had a FAKE PHD. Just imagine for a second minister of education.