The rest of europe isn't in the same boat. Denmark and now Sweden have been able to bridge the divides by capitulating on the pro-immigration stance:
https://www.politico.eu/article/denmark-migration-eu-parliam.... If CDU were to give up the immigration issue and absorb the AfD defectors, it likely would be able to form a governing majority.