Freiburg suffer Europa League hangover in loss vs. Hamburg
Bakery Jatta, Luka Vuskovic and Fabio Balde scored as promoted Hamburg celebrated securing top-flight status for next season by beating Europa League finalists Freiburg 3-2 at home on Sunday.
Hamburg, who returned to the Bundesliga after seven seasons in the second division this campaign, officially beat the drop last week with a big win over Eintracht Frankfurt.
The 1983 European Cup winners were in fine form again to defeat Freiburg, who scored two goals through Igor Matanovic.
Freiburg could have secured a European spot with victory but will reach the Champions League and win a first major trophy in the club's history if they beat Aston Villa in Istanbul on May 20.
With 14 minutes gone, Jatta opened the scoring with his first Bundesliga goal after decade at the club, but Matanovic struck back two minutes later.
Tottenham loanee Vuskovic, 19, returning to the starting XI for the first time since early April, put Hamburg ahead again with his sixth goal of the season, before Balde added another.
Matanovic scored with three minutes remaining but Hamburg held on for a ninth win of the season.
Elsewhere, Heidenheim continued their late-season resurgence against the drop, winning 3-1 at Koln thanks to a brace from Jan Schoppner and an Arijon Ibrahimovic goal.
Stranded in the Bundesliga basement for much of the season, Heidenheim have lost just one of their past seven.
The win took them to 17th spot, level with 16th-placed Wolfsburg and 18th-placed St Pauli, who play each other in the season's final match next week.
In the Bundesliga, the team in 16th plays a two-legged relegation play-off against the third-placed second division side, while teams 17th and 18th are relegated.