A residence visa is required if you intend to stay in Germany for more than 90 days for work or study or if you intend to move to Germany permanently.