They thought they could win elections calling everyone a racist who disagreed.
That strategy didn't work.
The problems with immigrants are largely exaggerated.
The regions that see the biggest problem in immigration have the fewest immigrants.
Just ask german hospitals what would happen without Syrian personnel.
The answer is that parts of the country that have enjoyed homogeneity the longest are the most upset about having that homogeneity violated. If one lives in Berlin, which has been heteregenous for a long time, the introduction of mass migration was less upsetting. If one lives in a village or small city that was 100% German for a long time, and now has the pleasure of “welcoming” strangers with a higher crime rate, alien social customs, and different appearance—your response is different.
Funny you're mentioning that, because personnel from german hospitals is complaining about the behaviour of clients from that, and neighboring regions.
As do general medical practitioners, or EMTs.