/* Landing Page: dunkel und ruhig, wie die App. Rot nur für Geld/Verlust.
   Eine Schrift (Archivo): schmal und fett für große Überschriften, normal breit für Text.
   Monospace nur auf dem Kassenbon. */
:root {
  --ink: #000;
  --bone: #f4f4f2;
  --soft: #c9c5c2;
  --ash: #8f8a88;
  --line: #2b2828;
  --soot: #161414;
  --paper: #f2efe9;
  --paper-ink: #111;
  --red: #e52626;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: clamp(16px, 5vw, 48px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--soft);
  font: 400 18px/1.55 var(--sans);
  font-stretch: 100%;
  overflow-x: hidden;
}
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
strong { color: var(--bone); font-weight: 600; }
h2, h3, p, dl, dd, ol, ul { margin: 0; }

.wrap { max-width: 1080px; margin-inline: auto; padding-inline: var(--gutter); }

.poster {
  font-family: var(--sans);
  font-weight: 900;
  font-stretch: 62%;
  text-transform: uppercase;
  line-height: .88;
  color: var(--bone);
  text-wrap: balance;
}
.ash { color: var(--ash); }
.nw { white-space: nowrap; }
.red { color: var(--red); }

/* ---------- Kopf ---------- */
.top {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-block: 22px;
}
.logo {
  font-weight: 900; font-stretch: 62%; font-size: 24px; line-height: 1;
  text-transform: uppercase; color: var(--red); text-decoration: none;
}
.top-nav { display: flex; gap: 24px; font-size: 15px; }
.top-nav a { color: var(--ash); text-decoration: none; }
.top-nav a:hover { color: var(--bone); }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  gap: clamp(32px, 7vw, 96px); align-items: center;
  padding-block: clamp(48px, 9vw, 120px) clamp(64px, 10vw, 136px);
}
.hero h1 { font-size: clamp(72px, 11vw, 150px); margin: 0; }
.lead { margin-top: 32px; max-width: 30em; font-size: clamp(18px, 1.6vw, 21px); }
.availability { margin-top: 24px; font-size: 15px; color: var(--ash); }

/* Kassenbon: das eine auffällige Element. Druckt sich einmal beim Laden aus. */
.receipt {
  margin: 0;
  background: var(--paper); color: var(--paper-ink);
  font: 400 13px/1.6 var(--mono);
  padding: 18px 18px 28px;
  rotate: 2deg;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 12px 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 12px 100%;
  animation: print 1.1s steps(11) .5s both;
}
@keyframes print { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.receipt .t { text-align: center; font-weight: 800; letter-spacing: .2em; }
.receipt .c { text-align: center; }
.receipt .r { display: flex; justify-content: space-between; gap: 12px; }
.receipt hr { border: 0; border-top: 1px dashed var(--paper-ink); margin: 8px 0; }
.receipt .total { font-weight: 800; font-size: 1.25em; }
.receipt .thx { text-align: center; font-weight: 700; font-size: .85em; margin-top: 6px; }

/* ---------- Abschnitte ---------- */
.block { padding-block: clamp(56px, 8vw, 104px); border-top: 1px solid var(--line); }
.block h2 { font-size: clamp(48px, 7vw, 88px); margin-bottom: clamp(28px, 4vw, 48px); }
.section-lead { margin: -12px 0 32px; max-width: 34em; }

/* So geht's: echte Reihenfolge, daher Nummern */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.steps .n {
  display: block; font-weight: 900; font-stretch: 62%; font-size: 64px; line-height: 1;
  color: var(--red); margin-bottom: 16px;
}
.steps h3 { font-size: 20px; font-weight: 700; line-height: 1.25; color: var(--bone); margin-bottom: 8px; }

/* Warum */
.why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.why p { max-width: 30em; }
.bars { display: grid; gap: 20px; }
.bar span { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--bone); margin-bottom: 8px; }
.bar em { font-style: normal; color: var(--ash); text-align: right; }
.bar em.red { color: var(--red); }
.track { height: 36px; background: var(--soot); }
.fill { height: 100%; width: 50%; background: var(--bone); }
.fill.loss { width: 100%; background: var(--red); }

/* Regeln */
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 64px); }
.rules div { padding-block: 20px; border-top: 1px solid var(--line); }
.rules dt { font-weight: 700; color: var(--bone); margin-bottom: 4px; }
.rules dd { color: var(--ash); font-size: 16px; }

/* Was kommt */
.next { list-style: none; padding: 0; }
.next li {
  display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 8px 32px;
  padding-block: 18px; border-top: 1px solid var(--line);
}
.next span { color: var(--ash); }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding-block: 18px;
  display: flex; justify-content: space-between; gap: 16px;
  font-weight: 600; color: var(--bone);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--red); }
.faq details p { padding-bottom: 20px; max-width: 36em; }

/* Schluss */
.final h2 { font-size: clamp(64px, 13vw, 168px); margin-bottom: 24px; }
.final p { color: var(--ash); }

footer {
  border-top: 1px solid var(--line);
  padding-block: 28px 44px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  font-size: 14px; color: var(--ash);
}
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--ash); text-decoration: none; }
footer a:hover { color: var(--bone); }

/* ---------- Schmal ---------- */
@media (max-width: 860px) {
  .hero, .why { grid-template-columns: minmax(0, 1fr); }
  .hero .receipt { max-width: 320px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 12px; }
  .steps .n { grid-row: span 2; font-size: 48px; margin: 0; }
}
@media (max-width: 640px) {
  .rules { grid-template-columns: minmax(0, 1fr); }
  .next li { grid-template-columns: minmax(0, 1fr); }
  .top-nav { gap: 16px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .receipt { animation: none; }
}
