The Hamburg state election was overshadowed by the Thuringia government crisis, the resignation of Annegret Kramp-Karrenbauer as federal CDU leader, and a terrorist attack targeting immigrants in Hanau which took place four days before the election.