A residence permit is generally required to take up gainful employment in Germany. Such a permit can be applied for in various circumstances.