If you need a visa or a residence permit for the entry to Germany depends on you nationality and the purpose of your stay. Get the information early at your German diplomatic representation if you are obligated to apply for a visa. They will also let you know which documents you need for the visa application and a possible residence permit.

German embassies and consulates