Second division leaders Darmstadt 98 edged past Magdeburg 1-0 on Friday to secure their return to the Bundesliga after six years with a match to spare.
Darmstadt top scorer Phillip Tietz (25) slotted in the 36th-minute winner following a VAR review to lift his team to 67 points, with one game left to play.
Heidenheim, in second place on 61, face Sandhausen on Saturday, while third-placed Hamburg are on 60 with two games left to play.
![Darmstadt's fans celebrate on the pitch Darmstadt's fans celebrate on the pitch](https://livesport-ott-images.ssl.cdn.cra.cz/r900xfq60/4bc5ee4d-a6e7-4f8c-8d7a-d1c4d5df130d.jpg)
The top two teams win automatic promotion while the third team goes into a play-off with the 16th-placed Bundesliga team.