That is the nature of western democracy where no political party is equiped with a full package solution for the country in a long run, everybody is fighting for a short term rule and will find friend of convinience for that purpose. The current ruling traffic-light coalition is a wired mixed bag as much as AfD.
Because of this, I don't really think any of them have a true commitment to any values, they will adapt to the need to stay in the game of power. What actually differs AfD from the main-stream parties is that they care more of solid matters inside the country, instead of "democrazy adventures".
BTW, I am skeptical of MSM labeling "racist" or "radical" on a large party who represents a large chunk of population. A few nut head racists are there in AfD, but also many inside the mainstream parties. For one, keeping the border closed to any foreigners except tourists, students, skilled workers and business people is a common practice all over the world. If AfD is "racist" for that, everybody is. If AfD want to keep the door shut to refugees, it is the right of the citizens, afterall, charity is kindness but not obligation. The western liberals have been doing moral hijacking, blackmailing and concept manipulation for the past many decades both domestically and internationally. China and Chinese have fall victim of such attacks, so I will give AfD a pass for the moment.