/* ═══════════════════════════════════════════════════════════════════
   DENNIS WILLKOMM — „Kartografie der Komplexität"
   Redesign 2026 · site.css
   Konzept: Die Seite ist eine Geländekarte. Durch dunkles Terrain
   führt ein leuchtender Weg in den CI-Farben; Abschnitte sind
   Wegmarken, Meta-Informationen sprechen die Sprache der Karte
   (Mono, Koordinaten, Legende).
   CI-Farben unverändert: Cyan #38ebff · Electric #5f73ff ·
   Purple #6b58d7 · Magenta #c85acb · Pink #ee7ce9 · Grund #09111d
   ═══════════════════════════════════════════════════════════════════ */

/* ── Lokale Fonts (variable, DSGVO-konform selbst gehostet) ── */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("./fonts/fraunces-var-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("./fonts/fraunces-var-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("./fonts/instrument-sans-var-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("./fonts/instrument-sans-var-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Spline Sans Mono";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("./fonts/spline-sans-mono-var-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Spline Sans Mono";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("./fonts/spline-sans-mono-var-italic.woff2") format("woff2");
}

/* ══════════════════════════════════════════════════════════════
   TOKENS — Dark (Default)
   Channel-Variablen (R G B) erlauben rgb(var(--x) / alpha).
   Light-Theme definiert sie zentral um. Keine Literale im Code!
   ══════════════════════════════════════════════════════════════ */
:root {
  color-scheme: dark;

  /* Channels */
  --ink: 230 238 255;
  --ink-muted: 171 196 255;
  --glass-ink: 255 255 255;
  --panel-deep: 8 16 31;
  --panel-soft: 13 28 52;
  --shadow-ink: 0 0 0;
  --brand-cyan: 56 235 255;
  --brand-electric: 95 115 255;
  --brand-purple: 107 88 215;
  --brand-magenta: 200 90 203;
  --brand-pink: 238 124 233;

  /* Basis */
  --color-bg: #09111d;
  --color-text: #f2f6ff;
  --color-soft-text: rgb(230 238 255 / 0.76);
  --color-line: rgb(171 196 255 / 0.16);

  /* Akzente (CI) */
  --color-cyan: #38ebff;
  --color-electric: #5f73ff;
  --color-purple: #6b58d7;
  --color-magenta: #c85acb;
  --color-pink: #ee7ce9;

  /* Gradients — Hero-Claim ist CI, unverändert */
  --gradient-hero-claim: linear-gradient(90deg, #ffffff 0%, #9feeff 24%, #7b8fff 52%, #e785e9 100%);
  --gradient-brand: linear-gradient(90deg, #4bbef5 0%, #5f73ff 32%, #7b5fe2 66%, #c85acb 100%);
  --gradient-route: linear-gradient(180deg, #38ebff 0%, #5f73ff 38%, #6b58d7 64%, #c85acb 100%);
  --gradient-bg: linear-gradient(180deg, #0b1426 0%, #0a1221 34%, #09111e 66%, #070c16 100%);
  --gradient-card: linear-gradient(150deg, rgb(var(--panel-soft) / 0.82), rgb(var(--panel-deep) / 0.92));

  /* Typo */
  --font-display: "Fraunces", "Georgia", "Times New Roman", serif;
  --font-body: "Instrument Sans", "Segoe UI", "Helvetica Neue", sans-serif;
  --font-mono: "Spline Sans Mono", ui-monospace, "SF Mono", "Consolas", monospace;

  /* Skala */
  --t-hero: clamp(2.75rem, 6.6vw, 5.9rem);
  --t-h2: clamp(2.05rem, 4vw, 3.35rem);
  --t-h3: clamp(1.3rem, 2.1vw, 1.65rem);
  --t-lede: clamp(1.08rem, 1.5vw, 1.3rem);
  --t-body: 1.05rem;
  --t-mono: 0.76rem;

  /* Fläche & Tiefe */
  --shadow-deep: 0 40px 120px rgb(var(--shadow-ink) / 0.45);
  --shadow-card: 0 18px 60px rgb(var(--shadow-ink) / 0.35);
  --glass-border: rgb(var(--glass-ink) / 0.09);
  --glass-border-strong: rgb(var(--glass-ink) / 0.16);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;

  /* Terrain-Canvas (JS liest diese Werte) */
  --terrain-alpha: 1;

  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

/* ══════════════════════════════════════════════════════════════
   LIGHT THEME — dieselbe Karte bei Tageslicht: Porzellan,
   Tinten-Navy, Brand-Akzente abgedunkelt (bewährte Werte).
   ══════════════════════════════════════════════════════════════ */
[data-theme="light"] {
  color-scheme: light;

  --ink: 30 41 72;
  --ink-muted: 60 76 122;
  --glass-ink: 26 46 96;
  --panel-deep: 252 253 255;
  --panel-soft: 233 239 250;
  --shadow-ink: 84 104 156;
  --brand-cyan: 7 132 164;
  --brand-electric: 70 88 224;
  --brand-purple: 94 74 200;
  --brand-magenta: 164 58 168;
  --brand-pink: 196 74 190;

  --color-bg: #eef1f8;
  --color-text: #18223c;
  --color-soft-text: rgb(30 41 72 / 0.82);
  --color-line: rgb(60 76 122 / 0.22);

  --color-cyan: #0a87a8;
  --color-electric: #4658e0;
  --color-purple: #5e4ac8;
  --color-magenta: #a43aa8;
  --color-pink: #c44abe;

  --gradient-hero-claim: linear-gradient(90deg, #1d2a52 0%, #0a87a8 30%, #4658e0 60%, #a43aa8 100%);
  --gradient-brand: linear-gradient(90deg, #1a7fc2 0%, #4658e0 32%, #6a4fd0 66%, #a43aa8 100%);
  --gradient-route: linear-gradient(180deg, #0a87a8 0%, #4658e0 38%, #5e4ac8 64%, #a43aa8 100%);
  --gradient-bg: linear-gradient(180deg, #f8fafd 0%, #f2f5fa 34%, #eef1f8 66%, #e9edf5 100%);

  --shadow-deep: 0 40px 120px rgb(var(--shadow-ink) / 0.20);
  --shadow-card: 0 18px 48px rgb(var(--shadow-ink) / 0.14);
  --glass-border: rgb(var(--glass-ink) / 0.12);
  --glass-border-strong: rgb(var(--glass-ink) / 0.22);

  --terrain-alpha: 0.55;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.75;
  color: var(--color-text);
  background: var(--color-bg);
  background-image: var(--gradient-bg);
  background-attachment: fixed;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Feines Korn — gibt der Fläche Material. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  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.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}
[data-theme="light"] body::before { opacity: 0.035; }

::selection {
  background: rgb(var(--brand-cyan) / 0.28);
  color: var(--color-text);
}

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

a { color: inherit; }

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

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.7rem 1.2rem;
  background: var(--color-cyan);
  color: #07101b;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.15s ease;
}
[data-theme="light"] .skip-link { color: #ffffff; }
.skip-link:focus { top: 0; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

main { position: relative; z-index: 1; }

/* ══════════════════════════════════════════════════════════════
   TYPOGRAFIE
   ══════════════════════════════════════════════════════════════ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 480;
  line-height: 1.08;
  letter-spacing: -0.012em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: var(--t-hero); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); font-weight: 520; line-height: 1.2; }

h1 em, h2 em, h3 em, .accent-i {
  font-style: italic;
  font-weight: 430;
  letter-spacing: 0;
}

p { margin: 0 0 1.1em; }

.lede {
  font-size: var(--t-lede);
  line-height: 1.65;
  color: var(--color-soft-text);
  max-width: 38em;
  text-wrap: pretty;
}

.soft { color: var(--color-soft-text); }

/* Mono-Register: Wegmarken, Koordinaten, Meta */
.mono, .eyebrow, .coords {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  font-weight: 420;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65em;
  color: rgb(var(--ink-muted) / 0.9);
  margin: 0 0 1.4rem;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  rotate: 45deg;
  background: linear-gradient(135deg, var(--color-cyan), var(--color-electric));
  box-shadow: 0 0 12px rgb(var(--brand-cyan) / 0.55);
  flex: none;
  transition: box-shadow 0.5s ease, scale 0.5s ease;
}
/* Aktive Etappe: der Wegmarken-Diamant leuchtet auf, solange die Etappe im
   Blick ist — bei jedem Vorbeiscrollen, ohne Text oder Karten neu zu animieren. */
.wp .eyebrow { transition: color 0.5s ease; }
.wp.is-here .eyebrow { color: rgb(var(--ink-muted) / 1); }
.wp.is-here .eyebrow::before {
  box-shadow: 0 0 18px rgb(var(--brand-cyan) / 0.95), 0 0 4px rgb(var(--brand-cyan) / 0.9);
  scale: 1.3;
}

/* Gradient-Text (Hero-Claim — CI) */
.claim-gradient {
  background: var(--gradient-hero-claim);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

hr.rule {
  border: 0;
  height: 1px;
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--color-line) 18%, var(--color-line) 82%, transparent);
}

/* ══════════════════════════════════════════════════════════════
   BUTTONS & TEXTLINKS
   ══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.95em 1.7em;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 480;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  color: #07101b;
  background: linear-gradient(100deg, var(--color-cyan), var(--color-electric) 55%, var(--color-magenta) 120%);
  box-shadow: 0 10px 34px rgb(var(--brand-electric) / 0.35), 0 2px 10px rgb(var(--brand-cyan) / 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgb(var(--brand-electric) / 0.45), 0 4px 14px rgb(var(--brand-cyan) / 0.4);
}
[data-theme="light"] .btn-primary { color: #ffffff; }

.btn-ghost {
  color: var(--color-text);
  border-color: var(--glass-border-strong);
  background: rgb(var(--glass-ink) / 0.03);
}
.btn-ghost:hover {
  border-color: rgb(var(--brand-cyan) / 0.55);
  background: rgb(var(--brand-cyan) / 0.07);
  transform: translateY(-2px);
}

.btn .arr { transition: translate 0.25s ease; }
.btn:hover .arr { translate: 4px 0; }

/* Textlink mit Wegpfeil */
.route-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-cyan);
}
.route-link .arr { transition: translate 0.25s ease; }
.route-link:hover .arr { translate: 5px 0; }
.route-link:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* Fließtext-Links */
.prose a, .lede a, p a {
  color: var(--color-cyan);
  text-decoration: underline;
  text-decoration-color: rgb(var(--brand-cyan) / 0.4);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s ease;
}
.prose a:hover, .lede a:hover, p a:hover { text-decoration-color: var(--color-cyan); }

/* ══════════════════════════════════════════════════════════════
   HEADER & NAVIGATION
   ══════════════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  transition: border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}
/* Schleier als ::before statt auf dem Header selbst: backdrop-filter auf einem
   Vorfahren macht ihn zum Containing Block für position:fixed-Kinder — das
   mobile Nav-Panel würde dann im 64px-Header gefangen (iOS-Bug). */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(var(--panel-deep) / 0.72);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.site-header.is-scrolled::before {
  opacity: 1;
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
}
.site-header.is-scrolled {
  border-bottom-color: var(--glass-border);
}

.site-header__bar {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0.85rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  margin-right: auto;
}
.brand img { width: 40px; height: 40px; display: block; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 520;
  letter-spacing: 0.01em;
  color: var(--color-text);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.7rem);
}
.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 440;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgb(var(--ink) / 0.78);
  padding: 0.4rem 0.1rem;
  position: relative;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--color-text); }
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--color-cyan), var(--color-electric));
  transition: right 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.site-nav a:hover::after { right: 0; }
.site-nav a[aria-current="page"] {
  color: var(--color-cyan);
}
.site-nav a[aria-current="page"]::before {
  content: "◆ ";
  font-size: 0.62em;
  vertical-align: 0.22em;
}

/* Theme-Toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--glass-border-strong);
  background: rgb(var(--glass-ink) / 0.04);
  color: rgb(var(--ink) / 0.85);
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.theme-toggle:hover { border-color: rgb(var(--brand-cyan) / 0.5); color: var(--color-cyan); transform: rotate(15deg); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* Burger (mobil) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: none;
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--color-text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ══════════════════════════════════════════════════════════════
   HERO — Terrain-Canvas + Claim
   ══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: clip;
  isolation: isolate;
}
.hero--sub { min-height: clamp(480px, 62svh, 640px); }

.hero__terrain {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: var(--terrain-alpha);
}

/* sanfter Übergang vom Hero in den Seitenfluss */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 22%;
  z-index: -1;
  background: linear-gradient(180deg, transparent, var(--color-bg));
  pointer-events: none;
}

.hero__inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(7rem, 16vh, 10rem) var(--gutter) clamp(4.5rem, 10vh, 7rem);
}

.hero h1 {
  max-width: 12.5em;
  margin-bottom: 0.5em;
}

.hero__lede { margin-bottom: 2.4rem; }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

/* Koordinaten-Zeile am Hero-Fuß */
.hero__meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
}
.hero__meta-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 1.1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: 1px solid rgb(var(--glass-ink) / 0.06);
}
.coords { color: rgb(var(--ink-muted) / 0.66); letter-spacing: 0.14em; }
.coords b { font-weight: 560; color: rgb(var(--ink-muted) / 0.9); }
[data-theme="light"] .coords { color: rgb(var(--ink-muted) / 0.88); }

/* Scroll-Cue: fallende Linie */
.scroll-cue {
  position: relative;
  width: 1px;
  height: 44px;
  overflow: hidden;
  background: rgb(var(--ink-muted) / 0.18);
  flex: none;
}
.scroll-cue::after {
  content: "";
  position: absolute;
  left: 0; top: -50%;
  width: 100%;
  height: 50%;
  background: linear-gradient(180deg, transparent, var(--color-cyan));
  animation: cueDrop 2.2s cubic-bezier(0.6, 0, 0.3, 1) infinite;
}
@keyframes cueDrop {
  0% { top: -50%; }
  70%, 100% { top: 110%; }
}

/* Hero-Intro-Choreografie */
.hero .intro {
  opacity: 0;
  transform: translateY(26px);
  animation: introRise 1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: var(--intro-d, 0s);
}
@keyframes introRise {
  to { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════════
   ROUTE — die durchgehende Weg-Linie mit Wegmarken
   ══════════════════════════════════════════════════════════════ */
.route-rail {
  position: fixed;
  top: 0;
  bottom: 0;
  left: max(1.1rem, calc((100vw - var(--wrap)) / 2 - 2.6rem));
  width: 2px;
  z-index: 5;
  background: rgb(var(--ink-muted) / 0.12);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.route-rail.is-on { opacity: 1; }
.route-rail__fill {
  position: absolute;
  inset: 0;
  transform-origin: top;
  transform: scaleY(0);
  background: var(--gradient-route);
  box-shadow: 0 0 14px rgb(var(--brand-electric) / 0.5);
}
/* Wandernder Lichtpunkt — gleiche Bildsprache wie auf der Höhenkarte im Hero:
   kleiner weißer Kern mit farbigem Glow statt Diamant */
.route-rail__dot {
  position: absolute;
  left: 50%;
  top: 0;
  width: 5px;
  height: 5px;
  translate: -50% -50%;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.95);
  box-shadow:
    0 0 8px rgb(var(--brand-cyan) / 0.9),
    0 0 22px rgb(var(--brand-electric) / 0.65);
}
[data-theme="light"] .route-rail__dot {
  background: var(--color-electric);
  box-shadow:
    0 0 8px rgb(var(--brand-electric) / 0.75),
    0 0 18px rgb(var(--brand-cyan) / 0.55);
}
/* Wegmarken als Etappenorte: hohle Stationen, füllen sich beim Passieren */
.route-rail__mark {
  position: absolute;
  left: 50%;
  width: 7px;
  height: 7px;
  translate: -50% -50%;
  border-radius: 50%;
  border: 1px solid rgb(var(--ink-muted) / 0.4);
  background: var(--color-bg);
  transition: border-color 0.45s ease, background-color 0.45s ease, box-shadow 0.45s ease, scale 0.45s ease;
}
.route-rail__mark.is-passed {
  border-color: var(--color-electric);
  background: var(--color-electric);
}
.route-rail__mark.is-here {
  border-color: var(--color-cyan);
  background: var(--color-bg);
  box-shadow: 0 0 10px rgb(var(--brand-cyan) / 0.7), inset 0 0 3px rgb(var(--brand-cyan) / 0.9);
  scale: 1.3;
}

/* Wegmarken-Abschnitte */
.wp {
  position: relative;
  padding-block: clamp(4.5rem, 11vh, 8rem);
}
.wp-head { margin-bottom: clamp(1.6rem, 4vh, 2.8rem); }
.wp-head .eyebrow { margin-bottom: 1.1rem; }
.wp-head h2 { max-width: 15em; }

/* ══════════════════════════════════════════════════════════════
   PANELS, KARTEN, TÜREN
   ══════════════════════════════════════════════════════════════ */
.panel {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  background: var(--gradient-card);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
}

/* Die drei Wege (Startseite) + generische Angebots-Karten */
.doors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
}

.door {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: clamp(1.6rem, 2.6vw, 2.3rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  background: var(--gradient-card);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: clip;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}
/* Kontur-Ornament: angedeutete Höhenlinien je Tür */
.door::before {
  content: "";
  position: absolute;
  inset: -40% -40% auto auto;
  width: 75%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgb(var(--door-c, var(--brand-cyan)) / 0.16);
  box-shadow:
    0 0 0 28px rgb(var(--door-c, var(--brand-cyan)) / 0.05) inset,
    0 0 0 56px rgb(var(--door-c, var(--brand-cyan)) / 0.04) inset,
    0 0 0 86px rgb(var(--door-c, var(--brand-cyan)) / 0.03) inset;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  pointer-events: none;
}
.door:hover::before { transform: scale(1.12) rotate(6deg); }
.door:hover {
  transform: translateY(-6px);
  border-color: rgb(var(--door-c, var(--brand-cyan)) / 0.45);
  box-shadow: 0 24px 70px rgb(var(--shadow-ink) / 0.5), 0 0 40px rgb(var(--door-c, var(--brand-cyan)) / 0.12);
}
.door--cyan { --door-c: var(--brand-cyan); }
.door--purple { --door-c: var(--brand-purple); }
.door--magenta { --door-c: var(--brand-magenta); }

.door__no {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: rgb(var(--door-c, var(--brand-cyan)) / 0.95);
}
/* Light: Brand-Ton je Tür abgedunkelt, bis AA-Kontrast erreicht ist */
[data-theme="light"] .door__no { color: rgb(var(--door-c-aa, var(--door-c, var(--brand-cyan))) / 1); }
[data-theme="light"] .door--cyan { --door-c-aa: 6 106 132; }
[data-theme="light"] .door--purple { --door-c-aa: 76 59 162; }
[data-theme="light"] .door--magenta { --door-c-aa: 132 47 135; }
.door h3 { margin: 0; }
.door p { margin: 0; color: var(--color-soft-text); font-size: 0.98rem; }
.door .route-link { margin-top: auto; padding-top: 1rem; }

/* Feature-Split: Text + Medium nebeneinander */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split--rev > :first-child { order: 2; }
.split--rev > :last-child { order: 1; }
.split--top { align-items: start; }

/* Listen mit Wegmarken-Punkten */
.marklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.marklist li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--color-soft-text);
}
.marklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  rotate: 45deg;
  background: linear-gradient(135deg, var(--color-cyan), var(--color-electric));
}
.marklist li strong { color: var(--color-text); font-weight: 560; }

/* ══════════════════════════════════════════════════════════════
   FOTOS — „Feldaufnahmen"
   ══════════════════════════════════════════════════════════════ */
.photo {
  position: relative;
  border-radius: var(--radius-md);
  overflow: clip;
  border: 1px solid var(--glass-border-strong);
  box-shadow: var(--shadow-card);
  background: rgb(var(--panel-deep) / 0.6);
}
.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.02);
  transition: filter 0.5s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.photo:hover img { filter: saturate(1.05); transform: scale(1.025); }
.photo figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.7rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.85);
  background: linear-gradient(180deg, transparent, rgb(0 0 0 / 0.62));
  display: flex;
  align-items: center;
  gap: 0.6em;
}
.photo figcaption::before {
  content: "⌖";
  font-size: 1.05em;
  color: #38ebff;
}
figure.photo { margin: 0; }

/* ══════════════════════════════════════════════════════════════
   BUCH
   ══════════════════════════════════════════════════════════════ */
.book-cover {
  position: relative;
  width: min(320px, 70%);
  margin-inline: auto;
  border-radius: 6px;
  transform: perspective(1200px) rotateY(-14deg) rotateX(2deg);
  box-shadow:
    -24px 30px 70px rgb(var(--shadow-ink) / 0.55),
    0 0 60px rgb(var(--brand-purple) / 0.25);
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.6s ease;
}
.book-cover img { display: block; width: 100%; border-radius: 6px; }
.book-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: linear-gradient(105deg, rgb(255 255 255 / 0.14) 0%, transparent 32%);
  pointer-events: none;
}
.book-cover:hover { transform: perspective(1200px) rotateY(-5deg) rotateX(1deg); }

.bookfacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  margin: 1.4rem 0;
  padding: 0;
  list-style: none;
}
.bookfacts li {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(var(--ink-muted) / 0.85);
}

/* ══════════════════════════════════════════════════════════════
   ZITATE & STIMMEN
   ══════════════════════════════════════════════════════════════ */
.pull-quote {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-style: italic;
  font-weight: 430;
  line-height: 1.35;
  letter-spacing: 0;
  margin: 0;
  padding-left: clamp(1.6rem, 4vw, 2.8rem);
  text-wrap: balance;
}
.pull-quote::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;
  bottom: 0.25em;
  width: 2px;
  background: var(--gradient-route);
  box-shadow: 0 0 12px rgb(var(--brand-electric) / 0.4);
}
.pull-quote footer {
  margin-top: 1.2rem;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(var(--ink-muted) / 0.8);
}

.voices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
.voice {
  padding: clamp(1.4rem, 2.4vw, 2rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  background: var(--gradient-card);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.voice blockquote {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--color-soft-text);
}
.voice > .mono { letter-spacing: 0.15em; }
.voice cite {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgb(var(--ink-muted) / 0.8);
  margin-top: auto;
}

/* ══════════════════════════════════════════════════════════════
   ARTIKEL-LISTE & PROSE
   ══════════════════════════════════════════════════════════════ */
.postlist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.postlist li { border-bottom: 1px solid var(--color-line); }
.postlist a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.15rem 0.4rem;
  text-decoration: none;
  transition: background-color 0.2s ease, padding-left 0.25s ease;
  border-radius: var(--radius-sm);
}
.postlist a:hover { background: rgb(var(--glass-ink) / 0.035); padding-left: 0.9rem; }
.postlist .t {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 480;
  line-height: 1.3;
}
.postlist a:hover .t { color: var(--color-cyan); }
.postlist .m {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgb(var(--ink-muted) / 0.7);
  white-space: nowrap;
}

.prose {
  max-width: 46em;
  font-size: 1.08rem;
  line-height: 1.85;
}
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose blockquote {
  margin: 2em 0;
  padding: 0.2em 0 0.2em 1.4em;
  border-left: 2px solid;
  border-image: var(--gradient-route) 1;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.18em;
  line-height: 1.55;
  color: var(--color-soft-text);
}
.prose ul, .prose ol { padding-left: 1.3em; margin: 1.2em 0; }
.prose li { margin-bottom: 0.5em; }
.prose li::marker { color: var(--color-cyan); }
.prose img { border-radius: var(--radius-md); }
.prose strong { font-weight: 600; color: var(--color-text); }
.prose figure { margin: 2em 0; }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin-bottom: 2.2rem;
}

/* ══════════════════════════════════════════════════════════════
   HERO-FLAG (Pilot-Hinweis) & FRP-PROBIERBLOCK
   ══════════════════════════════════════════════════════════════ */
.hero-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  margin-bottom: 1.6rem;
  padding: 0.5em 1em 0.5em 0.55em;
  border-radius: 999px;
  border: 1px solid rgb(var(--brand-cyan) / 0.3);
  background: rgb(var(--brand-cyan) / 0.06);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--color-text);
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.hero-flag:hover { border-color: rgb(var(--brand-cyan) / 0.65); background: rgb(var(--brand-cyan) / 0.1); }
.hero-flag .tag {
  padding: 0.35em 0.8em;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--color-cyan), var(--color-electric));
  color: #07101b;
  font-weight: 560;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.62rem;
}
[data-theme="light"] .hero-flag .tag { color: #ffffff; }
.hero-flag .arr { color: var(--color-cyan); }

.frp-try {
  padding: clamp(1.6rem, 3vw, 2.4rem);
}
.frp-try__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-cyan);
  margin-bottom: 1rem;
}
.frp-try__situation { font-size: 1.05rem; line-height: 1.7; color: var(--color-soft-text); }
.frp-try__situation strong { color: var(--color-text); }
.frp-opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin-top: 1.4rem;
}
.frp-opt {
  text-align: left;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: rgb(var(--glass-ink) / 0.03);
  color: var(--color-soft-text);
  font-family: var(--font-body);
  font-size: 0.93rem;
  line-height: 1.55;
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}
.frp-opt:hover {
  border-color: rgb(var(--brand-cyan) / 0.5);
  background: rgb(var(--brand-cyan) / 0.05);
  transform: translateY(-2px);
}
.frp-result {
  margin-top: 1.4rem;
  padding: 1.5rem 1.6rem;
  border-radius: var(--radius-md);
  border: 1px solid rgb(var(--brand-electric) / 0.35);
  background:
    radial-gradient(120% 140% at 0% 0%, rgb(var(--brand-electric) / 0.1), transparent 60%),
    rgb(var(--panel-deep) / 0.65);
}
.frp-result__kicker {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(var(--ink-muted) / 0.8);
  margin: 0 0 0.5rem;
}
.frp-result h4 {
  font-size: 1.45rem;
  margin: 0 0 0.2rem;
}
.frp-result__lead {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-cyan);
  margin: 0 0 1rem;
}
.frp-result__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.18rem;
  line-height: 1.5;
  margin: 0 0 1.1rem;
}
.frp-result dl { margin: 0; display: grid; gap: 0.55rem; }
.frp-result dt {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgb(var(--ink-muted) / 0.75);
}
.frp-result dd { margin: 0 0 0.4rem; font-size: 0.95rem; color: var(--color-soft-text); }
.frp-result__note { margin: 1.1rem 0 0; font-size: 0.85rem; color: rgb(var(--ink) / 0.6); }
.frp-again {
  margin-top: 1.2rem;
}
[hidden] { display: none !important; }

@media (max-width: 700px) {
  .frp-opts { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   FAKTEN-BAND (Zahlen ohne Protz)
   ══════════════════════════════════════════════════════════════ */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--color-line);
  border-block: 1px solid var(--color-line);
}
.fact {
  background: var(--color-bg);
  padding: 1.6rem 1.4rem;
}
.fact b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 480;
  line-height: 1.1;
  margin-bottom: 0.3rem;
}
.fact span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgb(var(--ink-muted) / 0.75);
}

/* ══════════════════════════════════════════════════════════════
   CTA-SCHLUSSBLOCK („Nächste Etappe")
   ══════════════════════════════════════════════════════════════ */
.outro {
  position: relative;
  text-align: center;
  padding: clamp(4rem, 10vh, 7rem) var(--gutter);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  background:
    radial-gradient(60% 120% at 50% 0%, rgb(var(--brand-electric) / 0.14), transparent 70%),
    var(--gradient-card);
  overflow: clip;
}
.outro h2 { max-width: 16em; margin-inline: auto; }
.outro .lede { margin-inline: auto; margin-bottom: 2.2rem; }
.outro .hero__cta { justify-content: center; }

/* ══════════════════════════════════════════════════════════════
   FOOTER — die Legende der Karte
   ══════════════════════════════════════════════════════════════ */
.site-footer {
  position: relative;
  margin-top: clamp(4rem, 10vh, 7rem);
  border-top: 1px solid var(--color-line);
  background: linear-gradient(180deg, transparent, rgb(var(--panel-deep) / 0.55));
  font-size: 0.95rem;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gradient-brand);
  opacity: 0.5;
}
.footer-grid {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(2.6rem, 6vh, 4rem) var(--gutter) 2rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(1.6rem, 4vw, 3rem);
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 480;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgb(var(--ink-muted) / 0.7);
  margin: 0 0 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-col a { text-decoration: none; color: var(--color-soft-text); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--color-cyan); }
.footer-brand p { color: var(--color-soft-text); font-size: 0.95rem; max-width: 26em; }
.footer-brand .brand { margin: 0 0 1rem; }
.footer-bottom {
  border-top: 1px solid var(--color-line);
}
.footer-bottom__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 1.1rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(var(--ink-muted) / 0.6);
}
.footer-bottom__inner a { color: inherit; text-decoration: none; }
.footer-bottom__inner a:hover { color: var(--color-cyan); }

/* ══════════════════════════════════════════════════════════════
   KONTAKT-FAB (Concierge) — bewährtes Muster, neues Kleid
   ══════════════════════════════════════════════════════════════ */
.fab-contact {
  position: fixed;
  right: clamp(1rem, 3vw, 1.6rem);
  bottom: clamp(1rem, 3vh, 1.6rem);
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.9rem;
  opacity: 0;
  translate: 0 14px;
  transition: opacity 0.5s ease, translate 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
  pointer-events: none;
}
.fab-contact.is-visible { opacity: 1; translate: 0 0; pointer-events: auto; }

.fab-contact__fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #07101b;
  background: linear-gradient(135deg, var(--color-cyan), var(--color-electric) 70%);
  box-shadow: 0 10px 30px rgb(var(--brand-electric) / 0.45);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s ease;
  animation: fabPulse 3.2s ease-in-out infinite;
}
[data-theme="light"] .fab-contact__fab { color: #ffffff; }
.fab-contact__fab:hover { transform: scale(1.07); box-shadow: 0 14px 40px rgb(var(--brand-electric) / 0.55); }
.fab-contact__fab svg { width: 24px; height: 24px; }
.fab-contact .fab-icon-close { display: none; }
.fab-contact.is-open .fab-icon-close { display: block; }
.fab-contact.is-open .fab-icon-chat { display: none; }
.fab-contact.is-open .fab-contact__fab { animation: none; }
@keyframes fabPulse {
  0%, 100% { box-shadow: 0 10px 30px rgb(var(--brand-electric) / 0.45), 0 0 0 0 rgb(var(--brand-cyan) / 0.35); }
  50% { box-shadow: 0 10px 30px rgb(var(--brand-electric) / 0.45), 0 0 0 12px rgb(var(--brand-cyan) / 0); }
}

.fab-contact__tease {
  position: absolute;
  right: 68px;
  bottom: 14px;
  padding: 0.55em 1em;
  border-radius: 999px;
  background: rgb(var(--panel-soft) / 0.92);
  border: 1px solid var(--glass-border-strong);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
  color: var(--color-text);
  opacity: 0;
  translate: 8px 0;
  transition: opacity 0.4s ease, translate 0.4s ease;
  pointer-events: none;
}
.fab-contact.is-teasing .fab-contact__tease { opacity: 1; translate: 0 0; }

.fab-contact__panel {
  width: min(340px, calc(100vw - 2.5rem));
  padding: 1.4rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border-strong);
  background: rgb(var(--panel-deep) / 0.92);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-deep);
  display: none;
  flex-direction: column;
  gap: 0.9rem;
}
.fab-contact.is-open .fab-contact__panel { display: flex; animation: introRise 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
.fab-contact__head { display: flex; align-items: center; gap: 0.85rem; }
.fab-contact__portrait { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 1px solid var(--glass-border-strong); }
.fab-contact__name { margin: 0; font-family: var(--font-display); font-size: 1.15rem; font-weight: 520; }
.fab-contact__hint { margin: 0; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgb(var(--ink-muted) / 0.75); }
.fab-contact__copy { margin: 0; font-size: 0.92rem; line-height: 1.6; color: var(--color-soft-text); }
.fab-contact__book, .fab-contact__mail {
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.85em 1.1em;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.fab-contact__book {
  color: #07101b;
  background: linear-gradient(100deg, var(--color-cyan), var(--color-electric));
  border: none;
  font-weight: 550;
}
[data-theme="light"] .fab-contact__book { color: #ffffff; }
.fab-contact__book:hover { transform: translateY(-1px); }
.fab-contact__mail {
  color: var(--color-text);
  border-color: var(--glass-border-strong);
}
.fab-contact__mail:hover { border-color: rgb(var(--brand-cyan) / 0.5); }
.fab-contact__book svg, .fab-contact__mail svg { width: 17px; height: 17px; flex: none; }

/* ══════════════════════════════════════════════════════════════
   REVEALS & VIEW TRANSITIONS
   ══════════════════════════════════════════════════════════════ */
/* Versteckt wird nur, wenn JS läuft und den Observer gestartet hat
   (html.has-reveal). Ohne JS bleibt alles sichtbar. */
html.has-reveal .reveal {
  opacity: 0;
  transform: translateY(26px);
}
html.has-reveal .reveal.in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0s);
}

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut 0.28s ease both; }
::view-transition-new(root) { animation: vtIn 0.34s ease both; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(10px); } }

/* QA-Modus (?static=1): alle Endzustände sofort, kein Smooth-Scroll */
html.static { scroll-behavior: auto; }
html.static .reveal, html.static .intro {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1330px) {
  .route-rail { left: 1.1rem; }
}

@media (max-width: 980px) {
  .doors { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split--rev > :first-child { order: 0; }
  .split--rev > :last-child { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 840px) {
  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 82vw);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.6rem;
    padding: 5.5rem 2.2rem 2rem;
    background: rgb(var(--panel-deep) / 0.96);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--glass-border);
    transform: translateX(105%);
    transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
    z-index: 98;
  }
  .site-nav.is-open { transform: translateX(0); }
  .site-nav a { font-size: 0.9rem; }
  .nav-toggle { display: flex; z-index: 99; }
  .theme-toggle { margin-left: auto; }
  .brand { margin-right: 0; }
  .site-header__bar { gap: 0.8rem; }

  .route-rail { display: none; }
  .hero__meta-inner { justify-content: center; }
  .hero__meta .coords:last-child { display: none; }
}

@media (max-width: 560px) {
  :root { --t-body: 1rem; }
  .hero__inner { padding-top: 6.5rem; }
  /* Lange Einzelwörter (z.B. „Datenschutzerklärung") sauber trennen statt abschneiden */
  .hero h1 { hyphens: auto; overflow-wrap: break-word; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .facts { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .postlist a { grid-template-columns: 1fr; gap: 0.3rem; }
  .brand__name { font-size: 1.05rem; }
}

/* ══════════════════════════════════════════════════════════════
   REDUCED MOTION — Karte steht still, alles bleibt lesbar
   ══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.has-reveal .reveal { opacity: 1; transform: none; }
  .hero .intro { opacity: 1; transform: none; animation: none; }
  .scroll-cue::after, .fab-contact__fab { animation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
