Projections in Germany’s closely watched elections Sunday showed the anti-migrant Alternative for Germany (AfD) party leading in one state and running a close second in another, a result that, if confirmed by official tallies, would see a far-right party win a state for the first time in the country’s postwar history.