Incumbent CDU performed worse than expected, leaving AfD just three seats short of a majority