Germany maintained their 100 percent record at Euro 2012 to secure their place in the quarter-finals, courtesy of a 2-1 victory over Denmark.
Germany looked to be cruising to get at least the point they would need as Lukas Podolski put them in front in the first 20 minutes. But Denmark was not to go down lightly and equalized almost immediately from Michael Krohn-Dehli's second goal of the competition.
After surviving a couple of second-half scares, Joachim Low's side sealed their progress as Group B winners courtesy of Lars Bender's 80th minute strike. After topping Group B, Germany now await a quarter-final tie with Greece.
The Danes would have been disappointed with the simplicity of Germany's opener as Thomas Muller was allowed to receive the ball in the area from a throw-in and turn toward the touchline far too easily. The Bayern Munich man's ball across goal eluded Mario Gomez at the near post but fell kindly to Podolski who powered the ball home with his right foot. The goal being especially meaningful for the new Arsenal signing as it came on the occasion of his 100th appearance for his country.
But just five minutes later the Danes, who fought admirably throughout the competition, despite being drawn in the toughest of groups, were back on level terms. Nicklas Bendtner headed a deep Lars Jacobsen back into the danger zone and Krohn-Dehli rose highest to nod the ball into the back of the net from six yards.
And the Danes will perhaps feel aggrieved that they didn't get a winner in the second half that would have sent them through. Jakob Poulsen spurned a great chance as he shot wide at the near post, following Bendtner's knock back to the edge of the area.
The Arsenal striker was involved again as a long ball came over the top and Bendtner got the edge on Holger Badstuber before the German defender tugged his man back to prevent him getting meaningful contact on the ball. To Bendtner's consternation, the referee neither gave a penalty or the red card that would surely have had to follow.
Just four minutes later Germany rubbed salt into the wounds with a late winner. Mesut Ozil broke free through the middle and put a low ball into the area that Bender arrived on the end of at the back post to side foot back across Stephan Andersen and calm German nerves.