/* ================================================================
   style.css — 5-Jahre-Abi · editorial / soft / odometer
   Type: Instrument Serif (display) + Geist (UI) + JetBrains Mono
   Palette: warm cream, deep ink, dusty terracotta, muted sage
================================================================ */

/* ----------------------------------------------------------------
   1. TOKENS
---------------------------------------------------------------- */
:root {
  /* Pure-white paper / Apple-launch palette */
  --paper:        #ffffff;
  --paper-deep:   #fafafa;             /* card surface */
  --paper-rim:    #f1f1f3;
  --ink:          #1d1d1f;             /* Apple deep ink */
  --ink-soft:     #424245;
  --ink-mute:     #6e6e73;

  /* Accent: light cyan (#6dc9e5) */
  --accent:       #6dc9e5;
  --accent-deep:  #2da5c7;
  --accent-soft:  rgba(109, 201, 229, 0.14);
  --accent-glow:  rgba(109, 201, 229, 0.35);

  --hairline:        rgba(0, 0, 0, 0.08);
  --hairline-strong: rgba(0, 0, 0, 0.16);

  /* Type */
  --font-serif:   "Instrument Serif", "EB Garamond", "Cormorant Garamond", Georgia, serif;
  --font-sans:    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono:    "JetBrains Mono", "SF Mono", ui-monospace, "Menlo", monospace;
  --line-height:  1.55;

  /* Spacing — 8px raster */
  --s-1:   8px;
  --s-2:  16px;
  --s-3:  24px;
  --s-4:  32px;
  --s-5:  40px;
  --s-6:  56px;
  --s-7:  72px;
  --s-8:  96px;
  --s-9: 128px;
  --s-10:160px;

  /* Layout */
  --container-max:  1240px;
  --container-pad:  var(--s-3);
  --header-h:       68px;

  --radius-sm:   8px;
  --radius-md:  18px;
  --radius-lg:  28px;
  --radius-xl:  36px;
  --radius-pill: 9999px;

  /* Smooth Apple-style easings */
  --ease:           cubic-bezier(0.32, 0.72, 0, 1);     /* Apple's signature smooth */
  --ease-out-back:  cubic-bezier(0.34, 1.30, 0.64, 1);
  --ease-spring:    cubic-bezier(0.5, 1.6, 0.5, 1);
  --t-fast:         220ms;
  --t-base:         420ms;
  --t-slow:         700ms;

  /* Card shadows — soft, Apple-like */
  --shadow-card:    0 1px 1px rgba(0,0,0,0.04), 0 6px 24px -8px rgba(0,0,0,0.10);
  --shadow-lift:    0 1px 2px rgba(0,0,0,0.06), 0 22px 50px -16px rgba(0,0,0,0.18);
}


/* ----------------------------------------------------------------
   2. RESET & BASE
---------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: var(--line-height);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; font-family: var(--font-serif); font-weight: 400; }
ul[role="list"] { list-style: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

::selection { background: var(--accent-soft); color: var(--ink); }


/* ----------------------------------------------------------------
   3. GLOBAL PAPER GRAIN
---------------------------------------------------------------- */
.grain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.12;
  mix-blend-mode: multiply;
}


/* ----------------------------------------------------------------
   4. LAYOUT
---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section { padding-block: var(--s-9); position: relative; }

@media (min-width: 768px) {
  :root { --container-pad: var(--s-6); }
}
@media (min-width: 1024px) {
  :root { --container-pad: var(--s-7); }
}


/* ----------------------------------------------------------------
   5. SECTION HEADERS / EYEBROWS / RULES
---------------------------------------------------------------- */
.section-header { margin-bottom: var(--s-7); max-width: 720px; }
.section-header--center { margin-inline: auto; text-align: center; }

.section-eyebrow,
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: var(--s-3);
}
.section-eyebrow--center { justify-content: center; }
.hero-eyebrow { justify-content: center; }

.rule {
  flex: 1;
  height: 1px;
  background: var(--hairline);
  max-width: 80px;
}
.rule--short { width: 24px; flex: none; }

.rule-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.section-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  letter-spacing: -0.025em;
  line-height: 1.04;
  color: var(--ink);
  text-wrap: balance;
}
.section-title em {
  color: var(--accent-deep);
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.01em;
}


/* ----------------------------------------------------------------
   6. HEADER
---------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--header-h);
  background: color-mix(in srgb, var(--paper) 75%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
          backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--s-4);
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--ink);
  transition: opacity var(--t-fast) var(--ease);
}
.site-logo:hover { opacity: 0.7; }
.logo-mark { display: inline-flex; color: var(--accent); }
.logo-text {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.logo-text em {
  color: var(--accent-deep);
  font-size: 1.05em;
  margin-right: 1px;
}

.site-nav { flex: 1; display: flex; justify-content: center; }
.nav-list { display: flex; gap: var(--s-5); }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--ink-soft);
  position: relative;
  transition: color var(--t-fast) var(--ease);
}
.nav-marker { color: var(--accent); transition: transform var(--t-base) var(--ease); }
.nav-link:hover { color: var(--ink); }
.nav-link:hover .nav-marker { transform: scale(2); color: var(--accent); }

.header-counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  padding: 6px 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--paper) 60%, transparent);
}
.header-counter__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}
.header-counter__value {
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}


/* ----------------------------------------------------------------
   7. HERO — scroll-zoom + clock + timeline
---------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  /* Match CartoDB Positron background so gaps between tile loads are invisible */
  background: #f2f2f0;
  color: var(--ink);
}

/* Hero map tile-gap background (light = CartoDB Positron, dark = CartoDB Dark Matter) */
#hero-map { background: #f2f2f0; }

@media (prefers-color-scheme: dark) {
  .hero     { background: #181b21; }
  #hero-map { background: #181b21; }

  /* Use .hero prefix on every selector to reach specificity (0,2,0),
     beating original single-class rules that come later in the file. */
  .hero .hero-overlay          { color: #ffffff; }
  .hero .hero-headline         { color: #ffffff; }
  .hero .hero-headline__thin   { color: #ffffff; }
  .hero .hero-headline__bold   { color: #ffffff; }
  .hero .hero-eyebrow          { color: rgba(255,255,255,0.70); }
  .hero .rule-dot              { background: var(--accent); }
  .hero .clock-label           { color: rgba(255,255,255,0.70); }
  .hero .hero-step__lbl        { color: rgba(255,255,255,0.55); }
  .hero .hero-step__num        { color: rgba(255,255,255,0.70); }
  .hero .hero-timeline__year   { color: rgba(255,255,255,0.60); }
  .hero .hero-scroll-hint      { color: rgba(255,255,255,0.55); }

  /* Clock SVG — scoped inside .hero so it only affects the hero clock */
  .hero .clock-face       { fill: rgba(255,255,255,0.04); stroke: rgba(255,255,255,0.25); }
  .hero .clock-ticks line { stroke: rgba(255,255,255,0.40); }
  .hero .clock-hand       { stroke: #ffffff; }
  .hero .clock-cap        { fill: var(--accent); }

  /* Timeline track */
  .hero .hero-timeline__track { background: rgba(255,255,255,0.20); }
}

/* The pinned stage holds the Leaflet map backdrop full-bleed.
   z-index: 0 creates a stacking context so Leaflet's internal panes
   (z-index 200–700) stay contained below the hero-overlay (z-index 2). */
.hero-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-zoom {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* MapLibre / Leaflet map as hero background — inherits pointer-events:none from .hero-stage */
.hero-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#hero-map { cursor: default !important; }
#hero-map .maplibregl-canvas { cursor: default !important; }

/* Each zoom layer fills the entire SVG; JS scales + fades each one */
.zoom-layer {
  transform-origin: 500px 500px;
  will-change: transform, opacity;
}

/* Star field (space layer) */
.space-stars circle {
  fill: var(--ink);
  opacity: 0.55;
}

/* Tiny earth in space view */
.globe-mini-dots circle {
  fill: var(--ink);
  opacity: 0.30;
}

/* Europe-scale continent dots */
.continent-dots circle {
  fill: var(--ink);
  opacity: 0.18;
}

/* Country dots */
.country-dots circle {
  fill: var(--ink);
  opacity: 0.22;
}

/* Region grid + school marker */
.region-grid line {
  stroke: var(--ink);
  stroke-opacity: 0.06;
  stroke-width: 0.6;
}
.school-marker__halo {
  fill: var(--accent);
  opacity: 0.18;
  animation: schoolPulse 2.6s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
.school-marker__pulse {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  opacity: 0.4;
  animation: schoolRing 2.6s ease-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
.school-marker__ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  opacity: 0.85;
}
.school-marker__dot { fill: var(--accent-deep); }
.school-marker__pin { stroke: var(--accent-deep); stroke-width: 1; }

@keyframes schoolPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.18; }
  50%      { transform: scale(1.15); opacity: 0.36; }
}
@keyframes schoolRing {
  0%   { transform: scale(0.6); opacity: 0.5; }
  100% { transform: scale(2.2); opacity: 0; }
}

.school-label__name {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  fill: var(--ink);
}
.school-label__meta {
  font-family: var(--font-mono);
  font-size: 10px;
  fill: var(--ink-mute);
  letter-spacing: 0.04em;
}


/* Hero overlay — clock, headline, timeline */
.hero-overlay {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: var(--s-5);
  padding: calc(var(--header-h) + var(--s-5)) var(--container-pad) var(--s-7);
}

/* Top bar — clock + step indicator (asymmetric) */
.hero-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}

.hero-clock {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.clock-svg { width: 56px; height: 56px; }
.clock-face {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-opacity: 0.18;
  stroke-width: 0.6;
}
.clock-ticks line {
  stroke: var(--ink);
  stroke-opacity: 0.4;
  stroke-width: 0.8;
}
.clock-hand {
  stroke: var(--ink);
  stroke-linecap: round;
  transform-origin: 0 0;
}
.clock-hand--hour   { stroke-width: 1.8; }
.clock-hand--minute { stroke-width: 1.2; }
.clock-cap { fill: var(--accent-deep); }

.clock-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
  min-width: 9ch;
}

.hero-step {
  text-align: right;
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}
.hero-step__lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.hero-step__num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* Hero content — asymmetric, hard-left */
.hero-content {
  align-self: center;
  max-width: 1000px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: var(--s-3);
}

.hero-headline {
  font-family: var(--font-sans);
  letter-spacing: -0.04em;
  line-height: 0.94;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-headline__thin {
  font-weight: 200;
  font-size: clamp(3rem, 9vw, 8rem);
  color: var(--ink);
}
.hero-headline__thin em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-deep);
}
.hero-headline__bold {
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 8rem);
  color: var(--ink);
  letter-spacing: -0.045em;
}

/* Timeline scrub bar */
.hero-timeline {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  width: 100%;
  max-width: 720px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.hero-timeline__year {
  flex-shrink: 0;
  min-width: 92px;
  font-variant-numeric: tabular-nums;
}
.hero-timeline__year--past { text-align: left; color: var(--ink); }
.hero-timeline__year--now  { text-align: right; color: var(--accent-deep); }
.hero-timeline__track {
  flex: 1;
  height: 1px;
  background: var(--hairline);
  position: relative;
}
.hero-timeline__needle {
  position: absolute;
  top: -6px;
  width: 2px;
  height: 13px;
  background: var(--accent-deep);
  /* --t set by JS in [0..1]; 0 = today (right), 1 = past (left) */
  left: calc((1 - var(--t, 0)) * 100%);
  transform: translateX(-50%);
  transition: left 0.05s linear;
  border-radius: 1px;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  inset-block-end: var(--s-3);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  opacity: 0.85;
}
.hero-scroll-hint__line {
  display: block;
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2.4s ease-in-out infinite;
}
@media (max-height: 700px) {
  .hero-scroll-hint { display: none; }
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1) translateY(0); opacity: 0.85; }
  50%      { transform: scaleY(0.4) translateY(8px); opacity: 0.3; }
}


/* ----------------------------------------------------------------
   9. INTRO
---------------------------------------------------------------- */
.intro { background: var(--paper); }

.intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  align-items: start;
}
@media (min-width: 900px) {
  .intro-grid {
    grid-template-columns: 1.15fr 1fr;
    gap: var(--s-9);
  }
}

.intro-text-wrap { max-width: 560px; }

.intro-lede {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 400;
  line-height: 1.32;
  color: var(--ink);
  margin-bottom: var(--s-4);
  text-wrap: balance;
}
.intro-body {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.intro-body + .intro-body { margin-top: var(--s-2); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px 14px 24px;
  border: none;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  border-radius: var(--radius-pill);
  transition:
    background-color var(--t-base) var(--ease),
    color            var(--t-base) var(--ease),
    transform        var(--t-base) var(--ease),
    box-shadow       var(--t-base) var(--ease);
  margin-top: var(--s-4);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn::before {
  /* sweep highlight on hover */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255,255,255,0.35) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
  transition: transform 0.7s var(--ease);
  z-index: -1;
  pointer-events: none;
}
.btn:hover::before { transform: translateX(100%); }

.btn--accent {
  background: var(--ink);
  color: var(--paper);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.18) inset,
    0 1px 2px rgba(0,0,0,0.10);
}
.btn--accent:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.18) inset,
    0 10px 24px -8px rgba(0,0,0,0.32);
}

/* Cyan CTA — the prominent newsletter / Spotify action */
.btn--cta {
  background: var(--accent);
  color: #053744;
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.4) inset,
    0 8px 22px -6px var(--accent-glow);
}
.btn--cta:hover {
  background: var(--accent-deep);
  color: #fff;
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.25) inset,
    0 14px 32px -8px var(--accent-glow);
}
.btn:active { transform: translateY(0) scale(0.98); }

.btn svg { transition: transform var(--t-base) var(--ease); }
.btn:hover svg { transform: translateX(4px); }


/* ----------------------------------------------------------------
   10. POLAROID CLUSTER
---------------------------------------------------------------- */
.polaroid-cluster {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 480px;
  margin-inline: auto;
}

.polaroid {
  position: absolute;
  background: var(--paper);
  padding: 12px 12px 36px;
  border-radius: 3px;
  box-shadow:
    0 1px 2px rgba(28, 22, 18, 0.06),
    0 12px 30px -8px rgba(28, 22, 18, 0.18);
  transition: transform var(--t-slow) var(--ease-out-back);
}
.polaroid figcaption {
  position: absolute;
  bottom: 8px;
  left: 12px;
  right: 12px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-soft);
  text-align: center;
}

.polaroid-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 1px;
  background:
    repeating-linear-gradient(
      135deg,
      color-mix(in srgb, var(--paper-rim) 65%, var(--paper)) 0,
      color-mix(in srgb, var(--paper-rim) 65%, var(--paper)) 12px,
      color-mix(in srgb, var(--paper-rim) 80%, var(--paper)) 12px,
      color-mix(in srgb, var(--paper-rim) 80%, var(--paper)) 13px
    ),
    var(--paper-deep);
  position: relative;
}
.polaroid-img::before {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  background: color-mix(in srgb, var(--paper) 25%, transparent);
}

.polaroid--1 { top: 8%;  left: 4%;  width: 56%; transform: rotate(-7deg); z-index: 2; }
.polaroid--2 { top: 18%; right: 4%; width: 56%; transform: rotate(5deg);  z-index: 3; }
.polaroid--3 { bottom: 6%; left: 22%; width: 56%; transform: rotate(-2deg); z-index: 4; }

/* Actual photo inside the polaroid placeholder */
.polaroid-img picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.polaroid-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1px;
  display: block;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.polaroid-img.has-photo { background: none; }
.polaroid-img.has-photo::before { display: none; }
.polaroid-img.has-photo .polaroid-photo { opacity: 1; }

.polaroid-cluster:hover .polaroid--1 { transform: rotate(-11deg) translate(-12px, -4px); }
.polaroid-cluster:hover .polaroid--2 { transform: rotate(8deg)   translate(10px, -2px); }
.polaroid-cluster:hover .polaroid--3 { transform: rotate(-2deg)  translate(0px, 8px); }

/* Little tag in the corner */
.polaroid-tag {
  position: absolute;
  top: -6px;
  right: 6%;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: var(--accent-deep);
  color: var(--paper);
  padding: 8px 12px;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.2;
  transform: rotate(8deg);
  z-index: 5;
  box-shadow: 0 4px 14px -2px color-mix(in srgb, var(--accent-deep) 50%, transparent);
}
.polaroid-tag span:first-child {
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: 0;
  margin-bottom: 2px;
}


/* ----------------------------------------------------------------
   11. COUNTDOWN BAND
---------------------------------------------------------------- */
.countdown-band {
  background: var(--ink);
  color: var(--paper);
  padding-block: var(--s-9);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.countdown-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 70% at 50% 50%, rgba(109, 201, 229, 0.07) 0%, transparent 68%);
  pointer-events: none;
}
.countdown-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 39px,
    rgba(255,255,255,0.025) 39px,
    rgba(255,255,255,0.025) 40px
  );
  pointer-events: none;
}
.countdown-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.countdown-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.70rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
  opacity: 0.80;
}
.countdown-eyebrow .rule-dot {
  background: var(--accent);
  opacity: 0.5;
}
.countdown-headline {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.60);
  margin-bottom: var(--s-6);
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.countdown-headline em {
  color: var(--paper);
  font-style: italic;
}
.countdown-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-evenly;
  width: 100%;
  margin-bottom: var(--s-5);
}
.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: clamp(48px, 8vw, 96px);
}
.countdown-num {
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 6.5vw, 5rem);
  font-weight: 500;
  color: var(--paper);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.countdown-lbl {
  font-family: var(--font-mono);
  font-size: clamp(0.55rem, 1.1vw, 0.68rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.30);
}
.countdown-sep {
  font-family: var(--font-mono);
  font-size: clamp(1.2rem, 3vw, 2.4rem);
  color: var(--accent);
  opacity: 0.25;
  line-height: 1;
  align-self: center;
  margin-bottom: 1.6rem;
}
.countdown-sub {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2.5vw, 1.55rem);
  font-style: italic;
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: 0.01em;
}


/* ----------------------------------------------------------------
   11. STATS STRIP — bento cards
---------------------------------------------------------------- */
.stats {
  padding-block: var(--s-7);
  background: var(--paper);
}
.stats-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-2);
}
@media (min-width: 768px) {
  .stats-list { grid-template-columns: repeat(4, 1fr); gap: var(--s-3); }
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-3);
  min-height: 168px;
  background: var(--paper-deep);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.stat::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--accent-soft), transparent 70%);
  border-radius: 0 0 var(--radius-md) 0;
  opacity: 0;
  transition: opacity var(--t-base) var(--ease);
}
.stat:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: var(--accent-soft);
}
.stat:hover::before { opacity: 1; }

.stat__num {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 4.6vw, 3.4rem);
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.stat__num em {
  color: var(--accent);
  font-size: 0.7em;
  vertical-align: 0.15em;
  margin-right: 0.05em;
}
.stat__lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-mute);
}


/* ----------------------------------------------------------------
   11b. DISTANCE MAP — interactive scrollytelling feature
---------------------------------------------------------------- */
.distance {
  background: var(--paper);
  padding-block: var(--s-10) var(--s-9);
  position: relative;
  overflow: hidden;
}
.distance::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 30%, var(--accent-soft), transparent 60%);
  pointer-events: none;
}

.distance-header {
  max-width: 980px;
  position: relative;
  z-index: 1;
}

.distance-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: var(--s-3);
}

/* Massive headline — Apple-flagship count-up */
.distance-headline {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.9;
  color: var(--ink);
  margin: var(--s-2) 0 var(--s-3);
}
.distance-counter {
  display: inline-flex;
  align-items: baseline;
  gap: 0.15em;
}
.distance-counter__num {
  font-size: clamp(5rem, 16vw, 13rem);
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--ink) 0%, #4a5560 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.distance-counter__unit {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--accent-deep);
  letter-spacing: -0.02em;
}
.distance-sub {
  max-width: 620px;
  margin: 0 auto;
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.55;
  text-wrap: balance;
}
.distance-sub em {
  color: var(--ink);
  font-style: italic;
  font-weight: 400;
}

/* The map stage */
.distance-stage {
  position: relative;
  margin-top: var(--s-7);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, #fbfdfe 0%, #f4f9fc 100%);
  overflow: hidden;
  padding: var(--s-4) var(--s-3);
  box-shadow: var(--shadow-card);
}

/* Faint grid backdrop behind the SVG */
.distance-stage__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* Soft cyan glow underneath the active arc area */
.distance-stage__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 30% 40% at 35% 50%, var(--accent-soft), transparent 60%),
    radial-gradient(ellipse 25% 35% at 75% 50%, var(--accent-soft), transparent 60%);
  pointer-events: none;
  opacity: 0.7;
}

.distance-map {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  z-index: 1;
}

/* Leaflet map container */
.distance-map-leaflet {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 420px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-card);
}
@media (min-width: 768px) {
  .distance-map-leaflet { height: 540px; }
}

/* Leaflet attribution override */
.distance-map-leaflet .leaflet-control-attribution {
  font-size: 10px;
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  border-radius: 6px 0 0 0;
}

/* Minimal accent marker dot */
.map-pin {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border: 2px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Clean tooltip */
.leaflet-tooltip.map-tooltip {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-family: var(--font-sans);
  color: var(--ink);
  box-shadow: var(--shadow-card);
  white-space: nowrap;
}
.leaflet-tooltip.map-tooltip::before { display: none; }

/* Background land dots */
.map-dot {
  fill: rgba(15, 30, 45, 0.18);
}

/* Person dots */
.map-person {
  fill: var(--accent);
  opacity: 0.85;
  filter: url(#dotGlow);
}

/* Glowing arc */
.arc-line {
  fill: none;
  stroke-linecap: round;
}
.arc-line--main {
  stroke: var(--accent);
  stroke-width: 1.8;
}
.arc-line--glow {
  stroke: var(--accent);
  stroke-width: 6;
  opacity: 0.55;
}

/* Endpoint markers — pulse + halo */
.extreme-marker__halo {
  fill: var(--accent);
  opacity: 0.18;
  transform-box: fill-box;
  transform-origin: center;
  animation: extremePulse 2.8s ease-in-out infinite;
}
.extreme-marker__ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  opacity: 0.7;
}
.extreme-marker__dot {
  fill: var(--accent-deep);
}
@keyframes extremePulse {
  0%, 100% { opacity: 0.15; r: 22; }
  50%      { opacity: 0.35; r: 26; }
}

/* Labels */
.map-label__tick {
  stroke: var(--ink-mute);
  stroke-width: 1;
  opacity: 0.55;
}
.map-label__name {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  fill: var(--ink);
  text-anchor: middle;
}
.map-label__meta {
  font-family: var(--font-mono);
  font-size: 10px;
  fill: var(--ink-mute);
  text-anchor: middle;
  letter-spacing: 0.04em;
}

/* Bottom readout strip */
.distance-readout {
  position: relative;
  z-index: 2;
  margin-top: var(--s-3);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-2);
  padding-top: var(--s-3);
  border-top: 1px dashed var(--hairline);
}
.distance-readout__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.distance-readout__lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.distance-readout__val {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

@media (max-width: 640px) {
  .distance-readout { grid-template-columns: 1fr; gap: 6px; }
}


/* ----------------------------------------------------------------
   13c. ARCHIV — historical coverage cards (asymmetric editorial)
---------------------------------------------------------------- */
.archiv {
  background: var(--paper);
  padding-block: var(--s-9);
}
.archiv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  align-items: start;
}
@media (min-width: 960px) {
  .archiv-grid {
    grid-template-columns: 1fr 1.15fr;
    gap: var(--s-9);
  }
}

.archiv-header { max-width: 480px; }

.section-title--left {
  text-align: left;
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
}

.archiv-lede {
  margin-top: var(--s-3);
  font-size: 16.5px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.archiv-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.archiv-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto;
  gap: 4px 14px;
  padding: var(--s-4);
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  color: var(--ink);
  transition:
    transform var(--t-base) var(--ease),
    box-shadow var(--t-base) var(--ease),
    border-color var(--t-base) var(--ease),
    background var(--t-base) var(--ease);
  overflow: hidden;
}
.archiv-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-soft), transparent 50%);
  opacity: 0;
  transition: opacity var(--t-base) var(--ease);
  pointer-events: none;
}
.archiv-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-card);
}
.archiv-card:hover::before { opacity: 1; }

.archiv-card__chip {
  grid-column: 1 / 2;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: var(--s-1);
}
.archiv-card__chip svg { color: var(--accent-deep); }

.archiv-card__title {
  grid-column: 1 / 2;
  grid-row: 2;
  font-family: var(--font-sans);
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.25;
  text-wrap: balance;
  position: relative;
}
.archiv-card__meta {
  grid-column: 1 / 2;
  grid-row: 3;
  font-size: 14px;
  color: var(--ink-soft);
  position: relative;
}
.archiv-card__arrow {
  grid-column: 2 / 3;
  grid-row: 1 / 4;
  align-self: center;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  color: var(--ink);
  transition: all var(--t-base) var(--ease);
  position: relative;
}
.archiv-card:hover .archiv-card__arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translate(2px, -2px) rotate(8deg);
}


/* ----------------------------------------------------------------
   12. ERINNERUNGEN
---------------------------------------------------------------- */
.erinnerungen { background: var(--paper); }
.erinnerungen-text {
  max-width: 540px;
  margin: var(--s-3) auto 0;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.form-wrapper {
  margin-top: var(--s-7);
  position: relative;
  background: var(--paper-deep);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  padding: var(--s-4);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.form-wrapper:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-3px);
}

.form-wrapper__corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--accent);
  border-style: solid;
  border-width: 0;
}
.form-wrapper__corner--tl { top: 14px; left: 14px;  border-top-width: 1px; border-left-width: 1px; }
.form-wrapper__corner--tr { top: 14px; right: 14px; border-top-width: 1px; border-right-width: 1px; }
.form-wrapper__corner--bl { bottom: 14px; left: 14px;  border-bottom-width: 1px; border-left-width: 1px; }
.form-wrapper__corner--br { bottom: 14px; right: 14px; border-bottom-width: 1px; border-right-width: 1px; }

/* ----------------------------------------------------------------
   Native survey form — #erinnerungen
---------------------------------------------------------------- */
#surveyForm {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: var(--s-5) var(--s-4);
}

.survey-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.survey-field label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

#surveyForm input[type="text"],
#surveyForm input[type="email"],
#surveyForm textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  line-height: 1.5;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  resize: vertical;
  outline: none;
  -webkit-appearance: none;
}

#surveyForm input[type="text"]:focus,
#surveyForm input[type="email"]:focus,
#surveyForm textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* File drop zone */
.file-drop-zone {
  position: relative;
  border: 1.5px dashed var(--hairline-strong);
  border-radius: var(--radius-sm);
  padding: var(--s-5) var(--s-4);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease),
              background   var(--t-fast) var(--ease);
  background: var(--paper);
}
.file-drop-zone:hover,
.file-drop-zone.is-over {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.file-drop-zone.is-over-limit {
  border-color: #e34040;
  background: rgba(227, 64, 64, 0.05);
}
.file-drop-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.file-drop-icon {
  color: var(--ink-mute);
  margin-bottom: var(--s-2);
  pointer-events: none;
}
.file-drop-text {
  font-size: 14px;
  color: var(--ink-soft);
  pointer-events: none;
}
.file-drop-btn {
  background: none;
  border: none;
  color: var(--accent-deep);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  pointer-events: auto;
}
.file-drop-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 6px;
  pointer-events: none;
}
.file-list {
  list-style: none;
  margin-top: var(--s-2);
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}
.file-item {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
  background: var(--paper-rim);
  border-radius: 4px;
  padding: 4px 10px;
}
.file-size-total {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
  margin-top: 6px;
}
.file-size-total.is-over-limit { color: #e34040; font-weight: 500; }

/* Checkmark stroke-draw animation */
.success-circle {
  stroke-dasharray: 70;
  stroke-dashoffset: 70;
}
.success-check {
  stroke-dasharray: 15;
  stroke-dashoffset: 15;
}

.survey-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-2);
  padding-top: var(--s-1);
}

#uploadHint {
  font-size: 0.85em;
  opacity: 0.65;
  margin-bottom: 0.5em;
}

#submitBtn {
  display: inline-flex;
  align-items: center;
  padding: 13px 28px;
  background: var(--ink);
  color: var(--paper);
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
#submitBtn:hover   { background: var(--ink-soft); transform: translateY(-1px); }
#submitBtn:active  { transform: translateY(0); }
#submitBtn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.survey-privacy-hint {
  font-size: 12px;
  color: var(--ink-mute);
  line-height: 1.5;
}
.survey-privacy-hint a {
  color: var(--accent-deep);
  text-decoration: none;
}
.survey-privacy-hint a:hover { text-decoration: underline; }

#successMessage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  padding: var(--s-8) var(--s-4);
  text-align: center;
  color: var(--ink);
}
.success-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
}
.success-sub {
  font-size: 15px;
  color: var(--ink-mute);
}


/* ----------------------------------------------------------------
   13. WIEDERSEHEN — Save-the-Date · DARK contrast variant
---------------------------------------------------------------- */
.wiedersehen {
  padding-block: var(--s-9);
  background: #000;
  color: #fff;
}
.wiedersehen-card {
  max-width: 880px;
  margin-inline: auto;
  text-align: center;
  padding: var(--s-9) var(--s-4);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(109,201,229,0.18), transparent 65%),
    linear-gradient(180deg, #0c0c0e 0%, #050507 100%);
  position: relative;
  overflow: hidden;
}
.wiedersehen-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 40% 60% at 50% 100%, rgba(109,201,229,0.10), transparent 70%);
  pointer-events: none;
}
.wiedersehen .section-eyebrow {
  color: rgba(255,255,255,0.55);
  position: relative;
}
.wiedersehen .rule-dot { background: var(--accent); }

.wiedersehen-label {
  position: relative;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-top: var(--s-3);
}

.wiedersehen-headline {
  position: relative;
  font-family: var(--font-sans);
  font-weight: 200;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  letter-spacing: -0.025em;
  line-height: 1;
  color: #fff;
  margin: var(--s-1) 0 var(--s-3);
  text-wrap: balance;
}

/* Loader: italic serif "wird geladen" + animated dots */
.wiedersehen-loader {
  display: inline-flex;
  align-items: baseline;
  color: var(--accent-deep);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  position: relative;
  white-space: nowrap;
}
.wiedersehen-loader__text {
  display: inline-block;
  background: linear-gradient(
    90deg,
    var(--accent-deep) 0%,
    var(--accent) 50%,
    var(--accent-deep) 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerText 2.8s linear infinite;
}
@keyframes shimmerText {
  0%   { background-position: 220% 0; }
  100% { background-position: -220% 0; }
}

.wiedersehen-loader__dots {
  display: inline-flex;
  gap: 4px;
  margin-left: 8px;
  align-self: center;
}
.wiedersehen-loader__dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  animation: dotPulse 1.4s ease-in-out infinite;
}
.wiedersehen-loader__dots span:nth-child(2) { animation-delay: 0.18s; }
.wiedersehen-loader__dots span:nth-child(3) { animation-delay: 0.36s; }
@keyframes dotPulse {
  0%, 60%, 100% { opacity: 0.25; transform: translateY(0); }
  30%           { opacity: 1;    transform: translateY(-3px); }
}

.wiedersehen-sub {
  position: relative;
  font-family: var(--font-sans);
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  margin-bottom: var(--s-5);
}
.wiedersehen-sub__hint {
  display: inline-block;
  margin-top: 4px;
  color: rgba(255,255,255,0.45);
  font-size: 14.5px;
}

/* Skeleton bars beneath — visual reinforcement of "loading" */
.wiedersehen-skeleton {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: var(--s-7);
  max-width: 460px;
  margin-inline: auto;
}
.wiedersehen-skeleton__bar {
  display: block;
  height: 10px;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.04) 0%,
    rgba(255,255,255,0.14) 50%,
    rgba(255,255,255,0.04) 100%
  );
  background-size: 200% 100%;
  animation: skeleton 2.2s ease-in-out infinite;
  border: 1px solid rgba(255,255,255,0.06);
}
.wiedersehen-skeleton__bar--a { width: 70%; animation-delay: 0s; }
.wiedersehen-skeleton__bar--b { width: 45%; animation-delay: 0.2s; }
.wiedersehen-skeleton__bar--c { width: 30%; animation-delay: 0.4s; }
@keyframes skeleton {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}


/* ----------------------------------------------------------------
   13b. SPOTIFY — soundtrack card
---------------------------------------------------------------- */
.spotify { background: var(--paper); padding-block: var(--s-9); }

.section-lede {
  max-width: 580px;
  margin: var(--s-3) auto 0;
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.6;
  text-wrap: pretty;
}

.spotify-card {
  position: relative;
  max-width: 720px;
  margin: var(--s-7) auto 0;
}
.spotify-card__aura {
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, var(--accent-soft), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}
.spotify-card__inner {
  position: relative;
  z-index: 1;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  padding: var(--s-5) var(--s-5) var(--s-4);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.spotify-card:hover .spotify-card__inner {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.spotify-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: var(--s-3);
}
.spotify-chip svg { color: #1db954; }

.spotify-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 6px;
}
.spotify-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  margin-bottom: var(--s-4);
}
.spotify-meta span {
  color: var(--accent-deep);
  border-left: 1px solid var(--hairline);
  padding-left: 8px;
  margin-left: 4px;
}

.spotify-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--hairline);
}
.spotify-iframe {
  display: block;
  width: 100%;
  height: 352px;
  border: 0;
  background: var(--paper-deep);
}

.spotify-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--s-3);
  font-size: 12px;
  color: var(--ink-mute);
  background: var(--paper-deep);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
}
.spotify-hint svg { color: var(--accent-deep); }
.spotify-hint code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--ink);
}


/* ----------------------------------------------------------------
   14. FOOTER — ultra-minimal, two legal links only
---------------------------------------------------------------- */
.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--hairline);
  padding-block: var(--s-4);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  opacity: 0.55;
}
.footer-legal-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.10em;
  color: var(--ink-mute);
}
.footer-sep { opacity: 0.3; }
.footer-link {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  color: var(--ink-mute);
  opacity: 0.35;
  padding: 0;
  text-transform: uppercase;
  transition: opacity 0.22s var(--ease);
}
.footer-link:hover { opacity: 1; }


/* ----------------------------------------------------------------
   15. MODAL
---------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
@media (min-width: 768px) {
  .modal { align-items: center; }
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--ink) 60%, transparent);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 90svh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--paper);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -20px 60px rgba(0,0,0,0.2);
  padding: var(--s-5) var(--s-4) var(--s-7);
}
@media (min-width: 768px) {
  .modal-dialog {
    max-width: 680px;
    max-height: 85svh;
    border-radius: var(--radius-lg);
    padding: var(--s-7);
  }
}

.modal-close {
  position: sticky;
  top: 0;
  float: right;
  background: var(--paper-deep);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--ink-soft);
  cursor: pointer;
  margin-bottom: var(--s-3);
  transition: all var(--t-fast) var(--ease);
}
.modal-close:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.modal-body { clear: both; }
.modal-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.01em;
  margin: var(--s-1) 0 var(--s-5);
  color: var(--ink);
}
.modal-title em { color: var(--accent-deep); }

.impressum-section { margin-bottom: var(--s-5); }
.impressum-section:last-child { margin-bottom: 0; }
.impressum-section h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: var(--s-2);
  padding-bottom: var(--s-1);
  border-bottom: 1px solid var(--hairline);
}
.impressum-section p,
.impressum-section address {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.7;
  font-style: normal;
  margin-bottom: var(--s-2);
}
.impressum-section a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.impressum-section a:hover { opacity: 0.7; }


/* ----------------------------------------------------------------
   16. SCROLL REVEAL INITIAL STATE
---------------------------------------------------------------- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
}


/* ----------------------------------------------------------------
   17. REDUCED MOTION
---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration:   0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration:  0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-scroll-hint__line { animation: none; opacity: 0.4; }
  .scroll-reveal { opacity: 1; transform: none; }
}


/* ----------------------------------------------------------------
   18b. GDPR CONSENT WRAPPER — two-click iFrame activation
---------------------------------------------------------------- */
.consent-wrap {
  display: flex;
  align-items: stretch;
}

.consent-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 280px;
  gap: var(--s-3);
  padding: var(--s-7) var(--s-4);
  text-align: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg);
}

/* Match the iframe height in each context */
.spotify-embed .consent-wrap { min-height: 352px; }

.consent-card__icon {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 4px;
}

.consent-card__text {
  max-width: 340px;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.70);
}
.consent-card__text strong { color: #fff; font-weight: 600; }

.consent-card__btn {
  display: inline-flex;
  align-items: center;
  padding: 11px 24px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  margin-top: var(--s-1);
  box-shadow: 0 4px 18px -4px rgba(109, 201, 229, 0.55);
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.consent-card__btn:hover {
  transform: scale(1.04);
  background: var(--accent-deep);
  color: #fff;
  box-shadow: 0 8px 28px -6px rgba(109, 201, 229, 0.65);
}
.consent-card__btn:active { transform: scale(0.98); }

.consent-card__hint {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.30);
}


/* ----------------------------------------------------------------
   18. PRINT
---------------------------------------------------------------- */
@media print {
  .site-header, .hero-scroll-hint, .modal, .btn, .grain { display: none !important; }
  .hero { min-height: auto; padding-block: var(--s-7); }
}
