@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Aus src/theme.ts der App uebernommen - Web und App teilen die Marke. */
  --ink: #08070a;
  --ink-2: #131218;
  --acid: #c4f000;
  --on-acid: #0b0a0d;
  --text: #ffffff;
  --dim: #a1a1aa;
  --faint: #6b6b73;
  --hairline: rgba(255, 255, 255, 0.1);

  /* Neon als Flaeche - identisch zum Light Mode der App. */
  --acid-text: #0b0a0d;
  --acid-dim: #3f4a14;
  --acid-line: rgba(11, 10, 13, 0.18);

  --shell: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --band: clamp(88px, 12vw, 172px);

  --step: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --lede: clamp(1.18rem, 1.02rem + 0.7vw, 1.6rem);
  --h2: clamp(2.1rem, 1.3rem + 3.4vw, 4.4rem);
  --h1: clamp(2.7rem, 1.1rem + 5.4vw, 5.5rem);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--ink);
  color: var(--text);
  font-family: "Archivo", ui-sans-serif, system-ui, sans-serif;
  font-size: var(--step);
  font-variation-settings: "wdth" 100, "wght" 400;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  margin: 0;
  font-variation-settings: "wdth" 80, "wght" 800;
  letter-spacing: -0.03em;
  line-height: 0.94;
  text-wrap: balance;
}

h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 {
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.6rem);
  line-height: 1.1;
}

p { margin: 0; }

a {
  color: inherit;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}

/* height: auto ist Pflicht, sonst gewinnt das height-Attribut der Bilder
   gegen die Breitenbegrenzung und das Seitenverhaeltnis kippt. */
img { display: block; max-width: 100%; height: auto; }

figure { margin: 0; }

::selection { background: var(--acid); color: var(--on-acid); }

:focus-visible {
  outline: 3px solid var(--acid);
  outline-offset: 3px;
  border-radius: 4px;
}

.shell {
  width: min(100% - (2 * var(--gutter)), var(--shell));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--gutter);
  top: 12px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--acid);
  color: var(--on-acid);
  font-variation-settings: "wght" 700;
  text-decoration: none;
}

/* ---------- Kopf ---------- */

.top {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand img { width: 96px; }

.top nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  color: var(--dim);
  font-size: 0.92rem;
}
.top nav a { text-decoration: none; }
.top nav a:hover { color: var(--text); }

.lang {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 0.8rem;
  font-variation-settings: "wght" 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lang a {
  padding: 5px 11px;
  color: var(--dim);
  text-decoration: none;
}
.lang a:hover { color: var(--text); }
.lang [aria-current] {
  background: var(--acid);
  color: var(--on-acid);
}

/* ---------- Aktionen ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--acid);
  color: var(--on-acid);
  font-size: 1.02rem;
  font-variation-settings: "wght" 750;
  text-decoration: none;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease);
}
.btn:hover { background: #d4ff2b; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }

.btn--line {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--hairline);
  color: var(--text);
}
.btn--line:hover { background: rgba(255, 255, 255, 0.06); }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.note {
  color: var(--faint);
  font-size: 0.86rem;
}

/* ---------- Erste Ansicht: zwei Listen ---------- */

.opening {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  min-height: min(86svh, 900px);
  padding: clamp(26px, 3.4vw, 54px) 0 var(--band);
}

.opening__say {
  position: relative;
  z-index: 3;
}
/* ch rechnet gegen die eigene Schriftgroesse - die Zeilenlaenge gehoert
   deshalb an die Ueberschrift, nicht an den Block darum. */
.opening h1 { max-width: 11ch; }
.opening h1 span { color: var(--acid); }

.opening__lede {
  max-width: 52ch;
  margin-top: 20px;
  color: var(--dim);
  font-size: var(--lede);
  line-height: 1.42;
}
.opening .actions { margin-top: 26px; }
.opening .note { margin-top: 16px; }

/* Die zwei Spalten sind der Mechanismus, nicht Dekoration: links deine
   Urteile, rechts ihre. Sie laufen gegeneinander, ein Titel steht in beiden. */
.ledger {
  position: absolute;
  top: 50%;
  right: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: min(46%, 500px);
  /* Kuerzer als der Inhalt der Spalten (rund 690px), sonst laeuft die
     Schleife sichtbar leer. */
  height: min(620px, 74%);
  overflow: hidden;
  transform: translateY(-50%);
  mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
  pointer-events: none;
}

.ledger__col {
  display: grid;
  align-content: start;
  gap: 10px;
  animation: drift 46s linear infinite;
}
/* Gegenlaeufig wirkt hier falsch - beide Listen laufen in dieselbe Richtung,
   nur versetzt. Sonst gaebe es keinen Moment, in dem dieselbe Zeile in beiden
   Spalten auf gleicher Hoehe steht. */
.ledger__col--down { animation-delay: -21s; }

@keyframes drift {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

.ledger__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 15px;
  border-radius: 14px;
  background: var(--ink-2);
  color: var(--dim);
  font-size: 0.85rem;
  line-height: 1.25;
}
.ledger__row b {
  font-variation-settings: "wdth" 88, "wght" 650;
  letter-spacing: -0.01em;
}
.ledger__mark {
  flex: none;
  width: 18px;
  height: 18px;
  opacity: 0.5;
}
.ledger__row--yes { color: var(--text); }
.ledger__row--yes .ledger__mark { color: var(--acid); opacity: 1; }
.ledger__row--both {
  background: var(--acid);
  color: var(--on-acid);
}
.ledger__row--both .ledger__mark { color: var(--on-acid); opacity: 1; }

/* ---------- Der Treffer: Neon uebernimmt die Flaeche ---------- */

.verdict {
  position: relative;
  background: var(--acid);
  color: var(--acid-text);
}
.verdict__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(36px, 6vw, 76px);
  padding: var(--band) 0;
}
.verdict h2 { max-width: 15ch; }
.verdict p {
  max-width: 52ch;
  color: var(--acid-dim);
  font-size: var(--lede);
  line-height: 1.45;
}
.verdict__num {
  display: block;
  font-size: clamp(4.5rem, 2rem + 14vw, 13rem);
  font-variation-settings: "wdth" 74, "wght" 900;
  letter-spacing: -0.045em;
  line-height: 0.8;
}
.verdict__cut {
  margin: 30px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--acid-line);
  color: var(--acid-text);
  font-size: 1rem;
}

/* ---------- Telefone ---------- */

/* Geraeterahmen: das Bild ist ein roher Bildschirmabzug, die Kanten und
   Tasten entstehen hier. */
.phone {
  position: relative;
  justify-self: center;
  width: min(100%, 320px);
  padding: 11px;
  border-radius: 52px;
  background: linear-gradient(158deg, #33333b, #141418 42%, #24242b);
  box-shadow:
    0 34px 70px -28px rgba(0, 0, 0, 0.85),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.phone img { border-radius: 41px; }

.phone::before,
.phone::after {
  content: "";
  position: absolute;
  width: 3px;
  border-radius: 3px;
  background: #3a3a43;
}
/* Standby rechts, Lautstaerke links. */
.phone::before { right: -2px; top: 23%; height: 10%; }
.phone::after { left: -2px; top: 19%; height: 15%; }

.verdict .phone {
  box-shadow:
    0 34px 70px -30px rgba(28, 40, 0, 0.75),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

/* ---------- Freundesansicht, nachgebaut ---------- */

.crew {
  justify-self: center;
  width: min(100%, 420px);
  padding: 20px;
  border-radius: 22px;
  background: var(--ink-2);
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.9);
}
.crew__label {
  margin-bottom: 14px;
  color: var(--faint);
  font-size: 0.72rem;
  font-variation-settings: "wght" 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.crew__row {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  /* Der Balken ist die Trefferzahl, nicht Zierde. */
  background: linear-gradient(
    90deg,
    rgba(196, 240, 0, 0.16) var(--w),
    rgba(255, 255, 255, 0.035) var(--w)
  );
}
.crew__row:last-of-type { margin-bottom: 0; }
.crew__badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(196, 240, 0, 0.16);
  color: var(--acid);
  font-size: 0.76rem;
  font-variation-settings: "wght" 800;
  letter-spacing: 0.02em;
}
.crew__name {
  flex: 1;
  font-variation-settings: "wdth" 88, "wght" 650;
  letter-spacing: -0.01em;
}
.crew__count {
  color: var(--acid);
  font-size: 1.45rem;
  font-variation-settings: "wdth" 76, "wght" 900;
  letter-spacing: -0.03em;
  line-height: 1;
}
.crew__count small {
  display: block;
  color: var(--faint);
  font-size: 0.66rem;
  font-variation-settings: "wdth" 100, "wght" 500;
  letter-spacing: 0;
  text-align: right;
}
.crew__note {
  margin-top: 16px;
  color: var(--faint);
  font-size: 0.8rem;
}

.trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: clamp(18px, 3vw, 44px);
  margin-top: clamp(40px, 6vw, 80px);
}
.trio figure { margin: 0; }
.trio figure:nth-child(2) { transform: translateY(-6%); }
.trio .phone { width: 100%; }
.trio figcaption {
  margin-top: 20px;
  color: var(--dim);
  font-size: 0.95rem;
  line-height: 1.45;
}
.trio figcaption b {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-variation-settings: "wdth" 86, "wght" 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

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

.band { padding: var(--band) 0; }
.band--line { border-top: 1px solid var(--hairline); }

.band__head {
  display: grid;
  gap: 22px;
  max-width: 62ch;
}
.band__head p {
  color: var(--dim);
  font-size: var(--lede);
  line-height: 1.45;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(34px, 5vw, 70px);
}

.terms {
  display: grid;
  gap: 0;
  margin-top: clamp(30px, 4vw, 54px);
}
.terms div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px 40px;
  padding: 24px 0;
  border-top: 1px solid var(--hairline);
}
.terms dt {
  font-variation-settings: "wdth" 86, "wght" 700;
  font-size: 1.12rem;
  letter-spacing: -0.015em;
}
.terms dd {
  margin: 0;
  max-width: 60ch;
  color: var(--dim);
}

/* ---------- Schluss ---------- */

.close {
  padding: var(--band) 0 clamp(60px, 8vw, 110px);
  text-align: center;
}
.close h2 { margin-inline: auto; max-width: 16ch; }
.close .actions { justify-content: center; margin-top: 36px; }
.close .note { margin-top: 18px; }

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 0 48px;
  border-top: 1px solid var(--hairline);
  color: var(--faint);
  font-size: 0.86rem;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }

/* ---------- Rechts- und Supportseiten ---------- */

.page {
  max-width: 74ch;
  padding: clamp(40px, 6vw, 82px) 0 var(--band);
}
.page h1 {
  font-size: clamp(2.4rem, 1.4rem + 4vw, 5rem);
  margin-bottom: 34px;
}
.page h2 {
  margin: 54px 0 14px;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
}
.page h3 {
  margin: 30px 0 8px;
  font-size: 1.08rem;
}
.page p,
.page li {
  margin: 0 0 14px;
  color: #d5d6d0;
  line-height: 1.7;
}
.page ul { padding-left: 20px; }
.page a { color: var(--acid); }

.notice {
  margin: 32px 0;
  padding: 22px 24px;
  border-radius: 16px;
  background: var(--ink-2);
}
.notice p:last-child { margin-bottom: 0; }

.contact {
  margin: 0 0 14px;
  color: #d5d6d0;
  font-style: normal;
  line-height: 1.7;
}
.contact a { color: var(--acid); }

.steps {
  display: grid;
  gap: 0;
  margin: 32px 0;
}
.steps article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 6px 18px;
  padding: 22px 0;
  border-top: 1px solid var(--hairline);
}
.steps span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--acid);
  color: var(--on-acid);
  font-size: 0.9rem;
  font-variation-settings: "wght" 800;
}
.steps h2 {
  grid-column: 2;
  margin: 4px 0 6px;
  font-size: 1.15rem;
}
.steps p { grid-column: 2; }

/* ---------- Breiter ---------- */

@media (min-width: 900px) {
  .opening { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); }
  .verdict__in { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; }
  .verdict .phone { justify-self: end; }
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--flip .split__art { order: -1; }
  .split .phone { justify-self: center; width: min(100%, 360px); }
  .terms div { grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); }
}

@media (max-width: 899px) {
  .ledger {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: 290px;
    margin-top: 46px;
    transform: none;
  }
  .opening { min-height: 0; padding-bottom: clamp(50px, 10vw, 90px); }
  .opening__say { max-width: none; }
  .trio { grid-template-columns: 1fr; justify-items: center; gap: 44px; }
  .trio figure { max-width: 320px; }
  .trio figure:nth-child(2) { transform: none; }
  .trio figcaption { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ledger__col { animation: none; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
