/* Startseite. Schriften liegen selbst gehostet unter /home/fonts (keine Abrufe bei Dritten). */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 900; font-stretch: 62% 125%; font-display: swap; src: url("/home/fonts/archivo.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/home/fonts/instrument-sans.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("/home/fonts/jetbrains-mono.woff2") format("woff2"); }
/* Layout: ein fester 3D-Bühnenraum hinter einer Scroll-Erzählung in acht „Sätzen“.
   Breit: Text wechselt die Seite, das Objekt steht gegenüber. Schmal: Objekt im oberen Fenster, Text als Blatt darunter. */
:root {
  --ink: #050d09;      /* Hallenschwarz mit Waldgrün-Stich (Markenhintergrund) */
  --iron: #0c1913;     /* Flächen */
  --chalk: #eef3ea;    /* Text, wie Magnesia */
  --fog: #9aada2;      /* Nebentext */
  --lime: #d8ff2f;     /* Markenfarbe der Hantelscheiben */
  --lime-ink: #0b1a00;
  --line: rgba(238, 243, 234, 0.12);
  --display: "Archivo", "Arial Black", "Helvetica Neue", sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--chalk);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--ink); }
a { color: var(--lime); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--lime); color: var(--lime-ink); }

/* Bühne: an der größten Viewport-Höhe ausgerichtet, damit sie beim Ein- und Ausfahren der Browserleiste nicht springt */
#stage { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: 0; display: block;
  opacity: 0; transition: opacity 1.4s ease; }
.ready #stage { opacity: 1; }
#svh { position: fixed; top: 0; left: 0; width: 0; height: 100vh; height: 100svh; visibility: hidden; pointer-events: none; } /* Messlatte: kleinste Fensterhöhe */

.gutter { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.wrap { max-width: 1240px; margin: 0 auto; }

/* Kopfzeile mit Satz-Zähler */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--ink) 58%, transparent);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); }
.top .wrap { display: flex; align-items: center; gap: 26px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--chalk); text-decoration: none;
  font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 17px; letter-spacing: .02em; text-transform: uppercase; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--fog); text-decoration: none; font-size: 14px; font-weight: 500; padding: 6px 0; position: relative; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--out); }
.nav a:hover, .nav a.on { color: var(--chalk); }
.nav a.on::after { transform: scaleX(1); }
.set { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--fog); white-space: nowrap; }
.set b { color: var(--chalk); font-weight: 700; font-variant-numeric: tabular-nums; }
.no-gl .set, .no-gl .rail { display: none; }
.lang { font-family: var(--mono); font-size: 12px; color: var(--fog); text-decoration: none; border: 1px solid var(--line); padding: 4px 8px; border-radius: 6px; }
.lang:hover { color: var(--chalk); border-color: rgba(238,243,234,.3); }
.rail { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 3px; height: 2px; }
.rail i { flex: 1; background: var(--line); position: relative; overflow: hidden; }
.rail i::after { content: ""; position: absolute; inset: 0; background: var(--lime); transform: scaleX(var(--p, 0)); transform-origin: left; }

/* Knöpfe */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 24px; border-radius: 15px;
  font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; transition: transform .35s var(--out), border-color .2s, background .2s; }
.btn-lime { background: var(--lime); color: var(--lime-ink); box-shadow: 0 12px 44px -12px rgba(216,255,47,.6), inset 0 1px 0 rgba(255,255,255,.55), inset 0 -2px 0 rgba(60,90,0,.25); }
.btn-lime::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); animation: sheen 5.5s ease-in-out infinite; }
@keyframes sheen { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.btn-ghost { color: var(--chalk); border-color: var(--line); background: rgba(255,255,255,.035); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
a.btn:hover { transform: translateY(-2px); }
.btn-ghost:hover { border-color: rgba(216,255,47,.55); background: rgba(216,255,47,.06); }
.btn .apple { width: 19px; height: 19px; flex: none; }
.btn small { display: block; font-size: 11px; font-weight: 500; opacity: .75; line-height: 1; }
.btn span { line-height: 1.1; }

/* Erzählung */
main { position: relative; z-index: 2; }
.sec { position: relative; isolation: isolate; min-height: 100svh; display: flex; align-items: center; padding-block: 110px; scroll-margin-top: 0; }
/* Lesbarkeit: dunkler Verlauf hinter der Textspalte, oben und unten ausgeblendet */
.sec::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(5,13,9,.82) 0%, rgba(5,13,9,.6) 34%, rgba(5,13,9,0) 62%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent); }
.sec.right::before { background: linear-gradient(270deg, rgba(5,13,9,.82) 0%, rgba(5,13,9,.6) 34%, rgba(5,13,9,0) 62%); }
.sec.pricing::before { background: rgba(5,13,9,.62); }
.sec.final::before { background: radial-gradient(60% 40% at 50% 78%, rgba(5,13,9,.8), rgba(5,13,9,0)); -webkit-mask-image: none; mask-image: none; }
.sec .wrap { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.copy { max-width: 560px; min-width: 0; }
.sec.right .copy { grid-column: 2; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--lime);
  display: flex; align-items: center; gap: 12px; margin: 0 0 20px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--lime); flex: none; }
.eyebrow .no { color: var(--fog); }
h1, h2 { font-family: var(--display); font-stretch: 125%; font-weight: 850; text-transform: uppercase;
  line-height: .93; letter-spacing: -.012em; margin: 0 0 24px; }
h1 { font-size: clamp(46px, 8.4vw, 132px); line-height: .88; }
h1 em, h2 em { font-style: normal; color: var(--lime); }
h2 { font-size: clamp(31px, 4.3vw, 66px); }
.ln { display: block; text-wrap: balance; }
.lead { font-size: clamp(17px, 1.45vw, 20px); line-height: 1.55; color: color-mix(in srgb, var(--chalk) 84%, var(--fog)); margin: 0 0 30px; max-width: 33em; text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--fog); }
.ticks li { display: flex; align-items: center; gap: 8px; }
.ticks li::before, .plan li::before { content: ""; width: 14px; height: 14px; flex: none; background: var(--lime);
  -webkit-mask: url("/home/img/tick.svg") center/contain no-repeat;
  mask: url("/home/img/tick.svg") center/contain no-repeat; }
.chips { list-style: none; padding: 0; margin: 0; display: grid; }
.chips li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: baseline; padding: 13px 0; border-top: 1px solid var(--line); color: var(--chalk); font-weight: 500; }
.chips li:last-child { border-bottom: 1px solid var(--line); }
.chips li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(216,255,47,.14); transform: translateY(-1px); }
.chips li span { color: var(--fog); font-weight: 400; }

.hero { min-height: calc(100svh - 64px); padding-block: 48px 110px; }
.hero::before { background: linear-gradient(90deg, rgba(5,13,9,.88) 0%, rgba(5,13,9,.62) 38%, rgba(5,13,9,0) 66%);
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent); mask-image: linear-gradient(to bottom, #000 78%, transparent); }
.hero .copy { max-width: 640px; }
.hero h1 { margin-bottom: 28px; }
.gl-fallback { display: none; }
.no-gl .gl-fallback { display: block; width: min(320px, 70%); border-radius: 28%; justify-self: center; align-self: center; box-shadow: 0 40px 120px -20px rgba(216,255,47,.35); }
.cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--fog);
  display: grid; justify-items: center; gap: 10px; }
.cue::after { content: ""; width: 1px; height: 34px; background: linear-gradient(var(--lime), transparent); animation: cue 2.2s var(--out) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* Satz-Anzeige wie in der App */
.setcard { margin: 4px 0 28px; display: grid; gap: 10px; }
.setcard .meta { font-family: var(--mono); font-size: 13px; color: var(--fog); letter-spacing: .06em; display: flex; align-items: center; gap: 10px; }
.setcard .meta::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.setcard .nums { display: flex; align-items: baseline; gap: .3em; font-family: var(--mono); font-weight: 700;
  font-size: clamp(54px, 7vw, 100px); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.setcard .nums small { font-size: .28em; color: var(--fog); font-weight: 500; letter-spacing: 0; }
.setcard .nums i { font-style: normal; color: var(--lime); font-size: .5em; margin-inline: .1em; }

.note { font-size: 14px; color: var(--fog); border-left: 2px solid rgba(216,255,47,.4); padding-left: 14px; margin: 26px 0 0; }

/* Preise */
.pricing .wrap { display: block; }
.pricing .copy { max-width: 800px; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.plan { --mx: 50%; --my: 0%; position: relative; padding: 30px 28px 28px; border-radius: 24px; display: grid; gap: 18px; align-content: start;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(216,255,47,.09), transparent 60%), linear-gradient(180deg, rgba(20,38,29,.82), rgba(9,20,15,.82));
  border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06); transition: transform .5s var(--out), border-color .3s; }
.plan:hover { transform: translateY(-4px); border-color: rgba(238,243,234,.26); }
.plan.best { border-color: rgba(216,255,47,.55); box-shadow: inset 0 1px 0 rgba(216,255,47,.4), 0 40px 90px -50px rgba(216,255,47,.6); }
.plan.best:hover { border-color: var(--lime); }
.plan .tag { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--fog); display: flex; align-items: center; gap: 10px; }
.plan .tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--fog); }
.plan.best .tag { color: var(--lime); }
.plan.best .tag::before { border-color: var(--lime); background: var(--lime); box-shadow: 0 0 0 4px rgba(216,255,47,.16); }
.plan .price { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: clamp(40px, 4.2vw, 56px); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.plan .price small { font-family: var(--body); font-stretch: 100%; font-size: 15px; font-weight: 500; color: var(--fog); letter-spacing: 0; }
.plan ul { list-style: none; margin: 0; padding: 0; color: color-mix(in srgb, var(--chalk) 70%, var(--fog)); font-size: 15px; display: grid; gap: 9px; }
.plan li { display: grid; grid-template-columns: 14px 1fr; gap: 10px; align-items: start; }
.plan li::before { margin-top: 5px; }
.fine { font-size: 13px; color: var(--fog); max-width: 74em; margin: 30px 0 0; line-height: 1.6; }

.final { text-align: center; align-items: flex-end; padding-block: 46svh 84px; }
.final .wrap { display: block; }
.final .copy { margin: 0 auto; max-width: 1100px; }
@media (min-width: 861px) { .final .ln { white-space: nowrap; } }
.final h2 { font-size: clamp(38px, 5.4vw, 92px); margin-bottom: 20px; }
.final .lead { margin-bottom: 26px; }
.final .fine { margin-top: 22px; }
.final .eyebrow { justify-content: center; }
.final .eyebrow::after { content: ""; width: 26px; height: 2px; background: var(--lime); flex: none; }
.final .lead { margin-inline: auto; }
.final .actions { justify-content: center; }
.final .fine { margin-inline: auto; }
.no-gl .final { padding-block: 110px; }

footer { position: relative; z-index: 2; border-top: 1px solid var(--line); background: var(--ink); padding-block: 36px 48px; font-size: 13px; color: var(--fog); }
footer .wrap { display: grid; gap: 10px; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer nav a { color: var(--chalk); text-decoration: none; }
footer nav a:hover { color: var(--lime); }
footer p { margin: 0; }

/* Einblenden beim Scrollen (nur mit JavaScript; ohne bleibt alles sichtbar) */
.js .rv > * { opacity: 0; }
.js .rv.in > * { opacity: 1; animation: rise 1s var(--out) backwards; animation-delay: calc(var(--i, 0) * 80ms); }
/* Der Start wartet nicht aufs Scrollen */
.js .hero .rv > * { opacity: 1; animation: rise 1.1s var(--out) backwards; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
.hero .rv > :nth-child(2) { --i: 1; } .hero .rv > :nth-child(3) { --i: 2; } .hero .rv > :nth-child(4) { --i: 3; } .hero .rv > :nth-child(5) { --i: 4; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

@media (max-width: 860px) and (orientation: portrait), (max-width: 640px) {
  .nav, .cue { display: none; }
  .top .wrap { gap: 14px; }
  .set { margin-left: auto; }
  .sec { min-height: 0; padding-block: 50svh 110px; align-items: flex-start; }
  .sec::before, .sec.right::before, .hero::before { -webkit-mask-image: none; mask-image: none;
    background: linear-gradient(to bottom, rgba(5,13,9,0) 0, rgba(5,13,9,0) calc(50svh - 64px), var(--ink) calc(50svh - 6px), var(--ink) calc(100% - 120px), rgba(5,13,9,0) 100%); }
  .hero { padding-block: calc(50svh - 64px) 110px; }
  .hero::before { background: linear-gradient(to bottom, rgba(5,13,9,0) 0, rgba(5,13,9,0) calc(50svh - 128px), var(--ink) calc(50svh - 70px), var(--ink) calc(100% - 120px), rgba(5,13,9,0) 100%); }
  .sec .wrap { grid-template-columns: 1fr; }
  .sec.right .copy { grid-column: 1; }
  .pricing { padding-block: 60px 110px; }
  .sec.pricing::before { background: linear-gradient(to bottom, rgba(5,13,9,0) 0, var(--ink) 60px, var(--ink) calc(100% - 120px), rgba(5,13,9,0) 100%); }
  .final { padding-block: 50svh 96px; }
  .sec.final::before { background: linear-gradient(to bottom, rgba(5,13,9,0) 0, rgba(5,13,9,0) calc(50svh - 64px), var(--ink) calc(50svh - 6px)); }
  .plans { grid-template-columns: 1fr; margin-top: 32px; }
  .no-gl .sec { padding-block: 72px; }
  .no-gl .hero { padding-block: 40px 64px; }
  .no-gl .gl-fallback { order: -1; }
}
@media (max-width: 480px) { .brand { font-size: 15px; } .set { font-size: 11px; } .eyebrow { font-size: 11px; letter-spacing: .08em; gap: 10px; } .eyebrow::before, .final .eyebrow::after { width: 18px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv > *, .js .rv.in > *, .js .hero .rv > * { opacity: 1; animation: none; }
  .btn-lime::after, .cue::after { animation: none; }
  #stage { transition: none; }
}
.skip { position: absolute; left: -9999px; top: 8px; z-index: 40; background: var(--lime); color: var(--lime-ink); padding: 10px 14px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { left: 12px; }
