I live partially in Germany and Portugal, as I have roots in both country. You are right, the average salaries are a joke and the living costs are sky rocketing. However, you have a great and stable society, a really specific market, good universities and sometimes I think what is missing is initiative. The young people prefer to go abroad than try to innovate in Portugal. For example, almost all disrupting startups in Portugal are lead by Brazilians. Sometimes I have the impression that we all forgot about our resilience (well described by Camoes and Pessoa).
To all my Portuguese friends:
"Viver não é necessário. Necessário é criar."
Fernando Pessoa