/* JFV Untere Elz e.V. – Website-Stylesheet
   Aufbau: Grundlagen · Knöpfe · Kopfzeile · Titelbereiche · Startseite · Unterseiten (Inhalt und
   Bausteine) · Mannschaften und Personen · Beiträge · Formulare · Fußzeile · Druck */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --black: #000;
  --white: #fff;
  --ink: #111;                /* Überschriften */
  --text: #474747;            /* Fließtext (≈ 9:1 auf Weiß) */
  --muted: #6b6b6b;           /* Nebentexte (≈ 5:1) */
  --line: #e5e5e1;
  --surface: #f5f5f2;         /* helle Flächen für Karten */
  --accent: #f5a000;          /* Orange: Knöpfe und Hervorhebungen, neutral zu allen Stammvereinen */
  --accent-soft: #fff3d6;
  --accent-hover: #111;
  --link: #a45800;            /* dunkleres Orange für Links und Texte (gut lesbar auf Weiß) */
  --link-hover: #1868b0;
  /* Die vier Farben aus dem Logo – je eine pro Stammverein */
  --logo-gruen: #00a040; --logo-hellblau: #80a0c8; --logo-dunkelblau: #1868b0; --logo-rot: #e03828;
  --vierklang: linear-gradient(90deg, var(--logo-gruen) 0 25%, var(--logo-hellblau) 25% 50%, var(--logo-dunkelblau) 50% 75%, var(--logo-rot) 75%);
  --pinsel-fein: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 44' preserveAspectRatio='none'%3E%3Cpath d='M4 9C30 5 70 7 110 5.5S170 6 195 7.5c2.5 6.5 1 14.5 3 21.5-1.5 4-1 7-4 9-34 1.5-74-.5-114 1-30 1-55-.5-75-2-2-6-.5-12-2.5-18 .5-4-.5-7 1.5-10Z'/%3E%3C/svg%3E");
  --container: 1180px;
  --measure: 760px;           /* Lesebreite für Text */
  --page: 1100px;             /* Breite der Unterseiten (Titel und Inhalt teilen sich die linke Kante) */
  --display-size: 60px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 12px 32px rgba(17, 17, 17, .1);
  --header-h: 75px;
}
@media (max-width: 1024px) { :root { --display-size: 40px; } }

/* ------------------------------------------------------------------ Grundlagen */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 1rem; line-height: 1.65; color: var(--text); background: var(--white); }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover, a:focus-visible { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--link-hover); outline-offset: 3px; }
h1, h2, h3, h4, h5, h6 { color: var(--ink); font-weight: 700; line-height: 1.2; margin: 0 0 .75rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.4em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
table { border-collapse: collapse; width: 100%; margin-bottom: 1rem; }
th, td { border: 1px solid var(--line); padding: .5rem .75rem; text-align: left; }
th { background: var(--surface); color: var(--ink); }
blockquote { margin: 1.5rem 0; padding: .5rem 1.25rem; border-left: 4px solid var(--accent); }
.icon-svg { width: 1em; height: 1em; fill: currentColor; display: inline-block; vertical-align: -.125em; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: calc(var(--header-h) + 20px); }  /* Sprungziele nicht unter der Kopfzeile verstecken */
.visually-hidden { 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: 1rem; top: -100px; z-index: 1000; background: var(--accent); color: var(--black); padding: .75rem 1rem; font-weight: 600; }
.skip-link:focus { top: 1rem; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 16px; }
.text-center { text-align: center; }

/* Große Überschriften der Startseite: Montserrat 800, Versalien */
.display { font-size: min(var(--display-size), 7.4vw); font-weight: 800; text-transform: uppercase; letter-spacing: -1.2px; line-height: 1.15; text-align: center; color: var(--ink); margin: 0 0 40px; overflow-wrap: break-word; }
.display.light { color: var(--white); }

/* ------------------------------------------------------------------ Knöpfe */
/* Schlanke, schräge Fläche (::before, damit der Text gerade bleibt). Schwarz auf Orange ≈ 9:1. */
.btn { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 26px; background: none; color: var(--black); font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1.2; letter-spacing: 1.4px; text-transform: uppercase; text-align: center; border: 0; cursor: pointer; transition: color .3s; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent); transform: skewX(-14deg); border-radius: 1px; transition: background-color .3s; }
.btn:hover, .btn:focus-visible { color: var(--white); }
.btn:hover::before { background: var(--accent-hover); }
.btn-block { width: 100%; min-height: 50px; font-size: 14px; }
.btn-small { padding-inline: 22px; }
.btn-wrap { text-align: center; margin: 30px 0 0; }
/* Zweitknopf auf dunklem Grund: Umriss statt Fläche */
.btn.btn-light { color: var(--white); }
.btn.btn-light::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--white); }
.btn.btn-light:hover { color: var(--black); }
.btn.btn-light:hover::before { background: var(--white); }
.btn-outline { display: inline-block; color: var(--white); background: rgba(0, 0, 0, .71); border: 2px solid var(--white); border-radius: 3px; padding: 8px 18px; font-size: 15px; font-weight: 400; text-transform: uppercase; transition: color .3s, border-color .3s; }
.btn-outline:hover, .btn-outline:focus-visible { color: var(--accent); border-color: var(--accent); }
.btn-plain { font-weight: 700; text-transform: uppercase; font-size: 13px; color: var(--ink); }

/* ------------------------------------------------------------------ Kopfzeile */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--black); }
.header-inner { min-height: var(--header-h); display: flex; align-items: center; gap: 20px; padding: 0 50px 0 60px; }
.site-logo { display: inline-flex; align-items: center; gap: 12px; color: var(--white); min-width: 0; }
.site-logo:hover, .site-logo:focus-visible { color: var(--white); }
.brand-emblem { width: 46px; height: 46px; flex: none; }
/* Größe nur über .brand-text steuern: Bei 0.5976em ist der Slogan in Montserrat genau so breit wie der Name */
.brand-text { display: flex; flex-direction: column; align-items: flex-start; font-size: 20px; line-height: 1.15; min-width: 0; text-align: left; }
.brand-name { font-size: 1em; font-weight: 700; white-space: nowrap; }
.brand-claim { font-size: .5976em; color: rgba(255, 255, 255, .78); white-space: nowrap; margin-top: 1px; }
@media (max-width: 420px) {
  .site-header .site-logo { gap: 9px; }
  .site-header .brand-emblem { width: 38px; height: 38px; }
  .site-header .brand-text { font-size: 17px; }
}
.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; list-style: none; margin: 0; padding: 0; }
.main-nav li { position: relative; }
.main-nav > ul > li { display: flex; align-items: center; }
.main-nav > ul > li > a { display: block; color: var(--white); font-size: 15px; font-weight: 500; text-transform: uppercase; padding: 20px 5px 20px 20px; }
.main-nav > ul > li:not(.has-sub) > a { padding-right: 20px; }
.main-nav > ul > li > a:hover, .main-nav > ul > li.active > a, .main-nav > ul > li:focus-within > a { color: var(--accent); }
.sub-toggle { background: none; border: 0; color: var(--white); padding: 20px 15px 20px 6px; cursor: pointer; font-size: 12px; line-height: 1; }
.has-sub:hover > .sub-toggle, .has-sub:focus-within > .sub-toggle { color: var(--accent); }
.sub-menu { list-style: none; margin: 0; padding: 6px; position: absolute; left: 0; top: 100%; min-width: 230px; background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s; }
.has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu, .has-sub.open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav > ul > li:last-child > .sub-menu { left: auto; right: 0; }  /* letzter Punkt: Untermenü nach links öffnen, sonst ragt es über den Rand */
.sub-menu a { display: block; color: var(--ink); font-size: 15px; font-weight: 600; padding: 11px 14px; border-radius: 6px; }
.sub-menu a:hover, .sub-menu a:focus-visible, .sub-menu a[aria-current] { background: var(--surface); color: var(--link); }
.header-tools { display: flex; align-items: center; gap: 4px; }
.header-icon { background: none; border: 0; color: var(--white); font-size: 20px; padding: 10px; cursor: pointer; display: inline-flex; line-height: 1; }
.header-icon:hover, .header-icon:focus-visible { color: var(--accent); }
.menu-toggle { display: none; }
.menu-toggle .icon-close, .menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: inline-block; }

/* Schmale Bildschirme mit ausgeklapptem Menü: Logo und Menü enger, damit beides in eine Zeile passt */
@media (min-width: 1025px) and (max-width: 1300px) {
  .header-inner { padding: 0 20px; gap: 12px; }
  .site-logo { flex: none; gap: 10px; }
  .brand-emblem { width: 40px; height: 40px; }
  .brand-text { font-size: 17px; }
  .main-nav > ul > li > a { font-size: 14px; padding-left: 12px; }
  .main-nav > ul > li:not(.has-sub) > a { padding-right: 12px; }
  .sub-toggle { padding-right: 8px; }
}
@media (max-width: 1024px) {
  .header-inner { padding: 0 15px; }
  .menu-toggle { display: inline-flex; }
  .header-tools { margin-left: auto; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); display: none; max-height: calc(100vh - var(--header-h)); overflow-y: auto; margin: 0; box-shadow: var(--shadow); }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; }
  .main-nav > ul > li { flex-wrap: wrap; justify-content: space-between; border-bottom: 1px solid var(--line); }
  .main-nav > ul > li > a { color: var(--ink); padding: 14px 20px; flex: 1; }
  .sub-toggle { color: var(--ink); padding: 14px 20px; font-size: 16px; }
  .sub-menu { position: static; width: 100%; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; background: var(--surface); border-radius: 0; padding: 0 0 8px; }
  .has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu { display: none; }
  .has-sub.open > .sub-menu { display: block; }
  .sub-menu a { padding: 11px 20px 11px 36px; border-radius: 0; }
}

/* ------------------------------------------------------------------ Titelbereiche */
/* Foto leicht unscharf im Hintergrund, dunkler Verlauf, Text links, schräge Unterkante */
.hero { position: relative; isolation: isolate; overflow: hidden; color: var(--white); background: #14181f; }
.hero-bg { position: absolute; inset: -24px; z-index: -2; background: var(--bg) center / cover no-repeat; filter: blur(1.5px) saturate(.88); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 12, 18, .92) 0%, rgba(8, 12, 18, .72) 45%, rgba(8, 12, 18, .3) 100%); }
.hero-inner { position: relative; width: 100%; max-width: var(--container); margin: 0 auto; padding: 70px 16px 90px; }
.hero-kicker { margin: 0 0 8px; font-size: 14px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); }
.hero-title { margin: 0; color: var(--white); font-weight: 800; line-height: 1.02; letter-spacing: -1.5px; text-transform: uppercase; overflow-wrap: break-word; hyphens: manual; }

.hero-home { min-height: clamp(460px, 72vh, 760px); display: flex; align-items: center; margin-bottom: 30px; clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%); }
.hero-home .hero-title { font-size: clamp(40px, 7vw, 88px); }
.hero-emblem { width: 64px; height: 64px; margin-bottom: 18px; }
.hero-claim { margin: 18px 0 0; font-size: clamp(18px, 2.2vw, 26px); font-weight: 600; }
.hero-claim span { position: relative; z-index: 0; display: inline-block; white-space: nowrap; padding: 4px 18px; color: var(--black); }
.hero-claim span::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent); -webkit-mask: var(--pinsel-fein) center / 100% 100% no-repeat; mask: var(--pinsel-fein) center / 100% 100% no-repeat; }
.hero-clubs { margin: 22px 0 0; font-size: 15px; color: rgba(255, 255, 255, .85); letter-spacing: .3px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px 18px; margin: 30px 0 0; }

.hero-page { display: flex; align-items: flex-end; min-height: clamp(260px, 34vh, 360px); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), 0 100%); }
.hero-page .hero-inner { padding: 48px 16px 74px; }
.hero-page .hero-title { font-size: clamp(32px, 5.2vw, 64px); }
.breadcrumb ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; font-size: 13px; color: rgba(255, 255, 255, .75); }
.breadcrumb li + li::before { content: "›"; margin: 0 8px; color: rgba(255, 255, 255, .5); }
.breadcrumb a { color: rgba(255, 255, 255, .85); }
.breadcrumb a:hover, .breadcrumb a:focus-visible { color: var(--accent); }

@media (max-width: 767px) {
  .hero-bg, .bg-image, .post-hero { background-image: var(--bg-sm, var(--bg)); }
  .hero::after { background: linear-gradient(rgba(8, 12, 18, .55), rgba(8, 12, 18, .88)); }
  .hero-inner { padding: 48px 16px 64px; }
  .hero-cta .btn { width: 100%; }
  .hero-page { min-height: 220px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), 0 100%); }
  .hero-page .hero-inner { padding: 32px 16px 46px; }
  .hero-page .hero-title { letter-spacing: -.5px; }
}

/* ------------------------------------------------------------------ Startseite */
.home-section { padding: 72px 0; }
.home-surface { background: var(--surface); }
.home-dark { color: rgba(255, 255, 255, .85); }
.bg-image { position: relative; background: #111 var(--bg) center / cover no-repeat; }
.bg-image::before { content: ""; position: absolute; inset: 0; background: #000; opacity: var(--overlay, .5); }
.bg-image > * { position: relative; }
@media (max-width: 767px) { .home-section { padding: 48px 0; } }

/* Abschnittskopf: Überschrift links mit Vierklang-Linie, Link rechts */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-bottom: 28px; }
.section-title { margin: 0; font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; text-transform: uppercase; letter-spacing: -.5px; line-height: 1.15; }
.section-title::before { content: ""; display: block; width: 48px; height: 4px; margin-bottom: 14px; border-radius: 2px; background: var(--vierklang); }
.home-dark .section-title { color: var(--white); }
.section-link { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 8px 0; }
.home-dark .section-link { color: var(--accent); }
.home-dark .section-link:hover { color: var(--white); }
.clubs-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 190px); gap: 24px 56px; align-items: center; margin-bottom: 36px; }
.clubs-intro p { max-width: var(--measure); margin: 0; font-size: 17px; }
.clubs-logos img { width: 100%; max-width: 190px; margin: 0 auto; }
@media (max-width: 900px) { .clubs-intro { grid-template-columns: 1fr; } .clubs-logos img { max-width: 190px; } }

.home-team-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; }
.team-circles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px 10px; width: 100%; max-width: 460px; margin: 0 auto; }
.circle-fader { grid-column: span 2; position: relative; aspect-ratio: 1; max-width: 140px; margin: 0 auto; width: 100%; border-radius: 50%; overflow: hidden; background: #e8e8e8; box-shadow: 0 0 0 4px var(--white), 0 0 0 6px var(--accent); }
.circle-fader:nth-child(4) { grid-column: 2 / span 2; }
.circle-fader:nth-child(5) { grid-column: 4 / span 2; }
.circle-fader img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; opacity: 0; transition: opacity .5s; }
.circle-fader img.is-active { opacity: 1; }
.home-team-text .section-title { margin-bottom: 18px; }
.home-team-text p { max-width: 460px; }
@media (max-width: 767px) { .home-team-grid { grid-template-columns: 1fr; gap: 32px; } .home-team-text { order: -1; } }

.concept-boxes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.concept-box { padding: 28px 24px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius); backdrop-filter: blur(4px); }
.concept-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 16px; border-radius: 50%; background: var(--accent); color: var(--black); font-size: 22px; }
.concept-box h3 { margin: 0; color: var(--white); font-size: 17px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }

.card-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: auto 0 0; padding-top: 6px; }
.card-extra { position: relative; z-index: 1; font-size: 13px; font-weight: 600; }  /* über der klickbaren Kartenfläche */

.sponsor-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 16px; }
.sponsor-grid a { display: flex; align-items: center; justify-content: center; height: 130px; padding: 18px 22px; background: var(--white); border-radius: var(--radius); transition: box-shadow .25s, transform .25s; }
.sponsor-grid a:hover, .sponsor-grid a:focus-visible { box-shadow: var(--shadow); transform: translateY(-3px); }
.sponsor-grid img { max-width: 100%; max-height: 90px; width: auto; object-fit: contain; }
@media (max-width: 560px) { .sponsor-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .sponsor-grid a { height: 96px; padding: 12px 14px; } .sponsor-grid img { max-height: 64px; } }

/* ------------------------------------------------------------------ Unterseiten */
.page-body { padding-top: 48px; padding-bottom: 90px; }
@media (max-width: 767px) { .page-body { padding-top: 32px; padding-bottom: 60px; } }

/* Text läuft linksbündig in angenehmer Lesebreite, Raster und Bilder nutzen die ganze Breite */
.page-body, .hero-page .hero-inner { max-width: var(--page); }
.content { overflow-wrap: break-word; }
.content > * { max-width: var(--measure); margin-left: 0; margin-right: 0; }
.content.text-center > * { margin-left: auto; margin-right: auto; }
.content > :is(.cols, .cards, .stat-tiles, .note, .callout, .engage, .gallery, .people-cards, .people-group, .post-grid, .facts, .team-photo, .tabs, .map, .video, .embed, .icon-list, .contact-cards, .fussball-widgets, .pagination),
.content > div:has(> .include-fussball-de-widgets) { max-width: none; }
.content > :last-child { margin-bottom: 0; }
.content > :first-child { margin-top: 0; }

.content h2 { margin-top: 64px; margin-bottom: 20px; font-size: clamp(24px, 3vw, 32px); font-weight: 800; text-transform: uppercase; letter-spacing: -.3px; line-height: 1.2; text-wrap: balance; }
/* Kurze Linie in den vier Logofarben über jeder Abschnittsüberschrift */
.content h2::before { content: ""; display: block; width: 48px; height: 4px; margin-bottom: 14px; border-radius: 2px; background: var(--vierklang); }
.content h2[style] { text-transform: none; letter-spacing: 0; }
.text-center h2::before, .content h2.text-center::before { margin-left: auto; margin-right: auto; }
.content h3 { font-size: 20px; margin-top: 2rem; }
.content h4 { font-size: 17px; margin-top: 1.5rem; }
.content > h2 + h3, .content > h3:first-child { margin-top: 0; }
.content strong, .content b { color: var(--ink); }
.content img { margin-left: auto; margin-right: auto; border-radius: var(--radius-sm); }
.content figure { margin-bottom: 1.5rem; }
.content figcaption { text-align: center; font-size: 13px; color: var(--muted); margin-top: 8px; }
.content .aligncenter { text-align: center; }
.content iframe { border: 0; }

.cols { display: grid; gap: 16px 24px; margin-bottom: 24px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols .col > :last-child { margin-bottom: 0; }
@media (max-width: 1024px) { .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .cols { grid-template-columns: 1fr !important; } }

/* Zahlen-Kacheln: immer vier, je eine Farbkante in den Logofarben */
.stat-tiles { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.content > .stat-tiles { max-width: none; }
.stat-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 26px 16px 22px; background: var(--surface); border-radius: var(--radius); border-top: 4px solid var(--logo-gruen); }
.stat-tile:nth-child(2) { border-top-color: var(--logo-hellblau); }
.stat-tile:nth-child(3) { border-top-color: var(--logo-dunkelblau); }
.stat-tile:nth-child(4) { border-top-color: var(--logo-rot); }
.stat-number { display: block; font-size: clamp(36px, 4.4vw, 52px); font-weight: 800; color: var(--ink); line-height: 1; letter-spacing: -1px; }
.stat-label { display: block; margin-top: 10px; font-size: 13px; font-weight: 600; line-height: 1.4; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.home-stats .stat-tiles { margin: 0; }
@media (max-width: 900px) { .stat-tiles { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 480px) {
  .stat-tile { padding: 18px 10px 16px; }
  .stat-number { font-size: 32px; }
  .stat-label { font-size: 11px; letter-spacing: .3px; hyphens: auto; }
}

/* Info-Kacheln mit Symbol (z. B. Stammvereine) */
.icon-box { height: 100%; padding: 24px 18px 20px; text-align: center; background: var(--surface); border-radius: var(--radius); }
.icon-box .icon, .fact-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--accent-soft); color: var(--link); font-size: 20px; }
.icon-box .icon { margin-bottom: 14px; }
.content .icon-box h3 { margin: 0 0 6px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); }
.icon-box p { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.45; }

/* Listen mit Symbolen: Vorteile als Kacheln in zwei Spalten */
.icon-list { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 12px; }
.icon-list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; background: var(--surface); border-radius: var(--radius-sm); line-height: 1.5; }
.icon-list .icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--link); font-size: 15px; }
.icon-list li > span:last-child { padding-top: 6px; }

/* Engagement: Abschnitte zweispaltig (Text links, Vorteile rechts), Sprung-Kacheln oben */
.lead-text { font-size: 18px; color: var(--ink); }
.engage { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 56px; align-items: start; margin-top: 72px; }
.content .engage h2 { margin-top: 0; }
.engage-text > :last-child, .engage-list > :last-child { margin-bottom: 0; }
.engage .icon-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); margin: 0; }
.engage .video, .engage figure { margin-top: 20px; }
.jump-cards { margin-top: 28px; }
.jump-cards .card-body { padding: 20px 22px; }
.jump-cards .icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 50%; background: var(--accent-soft); color: var(--link); font-size: 18px; }
.jump-cards .card-title { font-size: 16px; margin-bottom: 4px; }
.jump-cards .card-text { margin: 0; }
.content > .callout:last-child { margin-top: 72px; padding: 36px 28px; }
@media (max-width: 900px) { .engage { grid-template-columns: 1fr; margin-top: 56px; } }

/* Nummerierte Regeln (Ehrenkodex) und Stufen (Sanktionen) */
.content ol.rules, .content ol.steps { list-style: none; padding: 0; counter-reset: punkt; }
.content ol.rules li, .content ol.steps li { counter-increment: punkt; position: relative; padding: 10px 0 10px 52px; border-bottom: 1px solid var(--line); }
.content ol.rules li::before, .content ol.steps li::before { content: counter(punkt); position: absolute; left: 0; top: 8px; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface); color: var(--ink); font-weight: 700; font-size: 14px; }
.content ol.steps li::before { background: var(--accent-soft); color: var(--link); }

/* Inhaltsverzeichnis als Sprungmarken */
.toc { margin-bottom: 2rem; padding: 18px 20px; background: var(--surface); border-radius: var(--radius); }
.toc-title { margin: 0 0 10px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { display: inline-block; padding: 7px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 14px; font-weight: 600; }
.toc a:hover, .toc a:focus-visible { border-color: var(--accent); color: var(--link); }
.toc .toc-l3 a { font-weight: 500; font-size: 13px; }

.progress { margin-bottom: 18px; }
.progress-title { display: block; color: var(--ink); font-weight: 600; margin-bottom: 6px; }
.progress-track { background: var(--surface); border-radius: 999px; height: 28px; overflow: hidden; }
.progress-bar { display: flex; align-items: center; justify-content: flex-end; height: 100%; background: var(--accent); color: var(--black); padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }

.map, .video { position: relative; aspect-ratio: 16 / 9; margin-bottom: 1.5rem; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.map { aspect-ratio: auto; height: 420px; }
.map iframe, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.content .embed { margin-block: 1.5rem; }
.content .embed iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; }

/* Platzhalter für externe Inhalte (erst nach Klick geladen) */
.consent-embed { background: var(--surface); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; text-align: center; padding: 30px 20px; min-height: 220px; height: 100%; width: 100%; }
.map .consent-embed, .video .consent-embed { position: absolute; inset: 0; }
.consent-box { max-width: 520px; font-size: 14px; }
.consent-box p { margin-bottom: 18px; }
.consent-remember { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 14px; font-size: 13px; cursor: pointer; }
.consent-remember input { accent-color: var(--accent); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-bottom: 1.5rem; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
/* Große Bildergalerie (Stammvereine): ein Bild volle Breite, mehrere Bilder in zwei Spalten */
.gallery-large { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.gallery-large img { aspect-ratio: 16 / 9; border-radius: var(--radius); }
.gallery-large figure:only-child img { aspect-ratio: auto; max-height: 640px; }

/* Kacheln (Mannschaften, Unterseiten): ganze Karte klickbar */
.cards { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 22px; }
.team-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }  /* sechs Teams: 3 × 2 */
/* Genau vier Kacheln: in einer Reihe bzw. 2 × 2 statt 3 + 1 */
.cards:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1024px) { .cards:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards:has(> li:nth-child(4):last-child) { grid-template-columns: 1fr; } }
.card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover, .card:focus-within { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card-img { aspect-ratio: 16 / 10; background: var(--surface); overflow: hidden; }
.card-img:empty { aspect-ratio: auto; height: 6px; background: var(--vierklang); }
.card-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { flex: 1; display: flex; flex-direction: column; padding: 18px 20px 20px; }
.card-title { margin: 0 0 10px; font-size: 18px; font-weight: 800; text-transform: uppercase; }
.card-title a { color: var(--ink); }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card-title a:focus-visible { outline: 0; }
.card:has(.card-title a:focus-visible) { outline: 3px solid var(--link-hover); outline-offset: 3px; }
.card-text { font-size: 14px; line-height: 1.55; }
.card-facts { margin: 0 0 14px; font-size: 14px; line-height: 1.45; }
.card-facts div { display: flex; gap: 10px; padding: 3px 0; }
.card-facts dt { flex: 0 0 84px; font-weight: 600; color: var(--ink); }
.card-facts dd { margin: 0; color: var(--muted); }
.card-more { margin-top: auto; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--link); }

/* Ansprechpartner */
.contact-cards { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.contact-cards li { display: flex; flex-direction: column; gap: 2px; padding: 20px; background: var(--surface); border-radius: var(--radius); border-left: 4px solid var(--accent); }
.contact-role { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--link); hyphens: auto; }
.contact-name { font-size: 17px; font-weight: 700; color: var(--ink); }
.contact-cards a { font-size: 14px; overflow-wrap: anywhere; }

/* Zwei Spalten Text und Bild, mittig ausgerichtet */
.cols.split { align-items: center; gap: 24px 48px; }
.cols.split img { max-height: 380px; width: auto; }
/* Ansprechperson mit rundem Foto */
.person-box { display: flex; gap: 28px; align-items: flex-start; padding: 26px; background: var(--surface); border-radius: var(--radius); }
.content .person-box > img { flex: none; width: 140px; height: 140px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; margin: 0; }
.person-box p:last-child { margin-bottom: 0; }
.person-box .contact-role, .person-box .contact-name { display: block; margin: 0; }
.person-box .contact-name { margin-bottom: 10px; }
@media (max-width: 560px) { .person-box { flex-direction: column; align-items: center; text-align: center; padding: 22px 18px; } }

/* Dokumentkarte (Datei-Blöcke) */
.file { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; margin-bottom: 1rem; }
.doc-card { margin: 1.5rem 0 2rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.doc-head { display: flex; align-items: center; gap: 16px; padding: 20px 22px 6px; }
.doc-type { flex: none; display: flex; align-items: center; justify-content: center; width: 52px; height: 60px; border-radius: 6px; background: #555; color: var(--white); font-size: 13px; font-weight: 800; letter-spacing: 1px; clip-path: polygon(0 0, 72% 0, 100% 22%, 100% 100%, 0 100%); }
.doc-type-pdf { background: #c62828; }
.content .doc-title { margin: 0; color: var(--ink); font-weight: 700; font-size: 17px; line-height: 1.35; }
.content .doc-meta { margin: 3px 0 0; font-size: 13px; color: var(--muted); }
.doc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 14px 22px 20px 90px; }
.doc-actions .btn svg { width: 15px; height: 15px; fill: currentColor; }
.content .file-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.pdf-preview { border-top: 1px solid var(--line); background: var(--surface); }
.pdf-preview > summary { cursor: pointer; display: flex; align-items: center; min-height: 44px; padding: 0 22px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--ink); list-style: none; }
.pdf-preview > summary::-webkit-details-marker { display: none; }
.pdf-preview > summary::before { content: "▸"; display: inline-block; width: 1.1em; font-size: 18px; line-height: 1; transition: transform .2s; }
.pdf-preview[open] > summary::before { transform: rotate(90deg); }
.pdf-frame { display: block; width: 100%; height: 80vh; min-height: 520px; border: 0; background: var(--white); }
@media (max-width: 767px) {
  .pdf-preview { display: none; }
  .doc-head { padding: 16px 16px 4px; }
  .doc-actions { flex-direction: column; align-items: stretch; gap: 6px; padding: 12px 16px 16px; }
  .doc-actions .btn { width: 100%; }
  .content .file-link { justify-content: center; }
}

/* Reiter (Trainer-Onboarding) */
.tabs { display: grid; gap: 30px; }
.tab-panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.content .tab-panel > .tab-title { font-size: 24px; margin: 0 0 20px; }
.content .tab-panel > .tab-title::before { display: none; }
.js .tabs.is-tabbed { display: block; }
.tab-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 32px 0 26px; }
.tab-list button { font: inherit; font-size: 14px; font-weight: 600; background: var(--surface); color: var(--text); border: 0; border-radius: 999px; padding: 11px 20px; cursor: pointer; transition: background .2s, color .2s; }
.tab-list button:hover { background: #ebebe6; color: var(--ink); }
.tab-list button[aria-selected="true"] { background: var(--accent); color: var(--black); }
.tabs.is-tabbed .tab-panel .tab-title { display: none; }
/* Hinweis- und Infoboxen (u. a. Trainer-Onboarding): info = Logo-Blau, warn = Orange, alert = Logo-Rot */
.note, .callout { margin: 24px 0; padding: 22px 26px; border-radius: var(--radius); background: var(--surface); }
.note { border-left: 4px solid var(--accent); }
.callout { border: 2px solid var(--accent); }
.note-info { border-color: var(--logo-dunkelblau); background: #eef4fb; }
.callout-info { border-color: var(--logo-dunkelblau); background: #eef4fb; }
.note-warn, .callout-warn { border-color: var(--accent); background: var(--accent-soft); }
.note-alert, .callout-alert { border-color: var(--logo-rot); background: #fdf0ee; }
.note > :first-child, .callout > :first-child { margin-top: 0; }
.note > :last-child, .callout > :last-child { margin-bottom: 0; }
.content .note h2, .content .callout h2 { font-size: 24px; }
.content .step-title { padding-left: 12px; border-left: 4px solid var(--accent); margin-top: 28px; }
.plain-list { list-style: none; padding-left: 0; }
.scroll-box { max-height: 220px; overflow-y: auto; margin-top: 20px; padding: 16px; background: var(--surface); border-left: 3px solid var(--line); border-radius: var(--radius-sm); font-size: 14px; }
.document-box { background: var(--surface); border-left: 4px solid var(--accent); padding: 20px 24px; border-radius: var(--radius-sm); margin-bottom: 24px; }
.highlight-box { background: var(--accent-soft); padding: 20px 24px; border-radius: var(--radius-sm); margin-bottom: 24px; }
.intro-text { font-size: 17px; }

.search-page-form { display: flex; gap: 10px; max-width: 600px; margin: 0 auto 30px; }
.search-page-form input { flex: 1; min-width: 0; }
.search-results { padding-left: 1.2em; }
.search-results li { margin-bottom: 1.25rem; }
.search-results a { font-weight: 600; font-size: 18px; }
.search-results time { display: block; font-size: 13px; }
.search-results p { margin: .25rem 0 0; font-size: 14px; }
.notice { font-size: 18px; color: var(--ink); }

/* ------------------------------------------------------------------ Mannschaften und Personen */
.facts { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.fact { position: relative; padding: 18px 18px 18px 80px; min-height: 84px; background: var(--surface); border-radius: var(--radius); }
.fact-icon { position: absolute; left: 18px; top: 18px; }
.fact-label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.fact-value { display: block; margin-top: 2px; font-weight: 600; color: var(--ink); line-height: 1.45; }
.team-photo img { width: 100%; border-radius: var(--radius); }

.person { margin: 0; text-align: center; }
.person-img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; object-position: 50% 14%; margin: 0 auto; }
.content .person-img { border-radius: 50%; }
.content .person figcaption { font-size: inherit; color: inherit; margin: 0; }
.person-name { display: block; color: var(--ink); font-weight: 700; text-transform: uppercase; margin-top: 20px; font-size: 15px; line-height: 1.3; }
.person-role { display: block; margin-top: 6px; font-size: 11px; text-transform: uppercase; letter-spacing: 2px; line-height: 1.5; color: var(--muted); }
.person-initials { display: flex; align-items: center; justify-content: center; background: var(--black); color: var(--accent); font-size: 40px; font-weight: 800; letter-spacing: 2px; }

.people-group + .people-group { margin-top: 70px; }
.people-intro { max-width: var(--measure); }
.people-cards { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 22px; }
.people-card { position: relative; margin: 0; padding: 28px 14px 22px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); transition: box-shadow .25s, transform .25s, border-color .25s; }
.people-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: transparent; }
.people-card .person-img { box-shadow: 0 0 0 4px var(--white), 0 0 0 6px var(--accent); }
.people-card .person-name { margin-top: 22px; }
.people-card .person-name a { color: inherit; }
.people-card .person-name a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.people-card.has-link:hover .person-name a { color: var(--link); }
.people-card.has-link .person-role::after { content: " →"; color: var(--link); letter-spacing: 0; }
@media (max-width: 480px) {
  .people-cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .people-card { padding: 20px 8px 16px; }
  .people-card .person-img { width: 104px; height: 104px; }
  .person-initials { font-size: 30px; }
}

/* ------------------------------------------------------------------ Beiträge */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 1024px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card-img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .4s; }
.post-card:hover .post-card-img img { transform: scale(1.04); }
.post-card-body { padding: 20px 20px 0; flex: 1; display: flex; flex-direction: column; }
.content .post-card-title, .post-card-title { font-size: 15px; font-weight: 700; text-transform: uppercase; margin: 0 0 12px; line-height: 1.35; }
.content .post-card-title::before { display: none; }
.post-card-title a { color: var(--ink); }
.post-card-title a:hover { color: var(--link); }
.post-card-excerpt { font-size: 14px; line-height: 1.6; margin: 0 0 16px; }
.post-card-more { color: var(--link); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-top: auto; margin-bottom: 18px; }
.post-card-meta { border-top: 1px solid var(--line); padding: 12px 20px; font-size: 12px; color: var(--muted); }
.post-card-meta .sep { margin: 0 6px; }

.post-hero { position: relative; height: 400px; background: #333 var(--bg) center / cover no-repeat; }
.post-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .5)); }
.post-box { position: relative; max-width: 960px; margin-top: -130px; margin-bottom: 60px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 56px 60px; }
@media (max-width: 767px) { .post-box { padding: 30px 18px; margin-top: -80px; } .post-hero { height: 250px; } }
.post-cats { text-align: center; font-size: 13px; text-transform: uppercase; letter-spacing: 3px; margin-bottom: 24px; }
.post-cats a { color: var(--muted); }
.post-title { margin-bottom: 0; font-size: clamp(28px, 4.4vw, 46px); letter-spacing: -.5px; }
.post-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 32px; margin: 32px 0 40px; padding: 14px; border: solid var(--line); border-width: 1px 0; color: var(--ink); font-size: 15px; }
.post-meta span { display: inline-flex; gap: 10px; align-items: center; }
.post-meta .icon-svg { color: var(--link); font-size: 14px; }
.post-content { font-size: 16px; line-height: 1.85; }
.post-content > * { margin-left: auto; margin-right: auto; }
.post-content h2 { font-size: 26px; text-transform: none; letter-spacing: 0; margin-top: 2.5rem; margin-bottom: 1rem; }
.post-content h3 { font-size: 20px; }
.post-content img { margin: 1rem auto; }
.share-title { margin-top: 48px; font-size: 22px; }
.share-buttons { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.share-buttons a { display: flex; align-items: center; gap: 15px; color: var(--white); font-size: 14px; height: 44px; padding-right: 15px; border-radius: var(--radius-sm); overflow: hidden; }
.share-buttons a .icon-svg { width: 44px; height: 44px; padding: 12px; background: rgba(0, 0, 0, .12); }
.share-facebook { background: #3b5998; }
.share-x { background: #111; }
.share-linkedin { background: #0077b5; }
.share-whatsapp { background: #1c7d43; }
.share-buttons a:hover { filter: brightness(1.15); color: var(--white); }
@media (max-width: 500px) { .share-buttons { grid-template-columns: 1fr; } }

.pagination { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 40px; flex-wrap: wrap; }
.pagination-info { font-size: 14px; }

/* ------------------------------------------------------------------ Formulare */
.form-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; margin: 30px 0; box-shadow: 0 6px 24px rgba(0, 0, 0, .05); }
.form-title { text-align: center; font-size: 22px; margin-bottom: 25px; }
.form-grid { display: flex; flex-wrap: wrap; gap: 0 20px; }
.field { flex: 1 1 100%; margin-bottom: 18px; min-width: 0; }
.field.w-25 { flex-basis: calc(25% - 20px); }
.field.w-33 { flex-basis: calc(33.333% - 20px); }
.field.w-50 { flex-basis: calc(50% - 20px); }
.field.w-60 { flex-basis: calc(60% - 20px); flex-grow: 0; }
.field.w-60 + .field:not(.w-60) { flex-basis: 100%; }
@media (max-width: 767px) { .field[class*="w-"] { flex-basis: 100%; } .form-box { padding: 22px 16px; } }
.field-label { display: block; color: var(--ink); font-weight: 600; font-size: 15px; margin-bottom: 5px; }
.req { color: #c00; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="number"], input[type="search"], input[type="password"], input[type="url"], select, textarea {
  width: 100%; font: inherit; font-size: 15px; color: #222; background: var(--white); border: 1px solid #8a9096; border-radius: var(--radius-sm); padding: 9px 12px; min-height: 44px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
input[type="file"] { font: inherit; font-size: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; cursor: pointer; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
.radio-group { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.radio-group legend { padding: 0; margin-bottom: 6px; }
.field-html { color: var(--ink); font-weight: 600; font-size: 17px; }
.field-html p { margin-bottom: .5rem; font-weight: 400; font-size: 14px; color: var(--text); }
.has-error input, .has-error select, .has-error textarea, .has-error canvas { border-color: #c00; }
.field-error { display: block; color: #c00; font-size: 13px; margin-top: 4px; }
.form-message { padding: 14px 18px; border-radius: var(--radius-sm); font-weight: 500; }
.form-message.success { background: #e7f6ec; color: #145c2c; }
.form-message.error { background: #fdecea; color: #8a1c1c; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signature canvas { width: 100%; max-width: 600px; aspect-ratio: 3 / 1; height: auto; border: 1px solid #8a9096; border-radius: var(--radius-sm); background: #fff; touch-action: none; display: block; }
.signature-clear { margin-top: 6px; background: none; border: 0; color: var(--link); cursor: pointer; font: inherit; font-size: 13px; padding: 0; text-decoration: underline; }
.form-submit { margin: 10px 0 0; }

/* ------------------------------------------------------------------ Fußzeile */
/* Kräftige Linie in den vier Logofarben als oberer Abschluss */
.site-footer { position: relative; background: var(--black); color: var(--white); padding: 60px 0 30px; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--vierklang); }
.footer-inner { max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center; }
.footer-title { color: var(--white); font-size: 15px; font-weight: 300; text-transform: uppercase; margin: 0 0 12px; }
.footer-nav, .footer-contact, .footer-legal { list-style: none; padding: 0; margin: 0 0 25px; }
.footer-nav a, .footer-legal a { color: #a3a3a3; font-size: 12px; font-weight: 500; text-transform: uppercase; display: inline-block; padding: 7px 0; }
.footer-nav a:hover, .footer-legal a:hover, .footer-contact a:hover { color: var(--accent); }
.footer-contact a { color: var(--white); font-size: 13px; display: inline-flex; gap: 14px; align-items: center; padding: 3px 0; }
.footer-contact .icon-svg { font-size: 16px; }
.footer-siegel img { width: 150px; margin: 0 auto; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid #555; margin-top: 30px; padding-top: 25px; flex-wrap: wrap; }
.footer-logo .brand-emblem { width: 40px; height: 40px; }
.footer-logo .brand-text { font-size: 17px; }
.copyright { margin: 0; color: #8a8a8a; font-size: 12px; text-transform: uppercase; }
@media (max-width: 767px) { .footer-cols { grid-template-columns: 1fr; } .footer-bottom { justify-content: center; text-align: center; } }

/* ------------------------------------------------------------------ Bewegung und Druck */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .share-buttons, .share-title, .hero-bg, .breadcrumb { display: none !important; }
  .hero { background: none; color: #000; clip-path: none; min-height: 0; }
  .hero::after { display: none; }
  .hero-title { color: #000; }
  .post-box { margin-top: 0; box-shadow: none; }
}
