/* imbg: Ausgleich für das geänderte Markup von Contao 5 gegenüber 3.5.
   gmBasic.css bleibt unverändert; diese Datei wird danach geladen. */

/* Aktive Seite: Contao 5 gibt <strong> statt <span> aus. */
#header .mod_navigation strong.active { font-weight: bold; font-size: 14px; color: #666666; }
#left .mod_navigation strong.active   { font-weight: bold; font-size: 13px; color: #666666; }

/* Bildabstand (Feld imagemargin) gibt Contao 5 nicht mehr aus. Werte wie live. */
.ce_text.team.media--right > figure { margin: 0 0 0 30px; }

/* Formulare: Contao 3.5 setzte sie als Tabelle (Bezeichnung links, Feld rechts,
   Erläuterungen über beide Spalten, td { padding: 3px; vertical-align: text-bottom }).
   Contao 5 kennt kein Tabellenlayout mehr; hier per Grid nachgebaut. */
.formbody { display: grid; grid-template-columns: max-content auto; }
.formbody > .widget { display: contents; }
.formbody > .widget > label { grid-column: 1; align-self: end; margin: 0; padding: 3px 3px 5px; font-weight: normal; }
.formbody > .widget > input,
.formbody > .widget > textarea,
.formbody > .widget > select,
.formbody > .widget > button { grid-column: 2; justify-self: start; margin: 3px 3px 5px; }
.formbody > .widget > fieldset { grid-column: 2; justify-self: start; margin: 15px 3px 27px; }
.formbody > .widget-explanation > * { grid-column: 1 / -1; padding: 3px; }
.formbody > .widget-explanation > h3 { margin: 23px 3px 13px; padding: 0; border-bottom: 1px solid #cccccc; }

/* Akkordeon: Contao 5 nutzt <section> statt <div>; Regel aus gmBasic.css (div.ce_accordion.block) übertragen. */
section.ce_accordion.block {
	padding: 10px 10px 10px 10px;
	background-color: #f8f8f8;
	margin-bottom: 5px;
	border: 1px solid #cccccc;
}

/* Terminliste: Contao 5 setzt keine Klassen first/last mehr (gmBasic.css: div.mod_eventlist div.header.first). */
div.mod_eventlist > div.header:first-of-type {
	border-top: 1px solid #cccccc;
	padding: 7px 0px 0px 0px;
}

/* Suchformular (Seite „Suchen“): wie 3.5 Feld und Schaltfläche in einer Zeile. */
.mod_search .formbody { display: block; }
.mod_search .formbody > .widget { display: inline; margin: 0; }
.mod_search .formbody > .widget > input,
.mod_search .formbody > .widget > button { margin: 0; }

/* Formular-Feinheiten wie Tabellenlayout 3.5: Abstand unter der Tabelle (reset.css: table { margin-bottom: 12px }),
   Textfeld mit Unterlänge der Tabellenzeile. */
.formbody { margin-bottom: 12px; }
.formbody > .widget > textarea { margin-bottom: 8px; }
.formbody > .widget-textarea > label { padding-bottom: 2px; }

/* Rechte Terminliste: letzter Eintrag ohne Linie (gmBasic.css: #right .event.last). */
#right .event:last-of-type { border-bottom: 0px; }
