The Alternative for Germany built its nationwide constituency through relentless opposition to immigration, nativist appeal, and efforts to relativize Germany’s Nazi past.