/* =========================================================================
   SV Frauental – Theme
   -------------------------------------------------------------------------
   Eine ruhige, sorgfaeltig gesetzte Vereinsseite: Vereinsfoto, viel Weiss,
   ein entsaettigtes Vereinsblau, Ocker nur als kleines Detail. Fassung vom
   13.10.2026 nach dem Wunsch des Vereins ("nicht so starke Farben", kein
   Vorlagen-Gefuehl). Die erste Fassung nach wp-theme/vorlage-standard.html
   ist damit abgeloest; der Gestaltungsvertrag in
   .impeccable/surfaces/wp-theme.md gilt mit dieser Aenderung.

   Schriften: Barlow fuer Text und Ueberschriften (Halbfett), Barlow
   Condensed nur fuer Ziffern. Beide liegen in assets/fonts/ (SIL Open
   Font License, siehe OFL.txt) - eine Schrift von Googles Servern ist in
   Oesterreich datenschutzrechtlich heikel, deshalb kein externer Abruf. Je
   Schnitt zwei Dateien: "latin" fuer Deutsch, "latin-ext" laedt der
   Browser nur bei Bedarf (unicode-range).
   ========================================================================= */

@font-face {
	font-family: "Barlow";
	font-style: italic;
	font-weight: 500;
	font-display: swap;
	src: url("fonts/barlow-500i-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Barlow";
	font-style: italic;
	font-weight: 500;
	font-display: swap;
	src: url("fonts/barlow-500i-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Barlow";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/barlow-400-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Barlow";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/barlow-400-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Barlow";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("fonts/barlow-500-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Barlow";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("fonts/barlow-500-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Barlow";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("fonts/barlow-600-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Barlow";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("fonts/barlow-600-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Barlow";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("fonts/barlow-700-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Barlow";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("fonts/barlow-700-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Barlow Condensed";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("fonts/barlow-condensed-600-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Barlow Condensed";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("fonts/barlow-condensed-600-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Barlow Condensed";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("fonts/barlow-condensed-700-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Barlow Condensed";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("fonts/barlow-condensed-700-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =========================================================================
   Token
   -------------------------------------------------------------------------
   Ueberarbeitet am 13.10.2026 auf Wunsch des Vereins ("schaut zu sehr nach
   KI aus, nicht so starke Farben"): ein tiefes, entsaettigtes Vereinsblau
   statt Signalblau, Ocker nur fuer kleinste Details statt Gelb, viel Weiss
   und ein warmneutrales Hellgrau. Ueberschriften in normaler Schreibweise
   in Barlow Halbfett; Barlow Condensed nur noch fuer Ziffern.

   Das Plugin (svf.css) liest --blue, --blue-dark, --ocker, --ink, --ink-2,
   --muted, --line, --bg-soft, --white, --font-body und --font-head - diese
   Namen nicht umbenennen. Seine eigenen --svf-* Token setzt es selbst.
   ========================================================================= */

:root {
	color-scheme: light;

	--blue: #2c4a72;          /* Vereinsblau. Weiss darauf 9,1:1, auf Weiss als Text 9,1:1 */
	--blue-dark: #213a5b;     /* Hover, gedrueckt */
	--blue-tint: #e9eef4;     /* zarte Flaeche: Auswahl, aktive Pille */
	--ocker: #b8862b;         /* Ocker/Messing: nur kleine Details, nie Text auf Weiss (3,0:1), nie Flaeche */

	/* Kurznamen im Theme - zeigen auf dieselben Werte. */
	--brand: var(--blue);
	--brand-dark: var(--blue-dark);
	--brand-tint: var(--blue-tint);
	--accent: var(--ocker);
	--ink: #1d1f23;           /* Text, 16,5:1 auf Weiss */
	--ink-2: #43464d;         /* Nebentext, 9,4:1 */
	--muted: #5c5f66;         /* Beiwerk, 6,4:1 auf Weiss, 5,9:1 auf --bg-soft */
	--line: #e3e3de;          /* Linien, Kartenrahmen */
	--line-strong: #c9c9c2;   /* Rahmen beim Ueberfahren, Eingabefelder */
	--bg-soft: #f5f5f2;       /* warmneutrales Hellgrau, keine Papierfarbe */
	--white: #ffffff;
	--footer: #1f2124;        /* Fuss: neutral dunkel */

	--radius: 8px;            /* Karten, Kaesten, Bilder */
	--radius-sm: 6px;         /* Knoepfe, Felder */
	--shadow-sm: 0 1px 2px rgba(29, 31, 35, .05);

	--font-body: "Barlow", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--font-head: "Barlow", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--font-num: "Barlow Condensed", "Barlow", "Arial Narrow", sans-serif;

	--wrap: 1200px;
	--header-h: 92px;
	--admin-bar: 0px;
}

.admin-bar { --admin-bar: 32px; }
@media (max-width: 782px) {
	.admin-bar { --admin-bar: 46px; }
}

/* =========================================================================
   Grundlagen
   ========================================================================= */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + var(--admin-bar) + 16px);
	overflow-x: clip;
}
html.menue-offen { overflow: hidden; }

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--ink);
	background: var(--white);
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
	/* Kurze Seiten (Impressum, leere Suche): der Fuss bleibt unten statt
	   mitten im Fenster zu enden. */
	min-height: 100vh; min-height: 100svh;
	display: flex; flex-direction: column;
}
body > main { flex: 1 0 auto; }

img, svg, video { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-dark); text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -.005em; text-wrap: balance; color: var(--ink); }
p { margin: 0; }
figure { margin: 0; }
address { font-style: normal; }
input, button, select, textarea { font: inherit; color: inherit; caret-color: var(--brand); }
.num, time { font-variant-numeric: tabular-nums; }

::selection { background: var(--brand-tint); color: var(--ink); }

/* Ein Fokusring fuer alles: Vereinsblau auf hellem Grund, Weiss auf dunklem. */
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 3px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--white); }
main:focus, [tabindex="-1"]:focus { outline: none; }

.icon { width: 1.1em; height: 1.1em; flex: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.sr-only, .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 {
	position: absolute; left: 16px; top: -80px; z-index: 200;
	background: var(--brand); color: var(--white); padding: 12px 18px;
	font-weight: 600; border-radius: var(--radius-sm); text-decoration: none;
}
.skip:focus { top: calc(var(--admin-bar) + 12px); color: var(--white); }

/* =========================================================================
   Knoepfe: rechteckig, 6 px Radius, kein Schatten
   ========================================================================= */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 46px; padding: 0 20px;
	font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1.2;
	text-decoration: none; border-radius: var(--radius-sm); border: 1px solid transparent;
	transition: background-color .15s, color .15s, border-color .15s;
	cursor: pointer;
}
.btn .icon { width: 18px; height: 18px; }
.btn-primary, .btn-blue { background: var(--brand); color: var(--white); border-color: var(--brand); }
.btn-primary:hover, .btn-blue:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: var(--white); text-decoration: none; }
.btn-secondary { background: var(--white); color: var(--brand); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand-dark); background: var(--white); }

/* =========================================================================
   Kopf: weiss, fest, eine Linie darunter
   ========================================================================= */

.site-header {
	position: sticky; top: var(--admin-bar); z-index: 50;
	height: var(--header-h);
	background: var(--white);
	border-bottom: 1px solid var(--line);
}
@media (max-width: 600px) {
	/* Dort scrollt die Admin-Leiste mit weg. */
	.admin-bar .site-header { top: 0; }
	.admin-bar { --admin-bar: 0px; }
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
/* Vereinslogo: Hoehe gibt den Takt, Breite folgt dem Seitenverhaeltnis. */
.brand-logo { display: block; height: 74px; width: auto; }
.brand-hell .brand-logo { height: 64px; }
.brand:hover { color: var(--ink); }
.brand-mark {
	width: 40px; height: 40px; border-radius: var(--radius); background: var(--brand); color: var(--white);
	display: grid; place-items: center; flex: none;
}
.brand-mark .icon { width: 24px; height: 24px; }
.brand-text { line-height: 1.05; }
.brand-text small { display: block; font-size: .8rem; font-weight: 500; color: var(--muted); }
.brand-text strong { display: block; font-size: 1.3rem; font-weight: 700; letter-spacing: -.005em; }
/* Im dunklen Fuss */
.site-footer .brand { color: var(--white); }
.site-footer .brand-text small { color: rgba(255, 255, 255, .72); }

.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; }
.nav-link {
	display: inline-flex; align-items: center; gap: 6px;
	min-height: 44px; padding: 10px 12px;
	color: var(--ink); text-decoration: none; background: none; border: 0;
	font-family: var(--font-body); font-weight: 600; font-size: 1rem;
	cursor: pointer; position: relative;
}
.nav-link:hover { color: var(--brand); text-decoration: none; }
/* Aktive Seite: Vereinsblau mit dezenter Linie, ohne Bewegung. */
.nav-link[aria-current="page"], .has-sub.is-current > .nav-link { color: var(--brand); }
.nav-link[aria-current="page"]::after,
.has-sub.is-current > .nav-link::after {
	content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--brand);
}
.nav-link .chev { width: 14px; height: 14px; transition: transform .2s; }
.has-sub { position: relative; }
.has-sub.open .chev { transform: rotate(180deg); }
.sub {
	position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px;
	background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
	box-shadow: 0 8px 24px rgba(29, 31, 35, .08);
	padding: 6px; opacity: 0; visibility: hidden;
	transition: opacity .15s, visibility .15s;
}
.has-sub.open .sub { opacity: 1; visibility: visible; }
/* Ohne JavaScript klappt das Untermenue beim Ueberfahren und per Tab auf. */
.no-js .has-sub:hover .sub,
.no-js .has-sub:focus-within .sub { opacity: 1; visibility: visible; }
.sub a { display: block; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font-weight: 500; }
.sub a:hover { background: var(--bg-soft); color: var(--brand); }
.sub a[aria-current="page"] { color: var(--brand); background: var(--brand-tint); }
.nav-cta { margin-left: 12px; min-height: 42px; padding: 0 18px; }

.burger {
	display: none; width: 46px; height: 46px; border-radius: var(--radius-sm);
	background: var(--white); border: 1px solid var(--line-strong); color: var(--ink); cursor: pointer;
	align-items: center; justify-content: center;
}
.burger svg { width: 24px; height: 24px; }
.burger .i-close { display: none; }
.burger[aria-expanded="true"] .i-open { display: none; }
.burger[aria-expanded="true"] .i-close { display: block; }

/* =========================================================================
   Startseite
   ========================================================================= */

/* Vereinsfoto: gross, ohne Text darauf, ohne Verlauf. */
.hero { background: var(--bg-soft); }
.hero-media { height: clamp(300px, 52vh, 580px); overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero figcaption { padding-top: 8px; padding-bottom: 8px; font-size: .85rem; color: var(--muted); text-align: right; }

/* Titel, Einleitung, Eckdaten - daneben der Vereinsabend */
.intro { padding: 56px 0 72px; }
.intro .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 64px; align-items: start; }
.intro h1 { font-size: clamp(2.1rem, 4vw, 3.3rem); font-weight: 700; line-height: 1.08; letter-spacing: -.015em; max-width: 20ch; }
.intro-lead { margin-top: 18px; font-size: 1.25rem; line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.intro-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
/* Eckdaten: eine Zeile, hoechstens drei Angaben - keine Zahlenwand. */
.eckdaten { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); max-width: 46ch; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.eck-trenner { color: var(--muted); }

/* Abschnitte */
.section { padding: 80px 0; }
.section-tight { padding: 40px 0 80px; }
.section-soft { background: var(--bg-soft); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2, .feature h2, .join h2 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); font-weight: 600; line-height: 1.15; }
.saison { display: inline-block; margin-left: .4em; font-size: .55em; font-weight: 500; color: var(--muted); vertical-align: .15em; white-space: nowrap; }
.more { font-weight: 600; color: var(--brand); text-decoration: none; }
.more:hover { text-decoration: underline; color: var(--brand-dark); }

/* Beitragskarten: flach, 1 px Rahmen. Bild nur, wenn es ein echtes gibt. */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.card {
	background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden; display: flex; flex-direction: column; position: relative;
	transition: border-color .15s;
}
.card:hover { border-color: var(--line-strong); }
.card-media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .9rem; color: var(--muted); }
.card-rubrik { color: var(--brand); font-weight: 600; }
.card-title { font-size: 1.3rem; font-weight: 600; line-height: 1.25; overflow-wrap: break-word; hyphens: auto; }
.card-ohne-bild .card-title { font-size: 1.4rem; }
/* Karten stehen oben buendig und behalten ihre eigene Hoehe: eine
   Textkarte neben einer Bildkarte wird nicht mit Leerraum aufgefuellt. */
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }
.card:hover .card-title a { color: var(--brand); }
/* Fokusring der ganzen Karte: am Link, der ueber der Karte liegt, nach
   innen - in jeder Breite und jedem Browser ganz sichtbar (der fruehere
   Ring per :has fehlte in aelteren Safari-Fassungen auf dem Telefon). */
.card-title a:focus-visible { outline: none; }
.card-title a:focus-visible::after { box-shadow: inset 0 0 0 2px var(--brand); }
.card-text { color: var(--ink-2); font-size: 1rem; line-height: 1.55; }

/* Mannschaften: dieselbe Karte wie auf der Seite Mannschaften (svf.css,
   .svf-team). Drei Spalten, darunter zwei, am Telefon eine. */
.teams-grid[class] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.am-stueck { white-space: nowrap; }

/* Jugend und Schulschach, Eigene Jugend: Text und Foto nebeneinander,
   die Seiten wechseln von Abschnitt zu Abschnitt. */
.feature .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.feature-media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.feature-media figcaption { margin-top: 8px; font-size: .9rem; color: var(--muted); }
.feature .lead { margin-top: 14px; font-size: 1.15rem; color: var(--ink-2); max-width: 52ch; }
.players { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.player { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.title-badge {
	flex: none; min-width: 44px; padding: 4px 8px; border-radius: var(--radius-sm); text-align: center;
	font-family: var(--font-num); font-weight: 700; font-size: 1.15rem; letter-spacing: .02em;
	background: var(--brand-tint); color: var(--brand);
}
.player strong { display: block; font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
.player div span { display: block; color: var(--ink-2); font-size: 1rem; }
.feature-more { margin-top: 20px; }
.fakten { margin: 24px 0 0; border-top: 1px solid var(--line); }
.fakten > div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.fakten dt { color: var(--muted); }
.fakten dd { margin: 0; font-weight: 500; color: var(--ink); }
.fakten dd small { display: block; font-size: .95rem; font-weight: 400; color: var(--muted); }

/* Sponsoren */
.sponsors { padding: 64px 0 80px; }
.sponsors h2 { font-size: 1.25rem; font-weight: 600; }
.sponsor-row { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sponsor-cell {
	height: 104px; display: grid; place-items: center; padding: 18px 24px;
	background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
	text-decoration: none; transition: border-color .15s;
}
a.sponsor-cell:hover { border-color: var(--line-strong); }
.sponsor-cell img { max-height: 52px; width: auto; max-width: 100%; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
a.sponsor-cell:hover img, a.sponsor-cell:focus-visible img { filter: none; opacity: 1; }
.sponsor-text { font-weight: 600; font-size: 1.15rem; color: var(--ink-2); text-align: center; line-height: 1.2; }
.sponsor-text small { display: block; font-size: .85rem; font-weight: 500; color: var(--muted); }
.sponsors-more { margin-top: 18px; }

/* Komm vorbei: hell und kurz - ein Satz, zwei Knoepfe. Weiss zwischen den
   hellgrauen Sponsoren und dem dunklen Fuss, mit Luft nach unten. */
.join { padding: 80px 0 96px; }
.join .wrap { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
.join-main p { margin-top: 12px; font-size: 1.15rem; max-width: 52ch; color: var(--ink-2); }
.join-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* =========================================================================
   Fuss: neutral dunkel
   ========================================================================= */

.site-footer { background: var(--footer); color: rgba(255, 255, 255, .78); padding: 64px 0 0; font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand .brand-mark { background: rgba(255, 255, 255, .1); }
.site-footer h2 { font-size: 1rem; font-weight: 600; color: var(--white); margin-bottom: 10px; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--white); }
.footer-nav { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-bottom {
	margin-top: 48px; border-top: 1px solid rgba(255, 255, 255, .12);
	padding: 20px 0 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
	font-size: .9rem; color: rgba(255, 255, 255, .7);
}
.footer-bottom a { color: rgba(255, 255, 255, .9); }
.site-footer :focus-visible { outline-color: var(--white); }

/* =========================================================================
   Unterseiten
   ========================================================================= */

/* Seitenkopf: hell, Brotkrumen, normale H1 */
.seitenkopf { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 28px 0 36px; }
.krumen ol { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 0; font-size: .92rem; color: var(--muted); }
.krumen li + li::before { content: "/"; margin: 0 .55em; color: var(--line-strong); }
.krumen a { color: var(--muted); text-decoration: none; }
.krumen a:hover { color: var(--brand); text-decoration: underline; }
.krumen [aria-current] { color: var(--ink-2); }
.seitenkopf-titel { font-size: clamp(2rem, 3.6vw, 2.75rem); font-weight: 700; line-height: 1.12; letter-spacing: -.012em; max-width: 30ch; overflow-wrap: break-word; hyphens: auto; }
.seitenkopf-zeile { margin-top: 10px; color: var(--muted); }
.seitenkopf-zeile a { color: var(--ink-2); }
.seitenkopf-zeile a:hover { color: var(--brand); }
.seitenkopf .suchfeld { margin-top: 22px; }
.kopf-foto { margin-top: 32px; }
.kopf-foto img { width: 100%; max-height: 620px; object-fit: cover; border-radius: var(--radius); }
.kopf-foto figcaption { margin-top: 8px; font-size: .9rem; color: var(--muted); }

/* -------------------------------------------------------------------------
   Lesespalte und Kasten "Naechster Vereinsabend"
   Seiten und Beitraege: links die Spalte (680 px; Fliesstext darin auf
   rund 66 Zeichen), rechts der kurze Kasten, der beim Lesen mitlaeuft. Seiten mit
   Bausteinen des Plugins stehen ohne Kasten in voller Breite.
   ------------------------------------------------------------------------- */

.lese-raster {
	display: grid; grid-template-columns: minmax(0, 680px) minmax(260px, 320px);
	justify-content: space-between; gap: 48px; align-items: start;
}
.lese-spalte { min-width: 0; }
.inhalt { max-width: 720px; }
/* Lesetext auf rund 66 Zeichen je Zeile: Barlow setzt bei 18 px im Schnitt
   knapp 8 px je Zeichen, 31em sind 558 px. (66ch waeren in Barlow rund 75
   Zeichen - die Ziffer 0 ist breiter als der Durchschnitt.) Breite
   Bausteine wie Galerien und Tabellen duerfen die Spalte ausnutzen. */
.inhalt:not(.inhalt-breit) .prose :where(p, li, dd, blockquote) { max-width: 31em; }
.inhalt-breit { max-width: none; }
.inhalt-foto { margin-bottom: 32px; }
.inhalt-foto img { border-radius: var(--radius); width: 100%; }

@media (min-height: 720px) {
	.seitenleiste { position: sticky; top: calc(var(--header-h) + var(--admin-bar) + 24px); }
}
.abend-kasten {
	background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 22px 22px 24px;
}
/* Das Datum ist die Ueberschrift, "Naechster Vereinsabend" steht klein
   darunter - kein Etikett darueber. */
.abend-datum { font-size: 1.5rem; font-weight: 600; line-height: 1.2; color: var(--ink); }
.abend-was { display: block; margin-top: 4px; font-size: 1rem; font-weight: 500; line-height: 1.4; color: var(--ink-2); }
.abend-hinweis { margin-top: 2px; font-size: .95rem; color: var(--muted); }
.abend-zeiten { margin: 16px 0 0; border-top: 1px solid var(--line); }
.abend-zeiten > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.abend-zeiten dt { color: var(--ink-2); }
.abend-zeiten dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.abend-ort { margin-top: 14px; color: var(--ink-2); line-height: 1.5; }
.abend-aktion { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.abend-mail { font-weight: 600; }

/* -------------------------------------------------------------------------
   Inhaltstypografie (the_content)
   Die Regeln fuer einzelne Elemente stehen in :where(.prose) und wiegen
   damit nur so viel wie ein Elementname - die Bausteine des Plugins mit
   eigenen Klassen setzen sich durch.
   ------------------------------------------------------------------------- */

.prose { font-size: 1.125rem; line-height: 1.7; color: var(--ink); overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.1em; }
.prose > :first-child { margin-top: 0; }
.prose::after { content: ""; display: table; clear: both; }

/* Abstaende auch in der Verschachtelung der alten Elementor-Beitraege. */
:where(.prose) :where(p, ul, ol, dl, figure, table, blockquote, pre, .gallery, .datei, .einbettung, .elementor-section, .elementor-widget, .elementor-image-carousel-wrapper, .elementor-accordion-item)
	+ :where(p, ul, ol, dl, figure, table, blockquote, pre, .gallery, .datei, .einbettung, .elementor-section, .elementor-widget, .elementor-image-carousel-wrapper, .elementor-accordion-item) { margin-top: 1.1em; }
:where(.prose) :where(p:empty) { display: none; }
/* Tabulatoren aus Word/Elementor ("white-space:pre") ruecken sonst ganze
   Namenslisten um eine Tabulatorbreite ein. */
:where(.prose) span[style*="white-space:pre"] { white-space: normal; }

/* Ueberschriften im Text: normale Schreibweise, Halbfett, ruhige Stufen.
   Mehr Luft darueber als darunter. */
:where(.prose) h1 { margin-top: 1.6em; margin-bottom: .4em; font-size: 1.9rem; font-weight: 700; }
:where(.prose) h2 { margin-top: 1.8em; margin-bottom: .4em; font-size: clamp(1.5rem, 2.4vw, 1.75rem); font-weight: 600; line-height: 1.2; }
:where(.prose) h3 { margin-top: 1.6em; margin-bottom: .3em; font-size: 1.3rem; font-weight: 600; line-height: 1.25; }
:where(.prose) :where(h4, h5, h6) { margin-top: 1.4em; margin-bottom: .25em; font-size: 1.125rem; font-weight: 600; line-height: 1.3; }
:where(.prose) :where(h1, h2, h3, h4, h5, h6) + * { margin-top: 0; }
.prose > :where(h1, h2, h3, h4):first-child { margin-top: 0; }

/* Verlinkte Ueberschrift (z. B. ein Pressebericht): bleibt eine
   Ueberschrift in Tintenfarbe, das Ziel zeigt ein kleiner Pfeil.
   Unterstrich erst beim Ueberfahren. */
/* Bausteine des Plugins (Klassen svf-*) sind ausgenommen - sie gestalten
   ihre Ueberschriften selbst. */
.prose :where(h1, h2, h3, h4, h5, h6):not([class*="svf-"], [class*="svf-"] *) a { color: var(--ink); text-decoration: none; }
.prose :where(h1, h2, h3, h4, h5, h6):not([class*="svf-"], [class*="svf-"] *) a::after {
	content: ""; display: inline-block; width: .55em; height: .55em; margin-left: .25em; vertical-align: .05em;
	background: var(--brand);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 17 17 7M8 7h9v9' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 17 17 7M8 7h9v9' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.prose :where(h1, h2, h3, h4, h5, h6):not([class*="svf-"], [class*="svf-"] *) a:hover { color: var(--brand); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

:where(.prose) a { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
:where(.prose) a:hover { color: var(--brand-dark); text-decoration-thickness: 2px; }
:where(.prose) :where(strong, b) { font-weight: 600; }
:where(.prose) .lead, :where(.prose) .svf-lead { font-size: 1.25rem; color: var(--ink-2); }

/* Listen: kleine Ocker-Quadrate als Aufzaehlungszeichen */
:where(.prose) :where(ul, ol) { padding-left: 1.4em; }
:where(.prose) li + li { margin-top: .35em; }
:where(.prose) ol > li::marker { color: var(--muted); font-weight: 600; }
:where(.prose) ul:not([class*="svf-"], [class*="svf-"] *) > li::marker { content: "■  "; font-size: .6em; color: var(--accent); }

/* Zitat: hellgraue Flaeche, kursiv, ohne Schmuckzeichen */
:where(.prose) blockquote {
	margin: 1.6em 0; padding: 20px 24px;
	background: var(--bg-soft); border-radius: var(--radius); font-style: italic; font-size: 1.15rem; line-height: 1.6;
}
:where(.prose) blockquote cite { display: block; margin-top: 8px; font-size: 1rem; font-style: normal; font-weight: 600; color: var(--ink-2); }

:where(.prose) hr, .prose .elementor-divider-separator { display: block; border: 0; height: 1px; background: var(--line); margin: 2.2em 0; }
:where(.prose) .elementor-divider { margin: 0; }
:where(.prose) .elementor-spacer-inner { height: 0 !important; }
:where(.prose) pre { overflow-x: auto; padding: 16px 18px; background: var(--bg-soft); border-radius: var(--radius-sm); font-size: .95rem; }

/* Tabellen: Kopf auf Hellgrau, feine Linien, Ziffern gleich breit. Breite
   Tabellen scrollen in sich, nicht die Seite. */
:where(.prose) table {
	border-collapse: collapse; font-size: 1rem; font-variant-numeric: tabular-nums;
	display: block; width: max-content; max-width: 100%; overflow-x: auto;
	border: 1px solid var(--line); border-radius: var(--radius-sm);
}
:where(.prose) :where(th, td) { padding: 9px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
:where(.prose) th, :where(.prose) thead td { background: var(--bg-soft); font-weight: 600; }
:where(.prose) tr:last-child > * { border-bottom: 0; }

/* Eingebettetes im Seitenverhaeltnis, PDF als Dateiverweis */
:where(.prose) :where(iframe, embed, video, object) { max-width: 100%; }
.einbettung { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.einbettung iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.datei a {
	display: inline-grid; grid-template-columns: 40px 1fr; align-items: center; gap: 14px;
	padding: 12px 20px 12px 12px; border-radius: var(--radius); background: var(--white);
	border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .15s;
}
.datei a:hover { border-color: var(--brand); color: var(--ink); }
.datei .icon { width: 40px; height: 40px; padding: 9px; border-radius: var(--radius-sm); background: var(--brand-tint); color: var(--brand); }
.datei strong { display: block; font-weight: 600; line-height: 1.25; }
.datei small { display: block; font-size: .9rem; color: var(--brand); font-weight: 600; }

/* Bilder im Text. Die Klassen setzt inc/inhalt.php:
   svft-bild  aus der Mediathek, volle Spaltenbreite
   svft-hoch  Hochformat - schmaler, sonst fuellt es den Bildschirm
   svft-klein Original unter 480 px - nicht hochrechnen */
:where(.prose) img { border-radius: var(--radius-sm); }
:where(.prose) img.svft-bild { width: 100%; border-radius: var(--radius); }
:where(.prose) img.svft-hoch { width: auto; max-width: min(100%, 440px); }
:where(.prose) img.svft-klein { width: auto; max-width: 100%; }
.alignleft { float: left; margin: .3em 1.6em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.6em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
:where(.prose) img.svft-bild:where(.alignleft, .alignright) { width: auto; max-width: 45%; }
:where(.prose) [style*="width"] { max-width: 100%; }
.wp-caption { max-width: 100%; width: auto !important; }
.wp-caption-text, .prose figcaption, .gallery-caption, .widget-image-caption, .elementor-image-carousel-caption {
	margin-top: 8px; font-size: .92rem; color: var(--muted); line-height: 1.4;
}

/* Galerien: WordPress-Galerien (dl/dt/dd) und Elementor-Karussells werden
   zum selben Raster. Jedes Bild ist ein Link auf die grosse Fassung -
   Vergroessern ohne Lightbox. */
:where(.prose) .gallery,
:where(.prose) .elementor-image-carousel {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 1.1em;
}
:where(.prose) .gallery-columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
:where(.prose) :where(.gallery-columns-4, .gallery-columns-5, .gallery-columns-6, .elementor-image-carousel) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
:where(.prose) .gallery-item { margin: 0; width: auto; max-width: none; }
:where(.prose) .gallery-item dt, :where(.prose) .gallery-item dd { margin: 0; }
:where(.prose) .gallery-caption { text-align: center; font-size: .85rem; }
:where(.prose) .swiper-slide-inner { margin: 0; }
:where(.prose) :where(.gallery-item, .swiper-slide) img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); }
.foto-link { display: block; border-radius: var(--radius-sm); overflow: hidden; }
.foto-link img { transition: opacity .2s; }
.foto-link:hover img { opacity: .88; }
.elementor-image-carousel-wrapper .swiper-wrapper { transform: none !important; }

/* Mehrspaltige Elementor-Zeilen (selten): nebeneinander, am Telefon untereinander. */
:where(.prose) .elementor-row { display: flex; flex-wrap: wrap; gap: 0 28px; }
:where(.prose) .elementor-column { flex: 1 1 260px; min-width: 0; }
:where(.prose) .elementor-col-100 { flex-basis: 100%; }
:where(.prose) .elementor-screen-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

/* Reiter und Aufklapper aus Elementor: ohne Script steht alles offen,
   die Titel werden zu Zwischenueberschriften. */
:where(.prose) .elementor-tabs-wrapper, :where(.prose) .elementor-tab-desktop-title { display: none; }
:where(.prose) :where(.elementor-tab-mobile-title, .elementor-accordion .elementor-tab-title) {
	margin-top: 1.6em; padding-bottom: 8px; border-bottom: 1px solid var(--line);
	font-size: 1.3rem; font-weight: 600; line-height: 1.25;
}
:where(.prose) .elementor-tab-mobile-title:first-child { margin-top: 0; }
:where(.prose) .elementor-tab-content { margin-top: .8em; }
:where(.prose) .elementor-image-box-wrapper { display: grid; gap: 12px; }
:where(.prose) .elementor-image-box-title { font-size: 1.3rem; }

/* Rubriken (und Jahre) als Leiste ueber der Beitragsliste */
.rubriken ul { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rubriken a {
	display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
	border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line);
	color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem;
}
.rubriken a:hover { border-color: var(--brand); color: var(--brand); }
.rubriken a[aria-current="page"] { background: var(--brand-tint); border-color: var(--brand); color: var(--brand); font-weight: 600; }
.rubriken .anzahl { font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Seitenzahlen */
.seitenzahlen { margin-top: 40px; }
.seitenzahlen ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.seitenzahlen a, .seitenzahlen span.page-numbers, .seitenzahlen .post-page-numbers {
	min-width: 44px; min-height: 44px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
	border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line);
	color: var(--ink); text-decoration: none; font-weight: 500; font-variant-numeric: tabular-nums;
}
.seitenzahlen a:hover { border-color: var(--brand); color: var(--brand); }
.seitenzahlen .current { background: var(--brand); border-color: var(--brand); color: var(--white); }
.seitenzahlen .dots { background: none; border: 0; }

/* Aelterer / neuerer Beitrag als zwei Karten */
.beitrag-nav { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.nachbar {
	display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: center; gap: 14px;
	padding: 10px 16px 10px 10px; border-radius: var(--radius); background: var(--white);
	border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .15s;
}
.nachbar.ohne-bild { grid-template-columns: minmax(0, 1fr); padding: 14px 18px; }
.nachbar:hover { color: var(--ink); border-color: var(--line-strong); }
.nachbar-next { grid-column: 2; grid-template-columns: minmax(0, 1fr) 88px; padding: 10px 10px 10px 16px; text-align: right; }
.nachbar-next.ohne-bild { padding: 14px 18px; }
.nachbar-next .nachbar-bild { order: 2; }
.nachbar-bild { display: block; width: 88px; height: 72px; border-radius: var(--radius-sm); overflow: hidden; }
.nachbar-bild img { width: 100%; height: 100%; object-fit: cover; }
.nachbar-text { display: grid; gap: 2px; min-width: 0; }
.nachbar .richtung { font-size: .9rem; color: var(--muted); }
.nachbar .titel { font-size: 1.1rem; font-weight: 600; line-height: 1.25; overflow-wrap: break-word; hyphens: auto; }
.nachbar:hover .titel { color: var(--brand); }
.nachbar time { font-size: .9rem; color: var(--muted); }

/* "Mehr aus <Rubrik>" unter einem Beitrag */
.weitere { padding: 64px 0 80px; }

/* Suchfeld */
.suchfeld { display: flex; gap: 8px; max-width: 560px; }
.suchfeld input {
	flex: 1; min-width: 0; min-height: 46px; padding: 0 14px;
	border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--white); color: var(--ink);
}
.suchfeld input::placeholder { color: var(--muted); opacity: 1; }
.suchfeld input:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.suchfeld .btn { padding: 0 18px; }

/* Leerzustand: Suche ohne Treffer, leere Rubrik, 404 */
.leer { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 36px 36px; max-width: 760px; }
.leer h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 600; }
.leer-text { margin-top: 8px; font-size: 1.1rem; color: var(--ink-2); max-width: 58ch; }
.leer .suchfeld { margin-top: 22px; }
.leer h3 { margin-top: 28px; font-size: 1rem; font-weight: 600; color: var(--muted); }
.wege { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.wege a {
	display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px; border-radius: var(--radius-sm);
	background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500;
}
.wege a:hover { border-color: var(--brand); color: var(--brand); }
.fehlt-neu { margin-top: 64px; }

/* =========================================================================
   Schmalere Schirme
   ========================================================================= */

@media (max-width: 1100px) {
	.intro .wrap { gap: 40px; }
	.feature .wrap { gap: 40px; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Lesespalte und Kasten: unter 1040 px untereinander, der Kasten unter
   dem Text auf Lesebreite. */
@media (max-width: 1040px) {
	.lese-raster { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.lese-raster > * { max-width: 720px; }
	.seitenleiste { position: static; }
}

@media (max-width: 960px) {
	.js .burger { display: inline-flex; }
	.js .main-nav {
		position: fixed; top: calc(var(--header-h) + var(--admin-bar)); left: 0; right: 0; bottom: 0;
		background: var(--white); padding: 8px 24px 32px; overflow-y: auto; overscroll-behavior: contain;
		display: none; border-top: 1px solid var(--line);
	}
	.js .main-nav.open { display: block; }
	.main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
	.main-nav > ul > li { border-bottom: 1px solid var(--line); }
	.main-nav > ul > li.nav-cta-item { border-bottom: 0; padding-top: 20px; }
	.nav-link { width: 100%; justify-content: space-between; padding: 14px 2px; font-size: 1.15rem; }
	.nav-link[aria-current="page"]::after, .has-sub.is-current > .nav-link::after { display: none; }
	.sub {
		position: static; opacity: 1; visibility: visible; box-shadow: none; border: 0;
		background: transparent; padding: 0 0 10px 10px; display: none; min-width: 0;
	}
	.has-sub.open .sub, .no-js .sub { display: block; }
	.sub a { font-size: 1.05rem; }
	.nav-cta { margin: 0; width: 100%; min-height: 50px; }

	/* Ohne JavaScript: das Menue steht offen unter der Bildmarke. */
	.no-js .site-header { height: auto; position: static; }
	.no-js .site-header .wrap { flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
	.no-js .main-nav { width: 100%; }

	.intro .wrap { grid-template-columns: minmax(0, 1fr); }
	.intro .abend-kasten { max-width: 560px; }
	.news-grid, .teams-grid[class] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.feature .wrap { grid-template-columns: minmax(0, 1fr); }
	.feature-media { max-width: 640px; }
	.sponsor-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 641px) and (max-width: 960px) {
	:where(.prose) :where(.gallery-columns-4, .gallery-columns-5, .gallery-columns-6, .elementor-image-carousel) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
	:root { --header-h: 76px; }
	body { font-size: 1.03rem; }
	.wrap { padding: 0 16px; }
	.brand-logo { height: 60px; }
	.brand-mark { width: 36px; height: 36px; }
	.brand-mark .icon { width: 22px; height: 22px; }
	.brand-text strong { font-size: 1.2rem; }

	.hero-media { height: clamp(220px, 34vh, 300px); }
	.hero figcaption { text-align: left; font-size: .8rem; }
	.intro { padding: 32px 0 48px; }
	.intro h1 { font-size: 2.1rem; }
	.intro-lead { font-size: 1.1rem; }
	.intro-actions .btn { flex: 1 1 auto; }
	.eckdaten { margin-top: 28px; }

	.section { padding: 56px 0; }
	.section-tight { padding: 28px 0 56px; }
	.section-head { margin-bottom: 22px; }
	.news-grid, .teams-grid[class] { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.card-title, .card-ohne-bild .card-title { font-size: 1.25rem; }

	.fakten > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
	.sponsors { padding: 48px 0 56px; }
	.sponsor-row { gap: 10px; }
	.sponsor-cell { height: 88px; padding: 12px 14px; }
	.sponsor-cell img { max-height: 42px; }

	.join { padding: 56px 0 72px; }
	.join-actions .btn { flex: 1 1 auto; }

	.footer-grid { grid-template-columns: 1fr; gap: 28px; }
	.footer-bottom { flex-direction: column; }

	.seitenkopf { padding: 20px 0 28px; }
	.seitenkopf-titel { font-size: 1.9rem; }
	.kopf-foto { margin-top: 20px; }
	.prose { font-size: 1.0625rem; }
	.alignleft, .alignright { float: none; margin: 1em 0; }
	:where(.prose) h2 { font-size: 1.45rem; }
	:where(.prose) blockquote { padding: 16px 18px; font-size: 1.05rem; }
	:where(.prose) .gallery,
	:where(.prose) .gallery-columns-2,
	:where(.prose) :where(.gallery-columns-4, .gallery-columns-5, .gallery-columns-6, .elementor-image-carousel) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
	:where(.prose) img.svft-bild:where(.alignleft, .alignright) { max-width: 100%; width: 100%; }
	.beitrag-nav { grid-template-columns: 1fr; }
	.nachbar-next { grid-column: auto; }
	.leer { padding: 24px 18px 28px; }
	.abend-kasten { padding: 18px 18px 20px; }
	.weitere { padding: 48px 0 56px; }
	.suchfeld .btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
	.suchfeld .btn { padding: 0; width: 46px; flex: none; }

	/* Neun Rubriken umbrechen auf dem Telefon in fuenf Zeilen - als
	   wischbare Reihe nehmen sie eine. Die Seite selbst scrollt dabei nicht
	   waagrecht, nur die Leiste. */
	.rubriken { margin: 0 -16px 20px; }
	.rubriken ul { position: relative; flex-wrap: nowrap; overflow-x: auto; margin: 0; padding: 2px 16px 8px; scrollbar-width: none; scroll-padding-inline: 16px; }
	/* Verlauf am Rand, solange es weitergeht (Klassen aus theme.js) - der
	   Anschnitt ist so als wischbare Leiste erkennbar. */
	.rubriken ul.mehr-rechts { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent); }
	.rubriken ul.mehr-links { -webkit-mask-image: linear-gradient(to right, transparent, #000 44px); mask-image: linear-gradient(to right, transparent, #000 44px); }
	.rubriken ul.mehr-links.mehr-rechts {
		-webkit-mask-image: linear-gradient(to right, transparent, #000 44px, #000 calc(100% - 44px), transparent);
		mask-image: linear-gradient(to right, transparent, #000 44px, #000 calc(100% - 44px), transparent);
	}
	.rubriken ul::-webkit-scrollbar { display: none; }
	.rubriken li { flex: none; }
}

/* =========================================================================
   Bewegung: eine einzige
   Die grossen Vereinsfotos (Aufmacher, Jugend, Grossmeister) blenden beim
   Laden weich auf - aus einem Hauch Unschaerfe, ohne Sprung. theme.js
   setzt "foto-laedt" nur an Bilder, die beim Start noch nicht da sind, und
   nur ohne den Wunsch nach weniger Bewegung. Ohne JavaScript bleibt alles
   wie es ist: sichtbar.
   ========================================================================= */

@media (prefers-reduced-motion: no-preference) {
	.foto-laedt { opacity: 0; }
	.foto-da { animation: foto-ein .9s cubic-bezier(.16, 1, .3, 1) both; }
}
@keyframes foto-ein {
	from { opacity: 0; filter: blur(6px); transform: scale(1.015); }
	to { opacity: 1; filter: none; transform: none; }
}

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