mario gomez's second-half header was enough to earn joachim löw's men maximum points from a tight encounter in lviv.
mario gomez's second-half header earned germany the spoils in a tense uefa euro 2012 group b opener, but portugal pushed them all the way in lviv.
starved of supply all evening, gomez feasted when sami khedira's delicious deflected cross found him five metres out, nodding it back across rui patrício. there were still 17 minutes remaining, enough time for portugal, who had struck the bar through pepe before the interval, to lay siege to the german goal. they almost broke through the barricades, too, when two minutes from time substitute silvestre varela found space at the far post – only manuel neuer's quick interventions kept it 1-0.
caution had been the watchword in the early stages, with both teams content to sit back and invite the opposition to come forward and let their guards down. not that it was all about soaking up the blows as one by one players had a jab, searching for a weakness. fábio coentrão almost found it when he drifted into a central position early on but, as he sought to punch the ball through to hélder postiga, mats hummels blocked well.
if that meant swift involvement in the game for the centre-back, germany's other surprise starter gomez, preferred to birthday boy miroslav klose, would have to wait rather longer after an opportunist early header. it was lukas podolski, playing on the left, who posed the biggest threat as he drew on his attacking wiles to twice lose his marker even if his finishing belied a man with 43 goals in 98 international appearances.
germany were gaining the upper hand, but on the cusp of half-time portugal almost conjured up an almighty sucker punch. cristiano ronaldo's corner from the left looked innocuous enough but the half-clearance fell straight to pepe. the defender cushioned the ball beautifully, set himself and fired in a shot that hit the crossbar, bounced on the line and away to safety. the half-time whistle promptly blew and the players walked off to madness's one step beyond – how portugal wished pepe's effort was.
germany had 15 minutes to dust themselves off and they came out for the second round all guns blazing. it took desperate last-ditch blocks from coentrão and raul meireles to deny them inside the first minute, but the game soon reverted to type. neither midfield was able to really take the initiative, and though khedira perhaps had most success, his slack pass almost cost germany.
the ball was quickly fed to joão moutinho and he delivered a sumptuous pass into the path of ronaldo. the portugal skipper shaped to shoot but, from nowhere, the excellent jérôme boateng slid in with the timeliest of interventions. ten minutes later gomez turned near despair into triumph and germany will go into wednesday's meeting against the netherlands with a quarter-final place almost in sight. portugal have it all to do on their return here to face denmark.