The AfD’s record result in Saxony-Anhalt shows how difficult it is becoming for Germany’s mainstream parties to keep the far right out of power, as deeper economic and demographic grievances continue to power its rise.