/* ==========================================================================================================================
 * PROTOTYP: Stylesheet des einen Seitengerüsts (scip/script/page.vue.php), gilt für ALLE Vorlagen und Vereine.
 * Vereinsspezifisch sind nur die Farb-/Schrift-Variablen --scip-* (erzeugt von scip/modules/DesignManager/ThemeKit.php, <style id="scip-theme-tokens">)
 * und die data-Attribute. Paletten hell/dunkel und alle Auswahlwerte (Radius, Schriftgröße …) stehen hier (VIBECODING 2026-12-03).
 * Aufbau über data-Attribute am <body>:
 *	data-layout-width	boxed | fluid			Seitenbreite: äußerer Rahmen .scip-shell (Box oder volle Breite)
 *	data-layout-content	full | centered | left	Inhaltsbreite aller .scip-container und des Rasters, nur bei fluid
 *	data-layout-ad		right				Werbefläche rechts neben dem Inhalt (.scip-ad, content_col[3]). Keine Design-Option:
 *						index.vue.php setzt das Attribut automatisch, wenn der Verein einen Banner „rechts“ hat
 *	data-layout-header	large | medium | small | none	Headerbild L, M, S (niedriger, kleinerer Titel), ohne Bild
 *	data-layout-brandbar	solid | overlay			Kopfleiste farbig oder durchsichtig auf dem Headerbild (ab 992 px, mit Headerbild)
 *	data-layout-nav		top | left | right		Unternavigation oben, links oder rechts
 *	data-layout-sidebar	left | right | none		Seitenleiste (content_col[1], v. a. Startseite) links, rechts oder unter dem Inhalt
 *	data-style-*		alle Auswahl-Einstellungen aus config.style (radius, font-size, h1-style, logo-size, show-name …,
 *				ThemeKit::styleOptions()/bodyData()), Abschnitt ERWEITERTE EINSTELLUNGEN; Farben/Schriften nur als Variablen
 *	data-theme-preset	classic | modern | flat (nur zur Information, keine Regeln je Vorlage: Vorlagen sind reine Einstellungswerte)
 * Stabile Klassen für eigenes CSS der Vereine: .scip-header, .scip-brandbar, .scip-hero, .scip-subnav, .scip-main, .scip-aside, .scip-footer
 * ========================================================================================================================== */

/* Fallbacks, falls die Tokens fehlen */
:root {
	--scip-primary: #6AAB36;
	--scip-primary-rgb: 106, 171, 54;
	--scip-primary-strong: #558A2B;
	--scip-on-primary: #FFFFFF;
	--scip-accent: #FFB000;
	--scip-link: #4A7A25;
	--scip-link-rgb: 74, 122, 37;
	--scip-bg: #F2F3F5;
	--scip-surface: #FFFFFF;
	--scip-surface-2: #F7F7F8;
	--scip-text: #1F2328;
	--scip-muted: #5F6670;
	--scip-border: #DEE1E6;
	--scip-font-heading: system-ui, sans-serif;
	--scip-font-body: system-ui, sans-serif;
	--scip-radius: .375rem;
	--scip-header-image: none;

	--scip-max-width: 1240px;
	--scip-content-max-centered: 1400px;	/* Inhaltsbreite zentriert/links bei voller Seitenbreite */
	--scip-ad-width: 300px;			/* Werbefläche rechts (160er und 300er Banner) */
	--scip-ad-space: calc(var(--scip-ad-width) + 1.5rem);	/* Werbefläche inkl. Abstand zum Inhalt */
	--scip-gutter: 1rem;
	--scip-aside-width: 17rem;
	--scip-subnav-width: 14rem;
}

/* Tokens auf Bootstrap abbilden (html[...] ist spezifischer als Bootstraps [data-bs-theme=…]) */
html[data-bs-theme] {
	--bs-primary: var(--scip-primary);
	--bs-primary-rgb: var(--scip-primary-rgb);
	--bs-link-color: var(--scip-link);
	--bs-link-color-rgb: var(--scip-link-rgb);
	--bs-link-hover-color: var(--scip-link);
	--bs-link-hover-color-rgb: var(--scip-link-rgb);
	--bs-body-font-family: var(--scip-font-body);
	--bs-body-bg: var(--scip-surface);
	--bs-body-color: var(--scip-text);
	--bs-secondary-color: var(--scip-muted);
	--bs-border-color: var(--scip-border);
	--bs-border-radius: var(--scip-radius);
	--bs-tertiary-bg: var(--scip-surface-2);
}

/* VIBECODING 2026-12-03: Paletten hell/dunkel (bisher von ThemeKit erzeugt). Vereinsfarben (Links, eigener Hintergrund colorBg)
   setzt ThemeKit mit :root[data-bs-theme=…] (spezifischer) darüber. Werte für die Kontrastrechnung: ThemeKit::SCHEME_REFERENCE */
html[data-bs-theme="light"] {
	--scip-bg: #F2F3F5;
	--scip-surface: #FFFFFF;
	--scip-surface-2: #F7F7F8;
	--scip-text: #1F2328;
	--scip-muted: #5F6670;
	--scip-border: #DEE1E6;
}
html[data-bs-theme="dark"] {
	--scip-bg: #0E0F12;
	--scip-surface: #16181C;
	--scip-surface-2: #1F2228;
	--scip-text: #E6E7EA;
	--scip-muted: #9BA1AB;
	--scip-border: #2C3038;
}

/* VIBECODING 2026-12-03: Eckenradius (Einstellung radius, data-style-radius). --bs-border-radius neu setzen,
   weil html[data-bs-theme] die Variable schon auf <html> mit dem dortigen --scip-radius auflöst */
body[data-style-radius="none"]  { --scip-radius: 0; }
body[data-style-radius="small"] { --scip-radius: .375rem; }
body[data-style-radius="large"] { --scip-radius: 1rem; }
body[data-style-radius] { --bs-border-radius: var(--scip-radius); }

/* VIBECODING: Der Hintergrund von <body> gilt für die ganze Fläche, Größe und Verlauf richten sich aber nach <html>.
   Ohne Mindesthöhe endet <html> bei wenig Inhalt über dem Fensterende und Verlauf/Muster beginnen darunter von vorn. */
html { min-height: 100%; }
body {
	background: var(--scip-bg);
	color: var(--scip-text);
	font-family: var(--scip-font-body);
}
/* Fuß immer unten: Rahmen mindestens fensterhoch, der Inhalt (#scip-page) füllt den Rest */
.scip-shell {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
}
.scip-shell > #scip-page { flex: 1 0 auto; }

h1, h2, h3, h4, h5, h6, .scip-brand {
	font-family: var(--scip-font-heading);
	color: var(--scip-text);
}
h1 {
	font-size: var(--scip-h1-size, clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem));
	font-weight: 600;
	padding-bottom: .4rem;
	margin-bottom: 1rem;
	border-bottom: 2px solid var(--scip-primary);
}
h1 a > i { font-size: 1.2rem; }
h2 { font-size: 1.6rem; font-weight: 500; }
h3 { font-size: 1.3rem; font-weight: 600; }

a { text-underline-offset: .15em; }

.btn-primary {
	--bs-btn-bg: var(--scip-primary);
	--bs-btn-border-color: var(--scip-primary);
	--bs-btn-color: var(--scip-on-primary);
	--bs-btn-hover-bg: var(--scip-primary-strong);
	--bs-btn-hover-border-color: var(--scip-primary-strong);
	--bs-btn-hover-color: var(--scip-on-primary);
	--bs-btn-active-bg: var(--scip-primary-strong);
	--bs-btn-active-border-color: var(--scip-primary-strong);
	--bs-btn-active-color: var(--scip-on-primary);
	/* VIBECODING 2026-12-05: gesperrt (z. B. während des Absendens) und Fokusring, sonst Bootstrap-Blau */
	--bs-btn-disabled-bg: var(--scip-primary);
	--bs-btn-disabled-border-color: var(--scip-primary);
	--bs-btn-disabled-color: var(--scip-on-primary);
	--bs-btn-focus-shadow-rgb: var(--scip-primary-rgb);
}
.btn-outline-primary {
	--bs-btn-color: var(--scip-primary);
	--bs-btn-border-color: var(--scip-primary);
	--bs-btn-hover-bg: var(--scip-primary);
	--bs-btn-hover-border-color: var(--scip-primary);
	--bs-btn-hover-color: var(--scip-on-primary);
	--bs-btn-active-bg: var(--scip-primary);
	--bs-btn-active-border-color: var(--scip-primary);
	--bs-btn-active-color: var(--scip-on-primary);
	--bs-btn-disabled-color: var(--scip-primary);
	--bs-btn-disabled-border-color: var(--scip-primary);
	--bs-btn-focus-shadow-rgb: var(--scip-primary-rgb);
}
/* Formularfelder: Fokus und angehakte Checkbox/Radio/Switch in der Vereinsfarbe statt Bootstrap-Blau (VIBECODING 2026-12-05) */
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
	border-color: color-mix(in srgb, var(--scip-primary) 50%, var(--bs-body-bg));
	box-shadow: 0 0 0 .25rem rgba(var(--scip-primary-rgb), .25);
}
.form-check-input:checked {
	background-color: var(--scip-primary);
	border-color: var(--scip-primary);
}
.form-switch .form-check-input:focus:not(:checked) {
	--bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280, 0, 0, 0.25%29'/%3e%3c/svg%3e");
}
.nav-tabs .nav-link.active { color: var(--scip-link); }
.breadcrumb { font-size: .85rem; margin-bottom: .5rem; }
.breadcrumb a { color: var(--scip-muted); }

/* Seitenbreite: äußerer Rahmen .scip-shell um Kopf, Inhalt und Fuß.
 *	zentriert (boxed)	Box mit --scip-max-width, außen der Seitenhintergrund
 *	volle Breite (fluid)	Flächen von Rand zu Rand */
body[data-layout-width="boxed"] .scip-shell {
	max-width: var(--scip-max-width);
	margin-inline: auto;
	box-shadow: 0 0 0 1px var(--scip-border), 0 10px 30px rgba(0, 0, 0, .08);
}

/* Inhaltsbreite: alle Inhalte (Kopf, Seite, Fuß) innerhalb des Rahmens, nur bei voller Seitenbreite einstellbar.
 *	volle Breite (full)	füllt den Rahmen (in der Box immer)
 *	zentriert (centered)	max. --scip-content-max-centered, mittig
 *	links (left)		max. --scip-content-max-centered, links ausgerichtet */
body { --scip-inner-max: none; }
/* Spalte des Seitenrasters: Inhaltsbreite ohne Innenabstand, damit Seite und Kopf-Inhalte bündig sind */
body { --scip-inner-track: calc(var(--scip-inner-max) - 2 * var(--scip-gutter)); }
body[data-layout-width="fluid"] { --scip-gutter: clamp(1rem, 2.5vw, 2.5rem); }
body[data-layout-width="fluid"][data-layout-content="centered"],
body[data-layout-width="fluid"][data-layout-content="left"] { --scip-inner-max: var(--scip-content-max-centered); }
.scip-container {
	max-width: var(--scip-inner-max);
	margin-inline: auto;
	padding-inline: var(--scip-gutter);
}
body[data-layout-width="fluid"][data-layout-content="left"] .scip-container { margin-left: 0; }

.scip-skip { position: absolute; z-index: 30000; left: 1rem; top: 1rem; background: var(--scip-surface); padding: .5rem 1rem; }

/* ==========================================================================================================================
 * HEADER
 * ========================================================================================================================== */
.scip-topbar {
	background: var(--scip-surface-2);
	border-bottom: 1px solid var(--scip-border);
	font-size: .85rem;
}
.scip-topbar .scip-container { display: flex; justify-content: flex-end; }
.scip-topbar #cms_nav2 { padding: .15rem 0; }
.scip-topbar .nav-link { color: var(--scip-muted); padding: .2rem .6rem !important; }
.scip-topbar .nav-link:hover, .scip-topbar .nav-link.active { color: var(--scip-text); }

/* VIBECODING 2026-11-26: Kopf als Raster mit benannten Bereichen. Die Kopfleiste liegt in ihrem eigenen Bereich (farbig)
 * oder im Bereich des Headerbilds (durchsichtig darauf, data-layout-brandbar="overlay", Abschnitt „Kopfleiste“ unten).
 * Variablen der Kopfleiste:
 *	--scip-brandbar-area	Bereich im Kopf		brandbar | hero
 *	--scip-brandbar-bg	Hintergrund		Vorgabe --scip-primary
 *	--scip-brandbar-color	Text, Navigation	Vorgabe --scip-on-primary
 *	--scip-brandbar-shadow	Textschatten		Vorgabe none
 *	--scip-brandbar-height	Mindesthöhe		4.25rem, mobil 3.5rem */
.scip-header {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-areas: "topbar" "brandbar" "hero";
}
.scip-topbar { grid-area: topbar; }
.scip-hero   { grid-area: hero; }
:root { --scip-brandbar-height: 4.25rem; }	/* an :root, damit auch html (scroll-padding mobil) den Wert kennt */

.scip-brandbar {
	grid-area: var(--scip-brandbar-area, brandbar);
	align-self: start;	/* im Bereich des Headerbilds nur so hoch wie die Leiste */
	z-index: 2;		/* über dem Headerbild, wenn beide im selben Bereich liegen */
	background: var(--scip-brandbar-bg, var(--scip-primary));
	color: var(--scip-brandbar-color, var(--scip-on-primary));
	text-shadow: var(--scip-brandbar-shadow, none);
}
.scip-brandbar .scip-container {
	display: flex;
	align-items: center;
	gap: 1rem;
	min-height: var(--scip-brandbar-height);
}
.scip-brand {
	display: flex;
	align-items: center;
	gap: .75rem;
	color: inherit;
	text-decoration: none;
	font-size: 1.2rem;
	font-weight: 600;
	line-height: 1.15;
	white-space: nowrap;
}
.scip-brand:hover { color: inherit; }
.scip-brand img.scip-brand-logo { height: 3rem; width: auto; }	/* spezifischer als img:not(.no-max-width) { height: auto } aus core.bs5.css */

/* VIBECODING: Wappen & Vereinsname (Design, Formularblock Header: data-style-logo-size fit|large|none, data-style-show-name show|hide) */
body[data-style-logo-size="none"] .scip-brand img.scip-brand-logo { display: none; }
body[data-style-show-name="hide"] .scip-brand-name {	/* nur optisch ausblenden, Screenreader lesen den Namen weiter (Link zur Startseite) */
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
/* "Groß": Wappen ragt über die Leiste nach oben und unten hinaus (wie die bisherige Seite), nur ab 992 px (mobil wie "In der Leiste") */
@media (min-width: 992px) {
	body[data-style-logo-size="large"] .scip-brandbar { position: relative; z-index: 3; }	/* über Servicezeile und Headerbild */
	body[data-style-logo-size="large"] .scip-brand { position: relative; min-height: 3rem; padding-left: var(--scip-logo-large-space, 7.5rem); }
	body[data-style-logo-size="large"] .scip-brand img.scip-brand-logo {
		position: absolute;
		left: 0;
		top: 50%;
		height: var(--scip-logo-large, 8.5rem);
		max-width: var(--scip-logo-large-space, 7.5rem);
		object-fit: contain;
		object-position: left center;
		transform: translateY(-38%);
		filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .3));
	}
	/* Text im Headerbild unter das herausragende Wappen rücken (VIBECODING 2026-11-26: nur Variable, Rechnung in .scip-hero-inner) */
	body[data-style-logo-size="large"] { --scip-hero-offset-logo: 2.5rem; }
}

.scip-brandbar #cms_nav { margin-left: auto; padding: 0; }
.scip-brandbar #cms_nav > ul > li > .nav-link {
	color: var(--scip-brandbar-color, var(--scip-on-primary));
	opacity: .85;
	padding: 1.35rem .8rem;
	font-weight: 500;
}
.scip-brandbar #cms_nav > ul > li > .nav-link:hover,
.scip-brandbar #cms_nav > ul > li > .nav-link.active { opacity: 1; box-shadow: inset 0 -3px 0 currentColor; }

/* Mobile-Button: im Gerüst statt fest oben (überschreibt scip.core.css) */
.scip-brandbar #cms_nav_mobile_btn {
	position: static;
	width: auto;
	height: auto;
	margin: 0;
	background: none;
	box-shadow: none;
}

/* Hell/Dunkel-Umschalter (theme.js), nur wenn der Verein ihn erlaubt */
.scip-scheme-toggle {
	border: 0;
	background: none;
	color: inherit;
	padding: .25rem .5rem;
	line-height: 1;
	border-radius: var(--scip-radius);
}
.scip-scheme-toggle:hover { background: rgba(127, 127, 127, .15); }
.scip-scheme-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.scip-scheme-toggle .fa-sun,
[data-bs-theme="dark"] .scip-scheme-toggle .fa-moon { display: none; }
[data-bs-theme="dark"] .scip-scheme-toggle .fa-sun { display: inline-block; }
.scip-topbar .scip-scheme-toggle { color: var(--scip-muted); font-size: .85rem; margin-left: .25rem; }
.scip-brandbar .scip-scheme-toggle { margin-left: auto; font-size: 1.2rem; }
.scip-topbar .scip-container { align-items: center; }
.scip-brandbar #cms_nav_mobile_btn .navbar-toggler { color: inherit; font-size: 1.5rem; padding: .25rem .5rem; }

/* Desktop-/Mobil-Navigation umschalten (bisher in style.core.css/_navigation.scss, die hier nicht geladen werden) */
@media (min-width: 992px) {
	#cms_nav_mobile { display: none; }
}
@media (max-width: 991.98px) {
	#cms_nav, #cms_nav2 { display: none; }
	body.cms-content-nav .scip-footer { margin-bottom: 5.5rem; }
	.scip-topbar { display: none; }
	/* VIBECODING 2026-11-26: Kopfleiste mobil/Tablet immer fest oben (Menü immer erreichbar). Bisher sticky, das hielt nur,
	   solange der Kopf sichtbar war (sticky bleibt im Elternelement .scip-header). Die Zeile „brandbar“ im Kopfraster
	   hält den Platz frei, die Leiste hat dafür eine feste Höhe (Vereinsname höchstens zwei Zeilen). */
	:root { --scip-brandbar-height: 3.5rem; scroll-padding-top: var(--scip-brandbar-height); }	/* Sprungmarken nicht unter der Leiste */
	.scip-header { grid-template-rows: auto var(--scip-brandbar-height) auto; }
	.scip-brandbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1030; box-shadow: 0 1px 6px rgba(0, 0, 0, .15); }
	.scip-brandbar .scip-container { height: var(--scip-brandbar-height); }
	.scip-brand img.scip-brand-logo { height: 2.4rem; }
	.scip-brand { font-size: 1.05rem; white-space: normal; }
	.scip-brand-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
}

/* Headerbild L, M, S (large, medium, small): gleiches Bild, Höhe siehe Abschnitt „Headerbild: Größe“ */
.scip-hero { display: none; }
body:is([data-layout-header="large"], [data-layout-header="medium"], [data-layout-header="small"]) .scip-hero {
	display: block;
	color: #fff;
	text-shadow: 0 2px 6px rgba(0, 0, 0, .45);
	background-color: var(--scip-primary-strong);
	/* Headerbild der Seite (Hauptnavigationspunkt, am <body> gesetzt) vor dem Headerbild des Designs */
	background-image:
		linear-gradient(90deg, rgba(0, 0, 0, var(--scip-hero-shade-1, .45)), rgba(0, 0, 0, var(--scip-hero-shade-2, .05))),
		var(--scip-page-header-image, var(--scip-header-image)),
		linear-gradient(135deg, var(--scip-primary), var(--scip-primary-strong));
	background-size: cover;
	background-position: center;
	transition: opacity .25s ease;
}
body:is([data-layout-header="large"], [data-layout-header="medium"], [data-layout-header="small"]) .scip-hero.is-swapping { opacity: .35; }
/* VIBECODING: Maße nur aus Variablen. Welche Werte gelten (L/M/S, Mobil), steht allein im Abschnitt „Headerbild: Größe“ */
/* Versatz oben (VIBECODING 2026-11-26): --scip-hero-offset-bar = Kopfleiste liegt auf dem Bild (Bild wird um ihre Höhe größer),
   --scip-hero-offset-logo = großes Wappen ragt ins Bild */
.scip-hero-inner {
	min-height: calc(var(--scip-hero-height) + var(--scip-hero-offset-bar, 0px));
	padding-block: var(--scip-hero-pad);
	padding-top: calc(var(--scip-hero-pad) + var(--scip-hero-offset-bar, 0px) + var(--scip-hero-offset-logo, 0px));
	display: flex;
	flex-direction: column;
	justify-content: center;
	font-family: var(--scip-font-heading);
	font-size: var(--scip-hero-font-size);
	line-height: var(--scip-hero-line-height, var(--bs-body-line-height));
}
.scip-hero-inner p { margin: 0; }
/* Titel des Vereins (hp_header_title, HTML mit eigener Schriftgröße im style-Attribut): Inline-Styles lassen sich nur per Selektor
   und !important überschreiben. Deshalb bleibt hier der Selektor, der Wert kommt aber aus --scip-hero-title-size.
   Nur bei S und mobil, sonst gilt die Schriftgröße aus dem Editor. */
body[data-layout-header="small"] .scip-hero-inner p[style*="font-size"] { font-size: var(--scip-hero-title-size) !important; line-height: 1.15; }
@media (max-width: 991.98px) {
	.scip-hero-inner p[style*="font-size"] { font-size: var(--scip-hero-title-size) !important; }
}

/* Headerbild "Ohne" (none): farbige Leiste wie bei L/M/S, nur ohne Bild (.scip-hero ist ausgeblendet) */

/* Mobile Navigation im Offcanvas */
/* VIBECODING 2026-11-26: modernisiert. Das HTML der Liste kommt unverändert aus CORE_Navi() (scip.core.js):
 *	li > span.nav-opener (Auf/Zu, Font-Awesome-Pfeil, JS wechselt fa-caret-down/-up) + a.nav-link + ul.collapse (Unterebene)
 * Variablen:
 *	--scip-offcanvas-width		Breite (höchstens 88 % des Fensters)
 *	--scip-mnav-row			Höhe einer Zeile (Tippfläche, mind. 44 px)
 *	--scip-mnav-active-bg		Hintergrund des aktiven Eintrags */
.scip-offcanvas {
	--scip-offcanvas-width: 20rem;
	--scip-mnav-row: 3rem;
	--scip-mnav-active-bg: rgba(var(--scip-primary-rgb), .12);
	--bs-offcanvas-width: min(var(--scip-offcanvas-width), 88vw);
	--bs-offcanvas-bg: var(--scip-surface);
	--bs-offcanvas-color: var(--scip-text);
	--bs-offcanvas-border-width: 0;
	box-shadow: -8px 0 30px rgba(0, 0, 0, .18);
}
.scip-offcanvas .offcanvas-header {
	gap: .75rem;
	min-height: var(--scip-brandbar-height);
	padding: .5rem .75rem .5rem 1rem;
	border-bottom: 1px solid var(--scip-border);
}
.scip-offcanvas .scip-brand { font-size: 1rem; color: var(--scip-text); min-width: 0; }
.scip-offcanvas .scip-brand img.scip-brand-logo { height: 2.25rem; }
.scip-offcanvas .btn-close { margin: 0 0 0 auto; padding: .75rem; border-radius: 50%; }	/* hell auf dunkel: Bootstrap 5.3 über [data-bs-theme=dark] */
.scip-offcanvas .offcanvas-body { padding: .5rem 0 1.5rem !important; }

#cms_nav_mobile ul { list-style: none; margin: 0; padding: 0; }
#cms_nav_mobile > ul:first-child { padding: 0 .5rem; }
#cms_nav_mobile li { position: relative; }
#cms_nav_mobile .nav-link,
#cms_nav_mobile .nav-header {
	display: flex;
	align-items: center;
	gap: .5rem;
	min-height: var(--scip-mnav-row);
	padding: .5rem calc(var(--scip-mnav-row) + .25rem) .5rem .75rem;	/* rechts Platz für den Auf/Zu-Knopf */
	border-radius: var(--scip-radius);
	color: var(--scip-text);
	font-weight: 500;
	line-height: 1.25;
	transition: background-color .15s ease;
}
#cms_nav_mobile .nav-header { color: var(--scip-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
#cms_nav_mobile .nav-link:hover { background: var(--scip-surface-2); }
#cms_nav_mobile .nav-link.active { background: var(--scip-mnav-active-bg); color: var(--scip-link); font-weight: 600; }
/* CORE_Navi markiert die ganze Kette als active: Fläche nur für die aktuelle Seite, übergeordnete nur farbig */
#cms_nav_mobile li:has(ul .nav-link.active) > .nav-link.active { background: none; }

/* Unterebenen: eingerückt mit Linie, etwas kleiner */
#cms_nav_mobile ul ul {
	margin: .125rem 0 .375rem 1.25rem;
	padding-left: .5rem;
	border-left: 2px solid var(--scip-border);
}
#cms_nav_mobile ul ul .nav-link { min-height: 2.5rem; font-size: .95rem; font-weight: 400; color: var(--scip-muted); }
#cms_nav_mobile ul ul .nav-link.active { color: var(--scip-link); font-weight: 600; }

/* Auf/Zu: runder Knopf rechts, Pfeil dreht sich (immer dasselbe Zeichen, Drehung je nach Klasse aus dem JS) */
#cms_nav_mobile .nav-opener {
	position: absolute;
	right: 0;
	top: 0;
	z-index: 1;
	display: grid;
	place-items: center;
	width: var(--scip-mnav-row);
	height: var(--scip-mnav-row);
	border-radius: 50%;
	color: var(--scip-muted);
	cursor: pointer;
}
#cms_nav_mobile ul ul .nav-opener { width: 2.5rem; height: 2.5rem; }
#cms_nav_mobile .nav-opener:hover { background: var(--scip-surface-2); color: var(--scip-text); }
#cms_nav_mobile .nav-opener i { font-size: .8rem; transition: transform .2s ease; }
#cms_nav_mobile .nav-opener i::before { content: "\f078"; }	/* fa-chevron-down statt fa-caret-down/-up */
#cms_nav_mobile .nav-opener .fa-caret-up { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) {
	#cms_nav_mobile .nav-opener i, #cms_nav_mobile .nav-link { transition: none; }
}

/* Social Media (zweite Liste, nur Symbole): runde Knöpfe unten */
#cms_nav_mobile > ul + ul {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin: 1rem 1.25rem 0;
	padding: 1rem 0 0;
	border-top: 1px solid var(--scip-border) !important;
}
#cms_nav_mobile > ul + ul .nav-link {
	justify-content: center;
	width: 2.75rem;
	min-height: 2.75rem;
	padding: 0;
	border-radius: 50%;
	background: var(--scip-surface-2);
	font-size: 1.1rem;
}

/* ==========================================================================================================================
 * SEITE: Inhaltsbreite, Werbefläche, Raster (Anordnung je nach Layout)
 * ========================================================================================================================== */
#scip-page { min-height: 50vh; background: var(--scip-surface); }

/* Seitenraster in der Inhaltsbreite (wie die .scip-container im Kopf/Fuß), Werbefläche in einer Spalte rechts:
 *	Rand | Inhalt | Rand.  Box und volle Breite + „volle Breite“: Inhalt füllt alles.  zentriert/links: max. --scip-inner-max */
.scip-page-wrap {
	position: relative;
	display: grid;
	grid-template-columns: 0 minmax(0, 1fr) 0;
	padding-inline: var(--scip-gutter);
}
body[data-layout-width="fluid"][data-layout-content="centered"] .scip-page-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, var(--scip-inner-track)) minmax(0, 1fr); }
body[data-layout-width="fluid"][data-layout-content="left"] .scip-page-wrap { grid-template-columns: 0 minmax(0, var(--scip-inner-track)) minmax(0, 1fr); }

.scip-page-grid {
	grid-column: 2;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-areas: "main" "aside";
	gap: var(--scip-gap-y, 1.5rem) var(--scip-gap-x, 2rem);
	padding-block: var(--scip-pad-top, 1.25rem) var(--scip-pad-bottom, 2rem);
}

/* Werbefläche rechts (content_col[3]), nur mit data-layout-ad="right" (= Banner vorhanden) und ab 1200 px (wie content_col_right der Live-Seite) */
.scip-ad { display: none; }
@media (min-width: 1200px) {
	/* volle Seitenbreite: rechte Spalte mindestens so breit wie die Werbefläche, der Inhalt rückt dafür nach links bzw. wird schmaler */
	body[data-layout-ad="right"][data-layout-width="fluid"] .scip-page-wrap { grid-template-columns: 0 minmax(0, 1fr) var(--scip-ad-space); }
	body[data-layout-ad="right"][data-layout-width="fluid"][data-layout-content="centered"] .scip-page-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, var(--scip-inner-track)) minmax(var(--scip-ad-space), 1fr); }
	body[data-layout-ad="right"][data-layout-width="fluid"][data-layout-content="left"] .scip-page-wrap { grid-template-columns: 0 minmax(0, var(--scip-inner-track)) minmax(var(--scip-ad-space), 1fr); }
	body[data-layout-ad="right"][data-layout-width="fluid"] .scip-ad {
		display: block;
		grid-column: 3;
		justify-self: start;
		width: var(--scip-ad-width);
		margin-left: 1.5rem;
	}
	/* Kopf- und Fußinhalte weichen der Werbefläche genauso aus wie die Seite (bündig mit dem Seitenraster).
	   Die Flächen von Kopf und Fuß bleiben volle Breite. Gleiche Rechnung wie die Spalten oben, nur über Rand/Breite. */
	body[data-layout-ad="right"][data-layout-width="fluid"] .scip-container {
		max-width: min(var(--scip-inner-max), calc(100% - var(--scip-ad-space)));
		margin-left: 0;
		margin-right: auto;
	}
	body[data-layout-ad="right"][data-layout-width="fluid"]:not([data-layout-content="centered"]):not([data-layout-content="left"]) .scip-container {
		max-width: calc(100% - var(--scip-ad-space));
	}
	body[data-layout-ad="right"][data-layout-width="fluid"][data-layout-content="centered"] .scip-container {
		margin-left: max(0px, min(calc((100% - var(--scip-inner-max)) / 2), calc(100% - var(--scip-inner-max) - var(--scip-ad-space))));
	}
	/* zentrierte Box: Werbefläche außerhalb der Box rechts, Box und Werbung zusammen mittig, nie breiter als das Fenster */
	body[data-layout-ad="right"][data-layout-width="boxed"] .scip-shell {
		max-width: min(var(--scip-max-width), calc(100% - var(--scip-ad-space)));
		margin-left: max(0px, calc((100% - var(--scip-max-width) - var(--scip-ad-space)) / 2));
		margin-right: auto;
	}
	body[data-layout-ad="right"][data-layout-width="boxed"] .scip-ad {
		display: block;
		position: absolute;
		top: 0;
		bottom: 0;
		left: calc(100% + 1.5rem);
		width: var(--scip-ad-width);
	}
	.scip-ad-inner { position: sticky; top: 1rem; padding-block: 1.25rem; }
}
.scip-subnav { grid-area: subnav; display: none; }
.scip-main   { grid-area: main; min-width: 0; }
.scip-aside  { grid-area: aside; }

/* VIBECODING 2026-11-28: Volle Breite auf dem Handy (unter 768 px) für einzelne Blöcke, z. B. Spielelisten und Tabellen.
 * .cms-offset-padding (bisherige Klasse, core.css gleicht nur den Innenabstand von .cms-content aus) bzw. .scip-full-mobile
 * (neuer Name, gleiche Wirkung): der Block reicht bis an den Bildschirmrand, ausgeglichen werden Seitenrand (--scip-gutter)
 * und Innenabstand des Inhalts (--scip-main-pad = padding von .cms-content). Überschriften im Block behalten den Seitenrand. */
.scip-main { --scip-main-pad: 15px; }
@media (max-width: 767.98px) {
	.scip-main.cms-content :is(.cms-offset-padding, .scip-full-mobile) {
		margin-inline: calc(-1 * (var(--scip-gutter) + var(--scip-main-pad)));
	}
	.scip-main.cms-content :is(.cms-offset-padding, .scip-full-mobile) :is(.cms-offset-padding, .scip-full-mobile) {
		margin-inline: 0;	/* verschachtelt: nur der äußere Block rückt heraus */
	}
	.scip-main.cms-content :is(.cms-offset-padding, .scip-full-mobile) > :is(h1, h2, h3) {
		padding-inline: var(--scip-gutter);
	}
}

@media (min-width: 992px) {
	.scip-subnav { display: block; }

	/* Unternavigation oben */
	body[data-layout-nav="top"] .has-subnav { grid-template-areas: "subnav" "main" "aside"; }
	body[data-layout-nav="top"][data-layout-sidebar="right"] .has-aside {
		grid-template-columns: minmax(0, 1fr) var(--scip-aside-width);
		grid-template-areas: "main aside";
	}
	body[data-layout-nav="top"][data-layout-sidebar="right"] .has-subnav.has-aside { grid-template-areas: "subnav subnav" "main aside"; }

	/* Unternavigation links */
	body[data-layout-nav="left"] .has-subnav {
		grid-template-columns: var(--scip-subnav-width) minmax(0, 1fr);
		grid-template-areas: "subnav main" "subnav aside";
	}
	body[data-layout-nav="left"][data-layout-sidebar="right"] .has-aside {
		grid-template-columns: minmax(0, 1fr) var(--scip-aside-width);
		grid-template-areas: "main aside";
	}
	body[data-layout-nav="left"][data-layout-sidebar="right"] .has-subnav.has-aside {
		grid-template-columns: var(--scip-subnav-width) minmax(0, 1fr) var(--scip-aside-width);
		grid-template-areas: "subnav main aside";
	}

	/* Unternavigation rechts. Mit Seitenleiste rechts: beide in einer Spalte, Navigation oben, Seitenleiste darunter */
	body[data-layout-nav="right"] .has-subnav {
		grid-template-columns: minmax(0, 1fr) var(--scip-subnav-width);
		grid-template-areas: "main subnav" "aside subnav";
	}
	body[data-layout-nav="right"][data-layout-sidebar="right"] .has-aside {
		grid-template-columns: minmax(0, 1fr) var(--scip-aside-width);
		grid-template-areas: "main aside";
	}
	body[data-layout-nav="right"][data-layout-sidebar="right"] .has-subnav.has-aside {
		grid-template-columns: minmax(0, 1fr) var(--scip-aside-width);
		grid-template-rows: auto 1fr;
		grid-template-areas: "main subnav" "main aside";
	}
	/* beide rechts übereinander: nicht mitlaufen, sonst überlagern sie sich beim Scrollen */
	body[data-layout-nav="right"][data-layout-sidebar="right"] .has-subnav.has-aside :is(.scip-subnav, .scip-aside) { position: static; }

	/* VIBECODING: Seitenleiste links (Spiegelbild der Regeln für rechts) */
	body[data-layout-sidebar="left"] .has-aside {
		grid-template-columns: var(--scip-aside-width) minmax(0, 1fr);
		grid-template-areas: "aside main";
	}
	body[data-layout-nav="top"][data-layout-sidebar="left"] .has-subnav.has-aside { grid-template-areas: "subnav subnav" "aside main"; }
	body[data-layout-nav="right"][data-layout-sidebar="left"] .has-subnav.has-aside {
		grid-template-columns: var(--scip-aside-width) minmax(0, 1fr) var(--scip-subnav-width);
		grid-template-areas: "aside main subnav";
	}
	/* Navigation und Seitenleiste links: beide in einer Spalte, Navigation oben, ohne Mitlaufen */
	body[data-layout-nav="left"][data-layout-sidebar="left"] .has-subnav.has-aside {
		grid-template-columns: var(--scip-aside-width) minmax(0, 1fr);
		grid-template-rows: auto 1fr;
		grid-template-areas: "subnav main" "aside main";
	}
	body[data-layout-nav="left"][data-layout-sidebar="left"] .has-subnav.has-aside :is(.scip-subnav, .scip-aside) { position: static; }
	/* VIBECODING 2026-11-25: Seitenleiste läuft nicht mehr mit (war sticky, lange Inhalte waren erst am Seitenende erreichbar) */
	body:is([data-layout-sidebar="right"], [data-layout-sidebar="left"]) .scip-aside { align-self: start; }
}

/* Unternavigation: dieselbe Liste, oben als Reiter, links bzw. rechts als Spalte */
.scip-subnav-list, .scip-subnav-list ul { list-style: none; margin: 0; padding: 0; }
.scip-subnav .nav-link { color: var(--scip-text); }

body[data-layout-nav="top"] .scip-subnav { border-bottom: 1px solid var(--scip-border); }
body[data-layout-nav="top"] .scip-subnav-list { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1rem; }
body[data-layout-nav="top"] .scip-subnav-list ul { display: none; }
body[data-layout-nav="top"] .scip-subnav .nav-link { padding: .6rem .25rem; border-bottom: 3px solid transparent; margin-bottom: -1px; }
body[data-layout-nav="top"] .scip-subnav .nav-link:hover { border-bottom-color: var(--scip-border); }
body[data-layout-nav="top"] .scip-subnav .nav-link.active { border-bottom-color: var(--scip-primary); font-weight: 600; }

/* VIBECODING 2026-11-25: läuft nicht mehr mit (war sticky, lange Listen waren erst am Seitenende erreichbar) */
body:is([data-layout-nav="left"], [data-layout-nav="right"]) .scip-subnav { align-self: start; }
body:is([data-layout-nav="left"], [data-layout-nav="right"]) .scip-subnav .nav-link { display: block; padding: .45rem .75rem; border-radius: var(--scip-radius); }
body:is([data-layout-nav="left"], [data-layout-nav="right"]) .scip-subnav .nav-link:hover { background: var(--scip-surface-2); }
body:is([data-layout-nav="left"], [data-layout-nav="right"]) .scip-subnav .nav-link.active { background: rgba(var(--scip-primary-rgb), .12); color: var(--scip-link); font-weight: 600; }
body:is([data-layout-nav="left"], [data-layout-nav="right"]) .scip-subnav-list ul { padding-left: .75rem; font-size: .93em; }

/* Seitenleiste */
.scip-aside {
	background: var(--scip-surface-2);
	border-radius: var(--scip-radius);
	padding: 1rem;
	text-align: center;
	font-size: .95em;
}
.scip-aside .google-auto-placed { display: none !important; }
/* Seitenleiste "Ausblenden": gar nicht anzeigen (auch mobil). Per CSS statt im PHP, damit die Live-Vorschau ohne Neuladen umschalten kann */
body[data-layout-sidebar="none"] .scip-aside { display: none; }
.scip-aside img { max-width: 100%; height: auto; }

/* ==========================================================================================================================
 * VIBECODING 2026-11-26: ABSCHNITTE ÜBER DIE VOLLE BREITE (.scip-band)
 * Die Fläche reicht bis an den Rand der Seite (volle Breite: Fensterrand, zentrierte Box: Rand der Box), der Inhalt bleibt
 * bündig mit der Inhaltsspalte. Technik: border-image mit Überstand (outset) nach links und rechts. Das verändert das Layout
 * nicht und erzeugt keinen waagerechten Scrollbalken.
 * Steht ab 992 px eine Unternavigation oder Seitenleiste neben dem Inhalt, wird der Abschnitt eine normale Fläche mit Ecken
 * (sonst liefe die Fläche unter beide). Mobil steht alles untereinander, dort immer volle Breite.
 *
 * Varianten und Layouts setzen nur Variablen:
 *	--scip-band-bg			Hintergrund			Vorgabe --scip-surface-2
 *	--scip-band-color		Text				Vorgabe --scip-text
 *	--scip-band-link		Links ohne Klasse		Vorgabe --scip-link
 *	--scip-band-pad			Abstand oben/unten		Vorgabe 2.5rem
 *	--scip-band-gap			Abstand zu anderem Inhalt	Vorgabe 2rem (aufeinanderfolgende Abschnitte stoßen aneinander)
 *	--scip-band-outset		Überstand der Fläche		am body: 100vmax, zentrierte Box: --scip-gutter (bis zum Rand der Box)
 *	--scip-band-bleed		none = kein Überstand		am Raster gesetzt, wenn etwas neben dem Inhalt steht
 *	--scip-band-radius, --scip-band-pad-x, --scip-band-join		Ecken, Innenabstand seitlich, Anstoßen (nur als normale Fläche)
 *
 * Verwendung (Editor, Seitenskripte, Vue-Bausteine):
 *	<section class="scip-band"> … </section>
 *	<section class="scip-band scip-band-primary"> … </section>
 *	<section class="scip-band" style="--scip-band-bg: #1B3A2A; --scip-band-color: #FFFFFF"> … </section>
 * ========================================================================================================================== */
body { --scip-band-outset: 100vmax; }
body[data-layout-width="boxed"] { --scip-band-outset: var(--scip-gutter); }

.scip-band {
	color: var(--scip-band-color, var(--scip-text));
	background: var(--scip-band-bg, var(--scip-surface-2));
	/* Fläche links/rechts verlängern: einfarbiges Bild (conic-gradient), „fill“ füllt die Mitte, outset = Überstand */
	border-image-source: var(--scip-band-bleed, conic-gradient(var(--scip-band-bg, var(--scip-surface-2)) 0 0));
	border-image-slice: 0 fill;
	border-image-outset: 0 var(--scip-band-outset);
	border-radius: var(--scip-band-radius, 0);
	padding: var(--scip-band-pad, 2.5rem) var(--scip-band-pad-x, 0);
	margin-block: var(--scip-band-gap, 2rem);
}
.scip-band + .scip-band { margin-top: var(--scip-band-join, calc(-1 * var(--scip-band-gap, 2rem))); }
.scip-band :is(h1, h2, h3, h4, h5, h6) { color: inherit; }
.scip-band a:not([class]) { color: var(--scip-band-link, var(--scip-link)); }

/* Farbvarianten (nur Variablen, Rollen-Farben: Kontrast für Text berechnet ThemeKit) */
.scip-band-primary { --scip-band-bg: var(--scip-primary); --scip-band-color: var(--scip-on-primary); --scip-band-link: var(--scip-on-primary); }
.scip-band-accent  { --scip-band-bg: var(--scip-accent);  --scip-band-color: var(--scip-on-accent);  --scip-band-link: var(--scip-on-accent); }

/* Etwas steht neben dem Inhalt: normale Fläche. Gesetzt am Raster, damit die Live-Vorschau beim Umschalten sofort stimmt */
@media (min-width: 992px) {
	body:is([data-layout-nav="left"], [data-layout-nav="right"]) .scip-page-grid.has-subnav,
	body:is([data-layout-sidebar="left"], [data-layout-sidebar="right"]) .scip-page-grid.has-aside {
		--scip-band-bleed: none;
		--scip-band-radius: var(--scip-radius);
		--scip-band-pad-x: 1.25rem;
		--scip-band-join: 0;
	}
}

/* ==========================================================================================================================
 * FOOTER (immer dunkel)
 * ========================================================================================================================== */
.scip-footer {
	background: #17191D;
	color: #B9BEC7;
	padding-block: 1.5rem;
	font-size: .9rem;
}
.scip-footer-inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.scip-footer-brand { display: flex; gap: .75rem; align-items: center; }
.scip-footer a { color: #E4E6EA; }
.scip-footer #cms_nav_footer { padding: 0; }
.scip-footer #cms_nav_footer ul { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.scip-footer #cms_nav_footer .nav-link { color: #B9BEC7; padding: 0; }
.scip-footer #cms_nav_footer .nav-link:hover { color: #fff; }

/* ==========================================================================================================================
 * ERWEITERTE EINSTELLUNGEN (Gruppe style, ThemeKit::styleOptions()): data-style-* am <body>
 * Nur Rollen-Farben (--scip-primary, --scip-accent, --scip-text …), damit Hell/Dunkel und Kontrast weiter stimmen.
 * ========================================================================================================================== */

/* Überschrift H1: Stil */
body[data-style-h1-style="accent"] h1,
body[data-style-h1-style="none"] h1 { border-bottom: 0; }
body[data-style-h1-style="accent"] h1::after { content: ""; display: block; width: 3rem; height: 4px; margin-top: .45rem; border-radius: 2px; background: var(--scip-accent); }
body[data-style-h1-style="filled"] h1 {
	border: 0;
	padding: .35rem .8rem;
	border-radius: var(--scip-radius);
	background: var(--scip-primary);
	color: var(--scip-on-primary);
}
body[data-style-h1-style="filled"] h1 a { color: inherit; }
/* H1: Größe */
body[data-style-h1-size="s"]  { --scip-h1-size: clamp(1.4rem, 1.15rem + 1vw, 1.8rem); }
body[data-style-h1-size="l"]  { --scip-h1-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.7rem); }
body[data-style-h1-size="xl"] { --scip-h1-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.3rem); }

/* Überschriften H2/H3 */
body[data-style-h2-style="underline"] :is(.scip-main, .scip-aside) :is(h2, h3) { padding-bottom: .3rem; border-bottom: 1px solid var(--scip-border); }
body[data-style-h2-style="accent"] :is(.scip-main, .scip-aside) :is(h2, h3)::after { content: ""; display: block; width: 2rem; height: 3px; margin-top: .3rem; border-radius: 2px; background: var(--scip-accent); }

/* Grundschrift (Bootstrap liest --bs-body-font-size am body) */
body[data-style-font-size="sm"] { --bs-body-font-size: .9375rem; }
body[data-style-font-size="lg"] { --bs-body-font-size: 1.0625rem; }
body[data-style-font-size="xl"] { --bs-body-font-size: 1.125rem; }

/* Seitenhintergrund (sichtbar vor allem bei zentrierter Seitenbreite, außerhalb der Box) */
body[data-style-background="gradient"] { background: linear-gradient(180deg, rgba(var(--scip-primary-rgb), .14), var(--scip-bg) 28rem) no-repeat var(--scip-bg); }	/* no-repeat: nie von vorn beginnen */
body[data-style-background="pattern"] {
	background-color: var(--scip-bg);
	background-image: radial-gradient(rgba(var(--scip-primary-rgb), .18) 1px, transparent 1.5px);
	background-size: 16px 16px;
}

/* Headerbild: Abdunklung */
/* Headerbild: Größe. VIBECODING: Hier werden NUR Variablen gesetzt, gelesen von .scip-hero-inner.
 *	--scip-hero-height		Mindesthöhe
 *	--scip-hero-pad			Abstand oben/unten
 *	--scip-hero-font-size		Grundschrift im Headerbild
 *	--scip-hero-line-height		Zeilenhöhe (ohne Angabe wie die Seite)
 *	--scip-hero-title-size		Titel des Vereins (nur bei S und mobil, sonst Schriftgröße aus dem Editor)
 * M ist die Vorgabe am body. Eigenes CSS eines Vereins kann jeden Wert einzeln überschreiben, z. B.
 *	body[data-layout-header="large"] { --scip-hero-height: 28rem; } */
body {
	--scip-hero-height: 13rem;
	--scip-hero-pad: 2.5rem;
	--scip-hero-font-size: 1.15rem;
}
body[data-layout-header="large"] { --scip-hero-height: 20rem;  --scip-hero-pad: 4rem; }
body[data-layout-header="small"] {
	--scip-hero-height: 6.5rem;
	--scip-hero-pad: 1.25rem;
	--scip-hero-font-size: .95rem;
	--scip-hero-line-height: 1.25;
	--scip-hero-title-size: 2.1rem;
}
/* Mobil: L und M gleich (wie bisher), S niedriger */
@media (max-width: 991.98px) {
	body,
	body[data-layout-header="large"] { --scip-hero-height: 8rem; --scip-hero-pad: 1.5rem; --scip-hero-font-size: 1rem; --scip-hero-title-size: 2rem; }
	body[data-layout-header="small"] { --scip-hero-height: 5rem; --scip-hero-pad: 1rem;   --scip-hero-title-size: 1.5rem; }
}

/* Kopfleiste (VIBECODING 2026-11-26): „Über dem Bild“ legt die Leiste in den Bereich des Headerbilds, durchsichtig mit
 * Verlauf für die Lesbarkeit. Das Bild wird um die Höhe der Leiste größer, der Kopf ist insgesamt so hoch wie bei „Farbig“.
 * Nur ab 992 px und nur mit Headerbild (mobil bleibt die Leiste farbig und klebt oben, ohne Bild gäbe es keinen Untergrund). */
@media (min-width: 992px) {
	body[data-layout-brandbar="overlay"]:not([data-layout-header="none"]) {
		--scip-brandbar-area: hero;
		--scip-brandbar-bg: linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
		--scip-brandbar-color: #FFFFFF;
		--scip-brandbar-shadow: 0 1px 4px rgba(0, 0, 0, .45);
		--scip-hero-offset-bar: var(--scip-brandbar-height);
	}
}
body[data-style-hero-overlay="none"]   { --scip-hero-shade-1: 0;   --scip-hero-shade-2: 0; }	/* VIBECODING: ohne Regel griff der Fallback .45 (= Mittel) */
body[data-style-hero-overlay="light"]  { --scip-hero-shade-1: .2;  --scip-hero-shade-2: 0; }
body[data-style-hero-overlay="strong"] { --scip-hero-shade-1: .65; --scip-hero-shade-2: .3; }

/* Abstände im Seitenraster */
body[data-style-density="compact"] { --scip-gap-y: 1rem;    --scip-gap-x: 1.25rem; --scip-pad-top: .75rem; --scip-pad-bottom: 1.25rem; }
body[data-style-density="airy"]    { --scip-gap-y: 2.25rem; --scip-gap-x: 3rem;    --scip-pad-top: 2rem;   --scip-pad-bottom: 3rem; }

/* Seitenleiste (Fläche | Karte | Ohne), VIBECODING: gilt auch für die Unternavigation, wenn sie seitlich steht (links/rechts) */
body:is([data-layout-nav="left"], [data-layout-nav="right"]) .scip-subnav { background: var(--scip-surface-2); border-radius: var(--scip-radius); padding: .5rem; }
body[data-style-aside-style="card"] .scip-aside,
body:is([data-layout-nav="left"], [data-layout-nav="right"])[data-style-aside-style="card"] .scip-subnav { background: var(--scip-surface); border: 1px solid var(--scip-border); box-shadow: 0 2px 10px rgba(0, 0, 0, .05); }
body[data-style-aside-style="plain"] .scip-aside,
body:is([data-layout-nav="left"], [data-layout-nav="right"])[data-style-aside-style="plain"] .scip-subnav { background: none; padding: 0; border: 0; box-shadow: none; }


/* ==========================================================================================================================
 * Hinweis bei geteiltem Vorschau-Link (?design=<token>)
 * ========================================================================================================================== */
.scip-preview-bar {
	position: fixed; left: 50%; bottom: 1rem; z-index: 21000; transform: translateX(-50%);
	display: flex; gap: .75rem; align-items: center; max-width: calc(100% - 2rem);
	padding: .5rem 1rem; border-radius: 2rem;
	background: #1F2328; color: #fff; font: 500 .875rem/1.3 system-ui, sans-serif;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
}
.scip-preview-bar a { color: #FFD666; white-space: nowrap; }

/* Im iframe des Design-Managers kein Panel und kein Vorschau-Hinweis */
.scip-in-designer .scip-design-panel, .scip-in-designer .scip-preview-bar { display: none !important; }

/* ==========================================================================================================================
 * Ladebalken (router.js)
 * ========================================================================================================================== */
#scip-progress { background: var(--scip-accent); }

