lars bender struck ten minutes from time as joachim löw's men set up a quarter-final against greece and sent the danes out of the tournament.
lars bender struck an 80th-minute winner as germany secured progress to the uefa euro 2012 knockout stage as group b winners at denmark's expense in a game they dominated but were never allowed a firm grip on.
right-back bender, only playing because of jérôme boateng's suspension, ghosted inside on the counterattack and drilled in when mesut özil's pass, intended for mario gomez, found him ten metres out. a 2-1 victory was little more than germany's possession merited but the script was in danger of being torn up when michael krohn-dehli cancelled out a 19th-minute opener from lukas podolski, on his 100th international appearance.
at 1-1, germany's position was always precarious, and jakob poulsen hit the post soon after half-time with a crisp, low effort. yet when denmark, needing a win as portugal were on course to beat the netherlands in kharkiv, finally committed men forward bender struck almost immediately. it means germany go on to gdansk, where they will meet greece on friday; denmark return home beaten but not bowed.
germany went into the game in rude health and were soon probing with purpose and suffocating what little possession denmark had. they ought to have been ahead on six minutes after özil and podolski combined to carve out a chance for the unmarked thomas müller, just five metres out. the winger's scuffed effort gave stephan andersen just enough of a sniff to pull off an impressive save.
it set the tone as time and again the cute passes of özil and sami khedira dazzled the static danish back line. a goal seemed a matter of time. it was, of course, a similar story in the euro '92 final before john jensen delivered an almighty sucker punch that germany never recovered from. this was not a case of history repeated, and around the time jensen was being mobbed in gothenburg two decades ago, podolski broke the deadlock.
a throw on the right did not appear to pose a threat but müller was allowed to turn in the box and fire in a low cross that gomez deflected into podolski's unguarded path. the arsenal fc man needed no invitation.
the situation looked grave for denmark but, within five minutes, they were level. nicklas bendtner caused problems all evening, and he rose imperiously on the edge of the box to head christian eriksen's corner into the danger zone, where krohn-dehli was on hand to nod in. it was all so simple; surely too simple for joachim löw, who sprang into action in his technical area.
his side immediately reasserted themselves, yet gradually the gaping holes they had earlier exposed with such ease were plugged. germany continued to dominate possession, though – there were three times as many of their fans as danes at the arena lviv and on occasions morten olsen's team seemed similarly outnumbered on the pitch. gone, though, was the penetration.
manuel neuer cut a lonely figure in the germany goal all the same, and although jakob poulsen gave him a scare, there was little else to trouble him before bender settled any lingering doubts with his first international goal.