How Putin’s war, economic struggles, and migration issues led to an electoral swerve in Germany