/* =========================================================================
   Flugsportzentrum Wasserkuppe – style.css
   Kein Framework. Custom Properties, CSS-Grid, clamp()-Typografie.
   Keine externen Schriften oder Ressourcen (kein Third-Party-Request).
   ========================================================================= */

/* ---------- 1. Tokens ---------------------------------------------------- */

:root {
  /* Farben – hell */
  --c-bg:            #f6f5f2;
  --c-bg-tint:       #edeeec;
  --c-surface:       #ffffff;
  --c-surface-2:     #f2f3f1;
  --c-ink:           #16222c;
  --c-ink-soft:      #46596a;
  --c-ink-muted:     #5a6b79;   /* ≥ 4.5:1 auf --c-bg und --c-surface */
  --c-line:          #dfe1dd;
  --c-line-soft:     #e9ebe7;

  --c-brand:         #0f6ea6;
  --c-brand-ink:     #0b527d;
  --c-brand-soft:    #e6f1f8;
  --c-accent:        #d9741d;
  --c-accent-ink:    #a9550c;

  /* Fokusring: auf hellem Grund dunkel, auf dunklem Grund hell (≥ 3:1) */
  --c-focus:         #a9550c;
  --c-focus-dark:    #ffb768;

  --c-night:         #0c1a26;
  --c-night-2:       #132836;
  --c-on-night:      #e9f0f5;
  --c-on-night-soft: #9db4c4;

  /* Typografie */
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  --t-hero:    clamp(2.5rem, 1.2rem + 5.6vw, 5.25rem);
  --t-h2:      clamp(1.7rem, 1.1rem + 2.4vw, 2.85rem);
  --t-h3:      clamp(1.12rem, 1.02rem + 0.4vw, 1.3rem);
  --t-lead:    clamp(1.02rem, 0.96rem + 0.34vw, 1.22rem);
  --t-body:    clamp(0.97rem, 0.94rem + 0.16vw, 1.05rem);
  --t-small:   clamp(0.82rem, 0.8rem + 0.1vw, 0.88rem);

  /* Maße */
  --shell:       1220px;
  --shell-narrow: 760px;
  --gutter:      clamp(1.15rem, 4vw, 2.75rem);
  --section-y:   clamp(3.5rem, 2rem + 6vw, 7rem);
  --header-h:    4.25rem;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgb(12 26 38 / .06), 0 2px 8px rgb(12 26 38 / .05);
  --shadow-md: 0 2px 4px rgb(12 26 38 / .05), 0 12px 28px -8px rgb(12 26 38 / .16);
  --shadow-lg: 0 24px 60px -18px rgb(12 26 38 / .32);

  --ease: cubic-bezier(.22, .61, .36, 1);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --c-bg:        #0b151d;
    --c-bg-tint:   #101e28;
    --c-surface:   #14232f;
    --c-surface-2: #1a2c3a;
    --c-ink:       #e7eef3;
    --c-ink-soft:  #b3c4d1;
    --c-ink-muted: #8ba0b0;
    --c-line:      #23384a;
    --c-line-soft: #1c2e3d;

    --c-brand:      #4aa8dd;
    --c-brand-ink:  #7cc3ec;
    --c-brand-soft: #16303f;
    --c-accent:     #f0973f;
    --c-accent-ink: #f6b271;

    --c-focus:      #ffb768;
    --c-focus-dark: #ffb768;

    --shadow-sm: 0 1px 2px rgb(0 0 0 / .4);
    --shadow-md: 0 2px 4px rgb(0 0 0 / .3), 0 14px 32px -10px rgb(0 0 0 / .55);
    --shadow-lg: 0 24px 60px -18px rgb(0 0 0 / .7);
  }
}

/* ---------- 2. Reset / Basis --------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

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

/* <picture> wählt nur das Dateiformat aus und soll dabei keine eigene Box
   einziehen: mit display:contents bleibt das <img> das direkte Kind seines
   Containers, sodass Prozenthöhen, object-fit und Flex-Regeln unverändert
   greifen. */
picture { display: contents; }

h1, h2, h3 {
  margin: 0 0 .5em;
  line-height: 1.12;
  letter-spacing: -.02em;
  font-weight: 700;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--c-brand-ink); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--c-accent-ink); }

ul { margin: 0; padding: 0; list-style: none; }

/* Fokus: sichtbar auf jedem Untergrund, mind. 3:1 gegen die Umgebung. */
:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 3px;
  border-radius: 4px;
}
/* Auf den dunklen Flächen (Hero, Footer) die helle Variante. */
.hero :focus-visible,
.site-footer :focus-visible { outline-color: var(--c-focus-dark); }

/* Tastaturfokus auf <main> (Skip-Link) nicht als Rahmen zeichnen. */
main:focus { outline: none; }

summary:focus-visible { outline-offset: -3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: fixed; top: .6rem; left: .6rem; z-index: 200;
  transform: translateY(-160%);
  background: var(--c-accent); color: #fff;
  padding: .7rem 1.1rem; border-radius: var(--r-sm);
  font-weight: 600; text-decoration: none;
  transition: transform .18s var(--ease);
}
.skip-link:focus { transform: translateY(0); color: #fff; }

/* ---------- 3. Layout ---------------------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left), env(safe-area-inset-right));
}
.shell--narrow { max-width: var(--shell-narrow); }

.section {
  padding-block: var(--section-y);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
.section--tint { background: var(--c-bg-tint); }
.section--faq  { padding-top: clamp(2rem, 4vw, 3.5rem); }

.section__head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section__head h2 { font-size: var(--t-h2); }
.section__head .lead { margin-bottom: 0; }

.eyebrow {
  margin: 0 0 .75rem;
  font-size: var(--t-small);
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--c-accent-ink);
}

.lead {
  font-size: var(--t-lead);
  color: var(--c-ink-soft);
  line-height: 1.6;
}

/* ---------- 4. Buttons --------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .82rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: var(--t-body);
  font-weight: 650;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease),
              border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--c-accent);
  color: #fff;
  box-shadow: 0 6px 18px -6px rgb(217 116 29 / .65);
}
.btn--primary:hover { background: var(--c-accent-ink); color: #fff; }

.btn--ghost {
  background: transparent;
  color: var(--c-on-night);
  border-color: rgb(255 255 255 / .38);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgb(255 255 255 / .12); color: #fff; border-color: rgb(255 255 255 / .7); }

/* ---------- 5. Header ---------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--c-bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease),
              background-color .25s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--c-line);
  box-shadow: 0 6px 24px -14px rgb(12 26 38 / .4);
}

.header__inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex; align-items: center; gap: .7rem;
  text-decoration: none; color: inherit;
  margin-right: auto;
  padding-block: .4rem;
}
.brand__logo {
  width: 2.5rem; height: 2.5rem;
  object-fit: contain;
  flex: none;
}
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name {
  font-weight: 750;
  font-size: clamp(.9rem, .82rem + .34vw, 1.06rem);
  letter-spacing: -.015em;
  line-height: 1.15;
}
.brand__tagline {
  font-size: .715rem;
  letter-spacing: .085em;
  text-transform: uppercase;
  color: var(--c-ink-muted);
  line-height: 1.4;
}

.header__actions { display: flex; align-items: center; gap: .5rem; flex: none; }

.lang-switch {
  display: inline-flex; align-items: center;
  padding: .42rem .78rem;
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  font-size: .8rem; font-weight: 700; letter-spacing: .06em;
  color: var(--c-ink-soft);
  text-decoration: none;
  transition: border-color .18s var(--ease), color .18s var(--ease),
              background-color .18s var(--ease);
}
.lang-switch:hover {
  color: var(--c-brand-ink);
  border-color: var(--c-brand);
  background: var(--c-brand-soft);
}

/* Navigation – Desktop */
.nav__list {
  display: flex; align-items: center; gap: clamp(.2rem, 1vw, .9rem);
}
.nav__list a {
  display: block;
  padding: .5rem .55rem;
  font-size: .925rem;
  font-weight: 550;
  color: var(--c-ink-soft);
  text-decoration: none;
  border-radius: var(--r-sm);
  position: relative;
  transition: color .18s var(--ease);
}
.nav__list a::after {
  content: "";
  position: absolute; left: .55rem; right: .55rem; bottom: .18rem;
  height: 2px; border-radius: 2px;
  background: var(--c-accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .22s var(--ease);
}
.nav__list a:hover { color: var(--c-ink); }
.nav__list a:hover::after,
.nav__list a.is-current::after { transform: scaleX(1); }
.nav__list a.is-current { color: var(--c-ink); font-weight: 650; }

.nav__lang { display: none; }

/* Burger */
.burger {
  display: none;
  width: 2.75rem; height: 2.75rem;
  padding: 0; border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  background: transparent; color: var(--c-ink);
  cursor: pointer;
  place-items: center;
}
.burger__box { position: relative; display: block; width: 20px; height: 14px; }
.burger__bar,
.burger__box::before,
.burger__box::after {
  position: absolute; left: 0; width: 100%; height: 2px;
  border-radius: 2px; background: currentColor;
  transition: transform .25s var(--ease), opacity .18s var(--ease), top .25s var(--ease);
}
.burger__bar { top: 6px; }
.burger__box::before { content: ""; top: 0; }
.burger__box::after  { content: ""; top: 12px; }

.burger[aria-expanded="true"] .burger__box::before { top: 6px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__box::after  { top: 6px; transform: rotate(-45deg); }
.burger[aria-expanded="true"] .burger__bar { opacity: 0; transform: scaleX(.2); }

/* Navigation – Mobile */
@media (max-width: 1023px) {
  .burger { display: grid; }
  .lang-switch { display: none; }

  .nav {
    /* Bewusst absolut zum sticky Header: dessen backdrop-filter erzeugt einen
       Containing Block, position:fixed wäre hier nicht verlässlich. */
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-line);
    box-shadow: var(--shadow-lg);
    padding: .75rem max(var(--gutter), env(safe-area-inset-left)) 1.5rem;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    transform-origin: top;
    display: none;
  }
  .nav.is-open { display: block; animation: nav-in .22s var(--ease); }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list a {
    padding: .95rem .25rem;
    font-size: 1.08rem; font-weight: 600;
    color: var(--c-ink);
    border-bottom: 1px solid var(--c-line-soft);
    border-radius: 0;
  }
  .nav__list a::after { display: none; }
  .nav__list a.is-current { color: var(--c-accent-ink); }

  .nav__lang {
    display: inline-flex; align-items: center; gap: .5rem;
    margin-top: 1.1rem;
    padding: .7rem 1.25rem;
    border: 1px solid var(--c-line);
    border-radius: var(--r-pill);
    font-weight: 650; font-size: .95rem;
    color: var(--c-ink-soft); text-decoration: none;
  }
}

@keyframes nav-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

body.is-nav-open { overflow: hidden; }

/* ---------- 6. Hero ------------------------------------------------------ */

.hero {
  position: relative;
  isolation: isolate;
  display: grid; align-items: center;
  min-height: clamp(520px, 80svh, 780px);
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
  color: var(--c-on-night);
  background: var(--c-night);
  overflow: hidden;
}

/* Das Hero-Foto steht als <img> im Markup statt als background-image:
   nur so findet der Preload-Scanner es sofort, was den LCP deutlich
   vorzieht. Die Verlaufsebenen liegen als ::after darüber. */
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  overflow: hidden;
  background-color: var(--c-night-2);
}

.hero__bg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 38%;
}

.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(105deg, rgb(8 20 30 / .94) 0%, rgb(9 26 40 / .74) 46%, rgb(10 32 50 / .42) 100%),
    radial-gradient(120% 90% at 78% 8%, rgb(74 168 221 / .28) 0%, transparent 58%),
    radial-gradient(90% 70% at 12% 100%, rgb(217 116 29 / .26) 0%, transparent 62%);
  background-size: cover, auto, auto;
  background-position: center, center, center;
  background-repeat: no-repeat;
}

/* dezente Horizontlinie zum nächsten Abschnitt */
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 30%;
  background: linear-gradient(to bottom, transparent, rgb(8 20 30 / .55));
  pointer-events: none; z-index: -1;
}

/* 52rem, damit die fünf Kennzahlen in eine Zeile passen.
   Der Fließtext bleibt über .hero__lead bei lesbaren 40rem. */
.hero__inner { max-width: 52rem; }

.hero__eyebrow {
  margin: 0 0 1.1rem;
  font-size: var(--t-small);
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-on-night-soft);
}

.hero__title {
  font-size: var(--t-hero);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: .98;
  margin-bottom: 1.15rem;
  color: #fff;
  text-shadow: 0 2px 30px rgb(0 0 0 / .35);
}
.hero__title-accent { color: inherit; }

.hero__lead {
  font-size: clamp(1.05rem, .98rem + .5vw, 1.3rem);
  line-height: 1.6;
  color: #d7e3ec;
  max-width: 40rem;
  margin-bottom: 2rem;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero__stats {
  display: grid;
  /* 9rem, damit lange Labels wie „Luftsportvereine“ nicht umbrechen */
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1rem clamp(.9rem, 2vw, 1.5rem);
  margin: clamp(2.5rem, 5vw, 3.75rem) 0 0;
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid rgb(255 255 255 / .16);
}
.stat dt {
  font-size: .74rem; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--c-on-night-soft);
}
.stat dd {
  margin: .15rem 0 0;
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  font-weight: 750; letter-spacing: -.02em;
  color: #fff;
}

/* ---------- 7. Karten ---------------------------------------------------- */

.cards {
  display: grid;
  gap: clamp(1.15rem, 2.2vw, 1.85rem);
}
.cards--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }

.card { display: flex; }

.card__link {
  display: flex; flex-direction: column;
  width: 100%;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              border-color .25s var(--ease);
}
.card__link:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--c-brand) 40%, var(--c-line));
  color: inherit;
}

.card__media {
  display: block;
  aspect-ratio: 2 / 1;
  background: var(--c-surface-2);
  overflow: hidden;
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.card__link:hover .card__media img { transform: scale(1.045); }

.card__body {
  display: flex; flex-direction: column;
  gap: .55rem;
  padding: clamp(1.15rem, 2.2vw, 1.55rem);
  flex: 1;
}
.card__title {
  margin: 0;
  font-size: var(--t-h3);
  letter-spacing: -.015em;
}
.card__text {
  margin: 0;
  color: var(--c-ink-soft);
  font-size: .955rem;
  line-height: 1.6;
}
.card__more {
  margin-top: auto; padding-top: .5rem;
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 650; font-size: .92rem;
  color: var(--c-brand-ink);
}
.card__more::after {
  content: "→";
  transition: transform .22s var(--ease);
}
.card__link:hover .card__more { color: var(--c-accent-ink); }
.card__link:hover .card__more::after { transform: translateX(4px); }

/* ---------- 8. Split-Layout (Museum / Radom) ----------------------------- */

.split {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}
@media (min-width: 62rem) {
  .split { grid-template-columns: 1.05fr .95fr; }
  .split--reverse .split__media { order: 2; }
}

.split__media {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 10;
  background: var(--c-surface-2);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }

.split__body h2 { font-size: var(--t-h2); }

/* Rollen-Zeile unter der Überschrift (Radom) */
.roles {
  margin: -.2rem 0 1.1rem;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--c-brand-ink);
}
.split__body p { color: var(--c-ink-soft); font-size: var(--t-lead); line-height: 1.62; }
.split__body p:last-child { margin-top: 1.6rem; }

/* ---------- 9. Logo-Raster ----------------------------------------------- */

.logos {
  display: grid;
  gap: clamp(.6rem, 1.4vw, 1rem);
  /* schmale Viewports: so viele Spalten wie passen */
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 8rem), 1fr));
}
@media (min-width: 48rem) {
  .logos--clubs    { grid-template-columns: repeat(3, 1fr); }
  .logos--partners { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 62rem) {
  .logos--clubs    { grid-template-columns: repeat(6, 1fr); }
  .logos--partners { grid-template-columns: repeat(6, 1fr); }
}

/* Die drei Gemeinden: eigene, mittig gesetzte Reihe.
   Feste Spaltenbreite, damit die Kacheln so groß bleiben wie oben im Raster. */
@media (min-width: 48rem) {
  .logos--towns {
    grid-template-columns: repeat(3, minmax(0, 11rem));
    justify-content: center;
  }
}

/* Zwischenüberschrift über einer Logo-Reihe */
.logos__label {
  margin: clamp(3rem, 6vw, 4.75rem) 0 1.1rem;
  font-size: var(--t-small);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-ink-muted);
  text-align: center;
}

.logos li {
  display: grid; place-items: center;
  padding: clamp(1rem, 2vw, 1.4rem);
  min-height: 8.5rem;
  background: var(--c-surface);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--r-md);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease),
              transform .2s var(--ease);
}
.logos li:hover {
  transform: translateY(-3px);
  border-color: var(--c-line);
  box-shadow: var(--shadow-sm);
}
.logos a {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .65rem;
  width: 100%; height: 100%;
  text-decoration: none;
}

.logos img {
  max-width: 100%;
  max-height: 5rem;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .82;
  transition: filter .25s var(--ease), opacity .25s var(--ease);
}

/* Vereinsnamen unter dem Logo – das Logo ist dann dekorativ (alt="") */
.logo-name {
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-wrap: balance;
  color: var(--c-ink-soft);
}
.logos--clubs li { min-height: 10rem; }
.logos--clubs img { max-height: 4.25rem; }
.logos li:hover .logo-name { color: var(--c-brand-ink); }
.logos li:hover img,
.logos a:focus-visible img { filter: grayscale(0); opacity: 1; }

@media (prefers-color-scheme: dark) {
  /* Logos sind überwiegend dunkel auf transparent – heller Träger nötig */
  .logos li { background: #f4f5f3; border-color: #2a3d4d; }
  .logos li:hover { background: #fff; }
}

/* ---------- 10. Anfahrt: Karte + Kontakt --------------------------------- */

.anfahrt {
  display: grid;
  gap: clamp(1.5rem, 3.5vw, 2.75rem);
}
@media (min-width: 60rem) {
  .anfahrt { grid-template-columns: 1.15fr .85fr; align-items: start; }
}

.map__link {
  position: relative; display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  background: var(--c-surface-2);
}
.map__link img { width: 100%; height: 100%; object-fit: cover; }

.map__link::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgb(8 20 30 / .72) 0%, rgb(8 20 30 / .12) 42%, transparent 70%);
  transition: opacity .25s var(--ease);
}
.map__link:hover::before { opacity: .82; }

.map__badge {
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1rem;
  border-radius: var(--r-pill);
  background: rgb(255 255 255 / .94);
  color: var(--c-night);
  font-size: .88rem; font-weight: 650;
  line-height: 1.3;
  box-shadow: 0 8px 24px -10px rgb(0 0 0 / .5);
  transition: transform .22s var(--ease);
}
.map__badge svg { flex: none; color: var(--c-accent-ink); }
.map__link:hover .map__badge { transform: translateY(-3px); }

.map__note {
  margin: .9rem 0 0;
  font-size: var(--t-small);
  line-height: 1.55;
  color: var(--c-ink-muted);
}

.contact { display: grid; gap: .9rem; }
.contact__card {
  padding: clamp(1.1rem, 2.2vw, 1.4rem);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-accent);
  border-radius: var(--r-md);
}
.contact__card h3 { margin: 0 0 .15rem; font-size: 1.05rem; }
.contact__kind {
  margin: 0 0 .6rem;
  font-size: var(--t-small);
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--c-ink-muted);
}
.contact__addr { margin: 0 0 .5rem; color: var(--c-ink-soft); font-size: .95rem; }
.contact__card a { font-weight: 600; font-size: .95rem; }

/* ---------- 11. FAQ ------------------------------------------------------ */

.faq { display: grid; gap: .6rem; }

.faq__item {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem clamp(1rem, 2vw, 1.35rem);
  font-weight: 650;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  flex: none;
  font-size: 1.5rem; font-weight: 400; line-height: 1;
  color: var(--c-accent-ink);
  transition: transform .25s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:hover { color: var(--c-brand-ink); }

.faq__answer {
  padding: 0 clamp(1rem, 2vw, 1.35rem) 1.2rem;
  color: var(--c-ink-soft);
}

/* ---------- 12. Textseiten (Impressum / Datenschutz / 404) --------------- */

.page-header {
  padding-block: clamp(2.75rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem);
  background: var(--c-bg-tint);
  border-bottom: 1px solid var(--c-line);
}
.page-header h1 {
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem);
  margin-bottom: .35rem;
}
.page-header .lead { margin-bottom: 0; }

.prose { padding-block: clamp(2.25rem, 5vw, 3.75rem); }
.prose h2 {
  font-size: clamp(1.25rem, 1.1rem + .8vw, 1.6rem);
  margin-top: 2.5em;
  padding-top: 1.25rem;
  border-top: 1px solid var(--c-line-soft);
}
.prose > *:first-child { margin-top: 0; }
.prose h2:first-child { padding-top: 0; border-top: 0; }
.prose h3 { font-size: 1.08rem; margin-top: 1.8em; }
.prose p, .prose li { color: var(--c-ink-soft); }
.prose ul { list-style: disc; padding-left: 1.3em; margin: 0 0 1.1em; }
.prose ul li { margin-bottom: .4em; }
.prose address { font-style: normal; margin-bottom: 1.1em; color: var(--c-ink-soft); }
.prose address strong { color: var(--c-ink); }
.prose code {
  padding: .1em .35em;
  border-radius: 4px;
  background: var(--c-surface-2);
  border: 1px solid var(--c-line-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92em;
}

.callout {
  margin: 1.5rem 0;
  padding: 1.1rem 1.35rem;
  background: var(--c-brand-soft);
  border-left: 3px solid var(--c-brand);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: .95rem;
}
.callout p { color: var(--c-ink); }
.callout strong { color: var(--c-ink); }

.data-list {
  display: grid;
  gap: .35rem .9rem;
  margin: 0 0 1.4em;
}
@media (min-width: 34rem) {
  .data-list { grid-template-columns: minmax(10rem, auto) 1fr; }
}
.data-list dt { font-weight: 650; color: var(--c-ink); }
.data-list dd { margin: 0; color: var(--c-ink-soft); }

/* 404 */
.error-page {
  display: grid; place-items: center;
  min-height: clamp(26rem, 68svh, 40rem);
  padding-block: var(--section-y);
  text-align: center;
}
.error-page__code {
  font-size: clamp(4.5rem, 3rem + 10vw, 9rem);
  font-weight: 800; line-height: .9;
  letter-spacing: -.05em;
  margin: 0 0 .5rem;
  background: linear-gradient(96deg, var(--c-accent), var(--c-brand));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.error-page h1 { font-size: var(--t-h2); }
.error-page .lead { margin-inline: auto; max-width: 38rem; }
.error-page__actions {
  display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center;
  margin-top: 2rem;
}
.error-page .btn--ghost { color: var(--c-ink); border-color: var(--c-line); }
.error-page .btn--ghost:hover { background: var(--c-surface-2); color: var(--c-ink); }

/* ---------- 13. Footer --------------------------------------------------- */

.site-footer {
  background: var(--c-night);
  color: var(--c-on-night-soft);
  padding-block: clamp(2rem, 4vw, 2.75rem);
  padding-bottom: max(clamp(2rem, 4vw, 2.75rem), env(safe-area-inset-bottom));
  font-size: .925rem;
}
.footer__inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: .85rem 1.5rem;
}
.footer__copy { margin: 0; }
.footer__nav { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.footer__nav a {
  color: var(--c-on-night-soft);
  text-decoration: none;
  transition: color .18s var(--ease);
}
.footer__nav a:hover { color: #fff; text-decoration: underline; }
.footer__nav a[aria-current="page"] { color: #fff; text-decoration: underline; }

/* ---------- 14. Scroll-Animationen (progressive enhancement) ------------- */

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .section__head,
    .card,
    .split__media,
    .split__body,
    .contact__card,
    .map,
    .faq__item,
    .logos li {
      animation: rise-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

/* ---------- 15. Erhöhter Kontrast --------------------------------------- */

@media (prefers-contrast: more) {
  :root {
    --c-ink-soft:  #24323e;
    --c-ink-muted: #2f4050;
    --c-line:      #8b9aa6;
    --c-line-soft: #8b9aa6;
  }
  .lead, .card__text, .split__body p, .prose p, .prose li { color: var(--c-ink); }
  .logos img { filter: none; opacity: 1; }
  .card__link, .logos li, .contact__card, .faq__item, .lang-switch { border-width: 2px; }
  .prose a, .contact__card a, .card__more { text-decoration: underline; }
  /* Foto weg, damit der Text auf ruhigem Grund steht (wie zuvor, als das
     Bild noch eine der background-image-Ebenen war). */
  .hero__bg img { display: none; }
  .hero__bg::after { background-image: linear-gradient(105deg, rgb(6 16 24 / .97), rgb(7 20 32 / .9)); }
  .hero__lead { color: #fff; }
  .logo-name { color: var(--c-ink); }
}

/* ---------- 16. Windows-Kontrastmodus ------------------------------------ */

@media (forced-colors: active) {
  /* Verlaufstext wäre sonst unsichtbar. */
  .error-page__code {
    background: none;
    color: CanvasText;
    -webkit-text-fill-color: CanvasText;
  }
  .card__link, .logos li, .contact__card, .faq__item, .lang-switch, .burger {
    border: 1px solid CanvasText;
  }
  .btn { border: 1px solid ButtonText; }
  .map__badge { border: 1px solid CanvasText; }
  .logos img { filter: none; opacity: 1; }
  .nav__list a.is-current { text-decoration: underline; }
  :focus-visible { outline: 3px solid Highlight; }
  .hero::after, .map__link::before { display: none; }
  /* Hintergrundbilder entfernt der Kontrastmodus selbst; das Hero-Foto ist
     jetzt ein <img> und muss ausdrücklich weichen. */
  .hero__bg img { display: none; }
}

/* ---------- 17. Druck ---------------------------------------------------- */

@media print {
  .site-header, .skip-link, .hero__cta, .footer__nav, .map__badge { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .hero { min-height: auto; color: #000; background: #fff; }
  .hero__bg, .hero::after { display: none; }
  .hero__title-accent, .error-page__code { color: #000; -webkit-text-fill-color: #000; }
  .card__link, .logos li, .contact__card, .faq__item { box-shadow: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; word-break: break-all; }
  .faq__item[open] .faq__answer, .faq__answer { display: block; }
}
