/* =========================================================================
   FIVR. — Pre-Launch
   Design-System: dunkel, ruhig, edel. Gold (#c2a46b) nur als Akzent.

   Schriften liegen lokal in /fonts (kein Kontakt zu Google, DSGVO-freundlich).
   Inter Tight und JetBrains Mono sind variable Fonts: eine Datei für alle Stärken.
   Zeichensatz: Latin (inkl. Umlaute, ß, €).
   ========================================================================= */

@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/anton-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-tight-var.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("fonts/jetbrains-mono-var.woff2") format("woff2");
}

:root {
  --bg: #0e0e10;
  --bg-tint: #0e0e10;
  --surface: #17171a;
  --surface-2: #1d1d21;
  --line: #2a2a2e;
  --text: #ecebe6;
  --muted: #9a99a0;
  --gold: #c2a46b;
  --gold-hi: #d3b981;

  --f-display: "Anton", "Big Shoulders Display", Impact, "Arial Narrow", sans-serif;
  --f-body: "Inter Tight", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  --gutter: clamp(16px, 4.5vw, 56px);
  --maxw: 1440px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p, figure, ul { margin: 0; padding: 0; }
ul { list-style: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
::selection { background: var(--gold); color: var(--bg); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Filmkorn ---------- */
.grain {
  position: fixed; inset: -50%;
  z-index: 90; pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Typo ---------- */
.label, .kicker {
  font: 500 11px/1.3 var(--f-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.kicker .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

.display-l, .display-m, .hero__title {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: .88;
  letter-spacing: .005em;
}
.display-l { font-size: clamp(56px, 11vw, 168px); }
.display-m { font-size: clamp(48px, 7.4vw, 112px); }
.lede { color: var(--muted); max-width: 42ch; font-size: clamp(15px, 1.2vw, 17px); }
.gold { color: var(--gold); }

/* Zeilen-Reveal (mask) */
.line { display: block; overflow: hidden; padding-bottom: .04em; margin-bottom: -.04em; }
.line > span { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.is-in .line > span, .line.is-in > span { transform: none; }
.is-in .line:nth-child(2) > span { transition-delay: .08s; }
.is-in .line:nth-child(3) > span { transition-delay: .16s; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Buttons ---------- */
.btn {
  --h: 52px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h);
  padding: 0 26px;
  border-radius: 999px;
  font: 600 13px/1 var(--f-body);
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn--gold { background: var(--gold); color: #141210; }
.btn--gold:hover { background: var(--gold-hi); }
.btn--ghost { border: 1px solid color-mix(in srgb, var(--text) 28%, transparent); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); }
.btn--block { width: 100%; --h: 58px; }

.link {
  font: 500 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--text); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line);
  padding: 6px 0; transition: text-decoration-color .3s;
}
.link:hover { text-decoration-color: var(--gold); }

.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); transition: border-color .3s;
}
.icon-btn:hover { border-color: var(--muted); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- Intro ---------- */
.intro {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity .6s var(--ease), visibility .6s;
}
.intro__inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.intro__clover { width: 88px; height: 88px; overflow: visible; }
.intro__clover path {
  fill: transparent; stroke: var(--text); stroke-width: 1.4;
  stroke-dasharray: 100; stroke-dashoffset: 100;
  animation: draw .7s var(--ease-io) forwards, fillIn .3s .6s var(--ease) forwards;
}
.intro__clover g:nth-child(2) path { animation-delay: .05s, .62s; }
.intro__clover g:nth-child(3) path { animation-delay: .1s, .64s; }
.intro__clover g:nth-child(4) path { animation-delay: .15s, .66s; }
.intro__clover g:nth-child(5) path { animation-delay: .2s, .68s; }
.intro__word {
  font: 400 34px/1 var(--f-display); letter-spacing: .04em;
  opacity: 0; transform: translateY(8px);
  animation: rise .45s .5s var(--ease) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillIn { to { fill: var(--text); } }
@keyframes fillGold { to { fill: var(--gold); } }
@keyframes rise { to { opacity: 1; transform: none; } }
.intro { transition-duration: .4s; }
body:not(.is-intro) .intro { opacity: 0; visibility: hidden; pointer-events: none; }

/* ---------- Header ---------- */
.top {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(14px + var(--safe-t)) var(--gutter) 14px;
  transition: transform .5s var(--ease), background-color .4s, backdrop-filter .4s;
}
.top.is-solid { background: color-mix(in srgb, var(--bg) 72%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.top.is-hidden { transform: translateY(-100%); }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.logo__clover { width: 24px; height: 24px; fill: var(--text); }
.logo__word { font: 400 22px/1 var(--f-display); letter-spacing: .04em; }
.socials { display: flex; gap: 4px; }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--text); transition: color .3s, background-color .3s; }
.socials a:hover { color: var(--gold); }
.socials svg { width: 21px; height: 21px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  transform: scale(1.12);
  filter: saturate(.85) brightness(.78);
  transition: transform 2.6s var(--ease);
}
body.is-ready .hero__media img { transform: scale(1.02); }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(14,14,16,.55) 0%, rgba(14,14,16,0) 22%, rgba(14,14,16,0) 42%, rgba(14,14,16,.78) 74%, var(--bg) 100%),
    radial-gradient(120% 80% at 50% 40%, transparent 40%, rgba(14,14,16,.55) 100%);
}
.hero__content {
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--gutter) calc(clamp(40px, 7vh, 80px) + var(--safe-b));
}
.hero__title {
  font-size: clamp(64px, 17.5vw, 260px);
  margin: 18px 0 clamp(22px, 3.5vh, 36px);
  margin-left: -.04em;
}
.hero__title .line:nth-child(2) > span { color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--text) 85%, transparent); }
body.is-ready .hero__title .line > span { transform: none; }
body.is-ready .hero__title .line:nth-child(2) > span { transition-delay: .1s; }
.hero__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; }
.hero__date { font: 500 12px/1.3 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.hero__date time { color: var(--text); }

.scroll-hint {
  position: absolute; right: var(--gutter); bottom: calc(40px + var(--safe-b));
  width: 44px; height: 64px; display: none; justify-content: center;
}
.scroll-hint span { width: 1px; height: 100%; background: linear-gradient(var(--text), transparent); transform-origin: top; animation: hint 2.4s var(--ease-io) infinite; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Akzent-Hintergründe ---------- */
.bg-accent { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-accent img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: .34; filter: grayscale(.2) brightness(.7);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 65%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 65%, transparent 100%);
}
.bg-accent--soft img { opacity: .22; }

/* ---------- Countdown ---------- */
.countdown {
  position: relative; isolation: isolate;
  padding: clamp(96px, 16vh, 180px) 0;
  text-align: center;
}
.countdown .label { margin-bottom: clamp(26px, 4vh, 44px); }
.cd {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  max-width: 1080px; margin: 0 auto;
}
.cd__tile {
  position: relative;
  padding: clamp(22px, 3vw, 40px) 10px clamp(18px, 2.4vw, 30px);
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.cd__num {
  position: relative; overflow: hidden;
  height: 1em; font: 400 clamp(64px, 14vw, 150px)/1 var(--f-display);
  font-variant-numeric: tabular-nums; letter-spacing: .01em;
}
.cd__num span { position: absolute; inset: 0; display: block; }
.cd__num span.in { animation: numIn .55s var(--ease) both; }
.cd__num span.out { animation: numOut .55s var(--ease) both; }
@keyframes numIn { from { transform: translateY(-60%); opacity: 0; filter: blur(2px); } to { transform: none; opacity: 1; filter: none; } }
@keyframes numOut { to { transform: translateY(60%); opacity: 0; filter: blur(2px); } }
.cd__lbl { display: block; margin-top: 14px; font: 500 11px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.cd__meta { margin-top: 28px; font: 500 12px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cd-live { display: grid; justify-items: center; gap: 32px; }
.cd-live[hidden] { display: none; }
.countdown.is-live .cd, .countdown.is-live .cd__meta, .countdown.is-live .label { display: none; }

/* ---------- Warteliste ---------- */
.join { padding: clamp(80px, 12vh, 160px) 0; scroll-margin-top: 40px; }
.join__grid { display: grid; gap: clamp(36px, 5vw, 88px); align-items: start; }
.preview {
  position: relative; overflow: hidden;
  aspect-ratio: 1428 / 1600;
  border-radius: var(--r-lg);
  background: #e7e1d8;
}
.preview img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.03);
  transition: opacity .7s var(--ease), transform 1.2s var(--ease);
}
.preview img.is-active { opacity: 1; transform: none; }
.preview__cap {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  background: rgba(14,14,16,.82);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.preview__name { font: 400 26px/1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.preview__price { font: 500 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.preview__price b { font-weight: 500; color: var(--gold); margin-left: 6px; font-size: 13px; }

.join__form-wrap .label { margin-bottom: 18px; }
.join__form-wrap .display-m { margin-bottom: 20px; }
.form { margin-top: clamp(28px, 4vh, 44px); display: grid; gap: 26px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field__lbl {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  margin-bottom: 12px; padding: 0;
  font: 500 11px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.field__val { color: var(--text); }
.input {
  width: 100%; height: 58px; padding: 0 20px;
  border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--line);
  font-size: 17px; /* >=16px verhindert iOS-Zoom */
  transition: border-color .3s, background-color .3s;
  -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: #5d5c63; }
.input:hover { border-color: #3a3a40; }
.input:focus { outline: none; border-color: var(--gold); background: var(--surface-2); }
.field.has-error .input { border-color: #b4555a; }
.field__err { min-height: 0; margin-top: 8px; font-size: 13px; color: #d98b8f; }
.field__err:empty { display: none; }

.swatches { display: flex; gap: 14px; }
.swatch { position: relative; width: 48px; height: 48px; cursor: pointer; }
.swatch input, .chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.swatch__dot {
  position: absolute; inset: 5px; border-radius: 50%;
  background: var(--sw);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
  transition: transform .35s var(--ease);
}
.swatch::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid transparent; transition: border-color .3s, transform .35s var(--ease);
  transform: scale(.85);
}
.swatch:hover .swatch__dot { transform: scale(1.06); }
.swatch:has(input:checked)::after { border-color: var(--text); transform: none; }
.swatch:has(input:focus-visible)::after { border-color: var(--gold); }

.chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.chip { position: relative; }
.chip span {
  display: grid; place-items: center; height: 50px;
  border-radius: var(--r-sm); border: 1px solid var(--line);
  font: 500 14px/1 var(--f-body); letter-spacing: .06em;
  transition: background-color .3s, color .3s, border-color .3s;
}
.chip:hover span { border-color: #44444b; }
.chip input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.check { position: relative; display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: start; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 24px; height: 24px; margin: 0; cursor: pointer; }
.check__box {
  width: 24px; height: 24px; border-radius: 7px; border: 1px solid #44444b;
  display: grid; place-items: center; transition: background-color .25s, border-color .25s;
}
.check__box::after {
  content: ""; width: 10px; height: 5px; margin-top: -2px;
  border-left: 1.8px solid var(--bg); border-bottom: 1.8px solid var(--bg);
  transform: rotate(-45deg) scale(0); transition: transform .25s var(--ease);
}
.check input:checked + .check__box { background: var(--gold); border-color: var(--gold); }
.check input:checked + .check__box::after { transform: rotate(-45deg) scale(1); }
.check input:focus-visible + .check__box { outline: 2px solid var(--gold); outline-offset: 3px; }
.field.has-error .check__box { border-color: #b4555a; }
.check__txt { font-size: 14px; line-height: 1.5; color: var(--muted); }
.check__txt .link { font-size: 10.5px; padding: 0; margin-left: 2px; }

.btn__spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(20,18,16,.25); border-top-color: #141210; animation: spin .8s linear infinite; }
.is-sending .btn__spin { display: block; }
.is-sending .btn__txt { opacity: .6; }
@keyframes spin { to { transform: rotate(360deg); } }
.form__note { font-size: 13px; color: var(--muted); text-align: center; }
.form__note:empty { display: none; }
.form__count { font: 500 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-align: center; }

.success { display: grid; justify-items: start; gap: 16px; padding-top: clamp(28px, 4vh, 44px); outline: none; }
.success[hidden] { display: none; }
.success__clover { width: 96px; height: 96px; margin-bottom: 8px; overflow: visible; }
.success__clover path { fill: var(--text); transform: scale(0); transform-origin: 0 0; animation: pop .7s var(--ease) forwards; }
.success__clover g:nth-child(2) path { animation-delay: .1s; }
.success__clover g:nth-child(3) path { animation-delay: .2s; }
.success__clover g:nth-child(4) path { animation-delay: .3s; }
.success__clover g:nth-child(5) path { animation-delay: .4s; }
@keyframes pop { 0% { transform: scale(0) rotate(-20deg); } 70% { transform: scale(1.06); } 100% { transform: scale(1); } }
.success__sub { font: 500 12px/1.4 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.success__share { color: var(--muted); max-width: 40ch; }
.success__share a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.success .btn { margin-top: 8px; }

/* ---------- Teaser ---------- */
.teaser { padding: clamp(80px, 12vh, 160px) 0; }
.teaser__head { margin-bottom: clamp(36px, 6vh, 72px); }
.teaser__head .label { margin-bottom: 18px; }
.teaser__grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(2, 1fr);
  grid-template-areas:
    "a a"
    "b c"
    "f f"
    "d d";
}
.tile { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--surface); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile--a { grid-area: a; aspect-ratio: 4 / 5; }
.tile--b { grid-area: b; aspect-ratio: 1428 / 1600; background: #e7e1d8; }
.tile--c { grid-area: c; aspect-ratio: 1428 / 1600; }
.tile--d { grid-area: d; aspect-ratio: 4 / 3; }
.tile--d img { object-position: 50% 60%; }
.teaser__facts { grid-area: f; padding: 28px 4px 34px; }
.facts li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 15px 0; border-bottom: 1px solid var(--line);
}
.facts li:first-child { border-top: 1px solid var(--line); }
.facts span { font: 500 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.facts b { font-weight: 500; text-align: right; }
.facts b.gold { font: 400 28px/1 var(--f-display); letter-spacing: .02em; }
.teaser__beanie {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 22px;
  font: 500 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
}
.teaser__beanie svg { width: 16px; height: 16px; fill: currentColor; }

/* Bild-Scale-in */
.media img { transform: scale(1.08); transition: transform 1.6s var(--ease); will-change: transform; }
.media.is-in img { transform: scale(1); }

/* ---------- Story: Kleeblatt-Bloom (alle 5 Blätter, kein langes Scrollen) ---------- */
.bloom { position: relative; isolation: isolate; padding: clamp(80px, 12vh, 150px) 0; text-align: center; overflow: hidden; }
.bloom .label { margin-bottom: clamp(12px, 3vh, 28px); }
.bloom__stage { max-width: 760px; margin: 0 auto; }
.bloom__svg { width: 100%; height: auto; overflow: visible; }

.bl-leaf path {
  fill: var(--text); cursor: pointer;
  transform-origin: 0 0; transform: scale(0) rotate(-35deg); opacity: 0;
  transition: opacity .45s var(--ease), transform .5s var(--ease);
}
.bl-leaf[data-leaf="4"] path { fill: var(--gold); }
.is-play .bl-leaf path { animation: blLeaf .9s var(--ease) var(--d) forwards; }
.is-play .bl-leaf[data-leaf="4"] path { animation: blGold 1.1s var(--ease) var(--d) forwards; }
@keyframes blLeaf { 0% { opacity: 0; transform: scale(0) rotate(-35deg); } 50% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes blGold { 0% { opacity: 0; transform: scale(0) rotate(-35deg); } 55% { opacity: 1; transform: scale(1.14) rotate(4deg); } 100% { opacity: 1; transform: none; } }
.is-done .bl-leaf path { animation: none; opacity: 1; transform: none; }
.is-done .bl-leaf[data-leaf="4"] path { animation: blGlow 2.6s ease-in-out infinite alternate; }
@keyframes blGlow { from { filter: drop-shadow(0 0 1px rgba(194,164,107,.2)); } to { filter: drop-shadow(0 0 8px rgba(194,164,107,.65)); } }

.bl-ripple { fill: none; stroke: var(--gold); stroke-width: 1px; opacity: 0; transform-origin: 0 0; }
.is-play .bl-ripple { animation: blRipple 1.5s var(--ease) 2.15s forwards; }
@keyframes blRipple { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(9); } }
.is-done .bl-ripple { animation: none; opacity: 0; }

.bl-line { stroke: #55555c; stroke-width: .5; stroke-dasharray: 1; stroke-dashoffset: 1; }
.is-play .bl-line { animation: blDraw .5s var(--ease) calc(var(--d) + .35s) forwards; }
@keyframes blDraw { to { stroke-dashoffset: 0; } }
.is-done .bl-line { animation: none; stroke-dashoffset: 0; }

.bl-lbl { opacity: 0; transform: translateY(3px); transition: opacity .45s var(--ease); cursor: default; }
.is-play .bl-lbl { animation: blIn .6s var(--ease) calc(var(--d) + .45s) forwards; }
@keyframes blIn { to { opacity: 1; transform: none; } }
.is-done .bl-lbl { animation: none; opacity: 1; transform: none; }
.bl-num { font: 500 6px var(--f-mono); letter-spacing: .14em; fill: var(--muted); }
.bl-word { font: 400 10px var(--f-display); letter-spacing: .03em; text-transform: uppercase; fill: var(--text); }
.bl-lbl[data-leaf="4"] .bl-num, .bl-lbl[data-leaf="4"] .bl-word { fill: var(--gold); }

/* Hover/Tippen auf ein Blatt: andere treten zurück */
.has-focus .bl-leaf:not(.is-focus) path, .has-focus .bl-lbl:not(.is-focus) { opacity: .2; }
.bl-leaf.is-focus path { transform: scale(1.07); }

.bloom__lines { display: grid; gap: 4px; margin-top: clamp(18px, 4vh, 40px); }
.bloom__line { font: 400 clamp(30px, 5.4vw, 72px)/.95 var(--f-display); text-transform: uppercase; opacity: 0; transform: translateY(14px); }
.is-play .bloom__line { animation: blIn .8s var(--ease) var(--t) forwards; }
.is-done .bloom__line { animation: none; opacity: 1; transform: none; }
.bloom__replay { margin-top: 26px; opacity: 0; pointer-events: none; transition: opacity .6s var(--ease); }
.is-done .bloom__replay { opacity: 1; pointer-events: auto; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; }
.marquee__track { display: flex; width: max-content; align-items: center; animation: marquee 38s linear infinite; }
.marquee span { font: 400 clamp(28px, 4vw, 52px)/1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; padding: 0 28px; }
.marquee i { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Footer ---------- */
.foot { position: relative; isolation: isolate; padding: clamp(80px, 12vh, 140px) 0 calc(28px + var(--safe-b)); overflow: hidden; }
.foot__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; }
.foot__claim { font: 400 clamp(32px, 4.4vw, 60px)/.95 var(--f-display); text-transform: uppercase; }
.foot__word {
  margin: clamp(40px, 8vh, 90px) 0 clamp(24px, 4vh, 40px);
  font: 400 clamp(110px, 31vw, 480px)/.8 var(--f-display); letter-spacing: -.01em;
  color: transparent; -webkit-text-stroke: 1px #34343a;
  text-align: center; user-select: none;
}
.foot__bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  padding-top: 22px; border-top: 1px solid var(--line);
}
.socials--text { gap: 18px; }
.socials--text a { width: auto; height: 44px; display: inline-flex; gap: 8px; border-radius: 0; font-size: 14px; }
.socials--text svg { width: 18px; height: 18px; }
.legal-links { display: flex; gap: 20px; }
.legal-links button { min-height: 44px; font-size: 14px; color: var(--muted); transition: color .3s; }
.legal-links button:hover { color: var(--text); }
.foot__copy { font: 500 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- Bottom-Sheet / Modal ---------- */
dialog.sheet {
  position: fixed; inset: auto 0 0 0;
  width: 100%; max-width: 100%; max-height: 92vh; max-height: 92svh;
  margin: 0; padding: 0;
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-bottom: 0;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: var(--surface); color: var(--text);
  transform: translateY(100%);
  transition: transform .5s var(--ease), display .5s allow-discrete, overlay .5s allow-discrete;
}
dialog.sheet:not([open]) { display: none; }
dialog.sheet[open] { transform: none; }
@starting-style { dialog.sheet[open] { transform: translateY(100%); } }
dialog.sheet::backdrop { background: rgba(5,5,6,0); transition: background-color .5s, display .5s allow-discrete, overlay .5s allow-discrete; }
dialog.sheet[open]::backdrop { background: rgba(5,5,6,.66); }
@starting-style { dialog.sheet[open]::backdrop { background: rgba(5,5,6,0); } }
.sheet__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px 16px 24px; border-bottom: 1px solid var(--line);
}
.sheet__head::before {
  content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px;
  border-radius: 4px; background: #3a3a40;
}
.sheet__title { font: 400 30px/1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.sheet__body { overflow-y: auto; overscroll-behavior: contain; padding: 24px 24px calc(32px + var(--safe-b)); }
body.has-sheet { overflow: hidden; }

/* Size guide */
.sg-tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); margin-bottom: 18px; }
.sg-tabs button { min-height: 40px; padding: 0 18px; border-radius: 999px; font: 500 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); transition: background-color .3s, color .3s; }
.sg-tabs button[aria-selected="true"] { background: var(--text); color: var(--bg); }
.sg-table-wrap { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--line); }
.sg-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.sg-table th, .sg-table td { padding: 12px 12px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
.sg-table tr:last-child td { border-bottom: 0; }
.sg-table th { font: 500 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--bg); }
.sg-table td:first-child, .sg-table th:first-child { text-align: left; color: var(--muted); }
.sg-table td.is-hit { color: var(--gold); }
.sg-note { margin-top: 12px; font-size: 13px; color: var(--muted); }
.sg-models { display: grid; gap: 8px; margin-top: 18px; padding: 16px 18px; border-radius: var(--r-md); background: var(--bg); font-size: 14px; color: var(--muted); }
.sg-models b { color: var(--text); font-weight: 500; }
.calc { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.calc__title { font: 400 26px/1 var(--f-display); text-transform: uppercase; margin-bottom: 18px; }
.calc__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.calc .input { height: 54px; }
.calc__unit { position: relative; }
.calc__unit span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font: 500 11px/1 var(--f-mono); color: var(--muted); pointer-events: none; }
.calc__fit { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.calc__result {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; align-items: center;
  margin-top: 16px; padding: 20px; border-radius: var(--r-md); background: var(--bg); border: 1px solid var(--line);
}
.calc__result[hidden] { display: none; }
.calc__size { grid-row: span 2; font: 400 84px/.85 var(--f-display); color: var(--gold); }
.calc__text { font-size: 14px; color: var(--muted); }
.calc__text b { color: var(--text); font-weight: 500; }
.calc__use { justify-self: start; }

/* Rechtstexte */
.legal { max-width: 70ch; }
.legal h3 { margin: 26px 0 8px; font: 600 15px/1.3 var(--f-body); }
.legal p { color: var(--muted); font-size: 15px; margin-bottom: 10px; }
.legal__note { padding: 12px 14px; border-radius: var(--r-sm); border: 1px dashed #4a4436; color: var(--gold) !important; font-size: 13px !important; }

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
  .cd { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .scroll-hint { display: flex; }
}

@media (min-width: 960px) {
  .hero__media { left: 34%; }
  .hero__media img { object-position: 50% 16%; }
  .hero__shade {
    background:
      linear-gradient(90deg, var(--bg) 0%, var(--bg) 34%, rgba(14,14,16,.55) 46%, rgba(14,14,16,0) 66%, rgba(14,14,16,.35) 100%),
      linear-gradient(180deg, rgba(14,14,16,.45) 0%, transparent 22%, transparent 62%, var(--bg) 100%);
  }
  .join__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .join__preview { position: sticky; top: 90px; }
  .teaser__grid {
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
    grid-template-areas:
      "a a a a a a b b b b f f"
      "a a a a a a c c c d d d";
    gap: 12px;
  }
  .tile--a { aspect-ratio: auto; min-height: 100%; }
  .tile--b { align-self: end; }
  .tile--c, .tile--d { aspect-ratio: 3 / 4; }
  .teaser__grid { grid-template-areas:
      "a a a a a a b b b f f f"
      "a a a a a a c c c d d d"; }
  .teaser__facts { padding: 0 0 0 18px; align-self: end; }


  dialog.sheet {
    inset: 0; margin: auto;
    width: min(720px, calc(100% - 48px)); max-height: min(86vh, 900px);
    border-radius: var(--r-lg); border-bottom: 1px solid var(--line);
    transform: translateY(24px) scale(.98); opacity: 0;
    transition: transform .45s var(--ease), opacity .45s var(--ease), display .45s allow-discrete, overlay .45s allow-discrete;
  }
  dialog.sheet[open] { transform: none; opacity: 1; }
  @starting-style { dialog.sheet[open] { transform: translateY(24px) scale(.98); opacity: 0; } }
  .sheet__head::before { display: none; }
  .sheet__body { padding: 28px 32px 36px; }
}

@media (min-width: 1280px) {
  .hero__title { font-size: clamp(160px, 15vw, 260px); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .line > span, .reveal, .media img { transform: none !important; opacity: 1 !important; }
  .marquee__track { animation: none; }
}

/* ---------- Vorbestellung ---------- */
.chips--pieces { grid-template-columns: repeat(3, 1fr); }
.field__hint { margin-top: 10px; font-size: 13px; color: var(--muted); }
.field.has-error .chip span { border-color: #b4555a; }
.hero__nopay { color: var(--gold); }
.form[hidden] { display: none; }

/* ---------- Handy-Feinschliff ---------- */
.link { position: relative; }
.link::after { content: ""; position: absolute; inset: -12px -8px; }
.check__txt .link::after { inset: -10px -6px; }
@media (max-width: 400px) {
  .sg-table { font-size: 13px; }
  .sg-table th, .sg-table td { padding: 10px 6px; }
  .sg-table th { letter-spacing: .06em; }
}

.field--opt { display: grid; gap: 14px; }

.preview__tax { margin-top: 10px; font-size: 12px; color: var(--muted); }
.facts__note b { font-size: 13px; font-weight: 400; color: var(--muted); }

.form-soon { margin-top: clamp(28px, 4vh, 44px); padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); }


/* ---------- Danke-Animation ---------- */
.ty { width: 132px; height: 132px; margin: 0 auto -6px; }
.ty svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ty__leaf { fill: var(--text); opacity: 0; transform-origin: 0 0;
  animation: ty-leaf .9s calc(var(--i) * .09s) cubic-bezier(.3, 1.35, .45, 1) forwards; }
.ty__spin { transform-origin: 0 0; animation: ty-spin 1.1s .85s cubic-bezier(.65, 0, .35, 1) both; }
.ty__ring { fill: none; stroke: var(--gold); stroke-width: 1.2; opacity: 0; transform-origin: 0 0;
  animation: ty-ring 1.2s 1.35s cubic-bezier(.2, .7, .1, 1) forwards; }
.ty__spark { stroke: var(--gold); stroke-width: 2; stroke-linecap: round; opacity: 0;
  animation: ty-spark .9s calc(1.4s + var(--i) * .08s) cubic-bezier(.2, .7, .1, 1) forwards; }
@keyframes ty-leaf { from { opacity: 0; transform: translateY(-46px) rotate(-35deg) scale(.35); } 35% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes ty-spin { from { transform: rotate(-72deg) scale(.92); } 60% { transform: rotate(6deg) scale(1.04); } to { transform: none; } }
@keyframes ty-ring { from { opacity: .9; transform: scale(.55); } to { opacity: 0; transform: scale(1.5); } }
@keyframes ty-spark { from { opacity: 1; transform: translateY(6px); } to { opacity: 0; transform: translateY(-16px); } }
.ty__spark { transform-origin: 0 0; }
@media (prefers-reduced-motion: reduce) {
  .ty__leaf { animation: none; opacity: 1; }
  .ty__spin, .ty__ring, .ty__spark { animation: none; }
}
.ty--links { margin: 0 0 -4px -8px; width: 112px; height: 112px; }

.spam-tip { margin: 0; padding: 0 6px; font: 400 11px/1.5 var(--f-mono); letter-spacing: .02em; color: var(--muted); }
