/* GemS Marpingen – Konzept E · erzeugt aus _icons.css + _haupt.css */
:root {
	--e-i-sport: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 15.5c0-1.6 1-2.6 2.6-2.6L9 8l2.6 1.2.6 2.2 5.8 1.4c1.8.4 3 1.6 3 3.2v1.5H3z'/%3E%3Cpath d='M3 19h18M10.5 12.5l1.2-1M12.5 13.5l1.2-1'/%3E%3C/svg%3E");
	--e-i-foerderung: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='6.5' r='2.5'/%3E%3Ccircle cx='5.5' cy='9' r='2'/%3E%3Ccircle cx='18.5' cy='9' r='2'/%3E%3Cpath d='M8 20v-4.5a4 4 0 0 1 8 0V20M2.5 19v-3a3 3 0 0 1 4.6-2.5M21.5 19v-3a3 3 0 0 0-4.6-2.5'/%3E%3C/svg%3E");
	--e-i-sozial: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7.5-4.4-7.5-10A4.3 4.3 0 0 1 12 7.4 4.3 4.3 0 0 1 19.5 10c0 5.6-7.5 10-7.5 10z'/%3E%3C/svg%3E");
	--e-i-nachhaltig: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19c0-8 5-13 15-14-.6 9.8-5.6 14.5-13.2 14.5'/%3E%3Cpath d='M5 19c3-4 6-6.5 9.5-8.5'/%3E%3C/svg%3E");
	--e-i-termine: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='2'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4M8 14h2M14 14h2M8 17h2'/%3E%3C/svg%3E");
	--e-i-pfeil: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13.5 6.5 19 12l-5.5 5.5'/%3E%3C/svg%3E");
	--e-i-stern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='9' r='5.5'/%3E%3Cpath d='M8.5 13.5 7 21l5-2.5 5 2.5-1.5-7.5'/%3E%3C/svg%3E");
	--e-i-oberstufe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 9 12 4.5 21.5 9 12 13.5z'/%3E%3Cpath d='M6.5 11v4.5c1.7 1.6 3.5 2.3 5.5 2.3s3.8-.7 5.5-2.3V11M21.5 9v5'/%3E%3C/svg%3E");
	--e-i-sprachen: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h10a1.5 1.5 0 0 1 1.5 1.5v5A1.5 1.5 0 0 1 14 13H9l-3.5 3v-3H4a1.5 1.5 0 0 1-1.5-1.5v-5A1.5 1.5 0 0 1 4 5z'/%3E%3Cpath d='M15.5 9H20a1.5 1.5 0 0 1 1.5 1.5v5A1.5 1.5 0 0 1 20 17h-1v3l-3.5-3H11a1.5 1.5 0 0 1-1.5-1.5V15'/%3E%3C/svg%3E");
	--e-i-beruf: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7.5' width='18' height='12' rx='2'/%3E%3Cpath d='M9 7.5V6a1.5 1.5 0 0 1 1.5-1.5h3A1.5 1.5 0 0 1 15 6v1.5M3 12.5h18M10.5 12.5v2h3v-2'/%3E%3C/svg%3E");
}

/* ==========================================================================
   GemS Marpingen – Konzept E (V3.3) · Child-Theme-Gestaltung
   Alle Regeln gelten nur mit der Körperklasse .gems-konzept-e (gesetzt in inc/ausgabe.php)
   bzw. in Editor-Vorschauen über .editor-styles-wrapper.
   ========================================================================== */
:root {
	--e-navy: #18365A;
	--e-navy-tief: #10243D;
	--e-tuerkis: #00D6B8;
	--e-teal: #00756A;
	--e-gelb: #FEF302;
	--e-text: #1F2933;
	--e-leise: #52606D;
	--e-grau: #F4F6F8;
	--e-linie: #D9E0E7;
	--e-breite: 1140px;
	--e-rand: clamp(16px, 4vw, 32px);
	--e-kopf: "Barlow Semi Condensed", "Bahnschrift SemiCondensed", "Arial Narrow", system-ui, sans-serif;
	--e-abschnitt: clamp(64px, 8vw, 112px);
}

/* ---------------------------------------------------------- Grundlagen */
.gems-konzept-e :focus-visible { outline: 3px solid var(--e-gelb); outline-offset: 2px; box-shadow: 0 0 0 5px var(--e-navy); border-radius: 4px; }
.gems-konzept-e .wp-block-heading, .editor-styles-wrapper .wp-block-heading { font-family: var(--e-kopf); }
.gems-konzept-e p a, .gems-konzept-e li a { text-decoration-color: var(--e-tuerkis); text-decoration-thickness: 2px; text-underline-offset: .18em; }
.gems-konzept-e p a:hover, .gems-konzept-e li a:hover { color: var(--e-teal); }

.is-style-e-dach { font-size: .8125rem !important; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--e-teal); margin: 0 0 .6rem !important; }
.e-dach--dunkel { color: var(--e-navy) !important; }
.e-titel { font-size: clamp(2rem, 3.3vw, 2.875rem) !important; margin: 0 0 1.4rem !important; }
.e-titel::after { content: ""; display: block; width: 80px; height: 4px; margin-top: 18px; border-radius: 2px; background: linear-gradient(90deg, var(--e-tuerkis) 0 70%, var(--e-gelb) 70% 100%); }
.e-titel--mitte::after { margin-left: auto; margin-right: auto; }
.e-titel--gross { font-size: clamp(2.25rem, 4vw, 3.25rem) !important; }
.e-lead { font-size: 1.1875rem; color: var(--e-navy); }

/* Knöpfe: Umriss in Teal (Standard über theme.json), Hauptknopf gelb, hell auf Navy */
.gems-konzept-e .wp-block-button .wp-block-button__link { border-radius: 8px; }
.wp-block-button.is-style-e-gelb .wp-block-button__link { background: var(--e-gelb) !important; color: var(--e-navy) !important; border-color: var(--e-gelb) !important; }
.wp-block-button.is-style-e-gelb .wp-block-button__link:hover { background: #fff !important; border-color: #fff !important; }
.wp-block-button.is-style-e-hell .wp-block-button__link { background: transparent !important; color: #fff !important; border-color: #fff !important; padding: .5rem 1rem; font-size: .9375rem; }
.wp-block-button.is-style-e-hell .wp-block-button__link:hover { background: #fff !important; color: var(--e-navy) !important; }

/* Link mit Pfeil */
.is-style-e-pfeil { margin: 0; }
.is-style-e-pfeil a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; color: var(--e-navy); text-decoration: none !important; }
.is-style-e-pfeil a::after { content: ""; width: 20px; height: 20px; background: var(--e-teal); -webkit-mask: var(--e-i-pfeil) center / contain no-repeat; mask: var(--e-i-pfeil) center / contain no-repeat; transition: transform .15s; }
.is-style-e-pfeil a:hover { text-decoration: underline !important; text-decoration-color: var(--e-tuerkis) !important; text-decoration-thickness: 3px !important; }
.is-style-e-pfeil a:hover::after { transform: translateX(3px); }
.e-pfeil--dunkel a::after { background: var(--e-navy); }

/* ---------------------------------------------------------- Kopfbereich */
.gems-konzept-e .e-kopf .e-kopf__bar { padding-top: 14px; padding-bottom: 14px; box-shadow: 0 1px 0 var(--e-linie); position: relative; }
.gems-konzept-e .e-kopf .e-kopf__inner { gap: 28px; align-items: center; max-width: 1280px; }
.gems-konzept-e .e-marke { gap: 16px !important; align-items: center; flex-shrink: 0; }
.gems-konzept-e .e-marke .wp-block-site-logo img { height: auto; }
.gems-konzept-e .e-marke__name { margin: 0; font-family: var(--e-kopf) !important; font-weight: 700 !important; line-height: 1 !important; letter-spacing: 0 !important; }
.gems-konzept-e .e-marke__name a { color: var(--e-navy) !important; text-decoration: none !important; }
.gems-konzept-e .e-marke__zeile, .gems-konzept-e .e-marke__ort { display: block; }
.gems-konzept-e .e-marke__ort { color: var(--e-teal); font-weight: 600; margin-top: 3px; }
.gems-konzept-e .e-kopf__rechts { margin-left: auto; gap: 6px !important; align-items: flex-end !important; }
.gems-konzept-e .e-kopf__oben { gap: 18px !important; align-items: center; font-size: .9375rem; }
.gems-konzept-e .e-kopf__oben .gems-meta-link { margin: 0; }
.gems-konzept-e .e-kopf__oben .gems-meta-link a { color: var(--e-leise); font-weight: 600; text-decoration: none; }
.gems-konzept-e .e-kopf__oben .gems-meta-link a:hover { color: var(--e-navy); text-decoration: underline; }

/* Eingeklappte Navigation (Skript des Eltern-Themes setzt gems-nav-collapsible): Marke links, Werkzeuge und Menüknopf rechts in einer Zeile */
.gems-konzept-e .e-kopf .e-marke { order: 0 !important; min-width: 0; }
.gems-konzept-e .e-kopf .e-kopf__rechts { order: 1 !important; min-width: 0; }
.gems-konzept-e .e-kopf.gems-nav-collapsible .e-kopf__inner { flex-wrap: wrap !important; gap: 12px 16px; }
.gems-konzept-e .e-kopf.gems-nav-collapsible .e-kopf__rechts { flex-direction: row !important; flex-wrap: wrap; align-items: center !important; justify-content: flex-end; gap: 10px 14px !important; }
.gems-konzept-e .e-kopf.gems-nav-collapsible .e-nav { flex-basis: 100%; order: 3; }
.gems-konzept-e .e-kopf.gems-nav-open .e-kopf__rechts { flex-basis: 100%; }
/* Suchfeld im eingeklappten Kopf: volle Breite unter der Kopfzeile statt am Symbol ausgerichtet */
@media (max-width: 640px) {
	.gems-konzept-e .e-kopf .e-kopf__inner { gap: 10px !important; }
	.gems-konzept-e .e-kopf .e-marke { gap: 10px !important; flex-shrink: 1; }
	.gems-konzept-e .e-kopf .e-kopf__oben { gap: 6px !important; font-size: .8125rem; }
	.gems-konzept-e .e-kopf .e-kopf__oben .gems-meta-link a { display: inline-flex; align-items: center; min-height: 44px; }
	/* Leichte Sprache steht im aufgeklappten Menü (vom Eltern-Skript eingefügt) */
	.gems-konzept-e .e-kopf.gems-nav-collapsible .e-kopf__oben .gems-meta-ls { display: none !important; }
}
@media (max-width: 359px) {
	.gems-konzept-e .e-kopf .e-marke { gap: 8px !important; }
	.gems-konzept-e .e-kopf .e-kopf__rechts { gap: 4px !important; }
	.gems-konzept-e .e-einstieg__titel { font-size: 1.875rem !important; }
	.gems-konzept-e .e-einstieg__claim { font-size: 1.1875rem; }
}
.gems-konzept-e img { max-width: 100%; height: auto; }
.gems-konzept-e .wp-block-post-template > li, .gems-konzept-e .wp-block-media-text > * { min-width: 0; }

/* Hauptnavigation (Desktop): Klick öffnet ein breites Panel unter dem Kopf */
.gems-konzept-e .e-nav .wp-block-navigation__container { gap: 4px; }
.gems-konzept-e .e-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content { font-family: var(--e-kopf); font-weight: 600; font-size: 1.1875rem; color: var(--e-navy); padding: 8px 10px; border-bottom: 4px solid transparent; border-radius: 0; text-decoration: none; }
.gems-konzept-e .e-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content:hover { border-bottom-color: var(--e-linie); }
.gems-konzept-e .e-nav .wp-block-navigation__container > .current-menu-item > .wp-block-navigation-item__content,
.gems-konzept-e .e-nav .wp-block-navigation__container > .current-menu-ancestor > .wp-block-navigation-item__content,
.gems-konzept-e .e-nav .wp-block-navigation__container > .wp-block-navigation-item > [aria-current="page"] { border-bottom-color: var(--e-tuerkis); }
.gems-konzept-e .e-nav .wp-block-navigation__container > .has-child > .wp-block-navigation-submenu__toggle[aria-expanded="true"] { border-bottom-color: var(--e-navy); }

/*
 * Desktop-Navigation ab 0.9.2: klassische Dropdowns statt Vollbreiten-Panel.
 * Untermenü einspaltig direkt unter dem Hauptpunkt (260–320 px), dritte Ebene als Flyout rechts daneben;
 * kopf.js klappt Flyouts am rechten Rand nach links und begrenzt die Höhe auf den sichtbaren Bereich.
 * Öffnen/Schließen, Escape und Fokus steuert weiterhin navigation.js des Eltern-Themes (aria-expanded).
 * Gilt nur im ausgeklappten Desktop-Kopf (nicht .gems-nav-collapsible); die mobile Akkordeon-Navigation bleibt unberührt.
 */
@media (min-width: 1200px) {
	.gems-konzept-e .e-kopf:not(.gems-nav-collapsible) .e-nav .wp-block-navigation__container > .has-child { position: relative !important; }
	.gems-konzept-e .e-kopf:not(.gems-nav-collapsible) .e-nav .has-child > .wp-block-navigation__submenu-container {
		position: absolute !important; top: 100% !important; left: 0 !important; right: auto !important; z-index: 30;
		width: max-content !important; min-width: 260px !important; max-width: 320px !important; height: auto !important; box-sizing: border-box !important;
		display: block !important; margin: 0 !important; padding: 6px 0 !important; list-style: none;
		background: #fff !important; border: 1px solid var(--e-linie) !important; border-top: 3px solid var(--e-tuerkis) !important; border-radius: 0 0 8px 8px !important;
		box-shadow: 0 12px 28px rgba(16, 36, 61, .16) !important;
		visibility: visible !important; opacity: 1 !important; overflow: visible;
	}
	/* Lange Listen ohne dritte Ebene: höchstens bis zum unteren Fensterrand, dann intern scrollen. */
	.gems-konzept-e .e-kopf:not(.gems-nav-collapsible) .e-nav .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-container:not(:has(.has-child)) { max-height: var(--e-dd-max, calc(100vh - 160px)); overflow-y: auto !important; overscroll-behavior: contain; }
	.gems-konzept-e .e-kopf:not(.gems-nav-collapsible) .e-nav .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-container.e-dd--rechts { left: auto !important; right: 0 !important; }
	.gems-konzept-e .e-kopf:not(.gems-nav-collapsible) .e-nav .has-child > .wp-block-navigation-submenu__toggle[aria-expanded="false"] ~ .wp-block-navigation__submenu-container { display: none !important; }
	.gems-konzept-e .e-kopf:not(.gems-nav-collapsible) .e-nav .wp-block-navigation__submenu-container .wp-block-navigation-item { display: block; width: 100%; margin: 0; position: relative; }
	.gems-konzept-e .e-kopf:not(.gems-nav-collapsible) .e-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content,
	.gems-konzept-e .e-kopf:not(.gems-nav-collapsible) .e-nav .wp-block-navigation__submenu-container .wp-block-navigation-submenu__toggle {
		display: flex !important; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; box-sizing: border-box;
		padding: 9px 18px !important; border: 0 !important; border-radius: 0 !important; background: transparent;
		color: var(--e-text) !important; font-family: inherit; font-weight: 600; font-size: 1rem; line-height: 1.3; text-align: left; text-decoration: none;
	}
	.gems-konzept-e .e-kopf:not(.gems-nav-collapsible) .e-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
	.gems-konzept-e .e-kopf:not(.gems-nav-collapsible) .e-nav .wp-block-navigation__submenu-container .wp-block-navigation-submenu__toggle:hover { background: var(--e-grau); color: var(--e-navy) !important; text-decoration: underline; text-decoration-color: var(--e-tuerkis); text-decoration-thickness: 2px; text-underline-offset: 4px; }
	.gems-konzept-e .e-kopf:not(.gems-nav-collapsible) .e-nav .wp-block-navigation__submenu-container .current-menu-item > .wp-block-navigation-item__content,
	.gems-konzept-e .e-kopf:not(.gems-nav-collapsible) .e-nav .wp-block-navigation__submenu-container [aria-current="page"] { color: var(--e-navy) !important; box-shadow: inset 3px 0 0 var(--e-tuerkis); }
	.gems-konzept-e .e-kopf:not(.gems-nav-collapsible) .e-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus-visible,
	.gems-konzept-e .e-kopf:not(.gems-nav-collapsible) .e-nav .wp-block-navigation__submenu-container .wp-block-navigation-submenu__toggle:focus-visible { outline-offset: -3px; box-shadow: none; }
	/* Dritte Ebene: Flyout rechts neben dem Eintrag, am rechten Fensterrand nach links (kopf.js setzt .e-dd--links). */
	.gems-konzept-e .e-kopf:not(.gems-nav-collapsible) .e-nav .wp-block-navigation__submenu-container .has-child > .wp-block-navigation-submenu__toggle[aria-expanded="true"] { background: var(--e-grau); color: var(--e-navy) !important; }
	.gems-konzept-e .e-kopf:not(.gems-nav-collapsible) .e-nav .wp-block-navigation__submenu-container .has-child > .wp-block-navigation-submenu__toggle .wp-block-navigation__submenu-icon,
	.gems-konzept-e .e-kopf:not(.gems-nav-collapsible) .e-nav .wp-block-navigation__submenu-container .has-child > .wp-block-navigation-submenu__toggle svg { transform: rotate(-90deg) !important; }
	.gems-konzept-e .e-kopf:not(.gems-nav-collapsible) .e-nav .wp-block-navigation__submenu-container .has-child > .wp-block-navigation__submenu-container {
		top: -9px !important; left: 100% !important; border-top-width: 1px !important; border-left: 3px solid var(--e-tuerkis) !important; border-radius: 0 8px 8px 0 !important;
	}
	.gems-konzept-e .e-kopf:not(.gems-nav-collapsible) .e-nav .wp-block-navigation__submenu-container .has-child > .wp-block-navigation__submenu-container.e-dd--links { left: auto !important; right: 100% !important; border-left-width: 1px !important; border-right: 3px solid var(--e-tuerkis) !important; border-radius: 8px 0 0 8px !important; }
}

/* ---------------------------------------------------------- Startseite: Abschnitte */
.e-abschnitt { padding-top: var(--e-abschnitt) !important; padding-bottom: var(--e-abschnitt) !important; margin-top: 0 !important; margin-bottom: 0 !important; }
.e-start > .wp-block-post-content > * { margin-top: 0 !important; margin-bottom: 0 !important; }
.e-kopfzeile { margin-bottom: clamp(32px, 4vw, 48px) !important; }

/* Einstieg */
.e-einstieg { padding: 0 !important; min-height: clamp(380px, 32vw, 460px) !important; align-items: center; }
.e-einstieg .wp-block-cover__inner-container { width: 100%; max-width: var(--e-breite); margin: 0 auto; padding: 48px var(--e-rand) 52px; }
.e-einstieg__inhalt { max-width: none !important; }
.e-einstieg__text { max-width: 33rem; text-shadow: 0 1px 2px rgba(10, 24, 41, .45); }
.e-einstieg__titel { color: #fff !important; font-size: clamp(2.375rem, 4.6vw, 3.75rem) !important; line-height: 1.02 !important; margin: 0 !important; }
.e-einstieg__claim { font-family: var(--e-kopf); font-weight: 600; font-size: clamp(1.375rem, 2.2vw, 1.75rem); color: var(--e-tuerkis); margin: 12px 0 !important; }
.e-einstieg__claim::before { content: ""; display: inline-block; width: 28px; height: 4px; border-radius: 2px; background: var(--e-gelb); vertical-align: middle; margin: -4px 12px 0 0; }
.e-einstieg__absatz { font-size: 1.1875rem; color: #fff; margin: 0 0 26px !important; }
.e-einstieg .wp-block-buttons { text-shadow: none; }

/* Große Bild-Text-Bereiche */
.e-bildtext { gap: clamp(36px, 6vw, 80px) !important; }
.e-bildtext .wp-block-media-text__media { border-radius: 12px; overflow: hidden; min-height: 420px; align-self: stretch; }
.e-bildtext--gross .wp-block-media-text__media { min-height: 520px; }
.e-bildtext .wp-block-media-text__content { padding: 0 !important; }
.e-bildtext .wp-block-media-text__content > * + * { margin-top: 1rem; }

.is-style-e-wege { list-style: none !important; padding: 0 !important; margin: 20px 0 22px !important; border-top: 1px solid var(--e-linie); }
.is-style-e-wege li { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--e-linie); align-items: baseline; font-family: var(--e-kopf); font-weight: 700; font-size: 1.25rem; color: var(--e-navy); line-height: 1.2; margin: 0 !important; }
.is-style-e-wege li strong { font-family: var(--wp--preset--font-family--system); font-size: .9375rem; color: var(--e-teal); }
.is-style-e-wege li a { color: var(--e-navy); }

.e-auszeichnung { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #FFFDE0; border-left: 4px solid var(--e-gelb); border-radius: 0 8px 8px 0; font-weight: 600; color: var(--e-navy); }
.e-auszeichnung::before { content: ""; flex: 0 0 22px; height: 22px; background: var(--e-navy); -webkit-mask: var(--e-i-stern) center / contain no-repeat; mask: var(--e-i-stern) center / contain no-repeat; }
.e-links { gap: 12px 28px !important; margin-top: 26px !important; }
.e-links .wp-block-buttons { margin: 0; }

/* Gruppen im Bereich Gemeinschaft */
.e-gruppe { padding-left: 20px; border-left: 3px solid var(--e-tuerkis); margin-top: 22px !important; }
.e-gruppe__titel { font-size: 1.375rem !important; margin: 0 0 4px !important; }
.e-gruppe__text { margin: 0 0 6px !important; }
.e-gruppe__links { margin: 0 !important; display: flex; flex-wrap: wrap; gap: 4px 18px; font-weight: 700; }
.e-gruppe__links a { color: var(--e-navy); display: inline-flex; align-items: center; min-height: 36px; }

/* Aktuelles */
.e-meldungen .wp-block-post-template { gap: 28px !important; }
.e-meldung { background: #fff; border-radius: 10px; overflow: hidden; height: 100%; display: flex; flex-direction: column; box-shadow: 0 1px 0 var(--e-linie); position: relative; }
.e-meldung__bild { margin: 0 !important; }
.e-meldung__bild img { width: 100%; height: 100%; object-fit: cover; }
.e-meldung__text { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.e-meldung__text > * { margin: 0 !important; }
.e-meldung__kat, .e-meldung__kat a { font-size: .875rem; font-weight: 700; color: var(--e-teal) !important; text-decoration: none !important; position: relative; z-index: 2; }
.e-meldung__titel { font-size: 1.375rem !important; }
.e-meldung__titel a { color: var(--e-navy); text-decoration: none; }
.e-meldung__titel a::after { content: ""; position: absolute; inset: 0; }
.e-meldung:hover .e-meldung__titel a { text-decoration: underline; text-decoration-color: var(--e-tuerkis); text-decoration-thickness: 3px; }
.e-meldung:focus-within { outline: 3px solid var(--e-gelb); outline-offset: 3px; }
.e-meldung__titel a:focus-visible { outline: none; box-shadow: none; }
.e-meldung__datum { font-size: .9375rem; color: var(--e-leise); }
.e-meldung__auszug p { margin: 0; font-size: 1rem; }
.e-meldung__auszug .wp-block-post-excerpt__more-text { display: none; }
.e-mehr { margin-top: 36px !important; }

/* Terminband */
.e-terminband.wp-block-cover { min-height: 0 !important; padding: clamp(56px, 7vw, 96px) var(--e-rand) !important; color: #fff; align-items: center; }
.e-terminband .wp-block-cover__inner-container { width: 100%; max-width: var(--e-breite); margin: 0 auto; color: #fff; }
.e-terminband .is-style-e-dach, .e-dach--hell { color: #fff !important; }
.e-terminband .is-style-e-pfeil a, .e-pfeil--hell a { color: #fff; }
.e-terminband .is-style-e-pfeil a::after, .e-pfeil--hell a::after { background: var(--e-gelb); }
.e-terminband .is-style-e-pfeil a:hover { text-decoration-color: var(--e-gelb) !important; }
.e-terminband__raster { position: relative; z-index: 1; gap: clamp(32px, 5vw, 64px) !important; }
.e-terminband__titel { color: #fff !important; font-size: clamp(2.25rem, 4vw, 3.25rem) !important; margin: 0 0 22px !important; text-shadow: 0 1px 2px rgba(0, 40, 36, .35); }
.e-terminband__leer { position: relative; padding-left: 74px; min-height: 56px; max-width: 34rem; font-size: 1.0625rem; color: #fff; }
.e-terminband__leer::before { content: ""; position: absolute; left: 0; top: 0; width: 56px; height: 56px; border-radius: 12px; background: #fff; }
.e-terminband__leer::after { content: ""; position: absolute; left: 14px; top: 14px; width: 28px; height: 28px; background: var(--e-teal); -webkit-mask: var(--e-i-termine) center / contain no-repeat; mask: var(--e-i-termine) center / contain no-repeat; }
.e-terminband__leer strong { display: block; font-size: 1.1875rem; margin-bottom: 4px; }

/*
 * Termine ab 0.9.3: Baustein „Termine (automatisch)“ der Schulredaktion (eine Datenquelle: Menü „Termine“).
 * Seite „Termine“: ab 768 px Datumsspalte links, Bezeichnung (und ggf. Uhrzeit/Ort) rechts; schmal untereinander.
 * Terminband der Startseite: weiß auf der dunklen Lasur, ohne Datumsspalte.
 */
.gems-konzept-e .lkwnd-termine__liste { margin: 1.5rem 0; padding: 0; list-style: none; border-top: 1px solid var(--e-linie); }
.gems-konzept-e .lkwnd-termine__liste li { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--e-linie); line-height: 1.45; overflow-wrap: break-word; hyphens: manual; }
.gems-konzept-e .lkwnd-termine__liste li strong { display: block; margin-bottom: 2px; color: var(--e-teal); font-weight: 700; }
@media (min-width: 768px) {
	.gems-konzept-e .gems-content .lkwnd-termine__liste li { display: flow-root; padding-left: 17rem; }
	.gems-konzept-e .gems-content .lkwnd-termine__liste li strong { float: left; width: 16rem; margin: 0 0 0 -17rem; }
}
.e-terminband .lkwnd-termine { max-width: 34rem; margin: 0 0 22px; color: #fff; }
.e-terminband .lkwnd-termine p { color: #fff; font-size: 1.0625rem; }
.e-terminband .lkwnd-termine__liste { margin: 0; border-top-color: rgba(255, 255, 255, .4); }
.e-terminband .lkwnd-termine__liste li { padding: 12px 0; border-bottom-color: rgba(255, 255, 255, .4); color: #fff; font-size: 1.0625rem; }
.e-terminband .lkwnd-termine__liste li strong { color: #fff; font-size: 1.0625rem; letter-spacing: .01em; }

/*
 * Seitenlayout ab 0.9.4/0.9.5 – nur normale Inhaltsseiten (Raster mit .gems-raster, gesetzt in inc/seitenlayout.php).
 * Spalten je Zustand ab 1200 px: Bereichsnavigation 15rem | Inhalt | „Auf dieser Seite“ 14rem, Abstand 3rem.
 * Ab 0.9.5 Breiten nach Elementart statt einer gemeinsamen Höchstbreite:
 * - Fließtext, Listen, Zitate und Einzelbilder: Lesebreite --e-lesebreite (52rem), links auf der Titelachse;
 *   Bilder nie größer als ihre gespeicherte Größe (keine Hochskalierung), eigene Breiten/Ausrichtungen bleiben.
 * - Überschriften, Downloads, Terminliste, Hinweisboxen, Schaltflächen, Trenner: Komponentenbreite --e-komponente (60rem).
 * - Einzelne Personenkarte: höchstens 36rem.
 * - Breit (ganze Inhaltsspalte): Galerien, Karten-/Personenraster, Raster-Gruppen, Tabellen, Medien+Text, Spalten, „weite Breite“.
 * - Medien+Text und Spalten stapeln nach der echten Breite der Inhaltsspalte (Container-Abfrage), nicht nach der Fenstergröße.
 * Rechtstexte, Startseite, Leichte Sprache, „Seite breit“, Beiträge und Archive tragen kein .gems-raster.
 */
.gems-konzept-e .gems-pagebody__grid.gems-raster { --e-lesebreite: min(52rem, 100%); --e-komponente: min(60rem, 100%); }
.gems-konzept-e .gems-pagebody__grid.gems-raster > .gems-content { --wp--style--global--content-size: 100%; container: gems-inhalt / inline-size; }
.gems-konzept-e .gems-pagebody__grid.gems-raster > .gems-content > :where(:not(.alignleft):not(.alignright):not(.alignfull)) { max-width: var(--e-lesebreite); margin-left: 0 !important; margin-right: auto !important; box-sizing: border-box; }
.gems-konzept-e .gems-pagebody__grid.gems-raster > .gems-content > :is(h1, h2, h3, h4, h5, h6, .wp-block-heading, .wp-block-file, .wp-block-buttons, .lkwnd-termine, .wp-block-lkwnd-termine, .is-style-gems-hinweis, .wp-block-separator):not(.alignleft):not(.alignright):not(.alignfull):not(.alignwide) { max-width: var(--e-komponente); }
.gems-konzept-e .gems-pagebody__grid.gems-raster > .gems-content > .lkwnd-person { max-width: min(36rem, 100%); }
.gems-konzept-e .gems-pagebody__grid.gems-raster > .gems-content > :is(.wp-block-gallery, .gems-cardgrid, .gems-kontaktgrid, .gems-themengrid, .is-layout-grid, .wp-block-table, .wp-block-lkwnd-personen, .lkwnd-personen, .wp-block-media-text, .wp-block-columns, .alignwide) { max-width: 100%; }
.gems-konzept-e .gems-pagebody__grid.gems-raster > .gems-content > .aligncenter { margin-left: auto !important; }
.gems-konzept-e .gems-pagebody__grid.gems-raster > .gems-content > .wp-block-table { overflow-x: auto; }
.gems-konzept-e .gems-pagebody__grid.gems-raster > .gems-content :is(.wp-block-media-text, .wp-block-columns) { gap: 2rem; }
.gems-konzept-e .gems-pagebody__grid.gems-raster > .gems-content .wp-block-media-text > .wp-block-media-text__content { padding-inline: 0; }
.gems-konzept-e .gems-pagebody__grid.gems-raster > .gems-content .wp-block-media-text:not(.has-background) > .wp-block-media-text__media img { border-radius: var(--gems-radius, 8px); }
@container gems-inhalt (max-width: 44rem) {
	.gems-konzept-e .gems-content .wp-block-media-text.is-stacked-on-mobile { grid-template-columns: 100% !important; }
	.gems-konzept-e .gems-content .wp-block-media-text.is-stacked-on-mobile > .wp-block-media-text__media { grid-column: 1; grid-row: 1; max-width: min(28rem, 100%); }
	.gems-konzept-e .gems-content .wp-block-media-text.is-stacked-on-mobile > .wp-block-media-text__content { grid-column: 1; grid-row: 2; }
	.gems-konzept-e .gems-content .wp-block-columns:not(.is-not-stacked-on-mobile) { flex-wrap: wrap !important; }
	.gems-konzept-e .gems-content .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column { flex-basis: 100% !important; }
}
@media (min-width: 1200px) {
	.gems-konzept-e .gems-pagebody__grid.gems-raster { grid-template-columns: minmax(0, 1fr); grid-template-areas: "inhalt"; column-gap: 3rem; }
	.gems-konzept-e .gems-pagebody__grid.gems-raster.gems-raster--links { grid-template-columns: 15rem minmax(0, 1fr); grid-template-areas: "links inhalt"; }
	.gems-konzept-e .gems-pagebody__grid.gems-raster.gems-raster--rechts { grid-template-columns: minmax(0, 1fr) 14rem; grid-template-areas: "inhalt rechts"; }
	.gems-konzept-e .gems-pagebody__grid.gems-raster.gems-raster--links.gems-raster--rechts { grid-template-columns: 15rem minmax(0, 1fr) 14rem; grid-template-areas: "links inhalt rechts"; }
	.gems-konzept-e .gems-pagebody__grid.gems-raster > .gems-content { grid-area: inhalt; }
	.gems-konzept-e .gems-pagebody__grid.gems-raster > .gems-bereichsnav { grid-area: links; }
	.gems-konzept-e .gems-pagebody__grid.gems-raster > .gems-toc { grid-area: rechts; }
	.gems-konzept-e .gems-seitennav__schalter { display: none; }
}
@media (max-width: 1199px) {
	/* Eingeschaltete Navigationen: links bündig mit dem Text, als Aufklappbereich (assets/js/seitennav.js). */
	/* Ab 0.9.6: keine visuelle Umordnung per CSS-order (Eltern-Theme: toc 1, Inhalt 2, Bereichsnavigation 3).
	   Sichtbare Folge = DOM-Folge = Tab-Folge. Ohne JavaScript: Bereichsnavigation → Inhalt → „Auf dieser Seite“;
	   mit JavaScript hängt assets/js/seitennav.js die vorhandenen Navigationen um: „Auf dieser Seite“ → Inhalt → Bereichsnavigation. */
	.gems-konzept-e .gems-pagebody__grid.gems-raster > * { order: 0; }
	.gems-konzept-e .gems-pagebody__grid.gems-raster > :is(.gems-toc, .gems-bereichsnav) { max-width: var(--e-lesebreite); margin-left: 0 !important; margin-right: auto !important; }
	.gems-konzept-e .gems-raster > .gems-seitennav--js { padding: 0; border: 1px solid var(--e-linie); border-radius: 8px; background: var(--e-grau); }
	.gems-konzept-e .gems-seitennav__schalter { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; margin: 0; padding: 12px 16px; border: 0; border-radius: 8px; background: transparent; color: var(--e-navy); font: inherit; font-size: 1rem; font-weight: 700; line-height: 1.3; text-align: left; cursor: pointer; }
	.gems-konzept-e .gems-seitennav__schalter::after { content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px; border-right: 2px solid currentcolor; border-bottom: 2px solid currentcolor; transform: translateY(-3px) rotate(45deg); transition: transform .15s; }
	.gems-konzept-e .gems-seitennav__schalter[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }
	.gems-konzept-e .gems-seitennav__schalter:hover { color: var(--e-teal); }
	.gems-konzept-e .gems-seitennav__inhalt { padding: 6px 16px 14px; border-top: 1px solid var(--e-linie); }
	.gems-konzept-e .gems-seitennav--js .gems-toc__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
	.gems-konzept-e .gems-seitennav--js .gems-bereichsnav__title { margin-top: 6px; }
	.gems-konzept-e .gems-seitennav--js .gems-bereichsnav__title::before { content: none; }
}
@media (prefers-reduced-motion: reduce) {
	.gems-konzept-e .gems-seitennav__schalter::after { transition: none; }
}
.e-anmeldekarte { position: relative; z-index: 2; background: #fff; border-radius: 12px; padding: 28px 30px 30px; border-top: 5px solid var(--e-gelb); box-shadow: 0 18px 40px -24px rgba(16, 36, 61, .55); }
.e-anmeldekarte h3 { font-size: 1.625rem !important; margin: 0 0 12px !important; }
.e-anmeldekarte ul { margin: 0 0 20px !important; padding-left: 1.1em; }
.e-anmeldekarte li::marker { color: var(--e-teal); }

/* Highlights: 05a „Tiefblau“ */
.e-highlights { padding-top: clamp(72px, 9vw, 120px) !important; padding-bottom: clamp(72px, 9vw, 120px) !important; }
.e-karten { gap: 26px !important; }
.e-karte { border-radius: 10px; overflow: hidden; padding: 0 !important; align-items: stretch !important; min-height: 380px; }
.e-karte .wp-block-cover__image-background { filter: grayscale(.25); }
.e-karte .wp-block-cover__inner-container { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 32px 20px 26px; border-top: 5px solid var(--e-tuerkis); color: #fff; text-align: center; width: 100% !important; }
.e-karten > .e-karte:nth-child(even) .wp-block-cover__inner-container { border-top-color: var(--e-gelb); }
.e-karte .wp-block-cover__inner-container::before { content: ""; width: 52px; height: 52px; background: #fff; -webkit-mask: var(--e-karte-symbol, none) center / contain no-repeat; mask: var(--e-karte-symbol, none) center / contain no-repeat; }
.is-style-e-karte-sport { --e-karte-symbol: var(--e-i-sport); }
.is-style-e-karte-foerderung { --e-karte-symbol: var(--e-i-foerderung); }
.is-style-e-karte-sozial { --e-karte-symbol: var(--e-i-sozial); }
.is-style-e-karte-nachhaltig { --e-karte-symbol: var(--e-i-nachhaltig); }
.is-style-e-karte-oberstufe { --e-karte-symbol: var(--e-i-oberstufe); }
.is-style-e-karte-sprachen { --e-karte-symbol: var(--e-i-sprachen); }
.is-style-e-karte-beruf { --e-karte-symbol: var(--e-i-beruf); }
.is-style-e-karte-ohne .wp-block-cover__inner-container::before { display: none; }
.e-karte__titel { color: #fff !important; font-family: var(--wp--preset--font-family--system) !important; font-weight: 700 !important; font-size: 1.375rem !important; line-height: 1.2 !important; margin: 4px 0 0 !important; }
.e-karte__text { margin: 0 !important; font-size: 1rem; line-height: 1.5; color: #fff; }
.e-karte__aktion { margin-top: auto !important; }
.e-karte .wp-block-button__link::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.e-karte:hover .wp-block-cover__background { opacity: .95 !important; }
.e-karte:hover .is-style-e-hell .wp-block-button__link { background: #fff !important; color: var(--e-navy) !important; }
.e-karte:focus-within { outline: 4px solid var(--e-gelb); outline-offset: 3px; }
.e-karte .wp-block-button__link:focus-visible { outline: none; box-shadow: none; }

/* ---------------------------------------------------------- Partnerleiste und Fußbereich */
.gems-konzept-e .e-partner { padding-top: clamp(44px, 5vw, 64px) !important; padding-bottom: clamp(44px, 5vw, 64px) !important; border-top: 1px solid var(--e-linie); background: #fff; }
.gems-konzept-e .e-partner__titel { font-size: 1.5rem !important; margin: 0 0 28px !important; }
.gems-konzept-e .e-partner__titel::after { display: none !important; }
.gems-konzept-e .e-partner__logos { gap: 28px 56px !important; }
.gems-konzept-e .e-partner__logos figure { margin: 0 !important; }
.gems-konzept-e .e-partner__logos img { max-height: 72px; max-width: 180px; width: auto !important; height: auto; }
.gems-konzept-e .e-partner__weitere { margin: 28px 0 0 !important; color: var(--e-leise); }
.gems-konzept-e .e-partner__weitere a { color: var(--e-leise); }

.gems-konzept-e .e-fuss { border-top: 4px solid var(--e-tuerkis); }
.gems-konzept-e .e-fuss .gems-footer__heading { color: #fff; font-family: var(--e-kopf); font-size: 1.25rem; padding-bottom: 8px; border-bottom: 2px solid var(--e-tuerkis); display: inline-block; }
.gems-konzept-e .e-fuss a { color: #fff; }
.gems-konzept-e .e-fuss a:hover { color: var(--e-gelb); }
@media (min-width: 1024px) { .e-karten { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } }
@media (min-width: 641px) and (max-width: 1023px) { .e-karten { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }

/* ---------------------------------------------------------- Unterseiten (Vorlagen des Eltern-Themes) */
.gems-konzept-e .gems-pagehead { background: #fff; border-bottom: 1px solid var(--e-linie); }
.gems-konzept-e .gems-pagehead .wp-block-post-title,
.gems-konzept-e .gems-pagehead h1 { font-family: var(--e-kopf) !important; font-weight: 700 !important; color: var(--e-navy) !important; font-size: clamp(2.25rem, 4.4vw, 3.25rem) !important; }
.gems-konzept-e .gems-pagehead .wp-block-post-title::after,
.gems-konzept-e .gems-pagehead h1::after { content: ""; display: block; width: 80px; height: 4px; margin-top: 16px; border-radius: 2px; background: linear-gradient(90deg, var(--e-tuerkis) 0 70%, var(--e-gelb) 70% 100%); }
.gems-konzept-e .gems-kicker { font-size: .8125rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--e-teal); }
.gems-konzept-e .gems-breadcrumbs a { color: var(--e-leise); }
.gems-konzept-e .gems-bereichsnav a[aria-current="page"] { border-left-color: var(--e-tuerkis) !important; }
.gems-konzept-e .gems-content h2 { font-family: var(--e-kopf); }
.gems-konzept-e .gems-content h2::after { content: ""; display: block; width: 56px; height: 3px; margin-top: 10px; border-radius: 2px; background: var(--e-tuerkis); }
.gems-konzept-e .gems-content .wp-block-file .wp-block-file__button { background: #fff; color: var(--e-navy); border: 2px solid var(--e-teal); border-radius: 8px; }
.gems-konzept-e .e-hinweis-entwurf { padding: 16px 20px; border-left: 4px solid var(--e-gelb); background: #FFFDE0; }

/* ---------------------------------------------------------- Tablet */
@media (max-width: 1023px) {
	.e-bildtext { gap: 28px !important; }
	.e-bildtext .wp-block-media-text__media, .e-bildtext--gross .wp-block-media-text__media { min-height: 0 !important; aspect-ratio: 16 / 10; width: 100%; }
	.e-terminband__raster { flex-wrap: wrap !important; }
	.e-terminband__raster > .wp-block-column { flex-basis: 100% !important; }
	.e-karte { min-height: 330px; }
	.e-meldungen .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.e-meldungen .wp-block-post-template > li:first-child { grid-column: 1 / -1; }
}
@media (max-width: 781px) {
	.e-bildtext.is-stacked-on-mobile .wp-block-media-text__media { grid-row: 1 !important; }
	.e-bildtext.is-stacked-on-mobile .wp-block-media-text__content { grid-row: 2 !important; }
}
@media (max-width: 600px) {
	.e-bildtext.is-stacked-on-mobile { grid-template-columns: minmax(0, 1fr) !important; }
	.e-bildtext.is-stacked-on-mobile > * { grid-column: 1 !important; }
	.e-bildtext .wp-block-media-text__media, .e-bildtext--gross .wp-block-media-text__media { width: 100%; min-height: 0 !important; }
}
.e-einstieg .wp-block-cover__inner-container { box-sizing: border-box; }

/* ---------------------------------------------------------- Mobil: eigene Anordnung */
@media (max-width: 640px) {
	.e-einstieg__absatz { font-size: 1.0625rem; }
	.e-einstieg .wp-block-button, .e-einstieg .wp-block-button__link { width: 100%; }

	.e-abschnitt { padding-top: 48px !important; padding-bottom: 48px !important; }
	.e-titel--mitte, .e-kopfzeile .has-text-align-center { text-align: left !important; }
	.e-titel--mitte::after { margin-left: 0; }
	.e-lead { font-size: 1.09375rem; }
	.is-style-e-wege li { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 10px 0; font-size: 1.125rem; }
	.e-links .wp-block-buttons, .e-links .wp-block-button, .e-links .wp-block-button__link { width: 100%; }


	/* Meldungen: erste groß, weitere als kompakte Zeilen */
	.e-meldungen .wp-block-post-template { grid-template-columns: minmax(0, 1fr) !important; gap: 14px !important; }
	.e-meldungen .wp-block-post-template > li + li .e-meldung { flex-direction: row; }
	.e-meldungen .wp-block-post-template > li + li .e-meldung__bild { flex: 0 0 112px; width: 112px; aspect-ratio: auto !important; }
	.e-meldungen .wp-block-post-template > li + li .e-meldung__bild { position: relative; align-self: stretch; height: auto !important; min-height: 96px; margin: 0 !important; overflow: hidden; }
	.e-meldungen .wp-block-post-template > li + li .e-meldung__bild a { position: absolute; inset: 0; }
	.e-meldungen .wp-block-post-template > li + li .e-meldung__bild img { position: absolute; inset: 0; width: 100% !important; aspect-ratio: auto !important; height: 100% !important; object-fit: cover; }
	.e-meldungen .wp-block-post-template > li + li .e-meldung__text { padding: 12px 14px; gap: 4px; }
	.e-meldungen .wp-block-post-template > li + li .e-meldung__titel { font-size: 1.125rem !important; }
	.e-meldungen .wp-block-post-template > li + li .e-meldung__auszug { display: none; }
	.e-mehr { justify-content: flex-start !important; margin-top: 20px !important; }

	.e-terminband__leer { padding-left: 58px; }
	.e-terminband__leer::before { width: 44px; height: 44px; }
	.e-terminband__leer::after { left: 11px; top: 11px; width: 22px; height: 22px; }
	.e-anmeldekarte { padding: 22px 20px 24px; }
	.e-anmeldekarte .wp-block-button, .e-anmeldekarte .wp-block-button__link { width: 100%; }

	/* Highlights quer: Symbol links, Text rechts, ganze Karte ist der Link */
	.e-highlights { padding-top: 56px !important; padding-bottom: 56px !important; }
	.e-karten { grid-template-columns: minmax(0, 1fr) !important; gap: 14px !important; }
	.e-karte { min-height: 0 !important; text-align: left; }
	.e-karte .wp-block-cover__inner-container { display: grid; grid-template-columns: 44px minmax(0, 1fr) 20px; column-gap: 16px; row-gap: 6px; align-items: start; text-align: left; padding: 20px 16px 18px 18px; border-top-width: 4px; }
	.e-karte .wp-block-cover__inner-container::before { width: 40px; height: 40px; grid-row: 1 / span 2; }
	.e-karte .wp-block-cover__inner-container::after { content: ""; grid-column: 3; grid-row: 1; align-self: center; width: 20px; height: 20px; background: #fff; -webkit-mask: var(--e-i-pfeil) center / contain no-repeat; mask: var(--e-i-pfeil) center / contain no-repeat; }
	.e-karte__titel, .e-karte__text { grid-column: 2; text-align: left !important; }
	.e-karte__titel { font-size: 1.25rem !important; margin: 0 !important; }
	.e-karte__text { font-size: .96875rem; }
	.e-karte__aktion { grid-column: 2; justify-content: flex-start !important; margin-top: 4px !important; }

	.gems-konzept-e .e-partner__logos { gap: 22px 32px !important; }
	.gems-konzept-e .e-partner__logos img { max-height: 56px; max-width: 140px; }
}
@media (prefers-reduced-motion: reduce) { .gems-konzept-e *, .gems-konzept-e *::before, .gems-konzept-e *::after { transition: none !important; } }

/* ---------------------------------------------------------- Korrekturen nach Stage-2-Prüfung (0.7.1) */
.gems-konzept-e .e-marke__name, .gems-konzept-e .e-marke__name * { -webkit-hyphens: manual !important; hyphens: manual !important; overflow-wrap: normal !important; word-break: normal !important; }
.gems-konzept-e .e-fuss .gems-footer__marke { display: inline-flex !important; align-items: center; gap: 14px; color: #fff !important; text-decoration: none !important; }
.gems-konzept-e .e-fuss .gems-footer__logo { width: 64px !important; height: auto !important; max-width: none !important; background: #fff; border-radius: 8px; padding: 6px; box-sizing: content-box; }
.gems-konzept-e .e-fuss .gems-footer__marke-name { font-family: var(--e-kopf, inherit); font-weight: 700; font-size: 1.25rem; line-height: 1.15; }
.gems-konzept-e .e-partner::before, .gems-konzept-e .e-partner::after { display: none !important; content: none !important; }
.gems-konzept-e .gems-kontaktgrid, .gems-konzept-e .gems-cardgrid:has(> .lkwnd-person) { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)) !important; }

/* Menü: Touchziele mindestens 44 px */
.gems-konzept-e .e-nav .wp-block-navigation-item__content, .gems-konzept-e .e-nav .wp-block-navigation-submenu__toggle { min-height: 44px; }

/* ---------------------------------------------------------- 0.8.0: weiße Trägerleiste wie Stage 1 */
.gems-konzept-e .e-fuss__leiste { background: #fff !important; color: var(--e-text); border-top: 1px solid #C5D0D8; padding-top: 14px !important; padding-bottom: 14px !important; }
.gems-konzept-e .e-fuss__leiste .gems-footerleiste__inner { gap: 8px 24px; align-items: center; }
.gems-konzept-e .e-fuss__leiste .gems-footer__traeger { gap: 8px 20px !important; align-items: center; }
.gems-konzept-e .e-fuss__leiste .gems-logo--traeger { margin: 0; }
.gems-konzept-e .e-fuss__leiste .gems-logo--traeger img { width: 97px !important; height: auto; background: none; padding: 0; border-radius: 0; }
.gems-konzept-e .e-fuss__leiste .gems-footer__traeger-label { margin: 0; color: var(--e-navy) !important; opacity: 1; font-size: .875rem; font-weight: 600; line-height: 1.65; padding-left: 20px; border-left: 1px solid #C5D0D8; }
.gems-konzept-e .e-fuss__leiste .gems-footer__rechtliches { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 20px; }
.gems-konzept-e .e-fuss__leiste .gems-footer__rechtliches li { margin: 0; }
.gems-konzept-e .e-fuss__leiste .gems-footer__rechtliches a { color: var(--e-navy); font-size: .875rem; display: inline-flex; align-items: center; min-height: 44px; }
.gems-konzept-e .e-fuss__leiste .gems-footer__rechtliches a:hover { color: var(--e-teal); }
@media (max-width: 640px) {
	.gems-konzept-e .e-fuss__leiste .gems-footerleiste__inner { flex-direction: column; align-items: flex-start !important; }
	.gems-konzept-e .e-fuss__leiste .gems-footer__traeger-label { padding-left: 14px; }
	.gems-konzept-e .e-fuss__leiste .gems-footer__rechtliches { gap: 0 16px; }
}

/* ---------------------------------------------------------- 0.8.0: Terminband mit Schulfoto */
.e-terminband .wp-block-cover__image-background { filter: saturate(.85); }
.e-terminband .e-anmeldekarte { color: var(--e-text); }
.e-terminband .e-anmeldekarte .is-style-e-dach { color: var(--e-teal) !important; }
.e-terminband .wp-block-cover__inner-container { box-sizing: border-box; }
.gems-konzept-e .e-kopf .gems-meta-ls a { white-space: nowrap; }
@media (min-width: 1200px) and (max-width: 1439px) {
	.gems-konzept-e .e-kopf:not(.gems-nav-collapsible) .e-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content { font-size: 1.0625rem; padding-left: 7px !important; padding-right: 7px !important; }
	.gems-konzept-e .e-kopf:not(.gems-nav-collapsible) .e-kopf__rechts { gap: 8px 12px !important; }
	.gems-konzept-e .e-kopf:not(.gems-nav-collapsible) .e-kopf__oben { padding-left: 12px; gap: 6px !important; }
	.gems-konzept-e .e-kopf .e-kopf__inner { gap: 20px; }
}

/* ---------------------------------------------------------- 0.8.1: weiße Fußleiste schmal */
/* Weiße Fußleiste schmal: Landkreis-Logo und Text untereinander ohne Trennstrich */
@media (max-width: 640px) {
	.gems-konzept-e .e-fuss__leiste .gems-footer__traeger { flex-direction: column; align-items: flex-start !important; gap: 8px !important; }
	.gems-konzept-e .e-fuss__leiste .gems-footer__traeger-label { padding-left: 0; border-left: 0; }
}

/* ==========================================================================
   0.9.0 Kopfbereich – eine Quelle für Marke, Zustände und Haftung
   --------------------------------------------------------------------------
   Haftung: Das Eltern-Skript setzt html.gems-kopf-fest (Kopf höchstens 35 % der Fensterhöhe).
   Bis 0.8.2 haftete die Hülle (position: sticky, weißer Hintergrund) und behielt beim Kompaktwerden
   ihre volle Höhe – darunter blieb eine weiße Leiste (bis zu 50 px). Seit 0.9.0 steht der Kopf fest
   am oberen Rand; die Hülle bleibt im Dokumentfluss und reserviert nur am Seitenanfang die volle
   Kopfhöhe (--e-kopf-voll, gemessen von kopf.js). Kompakt wird der Kopf erst, wenn dieser Platz
   aus dem Bild gescrollt ist – es gibt weder Lücke noch Sprung. Ohne JavaScript, bei starkem Zoom
   oder im Druck bleibt der Kopf normal im Fluss.
   ========================================================================== */
html.gems-kopf-fest .gems-konzept-e .gems-kopf-huelle { position: relative !important; top: auto !important; background: none !important; min-height: var(--e-kopf-voll, 112px); z-index: 30; }
html.gems-kopf-fest .gems-konzept-e .gems-kopf-huelle > .gems-header { position: fixed; top: var(--e-kopf-oben, 0px); left: 0; right: 0; z-index: 100; }
@media (max-width: 1199px) { html.gems-kopf-fest .gems-konzept-e .gems-kopf-huelle { min-height: var(--e-kopf-voll, 76px); } }

/* Marke und Leiste: offen */
.gems-konzept-e .e-kopf .e-kopf__bar { padding-top: 12px !important; padding-bottom: 12px !important; transition: padding-top .2s ease, padding-bottom .2s ease; }
.gems-konzept-e .e-kopf .gems-mainbar__inner { padding-top: 0 !important; padding-bottom: 0 !important; min-height: 0 !important; }
.gems-konzept-e .e-kopf .e-marke .wp-block-site-logo img { width: 80px !important; transition: width .2s ease; }
.gems-konzept-e .e-kopf .e-marke__name { font-size: 1.625rem !important; transition: font-size .2s ease; }
.gems-konzept-e .e-kopf .e-marke__ort { margin-top: 2px; }
.gems-konzept-e .e-kopf .e-marke .custom-logo-link { display: inline-flex; align-items: center; min-height: 44px; }
.gems-konzept-e .e-kopf .e-marke__name a { display: inline-flex; flex-direction: column; justify-content: center; min-height: 44px; }
.gems-konzept-e .e-kopf .e-kopf__oben .gems-meta-link a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
.gems-konzept-e .e-kopf .e-kopf__oben .gems-search-toggle { min-height: 44px; min-width: 44px; }
@media (min-width: 1200px) {
	.gems-konzept-e .e-kopf:not(.gems-nav-collapsible) .e-kopf__rechts { flex-direction: row !important; flex-wrap: nowrap !important; align-items: center !important; gap: 8px 18px !important; }
	.gems-konzept-e .e-kopf:not(.gems-nav-collapsible) .e-kopf__oben { order: 2; padding-left: 18px; border-left: 1px solid var(--e-linie); }
	.gems-konzept-e .e-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content { padding-top: 6px !important; padding-bottom: 6px !important; }
}
@media (min-width: 1200px) and (max-width: 1439px) {
	.gems-konzept-e .e-kopf .e-marke .wp-block-site-logo img { width: 76px !important; }
	.gems-konzept-e .e-kopf .e-marke__name { font-size: 1.5rem !important; }
}
@media (max-width: 1199px) {
	.gems-konzept-e .e-kopf .e-marke .wp-block-site-logo img { width: 56px !important; }
	.gems-konzept-e .e-kopf .e-marke__name { font-size: 1.375rem !important; }
}
@media (max-width: 640px) {
	.gems-konzept-e .e-kopf .e-kopf__bar { padding-top: 8px !important; padding-bottom: 8px !important; }
	.gems-konzept-e .e-kopf .e-marke .wp-block-site-logo img { width: 48px !important; }
	.gems-konzept-e .e-kopf .e-marke__name { font-size: 1.125rem !important; }
}
@media (max-width: 359px) {
	.gems-konzept-e .e-kopf .e-marke .wp-block-site-logo img { width: 42px !important; }
	.gems-konzept-e .e-kopf .e-marke__name { font-size: 1rem !important; }
}

/* Marke und Leiste: kompakt (html.e-kopf-kompakt, kopf.js) – nicht bei geöffnetem Mobilmenü */
html.e-kopf-kompakt .gems-konzept-e .e-kopf:not(.gems-nav-open) .e-kopf__bar { padding-top: 8px !important; padding-bottom: 8px !important; }
html.e-kopf-kompakt .gems-konzept-e .e-kopf:not(.gems-nav-open) .e-marke .wp-block-site-logo img { width: 44px !important; }
html.e-kopf-kompakt .gems-konzept-e .e-kopf:not(.gems-nav-open) .e-marke__name { font-size: 1.125rem !important; }
html.e-kopf-kompakt .gems-konzept-e .e-kopf:not(.gems-nav-open) .e-marke__ort { margin-top: 1px; }
html.e-kopf-kompakt .gems-konzept-e .e-kopf:not(.gems-nav-open) .e-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content { padding-top: 2px !important; padding-bottom: 2px !important; }
@media (max-width: 640px) {
	html.e-kopf-kompakt .gems-konzept-e .e-kopf:not(.gems-nav-open) .e-kopf__bar { padding-top: 6px !important; padding-bottom: 6px !important; }
	html.e-kopf-kompakt .gems-konzept-e .e-kopf:not(.gems-nav-open) .e-marke .wp-block-site-logo img { width: 42px !important; }
	html.e-kopf-kompakt .gems-konzept-e .e-kopf:not(.gems-nav-open) .e-marke__name { font-size: 1rem !important; }
}
@media (max-width: 359px) {
	html.e-kopf-kompakt .gems-konzept-e .e-kopf:not(.gems-nav-open) .e-marke .wp-block-site-logo img { width: 40px !important; }
	html.e-kopf-kompakt .gems-konzept-e .e-kopf:not(.gems-nav-open) .e-marke__name { font-size: .9375rem !important; }
}

/* ==========================================================================
   0.9.0 Suche im Kopf: nur das Lupensymbol; geöffnet ein ruhiges Feld direkt unter dem Kopf
   (volle Breite, Inhalt auf Seitenbreite). Steuerung (Öffnen, Escape, Fokus) übernimmt das
   Eltern-Skript; kopf.js ergänzt den Schließen-Knopf.
   ========================================================================== */
.gems-konzept-e .e-kopf .e-kopf__oben { position: static !important; }
.gems-konzept-e .e-kopf .gems-search-toggle { color: var(--e-navy); border-radius: 8px; }
.gems-konzept-e .e-kopf .gems-search-toggle[aria-expanded="true"] { background: var(--e-navy); color: #fff; }
.gems-konzept-e .e-kopf .gems-search-ready.gems-search-open .gems-search {
	position: absolute; top: 100%; left: 0; right: 0; width: auto !important; max-width: none !important; margin: 0 !important;
	padding: 18px var(--e-rand) 20px; box-sizing: border-box; background: #fff;
	border: 0; border-top: 3px solid var(--e-tuerkis); border-radius: 0; box-shadow: 0 18px 30px -20px rgba(16, 36, 61, .5); z-index: 60;
}
.gems-konzept-e .e-kopf .gems-search-ready.gems-search-open .gems-search .wp-block-search__inside-wrapper { max-width: 760px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; }
.gems-konzept-e .e-kopf .gems-search-ready.gems-search-open .gems-search .wp-block-search__input { flex: 1 1 12em; min-width: min(12em, 100%); min-height: 52px; padding: 0 16px; font-size: 1.0625rem; color: var(--e-text); background: #fff; border: 2px solid var(--e-navy); border-radius: 8px; }
.gems-konzept-e .e-kopf .gems-search-ready.gems-search-open .gems-search .wp-block-search__input::placeholder { color: #5A6A7A; opacity: 1; }
.gems-konzept-e .e-kopf .gems-search-ready.gems-search-open .gems-search .wp-block-search__button { min-height: 52px; min-width: 52px; margin: 0; padding: 0 14px; background: var(--e-navy); color: #fff; border: 0; border-radius: 8px; }
.gems-konzept-e .e-kopf .gems-search-ready.gems-search-open .gems-search .wp-block-search__button:hover { background: var(--e-teal); }
.gems-konzept-e .e-kopf .e-suche__zu { display: none; }
.gems-konzept-e .e-kopf .gems-search-open .e-suche__zu { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; min-height: 52px; padding: 0; background: #fff; color: var(--e-navy); border: 1px solid var(--e-linie); border-radius: 8px; cursor: pointer; }
.gems-konzept-e .e-kopf .e-suche__zu:hover { border-color: var(--e-navy); }
.gems-konzept-e .e-kopf .e-suche__zu svg { width: 20px; height: 20px; }

/* ==========================================================================
   0.9.0 Fotobänder schmal: Foto, Markenfarbe und Text bleiben eine Komposition.
   Oben zeigt das Bild sich unter einer leichten Lasur, nach unten wird die Fläche deckender;
   der Text beginnt erst dort (--e-foto-h), wo die Fläche mindestens 90 % deckt. Das Foto füllt nur den
   oberen Teil (Ausschnitt um das Schulgebäude); darunter trägt die Markenfarbe den Abschnitt weiter.
   ========================================================================== */
.e-einstieg.wp-block-cover { background-color: var(--e-navy); }
.e-terminband.wp-block-cover { background-color: #00544D; }
@media (min-width: 782px) and (max-width: 1023px) {
	.e-einstieg .wp-block-cover__background { background: linear-gradient(90deg, rgba(16, 36, 61, .93) 0%, rgba(16, 36, 61, .9) 58%, rgba(16, 36, 61, .5) 82%, rgba(16, 36, 61, .2) 100%) !important; opacity: 1 !important; }
}
@media (max-width: 781px) {
	.e-einstieg { --e-foto-h: clamp(150px, 44vw, 300px); min-height: 0 !important; align-items: flex-end !important; }
	.e-einstieg .wp-block-cover__image-background { top: 0 !important; bottom: auto !important; height: calc(var(--e-foto-h) + 180px) !important; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); object-position: 50% 50% !important; }
	.e-einstieg .wp-block-cover__background { background: linear-gradient(180deg, rgba(16, 36, 61, .05) 0, rgba(16, 36, 61, .35) calc(var(--e-foto-h) - 90px), rgba(16, 36, 61, .9) calc(var(--e-foto-h) - 8px), rgba(16, 36, 61, .94) 100%) !important; opacity: 1 !important; }
	.e-einstieg .wp-block-cover__inner-container { padding: var(--e-foto-h) var(--e-rand) 36px !important; }
}
@media (max-width: 1023px) {
	.e-terminband.wp-block-cover { --e-foto-h: clamp(140px, 36vw, 280px); padding: var(--e-foto-h) var(--e-rand) 44px !important; }
	.e-terminband .wp-block-cover__image-background { top: 0 !important; bottom: auto !important; height: calc(var(--e-foto-h) + 180px) !important; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); object-position: 50% 42% !important; }
	.e-terminband .wp-block-cover__background { background: linear-gradient(180deg, rgba(0, 84, 77, .1) 0, rgba(0, 84, 77, .4) calc(var(--e-foto-h) - 90px), rgba(0, 84, 77, .92) calc(var(--e-foto-h) - 8px), rgba(0, 84, 77, .95) 100%) !important; opacity: 1 !important; }
}

/* ==========================================================================
   0.9.0 Dunkelblauer Fuß: ein Raster, gleiche obere Kante für Marke, Kontakt, Schnellzugriff, Portale
   ========================================================================== */
.gems-konzept-e .e-fuss .e-fuss__raster { display: grid !important; grid-template-columns: minmax(0, 1fr); gap: 36px 40px; align-items: start; }
.gems-konzept-e .e-fuss .e-fuss__raster > * { margin: 0 !important; min-width: 0; grid-column: auto !important; }
.gems-konzept-e .e-fuss .e-fuss__raster > * > :first-child { margin-top: 0 !important; }
.gems-konzept-e .e-fuss .gems-footer__name { margin: 0 !important; }
.gems-konzept-e .e-fuss .gems-footer__logo { width: 52px !important; padding: 5px; border-radius: 8px; }
.gems-konzept-e .e-fuss .gems-footer__marke-name { font-size: 1.1875rem; }
.gems-konzept-e .e-fuss .gems-footer__heading { display: block; font-family: var(--e-kopf); font-size: 1.1875rem; line-height: 1.25; margin: 0 0 16px !important; padding: 0; border: 0; color: #fff; }
.gems-konzept-e .e-fuss .gems-footer__heading::after { width: 32px; height: 3px; margin-top: 8px; background: var(--e-tuerkis); }
.gems-konzept-e .e-fuss .gems-icon { margin: 0 0 10px !important; line-height: 1.5; }
.gems-konzept-e .e-fuss .gems-icon::before { top: .15em; }
.gems-konzept-e .e-fuss ul.is-style-gems-linkliste { margin: 0 !important; }
.gems-konzept-e .e-fuss ul.is-style-gems-linkliste li { margin: 0 !important; }
.gems-konzept-e .e-fuss ul.is-style-gems-linkliste a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 !important; line-height: 1.35; }
@media (min-width: 641px) { .gems-konzept-e .e-fuss .e-fuss__raster { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .gems-konzept-e .e-fuss .e-fuss__raster { grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
	.gems-konzept-e .e-fuss .e-fuss__raster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
	.gems-konzept-e .e-fuss .e-fuss__schule, .gems-konzept-e .e-fuss .e-fuss__kontakt { grid-column: 1 / -1 !important; }
	.gems-konzept-e .e-fuss ul.is-style-gems-linkliste a { min-height: 44px; }
}
@media (max-width: 359px) { .gems-konzept-e .e-fuss .e-fuss__raster { grid-template-columns: minmax(0, 1fr); } }
.gems-konzept-e .e-kopf .gems-search .wp-block-search__input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }

/* ==========================================================================
   0.9.1 Typografie: keine automatische Silbentrennung in Überschriften, Marken, Navigation,
   Brotkrumen, Schaltflächen, Karten- und Partnertiteln. Ursache war das Eltern-Theme
   (theme.css: „hyphens: auto“ auf h1–h4 und auf dem Schulnamen im Fuß). Fließtext bleibt
   unverändert. „break-word“ greift nur, wenn ein Wort sonst über den Rand ragen würde.
   ========================================================================== */
.gems-konzept-e :is(h1, h2, h3, h4, h5, h6, .wp-block-post-title, .wp-block-site-title, .gems-brand__title, .e-marke__name,
	.gems-footer__marke-name, .gems-footer__heading, .e-partner__titel, .e-partner__weitere, .e-karte__titel, .e-meldung__titel,
	.wp-block-navigation, .wp-block-navigation-item__content, .wp-block-navigation-item__label, .wp-block-navigation-submenu__toggle,
	.wp-block-button__link, .wp-element-button, button, .gems-breadcrumbs, .gems-breadcrumbs a, .gems-breadcrumbs span,
	.gems-bereichsnav a, .gems-toc a, .gems-pfeil-link a, a.gems-pfeil-link, .gems-more a, .is-style-e-pfeil a, .gems-postcard__cat a,
	.gems-footer__rechtliches a, .lkwnd-person__name, .lkwnd-person__text strong, .gems-person strong, figcaption strong, .is-style-e-wege li) {
	-webkit-hyphens: none !important;
	hyphens: none !important;
	word-break: normal !important;
}
.gems-konzept-e :is(h1, h2, h3, h4, h5, h6, .wp-block-post-title, .gems-footer__marke-name, .gems-footer__heading, .e-partner__titel,
	.gems-breadcrumbs li > a, .gems-breadcrumbs li > span, .gems-bereichsnav a, .gems-toc a, .gems-footer__rechtliches a) {
	overflow-wrap: break-word !important;
}
/* Schulname im Fuß bewusst zweizeilig: „Gemeinschaftsschule“ / „Marpingen“ (Spans aus inc/ausgabe.php). */
.gems-konzept-e .e-fuss .gems-footer__marke-zeile, .gems-konzept-e .e-fuss .gems-footer__marke-ort { display: block; }
/* Abschlusswege: auf Tablets untereinander, damit „Hauptschulabschluss“ nicht zerfällt. */
@media (min-width: 641px) and (max-width: 1023px) { .is-style-e-wege li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
/* Ab 0.9.6: Zwischenüberschriften im Inhalt (H2) auf schmalen Geräten etwas kleiner, damit lange Einzelwörter
   („Informationsveranstaltungen“, „Qualitätsverbesserungsprozess“) ohne Wortbruch in die Zeile passen.
   Weiterhin keine automatische Silbentrennung; „manual“ lässt nur von der Redaktion gesetzte weiche Trennstellen zu.
   Ab 0.9.7 nur auf normalen Inhaltsseiten (.gems-raster): Leichte Sprache, Rechtstexte, „Seite breit“ und Startseite bleiben unverändert. */
.gems-konzept-e .gems-pagebody__grid.gems-raster > .gems-content :is(h2, h3, h4) { -webkit-hyphens: manual !important; hyphens: manual !important; }
@media (max-width: 400px) { .gems-konzept-e .gems-pagebody__grid.gems-raster > .gems-content h2 { font-size: 1.5rem !important; } }
@media (max-width: 359px) { .gems-konzept-e .gems-pagebody__grid.gems-raster > .gems-content h2 { font-size: 1.3125rem !important; } }
/* Ab 0.9.8: Rechtstexte (Vorlage „seite-rechtstext“: Impressum, Datenschutz, Barrierefreiheit). Lange Einzelwörter
   („Datenschutzeinstellungen“, „Durchsetzungsverfahren“) passen auf schmalen Geräten ohne Wortbruch in die Zeile;
   „text-wrap: pretty“ statt „balance“, damit „E-Mail“ nicht am Bindestrich getrennt wird. Keine automatische Silbentrennung. */
.gems-konzept-e.page-template-seite-rechtstext .gems-content :is(h2, h3, h4) { -webkit-hyphens: manual !important; hyphens: manual !important; text-wrap: pretty; }
@media (max-width: 400px) { .gems-konzept-e.page-template-seite-rechtstext .gems-content h2 { font-size: 1.5rem !important; } }
@media (max-width: 359px) { .gems-konzept-e.page-template-seite-rechtstext .gems-content h2 { font-size: 1.3125rem !important; } }
/* Ab 0.9.9 (T1): Rechtstexte mit eingeschalteter Abschnittsnavigation – unter 1200 px keine visuelle Umordnung per CSS-order
   (Eltern-Theme: toc 1, Inhalt 2). Sichtbare Folge = DOM- und Tab-Folge: Inhalt, danach „Auf dieser Seite“. */
@media (max-width: 1199px) { .gems-konzept-e.page-template-seite-rechtstext .gems-pagebody__grid > * { order: 0; } }
/* Ab 0.9.9 (T2): Startseite, Meldungskarten – der Titel-Link unterdrückt seinen eigenen Fokusrahmen (Klickfläche über die ganze Karte).
   Zum gelben Kartenrahmen kommt beim Tastaturfokus ein Navy-Ring, damit die Kennzeichnung auch auf hellem Grund deutlich ist. */
.gems-konzept-e .e-meldung:has(.e-meldung__titel a:focus-visible) { box-shadow: 0 0 0 9px var(--e-navy), 0 1px 0 0 var(--e-linie); }
/* Ab 0.9.10 (T3): Zierecke „Eckakzent“ (Eltern-Theme: right/bottom -8px). Bis 699 px stehen solche Bilder bündig am Fensterrand
   (z. B. Startseite, Bild 1629) – dort ragte die Ecke 8 px hinaus und erzeugte Querscroll. Ecke rechts nach innen, Akzent bleibt. */
@media (max-width: 699px) { .gems-konzept-e .is-style-gems-eckakzent::after, .gems-konzept-e .gems-foto-akzent::after { right: 0; } }
/* Ab 0.9.10 (T4): Kopf-Suche, solange das Eltern-Skript sie nicht übernommen hat (ohne JavaScript oder vor dem Start):
   sichtbares Formular, flexibel und vollständig im Fenster. Mit JavaScript (.gems-search-ready) bleibt alles wie bisher. */
.gems-konzept-e .e-kopf .e-kopf__oben:not(.gems-search-ready) { flex-wrap: wrap; min-width: 0; max-width: 100%; row-gap: 8px !important; }
.gems-konzept-e .e-kopf .e-kopf__oben:not(.gems-search-ready) .gems-search { flex: 1 1 13rem; min-width: 0; max-width: 100%; width: auto !important; margin: 0; }
.gems-konzept-e .e-kopf .e-kopf__oben:not(.gems-search-ready) .gems-search .wp-block-search__inside-wrapper { display: flex; width: 100% !important; max-width: 100%; min-width: 0; box-sizing: border-box; }
.gems-konzept-e .e-kopf .e-kopf__oben:not(.gems-search-ready) .gems-search .wp-block-search__input { flex: 1 1 auto; width: auto; min-width: 0; min-height: 44px; box-sizing: border-box; }
.gems-konzept-e .e-kopf .e-kopf__oben:not(.gems-search-ready) .gems-search .wp-block-search__button { flex: 0 0 auto; min-width: 44px; min-height: 44px; box-sizing: border-box; }
@media (min-width: 1200px) {
	/* Desktop ohne JavaScript: Leiste „Leichte Sprache + Suche“ über dem Menü statt daneben, sonst zu breit. */
	.gems-konzept-e .e-kopf:not(.gems-nav-collapsible) .e-kopf__rechts:has(> .e-kopf__oben:not(.gems-search-ready)) { flex-direction: column !important; flex-wrap: nowrap !important; align-items: flex-end !important; }
	.gems-konzept-e .e-kopf:not(.gems-nav-collapsible) .e-kopf__oben:not(.gems-search-ready) { order: 0; padding-left: 0; border-left: 0; }
}
/* Ab 0.9.11 (D5-1): Kopf schmal – Schulname, Lupe und Menüknopf überlappen nicht mehr. Ursache: .e-marke (flex 1 1 0, min-width 0)
   schrumpfte unter die Breite von „Gemeinschaftsschule“, der Text lief unter die Lupe. Jetzt behält die Marke ihre Inhaltsbreite;
   passt die Zeile nicht, rücken Lupe und Menü in eine zweite Zeile (bei großer Schrift Logo über dem Namen). Bis 389 px etwas kleinere Abstände. */
@media (max-width: 640px) {
	.gems-konzept-e .e-kopf .e-kopf__inner { flex-wrap: wrap; }
	.gems-konzept-e .e-kopf .e-kopf__inner > .e-marke { flex: 1 0 max-content; max-width: 100%; flex-wrap: wrap; }
}
@media (max-width: 389px) {
	.gems-konzept-e .e-kopf .e-marke__name { font-size: 1rem !important; }
	.gems-konzept-e .e-kopf .e-kopf__inner { column-gap: 8px !important; }
	.gems-konzept-e .e-kopf.gems-nav-collapsible .e-kopf__rechts { column-gap: 6px !important; }
}
@media (max-width: 359px) {
	.gems-konzept-e .e-kopf .e-marke__name { font-size: .9375rem !important; }
	.gems-konzept-e .e-kopf .e-marke .wp-block-site-logo img { width: 40px !important; }
}
/* Ab 0.9.11 (D5-2): Hauptnavigation ohne JavaScript (ohne .gems-nav-enhanced) – Einträge dürfen schmaler als ihr längstes Wort werden
   (min-width:auto war die Ursache des Überlaufs bei großer Schrift); Umbruch nach der Regel aus 0.9.1. Mit JavaScript unverändert. */
.gems-konzept-e .e-kopf:not(.gems-nav-enhanced) .e-nav,
.gems-konzept-e .e-kopf:not(.gems-nav-enhanced) .e-nav :is(.wp-block-navigation__container, .wp-block-navigation-item, .wp-block-navigation-item__content, .wp-block-navigation-item__label, .wp-block-navigation__submenu-container) { min-width: 0; max-width: 100%; }
/* Ab 0.9.11 (D5-3): Startseite schmal mit großer Schrift – kompakte Meldungskarten stapeln Bild und Text, wenn der Text nicht neben das Bild
   passt; Schaltflächen der Themenkarten nutzen bei großer Schrift die volle Kartenbreite (Containerabfrage in em); Fußleisten-Links brechen notfalls um. */
@media (max-width: 640px) {
	.gems-konzept-e .e-meldungen .wp-block-post-template > li + li .e-meldung { flex-wrap: wrap; }
	.gems-konzept-e .e-meldungen .wp-block-post-template > li + li .e-meldung__text { flex: 1 1 9rem; min-width: 0; }
	.gems-konzept-e .e-karte .e-karte__aktion, .gems-konzept-e .e-karte .e-karte__aktion .wp-block-button { min-width: 0; max-width: 100%; }
	.gems-konzept-e .e-fuss__leiste :is(.gems-footer__traeger, .gems-footer__rechtliches, .gems-footer__rechtliches li, .gems-footer__rechtliches a) { min-width: 0; max-width: 100%; }
	.gems-konzept-e .e-fuss__leiste .gems-footer__rechtliches a { overflow-wrap: anywhere !important; }
	.gems-konzept-e .e-karte .wp-block-cover__inner-container { container-type: inline-size; }
}
@container (max-width: 12em) {
	.gems-konzept-e .e-karte .e-karte__aktion { grid-column: 1 / -1; }
}
/* Ab 0.9.11 (D6, optional): Text-Hinterlegung im Einstiegsbild der Startseite – nur mit der Körperklasse .gems-hero-hinterlegung
   (Customizer „Konzept E“ → Schalter, Standard AUS). Ruhige, leicht milchige Fläche nur hinter Titel, Zeile und Absatz, ab 1024 px
   (darunter liegt der Text bereits auf der Markenfläche). Ohne Schalter greift keine dieser Regeln. */
@media (min-width: 1024px) {
	.gems-konzept-e.gems-hero-hinterlegung .e-einstieg .e-einstieg__text:has(> .e-einstieg__titel:first-child + .e-einstieg__claim + .e-einstieg__absatz) { display: grid; grid-template-columns: minmax(0, 1fr); position: relative; z-index: 0; }
	.gems-konzept-e.gems-hero-hinterlegung .e-einstieg .e-einstieg__text:has(> .e-einstieg__titel:first-child + .e-einstieg__claim + .e-einstieg__absatz) > * { grid-column: 1; }
	.gems-konzept-e.gems-hero-hinterlegung .e-einstieg .e-einstieg__text:has(> .e-einstieg__titel:first-child + .e-einstieg__claim + .e-einstieg__absatz) > .e-einstieg__titel { grid-row: 1; }
	.gems-konzept-e.gems-hero-hinterlegung .e-einstieg .e-einstieg__text:has(> .e-einstieg__titel:first-child + .e-einstieg__claim + .e-einstieg__absatz) > .e-einstieg__claim { grid-row: 2; }
	.gems-konzept-e.gems-hero-hinterlegung .e-einstieg .e-einstieg__text:has(> .e-einstieg__titel:first-child + .e-einstieg__claim + .e-einstieg__absatz) > .e-einstieg__absatz { grid-row: 3; }
	.gems-konzept-e.gems-hero-hinterlegung .e-einstieg .e-einstieg__text:has(> .e-einstieg__titel:first-child + .e-einstieg__claim + .e-einstieg__absatz) > .e-einstieg__absatz + * { margin-block-start: max(0px, var(--wp--style--block-gap, 0px) - 26px) !important; }
	.gems-konzept-e.gems-hero-hinterlegung .e-einstieg .e-einstieg__text:has(> .e-einstieg__titel:first-child + .e-einstieg__claim + .e-einstieg__absatz)::before { content: ""; position: relative; z-index: -1; grid-column: 1; grid-row: 1 / 4; margin: -28px -32px 0; border-radius: 14px; background: rgba(16, 36, 61, .62); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); pointer-events: none; }
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
	@media (min-width: 1024px) {
		.gems-konzept-e.gems-hero-hinterlegung .e-einstieg .e-einstieg__text:has(> .e-einstieg__titel:first-child + .e-einstieg__claim + .e-einstieg__absatz)::before { background: rgba(16, 36, 61, .46); -webkit-backdrop-filter: blur(10px) saturate(1.1); backdrop-filter: blur(10px) saturate(1.1); }
	}
}
@media (min-width: 1024px) and (prefers-reduced-transparency: reduce) {
	.gems-konzept-e.gems-hero-hinterlegung .e-einstieg .e-einstieg__text:has(> .e-einstieg__titel:first-child + .e-einstieg__claim + .e-einstieg__absatz)::before { background: rgba(16, 36, 61, .82); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
/* Lange Einzelwörter in großen Überschriften passen auch bei 320 px in die Zeile. */
@media (max-width: 400px) {
	.gems-konzept-e .e-einstieg__titel { font-size: 1.875rem !important; }
	.gems-konzept-e .gems-pagehead h1, .gems-konzept-e .gems-pagehead .wp-block-post-title { font-size: 1.875rem !important; }
	.gems-konzept-e .e-titel, .gems-konzept-e .e-titel--gross, .gems-konzept-e .e-terminband__titel { font-size: 1.75rem !important; }
}
@media (max-width: 359px) {
	.gems-konzept-e .e-einstieg__titel, .gems-konzept-e .gems-pagehead h1, .gems-konzept-e .gems-pagehead .wp-block-post-title { font-size: 1.6875rem !important; }
	.gems-konzept-e .e-titel, .gems-konzept-e .e-titel--gross, .gems-konzept-e .e-terminband__titel { font-size: 1.625rem !important; }
}

/* ==========================================================================
   0.9.1 Partnerleiste: Raster mit 2 / 3 / 4 Spalten, gleich hohe Logofelder,
   Logos unverzerrt (object-fit: contain). Eine unvollständige letzte Reihe steht mittig.
   ========================================================================== */
.gems-konzept-e .e-partner__logos { --e-logo-sp: 2; --e-logo-gap: 20px; display: flex !important; flex-wrap: wrap !important; justify-content: center !important; align-items: stretch !important; gap: var(--e-logo-gap) !important; max-width: 1040px; margin-left: auto !important; margin-right: auto !important; }
.gems-konzept-e .e-partner__logos > .e-partner__logo { flex: 0 0 calc((100% - (var(--e-logo-sp) - 1) * var(--e-logo-gap)) / var(--e-logo-sp)); max-width: calc((100% - (var(--e-logo-sp) - 1) * var(--e-logo-gap)) / var(--e-logo-sp)); margin: 0 !important; min-width: 0; }
.gems-konzept-e .e-partner__logos > .e-partner__logo > a, .gems-konzept-e .e-partner__logos > .e-partner__logo:not(:has(a)) { display: flex; align-items: center; justify-content: center; box-sizing: border-box; height: 100%; min-height: 104px; padding: 14px 16px; border-radius: 8px; }
.gems-konzept-e .e-partner__logos > .e-partner__logo > a:hover { background: var(--e-grau); }
.gems-konzept-e .e-partner__logos > .e-partner__logo img { display: block; width: 100% !important; height: 76px !important; max-width: 200px !important; max-height: none !important; object-fit: contain; object-position: center; margin: 0 auto; }
@media (min-width: 641px) { .gems-konzept-e .e-partner__logos { --e-logo-sp: 3; --e-logo-gap: 24px; } }
@media (min-width: 1024px) { .gems-konzept-e .e-partner__logos { --e-logo-sp: 4; --e-logo-gap: 28px; } .gems-konzept-e .e-partner__logos > .e-partner__logo img { height: 84px !important; } }
@media (max-width: 640px) { .gems-konzept-e .e-partner__logos > .e-partner__logo > a { min-height: 92px; padding: 12px; } .gems-konzept-e .e-partner__logos > .e-partner__logo img { height: 64px !important; } }
@media (max-width: 359px) { .gems-konzept-e .e-partner__logos { --e-logo-gap: 12px; } .gems-konzept-e .e-partner__logos > .e-partner__logo > a { padding: 10px 8px; } .gems-konzept-e .e-partner__logos > .e-partner__logo img { height: 56px !important; } }
