German chancellor power is at risk after another defeat to AfD.