Yes, you need to apply for a Transit Visa even if you just have a layover at the German airport.