Stuttgart scored twice in the final minutes to win 3-1 against Bayern Munich in the German top flight on Saturday, before the Bavarian side faced Real Madrid in a second leg ahead of this week's Champions League final.