The city of Berlin on Sunday was holding a court-ordered rerun of a chaotic 2021 state election that was marred by severe glitches at many polling stations that led to hours-long lines as some polling places ran out of ballot papers or received ones for the wrong district.