/*
Theme Name: Sportvereinigung Einsiedeln
Theme URI: https://www.sportvereinigung-einsiedeln.ch/
Author: Sportvereinigung Einsiedeln
Description: Modernes Theme für die Interessengemeinschaft der Sportvereine von Einsiedeln. Mit Mitgliedvereinen, Vorstand, Dokumenten, Unterstützern, Kontaktformular und Berichten. Beim Aktivieren werden die Inhalte der bisherigen Website automatisch angelegt.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sve
*/

/* ------------------------------------------------------------------
   Schrift (lokal eingebunden, keine Google-Fonts-Anfragen)
------------------------------------------------------------------ */
@font-face {
	font-family: "Archivo";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	font-stretch: 62% 125%;
	src: url(assets/fonts/archivo-latin-ext-wdth-normal.woff2) format("woff2-variations");
	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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Archivo";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	font-stretch: 62% 125%;
	src: url(assets/fonts/archivo-latin-wdth-normal.woff2) format("woff2-variations");
	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: "Archivo";
	font-style: italic;
	font-display: swap;
	font-weight: 100 900;
	font-stretch: 62% 125%;
	src: url(assets/fonts/archivo-latin-ext-wdth-italic.woff2) format("woff2-variations");
	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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Archivo";
	font-style: italic;
	font-display: swap;
	font-weight: 100 900;
	font-stretch: 62% 125%;
	src: url(assets/fonts/archivo-latin-wdth-italic.woff2) format("woff2-variations");
	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;
}

/* ------------------------------------------------------------------
   Tokens
   Die Farben der Sportarten sind den Linien eines Turnhallenbodens
   nachempfunden. Rot ist das Rot des Kantons Schwyz.
------------------------------------------------------------------ */
:root {
	--ink: #14213d;
	--ink-soft: #4b5876;
	--paper: #ffffff;
	--mist: #eef2f7;
	--rule: #d6dde8;
	--red: #d7262e;
	--red-dark: #b01d24;

	--c-ball: #1d5bbf;
	--c-schnee: #1597b4;
	--c-turnen: #e3a008;
	--c-kampf: #e8590c;
	--c-outdoor: #2e8b57;
	--c-anlass: #7048a8;

	--font: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--display: 68%;   /* font-stretch für Titel */
	--wrap: 1200px;
	--measure: 44rem;
	--gutter: clamp(1.25rem, 4vw, 2.5rem);
	--section: clamp(4rem, 9vw, 7.5rem);
	--radius: 6px;
	--header-h: 76px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.6;
	font-stretch: 100%;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--red); }

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

h1, h2, h3, h4 {
	font-family: var(--font);
	font-stretch: var(--display);
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: -0.005em;
	margin: 0 0 0.5em;
	text-wrap: balance;
}
h1 { font-size: clamp(2.75rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2.125rem, 4.5vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
h4 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	left: 1rem; top: 1rem; z-index: 1000; padding: 0.75rem 1rem;
	background: var(--ink); color: #fff; border-radius: var(--radius);
}

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--gutter), 760px); margin-inline: auto; }

.section { padding-block: var(--section); }
.section--mist { background: var(--mist); }
.section--ink { background: var(--ink); color: #fff; }
.section--ink a:not(.btn) { color: #fff; }

.section-head {
	display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
	gap: 1rem 2rem; margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section-head h2 { margin: 0; max-width: 18ch; }
.section-head p { margin: 0; max-width: 46ch; color: var(--ink-soft); }
.section--ink .section-head p { color: rgba(255,255,255,.75); }

/* ------------------------------------------------------------------
   Buttons & Links
------------------------------------------------------------------ */
.btn {
	display: inline-flex; align-items: center; gap: 0.55em;
	padding: 0.85em 1.4em;
	border: 2px solid transparent; border-radius: var(--radius);
	font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.1;
	text-decoration: none; cursor: pointer;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); color: #fff; }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--mist); color: var(--ink); }

.text-link { font-weight: 650; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.text-link:hover { color: var(--red); }

/* ------------------------------------------------------------------
   Header
------------------------------------------------------------------ */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255,255,255,.96);
	backdrop-filter: saturate(1.4) blur(8px);
	border-bottom: 1px solid var(--rule);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.site-header__inner {
	min-height: var(--header-h);
	display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}

.brand { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand .custom-logo { max-height: 52px; width: auto; }
.brand__mark { width: 44px; height: 44px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-stretch: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: 0.005em; }
.brand__place { font-stretch: var(--display); font-weight: 500; font-size: 1.35rem; color: var(--red); }

.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.25rem; }
.primary-nav a {
	display: block; padding: 0.6rem 0.8rem; border-radius: var(--radius);
	text-decoration: none; font-weight: 600; font-size: 0.98rem; color: var(--ink);
}
.primary-nav a:hover { background: var(--mist); color: var(--ink); }
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a,
.primary-nav .current-menu-ancestor > a { box-shadow: inset 0 -3px 0 var(--red); border-radius: 0; }
.primary-nav .menu-cta > a { background: var(--red); color: #fff; margin-left: 0.5rem; padding-inline: 1.1rem; }
.primary-nav .menu-cta > a:hover { background: var(--red-dark); color: #fff; }
.primary-nav .menu-cta.current-menu-item > a, .primary-nav .menu-cta.current_page_item > a { box-shadow: none; border-radius: var(--radius); }
.primary-nav .sub-menu { display: none; }

.nav-toggle {
	display: none; align-items: center; gap: 0.5rem;
	background: none; border: 2px solid var(--ink); border-radius: var(--radius);
	padding: 0.5rem 0.8rem; font: inherit; font-weight: 650; color: var(--ink); cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }

@media (max-width: 960px) {
	.nav-toggle { display: inline-flex; }
	.primary-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		background: #fff; border-bottom: 1px solid var(--rule);
		padding: 0.5rem var(--gutter) 1.5rem;
		box-shadow: 0 20px 30px -20px rgba(20,33,61,.25);
	}
	.primary-nav.is-open { display: block; }
	.primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
	.primary-nav a { padding: 0.95rem 0.25rem; border-bottom: 1px solid var(--rule); border-radius: 0; font-size: 1.15rem; }
	.primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { box-shadow: inset 4px 0 0 var(--red); padding-left: 1rem; }
	.primary-nav .menu-cta > a { margin: 1rem 0 0; text-align: center; border-radius: var(--radius); border: 0; }
}

/* ------------------------------------------------------------------
   Hero mit Hallenboden-Linien
------------------------------------------------------------------ */
.hero {
	position: relative; overflow: hidden;
	background: var(--mist);
	padding-block: clamp(4rem, 10vw, 8.5rem) clamp(3.5rem, 7vw, 6rem);
	isolation: isolate;
}
.hero__court {
	position: absolute; z-index: -1;
	right: -22%; top: 50%; transform: translateY(-50%);
	width: min(70vw, 980px);
	pointer-events: none;
}
.hero__court path, .hero__court rect, .hero__court circle, .hero__court line {
	fill: none; stroke-width: 3; vector-effect: non-scaling-stroke;
}
.court-ball { stroke: var(--c-ball); }
.court-red { stroke: var(--red); }
.court-green { stroke: var(--c-outdoor); }
.court-yellow { stroke: var(--c-turnen); }

@media (prefers-reduced-motion: no-preference) {
	.hero__court .draw {
		stroke-dasharray: 2400; stroke-dashoffset: 2400;
		animation: court-draw 2.2s cubic-bezier(.6,.1,.2,1) forwards;
	}
	.hero__court .court-red.draw { animation-delay: .15s; }
	.hero__court .court-green.draw { animation-delay: .3s; }
	.hero__court .court-yellow.draw { animation-delay: .45s; }
}
@keyframes court-draw { to { stroke-dashoffset: 0; } }

.hero__content { max-width: 760px; }
.hero h1 { font-size: clamp(3.25rem, 9vw, 7.25rem); line-height: 0.92; margin-bottom: 0.35em; letter-spacing: -0.01em; }
.hero__lead { font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.5; max-width: 40ch; color: var(--ink); margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

@media (max-width: 1100px) {
	.hero__court { right: -34%; opacity: .5; }
}
@media (max-width: 760px) {
	.hero__court { right: -60%; top: auto; bottom: -10%; transform: none; width: 130vw; opacity: .18; }
}

/* ------------------------------------------------------------------
   Vereinswand (Startseite)
------------------------------------------------------------------ */
.club-wall { padding-block: clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--rule); }
.club-wall__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 1rem 2rem; margin-bottom: 1.5rem; }
.club-wall__head h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin: 0; }

.club-wall__list {
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-wrap: wrap; gap: 0.15rem 1.6rem;
	font-stretch: var(--display); font-weight: 700;
	font-size: clamp(1.35rem, 2.6vw, 2.1rem); line-height: 1.25;
}
.club-wall__list a, .club-wall__list span.club-wall__name {
	text-decoration: none; color: var(--ink);
	display: inline-flex; align-items: center; gap: 0.45rem;
}
.club-wall__list a::before, .club-wall__list span.club-wall__name::before {
	content: ""; width: 0.55em; height: 0.16em; border-radius: 1px;
	background: var(--c, var(--ink-soft)); flex: none; transform: translateY(0.05em);
}
.club-wall__list a:hover { color: var(--c, var(--red)); }

.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; font-size: 0.95rem; color: var(--ink-soft); }
.legend li { display: inline-flex; align-items: center; gap: 0.45rem; }
.legend li::before { content: ""; width: 18px; height: 4px; border-radius: 1px; background: var(--c); }

/* ------------------------------------------------------------------
   Aufgaben
------------------------------------------------------------------ */
.tasks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.5rem) clamp(2rem, 5vw, 5rem); }
.task { border-top: 4px solid var(--c, var(--ink)); padding-top: 1.25rem; }
.task h3 { margin-bottom: 0.4em; }
.task p { color: var(--ink-soft); max-width: 48ch; margin-bottom: 0.8em; }
@media (max-width: 720px) { .tasks { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------
   Berichte
------------------------------------------------------------------ */
.news-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.news-lead__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--rule); margin-bottom: 1.25rem; }
.news-lead__media img { width: 100%; height: 100%; object-fit: cover; }
.news-lead h3 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); margin-bottom: 0.35em; }
.news-lead h3 a, .news-item h3 a { text-decoration: none; }
.news-lead h3 a:hover, .news-item h3 a:hover { color: var(--red); }
.news-list { display: flex; flex-direction: column; }
.news-item { display: grid; grid-template-columns: 120px 1fr; gap: 1.1rem; padding-block: 1.25rem; border-top: 1px solid var(--rule); }
.news-item:first-child { border-top: 0; padding-top: 0; }
.news-item__media { aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); background: var(--rule); display: block; }
.news-item__media img { width: 100%; height: 100%; object-fit: cover; }
.news-item h3 { font-size: 1.5rem; margin-bottom: 0.25em; }
.meta { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 0.5rem; }
.meta a { color: inherit; }
.excerpt { color: var(--ink-soft); }
.excerpt p:last-child { margin-bottom: 0; }

.media-placeholder { width: 100%; height: 100%; display: block; background: var(--ink); }
.media-placeholder svg { width: 100%; height: 100%; opacity: .9; }

@media (max-width: 860px) { .news-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .news-item { grid-template-columns: 84px 1fr; } .news-item h3 { font-size: 1.3rem; } }

/* ------------------------------------------------------------------
   Dokumente
------------------------------------------------------------------ */
.docs { list-style: none; margin: 0; padding: 0; border-top: 2px solid currentColor; }
.doc { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.5rem 1.5rem; padding-block: 1.1rem; border-bottom: 1px solid var(--rule); }
.section--ink .doc { border-bottom-color: rgba(255,255,255,.18); }
.doc__title { font-weight: 650; font-size: 1.1rem; margin: 0; line-height: 1.3; }
.doc__meta { font-size: 0.9rem; color: var(--ink-soft); }
.section--ink .doc__meta { color: rgba(255,255,255,.7); }
.doc__link { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.doc__link svg { width: 18px; height: 18px; }
.doc__link:hover { color: var(--red); }
.section--ink .doc__link:hover { color: #fff; text-decoration: underline; }
.doc__missing { font-size: 0.9rem; color: var(--ink-soft); }
@media (max-width: 560px) { .doc { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------
   Vorstand
------------------------------------------------------------------ */
.board { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 2.5rem 2rem; }
.person__photo { width: 112px; height: 112px; border-radius: 50%; overflow: hidden; margin-bottom: 1rem; background: var(--mist); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__initials {
	width: 112px; height: 112px; border-radius: 50%; margin-bottom: 1rem;
	display: grid; place-items: center;
	border: 3px solid var(--c, var(--ink)); color: var(--ink);
	font-stretch: var(--display); font-weight: 800; font-size: 2.4rem; letter-spacing: 0.02em;
}
.person__role { color: var(--red); font-weight: 650; margin: 0 0 0.15rem; }
.person__name { font-size: 1.9rem; margin: 0 0 0.6rem; }
.person__contact { list-style: none; margin: 0; padding: 0; font-size: 0.98rem; }
.person__contact li { margin-bottom: 0.2rem; }
.person__contact a { display: inline-flex; align-items: center; gap: 0.45rem; }
.person__contact svg { width: 16px; height: 16px; flex: none; }
.board--compact .person__name { font-size: 1.6rem; }

/* ------------------------------------------------------------------
   Unterstützer
------------------------------------------------------------------ */
.partners { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 3rem; }
.partners__label { color: var(--ink-soft); margin: 0; }
.partner { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); font-weight: 750; font-size: 1.25rem; }
.partner img { max-height: 56px; width: auto; }

/* ------------------------------------------------------------------
   Seitenkopf (Unterseiten)
------------------------------------------------------------------ */
.page-hero { background: var(--mist); padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); position: relative; overflow: hidden; }
.page-hero::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
	background: linear-gradient(90deg, var(--c-ball) 0 25%, var(--red) 25% 50%, var(--c-outdoor) 50% 75%, var(--c-turnen) 75% 100%);
}
.page-hero h1 { margin-bottom: 0.25em; max-width: 16ch; }
.page-hero__lead { font-size: 1.2rem; max-width: 52ch; color: var(--ink); margin: 0; }
.page-hero .meta { font-size: 1rem; margin-bottom: 1rem; }
.breadcrumb { font-size: 0.95rem; margin-bottom: 1rem; color: var(--ink-soft); }
.breadcrumb a { color: inherit; }

/* ------------------------------------------------------------------
   Mitglieder-Verzeichnis
------------------------------------------------------------------ */
.directory-tools { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
	display: inline-flex; align-items: center; gap: 0.5rem;
	padding: 0.5rem 0.9rem; border: 1.5px solid var(--rule); border-radius: 999px;
	background: #fff; color: var(--ink); font: inherit; font-size: 0.95rem; font-weight: 600; cursor: pointer;
}
.chip::before { content: ""; width: 14px; height: 4px; border-radius: 1px; background: var(--c, var(--ink)); }
.chip[data-filter="alle"]::before { display: none; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip__count { font-weight: 450; opacity: .7; }

.search-field { position: relative; min-width: min(100%, 300px); }
.search-field input {
	width: 100%; padding: 0.75rem 1rem 0.75rem 2.6rem;
	border: 1.5px solid var(--rule); border-radius: var(--radius); font: inherit; background: #fff;
}
.search-field input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(29,91,191,.25); }
.search-field svg { position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-soft); }

.directory { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 5vw, 4rem); }
.club { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.25rem 1rem; padding-block: 1rem; border-bottom: 1px solid var(--rule); }
.club[hidden] { display: none; }
.club__line { width: 6px; align-self: stretch; border-radius: 2px; background: var(--c, var(--ink-soft)); grid-row: span 2; }
.club__logo { grid-row: span 2; width: 48px; height: 48px; object-fit: contain; }
.club__name { font-stretch: 80%; font-weight: 750; font-size: 1.25rem; line-height: 1.2; margin: 0; }
.club__sport { font-size: 0.9rem; color: var(--ink-soft); grid-column: 2; }
.club__desc { font-size: 0.95rem; color: var(--ink-soft); grid-column: 2; margin: 0.2rem 0 0; }
.club__link { grid-column: 3; grid-row: 1 / span 2; display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; font-size: 0.95rem; text-decoration: none; white-space: nowrap; }
.club__link svg { width: 16px; height: 16px; }
.club__link:hover { color: var(--red); }
.club--has-logo { grid-template-columns: auto auto 1fr auto; }
.club--has-logo .club__sport, .club--has-logo .club__desc { grid-column: 3; }
.club--has-logo .club__link { grid-column: 4; }
.directory-empty { padding: 2rem 0; color: var(--ink-soft); }
.directory-count { color: var(--ink-soft); font-size: 0.95rem; margin: 0 0 0.5rem; }
@media (max-width: 760px) {
	.directory { grid-template-columns: 1fr; }
	.club__link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.club__link { padding: 0.5rem; }
}

/* ------------------------------------------------------------------
   Inhalt / Beitrag
------------------------------------------------------------------ */
.entry { padding-block: clamp(3rem, 6vw, 5rem); }
.entry-content { font-size: 1.125rem; line-height: 1.7; }
.entry-content > * { max-width: var(--measure); margin-inline: auto; }
.entry-content > .alignwide { max-width: var(--wrap); }
.entry-content > .alignfull { max-width: none; }
.entry-content h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin: 1.6em auto 0.5em; }
.entry-content h3 { margin: 1.4em auto 0.5em; }
.entry-content h4 { margin: 1.2em auto 0.5em; }
.entry-content a { text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.entry-content blockquote { border-left: 4px solid var(--red); padding-left: 1.25rem; margin-block: 2rem; font-size: 1.25rem; }
.entry-content img { border-radius: var(--radius); }
.entry-content figure { margin-block: 2rem; }
.entry-content figcaption, .wp-element-caption { font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.6rem; }
.entry-content ul, .entry-content ol { padding-left: 1.25em; }
.entry-content li { margin-bottom: 0.35em; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.entry-content th, .entry-content td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--rule); text-align: left; }
.entry-content hr { border: 0; border-top: 1px solid var(--rule); margin-block: 2.5rem; }
.entry-featured { margin: 0 auto clamp(2rem, 4vw, 3rem); max-width: 1000px; }
.entry-featured img { width: 100%; border-radius: var(--radius); }
.alignleft { float: left; margin: 0.3rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.3rem 0 1rem 1.5rem; }
.aligncenter { margin-inline: auto; }

.tags { max-width: var(--measure); margin: 2.5rem auto 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tags a { padding: 0.35rem 0.8rem; border-radius: 999px; background: var(--mist); text-decoration: none; font-size: 0.9rem; font-weight: 600; }
.tags a:hover { background: var(--ink); color: #fff; }

.post-nav { max-width: var(--measure); margin: 3rem auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; border-top: 1px solid var(--rule); padding-top: 1.5rem; }
.post-nav a { text-decoration: none; display: block; }
.post-nav small { display: block; color: var(--ink-soft); font-size: 0.9rem; }
.post-nav strong { font-stretch: 80%; font-size: 1.2rem; line-height: 1.25; display: block; }
.post-nav .next { text-align: right; grid-column: 2; }

/* Archiv-Liste */
.archive-list { list-style: none; margin: 0; padding: 0; }
.archive-item { display: grid; grid-template-columns: 260px 1fr; gap: clamp(1.25rem, 3vw, 2.5rem); padding-block: 2rem; border-bottom: 1px solid var(--rule); }
.archive-item:first-child { padding-top: 0; }
.archive-item__media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--mist); display: block; }
.archive-item__media img { width: 100%; height: 100%; object-fit: cover; }
.archive-item h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 0.3em; }
.archive-item h2 a { text-decoration: none; }
.archive-item h2 a:hover { color: var(--red); }
@media (max-width: 680px) { .archive-item { grid-template-columns: 1fr; } }

.pagination { margin-top: 3rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 0.8rem; border: 1.5px solid var(--rule); border-radius: var(--radius); text-decoration: none; font-weight: 600; }
.pagination .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination a.page-numbers:hover { border-color: var(--ink); color: var(--ink); }

/* Seitenleiste-Layout für Unterseiten mit Downloads */
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.aside-box { background: var(--mist); border-radius: var(--radius); padding: 1.75rem; position: sticky; top: calc(var(--header-h) + 1.5rem); }
.aside-box h2 { font-size: 1.75rem; }
.aside-box .docs { border-top-width: 1px; }
.aside-box .doc { grid-template-columns: 1fr; gap: 0.25rem; }
@media (max-width: 960px) { .with-aside { grid-template-columns: 1fr; } .aside-box { position: static; } }

/* ------------------------------------------------------------------
   Kontakt
------------------------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contact-details { font-size: 1.15rem; }
.contact-details dl { margin: 0 0 2rem; }
.contact-details dt { font-weight: 650; color: var(--ink-soft); font-size: 0.95rem; margin-top: 1.25rem; }
.contact-details dd { margin: 0.15rem 0 0; }
.contact-details address { font-style: normal; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 650; margin-bottom: 0.35rem; }
.field label small { font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea {
	width: 100%; padding: 0.8rem 0.95rem; border: 1.5px solid var(--rule); border-radius: var(--radius);
	font: inherit; color: var(--ink); background: #fff;
}
.field textarea { min-height: 180px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(29,91,191,.25); }
.field--hp { position: absolute; left: -9999px; }
.form__privacy { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }
.notice { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.5rem; font-weight: 600; }
.notice--ok { background: #e3f3ea; color: #1d5e3a; border-left: 4px solid var(--c-outdoor); }
.notice--error { background: #fde8e8; color: #8a1a1f; border-left: 4px solid var(--red); }

/* Suche */
.search-form { display: flex; gap: 0.5rem; max-width: 560px; }
.search-form input[type="search"] { flex: 1; padding: 0.8rem 1rem; border: 1.5px solid var(--rule); border-radius: var(--radius); font: inherit; }
.search-form input[type="search"]:focus { border-color: var(--ink); outline: none; }

/* Kommentare */
.comments { max-width: var(--measure); margin: 4rem auto 0; }
.comments h2 { font-size: 2rem; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { padding: 1.25rem 0; border-top: 1px solid var(--rule); }
.comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea { width: 100%; padding: 0.7rem 0.9rem; border: 1.5px solid var(--rule); border-radius: var(--radius); font: inherit; }
.comment-form .submit { background: var(--red); color: #fff; border: 0; padding: 0.85rem 1.4rem; border-radius: var(--radius); font: inherit; font-weight: 650; cursor: pointer; }

/* ------------------------------------------------------------------
   Footer
------------------------------------------------------------------ */
.site-footer { background: var(--ink); color: rgba(255,255,255,.82); padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem; font-size: 0.98rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-title { color: #fff; font-stretch: var(--display); font-weight: 800; font-size: 1.35rem; margin: 0 0 0.9rem; }
.footer-brand .footer-title { font-size: 2rem; line-height: 1; }
.footer-brand p { max-width: 34ch; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 0.5rem; }
.footer-partner img { max-height: 48px; width: auto; background: #fff; padding: 6px 10px; border-radius: 4px; }
.footer-bottom { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.15); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.9rem; color: rgba(255,255,255,.6); }
.footer-lines { height: 6px; margin-top: 0; background: linear-gradient(90deg, var(--c-ball) 0 25%, var(--red) 25% 50%, var(--c-outdoor) 50% 75%, var(--c-turnen) 75% 100%); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

/* 404 */
.error-links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* WordPress-Klassen */
.sticky .news-lead h3::after { content: ""; }
.bypostauthor {}
.gallery-caption {}
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.9rem; color: var(--ink-soft); }

@media print {
	.site-header, .site-footer, .hero__court, .nav-toggle { display: none !important; }
	body { font-size: 11pt; }
}
