/* ==========================================================================
   SG Aufbau Halbe e. V. — Design-System
   Ein einziges Stylesheet für die gesamte Seite.
   Farben, Abstände und Schriftgrößen sind als CSS-Variablen definiert:
   hier zentral ändern = überall geändert.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design-Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Vereinsfarben (aus dem Wappen abgeleitet) */
  --c-blue-900: #072338;
  --c-blue-800: #0b3255;
  --c-blue-700: #0f4c81;
  --c-blue-600: #1476bd;
  --c-blue-500: #2f92dc;
  --c-yellow:   #f6c945;   /* Wappengelb – die Akzentfarbe der Website */
  --c-yellow-d: #d9a613;   /* abgedunkelt, für Hover */
  --c-red:      #bf4135;   /* Wappenrot, direkt aus dem Ziegelfeld entnommen */
  --c-green:    #1e9e4a;

  /* Semantische Farben – Light Mode */
  --bg:          #f4f7fa;
  --bg-alt:      #eaf0f6;
  --surface:     #ffffff;
  --surface-2:   #f8fafc;
  --text:        #0d1b28;
  --text-muted:  #55697d;
  --border:      #dbe4ed;
  --border-soft: #e8eef4;
  --brand:       var(--c-blue-700);
  --brand-ink:   #ffffff;
  --accent:        var(--c-yellow);
  --accent-ink:    #2a1f00;
  --accent-hover:  var(--c-yellow-d);
  /* Schrift und dünne Linien auf dunklem Grund (Hero, Footer, CTA-Band).
     Gelb ist dort hell genug, deshalb identisch mit --accent. */
  --accent-on-dark: var(--c-yellow);
  --shadow-sm:   0 1px 2px rgba(9, 30, 51, .06), 0 2px 6px rgba(9, 30, 51, .05);
  --shadow-md:   0 4px 12px rgba(9, 30, 51, .08), 0 12px 32px rgba(9, 30, 51, .08);
  --shadow-lg:   0 12px 28px rgba(9, 30, 51, .12), 0 28px 64px rgba(9, 30, 51, .14);
  --header-bg:   rgba(255, 255, 255, .82);

  /* Form */
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* Rhythmus */
  --space-section: clamp(3.5rem, 7vw, 6.5rem);
  --container: 1180px;
  --container-narrow: 780px;

  /* Typografie */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  --font-display: "Barlow Condensed", "Inter", -apple-system, BlinkMacSystemFont,
                  "Segoe UI", Roboto, sans-serif;

  --step--1: clamp(.82rem, .78rem + .18vw, .9rem);
  --step-0:  clamp(1rem, .96rem + .2vw, 1.075rem);
  --step-1:  clamp(1.15rem, 1.08rem + .35vw, 1.35rem);
  --step-2:  clamp(1.45rem, 1.3rem + .7vw, 1.9rem);
  --step-3:  clamp(1.9rem, 1.6rem + 1.4vw, 2.8rem);
  --step-4:  clamp(2.4rem, 1.9rem + 2.6vw, 4.2rem);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:          #071320;
    --bg-alt:      #0a1a29;
    --surface:     #0e2032;
    --surface-2:   #12283d;
    --text:        #e7eff7;
    --text-muted:  #9cb2c6;
    --border:      #1d3a52;
    --border-soft: #16304563;
    --brand:       var(--c-blue-500);
    --brand-ink:   #04121e;
    --shadow-sm:   0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md:   0 4px 12px rgba(0, 0, 0, .45), 0 12px 32px rgba(0, 0, 0, .35);
    --shadow-lg:   0 12px 28px rgba(0, 0, 0, .5), 0 28px 64px rgba(0, 0, 0, .45);
    --header-bg:   rgba(7, 19, 32, .78);
  }
}

:root[data-theme="dark"] {
  --bg:          #071320;
  --bg-alt:      #0a1a29;
  --surface:     #0e2032;
  --surface-2:   #12283d;
  --text:        #e7eff7;
  --text-muted:  #9cb2c6;
  --border:      #1d3a52;
  --border-soft: #163045;
  --brand:       var(--c-blue-500);
  --brand-ink:   #04121e;
  --shadow-sm:   0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md:   0 4px 12px rgba(0, 0, 0, .45), 0 12px 32px rgba(0, 0, 0, .35);
  --shadow-lg:   0 12px 28px rgba(0, 0, 0, .5), 0 28px 64px rgba(0, 0, 0, .45);
  --header-bg:   rgba(7, 19, 32, .78);
}

/* --------------------------------------------------------------------------
   2. Reset & Basis
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-blue-600); }

ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: .35em; }

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

hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }

/* --------------------------------------------------------------------------
   3. Layout-Bausteine
   -------------------------------------------------------------------------- */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}
.container--narrow { width: min(100% - 2.5rem, var(--container-narrow)); }

.section { padding-block: var(--space-section); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--alt { background: var(--bg-alt); }
.section--surface { background: var(--surface); }

.section-head {
  max-width: 62ch;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--text-muted); font-size: var(--step-1); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: .9rem;
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.section-head--center .eyebrow::before { display: none; }

.grid { display: grid; gap: clamp(1rem, 2vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr)); }

.stack > * + * { margin-top: 1.1rem; }
.lead { font-size: var(--step-1); color: var(--text-muted); }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .85rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease,
              border-color .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--brand); color: var(--brand-ink); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--c-blue-600); color: var(--brand-ink); box-shadow: var(--shadow-md); }

.btn--accent { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-sm); }
.btn--accent:hover { background: var(--accent-hover); color: var(--accent-ink); box-shadow: var(--shadow-md); }

.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }

.btn--on-dark { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .35); backdrop-filter: blur(8px); }
.btn--on-dark:hover { background: rgba(255, 255, 255, .22); color: #fff; }

.btn--sm { padding: .55rem 1.05rem; font-size: .78rem; }
.btn--block { width: 100%; }

.btn svg { width: 1.05em; height: 1.05em; flex: none; }

/* --------------------------------------------------------------------------
   5. Header & Navigation
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: .75rem; top: -100px;
  z-index: 200;
  padding: .75rem 1.25rem;
  background: var(--brand); color: var(--brand-ink);
  border-radius: var(--radius-sm); font-weight: 700;
  transition: top .2s ease;
}
.skip-link:focus { top: .75rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 4.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
  color: var(--text);
  flex: none;
}
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1;
  letter-spacing: -.01em;
}
.brand__sub {
  display: block;
  font-family: var(--font-sans);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: .25rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.85rem; height: 2.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.nav-toggle svg { width: 1.35rem; height: 1.35rem; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }

.nav { display: flex; align-items: center; gap: 1.5rem; }

.nav__list {
  display: flex;
  align-items: center;
  gap: .15rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav__item { position: relative; }

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .55rem .7rem;
  border-radius: var(--radius-sm);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
  transition: color .18s ease, background-color .18s ease;
}
.nav__link:hover { color: var(--brand); background: var(--bg-alt); }
.nav__link[aria-current="page"] { color: var(--brand); }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: .7rem; right: .7rem; bottom: .1rem;
  height: 2px; border-radius: 2px;
  background: var(--accent);
}
.nav__link svg { width: .7rem; height: .7rem; opacity: .6; transition: transform .2s ease; }

.nav__item:hover > .nav__link svg,
.nav__item:focus-within > .nav__link svg { transform: rotate(180deg); }

.nav__sub {
  position: absolute;
  top: calc(100% + .4rem);
  left: 50%;
  transform: translate(-50%, .35rem);
  min-width: 15rem;
  padding: .5rem;
  margin: 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav__item:hover > .nav__sub,
.nav__item:focus-within > .nav__sub {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.nav__sub li { margin: 0; }
.nav__sub a {
  display: block;
  padding: .55rem .8rem;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
}
.nav__sub a:hover { background: var(--bg-alt); color: var(--brand); }

.header-cta { flex: none; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .nav {
    position: fixed;
    inset: 4.75rem 0 auto 0;
    display: block;
    max-height: calc(100dvh - 4.75rem);
    overflow-y: auto;
    padding: 1.25rem 1.25rem 2.5rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    /* Das geschlossene Menü darf keine Klicks abfangen – sonst liegt es als
       unsichtbare Fläche über dem Seiteninhalt. */
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav__list { display: block; }
  .nav__link {
    width: 100%;
    justify-content: space-between;
    padding: .85rem .5rem;
    font-size: .95rem;
    border-bottom: 1px solid var(--border-soft);
    border-radius: 0;
  }
  .nav__link[aria-current="page"]::after { display: none; }
  /* Untermenüs sind mobil dauerhaft ausgeklappt – die Desktop-Regeln für
     Hover und Positionierung müssen dafür zurückgesetzt werden. */
  .nav__sub,
  .nav__item:hover > .nav__sub,
  .nav__item:focus-within > .nav__sub {
    position: static;
    transform: none;
    opacity: 1;
    /* inherit statt visible: sonst macht das Untermenü die Sichtbarkeit des
       geschlossenen Menüs wieder rückgängig und bleibt anklickbar. */
    visibility: inherit;
    box-shadow: none;
    border: 0;
    background: var(--surface-2);
    border-radius: var(--radius-sm);
    margin: .4rem 0 .8rem;
    padding: .35rem;
  }
  .nav__sub a { font-size: .9rem; padding: .6rem .7rem; }
  .nav__item:hover > .nav__link svg,
  .nav__item:focus-within > .nav__link svg { transform: none; }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: min(78dvh, 46rem);
  padding-block: clamp(4rem, 12vw, 8rem) clamp(3rem, 7vw, 5rem);
  color: #fff;
  overflow: hidden;
}
/* Hintergrundbild des Heros liegt als <img class="hero__bg"> im HTML.
   Vorteil: Der Pfad lässt sich pro Seite setzen und der Browser lädt das
   Bild früh und in der passenden Größe. */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  transform: scale(1.04);
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 35, 56, .55) 0%, rgba(7, 35, 56, .35) 35%, rgba(7, 35, 56, .92) 100%),
    linear-gradient(100deg, rgba(15, 76, 129, .55), rgba(7, 35, 56, .15));
}
.hero__content { max-width: 46rem; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .45rem 1rem .45rem .5rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(10px);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero__badge img { width: 30px; height: 30px; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero h1 em {
  font-style: normal;
  display: block;
  color: var(--accent-on-dark);
}
.hero__quote {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 500;
  color: rgba(255, 255, 255, .92);
  border-left: 3px solid var(--accent-on-dark);
  padding-left: 1rem;
  margin-bottom: 2rem;
  max-width: 34rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Kompakter Seiten-Hero für Unterseiten */
.page-hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2.5rem, 6vw, 4.5rem);
  color: #fff;
  background:
    radial-gradient(120% 140% at 15% 0%, rgba(47, 146, 220, .5), transparent 60%),
    linear-gradient(135deg, var(--c-blue-800), var(--c-blue-900));
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .16) 1px, transparent 0);
  background-size: 28px 28px;
  opacity: .5;
}
/* Seitenkopf mit Foto. Das Bild liegt ganz hinten, darüber ein Verlauf,
   damit die weiße Schrift auf jedem Bildausschnitt lesbar bleibt. */
.page-hero--foto {
  background: var(--c-blue-900);
  min-height: clamp(17rem, 32vw, 24rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: clamp(1rem, 2vw, 1.6rem);
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.page-hero--foto::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(100deg, rgba(8, 28, 51, .93) 0%, rgba(8, 28, 51, .78) 44%, rgba(8, 28, 51, .34) 100%),
    linear-gradient(to top, rgba(8, 28, 51, .8), transparent 48%);
}
.page-hero--foto::after { opacity: .22; }

/* Bildunterschrift in der rechten unteren Ecke des Bildes - am Bildrand,
   nicht am Inhaltsrahmen, sonst rückt sie auf großen Monitoren nach innen.
   Sie steht im Textfluss, damit sie den Fließtext nie überlagern kann. */
.page-hero .page-hero__quelle {
  align-self: flex-end;
  margin: clamp(1.5rem, 3.5vw, 2.5rem) clamp(1rem, 2.5vw, 2.25rem) 0 0;
  max-width: min(24rem, calc(100% - 2rem));
  text-align: right;
  font-size: .72rem;
  line-height: 1.45;
  letter-spacing: .05em;
  color: rgba(255, 255, 255, .74);
  text-shadow: 0 1px 4px rgba(0, 0, 0, .55);
}
.page-hero__ort {
  font-weight: 600;
  color: rgba(255, 255, 255, .88);
}

.page-hero h1 { color: #fff; }
.page-hero .eyebrow { color: var(--accent-on-dark); }
.page-hero .eyebrow::before { background: rgba(255, 255, 255, .5); }
.page-hero p:not(.page-hero__quelle) { color: rgba(255, 255, 255, .82); font-size: var(--step-1); max-width: 55ch; }

.breadcrumb {
  display: flex; flex-wrap: wrap; gap: .5rem;
  list-style: none; margin: 0 0 1.5rem; padding: 0;
  font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
}
.breadcrumb a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; opacity: .5; }

/* --------------------------------------------------------------------------
   7. Kennzahlen-Leiste
   -------------------------------------------------------------------------- */
.stats {
  position: relative;
  z-index: 2;
  margin-top: calc(-1 * clamp(2rem, 5vw, 3.5rem));
}
.stats__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.stat { background: var(--surface); padding: clamp(1.4rem, 3vw, 2.1rem); text-align: center; }
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
  font-weight: 700;
  line-height: 1;
  color: var(--brand);
}
.stat__label {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: .5rem;
}

/* --------------------------------------------------------------------------
   8. Karten
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.4rem, 2.5vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--text-muted); }

a.card, .card--link { text-decoration: none; color: inherit; }
a.card:hover, .card--link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--border));
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem; height: 3rem;
  margin-bottom: 1.1rem;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--brand);
  font-size: 1.5rem;
}
.card__icon svg { width: 1.5rem; height: 1.5rem; }

.card__meta {
  margin-top: auto;
  padding-top: 1.1rem;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--text-muted);
}
.card__cta {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: 1.2rem;
  font-size: var(--step--1); font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand);
}
a.card:hover .card__cta { gap: .75rem; }
.card__cta svg { width: .9em; height: .9em; transition: transform .2s ease; }

/* Sparten-Karte mit Farbakzent */
.card--sport { padding-top: clamp(1.6rem, 2.5vw, 2.2rem); overflow: hidden; }
.card--sport::before {
  content: "";
  position: absolute; inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sport-color, var(--brand)), transparent);
}
.card--sport .card__icon {
  background: color-mix(in srgb, var(--sport-color, var(--brand)) 14%, transparent);
  color: var(--sport-color, var(--brand));
}

/* --------------------------------------------------------------------------
   9. Team-Karten (Fußball)
   -------------------------------------------------------------------------- */
.team-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.team-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
}
.team-card__badge {
  display: grid;
  place-items: center;
  width: 4.25rem; height: 4.25rem;
  border-radius: var(--radius);
  background: linear-gradient(140deg, var(--c-blue-700), var(--c-blue-900));
  color: var(--accent-on-dark);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  flex: none;
}
.team-card__body h3 { margin-bottom: .2rem; }
.team-card__sub {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .6rem;
}
.team-card__facts {
  display: flex; flex-wrap: wrap; gap: .4rem .5rem;
  list-style: none; margin: 0; padding: 0;
}
.team-card__facts li {
  display: inline-flex; align-items: center; gap: .4rem;
  margin: 0;
  flex: 0 0 auto;
  max-width: 100%;
  padding: .3rem .7rem;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  font-size: .8rem;
  color: var(--text-muted);
}
.team-card__facts svg { width: 1.05em; height: 1.05em; flex: none; opacity: .75; }
.team-card__actions { display: flex; flex-direction: column; gap: .5rem; }

@media (max-width: 860px) {
  /* Gestapelt: Wappen oben, darunter Text und Aktionen in voller Breite. */
  .team-card { grid-template-columns: 1fr; align-items: start; gap: 1rem; }
  .team-card__badge { width: 3.25rem; height: 3.25rem; font-size: 1.2rem; }
  .team-card__facts li { flex: 1 1 100%; }
  .team-card__actions { flex-direction: row; flex-wrap: wrap; }
  .team-card__actions .btn { flex: 1 1 auto; }
}

/* --------------------------------------------------------------------------
   10. Info-Blöcke, Split-Layout
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}
.split__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* Platzhalter, solange ein Foto noch fehlt */
.foto-platzhalter {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .85rem;
  min-height: clamp(11rem, 24vw, 17rem);
  padding: 2rem 1.5rem;
  background: color-mix(in srgb, var(--brand) 6%, var(--surface));
  border: 2px dashed color-mix(in srgb, var(--brand) 32%, transparent);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  text-align: center;
}
.foto-platzhalter > svg {
  width: 2.75rem;
  height: 2.75rem;
  opacity: .55;
}
.foto-platzhalter__text {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: .02em;
}

/* Mannschaftsfoto mit Bildunterschrift */
.mannschaftsfoto {
  margin: 0;
}
.mannschaftsfoto img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.mannschaftsfoto figcaption {
  margin-top: .85rem;
  font-size: var(--step--1);
  line-height: 1.5;
  color: var(--text-muted);
}

.panel {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.panel--accent {
  background: linear-gradient(150deg, var(--c-blue-800), var(--c-blue-900));
  border-color: transparent;
  color: #fff;
}
.panel--accent h2, .panel--accent h3 { color: #fff; }
.panel--accent p { color: rgba(255, 255, 255, .82); }

/* Definitionslisten für Trainingsdaten */
.facts { display: grid; gap: 0; margin: 0; }
.facts > div {
  display: grid;
  grid-template-columns: minmax(7.5rem, 11rem) 1fr;
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--border-soft);
}
.facts > div:last-child { border-bottom: 0; }
.facts dt {
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.facts dd { margin: 0; font-weight: 600; }
@media (max-width: 520px) {
  .facts > div { grid-template-columns: 1fr; gap: .2rem; }
}

/* Aufzählung mit Häkchen */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.checklist li {
  position: relative;
  margin: 0;
  padding-left: 2rem;
  color: var(--text-muted);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: .45em;
  width: 1.15rem; height: 1.15rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c-green) 18%, transparent);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c-green) 55%, transparent);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: .36rem; top: .72em;
  width: .42rem; height: .22rem;
  border-left: 2px solid var(--c-green);
  border-bottom: 2px solid var(--c-green);
  transform: rotate(-45deg);
}

/* Personen / Ansprechpartner */
.people { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.person {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.person__avatar {
  display: grid; place-items: center;
  width: 3rem; height: 3rem; flex: none;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--c-blue-600), var(--c-blue-800));
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 700;
}
.person__name { font-weight: 700; line-height: 1.2; }
.person__role { font-size: var(--step--1); color: var(--text-muted); }
.person__contact { display: flex; gap: .6rem; margin-top: .35rem; font-size: var(--step--1); }

/* Porträtkarten mit Foto (z. B. das Schiedsrichter-Team).
   Das Seitenverhältnis 3:4 schneidet alle Fotos einheitlich zu, auch wenn die
   Originale unterschiedlich hoch sind. */
.portrait-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(.75rem, 2vw, 1.5rem);
}
@media (min-width: 620px) { .portrait-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .portrait-grid { grid-template-columns: repeat(4, 1fr); } }
.portrait {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.portrait:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
}
.portrait__photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 22%;
  background: var(--surface-2);
}
.portrait__body {
  padding: clamp(.8rem, 2vw, 1.1rem) clamp(.9rem, 2vw, 1.25rem) clamp(1rem, 2vw, 1.35rem);
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.portrait__name {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
}
.portrait__role {
  margin: 0;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.portrait__note { margin: .35rem 0 0; font-size: var(--step--1); color: var(--text-muted); }

/* --------------------------------------------------------------------------
   10b. Organigramm (Baumstruktur aus Kästen und Verbindungslinien)
   -------------------------------------------------------------------------- */
.orga {
  --orga-linie: color-mix(in srgb, var(--brand) 55%, transparent);
  --orga-luft: 2rem;
}
.orga ul {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: var(--orga-luft) 0 0;
  position: relative;
}
.orga > ul { padding-top: 0; }
.orga li {
  position: relative;
  margin: 0;
  padding: var(--orga-luft) .4rem 0;
  text-align: center;
}

/* Waagerechte Verbindung zu den Geschwistern, senkrechte zum Knoten */
.orga li::before,
.orga li::after {
  content: "";
  position: absolute;
  top: 0;
  right: 50%;
  width: 50%;
  height: var(--orga-luft);
  border-top: 2px solid var(--orga-linie);
}
.orga li::after {
  right: auto;
  left: 50%;
  border-left: 2px solid var(--orga-linie);
}
.orga li:only-child { padding-top: var(--orga-luft); }
.orga li:only-child::before { display: none; }
.orga li:only-child::after { left: 50%; width: 0; border-top: 0; }
.orga li:first-child::before { border: 0; }
.orga li:last-child::after { border-left: 0; }
.orga li:last-child::before { border-right: 2px solid var(--orga-linie); border-radius: 0 .4rem 0 0; }
.orga li:first-child::after { border-radius: .4rem 0 0 0; }

/* Strich vom Elternkasten hinunter zur nächsten Reihe */
.orga ul ul::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: var(--orga-luft);
  border-left: 2px solid var(--orga-linie);
}

/* Der Kasten selbst - im Kartendesign der übrigen Seite */
.orga__knoten {
  display: inline-block;
  padding: .75rem .95rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: left;
}
.orga__person {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-align: left;
}
.orga__initialen {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  flex: none;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 16%, var(--surface));
  color: var(--brand);
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 700;
}
.orga__name { display: block; font-weight: 700; font-size: .92rem; line-height: 1.25; white-space: nowrap; }
.orga__rolle {
  display: block;
  margin-top: .1rem;
  font-size: .74rem;
  line-height: 1.3;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Die Doppelspitze: ein Kasten, zwei Personen */
.orga__knoten--kopf {
  background: linear-gradient(140deg, var(--c-blue-700), var(--c-blue-900));
  border-color: transparent;
  color: #fff;
}
.orga__knoten--kopf .orga__rolle { color: rgba(255, 255, 255, .78); }
.orga__knoten--kopf .orga__initialen {
  background: rgba(255, 255, 255, .16);
  color: #fff;
}
.orga__knoten--duo {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .9rem 1.6rem;
  padding: 1rem 1.25rem;
}
.orga__knoten--duo .orga__person + .orga__person {
  padding-left: 1.6rem;
  border-left: 1px solid rgba(255, 255, 255, .22);
}
@media (max-width: 1100px) {
  .orga__knoten--duo { flex-direction: column; }
  .orga__knoten--duo .orga__person + .orga__person {
    padding-left: 0;
    padding-top: .9rem;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, .22);
  }
}

/* Breiter Baum: waagerecht scrollbar statt gequetscht */
.orga--scroll {
  overflow-x: auto;
  padding-bottom: .5rem;
  -webkit-overflow-scrolling: touch;
}
.orga--scroll > .orga {
  /* max-content statt fester Mindestbreite: sonst zentriert Flexbox den Baum
     und der linke Teil ragt in einen Bereich, den man nicht scrollen kann. */
  width: max-content;
  min-width: 100%;
  margin-inline: auto;
}

/* Bis knapp 1100px wird aus dem Baum eine senkrechte Leiste. Waagerecht
   braucht die Ressortreihe rund 1030px - darunter stünde der letzte Kasten
   außerhalb des Sichtfelds und man müsste seitlich schieben. */
@media (max-width: 1100px) {
  .orga--scroll { overflow-x: visible; padding-bottom: 0; }
  .orga--scroll > .orga { width: auto; min-width: 0; margin-inline: 0; }

  .orga ul { flex-direction: column; justify-content: flex-start; padding-top: 0; }
  .orga li { padding: 0; text-align: left; }
  .orga__knoten { display: block; max-width: 24rem; }

  /* Kopfknoten: keine Verbinder, volle Breite */
  .orga > ul > li::before,
  .orga > ul > li::after { display: none; }

  /* Ressorts hängen an einer Leiste unter dem Kopf */
  .orga > ul > li > ul { padding: .35rem 0 0 1.25rem; }
  .orga > ul > li > ul::before { height: .35rem; left: 1.25rem; }
  .orga > ul > li > ul > li { padding: .3rem 0 .3rem 1.4rem; }
  .orga > ul > li > ul > li::before {
    top: 50%;
    left: 0;
    right: auto;
    width: 1.4rem;
    height: 0;
    border-top: 2px solid var(--orga-linie);
    border-right: 0;
    border-radius: 0;
  }
  .orga > ul > li > ul > li::after {
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    width: 0;
    height: auto;
    border-left: 2px solid var(--orga-linie);
    border-top: 0;
    border-radius: 0;
  }
  .orga > ul > li > ul > li:last-child::after { bottom: 50%; }

  /* Die Regeln der Waagerecht-Ansicht sind spezifischer - hier zurücknehmen */
  .orga > ul > li > ul > li:first-child::before,
  .orga > ul > li > ul > li:last-child::before {
    border-top: 2px solid var(--orga-linie);
    border-right: 0;
    border-radius: 0;
  }
  .orga > ul > li > ul > li:first-child::after,
  .orga > ul > li > ul > li:last-child::after {
    border-left: 2px solid var(--orga-linie);
    border-radius: 0;
  }
}

/* --------------------------------------------------------------------------
   Abteilungstafeln - die zweite Ebene des Organigramms.
   Statt eines zu breiten Baums: Tafeln im Raster, jede in ihrer Spartenfarbe.
   -------------------------------------------------------------------------- */
.abt-verteiler {
  position: relative;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
}
.abt-verteiler::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 2.5rem;
  border-left: 2px solid color-mix(in srgb, var(--brand) 55%, transparent);
}
.abt-raster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: start;
}
.abt {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.abt:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.abt::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--abt-farbe, var(--brand));
}
.abt__kopf {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  padding: 1.15rem 1.25rem .6rem;
}
.abt__titel {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
}
.abt__anzahl {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
.abt__leitung {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 0 1.25rem 1rem;
}
.abt__chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .7rem .35rem .35rem;
  background: color-mix(in srgb, var(--abt-farbe, var(--brand)) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--abt-farbe, var(--brand)) 30%, transparent);
  border-radius: var(--radius-pill);
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.2;
}
.abt__initialen {
  display: grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  flex: none;
  border-radius: 50%;
  background: var(--abt-farbe, var(--brand));
  color: #fff;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
}
.abt__chip em { font-style: normal; font-weight: 400; color: var(--text-muted); }
.abt__gruppen {
  margin: 0;
  padding: 0 1.25rem;
  border-top: 1px solid var(--border-soft);
}
.abt__gruppen > div {
  display: grid;
  grid-template-columns: minmax(6.5rem, 9rem) 1fr;
  gap: .75rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--border-soft);
}
.abt__gruppen > div:last-child { border-bottom: 0; }
.abt__gruppen dt {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-muted);
  align-self: center;
}
.abt__gruppen dd { margin: 0; font-size: .9rem; font-weight: 600; }
.abt__fuss { margin-top: auto; padding: 1rem 1.25rem 1.15rem; }
.abt__fuss a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--abt-farbe, var(--brand));
}
.abt__fuss a:hover { gap: .7rem; }
.abt__hinweis {
  margin: 0;
  padding: 1rem 1.25rem 1.15rem;
  font-size: var(--step--1);
  color: var(--text-muted);
}

/* Die Fußballtafel ist mit neun Gruppen die mit Abstand längste.
   Sie bekommt doppelte Breite und zwei Spalten, damit das Raster ruhig bleibt. */
@media (min-width: 720px) {
  .abt--breit { grid-column: span 2; }
  .abt--breit .abt__gruppen {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: clamp(1.5rem, 3vw, 3rem);
    padding-top: .4rem;
    padding-bottom: .4rem;
  }
  .abt--breit .abt__gruppen > div { border-bottom: 0; padding: .4rem 0; }
}

@media (max-width: 520px) {
  .abt__gruppen > div { grid-template-columns: 1fr; gap: .1rem; }
}

@media (max-width: 720px) {
  .orga { --orga-luft: 1.4rem; }
  .orga__knoten { min-width: 8rem; padding: .55rem .7rem; }
  .orga__name { font-size: .85rem; }
}

/* --------------------------------------------------------------------------
   11. Zeitstrahl (Historie)
   -------------------------------------------------------------------------- */
.timeline { position: relative; margin: 0; padding: 0 0 0 2.25rem; list-style: none; }
.timeline::before {
  content: "";
  position: absolute;
  left: .53rem; top: .5rem; bottom: .5rem;
  width: 2px;
  background: linear-gradient(180deg, var(--brand), color-mix(in srgb, var(--brand) 15%, transparent));
  border-radius: 2px;
}
.timeline > li { position: relative; margin: 0 0 clamp(1.75rem, 3.5vw, 2.75rem); }
.timeline > li:last-child { margin-bottom: 0; }
.timeline > li::before {
  content: "";
  position: absolute;
  left: -2.25rem; top: .55rem;
  width: 1.1rem; height: 1.1rem;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 12%, transparent);
}
.timeline__year {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--brand);
  margin-bottom: .2rem;
}
.timeline h3 { font-size: var(--step-2); margin-bottom: .5rem; }
.timeline p { color: var(--text-muted); }

/* --------------------------------------------------------------------------
   12. Downloads
   -------------------------------------------------------------------------- */
.download {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.download:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--c-red) 40%, var(--border));
}
.download__icon {
  display: grid; place-items: center;
  width: 2.6rem; height: 2.6rem; flex: none;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--c-red) 12%, transparent);
  color: var(--c-red);
}
.download__icon svg { width: 1.35rem; height: 1.35rem; }
.download__name { font-weight: 700; line-height: 1.25; }
.download__hint { font-size: var(--step--1); color: var(--text-muted); }

/* --------------------------------------------------------------------------
   13. Formular
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.field { display: grid; gap: .4rem; }
.field label {
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: .8rem 1rem;
  font: inherit;
  font-size: var(--step-0);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field__hint { font-size: var(--step--1); color: var(--text-muted); text-transform: none; letter-spacing: 0; font-weight: 400; }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: .7rem; }
.field--check input { width: 1.15rem; height: 1.15rem; margin-top: .25rem; }
.field--check label { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: var(--step--1); color: var(--text-muted); }

/* --------------------------------------------------------------------------
   14. Sponsoren
   -------------------------------------------------------------------------- */
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr));
  gap: 1rem;
}
.sponsor {
  display: grid;
  place-items: center;
  min-height: 7rem;
  padding: 1.25rem;
  /* Immer hell: Firmenlogos sind für hellen Grund gemacht und würden im
     Dark Mode sonst auf dunkler Fläche stehen. Logos, die selbst einen
     dunklen Grund mitbringen, setzen --sponsor-grund auf ihre eigene Farbe. */
  background: var(--sponsor-grund, #fff);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--c-blue-900);
  font-size: var(--step--1);
  font-weight: 600;
  text-align: center;
}
.sponsor img {
  /* max-width unter 100 %, damit sehr breite Logos die schmalen nicht
     optisch erschlagen. */
  max-height: 4rem;
  max-width: 86%;
  width: auto;
  object-fit: contain;
}

/* Sponsorenkarte mit Platz für ein Logo.
   Die Logofläche ist immer weiß – Firmenlogos sind fast immer für hellen
   Grund gemacht und würden im Dark Mode sonst unleserlich. */
.sponsor-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
a.sponsor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
}
.sponsor-card__logo {
  display: grid;
  place-items: center;
  padding: 1.5rem 1.25rem;
  min-height: 7rem;
  background: var(--sponsor-grund, #fff);
  border-bottom: 1px solid var(--border);
}
.sponsor-card__logo img { max-height: 4rem; max-width: 86%; width: auto; object-fit: contain; }
/* Platzhalter, solange kein Logo vorliegt: Initialen des Betriebs */
.sponsor-card__initialen {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--c-blue-700);
}
.sponsor-card__body { padding: 1.1rem 1.25rem 1.35rem; }
.sponsor-card__name {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 .35rem;
}
.sponsor-card__adresse {
  margin: 0;
  font-size: var(--step--1);
  line-height: 1.5;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   15. CTA-Band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  isolation: isolate;
  padding-block: clamp(3rem, 6vw, 5rem);
  color: #fff;
  background:
    radial-gradient(90% 120% at 85% 15%, rgba(47, 146, 220, .55), transparent 60%),
    linear-gradient(135deg, var(--c-blue-800), var(--c-blue-900));
  overflow: hidden;
}
.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.cta-band h2 { color: #fff; margin-bottom: .35rem; }
.cta-band p { color: rgba(255, 255, 255, .82); max-width: 46ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* --------------------------------------------------------------------------
   16. Karte / Anfahrt
   -------------------------------------------------------------------------- */
.map-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--surface-2);
  min-height: 22rem;
}
.map-frame iframe { display: block; width: 100%; height: 100%; min-height: 22rem; border: 0; }

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--c-blue-900);
  color: rgba(255, 255, 255, .72);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.site-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}
.footer__brand { max-width: 22rem; }
.footer__brand .brand { color: #fff; }
.footer__brand .brand__sub { color: rgba(255, 255, 255, .55); }
.footer__motto {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--accent-on-dark);
  margin-top: 1.25rem;
}
.footer__title {
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
}
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .92rem; }
.footer__social { display: flex; gap: .6rem; margin-top: 1.25rem; }
.footer__social a {
  display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  transition: background-color .2s ease, transform .2s ease;
}
.footer__social a:hover { background: rgba(255, 255, 255, .2); transform: translateY(-2px); }
.footer__social svg { width: 1.15rem; height: 1.15rem; }
.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .84rem;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }

/* --------------------------------------------------------------------------
   18. Hilfsklassen & Animationen
   -------------------------------------------------------------------------- */
/* Sicherheitsnetz: Ein Inline-Symbol ohne eigene Größenangabe nimmt sonst die
   volle verfügbare Breite ein und sprengt die Karte. Spezifischere Regeln
   (.btn svg, .card__icon svg, .nav__link svg …) gehen weiterhin vor. */
a > svg,
p > svg,
li > svg,
dd > svg {
  width: 1em;
  height: 1em;
  flex: none;
  vertical-align: -.125em;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 1.25rem; }
.mt-3 { margin-top: 2rem; }

.tag {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .75rem;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--brand);
  font-size: .76rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
}
.tag--accent { background: color-mix(in srgb, var(--c-yellow) 22%, transparent); color: var(--c-yellow-d); }
.tag--green { background: color-mix(in srgb, var(--c-green) 15%, transparent); color: var(--c-green); }
.tag--red { background: color-mix(in srgb, var(--c-red) 13%, transparent); color: var(--c-red); }

.note {
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: var(--surface-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: var(--step--1);
  color: var(--text-muted);
}

/* Einblenden beim Scrollen. Der Ausgangszustand wird nur gesetzt, wenn im
   Browser JavaScript aktiv ist – sonst bliebe der Inhalt unsichtbar. */
@media (scripting: enabled) {
  .reveal { opacity: 0; transform: translateY(18px); }
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity .6s cubic-bezier(.22, 1, .36, 1), transform .6s cubic-bezier(.22, 1, .36, 1);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .cta-band, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}
