this is basically a massive headache.
germany (6) -- win or draw to win group. loss and portugal win they are out.
portugal (3) -- win they are likely in, unless germany passes them on goals scored in a denmark win. draw they are in unless denmark wins. 1 goal loss they are in if denmark loses. multi goal loss they are out.
denmark (3) -- win they are in. a draw and portugal loss they are runner up. a draw and portugal win they are out. a loss they are out.
holland (0) -- need to win by more then one goal and germany to win.