By David Ljunggren
LVIV (Reuters) - German defender Lars Bender scored a late goal to give Germany a workmanlike 2-1 win over Denmark on Sunday and secure top spot in Euro 2012 Group B.
Germany, who looked comfortable throughout and finished with the maximum nine points, will play Greece, runners-up in Group A, in the quarter-finals.
Denmark failed to qualify, losing out to Portugal who beat the Netherlands 2-1 and will meet the Czech Republic in the last eight.
Bender benefited from poor Danish defending to run on to a pass from Mesut Ozil and calmly slot home from close range in the 80th minute.
Lukas Podolski scored his 44th international goal in his 100th match in the 19th minute, smacking the ball into the net after a cross hit the boot of team mate Mario Gomez fell perfectly into his path some 10 meters out.
Michael Krohn-Dehli leveled for Denmark in the 24th minute with his second goal of the tournament, nodding in unmarked after German defender Mats Hummels failed to cut out a header into the danger zone from Nicklas Bendtner.
The Danes, who needed to win to go through, could have taken the lead in the 51st minute but Jakob Poulsen shaved the post from 10 meters after great set-up play from Bendtner, who was one of Denmark's best players in the tournament.
Denmark did little else to threaten the German goal and could easily have lost had Podolski, Thomas Mueller and in particular Sami Khedira converted presentable first-half chances.
Man-of-the-match Podolski, 27, became the youngest European player to win 100 caps for his country.
Germany had the better of the first half and could have scored in the sixth minute when Mueller scuffed a shot from close range which keeper Stephan Andersen had to scramble to save.
(Editing by Ed Osmond)
(c) Copyright Thomson Reuters 2012. Check for restrictions at: http://about.reuters.com/fulllegal.asp