The hosts staged put in a superb performance to come from behind and beat Dortmund for the first time in four years.