Willkommen auf den Seiten des Auswärtigen Amts
Depending on your nationality, you may or may not need a visa to enter Germany.
1) EU nationals do not require a visa to enter the Federal Republic of Germany.
2) Non-EU nationals: Generally speaking, all other foreigners require a visa for stays in Germany. A visa is not required for visits of up to 90 days in an 180‑day period for nationals of those countries for which the European Community has abolished the visa requirement.
Only in exceptional circumstances should nationals of those countries for which the European Community has abolished the visa requirement apply at the German Missions in their countries of origin before entering Germany.
In addition to the Portuguese residence permit, you must carry a valid passport, as well as proof of adequate health insurance (as a rule, the European Health Insurance Card issued by Social Security) .
3) If you are only traveling through Germany and hold a Portuguese residence Card, you do not need a visa.
4) Foreigners intending to stay for more than 90 days in Germany need a Portuguese residence permit (for example, for higher studies, school exchange, language course, family reunion, marriage celebration and subsequent long-term stay).
If you intend to stay longer than three months in Germany, you have to apply for a long-term visa.
Compared to the Schengen Visa there are different requirements for these long-term visas. Most categories of long term visas cannot be issued without the approval of the responsible local Immigration Authority in Germany; the visa can therefore only be issued once the German Embassy has received this approval.
A processing time of several months must be expected.