Termin am Schönenwerd, Stiftskirche St. Leodegar