/* =============================================================
   damble · core design system — "Nachtstudio" edition 2026
   Dunkles Fundament, elektrisches Blau als Marke,
   je Bereich genau eine Akzentfarbe.

   Geladen von: index, solar, games, garage (+ Fahrzeugseiten),
   umfragen, disg, iq.
   Vorgänger: assets/damble.css (helles Papier-System, archiviert)
   ============================================================= */

:root {
  /* ── Flächen ─────────────────────────────────────── */
  --bg-0: #05070c;          /* Seite, fast schwarz */
  --bg-1: #080b13;          /* Sektion */
  --bg-2: #0c1120;          /* Karte */
  --bg-3: #121a2e;          /* Karte hover / erhoben */
  --bg-glass: rgba(14, 20, 36, .62);

  /* ── Text ────────────────────────────────────────── */
  --txt-0: #eef3ff;         /* primär */
  --txt-1: #a7b3cd;         /* sekundär */
  --txt-2: #7f8ba6;         /* gedämpft — hält AA auch auf Kartenflächen */

  /* ── Linien ──────────────────────────────────────── */
  --line: rgba(138, 170, 255, .13);
  --line-2: rgba(138, 170, 255, .26);
  --line-soft: rgba(138, 170, 255, .07);

  /* ── Marke: elektrisches Blau ────────────────────── */
  --blue: #3d7bff;
  --blue-bright: #74a6ff;
  --blue-deep: #1b47b8;
  --blue-glow: rgba(61, 123, 255, .34);
  --blue-wash: rgba(61, 123, 255, .10);

  /* ── Bereichsakzente (pro Seite via --accent gesetzt) */
  --acc-solar: #22e39a;
  --acc-games: #ff3d7f;
  --acc-garage: #ff9d3c;
  --acc-polls: #22c9ff;
  --acc-person: #a97bff;
  --acc-iq: #c8ff4a;
  --acc-finance: #ffd45b;

  --accent: var(--blue-bright);
  --accent-glow: rgba(116, 166, 255, .3);

  /* ── Status ──────────────────────────────────────── */
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;

  /* ── Typografie ──────────────────────────────────── */
  --font-display: 'Archivo', 'Manrope', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-mono: 'DM Mono', ui-monospace, 'SF Mono', Consolas, monospace;
  --wide: 'wdth' 118;

  /* ── Rhythmus ────────────────────────────────────── */
  --r-1: 4px;  --r-2: 8px;  --r-3: 14px; --r-4: 22px;
  --r-5: 36px; --r-6: 58px; --r-7: 92px; --r-8: 140px;
  --radius: 18px;
  --radius-lg: 26px;
  --wrap: min(1320px, 100% - clamp(32px, 6vw, 72px));

  /* ── Bewegung ────────────────────────────────────── */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --nav-h: 68px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--txt-0);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; }

::selection { background: var(--blue); color: #fff; }

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

/* Sanfte Atmosphäre über der gesamten Seite */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .5;
  background:
    radial-gradient(1200px 700px at 12% -10%, var(--blue-wash), transparent 65%),
    radial-gradient(900px 600px at 100% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%);
}
@supports not (color: color-mix(in srgb, red, blue)) {
  body::after { background: radial-gradient(1200px 700px at 12% -10%, var(--blue-wash), transparent 65%); }
}

.d-noise {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* Inhalt über Atmosphäre & Rauschen */
header, main, footer, .d-nav, .d-menu { position: relative; z-index: 3; }

/* =============================================================
   Layout-Helfer
   ============================================================= */
.d-wrap { width: var(--wrap); margin-inline: auto; }
.d-section { padding: var(--r-8) 0; }
.d-section--snug { padding: var(--r-7) 0; }

.d-skip {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 400;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  transform: translateY(-250%);
  transition: transform .25s var(--ease);
}
.d-skip:focus { transform: translateY(0); }

/* =============================================================
   Typografie
   ============================================================= */
.d-display {
  font-family: var(--font-display);
  font-variation-settings: var(--wide);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.03em;
  color: var(--txt-0);
  margin: 0;
  text-wrap: balance;
}
.d-display--xl { font-size: clamp(2.9rem, 8vw, 6.4rem); }
.d-display--lg { font-size: clamp(2.3rem, 5.6vw, 4.4rem); }
.d-display--md { font-size: clamp(1.75rem, 3.4vw, 2.8rem); }
.d-display--sm { font-size: clamp(1.3rem, 2.2vw, 1.75rem); line-height: 1.15; }

.d-display .accent { color: var(--accent); }

.d-mono {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--txt-2);
}

.d-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 var(--r-3);
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--txt-1);
}
.d-eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  flex: none;
}

.d-lede {
  max-width: 62ch;
  margin: 0;
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.7;
  color: var(--txt-1);
}

/* =============================================================
   Buttons
   ============================================================= */
.d-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: .94rem;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: transform .3s var(--ease), background .3s var(--ease),
              border-color .3s var(--ease), color .3s var(--ease),
              box-shadow .3s var(--ease);
}
.d-btn:active { transform: translateY(1px) scale(.99); }
.d-btn__arrow { font-size: 1.05em; transition: transform .3s var(--ease); }
.d-btn:hover .d-btn__arrow { transform: translateX(4px); }

/* Verlauf bewusst dunkler als --blue: weisser Text erreicht so
   auf der gesamten Fläche mindestens 4.8:1 (WCAG AA). */
.d-btn--primary {
  background: linear-gradient(180deg, #2f6ae8, #2456d4);
  color: #fff;
  box-shadow: 0 8px 26px -10px var(--blue-glow), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.d-btn--primary:hover {
  box-shadow: 0 14px 34px -10px var(--blue-glow), inset 0 1px 0 rgba(255, 255, 255, .35);
  transform: translateY(-2px);
}

.d-btn--accent {
  background: var(--accent);
  color: #05070c;
  box-shadow: 0 8px 26px -10px var(--accent-glow);
}
.d-btn--accent:hover { transform: translateY(-2px); filter: brightness(1.08); }

.d-btn--ghost {
  background: rgba(255, 255, 255, .03);
  border-color: var(--line-2);
  color: var(--txt-0);
  backdrop-filter: blur(8px);
}
.d-btn--ghost:hover { border-color: var(--blue-bright); background: rgba(61, 123, 255, .1); transform: translateY(-2px); }

.d-btn--sm { min-height: 42px; padding: 0 18px; font-size: .86rem; }

/* =============================================================
   Chips / Badges
   ============================================================= */
.d-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .03);
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--txt-1);
}
.d-chip--accent { border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent); }
.d-chip--live::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, .55);
  animation: d-pulse 2s var(--ease) infinite;
}
@keyframes d-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, .5); }
  75%, 100% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
}

/* =============================================================
   Glas-Karten
   ============================================================= */
.d-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012)),
    var(--bg-2);
  overflow: hidden;
  isolation: isolate;
  transition: transform .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease);
}
/* feine Lichtkante oben */
.d-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .25), transparent);
  opacity: .7;
}
.d-card:hover,
.d-card:focus-visible {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  box-shadow: 0 26px 60px -34px rgba(0, 0, 0, .95), 0 0 0 1px color-mix(in srgb, var(--accent) 14%, transparent);
}
@supports not (color: color-mix(in srgb, red, blue)) {
  .d-card:hover { border-color: var(--line-2); }
}

.d-card__body { padding: var(--r-5); }

/* =============================================================
   Weltenkarten (Startseite / Bereichsnavigation)
   ============================================================= */
.d-worlds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(16px, 1.8vw, 24px);
}

.d-world {
  --accent: var(--blue-bright);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 380px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-1);
  overflow: hidden;
  isolation: isolate;
  transition: transform .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.d-world__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.d-world__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.1s var(--ease), filter .6s var(--ease);
  filter: saturate(.85) brightness(.72);
}
.d-world::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(175deg, rgba(5, 7, 12, .18) 0%, rgba(5, 7, 12, .72) 52%, rgba(5, 7, 12, .96) 100%);
  transition: opacity .5s var(--ease);
}
.d-world__glow {
  position: absolute;
  z-index: -1;
  inset: auto -30% -55% -30%;
  height: 70%;
  background: radial-gradient(closest-side, var(--accent), transparent 72%);
  opacity: .16;
  filter: blur(30px);
  transition: opacity .5s var(--ease);
  pointer-events: none;
}
.d-world__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--r-2);
  margin-top: auto;
  padding: var(--r-5);
}
.d-world__num {
  position: absolute;
  top: var(--r-4);
  left: var(--r-5);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .2em;
  color: var(--txt-2);
}
.d-world__tag {
  position: absolute;
  top: var(--r-4);
  right: var(--r-5);
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  background: rgba(5, 7, 12, .5);
  backdrop-filter: blur(6px);
}
.d-world__title {
  font-family: var(--font-display);
  font-variation-settings: var(--wide);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0;
}
.d-world__desc {
  margin: 0;
  max-width: 34ch;
  font-size: .93rem;
  line-height: 1.6;
  color: var(--txt-1);
}
.d-world__go {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--r-3);
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.d-world__go span:last-child {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  transition: transform .4s var(--ease), background .4s var(--ease), color .4s var(--ease);
}
.d-world:hover, .d-world:focus-visible {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 46%, var(--line));
  box-shadow: 0 36px 70px -40px #000, 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent);
}
.d-world:hover .d-world__media img,
.d-world:focus-visible .d-world__media img { transform: scale(1.08); filter: saturate(1) brightness(.85); }
.d-world:hover .d-world__glow,
.d-world:focus-visible .d-world__glow { opacity: .34; }
.d-world:hover .d-world__go span:last-child,
.d-world:focus-visible .d-world__go span:last-child {
  transform: translateX(4px);
  background: var(--accent);
  color: #05070c;
}
.d-world--wide { grid-column: span 2; }
@media (max-width: 860px) { .d-world--wide { grid-column: auto; } }

/* =============================================================
   Globale Navigation
   ============================================================= */
.d-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 120;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(5, 7, 12, .72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line-soft);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.d-nav.is-scrolled {
  background: rgba(5, 7, 12, .93);
  border-bottom-color: var(--line);
}
.d-nav__inner {
  width: var(--wrap);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: var(--r-4);
}
.d-nav__mark {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 122;
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: -.035em;
  color: var(--txt-0);
  flex: none;
}
.d-nav__mark i {
  font-style: normal;
  color: var(--blue-bright);
  text-shadow: 0 0 14px var(--blue-glow);
}
.d-nav__links {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1vw, 14px);
  margin-inline: auto;
}
.d-nav__links a {
  position: relative;
  padding: 9px 12px;
  border-radius: 999px;
  font-size: .87rem;
  font-weight: 500;
  color: var(--txt-1);
  white-space: nowrap;
  transition: color .25s var(--ease), background .25s var(--ease);
}
.d-nav__links a:hover { color: var(--txt-0); background: rgba(255, 255, 255, .05); }
.d-nav__links a[aria-current="page"] { color: var(--txt-0); }
.d-nav__links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}
.d-nav__right { display: flex; align-items: center; gap: 10px; flex: none; }
.d-nav__burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  place-items: center;
  gap: 5px;
  flex-direction: column;
}
.d-nav__burger span {
  display: block;
  width: 18px; height: 1.5px;
  border-radius: 2px;
  background: var(--txt-0);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
body.d-menu-open .d-nav__burger span:first-child { transform: translateY(3.25px) rotate(45deg); }
body.d-menu-open .d-nav__burger span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* Mobiles Vollbildmenü */
.d-menu {
  position: fixed;
  inset: 0;
  z-index: 115;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: calc(var(--nav-h) + 24px) clamp(24px, 7vw, 48px) 40px;
  background: rgba(5, 7, 12, .97);
  backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
  overflow-y: auto;
}
body.d-menu-open .d-menu { opacity: 1; visibility: visible; transform: none; }
body.d-menu-open { overflow: hidden; }
.d-menu__link {
  --accent: var(--blue-bright);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-display);
  font-variation-settings: var(--wide);
  font-weight: 600;
  font-size: clamp(1.35rem, 5.5vw, 2rem);
  letter-spacing: -.02em;
  color: var(--txt-0);
  transition: color .25s var(--ease), padding-left .25s var(--ease);
}
.d-menu__link:hover, .d-menu__link:focus-visible { color: var(--accent); padding-left: 12px; }
.d-menu__link[aria-current="page"] { color: var(--accent); }
.d-menu__num {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  color: var(--txt-2);
  flex: none;
}
.d-menu__tag {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  flex: none;
}

@media (max-width: 1080px) {
  .d-nav__links { display: none; }
  .d-nav__burger { display: flex; }
  .d-nav__right .d-btn { display: none; }
}

/* Platz für die fixe Navigation */
.d-pad { padding-top: var(--nav-h); }

/* =============================================================
   Hero mit Video-Loop
   ============================================================= */
.d-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 88svh, 900px);
  padding: calc(var(--nav-h) + var(--r-7)) 0 var(--r-7);
  overflow: hidden;
  isolation: isolate;
}
.d-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--bg-0);
}
.d-hero__bg img,
.d-hero__bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.d-hero__bg video { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s var(--ease); }
.d-hero__bg video.is-ready { opacity: 1; }

/* Sehr langsame Kamerabewegung auf dem Keyvisual.
   Ersetzt einen Videoloop bei minimaler Last: nur transform,
   keine Layoutänderung, kein zusätzlicher Download. */
.d-drift {
  transform-origin: 58% 52%;
  animation: d-drift 46s var(--ease-io) infinite alternate;
  will-change: transform;
}
@keyframes d-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.13) translate3d(-1.4%, -1%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .d-drift { animation: none; transform: none; }
}
.d-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 7, 12, .95) 0%, rgba(5, 7, 12, .74) 42%, rgba(5, 7, 12, .28) 100%),
    linear-gradient(0deg, var(--bg-0) 2%, transparent 45%);
}
@media (max-width: 820px) {
  .d-hero__scrim {
    background:
      linear-gradient(180deg, rgba(5, 7, 12, .72) 0%, rgba(5, 7, 12, .82) 45%, var(--bg-0) 96%);
  }
}
.d-hero__inner { position: relative; width: var(--wrap); margin-inline: auto; }
.d-hero__copy { max-width: 46rem; }
.d-hero__title { margin: 0 0 var(--r-4); }
.d-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: var(--r-5);
}

/* Kennzahlenleiste unter dem Hero */
.d-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  margin-top: var(--r-6);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line-soft);
  overflow: hidden;
}
.d-stat { padding: var(--r-4); background: rgba(8, 11, 19, .72); backdrop-filter: blur(8px); }
.d-stat__num {
  display: block;
  font-family: var(--font-display);
  font-variation-settings: var(--wide);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: var(--txt-0);
}
.d-stat__label {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--txt-2);
}

/* =============================================================
   Abschnittsköpfe
   ============================================================= */
.d-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--r-4);
  margin-bottom: var(--r-6);
  padding-bottom: var(--r-4);
  border-bottom: 1px solid var(--line);
}
.d-head__text { max-width: 44rem; }

/* Feine Datenlinie als Trenner */
.d-rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--line-2) 22%, var(--line-2) 78%, transparent);
}

/* =============================================================
   Footer
   ============================================================= */
.d-foot {
  border-top: 1px solid var(--line);
  background: var(--bg-1);
  padding: var(--r-7) 0 var(--r-5);
}
.d-foot__inner { width: var(--wrap); margin-inline: auto; }
.d-foot__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--r-5);
  padding-bottom: var(--r-5);
  border-bottom: 1px solid var(--line);
}
.d-foot__mark {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 122;
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 5rem);
  line-height: .9;
  letter-spacing: -.04em;
}
.d-foot__mark i { font-style: normal; color: var(--blue-bright); }
.d-foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: var(--r-4) 0;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.d-foot__links a { color: var(--txt-2); transition: color .25s var(--ease); }
.d-foot__links a:hover { color: var(--blue-bright); }
.d-foot__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: var(--r-3);
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--txt-2);
}

/* =============================================================
   Reveal-on-scroll
   ============================================================= */
.d-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0ms);
}
.d-reveal.is-in { opacity: 1; transform: none; }

/* =============================================================
   Seitenübergang
   ============================================================= */
.d-transition {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(closest-side at 50% 50%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    var(--bg-0);
}
.d-transition.is-out {
  animation: d-fade-out .55s var(--ease-io) forwards;
}
.d-transition.is-in {
  animation: d-fade-in .6s var(--ease-io) forwards;
}
@keyframes d-fade-out {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes d-fade-in {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* =============================================================
   Bewegung reduzieren
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .d-reveal { opacity: 1; transform: none; }
  .d-transition { display: none; }
  .d-hero__bg video { display: none; }
}

/* =============================================================
   Kleine Bildschirme
   ============================================================= */
@media (max-width: 620px) {
  :root { --r-7: 66px; --r-8: 88px; --nav-h: 62px; }
  .d-hero { min-height: 620px; }
  .d-btn { width: 100%; }
  .d-hero__actions .d-btn { width: auto; flex: 1 1 200px; }
  .d-head { flex-direction: column; align-items: flex-start; }
}
