BERLIN (AP) -- Bayer Leverkusen ended Bayern Munich's record start to the Bundesliga season by snatching a late 2-1 win on Sunday.
Sidney Sam's 87th-minute goal gave Leverkusen its first victory in Munich for 23 years, and put an end to Bayern's eight-game winning start in the league.
"The win won't throw us off,'' said Bayern coach Jupp Heynckes, who previously coached Leverkusen. "We'll have to learn our lessons from it though.''
Bayern defender Jerome Boateng deflected the ball past his helpless goalkeeper after being struck in the face by Sam's header from Gonzalo Castro's cross. The goal was awarded to the Leverkusen winger.
Stefan Kiessling opened the scoring for Leverkusen in the 42nd minute. Retreating Bayern defender Philipp Lahm could only help on Andre Schuerrle's cross, ricocheting off the striker's shin beyond goalkeeper Manuel Neuer. It was Leverkusen's first shot on goal.
Mario Mandzukic briefly pulled the home side level with his league-leading eighth goal of the season in the 78th after being set up by substitute Claudio Pizarro.
Not long after, Mandzukic deflected Pizarro's shot onto the right post as Bayern desperately sought the winning goal.
"We've put down a marker, we're on the right path,'' said Leverkusen joint-coach Sascha Lewandowski, who acknowledged there was "a bit of luck involved.''
It was Bayern's first defeat at home since a 1-0 loss to Borussia Dortmund in November 2011.
Meanwhile, Borussia Moenchengladbach scored three goals in nine minutes to come from behind and win 3-2 In Hannover.
"It can happy quickly in football,'' said Moenchengladbach coach Lucien Favre, whose side ended Hannover's 22-game unbeaten run at home. Moenchengladbach also won on the previous occasion.
Former Moenchengladbach player Jan Schlaudraff scored first in the 48th as the visiting defenders backed off, unleashing a fine shot from outside the penalty area that Marc-Andre Ter Stegen could only get a hand to.
Mame Biram Diouf made it 2-0 in an unconventional manner five minutes later, meeting Konstantin Rausch's low cross with his calf as he fell to send it over the line.
The visitors' unlikely comeback began in the 70th, when Alvaro Dominguez scored from a rebound after Ron-Robert Zieler had saved Juan Arango's initial effort.
Roel Brouwers was unmarked to equalize with a header from Arango's free kick seven minutes later.
Arango, whose penalty appeals in the first half were waved away, fittingly scored the winner two minutes after that, surprising Zieler at the near post with a perfect free kick.
"We were too naive,'' Hannover coach Mirko Slomka said. "It's annoying.''
Earlier Sunday, Stuttgart beat high-flying Eintracht Frankfurt 2-1 to claim its first home win in the Bundesliga.
"A draw would have been a fair result,'' said Frankfurt coach Armin Veh, who coached Stuttgart to the title in 2007.
Christian Gentner opened the scoring in the seventh minute when Anderson's attempted clearance fell kindly for the midfielder to shoot through the goalkeeper's legs.
Alexander Meier equalized in the 67th, when he received Stefan Aigner's pass on the left, looked up, and curled an unstoppable effort inside the far post.
Vedad Ibisevic scored the winning goal with six minutes remaining, rising high to head Gentner's cross to the far corner, two minutes after he'd had a goal ruled out for offside.
"Football is just awesome when you win,'' Stuttgart coach Bruno Labbadia said.
Stuttgart goalkeeper Sven Ulreich produced a fine save to deny Karim Matmour a late equalizer in the third minute of injury time, four minutes after the midfielder had another effort ruled offside.
"The equalizer was fair. Everyone except the linesman saw that,'' Veh said "It's not the end of the world however.''