/*
 * Themelion – Website, erster Wurf (02.11.2026).
 * Farben und Schriften sind eine Teilmenge von `src/styles/tokens.css` im Spiel (gleiche Namen, gleiche Werte),
 * damit Spiel und Website eine Marke bleiben. In der Astro-Fassung wird die Datei direkt übernommen statt kopiert.
 */

/* Schriften selbst gehostet (DSGVO, kein Google-CDN), Dateien aus @fontsource im Spiel */
@font-face { font-family: 'Marcellus'; font-display: swap; src: url(fonts/marcellus-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215; }
@font-face { font-family: 'Marcellus'; font-display: swap; src: url(fonts/marcellus-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'GFS Didot'; font-display: swap; src: url(fonts/gfs-didot-greek-400-normal.woff2) format('woff2'); unicode-range: U+0370-03FF; }
@font-face { font-family: 'Alegreya Sans'; font-display: swap; font-weight: 400; src: url(fonts/alegreya-sans-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215; }
@font-face { font-family: 'Alegreya Sans'; font-display: swap; font-weight: 400; src: url(fonts/alegreya-sans-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Alegreya Sans'; font-display: swap; font-weight: 400; font-style: italic; src: url(fonts/alegreya-sans-latin-400-italic.woff2) format('woff2'); }
@font-face { font-family: 'Alegreya Sans'; font-display: swap; font-weight: 500; src: url(fonts/alegreya-sans-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Alegreya Sans'; font-display: swap; font-weight: 700; src: url(fonts/alegreya-sans-latin-700-normal.woff2) format('woff2'); }

:root {
  color-scheme: light;
  /* aus tokens.css */
  --marble-50: #fcfaf5;
  --marble-100: #f6f1e7;
  --marble-200: #ece4d4;
  --marble-300: #dccfb8;
  --ink-900: #1c2630;
  --ink-700: #34414d;
  --ink-500: #5a6671;
  --accent: #1f6a93;
  --accent-strong: #175575;
  --bronze: #8c5a2b;
  --bronze-strong: #744a22;
  --gold: #b8912f;
  --gold-ink: #7d6118;
  --gold-light: #f1dfae;
  --status-green-ink: #2b6a34;
  --start-dusk: 24, 16, 10;
  --start-cream: #f6efe0;
  --start-cream-soft: rgba(246, 239, 224, 0.8);
  --font-display: 'Marcellus', 'GFS Didot', 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
  --font-greek: 'GFS Didot', 'Palatino Linotype', Georgia, serif;
  --font-ui: 'Alegreya Sans', 'Gill Sans', 'Trebuchet MS', system-ui, sans-serif;
  --radius-btn: 8px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --marble-texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.006 0.028' numOctaves='3' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 0.42 0 0 0 0 0.35 0 0 0 0 0.25 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E");

  /* Website: Typo-Skala 4:3 auf 18 px, Satzbreite, Ränder */
  --step-0: 1.125rem;
  --step-1: 1.5rem;
  --step-2: 2rem;
  --step-3: clamp(2rem, 4vw, 2.67rem);
  --step-4: clamp(2.4rem, 6vw, 3.55rem);
  --measure: 34em;
  --gutter: clamp(16px, 5vw, 72px);
  --wide: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  font: 400 var(--step-0) / 1.55 var(--font-ui);
  color: var(--ink-900);
  background: var(--ink-900);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--marble-50); padding: 10px 14px; border-radius: var(--radius-btn); }
.skip:focus { top: 12px; }

/* Platzhalter sichtbar markieren (Regel „keine unbestätigten Claims“) */
.ph {
  display: inline-block;
  font: 500 0.78rem / 1.3 var(--font-ui);
  color: #4a3000;
  background: #f8e8c4;
  border: 1px dashed #b07a10;
  border-radius: 4px;
  padding: 1px 6px;
  vertical-align: middle;
}

/* ---------- Vorschau-Leiste (nur steam.mode = vorschau) ---------- */
.preview-bar {
  position: relative;
  z-index: 40;
  display: none;
  gap: 4px 14px;
  flex-wrap: wrap;
  align-items: center;
  padding: 8px var(--gutter);
  background: #f8e8c4;
  color: #4a3000;
  border-bottom: 1px dashed #b07a10;
  font-size: 0.92rem;
}
[data-steam-mode='vorschau'] .preview-bar { display: flex; }

/* ---------- Kopf ---------- */
.site-head {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px var(--gutter);
  color: var(--start-cream);
}
.site-head--solid { position: relative; background: var(--ink-900); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand span { font: 400 1.05rem / 1 var(--font-display); letter-spacing: 0.14em; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; padding: 10px 0; border-bottom: 1px solid transparent; }
.nav a:hover { border-bottom-color: var(--gold); }
.lang { display: flex; gap: 2px; }
.lang a {
  display: inline-flex;
  align-items: center;
  font: 500 0.92rem / 1 var(--font-ui);
  color: var(--start-cream-soft);
  text-decoration: none;
  padding: 10px 8px;
  min-height: 44px;
}
.lang a:hover { color: var(--gold-light); }
.lang a[aria-current='page'] { color: var(--gold-light); text-decoration: underline; text-underline-offset: 5px; }

/* ---------- Hero: die Totale aus dem Startbildschirm ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 980px);
  display: grid;
  align-items: end;
  color: var(--start-cream);
  background: rgb(var(--start-dusk));
  overflow: hidden;
}
.hero picture, .hero picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
}
/* Scrim nur für die Lesbarkeit links unten; rechts bleibt das Meer frei */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(var(--start-dusk), 0.82) 0%, rgba(var(--start-dusk), 0.55) 34%, rgba(var(--start-dusk), 0) 62%),
    linear-gradient(0deg, rgba(var(--start-dusk), 0.7) 0%, rgba(var(--start-dusk), 0) 38%),
    linear-gradient(180deg, rgba(var(--start-dusk), 0.55) 0%, rgba(var(--start-dusk), 0) 18%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 44rem;
  padding: 140px var(--gutter) clamp(48px, 9vh, 96px);
}
.hero-greek {
  display: block;
  font: 400 clamp(1rem, 1.8vw, 1.35rem) / 1 var(--font-greek);
  letter-spacing: 0.32em;
  color: var(--gold);
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(3rem, 8.4vw, 7.2rem);
  letter-spacing: 0.14em;
  line-height: 0.95;
  color: var(--gold-light);
  margin-right: -0.14em; /* Sperrung am Wortende ausgleichen */
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.hero-claim { font: 400 var(--step-2) / 1.2 var(--font-display); margin-top: 18px; }
.hero-lede { max-width: 30em; margin-top: 14px; color: var(--start-cream-soft); font-size: 1.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 30px; }
.hero-by { margin-top: 34px; font-size: 0.95rem; color: var(--start-cream-soft); }
.hero-by { --sanda-w: 180px; display: flex; align-items: center; gap: var(--sanda-space); }

/* Logo SANDA Studios: freigegebene SVG aus der SANDA-CI (nicht nachbauen, nicht umfärben).
   Seitenverhältnis 800 × 235. Schutzraum = halbe Signethöhe = halbe Logohöhe, Mindestbreite 150 px. */
.sanda-logo { display: block; flex: none; width: var(--sanda-w, 160px); max-width: none; height: auto; } /* max-width: none, sonst schrumpft es im Fuß unter die Mindestbreite */
.hero-by, .foot-by { --sanda-space: calc(var(--sanda-w, 160px) * 235 / 800 / 2); }
.hero-caption {
  position: absolute;
  right: var(--gutter);
  bottom: 18px;
  z-index: 2;
  font-size: 0.85rem;
  color: rgba(246, 239, 224, 0.8);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

/* ---------- Knöpfe (Bronze wie im Spiel, Fokus Gold) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--radius-btn);
  font: 700 1.05rem / 1.1 var(--font-ui);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease);
}
.btn-primary { background: var(--bronze); color: #fff; border-color: #a8743f; }
.btn-primary:hover { background: var(--bronze-strong); }
.btn-ghost { color: inherit; border-color: currentColor; background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn[aria-disabled='true'] { opacity: 0.65; cursor: not-allowed; }
.btn svg { width: 22px; height: 22px; flex: none; }
/* Steam-Knopf: fremde Marke, darum in Steams Farben statt Bronze */
.btn-steam-hero { background: #171a21; color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.btn-steam-hero:hover { background: #2a475e; }

/* ---------- Abschnitte ---------- */
section { padding: clamp(64px, 10vw, 128px) var(--gutter); }
.wrap { max-width: var(--wide); margin: 0 auto; }
.on-dark { background: var(--ink-900); color: var(--start-cream); }
.on-marble { background: var(--marble-100) var(--marble-texture); color: var(--ink-900); }
.on-sea { background: var(--accent-strong); color: var(--start-cream); }
.lead { font-size: 1.3rem; line-height: 1.5; max-width: var(--measure); }
.section-title { font-size: var(--step-4); max-width: 16em; }
.on-dark .section-title, .on-sea .section-title { color: var(--gold-light); }
.on-marble .section-title { color: var(--ink-900); }
.muted { color: var(--ink-500); }
.on-dark .muted, .on-sea .muted { color: var(--start-cream-soft); }

/* ---------- Bürger: Text links, Stele rechts ---------- */
.people { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); gap: clamp(40px, 7vw, 110px); align-items: center; }
.people .lead { margin-top: 26px; }
.people .lead + p { margin-top: 1em; max-width: var(--measure); }
.source-note { margin-top: 28px; font-size: 0.95rem; padding-left: 14px; border-left: 2px solid var(--gold); max-width: var(--measure); }

/* Die Stele: Marmor, nach oben leicht verjüngt, Giebel, eingemeißelte Schrift */
.stele {
  position: relative;
  margin: 0;
  padding: 76px 44px 44px;
  color: var(--ink-700);
  background: var(--marble-100) var(--marble-texture);
  /* Giebel in festen Pixeln: prozentual würde er auf dem Handy (hohe Stele) durch den Titel laufen */
  clip-path: polygon(4% 48px, 50% 0, 96% 48px, 100% 100%, 0 100%);
  box-shadow: inset 0 -18px 30px rgba(60, 40, 20, 0.12);
}
.stele::before {
  content: '';
  position: absolute;
  left: 4%;
  right: 4%;
  top: 52px;
  height: 2px;
  background: var(--marble-300);
}
.carved { text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85), 0 -1px 0 rgba(60, 40, 20, 0.3); }
.stele h3 {
  margin-top: 22px;
  font-size: 1.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink-900);
}
.stele .household { margin: 22px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.stele .household li { display: flex; flex-direction: column; line-height: 1.25; }
.stele .household b { font: 400 1.02rem / 1.2 var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-900); }
.stele .household span { font-size: 0.86rem; color: var(--ink-500); }
.stele hr { border: 0; height: 2px; background: var(--marble-300); margin: 24px 0 16px; }
.stele h4 { margin: 0 0 8px; font: 400 1rem / 1 var(--font-display); letter-spacing: 0.16em; text-transform: uppercase; text-align: center; color: var(--gold-ink); }
.stele ol { margin: 0; padding: 0; list-style: none; }
.stele ol li { display: grid; grid-template-columns: 7.2em 1fr; gap: 12px; padding: 5px 0; border-top: 1px solid rgba(124, 106, 84, 0.2); font-size: 0.98rem; }
.stele ol li:first-child { border-top: 0; }
.stele ol .yr { font-family: var(--font-display); letter-spacing: 0.06em; color: var(--ink-500); }
.stele figcaption { margin-top: 20px; text-align: center; font-size: 0.82rem; color: var(--ink-500); }

/* ---------- Säulen: Bild und Text im Wechsel, keine Karten ---------- */
.pillars { display: grid; gap: clamp(56px, 8vw, 104px); margin-top: clamp(40px, 6vw, 72px); }
.pillar { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.pillar:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.pillar:nth-child(even) .pillar-img { order: 2; }
.pillar-img { margin: 0; }
.pillar-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 4px; box-shadow: 0 2px 4px rgba(60, 40, 20, 0.1), 0 18px 40px rgba(40, 25, 10, 0.22); }
.pillar-img figcaption { margin-top: 10px; font-size: 0.88rem; color: var(--ink-500); }
.pillar h3 { font-size: var(--step-3); color: var(--accent-strong); }
.pillar ul { margin: 18px 0 0; padding-left: 1.1em; max-width: var(--measure); }
.pillar li + li { margin-top: 8px; }
.pillar li::marker { color: var(--gold); }

/* ---------- Kamerafahrt über der Galerie: echtes Spielmaterial, stumm ---------- */
.film { margin: 44px 0 0; }
.film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 3px; background: rgb(var(--start-dusk)); }
.film figcaption { margin-top: 10px; font-size: 0.88rem; color: var(--start-cream-soft); }
.film + .gallery { margin-top: 28px; }

/* ---------- Galerie ---------- */
/* Zwei große (8 × 2) und sieben kleine (4 × 1) Kacheln füllen genau fünf Reihen; dense zieht ein kleines Bild
   in die Lücke neben dem großen Nachtbild */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-flow: dense; gap: 12px; margin-top: 44px; }
.gallery a { display: block; position: relative; overflow: hidden; border-radius: 3px; grid-column: span 4; }
.gallery a:nth-child(1), .gallery a:nth-child(6) { grid-column: span 8; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 300ms var(--ease); }
.gallery a:hover img { transform: scale(1.03); }
.gallery span { position: absolute; left: 10px; bottom: 8px; font-size: 0.85rem; color: var(--start-cream); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1600px); }
.lightbox::backdrop { background: rgba(10, 12, 16, 0.88); }
.lightbox img { max-height: 86vh; width: auto; margin: 0 auto; }
.lightbox p { color: var(--start-cream); text-align: center; margin-top: 10px; }
.lightbox button { position: fixed; top: 14px; right: 18px; min-width: 44px; min-height: 44px; font-size: 1.6rem; background: none; border: 0; color: var(--start-cream); cursor: pointer; }

/* ---------- Weg: echte Reihenfolge, darum nummeriert ---------- */
.road { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); gap: clamp(40px, 7vw, 96px); align-items: start; margin-top: 44px; }
.timeline { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.timeline li { counter-increment: step; position: relative; padding: 0 0 30px 64px; }
.timeline li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -4px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font: 400 1.25rem / 1 var(--font-display);
  color: var(--gold-ink);
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--marble-50);
}
.timeline li::after { content: ''; position: absolute; left: 21px; top: 42px; bottom: 0; width: 1px; background: var(--marble-300); }
.timeline li:last-child::after { display: none; }
.timeline .when { font: 400 1.25rem / 1.2 var(--font-display); color: var(--accent-strong); }
/* Status je Meilenstein: erreicht = gefüllter Kreis mit Haken, in Arbeit = Ring in Akzentfarbe, geplant = wie bisher */
.road-status { display: inline-block; margin-left: 8px; padding: 1px 9px; border: 1px solid var(--marble-300); border-radius: 999px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-500); vertical-align: 2px; }
.timeline li.is-done::before { content: '✓'; color: var(--marble-50); background: var(--gold-ink); border-color: var(--gold-ink); }
.timeline li.is-done::after { background: var(--gold); }
.timeline li.is-done .road-status { color: var(--gold-ink); border-color: var(--gold); }
.timeline li.is-now::before { color: var(--accent-strong); border: 2px solid var(--accent-strong); box-shadow: 0 0 0 5px rgba(23, 85, 117, 0.12); }
.timeline li.is-now .road-status { color: #fff; background: var(--accent-strong); border-color: var(--accent-strong); }
.road-more { margin-top: 6px; padding-left: 64px; }
.road-more a { color: var(--accent-strong); font-weight: 600; }
.timeline p { margin-top: 4px; max-width: 30em; }
.road-note { margin-top: 6px; font-size: 0.95rem; }

/* Steam-Karte (Vorschau des offiziellen Widgets) */
.steam-card { background: #1b2838; color: #c7d5e0; border-radius: 6px; overflow: hidden; box-shadow: 0 18px 40px rgba(20, 20, 30, 0.3); }
.steam-card img { width: 100%; aspect-ratio: 920 / 430; object-fit: cover; }
.steam-card .sc-body { padding: 16px 18px 18px; }
.steam-card h3 { font: 700 1.15rem / 1.2 var(--font-ui); color: #fff; }
.steam-card p { font-size: 0.95rem; margin-top: 8px; color: #acb9c4; }
.steam-card .btn-steam { margin-top: 14px; width: 100%; justify-content: center; background: #1a9fff; color: #fff; border-radius: 3px; }
.steam-card .btn-steam:hover { background: #47bfff; }
.steam-frame { display: block; width: 100%; height: 190px; border: 0; }
.steam-note { margin-top: 10px; font-size: 0.88rem; }
[data-steam-mode='aus'] [data-steam] { display: none !important; }
/* Live (aus und live) zeigt keine Platzhalter: markierte Stellen und Entwurfsteile nur in der Vorschau */
html:not([data-steam-mode='vorschau']) .ph,
html:not([data-steam-mode='vorschau']) [data-draft],
[hidden] { display: none !important; }

/* ---------- Gemeinschaft ---------- */
.join { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 96px); align-items: start; }
.join .lead { margin-top: 18px; }
.join form { display: grid; gap: 10px; max-width: 30rem; margin-top: 26px; }
.join label { font-weight: 500; }
.join .field { display: flex; gap: 10px; flex-wrap: wrap; }
.join input[type='email'] {
  flex: 1 1 14rem;
  min-height: 48px;
  padding: 10px 14px;
  font: 400 1.05rem var(--font-ui);
  color: var(--ink-900);
  background: var(--marble-50);
  border: 1px solid var(--marble-300);
  border-radius: var(--radius-btn);
}
.join .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 0.9rem; line-height: 1.45; color: var(--start-cream-soft); cursor: pointer; }
.join .consent input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gold-light); }
.join .consent a { color: var(--gold-light); }
.join .fine { font-size: 0.9rem; color: var(--start-cream-soft); }
.join .form-msg { min-height: 1.4em; font-size: 0.95rem; color: var(--gold-light); }
/* Auf Meerblau kein Bronze (zwei gleich helle, gesättigte Töne flimmern): Knopf im Gold der Überschrift, dunkle Tinte */
.on-sea .btn-primary { background: var(--gold-light); color: var(--ink-900); border-color: var(--gold-light); font-weight: 600; }
.on-sea .btn-primary:hover { background: var(--start-cream); border-color: var(--start-cream); }
.join .btn[aria-busy='true'] { cursor: progress; opacity: 0.85; }
/* Bestätigung nach dem Eintragen: ersetzt das Formular, damit klar ist, dass die Adresse angekommen ist */
.join-done { max-width: 30rem; margin-top: 26px; padding: 22px 24px; border: 1px solid rgba(241, 223, 174, 0.45); border-radius: var(--radius-btn); background: rgba(255, 255, 255, 0.06); animation: fade-in 400ms var(--ease) both; }
.join-done:focus { outline: none; }
.join-done p + p { margin-top: 10px; }
.join-done-title { display: flex; align-items: center; gap: 12px; font: 400 var(--step-1) / 1.2 var(--font-display); color: var(--gold-light); }
.join-done-icon { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--gold-light); color: var(--ink-900); font: 700 1.1rem var(--font-ui); }
.join-done strong { color: var(--gold-light); font-weight: 600; overflow-wrap: anywhere; }
/* ---------- Dankesseite nach der Bestätigung (danke.html, en/danke.html) ---------- */
.thanks-hero { position: relative; min-height: 62svh; display: grid; align-items: end; color: var(--start-cream); background: rgb(var(--start-dusk)) url(/assets/img/hero-1880.webp) 50% 40% / cover; }
.thanks-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(var(--start-dusk), 0.94) 0%, rgba(var(--start-dusk), 0.5) 60%, rgba(var(--start-dusk), 0.2) 100%); }
.thanks-copy { position: relative; z-index: 1; max-width: 44rem; padding: 0 var(--gutter) clamp(40px, 8vh, 80px); }
.thanks-kicker { display: flex; align-items: center; gap: 12px; font: 400 1rem / 1 var(--font-greek); letter-spacing: 0.28em; color: var(--gold); }
.thanks-kicker .join-done-icon { letter-spacing: 0; }
.thanks-hero h1 { font: 400 clamp(2.4rem, 6vw, 3.8rem) / 1.08 var(--font-display); color: var(--gold-light); margin-top: 16px; }
.thanks-hero p { margin-top: 14px; font-size: 1.2rem; color: var(--start-cream-soft); max-width: 34em; }
.thanks-gifts { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.thanks-gifts h2 { font: 400 var(--step-3) / 1.15 var(--font-display); color: var(--gold-light); }
.thanks-gifts p { margin-top: 14px; max-width: 34em; }
.wall-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.wall-grid a { display: block; border-radius: var(--radius-btn); overflow: hidden; border: 1px solid rgba(241, 223, 174, 0.3); }
.wall-grid img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 300ms var(--ease); }
.wall-grid a:hover img { transform: scale(1.03); }
/* Handy-Hintergrund neben dem 2×2-Raster: 3,85 : 1 lässt das Hochformat (1080 : 2340) so hoch werden wie zwei 16:9-Reihen */
.wall-set { display: grid; grid-template-columns: minmax(0, 3.85fr) minmax(0, 1fr); gap: 12px; margin-top: 24px; }
.wall-set .wall-grid { margin-top: 0; }
.wall-phone { display: block; height: 100%; border-radius: var(--radius-btn); overflow: hidden; border: 1px solid rgba(241, 223, 174, 0.3); }
.wall-phone img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 300ms var(--ease); }
.wall-phone:hover img { transform: scale(1.03); }
.wall-phone-note { font-size: 0.95rem; color: var(--start-cream-soft); }
.wall-phone-note strong { color: var(--gold-light); font-weight: 600; }
.wall-phone-note a { color: var(--gold-light); }
.thanks-gifts .btn { margin-top: 22px; }
.demo-note { padding: 26px 28px; border: 1px solid rgba(241, 223, 174, 0.45); border-radius: var(--radius-btn); background: rgba(255, 255, 255, 0.06); }
.demo-note .btn-ghost { margin-top: 22px; }
@media (max-width: 760px) { .thanks-gifts { grid-template-columns: 1fr; } }
.join-done .link-btn { margin-top: 14px; padding: 0; border: 0; background: none; font: inherit; font-size: 0.95rem; color: var(--gold-light); text-decoration: underline; cursor: pointer; }
/* Werbung fürs Abonnieren: Plakette, drei Vorteile, Geschenk als Fächer aus Wallpapern */
.gift-badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 6px 14px 6px 10px; border: 1px solid rgba(241, 223, 174, 0.5); border-radius: 999px; font-size: 0.95rem; font-weight: 600; color: var(--gold-light); }
.gift-badge svg { width: 20px; height: 20px; flex: none; }
.perks { list-style: none; display: grid; gap: 14px; margin: 26px 0 0; padding: 0; max-width: 34rem; }
.perks li { display: flex; gap: 14px; align-items: flex-start; }
.perks p { margin: 0; line-height: 1.5; }
.perks strong { color: var(--gold-light); font-weight: 600; }
.perk-icon { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; margin-top: 1px; border-radius: 50%; border: 1px solid var(--gold-light); font: 400 0.95rem / 1 var(--font-display); color: var(--gold-light); }
.join-side { display: grid; gap: 40px; align-content: start; }
.gift { margin: 0; }
.gift-fan { position: relative; height: clamp(190px, 22vw, 260px); }
.gift-fan img { position: absolute; left: 50%; top: 50%; width: 72%; height: auto; border-radius: 8px; border: 2px solid var(--start-cream); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35); }
.gift-fan img:nth-child(1) { transform: translate(-72%, -58%) rotate(-9deg); }
.gift-fan img:nth-child(2) { transform: translate(-28%, -56%) rotate(7deg); }
.gift-fan img:nth-child(3) { transform: translate(-50%, -42%) rotate(-1deg); }
/* Fächer: beim Einblenden aus dem Stapel auffächern, beim Darüberfahren weiter spreizen. Ohne JS,
   bei „weniger Bewegung“ und im Druck steht er fertig (html.motion setzt nur motion.js) */
.gift-fan img { transition: transform 900ms var(--ease-out), box-shadow 300ms var(--ease); }
.gift-fan img:nth-child(2) { transition-delay: 80ms; }
html.motion .gift-fan:not(.is-in) img { transform: translate(-50%, -48%) rotate(0deg); transition-delay: 0ms; }
.gift-fan.is-in:hover img:nth-child(1), .gift:focus-within .gift-fan img:nth-child(1) { transform: translate(-80%, -60%) rotate(-13deg); }
.gift-fan.is-in:hover img:nth-child(2), .gift:focus-within .gift-fan img:nth-child(2) { transform: translate(-20%, -58%) rotate(11deg); }
.gift-fan.is-in:hover img:nth-child(3), .gift:focus-within .gift-fan img:nth-child(3) { transform: translate(-50%, -46%) rotate(-1deg) scale(1.04); box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45); }
@media (prefers-reduced-motion: reduce) { .gift-fan img { transition: none; } }
.gift figcaption { margin-top: 18px; max-width: 26em; color: var(--start-cream-soft); }
.gift figcaption strong { display: block; font: 400 var(--step-1) / 1.2 var(--font-display); color: var(--gold-light); margin-bottom: 6px; }
.discord { border-left: 1px solid rgba(246, 239, 224, 0.25); padding-left: clamp(24px, 4vw, 56px); }
.discord h3 { font-size: var(--step-2); color: var(--gold-light); }
.discord p { margin-top: 14px; max-width: 26em; }
.discord .btn { margin-top: 24px; }

/* ---------- Fragen ---------- */
.faq { max-width: 50rem; margin-top: 36px; }
.faq details { border-top: 1px solid var(--marble-300); }
.faq details:last-child { border-bottom: 1px solid var(--marble-300); }
.faq summary { cursor: pointer; padding: 18px 40px 18px 0; position: relative; font: 400 1.35rem / 1.3 var(--font-display); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 14px; font: 400 1.6rem / 1 var(--font-ui); color: var(--gold-ink); }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 0 20px; max-width: var(--measure); }

/* ---------- Fuß ---------- */
.site-foot { background: var(--ink-900); color: var(--start-cream-soft); padding: 48px var(--gutter) 40px; border-top: 1px solid rgba(184, 145, 47, 0.35); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.foot-by { --sanda-w: 160px; display: flex; align-items: center; gap: var(--sanda-space); }
.foot-by > div { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sanda-space); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; list-style: none; }
.foot-links a { text-decoration: none; display: inline-block; padding: 10px 0; }
.foot-links a:hover { color: var(--gold-light); }

/* ---------- Presse-Kit und Rechtliches ---------- */
.press-head { padding-top: 56px; padding-bottom: 56px; }
.press-head .lead { margin-top: 16px; }
.press-grid { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.facts { margin: 0; display: grid; gap: 14px; position: sticky; top: 24px; }
.facts div { border-top: 1px solid var(--marble-300); padding-top: 10px; }
.facts dt { font-size: 0.9rem; color: var(--ink-500); }
.facts dd { margin: 2px 0 0; font-weight: 500; }
.press-body h2 { font-size: var(--step-3); color: var(--accent-strong); margin-top: 56px; }
.press-body h2:first-child { margin-top: 0; }
.press-body p, .press-body ul { margin-top: 14px; max-width: var(--measure); }
/* ---------- Entwicklungsnotizen (neuigkeiten.html) ---------- */
.notes-nav { margin-top: 18px; }
.notes-nav a { color: var(--gold-light); font-weight: 600; }
.notes { display: grid; gap: clamp(56px, 8vw, 96px); }
.note { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.note-img { margin: 0; position: sticky; top: 24px; }
.note-img img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; box-shadow: 0 10px 28px rgba(28, 38, 48, 0.18); }
.note-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 0.95rem; color: var(--ink-500); }
.note-label { padding: 2px 10px; border: 1px solid var(--gold); border-radius: 999px; font-weight: 600; color: var(--gold-ink); }
.note-body h2 { margin-top: 10px; font: 400 var(--step-3) / 1.15 var(--font-display); color: var(--ink-900); }
.note-sec { margin-top: 26px; font: 600 0.85rem / 1 var(--font-ui); letter-spacing: 0.08em; text-transform: uppercase; }
.note-sec--new { color: var(--accent-strong); }
.note-sec--imp { color: var(--gold-ink); }
.note-sec--fix { color: var(--status-green-ink); }
.note-body ul { margin: 10px 0 0; padding-left: 1.1em; max-width: var(--measure); }
.note-body li { margin-top: 6px; line-height: 1.5; }
.notes-join { text-align: center; }
@media (max-width: 760px) { .note { grid-template-columns: 1fr; } .note-img { position: static; } }
.press-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 18px; }
.press-shots img { aspect-ratio: 16 / 9; object-fit: cover; border-radius: 3px; }
.logo-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.logo-row a { display: grid; place-items: center; width: 220px; height: 120px; padding: 14px; border: 1px solid var(--marble-300); border-radius: 6px; background: var(--marble-50); text-decoration: none; }
.logo-row a.dark { background: var(--ink-900); }
.logo-row img { max-height: 70px; width: auto; }
.logo-row .sanda-logo { --sanda-w: 170px; width: var(--sanda-w); max-height: none; } /* 25 px Rand im Feld = Schutzraum */
.legal { max-width: 46rem; margin: 0 auto; }
.legal h1 { font-size: var(--step-4); color: var(--accent-strong); }
.legal h2 { font-size: 1.5rem; margin-top: 36px; }
.legal p, .legal address { margin-top: 12px; font-style: normal; }

/* ---------- Schmal ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
  .people, .road, .join, .press-grid { grid-template-columns: 1fr; }
  .pillar, .pillar:nth-child(even) { grid-template-columns: 1fr; }
  .pillar:nth-child(even) .pillar-img { order: 0; }
  .gallery a, .gallery a:nth-child(1), .gallery a:nth-child(6) { grid-column: span 12; grid-row: auto; }
  .discord { border-left: 0; padding-left: 0; border-top: 1px solid rgba(246, 239, 224, 0.25); padding-top: 32px; }
  .facts { position: static; }
}
@media (max-width: 640px) {
  .hero { min-height: 92svh; }
  .hero picture img { object-position: 50% 30%; }
  .hero::after {
    background:
      linear-gradient(0deg, rgba(var(--start-dusk), 0.94) 0%, rgba(var(--start-dusk), 0.72) 50%, rgba(var(--start-dusk), 0) 78%),
      linear-gradient(180deg, rgba(var(--start-dusk), 0.6) 0%, rgba(var(--start-dusk), 0) 20%);
  }
  .hero-copy { padding-top: 220px; }
  .hero-caption { position: relative; right: auto; bottom: auto; padding: 0 var(--gutter) 16px; }
  .stele { padding: 76px 22px 36px; }
  .stele h3 { font-size: 1.45rem; }
  .stele .household { gap: 8px 12px; }
  .stele ol li { grid-template-columns: 6.4em 1fr; gap: 8px; }
  .btn { width: 100%; justify-content: center; flex-wrap: wrap; }
}
/* ---------- Bewegung ----------
 * Vier Momente, sonst Ruhe: Hero (Laden, Tiefe beim Scrollen), Stele als Inschrift, Säulen vom
 * Fundament her, Weg-Linie. Versteckt wird nur unter html.motion (setzt assets/motion.js), darum
 * bleibt ohne JS alles sichtbar. Animiert werden nur transform, opacity, clip-path und mask.
 */

/* Hero beim Laden: der griechische Name setzt sich, die Wortmarke wird von links ins Licht geholt.
   fill backwards: nach dem Ende fällt die Maske weg, der Textschatten bleibt ungeschnitten. */
.hero-greek { animation: greek-settle 1200ms var(--ease-out) backwards; }
.hero h1 { animation: light-sweep 1500ms var(--ease-out) 250ms backwards; }
.hero-claim, .hero-lede, .hero-actions, .hero-by { animation: fade-in 700ms var(--ease) backwards; }
/* Die Totale atmet wie der Startbildschirm im Spiel (Pendeln + Zoom-Atmen): langsam, kaum merklich, nur Transform */
/* auf picture, nicht auf img: das Bild trägt schon die Scroll-Parallaxe (hero-drift), beide Transforms würden sich überschreiben */
.hero picture { transform-origin: 62% 55%; animation: totale-breathe 46s ease-in-out infinite alternate; will-change: transform; }
@keyframes totale-breathe { from { transform: scale(1) translateX(0); } to { transform: scale(1.055) translateX(-1.2%); } }
.hero-claim { animation-delay: 800ms; }
.hero-lede { animation-delay: 920ms; }
.hero-actions { animation-delay: 1040ms; }
.hero-by { animation-delay: 1160ms; }
@keyframes greek-settle { from { opacity: 0; letter-spacing: 0.75em; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes light-sweep {
  from, to {
    -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent 60%);
    mask-image: linear-gradient(90deg, #000 40%, transparent 60%);
    -webkit-mask-size: 300% 100%;
    mask-size: 300% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
  }
  from { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
  to { -webkit-mask-position: 0 0; mask-position: 0 0; }
}

/* Stele: Gesims zieht sich, dann werden die Zeilen von links gemeißelt, die Chronik ab Jahr 1 */
.stele h3 { --d: 450ms; }
.stele .household li { --d: calc(600ms + var(--i, 0) * 60ms); }
.stele h4 { --d: 1000ms; }
.stele ol li { --d: calc(1100ms + var(--i, 0) * 110ms); }
.motion .stele[data-reveal] { opacity: 0; }
.motion .stele[data-reveal]::before,
.motion .stele[data-reveal] hr { transform: scaleX(0); }
.motion .stele[data-reveal] h3,
.motion .stele[data-reveal] .household li,
.motion .stele[data-reveal] h4,
.motion .stele[data-reveal] ol li {
  -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent 60%);
  mask-image: linear-gradient(90deg, #000 40%, transparent 60%);
  -webkit-mask-size: 300% 100%;
  mask-size: 300% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 100% 0;
  mask-position: 100% 0;
}
.motion .stele[data-reveal] figcaption { opacity: 0; }
.motion .stele.is-in { opacity: 1; transition: opacity 500ms var(--ease); }
.motion .stele.is-in::before { transform: none; transition: transform 800ms var(--ease-out) 200ms; }
.motion .stele.is-in hr { transform: none; transition: transform 800ms var(--ease-out) 900ms; }
.motion .stele.is-in h3,
.motion .stele.is-in .household li,
.motion .stele.is-in h4,
.motion .stele.is-in ol li {
  -webkit-mask-position: 0 0;
  mask-position: 0 0;
  transition: -webkit-mask-position 800ms var(--ease-out) var(--d), mask-position 800ms var(--ease-out) var(--d);
}
.motion .stele.is-in figcaption { opacity: 1; transition: opacity 600ms var(--ease) 2000ms; }

/* Säulen: das Bild richtet sich vom Fundament her auf, der Text folgt.
   Endzustand inset(-80px) statt 0, sonst schneidet der Ausschnitt den Bildschatten ab. */
.motion .pillar[data-reveal] .pillar-img { clip-path: inset(100% 0 0 0); }
.motion .pillar[data-reveal] .pillar-img img { transform: scale(1.08); }
.motion .pillar[data-reveal] > div { opacity: 0; }
.motion .pillar.is-in .pillar-img { clip-path: inset(-80px); transition: clip-path 1000ms var(--ease-out); }
.motion .pillar.is-in .pillar-img img { transform: none; transition: transform 1400ms var(--ease-out); }
.motion .pillar.is-in > div { opacity: 1; transition: opacity 700ms var(--ease) 350ms; }

/* Am Scrollen hängende Effekte nur, wo der Browser sie kann; sonst bleibt das Bild ruhig */
@supports (animation-timeline: view()) {
  /* Hero: Bild gleitet langsamer als der Text, die Abenddämmerung zieht an */
  .hero { view-timeline: --hero block; }
  .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgb(var(--start-dusk));
    opacity: 0;
    pointer-events: none;
    animation: hero-dim linear both;
    animation-timeline: --hero;
    animation-range: exit 0% exit 100%;
  }
  .hero picture img, .hero-copy {
    animation-timeline: --hero;
    animation-range: exit 0% exit 100%;
    animation-fill-mode: both;
    animation-timing-function: linear;
  }
  .hero picture img { animation-name: hero-drift; }
  .hero-copy { animation-name: hero-lift; }
  @keyframes hero-dim { to { opacity: 0.7; } }
  @keyframes hero-drift { to { transform: translateY(16%) scale(1.04); } }
  @keyframes hero-lift { to { transform: translateY(-48px); opacity: 0.15; } }

  /* Weg: die Linie zeichnet sich mit dem Scrollen, jeder Schritt tritt hervor, wenn sie ihn erreicht */
  .timeline li { view-timeline: --step block; }
  .timeline li::before { animation: road-reach linear both; animation-timeline: --step; animation-range: cover 38% cover 48%; }
  .timeline li::after { transform-origin: top; animation: road-draw linear both; animation-timeline: --step; animation-range: cover 45% cover 62%; }
  @keyframes road-reach { from { opacity: 0.3; transform: scale(0.82); } }
  @keyframes road-draw { from { transform: scaleY(0); } }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
