/* ==========================================================================
   UpMeal Landingpage
   Farbsystem aus der App uebernommen (lib/constants.ts).
   Aufbau: Tokens, Grundlagen, Bausteine, Abschnitte, Umbrueche.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Flaechen */
  --bg:         #0d1117;
  --surface:    #111827;
  --surface-2:  #151d2e;

  /* Markenfarben */
  --orange:     #e8863a;
  --gold:       #d4a84b;
  --olive:      #a3a552;
  --beige:      #c7b68a;
  --red:        #d4604a;   /* vierte Ampelstufe, entspricht "danger" in der App */

  /* Schrift */
  --ink:        #ece6da;   /* Fliesstext, Kontrast 12.9:1 auf --bg */
  --ink-2:      #c7b68a;   /* Sekundaertext, 9.4:1 */
  --ink-3:      #9a9384;   /* Fussnoten, 6.2:1 */

  /* Linien und Schatten */
  --line:       rgba(199, 182, 138, .16);
  --line-soft:  rgba(199, 182, 138, .09);
  --shadow:     0 24px 60px -28px rgba(0, 0, 0, .9);

  /* Typo-Rollen */
  --display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --body:    "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:    "DM Mono", ui-monospace, "SF Mono", Consolas, monospace;

  /* Raster */
  --gutter: clamp(20px, 5vw, 48px);
  --maxw:   1160px;
  --radius: 14px;
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }

a { color: var(--orange); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }

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

.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  background: var(--orange);
  color: #0d1117;
  font-weight: 600;
  z-index: 100;
  text-decoration: none;
}
.skip:focus {
  left: 12px;
  top: 12px;
  width: auto;
  height: auto;
  clip-path: none;
  padding: 12px 18px;
  border-radius: 8px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Typo-Rollen ---------- */
.mono {
  font-family: var(--mono);
  font-weight: 400;
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.display {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.7rem, 8.2vw, 5.2rem);
  line-height: .96;
  letter-spacing: -.035em;
  margin: 0 0 24px;
  color: var(--ink);
  font-variation-settings: "opsz" 72;
}
.display em {
  font-style: normal;
  color: var(--orange);
}

.h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.85rem, 4.2vw, 2.9rem);
  line-height: 1.06;
  letter-spacing: -.025em;
  margin: 0 0 20px;
  color: var(--ink);
  max-width: 18ch;
  font-variation-settings: "opsz" 40;
}

.h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.14rem;
  line-height: 1.25;
  letter-spacing: -.012em;
  margin: 0 0 10px;
  color: var(--ink);
}

.lead {
  font-size: clamp(1.08rem, 1.9vw, 1.28rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 40ch;
  margin-bottom: 34px;
}

.body   { color: var(--ink-2); max-width: 56ch; }
.body + .body { margin-top: 16px; }
.body-s { color: var(--ink-2); font-size: .97rem; line-height: 1.62; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--body);
  font-size: .97rem;
  font-weight: 600;
  line-height: 1;
  padding: 15px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--orange);
  color: #0d1117;
}
.btn-primary:hover { background: var(--gold); color: #0d1117; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--beige); color: var(--ink); }

.btn-small {
  padding: 10px 18px;
  font-size: .88rem;
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-small:hover { border-color: var(--orange); color: var(--orange); }

/* ---------- Kopfleiste ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 17, 23, .82);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(160deg, var(--orange), var(--gold) 55%, var(--olive));
  box-shadow: 0 0 0 1px rgba(199, 182, 138, .28);
  flex: none;
}
.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -.02em;
}

.topnav {
  display: flex;
  gap: 26px;
}
.topnav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: .93rem;
}
.topnav a:hover { color: var(--ink); }

/* ---------- Abschnitts-Rhythmus ---------- */
.section { padding-block: clamp(66px, 8.5vw, 112px); }

.section-alt {
  background: linear-gradient(180deg, transparent, rgba(21, 29, 46, .55) 12%, rgba(21, 29, 46, .55) 88%, transparent);
}

.sec-head { margin-bottom: clamp(38px, 5vw, 62px); }
.sec-intro { margin-top: 4px; }

/* ==========================================================================
   HERO mit dem Vorratsregal
   ========================================================================== */
.hero {
  position: relative;
  padding-block: clamp(48px, 7vw, 92px) clamp(52px, 7vw, 88px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -30% 0 auto -20%;
  height: 720px;
  background:
    radial-gradient(48% 46% at 78% 34%, rgba(232, 134, 58, .16), transparent 68%),
    radial-gradient(40% 42% at 18% 18%, rgba(163, 165, 82, .10), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: clamp(44px, 6vw, 72px);
  align-items: center;
}

.hero-note {
  margin-top: 26px;
  font-size: .88rem;
  line-height: 1.6;
  color: var(--ink-3);
  max-width: 42ch;
  padding-left: 14px;
  border-left: 2px solid var(--line);
}

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

/* ---------- Signature: das Regal ---------- */
.hero-visual { position: relative; }

.shelf {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.shelf-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-3);
}
.shelf-count { color: var(--gold); }

.shelf-list { padding: 6px; }

.item {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 12px;
  border-radius: 10px;
  transition: background-color .3s ease;
}
.item + .item { box-shadow: inset 0 1px 0 var(--line-soft); }

.item-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  transition: background-color .45s ease;
}
.item-name {
  font-size: .98rem;
  color: var(--ink);
  font-weight: 500;
}
.item-chip {
  font-size: .7rem;
  letter-spacing: .08em;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid currentColor;
  white-space: nowrap;
  transition: color .45s ease, border-color .45s ease;
}

/* Ampelstufen, in der App identisch belegt */
.is-fresh  { color: var(--olive); }
.is-soon   { color: var(--gold); }
.is-urgent { color: var(--orange); }
.is-today  { color: var(--red); }

.item.is-today { background: rgba(212, 96, 74, .07); }

.shelf-foot {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 15px 18px;
  border-top: 1px solid var(--line-soft);
  background: rgba(163, 165, 82, .06);
  transition: background-color .4s ease;
}
.shelf-foot.is-live {
  background: rgba(163, 165, 82, .13);
}

.tag {
  flex: none;
  color: var(--olive);
  font-size: .66rem;
  letter-spacing: .14em;
  transition: color .4s ease;
}
.shelf-foot.is-live .tag { color: var(--orange); }
.shelf-hint {
  font-size: .9rem;
  color: var(--ink-2);
  line-height: 1.45;
}

.visual-caption {
  margin-top: 14px;
  text-align: right;
  color: var(--ink-3);
  font-size: .66rem;
  letter-spacing: .12em;
}

/* ==========================================================================
   PROBLEM: Zahlenspalte
   ========================================================================== */
.problem-grid {
  display: grid;
  gap: clamp(40px, 6vw, 76px);
  align-items: start;
}

.ledger { border-top: 1px solid var(--line); }

.ledger-row {
  display: grid;
  gap: 6px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
}
.ledger-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.3rem, 6vw, 3.3rem);
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--beige);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.ledger-unit {
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--orange);
}
.ledger-label {
  font-size: .93rem;
  color: var(--ink-2);
  line-height: 1.5;
}
.ledger-source {
  margin-top: 18px;
  color: var(--ink-3);
  font-size: .66rem;
  letter-spacing: .06em;
  text-transform: none;
  line-height: 1.6;
}

/* ==========================================================================
   KREISLAUF
   ========================================================================== */
.loop {
  display: grid;
  gap: 2px;
  border-radius: var(--radius);
  overflow: hidden;
}

.loop-step {
  position: relative;
  padding: 30px 26px 30px 26px;
  background: var(--surface);
}
.loop-step::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--stage, var(--olive));
}
.loop-step:nth-child(1) { --stage: var(--olive); }
.loop-step:nth-child(2) { --stage: var(--gold); }
.loop-step:nth-child(3) { --stage: var(--orange); }
.loop-step:nth-child(4) { --stage: var(--beige); }

.loop-num {
  display: block;
  color: var(--stage);
  font-size: .78rem;
  letter-spacing: .16em;
  margin-bottom: 16px;
}

/* ==========================================================================
   FUNKTIONEN
   ========================================================================== */
.cards {
  display: grid;
  gap: 14px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color .2s ease, background-color .2s ease;
}
.card:hover {
  border-color: var(--line);
  background: var(--surface-2);
}

/* Pille und Ampel sitzen immer am unteren Kartenrand, damit unterschiedlich
   lange Texte die Karten nicht ausfransen lassen. */
.card > .body-s:not(:last-child) { margin-bottom: 20px; }

.card-meta {
  margin-top: auto;
  align-self: flex-start;
  color: var(--gold);
  font-size: .64rem;
  letter-spacing: .14em;
  border: 1px solid rgba(212, 168, 75, .38);
  border-radius: 999px;
  padding: 4px 11px;
}

.barcode {
  height: 30px;
  margin-bottom: 20px;
  opacity: .55;
  background-image: repeating-linear-gradient(
    90deg,
    var(--beige) 0 2px, transparent 2px 5px,
    var(--beige) 5px 6px, transparent 6px 12px,
    var(--beige) 12px 15px, transparent 15px 17px
  );
  mask-image: linear-gradient(90deg, #000 68%, transparent);
  -webkit-mask-image: linear-gradient(90deg, #000 68%, transparent);
}

.ampel {
  display: flex;
  gap: 6px;
  margin-top: auto;
}
.ampel li {
  height: 6px;
  flex: 1;
  border-radius: 999px;
  background: currentColor;
}

.honest {
  margin-top: 30px;
  padding: 26px 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(232, 134, 58, .04);
}
.honest .body-s { max-width: 74ch; }

/* ==========================================================================
   DRANBLEIBEN
   ========================================================================== */
.game-grid {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}

.tick-list {
  margin-top: 26px;
  display: grid;
  gap: 12px;
}
.tick-list li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-2);
  font-size: .97rem;
  line-height: 1.55;
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .62em;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--olive);
}

.xp-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.xp-top {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}
.xp-level {
  color: var(--gold);
  border: 1px solid rgba(212, 168, 75, .4);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: .66rem;
  letter-spacing: .12em;
}
.xp-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -.02em;
  color: var(--ink);
}
.xp-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(199, 182, 138, .13);
  overflow: hidden;
}
.xp-fill {
  display: block;
  height: 100%;
  width: 64%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--olive), var(--gold) 58%, var(--orange));
}
.xp-meta {
  margin-top: 10px;
  color: var(--ink-3);
  font-size: .66rem;
  letter-spacing: .08em;
  text-transform: none;
}
.xp-rows {
  margin-top: 22px;
  border-top: 1px solid var(--line-soft);
}
.xp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: .92rem;
  color: var(--ink-2);
}
.xp-plus {
  color: var(--olive);
  font-size: .8rem;
  letter-spacing: .04em;
}

/* ==========================================================================
   PREISE
   ========================================================================== */
.plans {
  display: grid;
  gap: 16px;
}

.plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.plan-premium {
  border-color: rgba(232, 134, 58, .38);
  background: linear-gradient(180deg, rgba(232, 134, 58, .06), transparent 45%), var(--surface);
}
.plan-flag {
  position: absolute;
  top: 22px;
  right: 22px;
  color: var(--orange);
  font-size: .62rem;
  letter-spacing: .16em;
  border: 1px solid rgba(232, 134, 58, .4);
  border-radius: 999px;
  padding: 4px 10px;
}
.plan-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .01em;
  color: var(--ink-2);
  margin: 0 0 6px;
}
.plan-price {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 2.6rem);
  letter-spacing: -.03em;
  text-transform: none;
  color: var(--ink);
  margin-bottom: 24px;
  line-height: 1.1;
}
.plan-per {
  display: block;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 6px;
}
.plan-list { display: grid; gap: 11px; }
.plan-list li {
  position: relative;
  padding-left: 22px;
  font-size: .95rem;
  color: var(--ink-2);
  line-height: 1.5;
}
.plan-list li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: .66em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--olive);
}
.plan-premium .plan-list li::before { background: var(--orange); }

.plans-note {
  margin-top: 24px;
  font-size: .88rem;
  color: var(--ink-3);
  max-width: 60ch;
  line-height: 1.6;
}

/* ==========================================================================
   WARTELISTE
   ========================================================================== */
.waitlist {
  border-top: 1px solid var(--line-soft);
  background:
    radial-gradient(60% 100% at 50% 0%, rgba(232, 134, 58, .10), transparent 70%);
}
/* Linke Kante bleibt auf der Seitenachse, nur die Zeilenlaenge wird begrenzt. */
.waitlist-inner > * { max-width: 620px; }
.waitlist-title { max-width: 18ch; }
.waitlist-lead { margin-bottom: 34px; }

.wl-label {
  display: block;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.wl-field {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.wl-input {
  flex: 1 1 240px;
  min-width: 0;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 15px 20px;
  transition: border-color .18s ease;
}
.wl-input::placeholder { color: #8b857a; }
.wl-input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232, 134, 58, .18);
}
.wl-submit { flex: none; }
.wl-submit[disabled] { opacity: .55; cursor: progress; }

.wl-status {
  margin-top: 14px;
  min-height: 1.4em;
  font-size: .93rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.wl-status.is-ok    { color: var(--olive); }
.wl-status.is-known { color: var(--gold); }
.wl-status.is-fail  { color: var(--red); }

.wl-noscript,
.wl-legal {
  margin-top: 18px;
  font-size: .84rem;
  line-height: 1.6;
  color: var(--ink-3);
  max-width: 54ch;
}
.wl-noscript { color: var(--gold); }

/* ==========================================================================
   FUSSZEILE
   ========================================================================== */
.footer {
  border-top: 1px solid var(--line-soft);
  padding-block: 44px 52px;
}
.footer-inner {
  display: grid;
  gap: 26px;
  align-items: center;
}
.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.footer-claim {
  flex-basis: 100%;
  font-size: .88rem;
  color: var(--ink-3);
}
.footer-nav { display: flex; gap: 22px; }
.footer-nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: .9rem;
}
.footer-nav a:hover { color: var(--orange); }
.footer-copy {
  color: var(--ink-3);
  font-size: .66rem;
  letter-spacing: .12em;
}

/* ==========================================================================
   RECHTSTEXTE (impressum.html, datenschutz.html)
   ========================================================================== */
.legal { padding-block: clamp(48px, 7vw, 84px) clamp(64px, 9vw, 110px); }
.legal-inner { max-width: 760px; }

.legal-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.1rem, 6vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  margin: 0 0 28px;
}

.legal-warn {
  border: 1px solid rgba(232, 134, 58, .45);
  background: rgba(232, 134, 58, .07);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 40px;
}
.legal-warn p {
  font-size: .93rem;
  line-height: 1.6;
  color: var(--ink-2);
}
.legal-warn p + p { margin-top: 10px; }
.legal-warn strong { color: var(--orange); }

.legal-inner h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 44px 0 14px;
}
.legal-inner h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--beige);
  margin: 26px 0 8px;
}
.legal-inner p,
.legal-inner li {
  color: var(--ink-2);
  font-size: .98rem;
  line-height: 1.68;
}
.legal-inner p + p { margin-top: 12px; }
.legal-inner ul + p { margin-top: 16px; }

.legal-list {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}
.legal-list li {
  position: relative;
  padding-left: 20px;
}
.legal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 7px;
  height: 2px;
  background: var(--olive);
}

.legal-meta {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .08em;
  color: var(--ink-3);
  text-transform: none;
}

/* Platzhalter, die vor der Veroeffentlichung ersetzt werden muessen */
.fill {
  /* inline statt inline-block, sonst rutscht der Satzpunkt hinter einem
     langen Platzhalter allein in die naechste Zeile. */
  display: inline;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  font-family: var(--mono);
  font-size: .8em;
  letter-spacing: .02em;
  color: var(--orange);
  background: rgba(232, 134, 58, .12);
  border: 1px dashed rgba(232, 134, 58, .5);
  border-radius: 4px;
  padding: 1px 7px;
}

/* ==========================================================================
   Scroll-Einblendung. Ohne JavaScript bleibt alles sichtbar.
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .65s cubic-bezier(.22, .61, .36, 1),
              transform .65s cubic-bezier(.22, .61, .36, 1);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Umbrueche: Handy zuerst, dann Tablet, dann Desktop
   ========================================================================== */
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card-wide { grid-column: 1 / -1; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .loop { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 880px) {
  .hero-grid { grid-template-columns: 1.02fr .98fr; }
  .problem-grid { grid-template-columns: 1.05fr .95fr; }
  .game-grid { grid-template-columns: 1.05fr .95fr; }
  .loop { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .card-wide { grid-column: span 2; }
  .footer-inner {
    grid-template-columns: 1fr auto auto;
    gap: 40px;
  }
}

@media (max-width: 719px) {
  .topnav { display: none; }
}

@media (max-width: 479px) {
  .item { grid-template-columns: 8px 1fr; row-gap: 8px; }
  .item-chip { grid-column: 2; justify-self: start; }
  .wl-submit { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
