BERLIN (AP) -- Fortuna Dusseldorf stunned Leipzig with two late goals to draw 2-2 in the Bundesliga on Wednesday and boost its hopes of avoiding relegation.
Two goals in three minutes from Kevin Kampl and Timo Werner had Leipzig on course to consolidate third place and all but secure a place in the Champions League. But Steven Skrzybski netted in the 87th minute and Andre Hoffmann equalized in injury time to lift Dusseldorf out of an automatic relegation place with two rounds of the season remaining.
Leipzig would have been six points clear of fifth-place Borussia Monchengladbach with a vastly superior goal difference, but now the gap is four points. The top four qualify for the Champions League.
Second-place Borussia Dortmund, which has already booked a place in Europe's premier competition, slumped to a 2-0 loss at home to Mainz.
That means Dortmund is just three points clear of Leipzig with its second place under threat ahead of a meeting between the two this weekend. Bayern Munich secured its eighth straight Bundesliga title on Tuesday.
Bayer Leverkusen moved fourth, three points behind Leipzig, with a 3-1 win over Rhine rival Cologne.
Schalke lost 2-1 at Eintracht Frankfurt to stretch its club-record winless run to 14 games.
The latest loss was largely self-inflicted. Schalke midfielder Can Bozdogan was sent off in his second league start with his second yellow card in the 77th minute, just before Andre Silva missed a great chance to make it 3-1 to Frankfurt when he only had the goalkeeper to beat.
The home side opened the scoring in the 29th, when Johnjoe Kenny lost the ball in attack to Filip Kostic, who quickly launched a counterattack. Kostic sent through Daichi Kamada, who crossed first time for Silva to score.
David Abraham headed in Kostic's free kick in the 50th, before Weston McKennie pulled one back with a cushioned header to Alessandro Schopf's corner before the hour-mark.
Abraham cleared off the line to deny Schalke an equalizer before Bozdogan was sent off.
Also, Augsburg lost 3-1 at home to Hoffenheim.
More AP soccer: https://apnews.com/Soccer and https://twitter.com/AP-Sports
Ciaran Fahey on Twitter: https://twitter.com/cfaheyAP