/* Prolatiq – Visual Sports Cards · Designsystem Prism */

/* Schriften werden selbst ausgeliefert (kein Google Fonts), Lizenz: SIL OFL */
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-var.woff") format("woff"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Unbounded"; src: url("/assets/fonts/unbounded-var.woff") format("woff"); font-weight: 200 900; font-style: normal; font-display: swap; }

:root,
:root[data-theme="dark"] {
  --bg: #0A0B0D;
  --surface: #121418;
  --surface-2: #1A1D22;
  --border: #23272E;
  --text: #F5F7FA;
  --muted: #A4AAB4;
  --signet-right: #F5F7FA;
  --btn-bg: #F5F7FA;
  --btn-text: #0A0B0D;
  --stage: radial-gradient(circle at 50% 40%, #1C2028 0%, #0E1014 70%);
  --shadow: 0 40px 80px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #F5F7FA;
  --surface: #FFFFFF;
  --surface-2: #ECEEF2;
  --border: #D9DDE3;
  --text: #0A0B0D;
  --muted: #50565F;
  --signet-right: #0A0B0D;
  --btn-bg: #0A0B0D;
  --btn-text: #F5F7FA;
  --stage: radial-gradient(circle at 50% 40%, #FFFFFF 0%, #E6E9EE 75%);
  --shadow: 0 40px 80px rgba(10, 11, 13, 0.25);
  color-scheme: light;
}

:root {
  --holo: linear-gradient(135deg, #7CF7E4 0%, #8A7CFF 35%, #FF7CC8 65%, #FFD27C 100%);
  --golf: #3DDC97;
  --darts: #FF5C7A;
  --tennis: #E6F35A;
  --radius: 20px;
  --display: "Unbounded", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a { color: inherit; }
img, svg { display: block; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin: 0;
}

h1 { font-size: clamp(38px, 6vw, 68px); }
h2 { font-size: clamp(30px, 4vw, 44px); }
h3 { font-size: 20px; font-weight: 600; letter-spacing: 0.02em; }

.lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--muted);
  max-width: 560px;
  margin: 20px 0 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 10px 16px;
  background: var(--btn-bg);
  color: var(--btn-text);
  border-radius: 999px;
  z-index: 100;
}
.skip-link:focus { left: 16px; }

:focus-visible {
  outline: 2px solid #8A7CFF;
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, opacity 0.15s ease, background-color 0.3s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--btn-bg); color: var(--btn-text); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--muted); }

/* ---------- Navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.brand .signet { width: 32px; height: 32px; }
.brand .wordmark { height: 18px; width: auto; }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .btn { gap: 0; }

.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.theme-toggle:hover { border-color: var(--muted); }

.lang-switch {
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}
.lang-switch:hover { border-color: var(--muted); }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ---------- Signet ---------- */

.signet .sig-right { fill: var(--signet-right); }

/* ---------- Hero / Showcase ----------
   Desktop: Die Karte bleibt beim Scrollen stehen (sticky), wandert mit und
   dreht sich auf die Rückseite, während links die Texte vorbeiziehen.
   Handy: Die Karte dreht sich, während sie durchs Bild läuft. */

.showcase { position: relative; padding: 24px 0 48px; }

.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.showcase-copy { display: flex; flex-direction: column; }

.chapter {
  min-height: 52vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 0;
}
.chapter:first-child { min-height: calc(100vh - 160px); }
.chapter:last-child { min-height: calc(100vh - 160px); }
.chapter h2 { margin-bottom: 4px; }

.chapter-facts {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  color: var(--muted);
}
.chapter-facts li { display: flex; gap: 12px; }
.chapter-facts li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 10px;
  border-radius: 2px;
  background: var(--holo);
  transform: rotate(45deg);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.showcase-pin {
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  display: flex;
  align-items: center;
}

.stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.05;
  max-height: calc(100vh - 120px);
  border-radius: 28px;
  background: var(--stage);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: var(--persp, 1800px);
  overflow: hidden;
}

.flip-hint {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: opacity 0.4s ease;
  white-space: nowrap;
}
.flip-hint svg { animation: hint 1.8s ease-in-out infinite; }
@keyframes hint { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* ---------- 3D-Sammelkarte (public/assets/card3d.js) ----------
   Aufbau: Vorder- und Rückseite als eigene Flächen, dazwischen die Kartenkante (mehrere dünne Lagen).
   Jede Seite: Druckbild (SVG) + Folie (nur auf den Folienflächen, Maske) + Glanz + Schattierung.
   Folie, Glanz und Schattierung werden aus Kartenwinkel und Studiolicht berechnet (CSS-Variablen). */

.card-slot {
  position: relative;
  width: min(340px, 72%, calc((100vh - 210px) / 1.4));
  aspect-ratio: 635 / 889;
  z-index: 1;
}
.card3d {
  --t: 3px;                 /* Kartendicke, setzt card3d.js passend zur Grösse */
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  cursor: zoom-in;
  touch-action: pan-y;      /* auf der Seite: senkrechtes Scrollen bleibt frei */
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
.card3d:focus-visible::after {
  content: ""; position: absolute; inset: -10px; border-radius: 24px;
  border: 2px solid #8A7CFF; pointer-events: none;
}
.card3d-rot {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  will-change: transform;
}
.card3d-face {
  position: absolute;
  inset: 0;
  border-radius: 4.72% / 3.37%;
  overflow: hidden;
  isolation: isolate;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(calc(var(--t) / 2));
  background: #0D0C1A;
}
.card3d-face.is-back { transform: rotateY(180deg) translateZ(calc(var(--t) / 2)); }
.card3d-face > svg { display: block; width: 100%; height: 100%; }
.card3d-face > span { position: absolute; inset: 0; pointer-events: none; }

/* Folie: Beugungsfarben, die sich mit dem Winkel verschieben; die Facetten der Prägung brechen sie auf.
   Nur auf den Folienflächen (Maske aus tools/build_showcase.py), Stärke je nach Lichteinfall (--fi). */
.cf-foil, .cf-glint {
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}
.cf-foil {
  opacity: var(--fi, 0);
  mix-blend-mode: overlay;
  background-image:
    url("/assets/foil/facets.webp"),
    repeating-linear-gradient(118deg,
      #FF8FBA 0%, #B79DFF 7%, #7FCBFF 14%, #6CEBC6 21%, #F6E58A 28%, #FF8FBA 35%);
  background-size: 30% auto, 260% 260%;
  background-position: 0 0, var(--fx, 50%) var(--fy, 50%);
  background-blend-mode: overlay, normal;
}
/* Glitzer: einzelne Facetten blitzen auf, wenn ein schmales Lichtband über sie wandert (nur im Spiegelwinkel) */
.cf-glint {
  opacity: var(--gi, 0);
  mix-blend-mode: screen;
  background-image:
    url("/assets/foil/glints.webp"),
    linear-gradient(118deg, rgba(255,255,255,0) 44%, rgba(255,255,255,0.85) 50%, rgba(255,255,255,0) 56%);
  background-size: 30% auto, 300% 300%;
  background-position: 0 0, var(--bx, 50%) var(--by, 50%);
  background-blend-mode: multiply, normal;
}
.is-front .cf-foil { -webkit-mask-image: url("/assets/cards/showcase-front-foil.webp"); mask-image: url("/assets/cards/showcase-front-foil.webp"); }
.is-back .cf-foil { -webkit-mask-image: url("/assets/cards/showcase-back-foil.webp"); mask-image: url("/assets/cards/showcase-back-foil.webp"); }
.is-front .cf-glint { -webkit-mask-image: url("/assets/cards/showcase-front-glint.webp"); mask-image: url("/assets/cards/showcase-front-glint.webp"); }
.is-back .cf-glint { -webkit-mask-image: url("/assets/cards/showcase-back-glint.webp"); mask-image: url("/assets/cards/showcase-back-glint.webp"); }
/* Glanz der Laminierung: weiches Studiolicht, wandert gegenläufig zur Drehung */
.cf-gloss {
  opacity: var(--go, 0);
  mix-blend-mode: screen;
  background: radial-gradient(ellipse 62% 48% at var(--gx, 30%) var(--gy, 20%),
    rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0.09) 45%, rgba(255, 255, 255, 0) 72%);
}
/* Schattierung: Seite wird dunkler, je weiter sie sich vom Licht wegdreht */
.cf-shade { background: #000; opacity: var(--sh, 0); }

/* Kartenkante: dünne Lagen zwischen den Seiten, sichtbar beim Neigen */
.card3d-edge { position: absolute; inset: 0; transform-style: preserve-3d; }
.card3d-edge i {
  position: absolute;
  inset: 0;
  border-radius: 4.72% / 3.37%;
  background: linear-gradient(90deg, #6E747C, #8F959D 50%, #6E747C);
}

/* Kontaktschatten auf der Bühne */
.card-shadow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(340px, 72%, calc((100vh - 210px) / 1.4));
  aspect-ratio: 635 / 889;
  transform: translate(-50%, -50%) translateY(8%) scaleX(var(--shw, 1));
  border-radius: 6%;
  background: rgba(0, 0, 0, 0.55);
  filter: blur(28px);
  opacity: var(--sho, 0.6);
  pointer-events: none;
}
:root[data-theme="light"] .card-shadow { background: rgba(10, 11, 13, 0.32); }

.flip-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: opacity 0.4s ease;
  white-space: nowrap;
}
.flip-hint .hint-sep { opacity: 0.5; }
.stage-btns { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: none; gap: 8px; }
.stage-btns .btn { min-height: 40px; padding: 0 16px; font-size: 14px; background: var(--surface); }

/* Ohne Bewegung (Systemeinstellung): keine Scroll-Drehung, Knöpfe zum Umdrehen und Ansehen */
:root.no-scroll-fx .flip-hint { display: none; }
:root.no-scroll-fx .stage-btns { display: inline-flex; }

/* ---------- Vollbild-Ansicht ---------- */
:root.inspect-open { overflow: hidden; }
.inspect { position: fixed; inset: 0; z-index: 200; }
.inspect[hidden] { display: none; }
.inspect-bg {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 42%, #1A1D23 0%, #08090B 70%);
  opacity: 0;
  transition: opacity 0.45s ease;
}
:root[data-theme="light"] .inspect-bg { background: radial-gradient(circle at 50% 42%, #FFFFFF 0%, #DDE1E7 75%); }
.inspect.is-open .inspect-bg { opacity: 1; }
.inspect-stage {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.inspect-stage.is-dragging { cursor: grabbing; }
.inspect-slot {
  position: relative;
  height: min(74vh, 74svh, calc((100vw - 48px) * 1.4));
  aspect-ratio: 635 / 889;
}
.inspect-slot .card3d { cursor: inherit; touch-action: none; }
.inspect-close {
  position: absolute; z-index: 3;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  width: 48px; height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #F5F7FA;
  display: grid; place-items: center;
  cursor: pointer;
  opacity: 0; transition: opacity 0.35s ease 0.1s;
}
.inspect-bar {
  position: absolute; z-index: 3;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  opacity: 0; transition: opacity 0.35s ease 0.1s;
}
.inspect-btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #F5F7FA;
  font: 600 15px var(--body);
  cursor: pointer;
}
:root[data-theme="light"] .inspect-close, :root[data-theme="light"] .inspect-btn { color: #0A0B0D; border-color: rgba(10, 11, 13, 0.16); background: rgba(255, 255, 255, 0.7); }
.inspect-hint {
  position: absolute; z-index: 2; pointer-events: none; left: 50%; bottom: calc(max(20px, env(safe-area-inset-bottom)) + 62px); transform: translateX(-50%);
  margin: 0; font-size: 13px; letter-spacing: 0.06em; color: #A4AAB4; white-space: nowrap;
  opacity: 0; transition: opacity 0.5s ease;
}
.inspect.is-open .inspect-close, .inspect.is-open .inspect-bar, .inspect.is-open .inspect-hint { opacity: 1; }
.inspect.is-open .inspect-hint.is-done { opacity: 0; }
.inspect-close:focus-visible, .inspect-btn:focus-visible { outline: 2px solid #8A7CFF; outline-offset: 3px; }
@media (max-height: 520px) and (orientation: landscape) {
  .inspect-slot { height: 82vh; }
  .inspect-hint { display: none; }
  .inspect-bar { left: auto; right: max(16px, env(safe-area-inset-right)); transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .inspect-bg, .inspect-close, .inspect-bar, .inspect-hint { transition: none; }
}

/* ---------- Abschnitte ---------- */

.section { padding: 96px 0; border-top: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: 48px; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Sportlinien */
.sport { display: flex; flex-direction: column; gap: 18px; }
.sport-head { display: flex; align-items: center; gap: 12px; }
.sport-bar {
  width: 10px;
  height: 30px;
  border-radius: 3px;
  transform: skewX(-18deg);
}
.sport-name { font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: 0.06em; }
.sport-by { font-size: 11px; letter-spacing: 0.2em; color: var(--muted); }
.sport p { margin: 0; color: var(--muted); }
.status {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
}
.status-live { background: var(--btn-bg); color: var(--btn-text); border-color: transparent; }
.sport .btn { align-self: flex-start; margin-top: auto; }

/* Ablauf */
.step-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 40px;
  line-height: 1;
  background: var(--holo);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 20px;
}
.step h3 { margin-bottom: 10px; }
.step p { margin: 0; color: var(--muted); }

/* Seltenheitsstufen: leere Karten in den Veredelungen der Golfdex-App (Folien-Texturen aus public/golfdex/foil) */
.tiers {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}
.tiers-note { margin: 24px 0 0; color: var(--muted); max-width: 680px; }
.tier { display: flex; flex-direction: column; gap: 12px; }
.tier-card {
  position: relative;
  aspect-ratio: 63.5 / 88.9;
  border-radius: 12px;
  padding: 5px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}
.tier-card > div {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background: radial-gradient(120% 90% at 30% 15%, #1E232B 0%, #0E1115 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  overflow: hidden;
}
/* feines Papierkorn wie auf der Karte, nur angedeutet */
.tier-card > div::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("/assets/foil/grain.webp"); background-size: 160px; opacity: 0.07; mix-blend-mode: screen;
}
/* Holo (Albatros): Rahmen und Fläche holografisch mit Splitter-Muster */
.tier-holo, .tier-holo > div {
  background: url("/assets/foil/shards.webp"), linear-gradient(115deg, #7FE7FF 0%, #B9A6FF 18%, #FFFFFF 32%, #FF9EDB 48%, #9CF5D5 64%, #FFE7A3 80%, #7FB8FF 100%);
  background-size: 180px, 300% 300%;
  background-blend-mode: overlay, normal;
  animation: tierShine 7s ease-in-out infinite alternate;
}
.tier-holo > div { opacity: 0.92; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6); }
/* Reverse Holo (Hole in One): Rahmen holo, Fläche Silber mit dezenten Fairway-Mähstreifen (wie in der App) */
.tier-reverse {
  background: url("/assets/foil/shards.webp"), linear-gradient(115deg, #7FE7FF 0%, #B9A6FF 20%, #FFFFFF 40%, #FF9EDB 60%, #9CF5D5 80%, #7FB8FF 100%);
  background-size: 180px, 300% 300%;
  background-blend-mode: overlay, normal;
  animation: tierShine 7s ease-in-out infinite alternate;
}
.tier-reverse > div {
  background: linear-gradient(135deg, #2A2F36 0%, #8C949E 45%, #D9DEE4 55%, #3A4048 100%);
}
.tier-reverse > div::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("/assets/foil/fairway.webp"); background-size: 220px; mix-blend-mode: screen; opacity: .2;
}
.tier-gold { background: linear-gradient(135deg, #8A6514 0%, #C9A227 20%, #FFF1A8 45%, #B8891E 62%, #F4D774 82%, #8E6A15 100%); }
.tier-silver { background: linear-gradient(135deg, #6F767C 0%, #B9BEC2 22%, #F4F5F6 45%, #9AA0A5 62%, #D9DCDF 82%, #767D83 100%); }
.tier-copper { background: linear-gradient(135deg, #5A2414 0%, #B4583A 22%, #F0B293 45%, #8E3F24 62%, #D98A66 82%, #6A2C18 100%); }
/* Eisen (über Par): matt, ohne Glanz */
.tier-iron { background: linear-gradient(135deg, #3E4348 0%, #6B7177 50%, #4A5056 100%); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2); }
.tier-iron > div { background: radial-gradient(120% 90% at 30% 15%, #2A2E33 0%, #16191C 70%); }
/* Glanzlicht auf Metall */
.tier-gold::after, .tier-silver::after, .tier-copper::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.35) 45%, transparent 60%);
  background-size: 250% 250%;
  animation: tierShine 6s ease-in-out infinite alternate;
}
@keyframes tierShine { from { background-position: 0% 50%, 0% 50%; } to { background-position: 100% 50%, 100% 50%; } }
@media (prefers-reduced-motion: reduce) {
  .tier-holo, .tier-holo > div, .tier-reverse, .tier-gold::after, .tier-silver::after, .tier-copper::after { animation: none; }
}
.tier strong { font-size: 16px; }
.tier span { color: var(--muted); font-size: 15px; }

/* Sportlinien: Golfdex (live) und geplante Linien */
.section-head .lead { margin-top: 16px; max-width: 720px; }
.lines { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 20px; align-items: stretch; }
.lines-planned { display: flex; flex-direction: column; gap: 14px; }
.line-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.line-tile {
  display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 14px 18px;
  border: 1px solid var(--border); border-radius: 16px; background: var(--surface);
}
.line-tile > div { min-width: 0; }
.line-tile .sport-bar { flex: none; }
.line-name { font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: 0.06em; overflow-wrap: anywhere; }
.line-more { border-style: dashed; background: transparent; justify-content: center; }
.line-more .line-name { font-family: var(--body); font-weight: 600; letter-spacing: 0; color: var(--muted); }

/* Druckkarten */
.print {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.print-visual {
  border-radius: 28px;
  background: var(--stage);
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.print-stack { position: relative; width: 40%; aspect-ratio: 5 / 7; }
.print-stack div {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 4px;
  background: var(--holo);
  box-shadow: var(--shadow);
}
.print-stack div::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 8px;
  background: #101318;
}
.print-stack div:nth-child(1) { transform: rotate(-12deg) translateX(-30%); background: #2A2E35; }
.print-stack div:nth-child(2) { transform: rotate(-4deg) translateX(-10%); background: #8E949E; }
.print-stack div:nth-child(3) { transform: rotate(6deg) translateX(14%); }
.print ul { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.print li { display: flex; gap: 12px; color: var(--muted); }
.print li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 10px;
  border-radius: 2px;
  background: var(--holo);
  transform: rotate(45deg);
}

/* Warteliste */
.waitlist {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: clamp(28px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.form { display: grid; gap: 20px; min-width: 0; }
.form .btn { white-space: normal; text-align: center; }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-size: 14px; font-weight: 600; }
.field input[type="email"] {
  width: 100%; min-width: 0; box-sizing: border-box;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}
.field input[type="email"]:focus { border-color: #8A7CFF; outline: none; box-shadow: 0 0 0 3px rgba(138,124,255,0.3); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  font-size: 15px;
}
.check input { width: 18px; height: 18px; accent-color: #8A7CFF; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile:empty { display: none; }
.form-note { font-size: 13px; color: var(--muted); margin: 0; }
.form-status { min-height: 24px; font-weight: 600; margin: 0; }
.form-status.ok { color: #1FA971; }
:root[data-theme="dark"] .form-status.ok { color: #3DDC97; }
.form-status.err { color: #D6334F; }
:root[data-theme="dark"] .form-status.err { color: #FF7C93; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0 48px; }
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; list-style: none; margin: 0; padding: 0; }
.footer-links a { text-decoration: none; color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--text); }
.copy { color: var(--muted); font-size: 14px; margin: 0; }

/* Rechtsseiten */
.legal { padding: 64px 0 96px; max-width: 760px; }
.legal h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 32px; }
.legal h2 { font-size: 22px; font-weight: 600; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--text); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .showcase-grid, .print, .waitlist { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .showcase-grid { gap: 0; }
  .showcase-copy { display: contents; }
  .chapter { min-height: 0; padding: 40px 0; }
  .chapter:first-child { min-height: 0; padding-top: 24px; order: 1; }
  .chapter:last-child { min-height: 0; }
  .chapter:nth-child(2) { order: 2; padding-bottom: 24px; }
  .showcase-pin { position: relative; top: 0; height: auto; order: 3; display: block; }
  .chapter:nth-child(3) { order: 4; }
  .stage { aspect-ratio: 4 / 5; max-height: none; }
  .card-slot, .card-shadow { width: min(320px, 78%, calc((100vh - 150px) / 1.4), calc((100svh - 150px) / 1.4)); }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .lines { grid-template-columns: minmax(0, 1fr); }
}
/* Menülinks erst ab genug Breite (deutsch ist länger), sonst ragen die Knöpfe über den Rand */
@media (max-width: 1040px) {
  .nav-links { display: none; }
}
/* Handy quer: Bühne so hoch wie der Bildschirm, Karte ganz sichtbar */
@media (max-width: 900px) and (max-height: 520px) and (orientation: landscape) {
  .stage { aspect-ratio: auto; height: calc(100svh - 96px); min-height: 260px; }
}
@media (max-width: 560px) {
  .line-tiles { grid-template-columns: minmax(0, 1fr); }
  .section { padding: 72px 0; }
}

@media (max-width: 540px) {
  .nav { gap: 10px; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn { padding: 0 14px; }
  .nav-actions .btn .long { display: none; }
}
/* sehr schmale Handys (320 px): nur das Signet */
@media (max-width: 374px) {
  .brand .wordmark { display: none; }
}
@media (max-width: 420px) {
  .container { padding: 0 16px; }
  .brand { gap: 8px; }
  .brand .signet { width: 28px; height: 28px; }
  .brand .wordmark { height: 13px; }
}

/* Quellen: lange Liste der Bildnachweise */
.legal ul.credits { columns: 2; column-gap: 32px; padding-left: 18px; font-size: 14px; }
.legal ul.credits li { break-inside: avoid; margin-bottom: 6px; }
@media (max-width: 700px) { .legal ul.credits { columns: 1; } }

/* Druckkarten: Schreibtisch-Szene */
.print-visual { overflow: hidden; padding: 0; background: #231509; }
.print-visual .desk-scene { width: 100%; height: 100%; display: block; }
.print-visual.print-photo { aspect-ratio: 1600 / 893; }
.print-visual .desk-photo { width: 100%; height: 100%; display: block; object-fit: cover; }
