Germany advanced to the quarter-finals as defender Lars Bender scored his first international goal to seal their 2-1 win over Denmark which put the Danes out.
The Germans will now play Friday's quarter-final against Group A runners-up Greece in Gdansk, their Euro 2012 base, while Portugal -- who finished second in Group B -- will play the Group A winners the Czech Republic in Warsaw on Thursday.
Lukas Podolski, who was making his 100th appearance for Germany, celebrated his century with the opening goal on 19 minutes which was cancelled out by a Michael Krohn-Dehli just five minutes later before Bender's late winner.
German midfielder Lars Bender celebrates after scoring a goal during the Euro 2012 football championships match Denmark vs. Germany, on June 17, 2012 at the Arena Lviv in Lviv. AFP PHOTO / JEFF PACHOUD