Hamburg's dramatic late winner ensured their survival and forced Wolfsburg in the relegation play-offs.