In a 3 way tie atop Group B with 6 points each this is how it looks.
First tiebreaker. They'd all have gotten 3 points from each other so we go to breaker #2.
Goal difference in games against teams tied.
Germany +1
Portugal +/-0
Denmark -1
So if Denmark beats Germany by 2. 2-0, 3-1...whatever.
Denmark +1
Portugal +/-0
Germany -1
Denmark and Portugal advance.
If Denmark beats Germany by 1...they're all even at +/-0 and we go to the third breaker.
Goals scored in games against those which are tied.
Portugal 3
Denmark 2
Germany 1
So if Germany loses they'd have to lose and score 2 goals in the process(4-2) to get tied with Portugal. Which I'd assume then they're head to head win would put them in ahead of them at this point but I'm not sure regarding that detail.
Denmark 4
Germany 3
Portugal 3
Next breaker after that if Germany's h2h win over Portugal isn't factored is GD in all group matches. They're currently +2 while Portugal is even.
Germany has a lot to play for still. They're not in even with a win today.