/* ════════════════════════════════════════════════════════════
   Hetjershausen — Design System
   Editorial 2026: Creme-Flächen, Tiefblau-Bände, große Serifen-
   Typo (Fraunces), scrollgesteuerter Video-Hero
   ════════════════════════════════════════════════════════════ */

:root {
  /* ── WAPPENFARBEN, editorial interpretiert:
        Blau (Himmel) → Tiefblau-Bände + Akzent · Silber/Weiß → warmes Creme
        Grün (Grund) + Gold (Fahne) → Akzente ── */
  --cream:   #f6f1e7;   /* Grundfläche */
  --cream-2: #efe7d6;   /* Abstufung */
  --surface: #fffdf8;   /* Karten auf Creme */
  --deep:    #0c2237;   /* Wappen-Blau, nachtblau: Statement-/Dunkelsektionen */
  --deep-2:  #12324f;

  --bg:   var(--cream);
  --bg-2: var(--cream-2);

  --text:      #14212e;
  --text-soft: #4a5a68;
  --text-mut:  #6b7163;   /* dunkel genug für Kleintext auf Creme (≥ 4.5:1) */
  --ink-on-deep:      #f6f1e7;
  --ink-on-deep-soft: rgba(246, 241, 231, 0.72);
  --ink-on-deep-mut:  rgba(246, 241, 231, 0.58);

  /* Akzente (Wappen) */
  --accent:      #1f74bd;
  --accent-2:    #4795d6;
  --accent-deep: #14568f;
  --accent-soft: color-mix(in oklab, #1f74bd 12%, transparent);
  --accent-ink:  #ffffff;
  --green:       #4f9b3f;
  --green-deep:  #35682c;
  --gold:        #e0a82c;
  --gold-2:      #f0c659;

  --stroke:         rgba(20, 33, 46, 0.14);
  --stroke-2:       rgba(20, 33, 46, 0.26);
  --stroke-on-deep: rgba(246, 241, 231, 0.18);

  --radius:    10px;
  --radius-sm: 6px;
  --radius-lg: 16px;

  --shadow:    0 18px 48px -26px rgba(12, 34, 55, 0.28);
  --shadow-lg: 0 40px 90px -34px rgba(12, 34, 55, 0.34);

  --maxw: 1240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Typo-Skala */
  --fs-display:   clamp(3.2rem, 10vw, 10rem);
  --fs-h2:        clamp(2.1rem, 5vw, 3.9rem);
  --fs-statement: clamp(1.45rem, 3.2vw, 2.55rem);
  --fs-num:       clamp(2.9rem, 7vw, 5.8rem);

  --space-section: clamp(84px, 12vw, 160px);

  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html.menu-open, html.menu-open body { overflow: hidden; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  /* hidden (nicht clip!): propagiert als x-hidden/y-auto aufs Viewport —
     clip würde auch overflow-y clippen und Nutzer-Scrolling abschalten */
  overflow-x: hidden;
  position: relative;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
::selection { background: color-mix(in oklab, var(--gold) 55%, transparent); color: var(--text); }

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

/* grain overlay — filmischer Look */
.grain {
  position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  opacity: 0.12; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }

/* ───────── TICKER ───────── */
.ticker {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 8px clamp(20px, 5vw, 48px);
  background: var(--deep); color: var(--ink-on-deep);
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
}
.ticker__live { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-on-deep-soft); }
.ticker__live:empty { display: none; }
.ticker__sep { opacity: 0.5; }
@media (max-width: 700px) { .ticker__tag { display: none; } }
@media (max-width: 460px) { .ticker__live { display: none; } }

/* ───────── NAV ───────── */
.nav {
  position: sticky; top: 0; z-index: 9600;
  color: var(--ink-on-deep);
  transition: background 0.4s var(--ease), color 0.3s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
/* Startseite: Inhalt (Hero-Video) fließt unter die transparente Nav */
.nav:not(.nav--solid) { margin-bottom: -71px; }
.nav.is-stuck, .nav--solid {
  background: color-mix(in oklab, var(--cream) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text);
  border-bottom-color: var(--stroke);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  height: 71px;
  padding: 0 clamp(20px, 5vw, 48px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__mark {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 10px; color: var(--accent);
  /* helle Plakette: das blaue Logo bleibt auch über dem Hero-Video lesbar */
  background: var(--surface);
  box-shadow: 0 2px 10px rgba(8, 18, 30, 0.22);
}
.nav__mark svg { width: 21px; height: 21px; }
.nav__mark img { width: 20px; height: auto; display: block; }
.nav__name {
  font-family: var(--font-display); font-weight: 600;
  font-size: 21px; letter-spacing: -0.005em; line-height: 1;
}
.nav__tld { font-style: italic; font-weight: 500; opacity: 0.82; }

.nav__burger {
  display: inline-flex; align-items: center; gap: 10px;
  cursor: pointer; border: 0; background: none; color: inherit;
  font: 600 12px/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase;
  padding: 10px 2px;
}
.nav__burger svg { width: 26px; height: 26px; }
.nav__burger .i-close { display: none; }
.nav__burger[aria-expanded="true"] .i-burger { display: none; }
.nav__burger[aria-expanded="true"] .i-close { display: block; }

/* Offenes Menü: overflow:hidden am Body bricht sticky → Nav fixieren,
   hell über dem Tiefblau-Overlay */
html.menu-open .nav {
  position: fixed; top: 0; left: 0; right: 0;
  background: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  color: var(--ink-on-deep);
}

/* Vollflächen-Menü */
.nav__links {
  position: fixed; inset: 0; z-index: 9500;
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  padding: 110px clamp(20px, 8vw, 120px) 60px;
  background: var(--deep); color: var(--ink-on-deep);
  opacity: 0; visibility: hidden; transform: translateY(-14px);
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease), visibility 0s linear 0.45s;
}
.nav__links.is-open {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease);
}
.nav__links > a {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.7rem, 4.6vw, 3.2rem); line-height: 1.16; letter-spacing: -0.02em;
  color: var(--ink-on-deep-soft);
  transition: color 0.2s, padding-left 0.3s var(--ease);
  border-bottom: 1px solid var(--stroke-on-deep);
  padding: 10px 0;
  max-width: 640px;
}
.nav__links > a:hover { color: var(--ink-on-deep); padding-left: 12px; }
.nav__links > a.is-active { color: var(--gold-2); }
.nav__links-foot { display: flex; gap: 22px; margin-top: 34px; }
.nav__links-foot a {
  font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-on-deep-mut);
}
.nav__links-foot a:hover { color: var(--ink-on-deep); }

/* ───────── HERO (Boomerang-Dauerschleife) ───────── */
.hero { position: relative; height: 100svh; background: var(--deep); }

.hero__stage {
  position: relative; height: 100svh; overflow: hidden;
  /* Poster (= Frame 1) liegt immer hinter dem Video: beim Ausblenden am
     Loop-Ende wird darauf abgeblendet, dann startet das Video von vorn */
  background: var(--deep) url("media/hero-poster.jpg") center/cover no-repeat;
}
.hero__loop {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 1.4s ease;   /* == FADE_S in hero.js */
}

.hero__scrim {
  position: absolute; inset: 0; pointer-events: none;
  /* Vignette hinter der Textmitte: der helle Dunst-Himmel im Video
     frisst sonst die Creme-Schrift */
  background:
    radial-gradient(ellipse 64% 54% at 50% 44%, rgba(8, 18, 30, 0.4), transparent 72%),
    linear-gradient(rgba(8, 18, 30, 0.52), rgba(8, 18, 30, 0.12) 38%, transparent 55%, rgba(8, 18, 30, 0.55));
}

.hero__copy {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; color: var(--ink-on-deep);
  padding: 0 clamp(20px, 5vw, 48px);
}
.hero__sub {
  font-size: clamp(11px, 1.4vw, 14px); font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-on-deep);
  text-shadow: 0 1px 14px rgba(8, 18, 30, 0.65), 0 1px 3px rgba(8, 18, 30, 0.5);
  margin-top: clamp(16px, 3vh, 30px);
  text-wrap: balance;
}
.hero__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--fs-display);
  line-height: 0.98; letter-spacing: -0.03em;
  text-wrap: balance;
  text-shadow: 0 2px 34px rgba(8, 18, 30, 0.55), 0 1px 6px rgba(8, 18, 30, 0.35);
}
.hero__title em { font-style: italic; font-weight: 400; }
.hero__cta {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: clamp(24px, 4.5vh, 44px);
  font-size: 15px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--ink-on-deep);
  padding-bottom: 8px; border-bottom: 2px solid var(--gold);
  transition: gap 0.25s var(--ease), border-color 0.25s;
}
.hero__cta:hover { gap: 16px; border-bottom-color: var(--gold-2); }
.hero__cta svg { width: 17px; height: 17px; }

.hero__cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink-on-deep-soft);
  transition: opacity 0.4s;
}
.hero__cue.is-hidden { opacity: 0; }
.hero__cue::after {
  content: ""; width: 1px; height: 44px;
  background: linear-gradient(var(--ink-on-deep-soft), transparent);
  animation: cue-drop 2.2s var(--ease) infinite;
}
@keyframes cue-drop {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@media (prefers-reduced-motion: reduce) { .hero__cue::after { animation: none; } }

/* ───────── STATEMENT (Tiefblau-Band nach dem Hero) ───────── */
.section--deep {
  background: var(--deep); color: var(--ink-on-deep);
}
/* ── Bogen-Muster: konzentrische Viertelkreise, Ton-in-Ton auf Tiefblau
      (CSS-Pattern nach uiverse.io/csemszepp/neat-parrot-45, umgefärbt
      auf die Seitenpalette — ein Echo der Wasserringe im Brunnen) ── */
.section--bogen {
  --s: 112px;                /* Kachelgröße */
  --c1: #112c48;             /* eine Stufe heller als Tiefblau */
  --c2: var(--deep);
  --_g: var(--c2) 6% 14%, var(--c1) 16% 24%, var(--c2) 26% 34%,
    var(--c1) 36% 44%, var(--c2) 46% 54%, var(--c1) 56% 64%, var(--c2) 66% 74%,
    var(--c1) 76% 84%, var(--c2) 86% 94%;
  background: radial-gradient(
      100% 100% at 100% 0,
      var(--c1) 4%,
      var(--_g),
      rgba(0, 0, 0, 0.3) 96%,
      transparent
    ),
    radial-gradient(
        100% 100% at 0 100%,
        transparent,
        rgba(0, 0, 0, 0.3) 4%,
        var(--_g),
        var(--c1) 96%
      )
      var(--c1);
  background-size: var(--s) var(--s);
}
.statement { padding: var(--space-section) 0; }
.statement__kicker {
  font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 30px;
}
.statement__text {
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--fs-statement); line-height: 1.32; letter-spacing: -0.015em;
  max-width: 21em; text-wrap: pretty;
}
.statement__text strong { font-weight: 600; color: var(--gold-2); }

.stats {
  list-style: none; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 4vw, 48px); margin-top: clamp(48px, 7vw, 90px);
}
.stats li { border-top: 1px solid var(--stroke-on-deep); padding-top: 22px; }
.stats__num {
  display: block; font-family: var(--font-display); font-weight: 500;
  font-size: var(--fs-num); line-height: 1; letter-spacing: -0.03em;
}
.stats__label {
  display: block; margin-top: 10px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-on-deep-soft);
}
.stats__note { margin-top: 26px; font-size: 12px; color: var(--ink-on-deep-mut); }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; gap: 26px; } }

/* ───────── TAUSEND-JAHRE-VIDEOBAND (Ortsschild + Spatz) ───────── */
.cinema { background: var(--deep); color: var(--ink-on-deep); }
.cinema__stage { position: relative; overflow: hidden; height: clamp(440px, 88svh, 860px); }
.cinema__video {
  position: absolute; left: 0; top: -6%; width: 100%; height: 112%;
  object-fit: cover; object-position: center 40%;
  will-change: transform;
}
.cinema__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(12, 34, 55, 0.66),
    rgba(12, 34, 55, 0.08) 46%,
    rgba(12, 34, 55, 0.16)
  );
}
.cinema__copy {
  position: absolute; left: 0; right: 0; bottom: clamp(30px, 7vh, 72px);
}
.cinema__kicker {
  font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-2); margin-bottom: 14px;
}
.cinema__line {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2rem, 5vw, 4.4rem); line-height: 1.08; letter-spacing: -0.02em;
  text-shadow: 0 2px 26px rgba(8, 20, 33, 0.45);
}
.cinema__line em { font-style: italic; color: var(--gold-2); }
@media (max-width: 768px) {
  .cinema__stage { height: auto; }
  .cinema__video {
    position: static; display: block; width: 100%; height: auto;
    aspect-ratio: 2208 / 936; object-fit: contain;
  }
  .cinema__scrim { display: none; }
  .cinema__copy { position: static; padding-top: 26px; padding-bottom: 34px; }
}

/* ───────── ANFLUG (#flug): scrollgescrubbter Flug zum Klotzbrunnen ─────────
   Ohne JS/bei reduced-motion (.scrub--static): ruhiges Vollbild-Standbild.
   Mit .scrub--live (setzt hero.js): 300vh-Strecke, gepinnte Bühne,
   ScrollyVideo scrubbt den Flug frame-genau mit der Scrollposition. */
.scrub { position: relative; height: 100svh; background: var(--deep); }
.scrub--live { height: 300vh; }
.scrub--static { height: 100svh; }

.scrub__stage {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  color: var(--ink-on-deep);
  /* Poster = Startbild des Flugs, bis der Scrub spielbereit ist */
  background: var(--deep) url("media/hero-poster.jpg") center/cover no-repeat;
}
.scrub--static .scrub__stage { position: relative; }
.scrub__video { position: absolute; inset: 0; }
.scrub__video video, .scrub__video canvas {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.scrub--static .scrub__video { display: none; }

/* Finale: weicher Übergang auf das am Boden stehende Wahrzeichen
   (das Quellvideo endet mit hartem Schnitt — wir blenden stattdessen) */
.scrub__final {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: url("media/hero-final.jpg") center/cover no-repeat;
}

.scrub__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(12, 34, 55, 0.6),
    rgba(12, 34, 55, 0.06) 46%,
    rgba(12, 34, 55, 0.2)
  );
}
.scrub__copy {
  position: absolute; left: 0; right: 0; bottom: clamp(30px, 7vh, 72px);
}
.scrub__kicker {
  font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-2); margin-bottom: 14px;
}
.scrub__line {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2rem, 5vw, 4.4rem); line-height: 1.08; letter-spacing: -0.02em;
  text-shadow: 0 2px 26px rgba(8, 20, 33, 0.45);
}
.scrub__line em { font-style: italic; color: var(--gold-2); }

/* ───────── SECTIONS ───────── */
.section { padding: var(--space-section) 0; position: relative; }
.section + .section:not(.section--deep) { border-top: 1px solid var(--stroke); }

.section__head { max-width: 780px; margin-bottom: clamp(40px, 6vw, 72px); }
.section__head--sub { margin: clamp(56px, 8vw, 90px) 0 30px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent-deep); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.section--deep .eyebrow { color: var(--gold); }
.dot { display: none; }
.section__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--fs-h2); line-height: 1.02; letter-spacing: -0.025em;
  margin-bottom: 18px; text-wrap: balance;
}
.section__subtitle {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 3vw, 2.1rem);
  display: flex; align-items: center; gap: 12px; letter-spacing: -0.01em;
}
.section__subtitle [data-lucide] { color: var(--accent-deep); width: 26px; height: 26px; }
.section__desc { font-size: clamp(1rem, 1.6vw, 1.12rem); color: var(--text-soft); max-width: 620px; }
.section--deep .section__desc { color: var(--ink-on-deep-soft); }

.grid-2 { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 6vw, 90px); align-items: start; }

/* ───────── Buttons (Consent, Platzhalter) ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: var(--radius-sm); font-weight: 600; font-size: 14.5px;
  cursor: pointer; border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}
.btn--primary { color: var(--ink-on-deep); background: var(--deep); }
.btn--primary:hover { background: var(--deep-2); transform: translateY(-2px); }
.btn--ghost { color: var(--text); background: transparent; border-color: var(--stroke-2); }
.btn--ghost:hover { border-color: var(--text); transform: translateY(-2px); }
.btn--sm { padding: 9px 16px; font-size: 13px; }

/* ───────── LIVE-PANEL (Das Dorf jetzt) ───────── */
.live-grid {
  display: grid; grid-template-columns: 1.25fr 1fr 0.9fr;
  grid-template-areas: "weather wiki facts" "weather wiki loc";
  gap: 0; border: 1px solid var(--stroke); border-radius: var(--radius-lg);
  background: var(--surface); overflow: hidden;
}
.live-card { padding: clamp(22px, 3vw, 36px); min-width: 0; }
.live-card--weather { grid-area: weather; border-right: 1px solid var(--stroke); }
.live-card--wiki { grid-area: wiki; border-right: 1px solid var(--stroke); }
.live-card--facts { grid-area: facts; border-bottom: 1px solid var(--stroke); }
.live-card--loc { grid-area: loc; display: flex; flex-direction: column; }

.live-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.live-card__title {
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-mut);
}
.live-card__title [data-lucide] { width: 17px; height: 17px; color: var(--accent-deep); }
.badge {
  font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--green-deep); padding: 4px 10px; border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--green) 40%, transparent);
}
.badge--soft { color: var(--text-mut); border-color: var(--stroke); }

.wx-now { display: flex; align-items: center; gap: 20px; margin: 4px 0 24px; }
.wx-now__temp {
  font-family: var(--font-display); font-size: clamp(3.4rem, 7vw, 5.4rem);
  font-weight: 500; line-height: 1; letter-spacing: -0.03em;
}
.wx-now__temp span { color: var(--accent-deep); }
.wx-now__desc { font-size: 16px; font-weight: 600; text-transform: capitalize; }
.wx-now__detail { font-size: 13px; color: var(--text-mut); display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.wx-now__detail [data-lucide] { width: 14px; height: 14px; vertical-align: -2px; }
.wx-days { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--stroke); }
.wx-day { text-align: center; padding: 16px 6px 2px; }
.wx-day + .wx-day { border-left: 1px solid var(--stroke); }
.wx-day__d { font-size: 11px; color: var(--text-mut); text-transform: uppercase; font-weight: 600; letter-spacing: 0.08em; }
.wx-day__i { font-size: 24px; margin: 8px 0 5px; }
.wx-day__t { font-size: 13px; font-weight: 600; }
.wx-day__t b { color: var(--text); } .wx-day__t span { color: var(--text-mut); font-weight: 500; }

/* ── Wetterszene (nach uiverse.io/zanina-yassine/neat-starfish-50, auf die
      Seitenpalette umgefärbt): goldene Sonne mit pulsierendem Halo und zwei
      driftenden Wolken oben rechts, warmer Schein unten links. ── */
.live-card--weather {
  position: relative; overflow: hidden;
  background: radial-gradient(178% 106% at 26% 106%, rgba(224, 168, 44, 0.14) 0%, transparent 72%);
}
.live-card--weather .live-card__top,
.live-card--weather .wx-now,
.live-card--weather .wx-days { position: relative; z-index: 1; }
/* Badge neben den Titel rücken — die Ecke oben rechts gehört der Sonne */
.live-card--weather .live-card__top { justify-content: flex-start; }

.wx-scene {
  position: absolute; top: -34px; right: -30px;
  width: 190px; height: 150px; z-index: 0; pointer-events: none;
}
.wx-scene__sun, .wx-scene__halo {
  position: absolute; top: 34px; right: 34px;
  width: 88px; height: 88px; border-radius: 50%;
}
.wx-scene__sun { background: linear-gradient(135deg, var(--gold), var(--gold-2)); }
.wx-scene__halo { background: var(--gold-2); animation: wx-sunshine 2.4s infinite; }
.wx-scene__cloud {
  position: absolute; height: 22px; border-radius: 999px;
  background: #c3d7ea;
}
.wx-scene__cloud::before, .wx-scene__cloud::after {
  content: ""; position: absolute; border-radius: 50%; background: inherit;
}
.wx-scene__cloud::before { width: 26px; height: 26px; left: 12px; top: -13px; }
.wx-scene__cloud::after  { width: 18px; height: 18px; left: 34px; top: -8px; }
.wx-scene__cloud--front {
  width: 64px; left: 44px; bottom: 34px;
  animation: wx-clouds 8s ease-in-out infinite;
}
.wx-scene__cloud--back {
  width: 46px; right: 18px; bottom: 58px;
  background: #d4e2f0;
  animation: wx-clouds 12s ease-in-out infinite;
}
/* Trüb (setzt app.js bei Wettercode > 2): Wolken vor die Sonne, Halo aus */
.wx-scene--trueb .wx-scene__halo { animation: none; opacity: 0; }
.wx-scene--trueb .wx-scene__sun { opacity: 0.45; }
.wx-scene--trueb .wx-scene__cloud--front { transform: translate(-14px, -14px) scale(1.25); }
.wx-scene--trueb .wx-scene__cloud--back { transform: translate(-6px, 6px) scale(1.15); }

@keyframes wx-sunshine {
  0%   { transform: scale(1);   opacity: 0.5; }
  100% { transform: scale(1.4); opacity: 0; }
}
@keyframes wx-clouds {
  0%, 100% { translate: 12px 0; }
  50%      { translate: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .wx-scene__halo { animation: none; opacity: 0.25; }
  .wx-scene__cloud { animation: none; }
}

.wx-unit {
  margin-left: auto; align-self: center;
  padding: 8px 14px; border-radius: 9px;
  background: rgba(12, 34, 55, 0.06);
  font-size: 13px; font-weight: 600; color: var(--text-soft);
}

.wiki__extract {
  font-family: var(--font-display); font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  color: var(--text); line-height: 1.55; margin-bottom: 18px; font-weight: 400;
}
.wiki__link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-deep); font-weight: 600; font-size: 14px; border-bottom: 1px solid var(--gold); padding-bottom: 3px; }
.wiki__link [data-lucide] { width: 15px; height: 15px; transition: transform 0.2s; }
.wiki__link:hover [data-lucide] { transform: translate(2px, -2px); }

.facts { list-style: none; }
.facts li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--stroke); font-size: 13.5px; }
.facts li:last-child { border-bottom: none; }
.facts .k { color: var(--text-mut); display: flex; align-items: center; gap: 8px; }
.facts .k [data-lucide] { width: 15px; height: 15px; color: var(--accent-deep); }
.facts .v { font-weight: 600; text-align: right; }
.facts__note { display: block !important; font-size: 11px; color: var(--text-mut); border-bottom: none !important; padding-top: 10px !important; font-style: italic; }

.miniloc { border-radius: var(--radius-sm); overflow: hidden; flex: 1; min-height: 190px; border: 1px solid var(--stroke); }
.miniloc .leaflet-container { height: 100%; min-height: 190px; background: var(--cream-2); }

/* ───────── ÜBER / TIMELINE ───────── */
.prose p { color: var(--text-soft); margin-bottom: 16px; font-size: 1.05rem; line-height: 1.8; }
.prose p:first-child::first-letter {
  font-family: var(--font-display); font-size: 3.6em; line-height: 0.76; float: left;
  padding: 7px 12px 0 0; color: var(--accent-deep); font-weight: 500;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip {
  font-size: 13px; font-weight: 500; padding: 8px 15px; border-radius: 999px;
  border: 1px solid var(--stroke-2); color: var(--text-soft);
  display: inline-flex; align-items: center; gap: 8px;
}
.chip [data-lucide] { width: 15px; height: 15px; color: var(--accent-deep); }

/* ── Zeitleiste als Jahreszahlen-Stepper (nach uiverse.io/PriyanshuGupta28/
      orange-newt-23): Jahres-Plaketten an einer durchgehenden Linie,
      die letzte Station (»Heute«) in Gold. ── */
.timeline { list-style: none; }
.timeline li {
  display: grid; grid-template-columns: 112px 1fr; gap: 20px;
  padding: 0 0 30px; position: relative;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 55px; top: 10px; bottom: -10px;
  width: 2px; background: var(--stroke); z-index: 0;
}
.timeline li:last-child::before { display: none; }
.timeline .t-year {
  position: relative; z-index: 1;
  justify-self: center; align-self: start;
  padding: 7px 15px; border-radius: 999px;
  background: var(--deep); color: var(--ink-on-deep);
  font-family: var(--font-display); font-size: 15px; font-weight: 600;
  line-height: 1; white-space: nowrap; text-align: center;
  /* Creme-Ring: setzt die Plakette von der Linie ab */
  box-shadow: 0 0 0 4px var(--cream);
}
.timeline li:last-child .t-year { background: var(--gold); color: var(--deep); }
.timeline .t-text {
  font-size: 14.5px; color: var(--text-soft); line-height: 1.65;
  padding-top: 4px;
}
@media (max-width: 640px) {
  .timeline li { grid-template-columns: 92px 1fr; gap: 14px; }
  .timeline li::before { left: 45px; }
  .timeline .t-year { font-size: 13.5px; padding: 6px 12px; }
}

/* ───────── KARTENRASTER (vereine / wirtschaft / freizeit) ───────── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.tile {
  display: flex; flex-direction: column; gap: 13px; min-height: 100%;
  background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--radius);
  padding: clamp(22px, 2.6vw, 30px);
  /* Kacheln sind immer hell — Textfarbe nicht von section--deep erben lassen
     (sonst Creme auf Weiß, z. B. Kachelnamen in „Wirtschaft & Handwerk") */
  color: var(--text);
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s;
}
.tile:hover { transform: translateY(-5px); border-color: var(--stroke-2); box-shadow: var(--shadow); }
.section--deep .tile { border-color: transparent; }
.tile__ico {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%;
  color: var(--accent-deep); border: 1px solid var(--stroke-2);
}
.tile__ico [data-lucide], .tile__ico svg { width: 21px; height: 21px; }
.tile__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tile__type { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-mut); }
.tile__name { font-size: 21px; font-weight: 500; letter-spacing: -0.015em; font-family: var(--font-display); line-height: 1.2; margin-top: 3px; }
.tile__desc { font-size: 14px; color: var(--text-soft); line-height: 1.65; flex: 1; }
.tile__foot { display: flex; align-items: center; gap: 10px; margin-top: 4px; border-top: 1px solid var(--stroke); padding-top: 14px; }
.tile__link { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--accent-deep); }
.tile__link [data-lucide] { width: 15px; height: 15px; transition: transform 0.2s; }
.tile__link:hover [data-lucide] { transform: translate(2px, -2px); }
.tile__tag {
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-mut);
}
.tile__tag.is-verified { color: var(--green-deep); }

/* ───────── FEATURE (Bild-Text-Band: St. Marien, Landschaft) ───────── */
.feature {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 0; overflow: hidden;
  border-radius: var(--radius-lg); margin-bottom: clamp(40px, 6vw, 64px);
  background: var(--deep); color: var(--ink-on-deep);
}
.feature__media { min-height: 420px; background: var(--deep-2) center/cover no-repeat; }
#landschaft-media { background-image: url("media/hoher-hagen.jpg"); }
#marien-media { background-image: url("media/st-marien.jpg"); }
/* St.-Marien-Band im Geschichtsteil: Bild rechts, Abstand zum Grid darüber */
.feature--marien { grid-template-columns: 0.85fr 1.15fr; margin-top: clamp(48px, 7vw, 84px); margin-bottom: 0; }
.feature--marien .feature__media { order: 2; }
.feature--marien .feature__body { order: 1; }
.feature__body { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.feature__body .eyebrow { color: var(--gold); }
.feature__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.8rem, 3.6vw, 2.8rem); letter-spacing: -0.02em; margin-bottom: 16px; }
.feature__text { font-size: 15px; color: var(--ink-on-deep-soft); line-height: 1.75; margin-bottom: 24px; }
.feature .wiki__link { color: var(--ink-on-deep); border-bottom-color: var(--gold); }

/* ───────── ROUTEN (Index-Liste) ───────── */
.routes { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 4vw, 56px); }
.route {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 24px 0; border-top: 1px solid var(--stroke);
  transition: padding-left 0.3s var(--ease);
}
.route:hover { padding-left: 8px; }
.route__ico {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%;
  color: var(--green-deep); border: 1px solid color-mix(in oklab, var(--green) 45%, transparent);
}
.route__ico [data-lucide] { width: 20px; height: 20px; }
.route__name { font-weight: 500; font-size: 19px; font-family: var(--font-display); letter-spacing: -0.01em; }
.route__meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 7px 0; font-size: 12.5px; color: var(--text-mut); }
.route__meta span { display: inline-flex; align-items: center; gap: 5px; }
.route__meta [data-lucide] { width: 14px; height: 14px; }
.route__desc { font-size: 13.5px; color: var(--text-soft); line-height: 1.6; }
.route__link { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--accent-deep); margin-top: 9px; border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.route__link [data-lucide] { width: 14px; height: 14px; }
.route__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.route__scope { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.route__scope.is-near { color: var(--accent-deep); border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent); }
.route__scope.is-around { color: var(--text-mut); border: 1px solid var(--stroke-2); }

/* ───────── GRUPPEN ───────── */
.gruppen { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0 clamp(24px, 3vw, 44px); }
.gruppe { padding: 20px 0; border-top: 1px solid var(--stroke); }
.gruppe__name { font-weight: 500; font-size: 17px; font-family: var(--font-display); display: flex; align-items: center; gap: 9px; }
.gruppe__name [data-lucide] { width: 17px; height: 17px; color: var(--accent-deep); flex: none; }
.gruppe__desc { font-size: 13px; color: var(--text-soft); line-height: 1.6; margin-top: 7px; }
.gruppe__link { font-size: 12.5px; font-weight: 600; color: var(--accent-deep); display: inline-flex; align-items: center; gap: 5px; margin-top: 9px; border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.gruppe__link [data-lucide] { width: 13px; height: 13px; }

/* ───────── GEMEINDE ECHO ───────── */
.echo {
  display: flex; align-items: center; gap: 20px; margin-top: clamp(36px, 5vw, 56px);
  padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-lg);
  background: var(--deep); color: var(--ink-on-deep);
  transition: transform 0.3s var(--ease), box-shadow 0.4s;
}
.echo:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.echo__ico { width: 50px; height: 50px; flex: none; display: grid; place-items: center; border-radius: 50%;
  color: var(--deep); background: var(--gold); }
.echo__ico [data-lucide] { width: 24px; height: 24px; }
.echo__body { flex: 1; }
.echo__title { display: block; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.echo__text { display: block; font-size: 13.5px; color: var(--ink-on-deep-soft); margin-top: 4px; }
.echo__arrow { color: var(--gold); transition: transform 0.2s; }
.echo__arrow [data-lucide] { width: 24px; height: 24px; }
.echo:hover .echo__arrow { transform: translate(3px, -3px); }

/* ───────── KARTE ───────── */
.map-shell {
  display: grid; grid-template-columns: 1fr 300px; gap: 0;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); color: var(--text);
}
#map { height: 560px; background: var(--cream-2); }
.map-legend { list-style: none; padding: 22px; display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--stroke); }
.map-legend li { display: flex; align-items: center; gap: 11px; padding: 9px; border-radius: var(--radius-sm); cursor: pointer; transition: background 0.2s; font-size: 14px; }
.map-legend li:hover { background: var(--cream); }
.legend-pin { width: 12px; height: 12px; border-radius: 50%; flex: none; box-shadow: 0 0 0 4px color-mix(in oklab, currentColor 22%, transparent); }
.map-legend .l-name { font-weight: 600; }
.map-legend .l-sub { font-size: 12px; color: var(--text-mut); }

.leaflet-container { font-family: var(--font-body); }
.leaflet-popup-content-wrapper { background: var(--surface); color: var(--text); border-radius: var(--radius); border: 1px solid var(--stroke-2); box-shadow: var(--shadow); }
.leaflet-popup-tip { background: var(--surface); }
.leaflet-popup-content { margin: 14px 16px; font-size: 13.5px; }
.leaflet-popup-content b { font-family: var(--font-display); font-size: 15px; }
.leaflet-popup-content a { color: var(--accent-deep); font-weight: 600; }
.leaflet-bar a { background: var(--surface); color: var(--text); border-color: var(--stroke); }
.leaflet-bar a:hover { background: var(--cream); }
.map-marker { display: grid; place-items: center; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  border: 2px solid #fff2; box-shadow: 0 4px 12px rgba(0,0,0,0.5); }
.map-marker span { transform: rotate(45deg); font-size: 13px; }

/* ───────── NEWS ───────── */
.news { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.news__loading, .news__error { color: var(--text-mut); font-size: 15px; grid-column: 1/-1; line-height: 2; }
.na {
  display: flex; flex-direction: column; gap: 10px; padding: clamp(22px, 2.6vw, 30px);
  background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--radius);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.4s;
}
.na:hover { transform: translateY(-4px); border-color: var(--stroke-2); box-shadow: var(--shadow); }
.na.is-local { border-color: color-mix(in oklab, var(--accent) 40%, transparent); }
.na.is-local::before {
  content: "Hetjershausen"; align-self: flex-start;
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-deep); padding: 3px 10px; border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent);
}
.na__date { font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-mut); display: flex; align-items: center; gap: 6px; }
.na__date [data-lucide] { width: 13px; height: 13px; }
.na__title { font-size: 19px; font-weight: 500; font-family: var(--font-display); line-height: 1.3; letter-spacing: -0.01em; }
.na:hover .na__title { color: var(--accent-deep); }
.na__desc { font-size: 13.5px; color: var(--text-soft); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.na__more { margin-top: auto; align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--accent-deep); display: inline-flex; align-items: center; gap: 5px; border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.na__more [data-lucide] { width: 14px; height: 14px; }

/* ───────── FOOTER ───────── */
.footer { background: var(--deep); color: var(--ink-on-deep); padding: var(--space-section) 0 44px; }
.footer__statement {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.9rem, 4.6vw, 3.6rem); letter-spacing: -0.02em; line-height: 1.1;
  max-width: 15em; margin-bottom: clamp(48px, 7vw, 84px); text-wrap: balance;
}
.footer__statement em { font-style: italic; font-weight: 400; color: var(--gold-2); }
.footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 30px 50px; align-items: start; }
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.footer__logo {
  width: min(280px, 60vw); height: auto;
  /* Creme-Plakette: das blaue Logo braucht hellen Grund auf Tiefblau */
  background: var(--cream); padding: 16px 20px; border-radius: var(--radius);
}
.footer__tag { font-size: 13px; color: var(--ink-on-deep-soft); }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: flex-end; }
.footer__links > div { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__links a {
  font-size: 13.5px; color: var(--ink-on-deep-soft); display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 0; transition: color 0.2s;
}
.footer__links a:hover { color: var(--ink-on-deep); }
.footer__links [data-lucide] { width: 15px; height: 15px; color: var(--gold); }
.footer__note { grid-column: 1/-1; font-size: 12.5px; color: var(--ink-on-deep-mut); border-top: 1px solid var(--stroke-on-deep); padding-top: 22px; line-height: 1.7; }
.footer__note a { color: var(--ink-on-deep-soft); text-decoration: underline; text-underline-offset: 2px; }
.footer__note a:hover { color: var(--ink-on-deep); }
.footer__legal { grid-column: 1/-1; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__legal a { font-size: 13px; font-weight: 500; color: var(--ink-on-deep-soft); display: inline-flex; align-items: center; gap: 7px; transition: color 0.2s; }
.footer__legal a:hover { color: var(--ink-on-deep); }
.footer__legal [data-lucide] { width: 15px; height: 15px; color: var(--gold); }

/* ───────── REVEAL ───────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.06s; }
.reveal:nth-child(3) { transition-delay: 0.12s; }
.reveal:nth-child(4) { transition-delay: 0.18s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ───────── RESPONSIVE ───────── */
@media (max-width: 1024px) {
  .live-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "weather weather" "wiki wiki" "facts loc";
  }
  .live-card--weather { border-right: none; border-bottom: 1px solid var(--stroke); }
  .live-card--wiki { border-right: none; border-bottom: 1px solid var(--stroke); }
  .live-card--facts { border-bottom: none; border-right: 1px solid var(--stroke); }
  .map-shell { grid-template-columns: 1fr; }
  .map-legend { flex-direction: row; flex-wrap: wrap; border-left: none; border-top: 1px solid var(--stroke); }
  .map-legend li { flex: 1 1 200px; }
  .routes { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; }
  .feature, .feature--marien { grid-template-columns: 1fr; }
  .feature__media { min-height: 260px; }
  /* gestapelt: Bild immer oben, auch beim gespiegelten Marien-Band */
  .feature--marien .feature__media { order: 0; }
  .feature--marien .feature__body { order: 1; }
}
@media (max-width: 640px) {
  .live-grid { grid-template-columns: 1fr; grid-template-areas: "weather" "wiki" "facts" "loc"; }
  .live-card--facts { border-right: none; border-bottom: 1px solid var(--stroke); }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__links { justify-content: flex-start; }
  #map { height: 420px; }
}

#map, #miniloc { position: relative; }

/* ════════════ Rechtsseiten (Impressum / Datenschutz) ════════════ */
.nav__back-link { font-size: 14px; font-weight: 500; color: var(--text-soft); padding: 8px 0; transition: color 0.2s; }
.nav__back-link:hover { color: var(--text); }

.legal-main { padding: clamp(72px, 10vh, 120px) 0 60px; min-height: 72vh; }
.legal { max-width: 820px; }
.legal__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.02em; margin: 6px 0 8px; }
.legal__updated { font-size: 13px; color: var(--text-mut); margin-bottom: 26px; }
.legal h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; margin: 34px 0 10px; letter-spacing: -0.01em; }
.legal h3 { font-weight: 600; font-size: 1.02rem; color: var(--text); margin: 20px 0 6px; }
.legal p, .legal li { color: var(--text-soft); line-height: 1.75; font-size: 15px; }
.legal p { margin-bottom: 12px; }
.legal ul { margin: 4px 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 5px; }
.legal a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--accent); }
.legal strong { color: var(--text); font-weight: 600; }
.legal em { font-style: italic; }
.legal code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; background: var(--surface); border: 1px solid var(--stroke); border-radius: 6px; padding: 1px 6px; color: var(--text); }
.legal__card { background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 20px 24px; margin: 16px 0 6px; }
.legal__card p { margin-bottom: 0; }
.legal__hint { font-size: 13px; color: var(--text-soft); background: color-mix(in oklab, var(--gold) 14%, transparent); border: 1px solid color-mix(in oklab, var(--gold) 38%, transparent); border-radius: var(--radius-sm); padding: 12px 16px; line-height: 1.6; }
.legal__back { display: inline-flex; align-items: center; gap: 8px; margin-top: 38px; font-weight: 600; color: var(--accent-deep); text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.legal__back [data-lucide] { width: 18px; height: 18px; }
.legal__back:hover { gap: 11px; }

/* ════════════════════════════════════════════════════════════
   Interaktionsschicht — Editorial-Motion nach Vivid-Vorbild:
   Blur-Wort-Reveals, Münz-Medaillon im Hero, konzentrische
   Ringe mit Scroll-Bogen, Count-up-Zahlen, Cursor-Ring,
   magnetische Buttons, Menü-Stagger, Bild-Parallax.
   Regeln: Bewegung NUR bei (prefers-reduced-motion: no-preference);
   Intro-Ausblendungen NUR unter html.ix (JS setzt die Klasse im
   <head>, interactions.js blendet wieder ein — ohne JS bleibt
   alles sichtbar).
   ════════════════════════════════════════════════════════════ */

/* ── Klotzbrunnen-Medaillon im Hero-Titel (Münze, die sich dreht) ── */
.medal {
  display: inline-grid; place-items: center;
  width: 0.74em; height: 0.74em; border-radius: 50%;
  /* helle Münze mit blauem Logo (statt dunkler Scheibe mit weißem Mark) */
  background: color-mix(in oklab, var(--cream) 94%, transparent);
  border: 1px solid color-mix(in oklab, var(--gold) 60%, transparent);
  box-shadow: inset 0 0 0.12em rgba(8, 18, 30, 0.22), 0 0.04em 0.3em rgba(8, 18, 30, 0.35);
  color: var(--accent);
  vertical-align: -0.05em;
  margin-right: 0.06em;
}
.medal svg, .medal img { width: 58%; height: auto; display: block; }
@media screen and (prefers-reduced-motion: no-preference) {
  /* endlich statt infinite: WCAG 2.2.2 — die Münze dreht sich einmal
     und kommt zur Ruhe (Keyframes enden in der Ausgangslage) */
  .medal { animation: medal-turn 5s cubic-bezier(0.65, 0, 0.3, 1) 1; }
}
@keyframes medal-turn {
  0%, 22%  { transform: perspective(2.6em) rotateY(0turn); }
  50%, 72% { transform: perspective(2.6em) rotateY(0.5turn); }
  100%     { transform: perspective(2.6em) rotateY(1turn); }
}

/* ── Blur-to-Focus-Wortreveal (Headlines & Statements) ──
      „screen and": im Druck dürfen unenthüllte Worte nie unsichtbar sein */
.brw { display: inline-block; }
@media screen and (prefers-reduced-motion: no-preference) {
  .ix .brw {
    opacity: 0; filter: blur(12px); transform: translateY(0.32em);
    will-change: opacity, filter, transform;
    transition: opacity 0.85s var(--ease), filter 0.85s var(--ease), transform 0.85s var(--ease);
    transition-delay: min(calc(var(--wi, 0) * 50ms), 1100ms);
  }
  .ix .br-in .brw { opacity: 1; filter: blur(0); transform: none; }
}

/* ── Hero-Intro: Kicker & CTA schweben nach den Titelworten ein ──
      Gate ist .ixh (setzt interactions.js unmittelbar vor dem Intro
      selbst) — lädt die Datei nicht, bleibt der Hero statisch sichtbar */
@media screen and (prefers-reduced-motion: no-preference) {
  .ixh .hero__sub, .ixh .hero__cta {
    opacity: 0; transform: translateY(16px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  }
  .ixh .hero-in .hero__sub { opacity: 1; transform: none; transition-delay: 0.9s; }
  .ixh .hero-in .hero__cta {
    opacity: 1; transform: none;
    transition: opacity 0.9s var(--ease) 1.15s, transform 0.9s var(--ease) 1.15s,
                gap 0.25s var(--ease), border-color 0.25s, translate 0.5s var(--ease);
  }
  /* Tastaturfokus macht das Intro-Versteck sofort auf (WCAG 2.4.7) */
  .ixh .hero__cta:focus-visible { opacity: 1; transform: none; transition: none; }
}

/* ── Eyebrow-Linie zeichnet sich beim Einscrollen ── */
@media screen and (prefers-reduced-motion: no-preference) {
  .ixh .section__head .eyebrow::before { width: 0; transition: width 0.9s var(--ease) 0.15s; }
  .ixh .section__head.is-in .eyebrow::before { width: 34px; }
}

/* ── Konzentrische Ringe + scrollgetriebener Gold-Bogen ── */
.statement, .footer { position: relative; }
.statement > .wrap, .footer > .wrap { position: relative; z-index: 1; }
.rings { position: absolute; inset: 0; overflow: hidden; pointer-events: none; color: var(--ink-on-deep); }
.rings svg {
  position: absolute; top: 50%; right: -14%;
  width: min(88vh, 740px); height: auto; display: block;
  translate: 0 -50%;
}
.footer .rings svg { right: auto; left: -16%; }
.rings__static circle { fill: none; stroke: currentColor; stroke-opacity: 0.07; stroke-width: 1; }
.rings__arc {
  fill: none; stroke: var(--gold); stroke-opacity: 0.55;
  stroke-width: 1.5; stroke-linecap: round;
  stroke-dasharray: 2388; stroke-dashoffset: 2388;   /* ohne JS unsichtbar */
}

/* ── Zahlen ohne Zittern beim Hochzählen ── */
.stats__num { font-variant-numeric: tabular-nums; }

/* ── Bild-Parallax (Container clippt die überzeichnete Skalierung) ── */
@media (prefers-reduced-motion: no-preference) {
  .feature__media { will-change: transform; }
}

/* ── Vollflächen-Menü: Editorial-Nummern + Stagger-Reveal ── */
.nav__links { counter-reset: menu; }
.nav__links > a { counter-increment: menu; }
.nav__links > a::before {
  content: "0" counter(menu);
  /* Alternativtext-Syntax: hält die Nummer aus dem Accessible Name der
     Links heraus (Screenreader/Sprachsteuerung); alte Browser verwerfen
     nur diese zweite Deklaration und behalten die sichtbare Nummer */
  content: "0" counter(menu) / "";
  font: 600 11px/1 var(--font-body); letter-spacing: 0.16em;
  color: var(--gold); margin-right: 20px; vertical-align: 0.85em;
}
@media screen and (prefers-reduced-motion: no-preference) {
  .ix .nav__links > a, .ix .nav__links-foot {
    opacity: 0; transform: translateY(22px); filter: blur(6px);
    transition: opacity 0.55s var(--ease), transform 0.6s var(--ease), filter 0.55s var(--ease),
                color 0.2s, padding-left 0.3s var(--ease);
  }
  .ix .nav__links.is-open > a, .ix .nav__links.is-open .nav__links-foot {
    opacity: 1; transform: none; filter: none;
  }
  .ix .nav__links.is-open > a:nth-of-type(1) { transition-delay: 0.10s; }
  .ix .nav__links.is-open > a:nth-of-type(2) { transition-delay: 0.16s; }
  .ix .nav__links.is-open > a:nth-of-type(3) { transition-delay: 0.22s; }
  .ix .nav__links.is-open > a:nth-of-type(4) { transition-delay: 0.28s; }
  .ix .nav__links.is-open > a:nth-of-type(5) { transition-delay: 0.34s; }
  .ix .nav__links.is-open > a:nth-of-type(6) { transition-delay: 0.40s; }
  .ix .nav__links.is-open > a:nth-of-type(7) { transition-delay: 0.46s; }
  .ix .nav__links.is-open > a:nth-of-type(8) { transition-delay: 0.52s; }
  .ix .nav__links.is-open .nav__links-foot { transition-delay: 0.62s; }
  /* Tastaturfokus überspringt den Stagger (WCAG 2.4.7) */
  .ix .nav__links > a:focus-visible,
  .ix .nav__links-foot:focus-within {
    opacity: 1; transform: none; filter: none; transition: none;
  }
}

/* ── Magnetische Elemente: translate-Kanal, kollidiert nicht mit
      transform-Hover-Effekten ── */
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s, translate 0.5s var(--ease); }
  .nav__burger { transition: translate 0.5s var(--ease); }
}

/* ── Scroll-Expansion: Klotzbrunnen wächst beim Scrollen auf Vollbild ──
      Ohne JS/bei reduced-motion: ruhige, volle Breite im Fluss (Fallback).
      Mit .expand--live (setzt interactions.js): 240vh-Strecke, gepinnte
      Bühne, --p ∈ [0,1] treibt Breite/Höhe/Radius per calc(). */
.expand { background: var(--cream); }
.expand__stage {
  position: relative;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: var(--space-section) clamp(20px, 5vw, 48px);
  gap: clamp(24px, 4vh, 44px);
}
.expand__head { text-align: center; z-index: 1; }
.expand__eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent-deep); margin-bottom: 14px;
}
.expand__line {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.2rem, 6vw, 5rem); line-height: 1.04; letter-spacing: -0.025em;
  text-wrap: balance;
}
.expand__line em { font-style: italic; font-weight: 400; color: var(--accent-deep); }
.expand__media {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  width: min(100%, 1100px);
  box-shadow: var(--shadow-lg);
}
.expand__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.expand__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: clamp(56px, 12vh, 120px) clamp(20px, 5vw, 48px) clamp(26px, 6vh, 60px);
  color: var(--ink-on-deep); text-align: center;
  background: linear-gradient(transparent, rgba(8, 18, 30, 0.42) 42%, rgba(8, 18, 30, 0.74));
}
.expand__caption::before {
  content: ""; display: block; width: 38px; height: 1px;
  background: var(--gold-2); margin: 0 auto 14px;
}
.expand__caption-kicker {
  font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-2); margin-bottom: 10px;
}
.expand__caption-line {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.5rem, 3.2vw, 2.5rem); line-height: 1.12; letter-spacing: -0.015em;
  text-shadow: 0 2px 24px rgba(8, 20, 33, 0.5); text-wrap: balance;
}
.expand__caption-line em { font-style: italic; font-weight: 400; color: var(--gold-2); }
.expand__caption-note {
  margin-top: 10px; font-size: clamp(0.85rem, 1.4vw, 0.95rem);
  color: var(--ink-on-deep-soft); letter-spacing: 0.01em;
}

@media screen and (prefers-reduced-motion: no-preference) {
  .expand--live { height: 240vh; background: var(--cream); }
  .expand--live .expand__stage {
    position: sticky; top: 0; height: 100svh; overflow: hidden;
    padding: 0; gap: 0; justify-content: center;
  }
  .expand--live .expand__head {
    position: absolute; top: clamp(72px, 12svh, 140px); left: 0; right: 0;
    padding: 0 clamp(20px, 5vw, 48px);
    /* schnell ausblenden: das wachsende Bild schiebt sich unter die Zeile —
       Text darf nur über Creme voll sichtbar sein, nie über dem Foto */
    opacity: calc(1 - var(--p, 0) * 4);
    transform: translateY(calc(var(--p, 0) * -46px));
  }
  .expand--live .expand__media {
    --w0: 56vw; --h0: 56svh;
    width: calc(var(--w0) + (100vw - var(--w0)) * var(--p, 0));
    height: calc(var(--h0) + (100svh - var(--h0)) * var(--p, 0));
    max-width: none;
    border-radius: calc(var(--radius-lg) * (1 - var(--p, 0)));
    box-shadow: var(--shadow-lg);
    /* Startversatz nach unten: Bild beginnt unterhalb der Kopfzeile
       (kein Überlappen bei p=0) und zieht beim Wachsen in die Mitte */
    transform: translateY(calc((1 - var(--p, 0)) * clamp(56px, 9svh, 110px)));
  }
  .expand--live .expand__caption {
    opacity: calc((var(--p, 0) - 0.78) / 0.18);
    /* leichtes Aufsteigen parallel zum Einblenden (Fortschritt auf [0,1] geklemmt) */
    transform: translateY(calc((1 - min(1, max(0, (var(--p, 0) - 0.78) / 0.18))) * 22px));
  }
  @media (max-width: 768px) {
    .expand--live .expand__media { --w0: 80vw; --h0: 46svh; }
    .expand--live .expand__head { top: clamp(64px, 10svh, 120px); }
  }
}

/* ── Cursor-Ring (nur präzise Zeiger, native Cursor bleibt) ── */
@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .cursor { position: fixed; left: 0; top: 0; z-index: 10005; pointer-events: none; will-change: transform; }
  .cursor__ring {
    display: block; width: 36px; height: 36px; margin: -18px 0 0 -18px;
    border-radius: 50%;
    border: 1.5px solid color-mix(in oklab, var(--gold) 75%, transparent);
    opacity: 0;
    transition: transform 0.35s var(--ease), opacity 0.35s, background 0.35s, border-color 0.35s;
  }
  .cursor.is-on .cursor__ring { opacity: 1; }
  .cursor.is-act .cursor__ring {
    transform: scale(1.5);
    border-color: var(--gold);
    background: color-mix(in oklab, var(--gold) 14%, transparent);
  }
  .cursor.is-down .cursor__ring { transform: scale(0.8); }
}
