/*
Theme Name: SC Drehscheibe
Theme URI: https://sc-drehscheibe.de/
Author: SC Drehscheibe e.V.
Description: Theme für den SC Drehscheibe e.V. — Reha- und Gesundheitssport in Berlin Pankow. Umsetzung der Design-Variante 2b (Banner + Farbband).
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sc-drehscheibe
Tags: custom-logo, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   1. Design-Tokens
   ========================================================================== */

:root {
	--scd-navy: #163a5f;
	--scd-navy-2: #2f6f9e;
	--scd-navy-3: #3f88bd;
	--scd-petrol: #0f7078;
	--scd-petrol-2: #14868f;
	--scd-orange: #e87d2b;
	--scd-orange-2: #f09a45;
	--scd-yellow: #f4b41f;
	--scd-yellow-2: #c98a1a;
	--scd-green: #4a8f6b;

	--scd-muted: #6b7c90;
	--scd-sand: #f5f3ee;
	--scd-leer: #7b8794; /* Platzhalter fuer fehlende Fotos; Weiss darauf 3,7:1 */
	--scd-white: #fff;
	--scd-footer-fg: #c3d0de;

	--scd-hairline: rgba(22, 58, 95, .12);
	--scd-hairline-soft: rgba(22, 58, 95, .08);

	--scd-container: 1180px;
	--scd-gutter: 44px;

	/*
	 * Innenabstand für randlose Sektionen (Farbband, Termine-Spalte): schiebt
	 * deren Inhalt auf die Container-Kante, während die Farbfläche bis zum
	 * Viewport-Rand läuft.
	 */
	--scd-bleed: max(
		var(--scd-gutter),
		calc((100vw - var(--scd-container)) / 2 + var(--scd-gutter))
	);
	--scd-radius: 8px;
	--scd-radius-lg: 16px;

	--scd-font: 'Libre Franklin', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--scd-mono: ui-monospace, Menlo, Consolas, monospace;
}

/* ==========================================================================
   2. Reset / Basis
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	/* Sandton wie auf der Startseite — Unterseiten sollen nicht weiss wirken. */
	background: var(--scd-sand);
	color: var(--scd-navy);
	font-family: var(--scd-font);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--scd-petrol);
}

a:hover,
a:focus-visible {
	color: var(--scd-navy);
}

h1, h2, h3, h4 {
	font-weight: 800;
	letter-spacing: -.3px;
	line-height: 1.15;
}

:focus-visible {
	outline: 3px solid var(--scd-orange);
	outline-offset: 2px;
	border-radius: 3px;
}

.scd-container {
	max-width: var(--scd-container);
	margin-inline: auto;
	padding-inline: var(--scd-gutter);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	background: var(--scd-white);
	color: var(--scd-navy);
	padding: 12px 20px;
	font-weight: 700;
	border-radius: 0 0 var(--scd-radius) 0;
}

.skip-link:focus {
	left: 0;
}

/* ==========================================================================
   3. Buttons
   ========================================================================== */

.scd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 28px;
	border: 1.5px solid transparent;
	border-radius: var(--scd-radius);
	font-family: inherit;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.scd-btn:hover {
	transform: translateY(-1px);
}

.scd-btn--primary {
	background: var(--scd-orange);
	color: var(--scd-white);
}

.scd-btn--primary:hover,
.scd-btn--primary:focus-visible {
	background: #d76d1e;
	color: var(--scd-white);
}

.scd-btn--ghost {
	background: rgba(255, 255, 255, .15);
	border-color: rgba(255, 255, 255, .5);
	color: var(--scd-white);
	font-weight: 700;
}

.scd-btn--ghost:hover,
.scd-btn--ghost:focus-visible {
	background: rgba(255, 255, 255, .28);
	color: var(--scd-white);
}

.scd-btn--accent {
	background: var(--scd-yellow);
	color: var(--scd-navy);
	padding: 11px 22px;
}

.scd-btn--accent:hover,
.scd-btn--accent:focus-visible {
	background: #e2a413;
	color: var(--scd-navy);
}

/* ==========================================================================
   4. Header
   ========================================================================== */

.scd-header {
	background: var(--scd-navy);
	color: var(--scd-white);
	position: relative;
	z-index: 20;
}

.scd-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-block: 14px;
}

.scd-brand {
	display: flex;
	align-items: center;
	gap: 16px;
	text-decoration: none;
	color: inherit;
	flex: none;
}

/* Header-Link behält beim Hover seine helle Farbe — sonst dunkelblauer Text
   auf dunkelblauem Header (unsichtbar). */
.scd-brand:hover,
.scd-brand:focus-visible {
	color: inherit;
}

.scd-brand__mark {
	background: var(--scd-yellow);
	border-radius: 12px;
	padding: 6px;
	display: flex;
	flex: none;
}

.scd-brand__mark img {
	width: 72px;
	height: 72px;
	object-fit: contain;
}

/*
 * Desktop: das Logo-Kaestchen waechst ueber die Leiste hinaus (09/2026).
 *
 * Der negative untere Aussenabstand nimmt es aus der Hoehenberechnung des
 * Headers heraus — Flexbox richtet an der Margin-Box aus, die dadurch so hoch
 * bleibt wie vorher. Die Leiste behaelt also ihre Hoehe, das Kaestchen ragt
 * nach unten ins Bild. Der Header hat bereits position:relative und z-index:20,
 * deshalb liegt es ueber dem Inhalt und wird nirgends abgeschnitten.
 *
 * Bewusst erst ab 1101px: darunter greift der bestehende Zwischenschritt, der
 * das Logo auf 62px setzt, damit die Menuezeile nicht umbricht.
 */
@media (min-width: 1101px) {
	/*
	 * Schmalere Leiste: der Innenabstand geht von 14 auf 12 px zurueck, und
	 * der negative Aussenabstand des Logos waechst entsprechend mit. Die
	 * Hoehe der Leiste ergibt sich aus der Margin-Box des Logos — wird die
	 * kleiner, wird die Leiste niedriger und der Ueberstand groesser.
	 */
	.scd-header__inner {
		padding-block: 12px;
	}

	.scd-brand__mark {
		padding: 10px;
		margin-bottom: -66px;
		box-shadow: 0 10px 26px rgba(11, 30, 52, .32);
	}

	.scd-brand__mark img {
		width: 110px;
		height: 110px;
	}
}

.scd-brand__text {
	font-weight: 800;
	font-size: 22px;
	letter-spacing: .1px;
	white-space: nowrap;
}

.scd-nav {
	display: flex;
	align-items: center;
	gap: 26px;
	font-size: 18px;
	font-weight: 600;
}

.scd-nav__menu {
	display: flex;
	align-items: center;
	gap: 26px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.scd-nav__menu a {
	color: var(--scd-white);
	text-decoration: none;
	padding-block: 4px;
	border-bottom: 2px solid transparent;
	transition: border-color .18s ease;
	white-space: nowrap;
}

.scd-nav__menu a:hover,
.scd-nav__menu a:focus-visible,
.scd-nav__menu .current-menu-item > a,
.scd-nav__menu .current_page_item > a {
	color: var(--scd-white);
	border-bottom-color: var(--scd-yellow);
}

/* Untermenüs */
.scd-nav__menu li {
	position: relative;
}

.scd-nav__menu .sub-menu {
	position: absolute;
	top: 100%;
	/*
	 * An der rechten Kante des Elternpunkts ausgerichtet, nicht an der linken.
	 * Mit left:0 stand die 220px breite Liste bei Menuepunkten am rechten
	 * Seitenrand ueber den Viewport hinaus — und weil visibility:hidden den
	 * Platz weiterhin belegt, erzeugte das eine waagerechte Scrollleiste,
	 * ohne dass etwas zu sehen war.
	 */
	right: 0;
	margin: 8px 0 0;
	padding: 8px 0;
	list-style: none;
	min-width: 220px;
	background: var(--scd-white);
	border-radius: var(--scd-radius);
	box-shadow: 0 12px 32px rgba(22, 58, 95, .2);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

.scd-nav__menu li:hover > .sub-menu,
.scd-nav__menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.scd-nav__menu .sub-menu a {
	display: block;
	padding: 9px 18px;
	color: var(--scd-navy);
	border-bottom: 0;
	font-weight: 600;
}

.scd-nav__menu .sub-menu a:hover {
	background: var(--scd-sand);
	color: var(--scd-petrol);
}

.scd-nav__toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 0;
	background: transparent;
	border: 1.5px solid rgba(255, 255, 255, .3);
	border-radius: var(--scd-radius);
	cursor: pointer;
}

.scd-nav__toggle span {
	display: block;
	width: 20px;
	height: 2px;
	margin-inline: auto;
	background: var(--scd-white);
	transition: transform .2s ease, opacity .2s ease;
}

.scd-nav__toggle[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.scd-nav__toggle[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.scd-nav__toggle[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   5. Hero
   ========================================================================== */

.scd-hero {
	position: relative;
	/* Waechst mit der Breite (26.10.2026), aus demselben Grund wie der
	   Seitenkopf: bei 1280 px wie bisher 540 px, darueber hoeher. */
	min-height: clamp(420px, 42vw, 760px);
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(120deg, var(--scd-petrol), var(--scd-navy-2));
	background-size: cover;
	/* Standard ohne Fokuspunkt: Köpfe im oberen Bilddrittel. Mit Fokuspunkt
	   ueberschreibt ein style-Attribut diese Zeile. */
	background-position: center 22%;
	overflow: hidden;
	isolation: isolate;
}

/* Diagonale Struktur — nur ohne Foto sichtbar */
.scd-hero:not(.scd-hero--has-image)::before {
	content: "";
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(
		135deg,
		rgba(255, 255, 255, .05),
		rgba(255, 255, 255, .05) 22px,
		transparent 22px,
		transparent 44px
	);
	z-index: -1;
}

/*
 * Mit Foto (26.10.2026): Die Schrift sitzt nicht mehr frei auf dem Bild —
 * auf einem unruhigen Foto war sie trotz Kontur schwer lesbar und lag ueber
 * den Gesichtern. Stattdessen ein deckender dunkelblauer Balken ueber die
 * volle Breite im unteren Drittel; die oberen zwei Drittel bleiben fuer die
 * Koepfe frei (Fokuspunkt beachtet das ohnehin).
 */
.scd-hero--has-image {
	align-items: flex-end;
}

.scd-hero--has-image::before {
	content: none;
}

.scd-hero--has-image .scd-hero__band {
	width: 100%;
	/* Ein Viertel der Hero-Hoehe; Prozent greift bei min-height nicht. */
	min-height: calc(clamp(420px, 42vw, 760px) / 4);
	/* --scd-navy, leicht durchscheinend; Weiss darauf bleibt deutlich ueber 7:1 */
	background: rgba(22, 58, 95, .82);
	display: flex;
	align-items: center;
}

/* Ohne Foto bleibt der Balken unsichtbar, nur ein Durchreicher. */
.scd-hero__band {
	width: 100%;
}

.scd-hero--has-image .scd-hero__inner {
	padding-block: 16px 18px;
}

.scd-hero--has-image .scd-hero__bubble {
	max-width: min(980px, 100%);
}

.scd-hero--has-image .scd-hero__title {
	font-size: clamp(30px, 2.9vw, 46px);
	line-height: 1.12;
	margin-bottom: 8px;
	text-shadow: none;
}

.scd-hero--has-image .scd-hero__text {
	font-size: clamp(16px, 1.3vw, 20px);
	color: #dbe6f1;
	margin-bottom: 0;
	text-shadow: none;
	max-width: none;
}

.scd-hero--has-image .scd-hero__actions {
	margin-top: 18px;
}

.scd-hero__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding-block: 64px;
	width: 100%;
}

.scd-hero__title {
	font-size: 56px;
	line-height: 1.04;
	margin: 0 0 18px;
	color: var(--scd-white);
	font-weight: 800;
	letter-spacing: -.5px;
	text-shadow: 0 2px 24px rgba(0, 0, 0, .3);
	text-wrap: balance;
}

.scd-hero__text {
	font-size: 20px;
	color: #eaf2f0;
	margin: 0 0 26px;
	max-width: 640px;
	text-shadow: 0 1px 14px rgba(0, 0, 0, .5);
}

.scd-hero__actions {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	justify-content: center;
}

/* ==========================================================================
   6. Farbband (USPs)
   ========================================================================== */

/*
 * Nicht drei gleiche Drittel des Fensters, sondern drei gleiche *Textflaechen*.
 * Die aeusseren Felder tragen zusaetzlich den Rand ausserhalb des Containers,
 * denn dort steckt ihre Polsterung (--scd-bleed). Mit starren Dritteln wuerde
 * diese Polsterung mit dem Fenster wachsen und den Text zusammendruecken — ab
 * etwa 1500 px brach "Erfahrene Trainer*innen" deshalb um.
 */
.scd-band {
	/*
	 * Bewusst 100% statt 100vw: 100vw schliesst die Scrollleiste mit ein. Auf
	 * Systemen mit sichtbarer Leiste (Windows) waere das Band dann um deren
	 * Breite zu breit und die Seite scrollte waagerecht.
	 */
	--scd-band-edge: max(0px, calc((100% - var(--scd-container)) / 2));
	--scd-band-col: calc((100% - 2 * var(--scd-band-edge)) / 3);
	display: grid;
	grid-template-columns:
		calc(var(--scd-band-edge) + var(--scd-band-col))
		var(--scd-band-col)
		calc(var(--scd-band-edge) + var(--scd-band-col));
}

.scd-band__item {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 30px 34px;
	color: var(--scd-white);
	text-decoration: none;
}

.scd-band__item--petrol {
	background: var(--scd-petrol);
}

.scd-band__item--orange {
	background: var(--scd-orange);
}

.scd-band__item--yellow {
	background: var(--scd-yellow);
	color: var(--scd-navy);
}

/* Äußere Felder auf die Container-Kante einrücken */
.scd-band__item:first-child {
	padding-left: var(--scd-bleed);
}

.scd-band__item:last-child {
	padding-right: var(--scd-bleed);
}

.scd-band__icon {
	font-size: 30px;
	line-height: 1;
	flex: none;
}

.scd-band__title {
	font-weight: 800;
	font-size: 18px;
	line-height: 1.25;
	/* Einzeilig gewuenscht — die Spaltenaufteilung oben schafft den Platz dafuer. */
	white-space: nowrap;
}

a.scd-band__item:hover {
	filter: brightness(1.07);
	color: var(--scd-white);
}

a.scd-band__item--yellow:hover {
	color: var(--scd-navy);
}

/* ==========================================================================
   7. Sektions-Grundlagen
   ========================================================================== */

.scd-section {
	padding-block: 52px;
}

.scd-section--sand {
	background: var(--scd-sand);
	border-top: 1px solid var(--scd-hairline-soft);
}

.scd-section__title {
	font-size: 30px;
	margin: 0 0 6px;
	font-weight: 800;
}

.scd-section__lead {
	margin: 0 0 26px;
	color: var(--scd-muted);
	font-size: 16px;
}

.scd-eyebrow {
	font-size: 12px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--scd-orange);
	font-weight: 800;
	margin-bottom: 12px;
}

/* ==========================================================================
   8. Sportangebote
   ========================================================================== */

.scd-sportarten {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.scd-card {
	border-radius: var(--scd-radius-lg);
	overflow: hidden;
	border: 1px solid var(--scd-hairline);
	background: var(--scd-white);
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	transition: transform .2s ease, box-shadow .2s ease;
}

.scd-card:hover,
.scd-card:focus-visible {
	transform: translateY(-3px);
	box-shadow: 0 14px 34px rgba(22, 58, 95, .16);
	color: inherit;
}

.scd-card__media {
	height: 150px;
	background: linear-gradient(135deg, var(--scd-navy), var(--scd-petrol));
	position: relative;
	overflow: hidden;
	flex: none;
}

.scd-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.scd-card__body {
	padding: 18px;
}

.scd-card__title {
	font-weight: 800;
	font-size: 19px;
	margin: 0;
	line-height: 1.25;
}

.scd-card__text {
	color: var(--scd-muted);
	font-size: 15px;
	margin: 4px 0 0;
	line-height: 1.5;
}

/* Kachel ohne Foto (10/2026): einheitlich grau statt bunter Verlaeufe —
   ein Platzhalter, bis der Verein ein Foto liefert. Gleicher Ton wie der
   graue Seitenkopf. */
.scd-card__media--leer { background: var(--scd-leer); }

/* ==========================================================================
   9. Veranstaltungen + Video
   ========================================================================== */

.scd-split {
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	background: var(--scd-sand);
	border-top: 1px solid var(--scd-hairline-soft);
}

.scd-split__col {
	padding: 48px var(--scd-gutter);
	min-width: 0;
}

.scd-split__col--events {
	padding-left: var(--scd-bleed);
}

.scd-split__title {
	font-size: 26px;
	margin: 0 0 20px;
	font-weight: 800;
}

.scd-events {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.scd-event {
	display: flex;
	gap: 18px;
	align-items: center;
	padding: 16px;
	border-radius: 12px;
	background: var(--scd-white);
	text-decoration: none;
	color: inherit;
	transition: transform .18s ease, box-shadow .18s ease;
}

a.scd-event:hover,
a.scd-event:focus-visible {
	transform: translateX(3px);
	box-shadow: 0 8px 22px rgba(22, 58, 95, .12);
	color: inherit;
}

.scd-event__date {
	text-align: center;
	min-width: 54px;
	flex: none;
}

.scd-event__day {
	font-size: 24px;
	font-weight: 800;
	line-height: 1;
	color: var(--scd-petrol);
}

.scd-event__month {
	font-size: 12px;
	color: var(--scd-muted);
	font-weight: 700;
	text-transform: uppercase;
}

/*
 * Kategorie (10/2026), Farben wie die Kaesten auf der Seite Veranstaltungen:
 * Tagesausflug petrol, Donnerstags Treff orange. Ein Balken links plus
 * Datum und Kategoriezeile in derselben Farbe — erkennbar auch ohne die
 * Beschriftung zu lesen, aber nie nur ueber die Farbe.
 */
.scd-event--fahrten,
.scd-event--donnerstag {
	--scd-kat: var(--scd-petrol);
	box-shadow: inset 5px 0 0 var(--scd-kat);
	padding-left: 21px;
}

.scd-event--donnerstag {
	--scd-kat: var(--scd-orange);
}

.scd-event--fahrten .scd-event__day,
.scd-event--donnerstag .scd-event__day,
.scd-event--fahrten .scd-event__eyebrow,
.scd-event--donnerstag .scd-event__eyebrow {
	color: var(--scd-kat);
}

a.scd-event--fahrten:hover,
a.scd-event--fahrten:focus-visible,
a.scd-event--donnerstag:hover,
a.scd-event--donnerstag:focus-visible {
	box-shadow: inset 5px 0 0 var(--scd-kat), 0 8px 22px rgba(22, 58, 95, .12);
}

.scd-event__title {
	font-weight: 800;
	font-size: 16px;
	margin: 0;
	line-height: 1.3;
}

.scd-event__meta {
	color: var(--scd-muted);
	font-size: 14px;
}

/* Trainersuche als Eintrag in der Aktuelles-Liste: statt Datum ein Symbol,
   dazu ein oranger Akzent, damit sie sich von den Terminen abhebt. */
.scd-event__badge {
	width: 54px;
	height: 54px;
	flex: none;
	border-radius: 50%;
	background: rgba(232, 125, 43, .14);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	line-height: 1;
}

.scd-event__eyebrow {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .8px;
	text-transform: uppercase;
	color: var(--scd-orange);
	margin-bottom: 3px;
}

.scd-event--trainer {
	border: 1px solid rgba(232, 125, 43, .28);
}

.scd-event__cta {
	color: var(--scd-orange);
	font-weight: 700;
	margin-top: 4px;
}

/* Der Pfeil nur, wenn der Eintrag wirklich verlinkt ist. */
a.scd-event .scd-event__cta::after {
	content: " →";
}

/* Foto am Rand einer Sportangebot-Seite (10/2026): Bild-Block mit
   Ausrichtung "rechts". Auf breiten Bildschirmen fliesst der Text links
   daran vorbei, auf dem Handy steht das Foto volle Breite ueber dem Text. */
.scd-content .wp-block-image.alignright,
.scd-content figure.alignright {
	float: right;
	width: min(42%, 340px);
	margin: 6px 0 18px 32px;
}

.scd-content .wp-block-image.alignright img,
.scd-content figure.alignright img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
}

/* Ueberschriften und Listen nicht neben das Foto quetschen, wenn nur
   noch ein schmaler Streifen bleibt — Listen laufen sauber weiter. */
.scd-content ul {
	overflow: hidden;
}

/* Breites Foto im Seiteninhalt (Team-Seite). */
.scd-content .wp-block-image.size-large img {
	width: 100%;
	height: auto;
}

/* Mehrere Buttons nebeneinander im Seitentext (Anmeldeformulare). */
.scd-content .scd-btnrow {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* Kennzeichnung "Mit und ohne Reha-Verordnung" ueber dem Sporttext. */
.scd-content .scd-tag {
	display: inline-block;
	margin: 0 0 6px;
	padding: 4px 12px;
	border-radius: 999px;
	background: rgba(15, 112, 120, .1);
	color: var(--scd-petrol);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .4px;
}

.scd-content .scd-tag + h2 {
	margin-top: 12px;
}

/* Veranstaltungs-Seite: Terminliste per Shortcode [scd_termine]. Gleiches
   Markup wie "Aktuelles" auf der Startseite, aber mitten im Seiteninhalt —
   dessen Listen- und h3-Stile muessen hier wieder raus. */
.scd-content .scd-termine {
	padding-left: 0;
	margin-block: 8px 24px;
}

.scd-content .scd-termine li {
	margin: 0;
}

.scd-content .scd-termine .scd-event {
	border: 1px solid var(--scd-hairline-soft);
}

.scd-content .scd-termine .scd-event__title {
	font-size: 17px;
	margin: 0;
}

.scd-termine__leer {
	padding: 16px 18px;
	border: 1px dashed var(--scd-hairline);
	border-radius: 12px;
	color: var(--scd-muted);
}

/* Kacheln fuer Wiederkehrendes (Tagesausfluege, Drehkreisel). Gruppen-Bloecke
   mit Klasse scd-tiles / scd-tile — im Editor frei bearbeitbar, eine weitere
   Kachel ist einfach ein weiterer Gruppen-Block.
   Klassische Themes packen den Inhalt einer Gruppe in einen inneren
   Wrapper — das Raster gehoert dann auf den, nicht auf die Gruppe selbst. */
.scd-content .scd-tiles > .wp-block-group__inner-container,
.scd-content .scd-tiles:not(:has(> .wp-block-group__inner-container)) {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
	margin-block: 8px 24px;
}

.scd-content .scd-tile {
	background: var(--scd-white);
	/* Rundum farbig gerahmt (26.10.2026), oben etwas kraeftiger. */
	border: 2px solid var(--scd-petrol);
	border-top-width: 5px;
	border-radius: var(--scd-radius-lg);
	padding: 20px 22px 10px;
	display: flex;
	flex-direction: column;
}

.scd-content .scd-tile:nth-child(2n) {
	border-color: var(--scd-orange);
}

/* Klassisches Theme: der Inhalt steckt im inneren Gruppen-Wrapper. */
.scd-content .scd-tile > .wp-block-group__inner-container {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.scd-content .scd-tile__icon {
	font-size: 30px;
	line-height: 1;
	margin: 0 0 10px;
}

.scd-content .scd-tile__title {
	font-size: 20px;
	margin: 0 0 2px;
}

.scd-content .scd-tile__when {
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .6px;
	text-transform: uppercase;
	color: var(--scd-petrol);
	margin: 0 0 10px;
}

.scd-content .scd-tile:nth-child(2n) .scd-tile__when {
	color: var(--scd-orange);
}

/* Kontakt unten in der Kachel; margin-top:auto haelt ihn in beiden Kacheln
   auf einer Linie, auch wenn die Texte verschieden lang sind. */
.scd-content .scd-tile__kontakt {
	margin: auto 0 10px;
	padding-top: 12px;
	border-top: 1px solid var(--scd-hairline);
	font-size: 15px;
	font-weight: 700;
}

.scd-video {
	aspect-ratio: 16 / 9;
	background: var(--scd-navy);
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.scd-video iframe,
.scd-video video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.scd-video__play {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--scd-white);
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
}

.scd-video__play::before {
	content: "";
	width: 0;
	height: 0;
	border-left: 17px solid var(--scd-orange);
	border-top: 10px solid transparent;
	border-bottom: 10px solid transparent;
	margin-left: 5px;
}

.scd-video__note {
	margin: 14px 0 0;
	color: var(--scd-muted);
	font-size: 14px;
	line-height: 1.55;
}

/* ==========================================================================
   10. Footer
   ========================================================================== */

.scd-footer {
	background: var(--scd-navy);
	color: var(--scd-footer-fg);
	font-size: 14px;
	line-height: 1.7;
}

.scd-footer__inner {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	padding-block: 40px;
}

.scd-footer__heading {
	color: var(--scd-white);
	font-weight: 700;
	margin-bottom: 8px;
}

.scd-footer__heading--brand {
	font-weight: 800;
	font-size: 16px;
}

.scd-footer a {
	color: var(--scd-footer-fg);
	text-decoration: none;
}

.scd-footer a:hover,
.scd-footer a:focus-visible {
	color: var(--scd-white);
	text-decoration: underline;
}

.scd-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.scd-footer__legal li:not(:last-child)::after {
	content: " ·";
}

/* ==========================================================================
   11. Inhaltsseiten (page/single/archive)
   ========================================================================== */

.scd-pagehead {
	background: var(--scd-navy);
	color: var(--scd-white);
	padding-block: 48px;
}

.scd-pagehead__title {
	margin: 0;
	font-size: 40px;
	color: var(--scd-white);
}

.scd-pagehead__meta {
	margin: 10px 0 0;
	color: #9fb6cc;
	font-size: 14px;
}

/*
 * Seitentitel unter dem Foto statt darin (26.10.2026), siehe
 * scd_page_header(). Gleiche Spalte wie der Text darunter; die folgende
 * Sektion rueckt nach oben, sonst klafft zwischen Titel und Text eine Luecke.
 */
.scd-titel {
	padding-top: 44px;
}

.scd-titel__inner {
	max-width: 760px;
	margin-inline: auto;
}

.scd-titel__inner--breit {
	max-width: none;
}

.scd-titel__title {
	margin: 0;
	font-size: 40px;
	line-height: 1.1;
	color: var(--scd-navy);
}

.scd-titel__meta {
	margin: 8px 0 0;
	color: var(--scd-muted);
	font-size: 15px;
}

.scd-titel + .scd-section {
	padding-top: 26px;
}

/* Beginnt der Text mit einer Zwischenueberschrift, entfaellt deren Abstand. */
.scd-titel + .scd-section .scd-content > :first-child {
	margin-top: 0;
}

/* Seite ohne Foto (10/2026): grau statt navy, damit sichtbar bleibt, dass
   hier noch ein Bild fehlt. Gleiche Hoehe wie mit Foto, sonst springt das
   Layout, sobald eins nachgeliefert wird. */
.scd-pagehead--leer {
	background: var(--scd-leer);
}

/*
 * Hoehe von Foto- und grauem Kopf (26.10.2026): waechst mit der Fensterbreite
 * statt fest zu sein. Bei fester Hoehe und "cover" blieb auf breiten
 * Bildschirmen nur ein schmaler Streifen des Fotos uebrig (bei 2560 px nur
 * ein Sechstel der Bildhoehe) — Koepfe fielen heraus. 24vw entspricht bei
 * 1280 px der bisherigen Hoehe von rund 310 px; darueber waechst der Kopf mit,
 * bis 520 px. So bleibt von einem 3:2-Foto bis etwa 2200 px Fensterbreite
 * gleichbleibend gut ein Drittel der Bildhoehe sichtbar. Die Grenzen halten
 * den Kopf auf dem Handy flach und auf sehr grossen Monitoren unter der
 * halben Bildschirmhoehe. Was dann noch abgeschnitten wird, regelt der
 * Fokuspunkt (inc/fokuspunkt.php).
 */
.scd-pagehead--leer,
.scd-pagehead--has-image {
	min-height: clamp(220px, 24vw, 520px);
	display: flex;
	align-items: center;
}

.scd-pagehead--leer > .scd-container,
.scd-pagehead--has-image > .scd-container {
	width: 100%;
}

/* Foto-Hero auf Unterseiten: Bild als Hintergrund, abgedunkelt für Lesbarkeit. */
.scd-pagehead--has-image {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background-size: cover;
	/* Standard ohne Fokuspunkt: Köpfe liegen meist im oberen Bilddrittel.
	   Mit Fokuspunkt ueberschreibt ein style-Attribut diese Zeile. */
	background-position: center 28%;
	background-repeat: no-repeat;
}

/* Wie beim Hero: kein Kasten (09/2026), weisse Schrift mit schwarzer Kontur. */
.scd-pagehead--has-image::before {
	content: none;
}

/*
 * Mittig wie auf der Startseite (09/2026). Das Zentrieren steht bewusst
 * ungebunden an der Blase und nicht an .scd-pagehead--has-image: so sitzt der
 * Text auch dann mittig, wenn eine Seite einmal ohne Kopfbild auskommt und
 * nur das dunkelblaue Band zeigt.
 */
.scd-pagehead__bubble {
	text-align: center;
	margin-inline: auto;
}

.scd-pagehead--has-image .scd-pagehead__bubble {
	/* Vom Kasten bleibt nur die Zeilenlaenge. */
	max-width: min(720px, 100%);
}

.scd-pagehead--has-image .scd-pagehead__title {
	color: var(--scd-white);
	/* Duenner als im Hero — 40px Schrift statt 56px. */
	-webkit-text-stroke: 2.2px #000;
	paint-order: stroke fill;
	text-shadow:
		2px 3px 4px rgba(0, 0, 0, .45),
		0 2px 16px rgba(0, 0, 0, .4);
}

.scd-pagehead--has-image .scd-container {
	position: relative;
}

/* Meta und Brotkrumen wie der Titel: weiss auf dem Foto, mit Kontur. */
.scd-pagehead--has-image .scd-pagehead__meta,
.scd-pagehead--has-image .scd-crumbs,
.scd-pagehead--has-image .scd-crumbs a {
	color: var(--scd-white);
	/*
	 * Deutlich duenner: bei 14px wuerde eine kraeftige Kontur die Buchstaben
	 * zulaufen lassen. Den groesseren Teil der Trennung uebernimmt hier der
	 * enge Schatten, nicht die Kontur.
	 */
	-webkit-text-stroke: 1px #000;
	paint-order: stroke fill;
	text-shadow:
		1px 2px 2px rgba(0, 0, 0, .55),
		0 1px 6px rgba(0, 0, 0, .55);
}

.scd-pagehead--has-image .scd-crumbs a:hover {
	color: var(--scd-white);
	text-decoration: underline;
}

.scd-content {
	max-width: 760px;
	margin-inline: auto;
	font-size: 17px;
	line-height: 1.7;
}

.scd-content h2 { font-size: 28px; margin: 40px 0 12px; }
.scd-content h3 { font-size: 22px; margin: 32px 0 10px; }
.scd-content p { margin: 0 0 18px; }
.scd-content ul,
.scd-content ol { margin: 0 0 18px; padding-left: 22px; }
.scd-content li { margin-bottom: 6px; }

.scd-content img,
.scd-content .wp-caption {
	border-radius: 12px;
	margin-block: 24px;
}

.scd-content blockquote {
	margin: 24px 0;
	padding: 4px 0 4px 22px;
	border-left: 4px solid var(--scd-yellow);
	color: var(--scd-muted);
	font-size: 19px;
}

/* Tabellen im Inhalt sind seit dem Sand-Hintergrund eigene Flaechen — weiss
   hinterlegt und mit Rundung, sonst verschwimmen sie mit der Seite. */
.scd-content table {
	width: 100%;
	border-collapse: collapse;
	margin-block: 24px;
	font-size: 15px;
	background: var(--scd-white);
	border-radius: var(--scd-radius-lg);
	overflow: hidden;
}

.scd-content th,
.scd-content td {
	border: 1px solid var(--scd-hairline);
	padding: 10px 12px;
	text-align: left;
}

.scd-content th {
	background: var(--scd-sand);
	font-weight: 800;
	font-size: 13px;
	letter-spacing: .4px;
	text-transform: uppercase;
	color: var(--scd-muted);
}

/* Aufklappbare Frage-Antwort-Elemente (Gutenberg-Block "Details").
   Ohne JavaScript — <details>/<summary> koennen das von Haus aus. */
.scd-content .wp-block-details {
	background: var(--scd-white);
	border: 1px solid var(--scd-hairline-soft);
	border-radius: var(--scd-radius-lg);
	margin-block: 12px;
	padding: 0;
	overflow: hidden;
}

.scd-content .wp-block-details summary {
	cursor: pointer;
	list-style: none;
	padding: 16px 54px 16px 20px;
	font-weight: 800;
	font-size: 17px;
	line-height: 1.35;
	position: relative;
	transition: color .12s ease;
}

/* Das voreingestellte Dreieck weg — wir zeichnen einen eigenen Pfeil. */
.scd-content .wp-block-details summary::-webkit-details-marker {
	display: none;
}

.scd-content .wp-block-details summary::marker {
	content: "";
}

.scd-content .wp-block-details summary::after {
	content: "";
	position: absolute;
	right: 22px;
	top: 50%;
	width: 10px;
	height: 10px;
	border-right: 2.5px solid var(--scd-petrol);
	border-bottom: 2.5px solid var(--scd-petrol);
	transform: translateY(-70%) rotate(45deg);
	transition: transform .2s ease;
}

.scd-content .wp-block-details[open] summary::after {
	transform: translateY(-25%) rotate(-135deg);
}

/* Kein Flaechen-Hover: nach dem Aufklappen bleibt der Zeiger auf der Frage
   stehen, und der eingefaerbte Balken sah dann aus wie eine falsche Kopfzeile.
   Stattdessen faerbt sich nur der Text — das greift sofort. */
.scd-content .wp-block-details summary:hover {
	color: var(--scd-petrol);
}

.scd-content .wp-block-details:hover {
	border-color: rgba(15, 112, 120, .35);
}

.scd-content .wp-block-details summary:focus-visible {
	outline-offset: -3px;
}

.scd-content .wp-block-details > *:not(summary) {
	padding-inline: 20px;
}

.scd-content .wp-block-details > *:last-child {
	padding-bottom: 20px;
	margin-bottom: 0;
}

.scd-pagination {
	margin-top: 40px;
}

/* the_posts_pagination() umschließt die Links mit .nav-links */
.scd-pagination .nav-links {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: center;
}

.scd-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding-inline: 12px;
	border-radius: var(--scd-radius);
	border: 1px solid var(--scd-hairline);
	text-decoration: none;
	font-weight: 700;
	color: var(--scd-navy);
}

.scd-pagination .page-numbers:hover,
.scd-pagination .page-numbers.current {
	background: var(--scd-navy);
	border-color: var(--scd-navy);
	color: var(--scd-white);
}

.scd-empty {
	color: var(--scd-muted);
	font-size: 16px;
	margin: 0;
}

/* WordPress-Grundklassen */
.alignleft { float: left; margin: 6px 24px 12px 0; }
.alignright { float: right; margin: 6px 0 12px 24px; }
.aligncenter { margin-inline: auto; }
.wp-caption-text { font-size: 13px; color: var(--scd-muted); text-align: center; }
.sticky, .gallery-caption, .bypostauthor { /* Theme-Check */ }

/* ==========================================================================
   12. Responsive
   ========================================================================== */

@media (max-width: 1100px) {
	.scd-hero__title { font-size: 46px; }

	/* Zwischenschritt, damit die Menuezeile auf schmalen Laptops nicht umbricht */
	.scd-nav,
	.scd-nav__menu { gap: 20px; }
	.scd-nav { font-size: 16px; }
	.scd-brand__text { font-size: 19px; }
	.scd-brand__mark img { width: 62px; height: 62px; }

	.scd-sportarten { grid-template-columns: repeat(2, 1fr); }
	.scd-split { grid-template-columns: 1fr; }

	/*
	 * Farbband: unter 900 px steht es gestapelt, darueber reicht der Platz —
	 * dazwischen wird es eng, weil die Spalte mitschrumpft, Schrift und
	 * Polsterung aber nicht. Statt den Umbruch zuzulassen, geht hier alles
	 * eine Stufe zurueck.
	 */
	.scd-band__title { font-size: 16px; }
	.scd-band__icon { font-size: 24px; }

	.scd-band__item {
		gap: 10px;
		padding-inline: 18px;
	}

	.scd-band__item:first-child { padding-left: var(--scd-gutter); }
	.scd-band__item:last-child { padding-right: var(--scd-gutter); }
}

@media (max-width: 900px) {
	.scd-band { grid-template-columns: 1fr; }

	/*
	 * Gestapelt braucht kein Feld mehr die Container-Einrueckung — und alle
	 * drei muessen denselben Innenabstand haben, sonst springt der Text von
	 * Zeile zu Zeile. Deshalb hier ALLE Felder, nicht nur erstes und letztes:
	 * das mittlere traegt sonst noch den engeren Wert aus dem 1100er-Block.
	 */
	.scd-band__item {
		padding-inline: var(--scd-gutter);
	}

	.scd-nav__toggle {
		display: flex;
	}

	/* Auf dem Handy bleiben die Schriftgroessen wie gehabt — nur der
	   Desktop-Header wurde vergroessert. */
	.scd-brand__text {
		font-size: 17px;
	}

	.scd-nav {
		font-size: 15px;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 12px var(--scd-gutter) 24px;
		background: var(--scd-navy);
		border-top: 1px solid rgba(255, 255, 255, .12);
		box-shadow: 0 18px 30px rgba(0, 0, 0, .2);
		display: none;
	}

	.scd-nav.is-open {
		display: flex;
	}

	.scd-nav__menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.scd-nav__menu a {
		display: block;
		padding: 14px 0;
		border-bottom: 1px solid rgba(255, 255, 255, .1);
	}

	.scd-nav__menu a:hover,
	.scd-nav__menu .current-menu-item > a {
		border-bottom-color: var(--scd-yellow);
	}

	.scd-nav__menu .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		background: transparent;
		margin: 0;
		padding: 0 0 0 16px;
	}

	.scd-nav__menu .sub-menu a {
		color: #9fb6cc;
		padding: 11px 0;
	}

	.scd-nav__menu .sub-menu a:hover {
		background: transparent;
		color: var(--scd-white);
	}

	.scd-nav .scd-btn--accent {
		margin-top: 16px;
		width: 100%;
	}
}

@media (max-width: 640px) {
	.scd-content .wp-block-image.alignright,
	.scd-content figure.alignright {
		float: none;
		width: 100%;
		margin: 0 0 20px;
	}

	/* Hochformat-Fotos wuerden sonst den ganzen Bildschirm fuellen und den
	   Text unter die Kante schieben — auf dem Handy daher 4:3 beschnitten. */
	.scd-content .wp-block-image.alignright img,
	.scd-content figure.alignright img {
		aspect-ratio: 4 / 3;
		object-fit: cover;
		object-position: center 30%;
	}

	:root {
		--scd-gutter: 20px;
	}

	/*
	 * Dreispaltige Tabellen (Kontaktseite: Bereich / E-Mail / Sprechzeiten)
	 * quetschen sich auf dem Handy sonst auf zwei Wörter pro Zeile. Lieber
	 * innerhalb der Figure scrollen als die ganze Seite breiter machen.
	 * Die Rundung sitzt auf der Tabelle, deshalb scrollt der Rahmen mit.
	 */
	.scd-content .wp-block-table {
		overflow-x: auto;
	}

	.scd-content .wp-block-table table {
		min-width: 520px;
	}

	.scd-hero {
		min-height: 0;
	}

	/*
	 * Mobil: das ganze Foto in voller Breite oben, der Balken darunter statt
	 * darueber — beim schmalen Zuschnitt fielen sonst Personen am Rand weg.
	 * 75.3 % = Seitenverhaeltnis des Startseitenfotos (2400 x 1807). Prozent
	 * statt vw: vw zaehlt den Scrollbalken mit, das Foto nicht — sonst bleibt
	 * ein heller Spalt. Die dunkelblaue Grundfarbe faengt Rundungsreste ab.
	 * Das !important schlaegt die Fokuspunkt-Position im style-Attribut.
	 */
	.scd-hero--has-image {
		padding-top: 75.3%;
		background-color: var(--scd-navy);
		background-size: 100% auto;
		background-repeat: no-repeat;
		background-position: center top !important;
	}

	/* Hier liegt kein Foto unter dem Balken — also deckend. */
	.scd-hero--has-image .scd-hero__band {
		min-height: 0;
		background: var(--scd-navy);
	}

	.scd-hero__inner {
		padding-block: 72px;
	}

	.scd-hero__title {
		font-size: 34px;
		max-width: none;
	}

	.scd-hero__text {
		font-size: 17px;
	}

	.scd-hero__actions .scd-btn {
		width: 100%;
	}

	.scd-sportarten {
		grid-template-columns: 1fr;
	}

	.scd-section {
		padding-block: 40px;
	}

	.scd-section__title {
		font-size: 25px;
	}

	.scd-split__col {
		padding-block: 36px;
	}

	.scd-pagehead__title {
		font-size: 30px;
	}

	.scd-titel__title {
		font-size: 30px;
	}

	.scd-titel {
		padding-top: 32px;
	}

	.scd-footer__inner > * {
		flex: 1 1 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: .001ms !important;
		transition-duration: .001ms !important;
		scroll-behavior: auto !important;
	}
}

/* Druck */
@media print {
	.scd-header,
	.scd-nav,
	.scd-hero__actions,
	.scd-video {
		display: none !important;
	}

	body {
		color: #000;
		background: #fff;
	}
}

/* ==========================================================================
   13. Trainersuche-Band (aus Entwurf 1a/1b)
   ========================================================================== */

.scd-trainer {
	background: var(--scd-orange);
	color: var(--scd-white);
}

.scd-trainer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	flex-wrap: wrap;
	padding-block: 40px;
}

.scd-trainer__eyebrow {
	font-size: 12px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .78);
	font-weight: 800;
	margin-bottom: 8px;
}

.scd-trainer__claim {
	font-size: 27px;
	font-weight: 800;
	margin: 0;
	max-width: 620px;
	line-height: 1.25;
}

.scd-trainer__btn {
	background: var(--scd-white);
	color: var(--scd-orange);
	white-space: nowrap;
	flex: none;
}

.scd-trainer__btn:hover,
.scd-trainer__btn:focus-visible {
	background: var(--scd-sand);
	color: var(--scd-orange);
}

/* ==========================================================================
   14. Sportangebot-Detailseite
   ========================================================================== */

.scd-crumbs {
	font-size: 13px;
	color: #9fb6cc;
	margin-bottom: 14px;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.scd-crumbs a {
	color: #9fb6cc;
	text-decoration: none;
}

.scd-crumbs a:hover {
	color: var(--scd-white);
	text-decoration: underline;
}

.scd-withside {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 44px;
	align-items: start;
}

.scd-sport__img {
	border-radius: var(--scd-radius-lg);
	margin-bottom: 28px;
	width: 100%;
}

.scd-content--flush {
	max-width: none;
	margin-inline: 0;
}

.scd-sport__h2 {
	font-size: 26px;
	margin: 40px 0 16px;
}

/* Wochenplan-Sektion schliesst direkt an den Textblock an. */
.scd-section--plan {
	padding-top: 0;
}

/*
 * Einspaltige Detailseite (09/2026): Ueberschrift, Legende und Raster stehen
 * auf einer Mittelachse. Der Fliesstext darueber ist auf 760px begrenzt und
 * zentriert — stuenden Plan und Ueberschrift links an der Containerkante,
 * liefe die Seite optisch auseinander.
 */
.scd-section--plan .scd-sport__h2 {
	text-align: center;
}

.scd-week {
	margin-inline: auto;
}

.scd-sport__h2--flush {
	margin-top: 0;
}

/* Wochenplan — eine Spalte je Tag, Kurse in der Farbe ihres Standorts.
   Tage ohne Kurs erscheinen gar nicht erst. */
.scd-week {
	display: grid;
	grid-template-columns: repeat(var(--scd-days, 4), minmax(0, 1fr));
	gap: 14px;
	align-items: start;
	/* Bei wenigen Tagen nicht auf die volle Breite ziehen — eine einzelne
	   Spalte ueber 1100 px sieht nach Fehler aus. */
	max-width: calc(var(--scd-days, 4) * 260px + (var(--scd-days, 4) - 1) * 14px);
}

.scd-week__day {
	background: var(--scd-white);
	border: 1px solid var(--scd-hairline-soft);
	border-radius: var(--scd-radius-lg);
	padding: 12px;
	min-width: 0;
}

.scd-week__dayname {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--scd-muted);
	text-align: center;
	padding-bottom: 10px;
	margin-bottom: 10px;
	border-bottom: 1px solid var(--scd-hairline-soft);
}

.scd-week__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.scd-week__slot {
	border-radius: 8px;
	padding: 8px 10px;
	line-height: 1.3;
}

.scd-week__time {
	display: block;
	font-size: 13px;
	font-variant-numeric: tabular-nums;
	opacity: .85;
}

.scd-week__name {
	display: block;
	font-weight: 800;
	font-size: 15px;
	/* Nur wirklich zu lange Woerter aufbrechen — 'anywhere' zerlegte auch
	   Namen, die an einer Leerstelle haetten umbrechen koennen. */
	overflow-wrap: break-word;
	hyphens: auto;
}

/* Seitenspalte */
.scd-box {
	background: var(--scd-white);
	border: 1px solid var(--scd-hairline-soft);
	border-radius: var(--scd-radius-lg);
	padding: 22px;
	margin-bottom: 18px;
	font-size: 15px;
	line-height: 1.6;
}

.scd-box p {
	margin: 0 0 10px;
}

.scd-box__title {
	font-size: 12px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--scd-muted);
	font-weight: 800;
	margin-bottom: 10px;
}

.scd-box__name {
	font-weight: 800;
	font-size: 18px;
}

.scd-box__role {
	color: var(--scd-muted);
	margin-bottom: 10px;
}

.scd-box__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.scd-box__list a {
	font-weight: 700;
	text-decoration: none;
}

.scd-box__list a:hover {
	text-decoration: underline;
}

/*
 * Standortlegende ueber dem Wochenplan (09/2026). In der Seitenspalte standen
 * die Eintraege untereinander; ueber die volle Breite waere das eine sehr hohe
 * Spalte, deshalb hier nebeneinander. fit-content statt voller Containerbreite,
 * damit der Kasten bei nur einem Standort kein leeres Band bildet — und weil
 * das Raster darunter je nach Anzahl der Tage ebenfalls schmaler sein kann.
 */
.scd-box--legende {
	width: fit-content;
	max-width: 100%;
	/*
	 * Linksbuendig — aber auf der Textkante, nicht auf der Containerkante.
	 * Der Fliesstext ist auf 760px begrenzt und zentriert; dieselbe Rechnung
	 * hier als linker Aussenabstand setzt den Kasten exakt darunter. Die
	 * Prozentangabe bezieht sich auf die Containerbreite, deshalb stimmt es
	 * bei jeder Fenstergroesse, und max() faengt schmale Schirme ab.
	 */
	margin-left: max(0px, calc((100% - 760px) / 2));
	margin-right: auto;
	margin-bottom: 22px;
}

.scd-box--legende .scd-box__list--legend {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 10px 30px;
}

.scd-box__list--legend li {
	position: relative;
	padding-left: 24px;
}

.scd-box__list--legend li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 4px;
	width: 14px;
	height: 14px;
	border-radius: 4px;
	background: var(--scd-slot, #d9d9d9);
	border: 1px solid rgba(22, 58, 95, .18);
}

.scd-box__addr {
	display: block;
	color: var(--scd-muted);
	font-size: 14px;
}

/* Kontaktseite: Geschaeftsstelle farbig abgesetzt, Bueroezeiten schlicht. */
.scd-box--office {
	border-left: 5px solid var(--scd-petrol);
}

.scd-box--hours {
	border-left: 5px solid var(--scd-yellow);
}

.scd-box__addr-block {
	margin-top: 6px;
}

.scd-box__label {
	display: block;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .6px;
	text-transform: uppercase;
	color: var(--scd-muted);
}

.scd-box--cta {
	background: var(--scd-navy);
	color: var(--scd-footer-fg);
	/*
	 * Stand bis 09/2026 in der 320px-Seitenspalte und bekam seine Breite von
	 * dort. Einspaltig braucht er einen eigenen Deckel, sonst zieht er sich
	 * ueber die volle Containerbreite und der Knopf wird ein Balken.
	 * Derselbe Wert wie .scd-content, damit er buendig unter dem Text steht.
	 */
	max-width: 760px;
	margin-inline: auto;
	text-align: center;
}

.scd-box--cta .scd-box__title {
	color: #9fb6cc;
}

.scd-box--cta .scd-btn {
	width: 100%;
	margin-top: 4px;
}

@media (max-width: 1100px) {
	.scd-withside {
		grid-template-columns: 1fr;
		gap: 32px;
	}
}

@media (max-width: 760px) {
	.scd-week {
		grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	}
}

@media (max-width: 640px) {
	.scd-trainer__claim {
		font-size: 22px;
	}

	.scd-trainer__btn {
		width: 100%;
	}

	.scd-week {
		grid-template-columns: 1fr;
	}
}

/* Übungsleiter:innen in der Seitenspalte */
.scd-box__tname {
	font-weight: 800;
	display: block;
}

.scd-box__quali {
	display: block;
	color: var(--scd-muted);
	font-size: 13px;
}
