Original: Until his graduation from gymnasium, Habermas lived in Gummersbach, near Cologne.
Simplified: Habermas lived in Gummersbach, near the city of Cologne until his graduation from gymnasium.