A man was seriously injured in Germany after losing control of his car - and ending up in the roof of a church.