/* ============================================================
   Xolia.net – Website
   Schwarz wie eine Apple-Produktseite, Gelb wie das X, Pergament
   als helle Fläche. Grün gibt es nur an den Ranken, die sich am
   Rand um die Seite legen wie um das Logo.
   ============================================================ */

:root {
  /* --- Hell --- */
  --parchment:   #f8f5ea;   /* Seitenhintergrund */
  --parchment-2: #f4eedf;   /* Wechsel-Abschnitte */
  --cream-card:  #fcfaf3;   /* helle Karten */

  /* --- Schwarz (Apple) --- */
  --black:       #000000;   /* Bühnen, Hero-Schleier */
  --dark-950:    #0a0a0b;   /* dunkle Abschnitte */
  --dark-900:    #161617;   /* Karten auf Schwarz */
  --dark-800:    #1d1d1f;   /* Kacheln */

  /* --- Gelb / Gold (das X) --- */
  --yellow:      #f3c94a;   /* Akzent auf dunklem Grund, Buttons */
  --yellow-hover:#ffd65c;
  --gold:        #8a6612;   /* Akzent auf hellem Grund */
  --gold-soft:   #c39a2c;
  --fresh:       #9fd06c;   /* Netzwerk online */
  --honey:       #f2cf7a;   /* neutraler Statuspunkt */
  --grad-text:   linear-gradient(100deg, #fff6d6 0%, #f3c94a 42%, #e0a72a 100%);

  /* --- Grün: nur für die Ranken --- */
  --vine:        #5a6d2c;
  --leaf:        #8a9a5f;
  --leaf-b:      #566a2c;

  /* --- Text --- */
  --ink:        #1d1d1f;
  --ink-soft:   #5f5c52;
  --on-dark:    #f5f2e8;
  --on-dark-soft: rgba(245, 242, 232, .72);
  --gray-dark:  #a1a1a6;   /* Sekundärtext auf Schwarz */
  --line:       rgba(29, 29, 31, .14);
  --line-dark:  rgba(255, 255, 255, .1);

  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --sans:    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono:    "SF Mono", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1200px;
  --radius: 14px;
  --radius-lg: 26px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.32, .5, 1);
  --shadow: 0 14px 34px -22px rgba(30, 24, 8, .40);
  --shadow-soft: 0 10px 24px -18px rgba(30, 24, 8, .30);
}

*, *::before, *::after { box-sizing: border-box; }
:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; border-radius: 4px; }
.nav :focus-visible, .hero :focus-visible, .showcase :focus-visible, .statement :focus-visible, .connect :focus-visible, .join :focus-visible, .footer :focus-visible { outline-color: rgba(255, 255, 255, .9); }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; overflow-x: clip; background: var(--parchment); }
body { overflow-x: clip; }

body {
  margin: 0; font-family: var(--sans); color: var(--ink); background: var(--parchment);
  line-height: 1.62; font-weight: 400; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--display); font-weight: 700; line-height: 1.07; margin: 0 0 .4em;
  color: var(--ink); letter-spacing: -.02em;
}
h2 { font-size: clamp(2.4rem, 5.6vw, 4.3rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.95rem); }
p { margin: 0 0 1rem; }
a { color: var(--gold); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--ink); }
strong { font-weight: 600; color: inherit; }
button { font: inherit; }

.wrap { width: min(var(--wrap), 88vw); margin-inline: auto; }
.narrow { width: min(820px, 88vw); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--ink-soft); }

/* Verlaufsschrift wie auf den Apple-Seiten: Creme nach Gold */
.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

.skip-link { position: absolute; left: 50%; top: -60px; transform: translateX(-50%); background: var(--ink); color: var(--parchment); padding: .6rem 1.2rem; border-radius: 0 0 12px 12px; z-index: 300; transition: top .2s; }
.skip-link:focus { top: 0; color: #fff; }

/* ---------- Wort-Masken-Aufstieg ---------- */
.hw-mask { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.hw { display: inline-block; transform: translateY(115%); transition: transform 1.05s cubic-bezier(.22, .61, .36, 1); will-change: transform; }
.hero-title .hw-mask:nth-child(2) .hw { transition-delay: .12s; }
body.hero-go .hero-title .hw { transform: none; }
.hero-leaves { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero-veil { position: absolute; inset: 0; z-index: 1; background: var(--black); pointer-events: none; }
body.hero-go .hero-veil { opacity: 0; transition: opacity 1.3s var(--ease) .85s; }
.hl-gold { color: var(--yellow); font-weight: 600; }

/* ---------- Eyebrow ---------- */
.eyebrow { font-family: var(--sans); font-size: .98rem; font-weight: 600; color: var(--gold); margin: 0 0 .9rem; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; font-family: var(--sans); font-weight: 600; font-size: .95rem; letter-spacing: -.005em; padding: .9rem 1.8rem; border-radius: 999px; cursor: pointer; border: 1.5px solid transparent; transition: transform .34s var(--ease-spring), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px) scale(.97); }
.btn-primary { background: var(--yellow); color: #1a1405; box-shadow: 0 8px 18px -10px rgba(120, 90, 10, .7); }
.btn-primary:hover { background: var(--yellow-hover); color: #1a1405; }
.btn-glass { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .38); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); color: #fff; }
.btn-glass:hover { background: rgba(255, 255, 255, .26); color: #fff; }
.btn-hero { background: var(--yellow); color: #1a1405; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .6); }
.btn-hero:hover { background: var(--yellow-hover); color: #1a1405; }
.btn-copy { position: relative; min-width: 12.5em; }
.btn-copy .btn-txt { transition: opacity .25s var(--ease), transform .35s var(--ease-spring); }
.btn-copy .btn-txt--done { position: absolute; inset: 0; display: inline-flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(8px); }
.btn-copy.is-copied .btn-txt--idle { opacity: 0; transform: translateY(-8px); }
.btn-copy.is-copied .btn-txt--done { opacity: 1; transform: none; }

/* Pointer-Glare: weiches Licht folgt dem Cursor über Karten */
.glare { position: relative; }
.glare::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3; opacity: 0; transition: opacity .35s var(--ease); background: radial-gradient(560px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 236, 170, .10), transparent 46%); }
.glare.is-lit::after { opacity: 1; }

/* ---------- Scroll-Fortschritt ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 250; }
.scroll-progress span { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--gold), var(--yellow)); }

/* ============================================================
   Ranke am Rand (scroll-getrieben): das einzige Grün der Seite
   ============================================================ */
.vine-track { position: absolute; top: 0; z-index: 30; pointer-events: none; display: none; clip-path: inset(100svh 0 0 0); }
.vine-left { left: 0; }
.vine-right { right: 0; }
.vine-svg { display: block; overflow: visible; }
.vine-path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.vine-path--shadow { stroke: #14230a; stroke-width: 5.4; opacity: .38; }
.vine-path--main { stroke: url(#vineStem); stroke-width: 3; opacity: 1; }
.vine-leaf { opacity: 0; }
.vine-leaf .leaf-scale { transform: scale(0); transform-box: fill-box; transform-origin: 0% 50%; transition: transform .8s var(--ease-spring), opacity .6s var(--ease); opacity: 0; }
.vine-leaf.grown { opacity: 1; }
.vine-leaf.grown .leaf-scale { transform: scale(1); opacity: 1; }
.leaf-shape { fill: url(#leafGradA); stroke: rgba(14, 26, 6, .6); stroke-width: .6; }
.leaf-shape--b { fill: url(#leafGradB); }
.leaf-vein { fill: none; stroke: rgba(210, 232, 160, .35); stroke-width: .5; stroke-linecap: round; }
.leaf-stem { fill: none; stroke: #33511a; stroke-width: 1.15; stroke-linecap: round; opacity: .95; }
.tendril { fill: none; stroke: #4c6f28; stroke-width: 1.1; stroke-linecap: round; opacity: .95; }
.berry { fill: url(#berryGrad); stroke: rgba(80, 55, 5, .35); stroke-width: .4; }
@media (min-width: 900px) { .vine-track { display: block; } }

/* ============================================================
   Navigation
   ============================================================ */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 200; padding: 14px clamp(16px, 3vw, 24px); transition: transform .38s var(--ease); }
.nav-inner { max-width: 1160px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 7px 16px 7px 18px; border-radius: 999px; background: rgba(0, 0, 0, .32); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), inset 0 -1px 0 rgba(255, 255, 255, .06), 0 12px 32px -16px rgba(0, 0, 0, .5); transition: background .45s var(--ease), border-color .45s var(--ease); }
.nav.scrolled .nav-inner { background: rgba(0, 0, 0, .78); border-color: rgba(255, 255, 255, .12); }
.nav.nav-hidden { transform: translateY(-105%); }

@media (prefers-reduced-motion: no-preference) {
  .nav-inner { animation: nav-open .8s var(--ease) backwards; }
  .nav-inner > * { animation: nav-rise .45s var(--ease) backwards .26s; }
  .nav-links > li { animation: nav-rise .4s var(--ease) backwards; }
  .nav-links > li:nth-child(1) { animation-delay: .30s; }
  .nav-links > li:nth-child(2) { animation-delay: .35s; }
  .nav-links > li:nth-child(3) { animation-delay: .40s; }
  .nav-links > li:nth-child(4) { animation-delay: .45s; }
  .nav-links > li:nth-child(5) { animation-delay: .50s; }
}
@keyframes nav-open {
  from { clip-path: inset(0 46% round 999px); opacity: 0; }
  35%  { opacity: 1; }
  to   { clip-path: inset(0 0 round 999px); opacity: 1; }
}
@keyframes nav-rise {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: none; }
}

.brand { display: flex; align-items: center; gap: .6rem; color: inherit; }
.brand-logo { width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35)); transition: transform .3s var(--ease); animation: logoFill 1.4s cubic-bezier(.45,.05,.25,1) .1s both; will-change: clip-path; }
.brand:hover .brand-logo { transform: translateY(-1px) rotate(-3deg); }
@keyframes logoFill {
  0%   { clip-path: polygon(0 100%, 0 100%, 0 100%, 0 100%, 0 100%, 0 100%); }
  45%  { clip-path: polygon(0 0, 32% 0, 32% 68%, 100% 68%, 100% 100%, 0 100%); }
  100% { clip-path: polygon(0 0, 100% 0, 100% 0, 100% 0, 100% 100%, 0 100%); }
}
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; color: #fff; }

.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: rgba(255, 255, 255, .95); font-family: var(--sans); font-size: .84rem; font-weight: 500; position: relative; white-space: nowrap; }
.nav-links a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1.5px; background: var(--yellow); transition: width .28s var(--ease); }
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .38); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); color: #fff !important; padding: .6rem 1.35rem; border-radius: 999px; transition: background .3s var(--ease), transform .35s var(--ease-spring); }
.nav-cta:hover { background: rgba(255, 255, 255, .26); transform: translateY(-2px); }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; position: relative; cursor: pointer; }
.burger, .burger::before, .burger::after { content: ""; position: absolute; left: 11px; width: 22px; height: 2px; border-radius: 2px; background: #fff; transition: transform .28s var(--ease), opacity .2s; }
.burger { top: 21px; }
.burger::before { top: -6.5px; }
.burger::after { top: 6.5px; }
.nav-toggle[aria-expanded="true"] .burger { background: transparent; }
.nav-toggle[aria-expanded="true"] .burger::before { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger::after { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================
   Hero (Video vom Spawn)
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; color: #fff; background: var(--black); }
.hero-media { position: absolute; inset: 0; z-index: 0; background: #000; }
.hero-zoomer { position: absolute; inset: -3% -1.5%; width: 103%; height: 106%; will-change: transform; }
.hero-video, .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video { opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-video.is-playing { opacity: 1; }
.hero-water { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .9s var(--ease); }
.hero-water.is-live { opacity: 1; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .14) 32%, rgba(0, 0, 0, .28) 64%, rgba(0, 0, 0, .78) 100%), radial-gradient(ellipse at 50% 62%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .42) 100%); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-inner { position: relative; z-index: 2; padding: 60px 0 clamp(4.5rem, 13vh, 9rem); max-width: 940px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-title { font-family: var(--display); font-weight: 600; color: #fff; font-size: clamp(3.4rem, 9.4vw, 9.2rem); line-height: 1.02; letter-spacing: -.015em; text-align: center; margin: 0 0 1.4rem; text-shadow: 0 2px 12px rgba(0,0,0,.34); }
.hero-title .hw-net { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; padding-right: .04em; }
.hero-lead { font-size: clamp(1.06rem, 1.7vw, 1.38rem); color: rgba(255, 255, 255, .92); max-width: 54ch; margin: 0 auto 2rem; text-shadow: 0 1px 10px rgba(0, 0, 0, .3); }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.hero-status { display: inline-flex; align-items: center; gap: .55rem; margin: 1.4rem 0 0; font-size: .88rem; font-weight: 500; color: rgba(255,255,255,.78); text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.status-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--honey); animation: statusbreathe 3.4s ease-in-out infinite alternate; }
.is-open .status-dot { background: var(--fresh); animation: statusbreathe 4.5s ease-in-out infinite alternate; }
.is-off .status-dot { background: #e0645a; }
@keyframes statusbreathe { from { opacity: .4; } to { opacity: 1; } }

/* ============================================================
   Abschnitte – Basis + Rhythmus (hell / schwarz)
   ============================================================ */
.section { padding: clamp(3rem, 6vw, 4.5rem) 0; position: relative; margin-top: -1px; }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 1.75rem; }
.section-head-sub { color: var(--ink-soft); max-width: 48ch; margin: .2rem auto 0; }

/* ---------- Statement (schwarz, gepinnt) ---------- */
.statement { background: var(--black); text-align: center; height: 170svh; padding: 0; position: relative; margin-top: -1px; }
.statement .narrow { position: sticky; top: 0; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.statement .eyebrow { color: var(--yellow); }
.statement-text { font-family: var(--display); font-weight: 700; letter-spacing: -.028em; font-size: clamp(2.4rem, 5.4vw, 4.5rem); line-height: 1.05; margin: .5em auto 2.2rem; color: var(--on-dark); }
.statement-text .fill-line { display: block; }
.statement-text .accent .w { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.statement-text .w { display: inline; opacity: .16; transition: opacity .35s var(--ease); }
.statement-sub { font-size: clamp(1.08rem, 1.6vw, 1.24rem); color: #86868b; font-weight: 500; max-width: 56ch; margin: 0 auto; }
.statement-sub strong { color: #fff; font-weight: 600; }

/* ---------- Spielmodi (schwarz) ---------- */
.showcase { background: var(--black); color: var(--on-dark); padding: clamp(4rem, 9vw, 7rem) 0 clamp(4rem, 8vw, 6rem); position: relative; margin-top: -1px; }
.showcase-head { text-align: center; margin-bottom: 0; padding-bottom: clamp(3rem, 8vh, 6rem); }
.showcase-head .eyebrow { color: var(--yellow); font-size: .94rem; font-weight: 600; margin-bottom: 1rem; }
.showcase-title { color: var(--on-dark); font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-weight: 700; line-height: 1.04; letter-spacing: -0.03em; }
.showcase-title span { display: block; }
.showcase-title .accent-line { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.showcase-sub { color: #86868b; max-width: min(640px, 92vw); margin: 1.6rem auto 0; font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.5; font-weight: 500; }
.showcase-sub .hl { color: #fff; font-weight: 600; }

/* Karten: Quelle für die Bühne und Fallback ohne Bewegung */
.mode-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.mode { position: relative; background: var(--dark-900); border-radius: 26px; overflow: hidden; will-change: transform; }
.mode-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--dark-800); }
.mode-media::after { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: var(--mode-accent, var(--yellow)); opacity: .16; filter: blur(34px); pointer-events: none; }
.mode-icon { position: relative; z-index: 1; width: 34%; height: auto; image-rendering: pixelated; image-rendering: crisp-edges; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .55)); }
.mode-shot-src { display: none; }
.mode-text { margin: 0; padding: 1.2rem 1.35rem 1.5rem; color: var(--gray-dark); font-size: .92rem; line-height: 1.5; }
.mode-text strong { color: #fff; font-weight: 600; }
.mode-size { display: block; margin-top: .55rem; font-size: .8rem; font-weight: 600; color: var(--mode-accent, var(--yellow)); }

/* Gepinnte Bühne: Screenshot als Hintergrund, Chip-Karte mit Icon, Text links */
.modes-stage { position: relative; height: calc(100svh * var(--stage-h, 5)); background: var(--black); }
.modes-pin { position: sticky; top: 0; height: 100svh; overflow: clip; display: flex; flex-direction: column; justify-content: center; background: var(--black); }
.modes-bg { position: absolute; inset: 0; z-index: 0; background: var(--black); overflow: hidden; }
.mode-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: translateY(var(--py, 0px)) scale(1.16); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.mode-shot.is-active { opacity: 1; transform: translateY(var(--py, 0px)) scale(1.1); }
.modes-bg::after { content: ""; position: absolute; inset: -3px; background: linear-gradient(90deg, rgba(0, 0, 0, .86) 0%, rgba(0, 0, 0, .6) 45%, rgba(0, 0, 0, .25) 100%), linear-gradient(180deg, #000 0%, #000 3%, rgba(0, 0, 0, .55) 20%, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, 0) 62%, rgba(0, 0, 0, .7) 86%, #000 97%, #000 100%); }
.modes-glow { position: absolute; left: 62%; top: 52%; width: min(60vw, 700px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, var(--stage-accent, var(--yellow)) 0%, transparent 62%); opacity: .22; filter: blur(60px); pointer-events: none; transition: background .7s var(--ease); z-index: 0; }
.modes-layout { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); min-height: min(62svh, 620px); }
.modes-texts { position: relative; min-height: 15em; }
.mode-panel { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; opacity: 0; transform: translateY(26px); transition: opacity .5s var(--ease), transform .6s var(--ease); pointer-events: none; }
.mode-panel.is-active { opacity: 1; transform: none; pointer-events: auto; }
.mode-panel.is-past { transform: translateY(-26px); }
.mode-panel h3 { font-size: clamp(2.6rem, 6vw, 5.2rem); font-weight: 700; letter-spacing: -.03em; line-height: 1; margin: 0 0 .45em; background: linear-gradient(100deg, #fff 0%, #fff 30%, var(--stage-accent, var(--yellow)) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.mode-panel p { color: rgba(255, 255, 255, .8); font-size: clamp(1.02rem, 1.5vw, 1.2rem); max-width: 44ch; margin: 0 0 1rem; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.mode-panel .mode-size { display: inline-block; font-size: .92rem; font-weight: 600; color: var(--stage-accent, var(--yellow)); margin: 0; }
/* Chip-Karte wie die M5-Kacheln: dunkles Quadrat, Farbschein in der Ecke, feiner Verlaufsrand */
.modes-visual { position: relative; aspect-ratio: 1; max-width: min(40vw, 400px); width: 100%; margin: 0 auto; perspective: 1200px; }
.modes-visual .chip.is-active { transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: opacity .55s var(--ease), transform .35s var(--ease); }
.chip { position: absolute; inset: 0; border-radius: 22px; background: #050505; overflow: hidden; opacity: 0; transform: translateY(40px) rotate(-6deg) scale(.86); transition: opacity .55s var(--ease), transform .75s var(--ease-spring); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); }
.chip::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, var(--chip-accent, var(--yellow)) 0%, rgba(255, 255, 255, .25) 40%, rgba(255, 255, 255, .06) 60%, var(--chip-accent, var(--yellow)) 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .8; }
.chip::after { content: ""; position: absolute; left: -20%; bottom: -25%; width: 90%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--chip-accent, var(--yellow)) 0%, transparent 65%); opacity: .55; filter: blur(30px); }
.chip.is-active { opacity: 1; transform: none; }
.chip.is-past { transform: translateY(-40px) rotate(6deg) scale(.86); }
.chip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 22%; image-rendering: pixelated; image-rendering: crisp-edges; filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .6)); z-index: 1; }
.modes-tabs { position: relative; z-index: 1; display: flex; gap: .35rem; justify-content: center; flex-wrap: wrap; margin-top: clamp(1.4rem, 3.5vh, 2.6rem); padding: 0 4vw; }
.modes-tab { font: inherit; font-size: .84rem; font-weight: 600; color: rgba(255, 255, 255, .55); background: none; border: 0; border-radius: 999px; padding: .55rem .95rem; min-height: 40px; cursor: pointer; position: relative; transition: color .3s var(--ease), background .3s var(--ease); }
.modes-tab:hover { color: #fff; }
.modes-tab.is-active { color: #fff; background: rgba(255, 255, 255, .1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.modes-tab.is-active::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 20px; height: 2px; border-radius: 2px; transform: translateX(-50%); background: var(--stage-accent, var(--yellow)); }
.modes-source.is-staged { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Wellenkante: von Schwarz ins Helle ---------- */
.wave-edge { position: relative; background: var(--black); line-height: 0; overflow: hidden; margin-top: -1px; }
.wave-edge svg { display: block; width: 200%; height: clamp(60px, 8vw, 120px); }
.wave-edge .wave-1 { animation: waveDrift 24s linear infinite; }
.wave-edge .wave-2 { animation: waveDrift 34s linear infinite reverse; }
.wave-edge .wave-3 { animation: waveDrift 30s linear infinite; }
@keyframes waveDrift { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Team (hell): Figur mittig, Text darunter ---------- */
.team { background: var(--parchment-2); text-align: center; margin-top: -2px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(1rem, 2.4vw, 1.6rem); max-width: 720px; margin: 1.5rem auto 0; justify-content: center; }
.team-card { display: flex; flex-direction: column; align-items: center; text-align: center; background: var(--cream-card); border: 1px solid var(--line); border-radius: 30px; padding: clamp(2rem, 4vw, 3rem) clamp(1.4rem, 3vw, 2.4rem) clamp(1.8rem, 3.6vw, 2.6rem); overflow: hidden; box-shadow: var(--shadow-soft); }
.team-skin { position: relative; display: flex; justify-content: center; margin-bottom: 1.4rem; }
.team-skin::before { content: ""; position: absolute; left: 50%; bottom: -4px; width: 60%; height: 22px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse, rgba(30, 24, 8, .26), transparent 70%); }
.team-skin img { position: relative; height: clamp(240px, 30vw, 330px); width: auto; filter: drop-shadow(0 18px 24px rgba(30, 24, 8, .25)); transform-origin: bottom center; transition: transform .6s var(--ease-spring); }
.team-card:hover .team-skin img { transform: translateY(-6px) rotate(-1.5deg); }
.team-rank { font-size: .9rem; font-weight: 700; margin: 0 0 .25rem; }
.team-rank--owner, .team-rank--admin { color: #b3261e; }
.team-rank--dev { color: #1f8a9c; }
.team-rank--mod { color: #2c5fd6; }
.team-rank--sup { color: #1f7f8a; }
.team-rank--builder { color: #2f7d32; }
.team-body h3 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); letter-spacing: -.025em; margin-bottom: .5rem; }
.team-body p { color: var(--ink-soft); font-size: 1rem; line-height: 1.55; margin: 0 auto .9rem; max-width: 40ch; }
.team-link { font-weight: 600; color: var(--gold); }
.team-link:hover { color: var(--ink); }

/* ---------- Verbindung (schwarz): Text links, Minecraft-Fenster rechts ---------- */
/* Gepinnte Bühne: 100 svh kleben, der Rest ist Scrollweg für das Video */
.connect { background: var(--black); color: var(--on-dark); padding: 0; margin-top: -1px; position: relative; }
.connect-stage { position: relative; height: 240svh; }
.connect-pin { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; }
.mc-hint { position: absolute; left: 50%; bottom: -2.2rem; transform: translateX(-50%); margin: 0; font-size: .8rem; font-weight: 600; color: #6e6e73; opacity: 0; transition: opacity .4s var(--ease); pointer-events: none; }
.mc.is-scrubbing .mc-hint { opacity: 1; }
.mc.is-done .mc-hint { opacity: 0; }
.connect .eyebrow { color: var(--yellow); }
.connect h2 { color: #fff; }
.connect-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.connect-sub { color: #86868b; font-weight: 500; font-size: clamp(1.02rem, 1.4vw, 1.18rem); max-width: 44ch; margin: 0 0 1.6rem; }
.connect-sub strong { color: #fff; font-weight: 600; }
.connect-actions { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.connect-status { display: inline-flex; align-items: center; gap: .55rem; margin: 0; font-size: .92rem; font-weight: 500; color: var(--gray-dark); }
.connect-status .status-dot { width: 8px; height: 8px; }

/* Das Minecraft-Fenster: echtes Video aus dem Spiel */
.mc { position: relative; border-radius: 22px; overflow: hidden; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .06); }
.mc-screen { position: relative; aspect-ratio: 1548 / 1039; background: #101317; }
.mc-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Fragen (hell, Akkordeon) ---------- */
.faq { background: var(--parchment); }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item h3 { margin: 0; font-size: 1rem; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; text-align: left; background: none; border: 0; padding: 1.15rem 0; cursor: pointer; font-family: var(--display); font-weight: 600; font-size: clamp(1.05rem, 1.6vw, 1.25rem); letter-spacing: -.01em; color: var(--ink); transition: color .25s var(--ease); }
.faq-q:hover { color: var(--gold); }
.faq-plus { position: relative; flex: none; width: 22px; height: 22px; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.6px; background: currentColor; transform: translate(-50%, -50%); transition: transform .35s var(--ease-spring); }
.faq-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-q[aria-expanded="true"] .faq-plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.faq-a-inner { overflow: hidden; }
.faq-a-inner p { margin: 0 0 1.2rem; color: var(--ink-soft); font-size: 1rem; line-height: 1.55; max-width: 62ch; }
.faq-a-inner strong { color: var(--ink); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }

/* ---------- Mitspielen (schwarz, Screenshot vom Spawn) ---------- */
.join { position: relative; overflow: hidden; text-align: center; color: #fff; padding: clamp(5rem, 10vw, 8rem) 0; background: var(--black); }
.join-bg { position: absolute; left: 0; top: -20%; width: 100%; height: 140%; object-fit: cover; will-change: transform; }
.join-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .5) 40%, rgba(0, 0, 0, .56) 70%, rgba(0, 0, 0, .86) 100%), radial-gradient(ellipse at 50% 55%, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, .5) 100%); }
.join-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.join .eyebrow { color: var(--yellow); }
.join-title { color: #fff; font-weight: 600; letter-spacing: -.015em; line-height: 1.04; font-size: clamp(2.6rem, 6.4vw, 5.75rem); margin: 0 0 1.1rem; text-shadow: 0 2px 16px rgba(0, 0, 0, .35); }
.join-title .hw-mask:nth-child(2) .hw { transition-delay: .09s; }
.join-title .hw-mask:nth-child(3) .hw { transition-delay: .18s; }
.join-title.is-visible .hw { transform: none; }
.join-title .accent { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; padding-right: .06em; }
.join-sub { color: rgba(255, 255, 255, .9); text-shadow: 0 1px 8px rgba(0, 0, 0, .4); font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 44ch; margin: 0 auto 2.2rem; }
.join-actions { display: flex; align-items: center; justify-content: center; gap: 1.4rem; flex-wrap: wrap; }
.join-note { margin: 1.6rem 0 0; font-size: .88rem; color: rgba(255, 255, 255, .7); }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--black); color: rgba(245, 242, 232, .78); padding: clamp(2.2rem, 4vw, 2.8rem) 0 1.4rem; border-top: 1px solid var(--line-dark); margin-top: -1px; }
.footer-crest { text-align: center; padding-bottom: clamp(1.6rem, 4vw, 2.4rem); }
.footer-logo { height: clamp(110px, 15vw, 140px); width: auto; margin: 0 auto 1.2rem; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .6)); }
.footer-bye { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; font-size: clamp(1.9rem, 4vw, 2.8rem); color: var(--on-dark); margin: 0 0 .4rem; }
.footer-bye span { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.footer-tagline { font-size: .85rem; color: var(--gray-dark); margin: 0; }
.footer-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.4rem, 4vw, 3rem); max-width: 760px; margin: 0 auto; padding: clamp(1.8rem, 4vw, 2.6rem) 0; border-top: 1px solid var(--line-dark); text-align: center; }
.footer-top p { margin: 0 0 .3rem; font-size: .95rem; }
.footer-head { font-family: var(--sans); font-size: .8rem; font-weight: 600; color: var(--gray-dark); margin: 0 0 .55rem; }
.footer-top a { color: #fff; }
.footer-top a:hover { color: var(--yellow); }
.footer .muted { color: var(--gray-dark); }
.footer-base { margin-top: clamp(1.2rem, 3vw, 1.8rem); padding-top: clamp(1.2rem, 3vw, 1.8rem); border-top: 1px solid var(--line-dark); text-align: center; font-size: .82rem; color: rgba(245, 242, 232, .45); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 260; padding: .8rem 1.25rem; border-radius: 999px; background: rgba(0, 0, 0, .9); color: #fff; font-size: .9rem; font-weight: 500; border: 1px solid rgba(255,255,255,.18); box-shadow: 0 16px 40px -18px rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease), transform .4s var(--ease-spring); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .addr { font-family: var(--mono); font-weight: 600; color: var(--yellow); user-select: all; }

/* ============================================================
   Scroll-Scrub: Elemente steigen mit dem Scrollen ein (JS setzt --p),
   wie auf den Apple-Seiten. Ohne JS bleibt alles sichtbar.
   ============================================================ */
.scrub { --p: 1; opacity: var(--p); transform: translateY(calc((1 - var(--p)) * 56px)) scale(calc(.94 + var(--p) * .06)); will-change: opacity, transform; }
.scrub--big { transform: translateY(calc((1 - var(--p)) * 40px)) scale(calc(.82 + var(--p) * .18)); }
body.js .scrub { --p: 0; }
.scrub-words .w { display: inline-block; --p: 1; opacity: var(--p); transform: translateY(calc((1 - var(--p)) * .55em)); will-change: opacity, transform; }
body.js .scrub-words .w { --p: 0; }

/* ============================================================
   Scroll-Reveal
   ============================================================ */
.reveal { opacity: 0; transition: opacity .7s var(--ease), transform .8s var(--ease); will-change: opacity, transform; }
.reveal[data-reveal="up"] { transform: translateY(24px); }
.reveal[data-reveal="fade"] { transform: none; }
.reveal[data-reveal="scale"] { transform: scale(.97); }
.reveal.is-visible { opacity: 1; transform: none; }


/* ============================================================
   Breiten
   ============================================================ */
@media (max-width: 1100px) {
  .mode-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .connect-grid { grid-template-columns: 1fr; text-align: center; }
  .connect-sub { margin-inline: auto; }
  .connect-actions { justify-content: center; }
  .mc { max-width: 620px; margin: 0 auto; }
  .modes-layout { grid-template-columns: 1fr; gap: 1.2rem; text-align: center; min-height: 0; }
  .mode-panel { align-items: center; }
  .mode-panel p { margin-inline: auto; }
  .modes-visual { max-width: min(46vw, 240px); order: -1; }
  .modes-texts { min-height: 13em; }
  .modes-bg::after { background: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .7) 22%, rgba(0, 0, 0, .5) 45%, rgba(0, 0, 0, .85) 100%); }
  .modes-glow { left: 50%; top: 32%; }
}

@media (max-width: 1024px) and (min-width: 721px) {
  .nav-links { gap: 1.15rem; }
  .nav-links a:not(.nav-cta) { padding: .72rem .05rem; }
  .nav-cta { padding: .62rem 1.05rem; }
}

@media (max-width: 720px) {
  h2 { font-size: clamp(2rem, 8vw, 2.7rem); }
  .section { padding: clamp(3.4rem, 12vw, 5rem) 0; }
  .section-head { margin-bottom: 2.2rem; }
  .footer-top { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-top div { padding-bottom: 1.2rem; border-bottom: 1px solid var(--line-dark); }
  .footer-top div:last-child { padding-bottom: 0; border-bottom: 0; }
  .brand-name { display: none; }
  .nav-toggle { display: block; }
  .nav-links { position: fixed; inset: 70px 12px auto 12px; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(0, 0, 0, .62);
    -webkit-backdrop-filter: blur(26px) saturate(1.7); backdrop-filter: blur(26px) saturate(1.7);
    border: 1px solid rgba(255, 255, 255, .2); border-radius: 26px;
    padding: .6rem 1.4rem 1.4rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), 0 30px 70px -24px rgba(0, 0, 0, .6);
    transform: translateY(-135%); transition: transform .42s var(--ease-spring), opacity .3s var(--ease);
    opacity: 0; max-height: calc(100svh - 84px); overflow: auto; }
  .nav-links::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
    background: radial-gradient(130% 60% at 26% -12%, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0) 55%); }
  .nav-links > li { position: relative; z-index: 1; }
  .nav-links.open { transform: translateY(0); opacity: 1; }
  .nav-links li { border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .nav-links li:last-of-type { border-bottom: 0; }
  .nav-links a:not(.nav-cta) { display: block; padding: 1.05rem .2rem; font-size: .92rem; font-weight: 500; color: rgba(245, 242, 232, .92) !important; }
  .nav-links a:not(.nav-cta)::after { display: none; }
  .nav-links a:not(.nav-cta):active { color: #fff !important; }
  .nav-cta { display: block; text-align: center; margin-top: 1.1rem; padding: .95rem 1.35rem; color: #fff !important; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .4); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); font-weight: 600; }
  .nav-cta:active { background: rgba(255, 255, 255, .26); }
  .mode-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .hero-actions { flex-direction: column; align-items: stretch; width: min(100%, 360px); }
  .hero-actions .btn { width: 100%; }
  .hero-status { font-size: .82rem; }
  .join-actions { flex-direction: column; gap: 1rem; }
  .modes-visual { max-width: 170px; }
  .modes-texts { min-height: 14em; }
  .modes-tab { font-size: .78rem; padding: .5rem .7rem; }
  .statement { height: 150svh; }
  .connect-actions { width: 100%; }
  .connect-actions .btn { width: 100%; }
  .team-link, .footer-top a { display: inline-flex; align-items: center; min-height: 44px; }
}

@media (max-width: 560px) {
  .statement-text { font-size: 2.05rem; }
}

/* ============================================================
   Weniger Bewegung
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .scrub, .scrub-words .w { --p: 1 !important; opacity: 1 !important; transform: none !important; }
  .connect-stage { height: auto; }
  .connect-pin { position: static; height: auto; padding: clamp(5rem, 11vh, 8rem) 0; }
  .brand-logo { animation: none !important; clip-path: none; }
  .hero-img, .hero-zoomer { transform: none !important; animation: none; }
  .hero-video, .hero-water { display: none; }
  .hw { transform: none !important; transition: none; }
  .hero-veil { display: none; }
  .hero-leaves { display: none; }
  .join-bg { transform: none !important; }
  .statement { height: auto; padding: clamp(4rem, 14vw, 6rem) 0; }
  .statement .narrow { position: static; min-height: 0; display: block; }
  .statement-text .w { opacity: 1 !important; transition: none; }
  .join-title { animation: none !important; opacity: 1 !important; transform: none !important; }
  .mode { transform: none !important; }
  .faq-a { transition: none; }
  .btn:hover { transform: none; }
  .vine-leaf, .vine-leaf .leaf-scale { opacity: .9; transform: none; transition: none; }
  .wave-edge g { animation: none; }
}
