I have to say that security at German airports is often painful. In the past 2-3 years I have increased the amount I fly around Europe and generally I have the exact same things in my carry-on for all flights, it's only in Germany where it gets sent for manual inspection 9 out of 10 times while everywhere else including northern, southern and eastern Europe it just sails through. They never find anything but usually decide to do a swab, which is a complete waste of resources.
They also always want to do a pat down, but they always start with "Deutsch? English?" and I have not seen any racism (real or imagined).
One time I got confused because LHR told me to leave my ipad in my bag, then when I was connecting in FRA I left it in, the screener had to call the police, and when I asked him why he said the policeman was his boss and he wasn't allowed to let me take it out of the bag once it had been through the x-ray.