Bayern Munich's Joshua Zirkzee and Serge Gnabry scored stoppage-time goals to give the Bundesliga champions a 3-1 win at Freiburg on Wednesday, while Borussia Moenchengladbach joined RB Leipzig at the top of the table with a 2-0 win over Paderborn.
Bayern, who moved up to third in the table, got off to a strong start, hitting the post through Thomas Mueller before Robert Lewandowski's 19th league goal of the season gave them the lead in the 16th minute.
Freiburg, however, gradually gained control of the midfield, attacking with greater ease as the Bavarians were punished once more for their complacency.
Vincenzo Grifo volleyed in to level on the hour, completing a superb attacking move from the hosts, who missed several more scoring chances as the Bayern defence looked shaky.
Late substitute Zirkzee, the 18-year-old Dutch youth international, then slipped into the box and slotted in from close range before Gnabry added another.
Bayern are third on 30 points, ahead of fourth-placed Borussia Dortmund on goal difference.
Second-half goals from Alassane Plea and Lars Stindl gave Glabdach a comfortable 2-0 win over visiting Paderborn and lifted them to 34 points, second on goal difference behind RB Leipzig.