The leader of Germany’s CDU said the far-right AfD’s growing support is the “last warning” for mainstream parties.