Those games leave the group finely balanced ahead of the final round of fixtures: having lost their opening game to France and also gone behind to Portugal, Germany looked in real trouble – but they will now fancy their chances of finishing top given they face Hungary, while Portugal and France will battle it out.
Here is how things stand in the group, and the permutations for all four teams to qualify for the knockouts…
Remaining fixtures (Wednesday, June 23)
8pm: Germany vs Hungary, Munich
8pm: Portugal vs France, Budapest
The world champions will progress if they avoid defeat against Portugal, or if Germany and Hungary draw.
Les Bleus will finish top with a win, or with a draw providing Germany fail to beat Hungary.
However, if France lose and Hungary win, positions will come down to goal difference.
The 2014 World Cup winners are through if they beat Hungary, or if they draw and France prevent Portugal winning.
Top spot is theirs if they win and France fail to do so. However, Germany would finish third if they draw and France lose, or if they lose along with Portugal.
The holders will qualify for the knockouts by beating France, or with a draw coupled with a Hungary win.
Top spot is possible with a victory providing Germany fail to win.
Meanwhile, Portugal could crash out if they lose to France and Hungary also beat Germany.
They are still in this, and will finish second if they win and France beat Portugal. Second would be decided on goal difference if they win and France lose.
Third is on if they win and France and Portugal also draw.