Bullish Germany beat Spain 2-0 to roll into the quarter-finals
Spain, who had hoped for an historic first win over Germany, enjoyed far more of the ball but lacked the final touch against opponents who pressed hard and were quick to seize their chances.
Germany were gifted a goal in the third minute after a blunder by Spain goalkeeper Sandra Panos, whose attempted clearance went straight to Klara Buhl for her to slot home.
Forward Lucia Garcia then had a chance to equalise in the 10th but, after going around keeper Merle Frohms, her shot went into the side netting.
Alexandra Popp, making her first start after striker Lea Schuller tested positive for COVID-19 the day before, doubled the tally for Germany in the 37th minute with a flicked header off a corner.
Frohms made a great fingertip save in the 71st minute from a Mariona Caldentay volley, her only big moment of the night, and Tabea Wassmuth had the ball in the back of the net with nine minutes to play, but was clearly offside.
Both sides had scored four in their opening group games and drew 1-1 on their last meeting in February in the Arnold Clark Cup at Middlesbrough's Riverside stadium.
The defeat in front of a 16,000-strong crowd left Spain level on three points with Denmark, who beat Finland 1-0 earlier, but ahead on goal difference. Germany have yet to concede a goal and are on maximum points.
Pernille Harder scored the only goal of the game for Denmark in an encounter that sees Finland needing a win in their last game of the group stage to have any chance of reaching the knockout rounds.