Chancellor Olaf Scholz’s Social Democratic Party (SPD) said that the main parties had agreed on the date for a snap election.