/* ==========================================================================
   ASV Dieburg 1889 e.V. - Redesign stylesheet
   Mode: Redesign / Overhaul. Dials: VARIANCE 5, MOTION 4, DENSITY 5.
   Foundation: native CSS (Section 2.B honest implementation, no framework
   claimed that is not present). No Tailwind build is assumed here so the
   file can be dropped straight into a WordPress theme.
   --------------------------------------------------------------------------
   TOKEN CONTRACT
   Accent: #30418f (club navy). Locked. Used identically on every section.
   Surface: off-white / off-black. No pure #000 or #fff for large fields.
   Radius: ONE value, --r, applied to cards, inputs, buttons, images alike.
   Type: Geist + Geist Mono, self-hosted. Fallback stack is system sans.
   ========================================================================== */

/* --- Fonts -------------------------------------------------------------
   TODO (asset step): place the Geist woff2 files in /assets/fonts/.
   Download: https://vercel.com/font . Do NOT swap this to a Google Fonts
   <link>. If the files are absent the fallback stack below still renders
   correctly, only the brand voice is weaker.                              */

/* Die Geist-Schriftdateien liegen dem Paket nicht bei, die Regeln
   dafür sind deshalb stillgelegt - sonst sucht der Browser auf
   jeder Seite vier Dateien, die es nicht gibt. Die Seite läuft auf
   dem Systemschriftstapel, der unten in --font-sans steht, und
   sieht damit sauber aus.

   Sollen die Originalschriften doch verwendet werden: die vier
   woff2-Dateien von vercel.com/font herunterladen, in den Ordner
   fonts legen und die Kommentarzeichen hier entfernen.

   @font-face {
     font-family: "Geist";
     src: url("./fonts/Geist-Regular.woff2") format("woff2");
     font-weight: 400;
     font-display: swap;
   }
   @font-face {
     font-family: "Geist";
     src: url("./fonts/Geist-Medium.woff2") format("woff2");
     font-weight: 500;
     font-display: swap;
   }
   @font-face {
     font-family: "Geist";
     src: url("./fonts/Geist-SemiBold.woff2") format("woff2");
     font-weight: 600;
     font-display: swap;
   }
   @font-face {
     font-family: "Geist";
     src: url("./fonts/Geist-Bold.woff2") format("woff2");
     font-weight: 700;
     font-display: swap;
   }
   @font-face {
     font-family: "Geist Mono";
     src: url("./fonts/GeistMono-Regular.woff2") format("woff2");
     font-weight: 400;
     font-display: swap;
   }
   @font-face {
     font-family: "Geist Mono";
     src: url("./fonts/GeistMono-Medium.woff2") format("woff2");
     font-weight: 500;
     font-display: swap;
   }
*/

/* --- Tokens ------------------------------------------------------------
   THEME LOCK: this build is dark for the whole page, per the client's
   reference. Section 4.11 forbids a section flipping to light mid-scroll,
   so there is no prefers-color-scheme block here and no light variant.
   ---------------------------------------------------------------------- */

:root {
  /* Brand. Single accent, locked. Exact club navy on filled surfaces. */
  --navy: #30418f;
  --navy-hover: #3a4da6;
  --navy-press: #283670;

  /* Dark surfaces. No pure black. Cool navy-black so the accent sits in
     the same hue family as the ground rather than floating on neutral grey. */
  --bg: #0a0f1e;
  --surface: #131b35;
  --surface-sunk: #0e1529;
  --line: #293354;          /* decorative dividers only */
  --line-strong: #5f6ea6;   /* interactive borders. 3.88:1 on --bg, clears
                               WCAG 1.4.11 non-text contrast for controls */
  --line-soft: #1c2542;

  --text: #e9ecf6;
  --text-muted: #aeb6cd;
  --text-faint: #939cb6;

  /* Accent split. Filled surfaces keep #30418f exactly. Text and links use
     the same hue lifted, because #30418f as text on this ground fails AA. */
  --accent-text: #93a3e8;
  --accent-on: #ffffff;
  --accent-surface: #30418f;
  --accent-wash: #18203f;

  /* Crest fill. Lifted from the shirt file so the mark reads on dark.
     Same hue, higher lightness. Needs client sign-off, see README. */
  --crest: #6f83d9;

  --focus: #93a3e8;

  /* Shape. ONE radius value everywhere. Section 4.4 lock. */
  --r: 10px;

  /* Rhythm. Density 4, airier than the previous build. */
  --gap: 1.5rem;
  --section-y: clamp(4.5rem, 9vw, 7.5rem);
  --container: 1240px;

  /* Motion. Intensity 5. Transform and opacity only. */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.6s;

  --z-nav: 100;
  --z-overlay: 200;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo,
    Consolas, monospace;
}

/* --- Reset -------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #b6c2f2; }

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

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}

p { margin: 0; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: var(--z-overlay);
  background: var(--accent-surface);
  color: var(--accent-on);
  padding: 0.75rem 1.25rem;
  border-radius: var(--r);
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* --- Layout primitives -------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section { padding-block: var(--section-y); }
.section--sunk { background: var(--surface-sunk); }

.stack { display: grid; gap: 1rem; }
.stack--tight { gap: 0.5rem; }

.eyebrow-free-heading { max-width: 22ch; }

.lede {
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: 62ch;
}

.section-head {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  max-width: 62ch;
}
.section-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }

/* --- Buttons ------------------------------------------------------------
   Contrast: white on #30418f is about 9.1:1. Ghost button carries a real
   1px border so it never dissolves into the page.                         */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  border-radius: var(--r);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.2;
  white-space: nowrap;      /* CTA wrap ban: labels never break to 2 lines */
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s var(--ease), transform 0.12s var(--ease),
    border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.btn--primary {
  background: var(--accent-surface);
  color: var(--accent-on);
}
.btn--primary:hover { background: var(--navy-hover); color: var(--accent-on); }
.btn--primary:active { background: var(--navy-press); transform: translateY(1px); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--accent-text); color: var(--accent-text); }
.btn--ghost:active { transform: translateY(1px); }

.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:active { transform: none; }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
}
.link-arrow svg { transition: transform 0.2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .link-arrow svg { transition: none; } }

/* --- Header / nav -------------------------------------------------------
   Single line at desktop. Height 68px, under the 80px cap.                */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

.site-header__inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Logo: transparent background enforced here. The source file must be a
   cleaned PNG or SVG with the club mark only. See README asset step. */
.brand { display: inline-flex; align-items: center; }
.brand img {
  height: 44px;
  width: auto;
  background: transparent;
  mix-blend-mode: normal;
}

.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--r);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}
.nav a:hover { background: var(--accent-wash); color: var(--accent-text); }
.nav a[aria-current="page"] { color: var(--accent-text); background: var(--accent-wash); }

.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r);
    background: transparent;
    color: var(--text);
    cursor: pointer;
  }
  .nav {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .nav[hidden] { display: none; }
  .nav a { padding: 0.85rem 0.75rem; font-size: 1rem; }
}

/* --- Hero: asymmetric split --------------------------------------------
   Max 4 text elements. Headline, subtext, two CTAs. No eyebrow, no strip,
   no tagline under the CTAs. Top padding capped well under pt-24.        */

.hero {
  padding-top: clamp(2.5rem, 5vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    /* Asymmetric, not 50/50. Variance 5. */
    grid-template-columns: 1.05fr 1.25fr;
    gap: 3.5rem;
  }
}

.hero h1 {
  font-size: clamp(2.25rem, 5.2vw, 3.75rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  max-width: 14ch;
}

.hero__sub {
  margin-top: 1.25rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: 46ch;
}

.hero__cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__media {
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface-sunk);
  aspect-ratio: 16 / 10;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* --- Sponsor wall (logos only, sits UNDER the hero) ---------------------- */

.sponsors { padding-block: 2.5rem; border-block: 1px solid var(--line-soft); }
.sponsors__label {
  font-size: 0.875rem;
  color: var(--text-faint);
  margin-bottom: 1.5rem;
}
.sponsor-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 1rem;
}

/* Helle Karte je Logo. Vorher lag ein Filter aus Graustufe und Invertierung
   auf den Logos - der macht aus jedem Logo mit hellem Hintergrund einen
   schwarzen Kasten und nimmt den Firmen ihre Farben. Die Sponsoren sollen
   so erscheinen, wie sie aussehen, deshalb eine eigene helle Fläche
   statt einer Umfärbung. */
.sponsor {
  display: grid;
  place-items: center;
  padding: 0.9rem 1.5rem;
  min-width: 8rem;
  background: #fff;
  border-radius: var(--r);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.sponsor img {
  display: block;
  width: auto;
  height: auto;
  max-height: 56px;
  max-width: 190px;
  object-fit: contain;
}

/* Logos mit viel Höhe dürfen höher stehen, sonst wird die Schrift darin
   unleserlich klein. Ein reiner Schriftzug braucht umgekehrt weniger. */
.sponsor img[src*="braustuebl"] { max-height: 80px; max-width: 90px; }
.sponsor img[src*="goebel"]     { max-height: 78px; max-width: 150px; }
.sponsor img[src*="merck"]      { max-height: 34px; }

a.sponsor:hover,
a.sponsor:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .sponsor { transition: none; }
  a.sponsor:hover { transform: none; }
}

@media (max-width: 560px) {
  .sponsor-row { gap: 0.75rem; }
  .sponsor { padding: 0.75rem 1.1rem; flex: 1 1 8rem; }
  .sponsor img { max-height: 44px; max-width: 150px; }
  .sponsor img[src*="braustuebl"] { max-height: 64px; max-width: 72px; }
  .sponsor img[src*="goebel"]     { max-height: 62px; max-width: 120px; }
  .sponsor img[src*="merck"]      { max-height: 26px; }
}

.sponsor-cta { margin-top: 1.75rem; }

/* --- Training times band ------------------------------------------------ */

.times {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  overflow: hidden;
}
@media (min-width: 760px) { .times { grid-template-columns: 1fr 1fr; } }

.times__col { background: var(--surface); padding: 1.75rem; }
.times__col h3 { font-size: 1.125rem; margin-bottom: 1.25rem; }

.times__row { display: grid; gap: 0.15rem; padding-block: 0.7rem; }
.times__row + .times__row { border-top: 1px solid var(--line-soft); }
.times__day { font-size: 0.9375rem; font-weight: 500; }
.times__clock {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}
.times__note { font-size: 0.875rem; color: var(--text-faint); }

.times__coach {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.times__coach strong { color: var(--text); font-weight: 500; }

/* --- Editorial split (Einsteigertraining) ------------------------------- */

.editorial {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .editorial { grid-template-columns: 1.15fr 1fr; gap: 4rem; }
  .editorial--flip > :first-child { order: 2; }
}
/* Textblock ohne Bild: eine Spalte, angenehme Zeilenlänge */
.editorial.editorial--text { grid-template-columns: 1fr; }
.editorial--text .editorial__body { max-width: 46rem; }
.editorial__media { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-sunk); }
.editorial__media img { width: 100%; height: 100%; object-fit: cover; }
.editorial__body { display: grid; gap: 1rem; }
.editorial__body h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
.editorial__body p { color: var(--text-muted); max-width: 58ch; }

.callout {
  margin-top: 0.5rem;
  padding: 1.1rem 1.25rem;
  background: var(--accent-wash);
  border-radius: var(--r);
  font-size: 0.9375rem;
}
.callout strong { font-weight: 600; }

/* --- Report list -------------------------------------------------------- */

.reports { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .reports { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .reports--three { grid-template-columns: repeat(3, 1fr); } }

.report {
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.report:hover { border-color: var(--accent-text); }
@media (prefers-reduced-motion: reduce) { .report { transition: none; } }

.report__thumb { aspect-ratio: 16 / 9; background: var(--surface-sunk); overflow: hidden; }
.report__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Das Verbandsbanner ist sehr breit (4,6:1). In einem 16:9-Rahmen würde
   "cover" den Namen und das Wappen abschneiden, deshalb hier ganz
   hineinlegen - auf hellem Grund, weil das Banner selbst weiss ist. */
.report__thumb img[src*="HessischerRingerVerband"] {
  object-fit: contain;
  background: #fff;
  padding: 0.75rem;
}
.report__thumb--none {
  display: grid;
  place-items: center;
  background: var(--accent-wash);
}
.report__thumb--none span {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent-text);
}

.report__body { padding: 1.25rem 1.35rem 1.5rem; display: grid; gap: 0.6rem; align-content: start; }
.report__meta {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}
.report__title { font-size: 1.125rem; line-height: 1.3; }
.report__title a { color: var(--text); text-decoration: none; }
.report__title a:hover { color: var(--accent-text); }
.report__dek { font-size: 0.9375rem; color: var(--text-muted); }

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 3rem;
}
.pagination a, .pagination span {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--text);
}
.pagination a:hover { border-color: var(--accent-text); color: var(--accent-text); }
.pagination [aria-current="page"] {
  background: var(--accent-surface);
  border-color: var(--accent-surface);
  color: var(--accent-on);
}

/* --- Roster ------------------------------------------------------------- */

.roster {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 620px) { .roster { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .roster { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } }
@media (min-width: 1140px) { .roster { grid-template-columns: repeat(5, 1fr); } }

.wrestler {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  overflow: hidden;
}
.wrestler__photo {
  aspect-ratio: 3 / 4;
  background: var(--surface-sunk);
  overflow: hidden;
}
.wrestler__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

/* Monogram stands in for a missing portrait. A single letter in the club
   navy, not a stock silhouette avatar. */
.wrestler__photo--monogram {
  display: grid;
  place-items: center;
  background: var(--accent-wash);
}
.wrestler__photo--monogram span {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  color: var(--accent-text);
  letter-spacing: -0.04em;
}

.wrestler__body { padding: 0.85rem 0.95rem 1rem; display: grid; gap: 0.2rem; }
.wrestler__name { font-size: 0.9375rem; font-weight: 500; line-height: 1.3; }
.wrestler__weight {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

.squad-head {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  padding-top: 0.5rem;
}
.squad-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.squad-head p { color: var(--text-muted); font-size: 0.9375rem; max-width: 60ch; }

/* Mehrere Trainer einer Mannschaft stehen nebeneinander, solange Platz ist. */
/* Trainerreihe folgt den Spalten und Abständen des Kaders darunter */
.coach-reihe { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 2rem; }
.coach-reihe .coach-card { margin: 0; max-width: none; }
@media (min-width: 900px) {
  .coach-reihe { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
  .coach-reihe .coach-card { grid-column: span 2; }
}
@media (min-width: 1140px) { .coach-reihe { grid-template-columns: repeat(5, 1fr); } }

.coach-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  margin-bottom: 2rem;
  max-width: 34rem;
}
.coach-card__photo {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 1px solid var(--line-soft);
}

.coach-card__mono {
  width: 48px;
  height: 48px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--r);
  background: var(--accent-surface);
  color: var(--accent-on);
  font-weight: 600;
}
.coach-card__role { font-size: 0.8125rem; color: var(--text-faint); }
.coach-card__name { font-weight: 500; }

/* Empty and loading states */
.state {
  padding: 3rem 1.5rem;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--r);
  display: grid;
  gap: 0.75rem;
  justify-items: center;
}
.state h3 { font-size: 1.125rem; }
.state p { color: var(--text-muted); font-size: 0.9375rem; max-width: 46ch; }

/* --- Forms -------------------------------------------------------------
   Label above input, helper below label, error below input. No
   placeholder-as-label anywhere. Contrast checked against --surface.     */

.form-grid { display: grid; gap: 1.25rem; }
@media (min-width: 700px) {
  .form-grid--two { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
}

.field { display: grid; gap: 0.5rem; }

.field label { font-size: 0.9375rem; font-weight: 500; color: var(--text); }
.field .req { color: var(--accent-text); }

.field .help { font-size: 0.8125rem; color: var(--text-muted); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.field textarea { min-height: 9rem; resize: vertical; }

.field input::placeholder,
.field textarea::placeholder { color: var(--text-faint); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-text);
  box-shadow: 0 0 0 3px var(--accent-wash);
}
@media (prefers-reduced-motion: reduce) {
  .field input, .field select, .field textarea { transition: none; }
}

.field .error {
  font-size: 0.8125rem;
  color: #ff9a92;
  font-weight: 500;
}

.field[data-invalid="true"] input,
.field[data-invalid="true"] select,
.field[data-invalid="true"] textarea { border-color: #ff9a92; }

.consent { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; }
.consent input { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; accent-color: var(--navy); }
.consent label { font-size: 0.875rem; font-weight: 400; color: var(--text-muted); }

.form-status {
  margin-top: 1.25rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--r);
  font-size: 0.9375rem;
  border: 1px solid var(--line-strong);
  background: var(--surface);
}
.form-status[data-tone="ok"] { border-color: var(--accent-text); background: var(--accent-wash); color: var(--text); }
.form-status[data-tone="bad"] { border-color: #ff9a92; color: var(--text); }
.form-status[hidden] { display: none; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 980px) { .contact-grid { grid-template-columns: 1.4fr 1fr; gap: 3.5rem; align-items: start; } }

.contact-facts { display: grid; gap: 1.25rem; }
.contact-facts dl { display: grid; gap: 1rem; margin: 0; }
.contact-facts dt { font-size: 0.8125rem; color: var(--text-faint); }
.contact-facts dd { margin: 0; font-size: 0.9375rem; }
.contact-map {
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--surface);
}
.contact-map iframe {
  width: 100%;
  height: 300px;
  border: 0;
  display: block;
  /* Die OSM-Kachelkarte ist hell. Ohne Angleichung sticht sie aus dem
     dunklen Layout heraus wie ein Fremdkörper. */
  filter: invert(0.92) hue-rotate(185deg) saturate(0.75) brightness(1.05) contrast(0.92);
}

.map-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem 1.25rem;
  padding: 1rem 1.15rem;
  border-top: 1px solid var(--line-soft);
}
.map-bar__where { display: grid; gap: 0.2rem; min-width: 12rem; }
.map-bar__where strong { font-size: 0.9375rem; font-weight: 600; color: var(--text); }
.map-bar__where span { font-size: 0.8125rem; color: var(--text-muted); }
.map-bar__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.btn--sm {
  padding: 0.5rem 0.8rem;
  font-size: 0.8125rem;
  border-radius: calc(var(--r) * 0.6);
}

@media (max-width: 560px) {
  .map-bar { flex-direction: column; align-items: stretch; }
  .map-bar__actions .btn { flex: 1 1 auto; text-align: center; }
}

/* --- CTA band ----------------------------------------------------------- */

.cta-band {
  background: var(--accent-surface);
  color: var(--accent-on);
  border-radius: var(--r);
  padding: clamp(2rem, 5vw, 3.25rem);
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}
.cta-band h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); color: var(--accent-on); max-width: 20ch; }
.cta-band p { color: rgba(255, 255, 255, 0.86); max-width: 52ch; }
.cta-band .btn--onnavy {
  background: var(--accent-on);
  color: var(--navy);
  border-color: var(--accent-on);
}
.cta-band .btn--onnavy:hover { background: #eef1fa; color: var(--navy-press); }

/* --- Footer ------------------------------------------------------------- */

.site-footer {
  margin-top: var(--section-y);
  border-top: 1px solid var(--line);
  padding-block: 3rem 2rem;
  background: var(--surface);
}
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

.footer-grid h3 { font-size: 0.875rem; color: var(--text-faint); font-weight: 500; margin-bottom: 0.9rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9375rem; }
.footer-links a:hover { color: var(--accent-text); }

.footer-brand img { height: 52px; width: auto; background: transparent; }
.footer-brand p { margin-top: 1rem; color: var(--text-muted); font-size: 0.9375rem; max-width: 34ch; }

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-faint);
}

/* --- Motion layer, intensity 4 -----------------------------------------
   Entry on the hero, scroll reveal on content blocks. Transform and
   opacity only. Fully disabled under reduced motion.                     */

@media (prefers-reduced-motion: no-preference) {
  /* Nur wenn JavaScript laeuft, darf Inhalt verborgen starten.
     Ohne die .js-Klasse bleibt alles sichtbar. */
  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
    transition-delay: var(--reveal-delay, 0ms);
  }
  .js .reveal.is-in { opacity: 1; transform: none; }

  .hero__enter {
    animation: heroIn 0.7s var(--ease) both;
    animation-delay: var(--reveal-delay, 0ms);
  }
  @keyframes heroIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }
}

/* Utility */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* --- Crest ---------------------------------------------------------------
   The supplied shirt logo is a single-colour compound path. It is used as a
   CSS mask so one file can be painted in any theme colour without the mark
   itself being edited, redrawn or recoloured in the source file.           */

/* Wappen. Frueher eine CSS-Maske mit fill:currentColor - das blieb je
   nach Browser unsichtbar, weil currentColor in einer extern geladenen
   SVG keinen Kontext hat. Jetzt ein normales Bild, das immer rendert. */
.crest {
  display: block;
  width: 34px;
  height: auto;
  aspect-ratio: 190.5 / 226.8;
  flex: none;
}

.crest--hero {
  width: clamp(104px, 15vw, 168px);
  margin-inline: auto;
}

.crest--nav { width: 34px; }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand__word {
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
}
@media (max-width: 420px) { .brand__word { display: none; } }

/* --- Immersive hero ------------------------------------------------------
   Centered composition. Section 4.3 avoids centered heroes above
   DESIGN_VARIANCE 4, and this build runs at 5, so the override is invoked
   deliberately: the crest IS the message on a club identity page, the same
   case the rule allows for manifesto and launch heroes. Every section below
   returns to left-anchored asymmetry so the page does not read as symmetric
   throughout.                                                              */

.hero-immersive {
  position: relative;
  isolation: isolate;
  min-height: 88dvh;
  display: grid;
  align-content: center;
  padding-block: clamp(3rem, 7vw, 5rem) clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}

/* Photographic ground: the club's own match photography, duotoned to the
   brand navy. Three frames at desktop, one at mobile. */
.hero-immersive__bed {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: grid;
  grid-template-columns: 1fr;
  background: var(--bg);
}
@media (min-width: 900px) {
  .hero-immersive__bed { grid-template-columns: 1fr 1fr 1fr; }
}

.hero-immersive__bed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.15) brightness(0.62);
  opacity: 0.5;
}
@media (max-width: 899px) {
  .hero-immersive__bed img:nth-child(n + 2) { display: none; }
  .hero-immersive__bed img { opacity: 0.34; }
}

/* Navy duotone wash plus a vignette that pulls the eye to the crest. */
.hero-immersive__wash {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%,
      rgb(48 65 143 / 0.55), transparent 70%),
    linear-gradient(to bottom,
      rgb(10 15 30 / 0.82) 0%,
      rgb(10 15 30 / 0.55) 40%,
      rgb(10 15 30 / 0.92) 100%),
    linear-gradient(to right,
      rgb(10 15 30 / 0.95) 0%,
      rgb(10 15 30 / 0.35) 30%,
      rgb(10 15 30 / 0.35) 70%,
      rgb(10 15 30 / 0.95) 100%);
}

.hero-immersive__inner {
  position: relative;
  text-align: center;
  display: grid;
  gap: 1.5rem;
  justify-items: center;
}

.hero-immersive h1 {
  font-size: clamp(1.9rem, 4.6vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  max-width: 16ch;
}

.hero-immersive__sub {
  color: var(--text-muted);
  font-size: clamp(1rem, 1.4vw, 1.0625rem);
  max-width: 48ch;
}

.hero-immersive__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Header sits over the hero without a scroll listener. */
.site-header--over {
  background: rgb(10 15 30 / 0.55);
  border-bottom-color: rgb(255 255 255 / 0.08);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-immersive__inner > * {
    animation: heroIn 0.8s var(--ease) both;
    animation-delay: var(--reveal-delay, 0ms);
  }
}

/* Ghost CTA sitting over photography gets its own scrim so the label never
   competes with a bright frame behind it. Section 4.5. */
.hero-immersive__cta .btn--ghost {
  background: rgb(10 15 30 / 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero-immersive__cta .btn--ghost:hover {
  background: rgb(10 15 30 / 0.75);
  border-color: var(--accent-text);
  color: var(--accent-text);
}
@media (prefers-reduced-transparency: reduce) {
  .hero-immersive__cta .btn--ghost {
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* --- Textseiten und Einzelbeitrag ---------------------------------------
   Impressum, Datenschutz, Vorstand, Berichtsseiten. Reine Lesespalte.   */

.prose { max-width: 68ch; display: grid; gap: 1.15rem; }
.prose h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.625rem);
  margin-top: 1.5rem;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.0625rem; margin-top: 0.75rem; }
.prose p, .prose li { color: var(--text-muted); }
.prose ul, .prose ol { display: grid; gap: 0.5rem; padding-left: 1.25rem; margin: 0; }
.prose a { color: var(--accent-text); }
.prose strong { color: var(--text); font-weight: 500; }
.prose img { max-width: 100%; height: auto; border-radius: var(--r); }
.prose figure { margin: 0; display: grid; gap: 0.5rem; }
.prose figcaption { font-size: 0.8125rem; color: var(--text-faint); }

.prose .card {
  padding: 1.25rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  display: grid;
  gap: 0.35rem;
}
.prose .card p { margin: 0; }

.note {
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent-surface);
  background: var(--surface-sunk);
  border-radius: 0 var(--r) var(--r) 0;
  font-size: 0.9375rem;
}

.page-head { display: grid; gap: 0.75rem; margin-bottom: 2.25rem; }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3rem); }

.post-meta {
  font-size: 0.8125rem;
  color: var(--text-faint);
  font-family: var(--font-mono);
}
.post-back { margin-top: 2.5rem; }

/* Wenige Berichte: die Karten sollen nicht auf Drittelbreite schrumpfen,
   sondern eine lesbare Breite behalten und links stehen bleiben. */
.reports--three:has(> :last-child:nth-child(1)) { max-width: 34rem; }
.reports--three:has(> :last-child:nth-child(2)) { max-width: 52rem; }
@media (min-width: 1040px) {
  .reports--three:has(> :last-child:nth-child(1)) { grid-template-columns: 1fr; }
  .reports--three:has(> :last-child:nth-child(2)) { grid-template-columns: repeat(2, 1fr); }
}

/* --- Wochenplan auf der Trainingsseite ---------------------------------
   Feste Zeiten, als Tageskarten. Vorher lag hier ein Spielplan, der seine
   Daten aus einer JSON-Datei zog und ohne Einträge leer blieb.           */

.woche {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 820px) {
  /* Nach oben ausgerichtet: der Donnerstag hat eine Einheit weniger und
     soll deshalb nicht mit leerer Fläche aufgefüllt werden. */
  .woche { grid-template-columns: 1fr 1fr; align-items: start; }
}

.tag {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  overflow: hidden;
}

.tag__kopf {
  padding: 1.15rem 1.4rem;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface-sunk);
}
.tag__name { font-size: 1.25rem; line-height: 1.2; }
.tag__ort { margin-top: 0.2rem; font-size: 0.875rem; color: var(--text-muted); }

.tag__liste { list-style: none; margin: 0; padding: 0; }

.einheit {
  display: grid;
  gap: 0.15rem 1.1rem;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  padding: 1rem 1.4rem;
  border-top: 1px solid var(--line-soft);
}
.tag__liste .einheit:first-child { border-top: 0; }

.einheit__zeit {
  grid-row: span 2;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.9375rem;
  color: var(--text);
  white-space: nowrap;
}
.einheit__gruppe { font-weight: 500; font-size: 1rem; }
.einheit__wer { font-size: 0.875rem; color: var(--text-muted); }

/* Die Einsteigereinheit ist der Einstiegspunkt für neue Mitglieder und
   darf deshalb auffallen. */
.einheit--einstieg { border-left: 3px solid var(--accent-surface); }

.woche__hinweis {
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 62ch;
}

/* Bild links, Text rechts - als Abwechslung zum Block darüber. */
@media (min-width: 900px) {
  .editorial--umgekehrt .editorial__media { order: -1; }
}
