/* MiamiVibeCode · Resurrect · Wartelisten-Seite
   Tokens: siehe CLAUDE.md, Abschnitt 6a */

/* Archivo als variable Schrift: Gewicht 100–900, Breite 62–125 %. Wir nutzen 125 % (Expanded). */
@font-face { font-family: "Archivo"; font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; src: url("../fonts/archivo-latin-variable.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); }

:root {
  --pink: #FF71CE;
  --cyan: #01CDFE;
  --purple: #B967FF;
  --sun: #FFFB96;
  --ground: #F4EFFF;
  --ink: #1C1548;
  --ink-soft: #4A4178;
  --link: #7A3CFF;
  --line: #CFC4F2;
  --on-dark-soft: #CFC4F2;

  --display: "Archivo", "Arial Black", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, sans-serif;

  /* Typo-Skala, Verhältnis 1,25 (große Terz) ab 18 px Grundschrift */
  --fs-xs: 14px;                          /* Kleingedrucktes */
  --fs-sm: 16px;                          /* UI: Labels, Navigation, Buttons, Notizen */
  --fs-base: 18px;                        /* Fließtext */
  --fs-lg: clamp(18px, 1.6vw + 12px, 22px); /* Einleitung */
  --fs-h3: 22px;
  --fs-h2: clamp(28px, 3.2vw + 16px, 44px);
  --fs-h1: clamp(36px, 6.2vw + 12px, 84px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: var(--fs-base); line-height: 1.55; font-kerning: normal; }
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 10; background: var(--ground); color: var(--ink); padding: 10px 16px; border-radius: 4px; font-size: var(--fs-sm); }
.skip:focus { top: 16px; }

/* ---------- Hierarchie: eine Regel pro Ebene, überall gleich ---------- */
h1, h2, h3 { font-family: var(--display); font-stretch: 125%; margin: 0; text-wrap: balance; overflow-wrap: break-word; }
h1 { font-weight: 800; font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -0.015em; }
h2 { font-weight: 800; font-size: var(--fs-h2); line-height: 1.1;  letter-spacing: -0.01em; }
h3 { font-weight: 700; font-size: var(--fs-h3); line-height: 1.2; }
p, li { text-wrap: pretty; }
p { margin: 0; }
:lang(de) p, :lang(de) li { hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 10 4 4; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- Hero ---------- */
/* Text steht auf dunklem Himmel, Sonne, Palmen und Fader liegen als Bühne darunter. */
.hero { position: relative; overflow: hidden; color: var(--ground); background: var(--ink); isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; background: #0F1450; opacity: var(--mix, 0); z-index: -2; }
.stage { position: relative; isolation: isolate; height: 460px; --horizon: 60%; --horizon-px: 276px; --sun: min(380px, 72vw); }
.scene, .scene > div { position: absolute; inset: 0; }
.scene { z-index: 0; }
.palm { z-index: 1; }
.sky { position: absolute; left: 0; right: 0; top: 0; height: var(--horizon); }
.sun { position: absolute; left: 50%; top: var(--horizon); width: var(--sun); height: var(--sun); margin-left: calc(var(--sun) / -2); margin-top: calc(var(--sun) * -0.72); border-radius: 50%;
  -webkit-mask-image: linear-gradient(180deg, #000 52%, transparent 52%, transparent 57%, #000 57%, #000 64%, transparent 64%, transparent 69%, #000 69%, #000 75%, transparent 75%, transparent 81%, #000 81%);
          mask-image: linear-gradient(180deg, #000 52%, transparent 52%, transparent 57%, #000 57%, #000 64%, transparent 64%, transparent 69%, #000 69%, #000 75%, transparent 75%, transparent 81%, #000 81%); }
.floor { position: absolute; left: 0; right: 0; top: var(--horizon); bottom: 0; overflow: hidden; }
.floor::before { content: ""; position: absolute; left: -50%; width: 200%; top: 0; height: 640px; transform: perspective(320px) rotateX(58deg); transform-origin: 50% 0; background-image: linear-gradient(90deg, var(--grid) 2px, transparent 2px), linear-gradient(180deg, var(--grid) 2px, transparent 2px); background-size: 64px 44px; }

.deck-a .sky { background: linear-gradient(180deg, #1C1548 0%, #6B3FC4 38%, #B967FF 58%, #FF71CE 82%, #FFFB96 100%); }
.deck-a .sun { background: linear-gradient(180deg, #FFFB96 0%, #FF71CE 70%); }
.deck-a .floor { background: #1C1548; --grid: rgba(255,113,206,.75); }
.deck-b { opacity: var(--mix, 0); }
.deck-b .sky { background: linear-gradient(180deg, #0F1450 0%, #1F2E8C 45%, #3A6FD8 78%, #01CDFE 100%); }
.deck-b .sun { background: linear-gradient(180deg, #FFFFFF 0%, #01CDFE 55%, #B967FF 100%); }
.deck-b .floor { background: #0F1450; --grid: rgba(1,205,254,.75); }

.palm { position: absolute; bottom: calc(100% - var(--horizon)); height: calc(var(--horizon-px) - 12px); width: auto; pointer-events: none; }
.palm-left { left: max(-30px, calc(50% - 640px)); }
.palm-right { right: max(-20px, calc(50% - 620px)); height: calc(var(--horizon-px) * .78); transform: scaleX(-1); }

.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 22px; }
.brand { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: var(--fs-base); color: var(--ground); text-decoration: none; }
.brand:hover { color: var(--ground); }
.lang { color: var(--ground); font-size: var(--fs-sm); }
.lang:hover { color: var(--cyan); }

.hero-copy { padding: 56px 0 48px; }
.hero h1 { text-wrap: wrap; }
.lede { margin-top: 20px; font-size: var(--fs-lg); line-height: 1.5; max-width: 34em; }

.signup { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: var(--fs-sm); }
.field input { height: 52px; width: min(320px, 82vw); padding: 0 16px; border: 2px solid var(--ground); border-radius: 4px; background: rgba(28,21,72,.72); color: var(--ground); font: inherit; }
.field input::placeholder { color: var(--on-dark-soft); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border: 0; border-radius: 4px; font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: var(--fs-sm); text-decoration: none; cursor: pointer; color: var(--ink); }
.btn-pink { background: var(--pink); }
.btn-pink:hover { background: #FF8FD8; color: var(--ink); }
.fineprint { margin-top: 10px; font-size: var(--fs-xs); line-height: 1.5; max-width: 38em; color: #E4DCFF; }
.fineprint a { color: var(--ground); }

.fader-wrap { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 2; }
.fader-box { max-width: 680px; margin: 0 auto; padding: 12px 18px 10px; border-radius: 6px; background: rgba(15,12,40,.72); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.fader-labels { display: flex; justify-content: space-between; font-size: var(--fs-sm); font-weight: 700; }
.fader-labels span { white-space: nowrap; }
.fader-labels span:last-child { text-align: right; margin-left: auto; }
.fader-note { margin-top: 6px; text-align: center; font-size: var(--fs-sm); }
.fader { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 4px 0 0; background: transparent; cursor: pointer; }
.fader::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--pink), var(--cyan)); }
.fader::-moz-range-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--pink), var(--cyan)); }
.fader::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 44px; margin-top: -18px; border-radius: 4px; background: var(--ground); border: 3px solid var(--ink); box-shadow: 0 0 0 3px var(--ground); }
.fader::-moz-range-thumb { width: 22px; height: 38px; border-radius: 4px; background: var(--ground); border: 3px solid var(--ink); }

/* ---------- Content ---------- */
.section { padding: 96px 0; }
.section h2 + p, .section h2 + .sides, .section h2 + .dates { margin-top: 24px; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 48px; align-items: start; }
.muted { color: var(--ink-soft); }
.section p + p { margin-top: 14px; }
.section p { max-width: 36em; }

.tracklist { border: 3px solid var(--ink); border-radius: 6px; background: #fff; padding: 24px 24px 12px; }
.tracklist h3 { margin-bottom: 12px; }
.tracklist ul { list-style: none; margin: 0; padding: 0; }
.tracklist li { display: flex; flex-wrap: wrap; justify-content: space-between; column-gap: 16px; padding: 12px 0; border-top: 2px dashed var(--line); }
.tracklist li strong { hyphens: manual; }
.tracklist li span { color: var(--ink-soft); text-align: right; }
@media (max-width: 640px) { .tracklist li { flex-direction: column; } .tracklist li span { text-align: left; } }

.dark { background: var(--ink); color: var(--ground); }
.dark .muted { color: var(--on-dark-soft); }
.sides { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 28px; }
.side { border: 2px solid var(--pink); border-radius: 6px; padding: 28px; }
.side.pro { border-color: var(--cyan); background: rgba(1,205,254,.08); }
.side ul { margin: 14px 0 0; padding-left: 20px; }
.side li + li { margin-top: 6px; }

.dates { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.dates li { border-top: 3px solid var(--ink); padding-top: 12px; }
.dates strong { display: block; margin-bottom: 4px; font-family: var(--display); font-stretch: 125%; font-weight: 700; font-size: var(--fs-h3); line-height: 1.2; }

/* ---------- Screenshots ---------- */
.shot { margin: 0; }
.shot a { display: block; border-radius: 6px; overflow: hidden; border: 3px solid var(--ink); background: var(--ink); }
.shot img { width: 100%; height: auto; }
.shot a:hover { border-color: var(--link); }
.shot figcaption { margin-top: 10px; font-size: var(--fs-sm); color: var(--ink-soft); }
.shot-main { margin-top: 56px; }
.shots-section { padding-top: 0; }
.gallery { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 28px; align-items: start; }
.shot-note { margin-top: 20px; font-size: var(--fs-xs); color: var(--ink-soft); }

.shot a { cursor: zoom-in; position: relative; }
.shot a::after { content: ""; position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: 4px; background: rgba(28,21,72,.85) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F4EFFF' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='M15 15l5 5M10.5 8v5M8 10.5h5'/%3E%3C/svg%3E") center / 22px no-repeat; }

/* ---------- Lightbox ---------- */
.lb-open { overflow: hidden; }
.lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(15,12,40,.96); color: var(--ground); }
.lightbox::backdrop { background: rgba(15,12,40,.96); }
.lightbox[open] { display: flex; flex-direction: column; }
.lb-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; }
.lb-caption { font-size: var(--fs-sm); }
.lb-actions { display: flex; gap: 8px; }
.lb-btn { min-height: 44px; min-width: 44px; padding: 0 14px; border: 2px solid var(--ground); border-radius: 4px; background: transparent; color: var(--ground); font-family: var(--body); font-size: var(--fs-sm); font-weight: 700; cursor: pointer; }
.lb-btn:hover { background: var(--ground); color: var(--ink); }
.lb-prev, .lb-next { font-size: 24px; line-height: 1; padding: 0; }
.lb-stage { flex: 1; min-height: 0; overflow: auto; display: flex; padding: 0 16px; overscroll-behavior: contain; }
.lb-img { margin: auto; max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; border-radius: 4px; }
.is-zoomed .lb-stage { display: block; }
.is-zoomed .lb-img { max-width: none; max-height: none; cursor: zoom-out; }
.lb-hint { padding: 8px 16px 14px; font-size: var(--fs-xs); color: var(--on-dark-soft); text-align: center; }
@media (hover: none) { .lb-hint { display: none; } }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--ground); padding: 56px 0 40px; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer .claim { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: var(--fs-h3); line-height: 1.2; }
.footer .small { margin-top: 14px; font-size: var(--fs-sm); color: var(--on-dark-soft); }
.footer nav { display: flex; flex-direction: column; gap: 8px; font-size: var(--fs-sm); }
.footer a { color: var(--ground); }
.footer a:hover { color: var(--cyan); }

/* ---------- Legal pages: H1 eine Stufe kleiner als auf der Startseite ---------- */
.legal-top { background: var(--ink); padding: 20px 0; }
.legal-top .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: var(--fs-sm); }
.legal-top a { color: var(--ground); }
.legal { max-width: 760px; margin: 0 auto; padding: 56px 20px 96px; }
.legal h1 { font-size: var(--fs-h2); line-height: 1.1; margin-bottom: 28px; hyphens: manual; }
.legal h2 { font-size: var(--fs-h3); line-height: 1.2; font-weight: 700; margin: 36px 0 10px; }
.legal p + p { margin-top: 12px; }
.legal .note { border: 2px dashed var(--link); border-radius: 6px; padding: 14px 16px; background: #fff; margin-bottom: 28px; font-size: var(--fs-sm); }

@media (max-width: 640px) {
  .hero-copy { padding: 40px 0 36px; }
  .stage { height: 400px; --horizon: 56%; --horizon-px: 224px; }
  .palm-left { left: -46px; }
  .palm-right { right: -40px; }
  .fader-box { padding: 10px 12px 8px; }
  .fader-labels { gap: 12px; font-size: 15px; }
  .section { padding: 72px 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
