Its a numbers game. 4 man defense trying to defend attacking wingbacks who push into box, no bueno, especially when you defend so deep and your fullbacks turn into CBs trying to defend the AMs movement. The Germans just feast wide in numbers.
Portugal should had one of the mids covering and becoming almost as CBs, so the fullbacks could focused fully defending the flanks.