/* ==========================================================================
   POSTBOT — Landingpage
   Dunkles Theme auf Basis #202020 mit Postgelb als Akzent.
   Reines CSS, keine Frameworks. Alle Farben im :root-Block.

   01 Tokens · 02 Reset · 03 Layout · 04 Buttons · 05 Store-Badges
   06 Nav · 07 Header · 08 Header-Band · 09 Vorteile · 10 Ablauf
   11 Für wen · 12 Vergleich · 13 Funde · 14 Über mich
   15 Preis · 16 CTA · 17 Footer · 18 Reveal · 19 Responsive
   ========================================================================== */

/* ─────────────────────────────────────────────────────────── 01 Tokens ── */
:root {
  /* ---- Marke ---------------------------------------------------------- */
  --primary_color:        #FFCC00;  /* Postgelb: Akzentkanten, aktive Zustände, Hauptbutton */
  --on_primary_color:     #202020;  /* Schrift auf Gelb */
  --secondary_color:      #D8232F;  /* Postrot: Warnungen, Löschen */
  --secondary_text_color: #FF5F66;  /* Rot als Schriftfarbe auf Dunkel */

  /* ---- Flächen (Basis #202020) ---------------------------------------- */
  --surface_color:                  #202020;
  --surface_container_color:        #333333;
  --surface_container_low_color:    #262626;
  --surface_container_lowest_color: #2a2a2a;
  --surface_inverse_color:          #141414;  /* Kopfzeile, mobile Navigationsleiste, Footer */

  /* ---- Linien --------------------------------------------------------- */
  --border_color:        #363636;
  --border_subtle_color: #2c2c2c;
  --border_strong_color: #4a4a4a;

  /* ---- Text ----------------------------------------------------------- */
  --text_primary_color:   #f2f2f2;
  --text_secondary_color: #a6a6a6;
  --text_tertiary_color:  #757575;

  /* ---- Status --------------------------------------------------------- */
  --success_color:         #4ade80;
  --success_surface_color: #16301f;

  /* ---- Abgeleitet ------------------------------------------------------
     Nicht Teil der Vorgabe, aus den obigen Werten hergeleitet. Wenn dafür
     eigene Tokens entstehen, hier ersetzen.                              */
  --primary_surface_color:   #2e2612;  /* gelb getönte Fläche, Pendant zu success_surface */
  --secondary_surface_color: #301618;  /* rot getönte Fläche, Pendant zu success_surface */
  --primary_border_color:    rgba(255, 204, 0, .38);
  --primary_wash_color:      rgba(255, 204, 0, .07);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --max:   1180px;

  /*
   * CSS-Locks: Jede Größe wächst linear zwischen 300px und 1180px Fensterbreite
   * und steht außerhalb davon still. Aufgebaut als
   *   clamp(Wert bei 300px, calc(Achsenabschnitt + Steigung), Wert bei 1180px)
   * Die Steigung ist (max − min) / 8,8 in vw. Wer einen Wert ändert, ändert
   * beide Enden und rechnet den mittleren Term neu — sonst springt die Kurve.
   */
  --pad:   clamp(14px, calc(10.59px + 1.14vw), 24px);
  --nav-h: clamp(58px, calc(53.23px + 1.59vw), 72px);  /* Höhe der Kopfzeile — der Header rechnet damit */
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --shadow:    0 10px 30px rgba(0, 0, 0, .40);
  --shadow-lg: 0 26px 60px rgba(0, 0, 0, .55);
  --ease: cubic-bezier(.22, .61, .36, 1);
  /* One cycle of the overview animation in the hero */
  --ps-cycle: 7.5s;
}

/* ──────────────────────────────────────────────────────────── 02 Reset ── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 26px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.62;
  color: var(--text_secondary_color);
  background: var(--surface_color);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Headings as the app sets them — heavy, italic and tightly tracked. That
   slant is the app's most recognisable typographic trait; without it the page
   reads as a different product. */
h1, h2, h3, h4 {
  margin: 0; color: var(--text_primary_color);
  font-weight: 900; font-style: italic;
  line-height: 1.12; letter-spacing: -.035em;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -70px; left: 14px; z-index: 300;
  padding: 10px 18px; border-radius: 10px;
  background: var(--primary_color); color: var(--on_primary_color); font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 14px; }
:focus-visible { outline: 3px solid var(--primary_color); outline-offset: 2px; border-radius: 6px; }

/* ─────────────────────────────────────────────────────────── 03 Layout ── */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.wrap--narrow { max-width: 820px; }

.sec { padding: clamp(56px, calc(41px + 5vw), 100px) 0; }
.sec--soft {
  background: var(--surface_container_low_color);
  border-block: 1px solid var(--border_subtle_color);
}

.sec__title { font-size: clamp(26px, calc(18.5px + 2.5vw), 48px); }
.sec__lead {
  margin-top: 18px; color: var(--text_secondary_color);
  font-size: clamp(15.5px, calc(14.82px + 0.23vw), 17.5px);
}
.center { text-align: center; }
.center.sec__lead { max-width: 62ch; margin-inline: auto; }
.sec__title.center { margin-bottom: 0; }
.sec__title.center + .perks { margin-top: 54px; }
.sec__lead.center + .finds,
.sec__lead.center + .vs,
.sec__lead.center + .plan { margin-top: 54px; }

/* ────────────────────────────────────────────────────────── 04 Buttons ── */
.btn {
  --bg-btn: var(--primary_color); --fg-btn: var(--on_primary_color); --bd-btn: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: clamp(12px, calc(11.32px + 0.23vw), 14px) clamp(18px, calc(15.27px + 0.91vw), 26px);
  border: 2px solid var(--bd-btn); border-radius: 999px;
  background: var(--bg-btn); color: var(--fg-btn);
  font-size: clamp(14px, calc(13.49px + 0.17vw), 15.5px);
  font-weight: 600; white-space: nowrap; cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease),
              box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { box-shadow: 0 8px 24px rgba(255, 204, 0, .18); }
.btn--primary:hover { --bg-btn: #ffd633; box-shadow: 0 12px 32px rgba(255, 204, 0, .26); }

.btn--ghost {
  --bg-btn: transparent; --fg-btn: var(--text_primary_color); --bd-btn: var(--border_strong_color);
}
.btn--ghost:hover { --bd-btn: var(--primary_color); --fg-btn: var(--primary_color); background: var(--primary_wash_color); }

/* dunkler Button für gelbe Flächen */
.btn--dark { --bg-btn: var(--on_primary_color); --fg-btn: var(--text_primary_color); }
.btn--dark:hover { --bg-btn: #000; }

.btn--sm {
  padding: clamp(9px, calc(8.66px + 0.11vw), 10px) clamp(15px, calc(13.3px + 0.57vw), 20px);
  font-size: clamp(13.5px, calc(13.16px + 0.11vw), 14.5px);
}
.btn--lg {
  padding: clamp(14px, calc(13.32px + 0.23vw), 16px) clamp(20px, calc(15.91px + 1.36vw), 32px);
  font-size: clamp(15px, calc(14.49px + 0.17vw), 16.5px);
}
.btn--block { display: flex; width: 100%; }

/* ────────────────────────────────────────────────────── 05 Store-Badges ── */
/* Eigene Nachbauten. Für die Veröffentlichung durch die offiziellen
   Badge-Assets von Apple bzw. Google ersetzen (Markenrichtlinien beachten). */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.stores--center { justify-content: center; }

.store {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 10px clamp(14px, calc(11.95px + 0.68vw), 20px) 10px clamp(12px, calc(10.3px + 0.57vw), 17px);
  border: 1px solid var(--border_strong_color); border-radius: 12px;
  background: var(--surface_inverse_color); color: var(--text_primary_color);
  transition: transform .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.store:hover { transform: translateY(-2px); border-color: var(--primary_color); box-shadow: var(--shadow); }
.store__glyph {
  width: clamp(20px, calc(18.64px + 0.45vw), 24px);
  height: clamp(20px, calc(18.64px + 0.45vw), 24px);
  fill: var(--text_primary_color); flex: none;
}
.store__glyph--play { fill: none; }
.store span { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.store small {
  font-size: clamp(10px, calc(9.83px + 0.06vw), 10.5px);
  letter-spacing: .04em; color: var(--text_secondary_color);
}
.store b {
  font-size: clamp(14px, calc(13.32px + 0.23vw), 16px);
  font-weight: 600; letter-spacing: -.01em;
}

/* auf gelber Fläche */
.store--light { background: var(--on_primary_color); border-color: var(--on_primary_color); }
.store--light:hover { border-color: #000; }

/* ─────────────────────────────────────────────────────────────── 06 Nav ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(20, 20, 20, .88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.nav.is-scrolled { background: rgba(20, 20, 20, .97); border-bottom-color: var(--border_color); }
.nav__inner { display: flex; align-items: center; gap: 26px; height: var(--nav-h); }

/* The mark the app carries in its header: the mascot on its light disc, and
   the wordmark set the way the app sets it — heavy, italic, upper case, in
   Postbot yellow. */
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--primary_color); }
.brand__mascot {
  /* The mascot stands on its own — the disc it used to sit on is gone, and it
     takes up the space the disc had */
  width: clamp(32px, calc(29.27px + 0.91vw), 40px);
  height: clamp(32px, calc(29.27px + 0.91vw), 40px);
  object-fit: contain;
  flex-shrink: 0;
}
.brand__name {
  font-size: clamp(19px, calc(17.3px + 0.57vw), 24px);
  font-weight: 900; font-style: italic;
  text-transform: uppercase; letter-spacing: -1px;
}

.nav__links { display: flex; gap: 2px; margin-left: auto; }
.nav__links a {
  padding: 9px 13px; border-radius: 999px;
  font-size: clamp(13.5px, calc(13.16px + 0.11vw), 14.5px);
  font-weight: 500; color: var(--text_secondary_color);
  transition: color .18s var(--ease), background .18s var(--ease);
}
.nav__links a:hover, .nav__links a.is-current {
  color: var(--primary_color); background: var(--primary_wash_color);
}

.burger {
  display: none; flex-direction: column; gap: 5px;
  width: clamp(38px, calc(35.95px + 0.68vw), 44px);
  height: clamp(38px, calc(35.95px + 0.68vw), 44px);
  padding: clamp(10px, calc(9.32px + 0.23vw), 12px); margin-left: auto;
  background: var(--surface_container_low_color);
  border: 1px solid var(--border_color); border-radius: 12px; cursor: pointer;
}
.burger span {
  display: block; height: 2px; background: var(--text_primary_color); border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ───────────────────────────────────────────── 07 Story (Hero) ── */
/*
 * Two columns: the steps are scrolled, the phone stays. Each step has the
 * height of the screen, so exactly one of them is being read at a time and the
 * scene in the phone belongs to it. Nothing moves that is not the product.
 */
.story {
  position: relative;
  background: var(--surface_inverse_color);
  border-bottom: 1px solid var(--border_subtle_color);
  /* clip statt hidden: hidden würde einen Scrollbereich aufmachen und das
     stehende Gerät darin festnageln */
  overflow: clip;
}

/*
 * Was Postbot zählt, treibt im Hintergrund vorbei: Briefe und Pakete, dunkel
 * gehalten in den Farben der Post, langsam und ohne Ziel. Sie liegen hinter
 * allem und tragen keine Bedeutung — nur Tiefe.
 */
.drift { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.drift__item {
  position: absolute;
  left: var(--x); top: var(--y);
  width: var(--size); height: var(--size);
  /* Unterschiedlich kräftig, damit die Fläche Tiefe bekommt */
  opacity: var(--o, .42);
  animation: drift_float var(--dur) ease-in-out var(--delay) infinite alternate;
}
@keyframes drift_float {
  from { transform: translate3d(0, 0, 0) rotate(var(--rot)); }
  to {
    transform: translate3d(var(--dx), var(--dy), 0)
               rotate(calc(var(--rot) + var(--spin)));
  }
}

.story__grid {
  position: relative; z-index: 1;
  /* auto für das Gerät: Es nimmt genau die Breite, die sein Lock ergibt, der
     Text bekommt den Rest. Halbe/halbe ließe dem Text bei 300px zu wenig. */
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(10px, calc(-13.86px + 7.95vw), 80px);
  /* The stage has to be as tall as the column of steps beside it — a sticky
     child can only travel as far as its own parent reaches */
  align-items: stretch;
}

/* The column that is read */
.story__steps { padding-block: 12vh 18vh; }
.story__step {
  min-height: 78vh;
  display: flex; flex-direction: column; justify-content: center;
  /* Out of the way until it is the one being read */
  opacity: .22;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transform: translateY(10px);
}
.story__step.is-current { opacity: 1; transform: none; }
.story__step--lead { min-height: 88vh; padding-top: var(--nav-h); }

.story__index {
  display: block; margin-bottom: 18px;
  font-size: clamp(11px, calc(10.66px + 0.11vw), 12px);
  font-weight: 700; letter-spacing: .22em;
  color: var(--primary_color);
}
/* Eine Kurve über die ganze Breite — es gibt keinen Punkt mehr, an dem das
   Layout umspringt, also darf auch die Schrift nirgends springen */
.story__title {
  font-size: clamp(16px, calc(2.36px + 4.55vw), 56px);
  letter-spacing: -.035em; line-height: 1.08;
  /* In der schmalen Spalte neben dem Gerät stehen deutsche Komposita sonst
     über den Rand hinaus */
  hyphens: auto; overflow-wrap: break-word;
}
.story__title--lead { font-size: clamp(19px, calc(2.3px + 5.57vw), 68px); }
.story__lead {
  margin-top: 22px; max-width: 42ch;
  font-size: clamp(11.5px, calc(9.11px + 0.8vw), 18.5px); line-height: 1.65;
}
.story__fact {
  margin-top: 20px; display: flex; align-items: center; gap: 9px;
  font-size: clamp(13px, calc(12.49px + 0.17vw), 14.5px);
  color: var(--text_tertiary_color);
}
.story__fact::before {
  content: ""; flex: none; border-radius: 50%;
  width: clamp(16px, calc(15.32px + 0.23vw), 18px);
  height: clamp(16px, calc(15.32px + 0.23vw), 18px);
  background: var(--success_surface_color) center/10px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%234ade80' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 6.4l2.6 2.6L10 3'/%3E%3C/svg%3E");
}
.story__scroll {
  margin-top: 46px; display: flex; align-items: center; gap: 8px;
  font-size: clamp(11.5px, calc(11.16px + 0.11vw), 12.5px);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text_tertiary_color);
}
.story__scroll .material-symbols-outlined {
  font-size: clamp(16px, calc(15.32px + 0.23vw), 18px);
  animation: story_nudge 2.4s ease-in-out infinite;
}
@keyframes story_nudge { 50% { transform: translateY(5px); } }

/* The column that stays */
.story__pin {
  position: sticky; top: 0;
  height: 100vh;
  display: flex; align-items: center; justify-content: center;
}

/* ── The device ── */
/*
 * Das Gerät rechnet in em: 1em ist seine Grundgröße, jedes Innenmaß ein
 * Vielfaches davon (1em = 10px in voller Größe). Damit hängt der ganze Aufbau
 * an einem einzigen Wert — dem Lock auf font-size — und bleibt bis 300px neben
 * dem Text stehen, statt bei 900px nach oben zu klappen.
 * Nur Haarlinien bleiben in px; die sollen Haarlinien bleiben.
 */
.phone {
  /* Zwei Grenzen zugleich: waagerecht der Lock über die Fensterbreite,
     senkrecht 1.5vh — das Gerät ist 57.8em hoch, also füllt es höchstens
     etwa 87vh und passt auch auf flache Bildschirme. */
  font-size: clamp(3.4px, min(calc(1.15px + 0.75vw), 1.5vh), 10px);
  position: relative; width: 31em; padding: 1.1em;
  border-radius: 4.6em;
  background: linear-gradient(160deg, #3a3a3a, #1a1a1a 42%);
  box-shadow:
    0 4.4em 9em -3em rgba(0, 0, 0, .85),
    0 0 0 1px rgba(255, 255, 255, .06) inset;
}
.phone__notch {
  position: absolute; top: 1.1em; left: 50%; transform: translateX(-50%);
  width: 10.8em; height: 2.6em; border-radius: 0 0 1.5em 1.5em;
  background: #0d0d0d; z-index: 3;
}
.phone__screen {
  position: relative; height: 55.6em; overflow: hidden;
  padding: 4.6em 1.6em 1.8em; border-radius: 3.6em;
  background: var(--surface_color);
}

/*
 * Die Leiste wechselt nicht mit — sie zeigt, dass alle Screens zur selben
 * App gehören, und nimmt dem Gerät den leeren Fuß.
 */
.phone__tabs {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: .9em .6em 1.2em;
  border-top: 1px solid var(--border_subtle_color);
  background: var(--surface_container_color);
}
.tab {
  display: flex; flex-direction: column; align-items: center; gap: .35em;
  font-size: .85em; letter-spacing: .02em;
  color: var(--text_tertiary_color);
}
/* Bezogen auf die .85em des Reiters, nicht auf die Grundgröße */
.tab .material-symbols-outlined { font-size: 2.24em; }
/* Der Reiter, auf dem der gezeigte Screen liegt */
.phone[data-tab="uebersicht"] .tab[data-for="uebersicht"],
.phone[data-tab="abrechnungen"] .tab[data-for="abrechnungen"],
.phone[data-tab="kalender"] .tab[data-for="kalender"],
.phone[data-tab="einstellungen"] .tab[data-for="einstellungen"] {
  color: var(--primary_color);
}

/* ── Scenes ── */
.scene {
  position: absolute; inset: 0;
  /* Unten bleibt die Leiste frei */
  padding: 4.6em 1.6em 7.4em;
  display: flex; flex-direction: column; gap: 1em;
  opacity: 0; visibility: hidden;
  transform: translateY(1.4em) scale(.985);
  transition: opacity .5s var(--ease), transform .5s var(--ease), visibility .5s;
}
.scene.is-active { opacity: 1; visibility: visible; transform: none; }

/* Each row of a scene arrives a beat after the one above it */
.scene > * {
  opacity: 0; transform: translateY(1.2em);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.scene.is-active > * { opacity: 1; transform: none; }
.scene.is-active > *:nth-child(1) { transition-delay: .10s; }
.scene.is-active > *:nth-child(2) { transition-delay: .18s; }
.scene.is-active > *:nth-child(3) { transition-delay: .26s; }
.scene.is-active > *:nth-child(4) { transition-delay: .34s; }
.scene.is-active > *:nth-child(5) { transition-delay: .42s; }

.scene__head { padding: .2em .2em .6em; }
.scene__head span {
  display: block; font-size: 1.05em; letter-spacing: .16em;
  text-transform: uppercase; color: var(--text_tertiary_color);
}
.scene__head strong {
  font-size: 2em; font-weight: 900; font-style: italic;
  letter-spacing: -.02em; color: var(--text_primary_color);
}

/* Shared surfaces inside the screen */
.tile, .calc, .shift, .sum, .mini, .scan {
  border-radius: 1.6em;
  background: var(--surface_container_color);
  border: 1px solid var(--border_subtle_color);
}
.tile {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.3em 1.5em;
}
.tile span { font-size: 1.25em; color: var(--text_secondary_color); }
.tile b {
  font-size: 1.5em; font-weight: 900; font-style: italic;
  color: var(--text_primary_color);
}
.tile--diff {
  border-color: rgba(216, 35, 47, .55);
  background: var(--secondary_surface_color);
}
.tile--diff b { color: var(--secondary_text_color); }
/* Angekommen, aber zu wenig: Der Betrag traegt die Farbe, nicht die Kachel —
   sonst stuenden zwei rote Flaechen untereinander und keine faellt mehr auf */
.tile--short b { color: var(--secondary_text_color); }

/* 1 — calendar and the shift that is entered */
.cal {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: .5em;
  padding: 1.2em 1.1em;
}
.cal__dow {
  font-size: .9em; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text_tertiary_color); text-align: center; padding-bottom: .2em;
}
.cal__cell {
  /* Höhe und Radius zählen in der eigenen 1.2em-Schrift, nicht in der
     Grundgröße des Geräts — daher 2.83em statt 3.4em */
  display: grid; place-items: center; height: 2.83em; border-radius: .83em;
  font-size: 1.2em; font-weight: 700; color: var(--text_secondary_color);
  background: var(--surface_color);
  border: 1px solid transparent;
}
.cal__cell.is-picked {
  color: var(--on_primary_color); background: var(--primary_color);
}
.cal__cell.is-free { color: var(--success_color); }
.shift { padding: .4em 1.4em 1.2em; }
.shift__row, .shift__sum {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9em 0;
}
.shift__row + .shift__row, .shift__sum { border-top: 1px solid var(--border_subtle_color); }
.shift span { font-size: 1.2em; color: var(--text_secondary_color); }
.shift b { font-size: 1.4em; font-weight: 900; font-style: italic; color: var(--text_primary_color); }
.shift__sum b { color: var(--primary_color); }

/* 2 — die eingelesene Abrechnung und was daraus wird */
.scan { display: flex; align-items: center; gap: .9em; padding: 1.1em 1.3em; }
.scan .material-symbols-outlined { font-size: 1.8em; color: var(--primary_color); }
.scan__name {
  flex: 1; min-width: 0; font-size: 1.15em; color: var(--text_secondary_color);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.scan__state {
  flex: none; font-size: .95em; letter-spacing: .08em; text-transform: uppercase;
  color: var(--success_color);
}
.calc { padding: .6em 1.4em 1.2em; }
.calc__row {
  display: flex; align-items: baseline; justify-content: space-between; padding: .8em 0;
}
.calc__row span { font-size: 1.2em; color: var(--text_secondary_color); }
.calc__row b { font-size: 1.4em; font-weight: 900; font-style: italic; color: var(--text_primary_color); }
.calc__rule { height: 1px; margin: .6em 0 .2em; background: var(--border_color); }
.calc__row--sum b { font-size: 2.1em; color: var(--primary_color); }
.calc__note { font-size: 1.1em; color: var(--text_tertiary_color); padding: 0 .3em; }

/* 0 — the month on one page */
.sum { padding: 1.4em 1.5em; }
.sum span { display: block; font-size: 1.1em; letter-spacing: .12em; text-transform: uppercase; color: var(--text_tertiary_color); }
.sum b {
  display: block; margin-top: .15em;
  font-size: 2.7em; font-weight: 900; font-style: italic;
  /* Die Zahl, die Postbot ausrechnet — dieselbe Farbe wie jede andere Summe
     im Gerät, damit man sie im ganzen Ablauf wiedererkennt */
  letter-spacing: -.02em; color: var(--primary_color);
}
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1em; }
.mini { padding: 1.1em 1.3em; }
.mini span { display: block; font-size: 1.05em; letter-spacing: .1em; text-transform: uppercase; color: var(--text_tertiary_color); }
/* Etwas kleiner und ohne Umbruch: "158h 18min" muss in einer Zeile stehen,
   sonst stehen die beiden Kacheln ungleich hoch */
.mini b {
  display: block; margin-top: .2em; white-space: nowrap;
  font-size: 1.5em; font-weight: 900; font-style: italic;
  color: var(--text_primary_color);
}
/* Stunden und Minuten statt Kommastellen — so schreibt die App ihre
   Leistungsdaten, und die Einheit bleibt der Zahl untergeordnet.
   Muss die Beschriftungsregel darüber schlagen, sonst steht jede Einheit
   als eigene Zeile in Großbuchstaben da. */
.mini b .unit {
  display: inline; text-transform: none; letter-spacing: 0;
  font-size: .66em; font-style: normal; font-weight: 700;
  color: var(--text_tertiary_color); margin-left: .1em;
}

/* ─────────────────────────────────────────────────────────── 08 Beispiel ── */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature__text h2 { font-size: clamp(24px, calc(17.86px + 2.05vw), 42px); margin-bottom: 20px; }
.feature__text > p {
  font-size: clamp(15.5px, calc(14.82px + 0.23vw), 17.5px); margin-bottom: 30px;
}

.feature__box {
  padding: clamp(30px, calc(25.23px + 1.59vw), 44px) clamp(22px, calc(15.86px + 2.05vw), 40px);
  border-radius: var(--r-xl);
  background: var(--surface_container_low_color);
  border: 1px solid var(--border_color);
  border-left: 4px solid var(--primary_color);
  text-align: center;
}
.bignum {
  font-size: clamp(36px, calc(23.73px + 4.09vw), 72px);
  font-weight: 900; font-style: italic; line-height: 1;
  letter-spacing: -.045em; color: var(--primary_color);
}
.bignum__sub {
  margin-top: 14px; font-size: clamp(16px, calc(15.32px + 0.23vw), 18px);
  font-weight: 500; color: var(--text_primary_color);
}
.bignum__note {
  margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border_color);
  font-size: clamp(12.5px, calc(12.33px + 0.06vw), 13px);
  color: var(--text_secondary_color); text-align: left;
}

/* ─────────────────────────────────────────────────────────── 09 Vorteile ── */
/* Dunkle Karten mit farbiger Akzentkante statt Pastellflächen */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: start; }
.perk {
  --perk-accent: var(--border_strong_color);
  --perk-surface: var(--surface_container_color);
  position: relative; overflow: hidden;
  padding: clamp(26px, calc(24.64px + 0.45vw), 30px)
           clamp(22px, calc(20.64px + 0.45vw), 26px)
           clamp(28px, calc(26.64px + 0.45vw), 32px);
  border-radius: var(--r-xl);
  background: var(--surface_container_lowest_color);
  border: 1px solid var(--border_color);
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.perk::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--perk-accent);
}
.perk:hover { transform: translateY(-6px); border-color: var(--perk-accent); }
.perk:nth-child(even) { margin-top: 34px; }

.perk--yellow  { --perk-accent: var(--primary_color);   --perk-surface: var(--primary_surface_color); }
.perk--neutral { --perk-accent: var(--border_strong_color); --perk-surface: var(--surface_container_color); }
.perk--green   { --perk-accent: var(--success_color);   --perk-surface: var(--success_surface_color); }
.perk--red     { --perk-accent: var(--secondary_color); --perk-surface: var(--secondary_surface_color); }

/* The app's icon set on the tinted disc each perk carries */
.perk__icon {
  display: grid; place-items: center;
  width: clamp(46px, calc(43.27px + 0.91vw), 54px);
  height: clamp(46px, calc(43.27px + 0.91vw), 54px);
  margin-bottom: 20px;
  border-radius: 50%; background: var(--perk-surface);
  font-size: clamp(22px, calc(20.64px + 0.45vw), 26px); color: var(--perk-accent);
}
/* The neutral card's accent is a border grey — legible as a hairline, not as a
   glyph on a dark disc */
.perk--neutral .perk__icon { color: var(--text_secondary_color); }
.perk h3 { font-size: clamp(17px, calc(16.32px + 0.23vw), 19px); margin-bottom: 10px; }
.perk p {
  font-size: clamp(14px, calc(13.83px + 0.06vw), 14.5px);
  color: var(--text_secondary_color);
}

/* ──────────────────────────────────────────────────────────── 11 Für wen ── */
.who { display: grid; grid-template-columns: 7fr 5fr; gap: 60px; align-items: center; }
.who__text .sec__lead { max-width: 46ch; }

/* Pensum-Stufen: zeigt die Spannweite von Vollzeit bis Aushilfe */
.pensum { display: flex; flex-direction: column; }
.pensum li {
  display: flex; align-items: baseline; gap: 16px;
  padding: 20px 0; border-top: 1px solid var(--border_color);
}
.pensum li:last-child { border-bottom: 1px solid var(--border_color); }
.pensum b {
  min-width: clamp(74px, calc(59px + 5vw), 118px);
  font-size: clamp(23px, calc(21.64px + 0.45vw), 27px);
  font-weight: 700; letter-spacing: -.03em;
  color: var(--primary_color);
}
.pensum span {
  font-size: clamp(14px, calc(13.66px + 0.11vw), 15px);
  color: var(--text_secondary_color);
}

/* ──────────────────────────────────────────────────────────── 12 Vergleich ── */
.vs {
  border: 1px solid var(--border_color); border-radius: var(--r-xl);
  background: var(--surface_container_low_color); overflow-x: auto;
}
/* min() statt eines festen Mindestmaßes: Solange Platz da ist, hält die
   Tabelle ihre 620px und wird nicht gequetscht — wird der Container schmaler
   als der Lock, gibt sie nach und bricht um, statt waagerecht zu scrollen.
   Bis 300px hinunter bleibt sie damit ganz sichtbar. */
.vs__table { min-width: min(100%, clamp(440px, calc(378.64px + 20.45vw), 620px)); }
.vs__table th, .vs__table td {
  padding: clamp(11px, calc(8.95px + 0.68vw), 17px) clamp(8px, calc(2.55px + 1.82vw), 24px);
  text-align: left; font-size: clamp(12.5px, calc(11.48px + 0.34vw), 15.5px);
  /* „Soll-Ist-Abgleich" und „Zuschläge automatisch" sind die längsten Wörter
     der Tabelle — im Schmalen dürfen sie trennen */
  hyphens: auto; overflow-wrap: break-word;
}
.vs__table thead th {
  font-size: clamp(11px, calc(10.32px + 0.23vw), 13px);
  font-weight: 600; color: var(--text_tertiary_color);
  letter-spacing: .04em; border-bottom: 1px solid var(--border_color);
}
.vs__table thead th.is-us { color: var(--primary_color); }
.vs__table tbody th { font-weight: 500; color: var(--text_primary_color); }
.vs__table tbody tr + tr th, .vs__table tbody tr + tr td { border-top: 1px solid var(--border_subtle_color); }
.vs__table .is-us { background: var(--primary_wash_color); }
.vs__table td { color: var(--text_secondary_color); }

.ja, .nein {
  display: inline-flex; align-items: center;
  gap: clamp(6px, calc(4.98px + 0.34vw), 9px);
}
.ja { color: var(--success_color); font-weight: 500; }
.nein { color: var(--text_tertiary_color); }
.ja::before {
  content: ""; flex: none; border-radius: 50%;
  width: clamp(15px, calc(13.64px + 0.45vw), 19px);
  height: clamp(15px, calc(13.64px + 0.45vw), 19px);
  background: var(--success_surface_color) center/10px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%234ade80' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 6.4l2.6 2.6L10 3'/%3E%3C/svg%3E");
}
.nein::before {
  content: ""; flex: none; border-radius: 50%;
  width: clamp(15px, calc(13.64px + 0.45vw), 19px);
  height: clamp(15px, calc(13.64px + 0.45vw), 19px);
  background: var(--surface_container_color) center/9px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23757575' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M3 3l6 6M9 3l-6 6'/%3E%3C/svg%3E");
}
.vs__price th, .vs__price td { font-size: clamp(13.5px, calc(12.31px + 0.4vw), 17px); }
/* Kein nowrap: Der Betrag selbst hält über ein geschütztes Leerzeichen im
   Markup zusammen, „/ Jahr" darf im Schmalen in die zweite Zeile rutschen —
   sonst gäbe diese eine Zelle die Mindestbreite der ganzen Tabelle vor. */
.vs__price b {
  color: var(--primary_color);
  font-size: clamp(14px, calc(12.3px + 0.57vw), 19px);
}

/* ────────────────────────────────────────────────────────────── 13 Funde ── */
.finds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.find {
  padding: clamp(24px, calc(22.64px + 0.45vw), 28px) clamp(20px, calc(17.95px + 0.68vw), 26px);
  border-radius: var(--r-xl);
  border: 1px solid var(--border_color);
  background: var(--surface_container_low_color);
  display: flex; flex-direction: column; gap: 12px;
}
.find__tag {
  align-self: flex-start; padding: 5px 13px; border-radius: 999px;
  background: var(--surface_container_color); color: var(--text_secondary_color);
  font-size: clamp(11.5px, calc(11.33px + 0.06vw), 12px); font-weight: 600;
}
.find__tag--warn { background: var(--primary_surface_color); color: var(--primary_color); }
.find__tag--bad  { background: var(--secondary_surface_color); color: var(--secondary_text_color); }
.find h3 { font-size: clamp(17px, calc(16.32px + 0.23vw), 19px); }
.find p { font-size: clamp(14px, calc(13.66px + 0.11vw), 15px); }
.find__sum {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border_subtle_color);
  font-weight: 600; color: var(--secondary_text_color) !important;
}
/* Nicht jeder Fund ist ein Verlust: Angekommenes Geld steht in Grün da */
.find__sum--good { color: var(--success_color) !important; }
.finds__note {
  margin-top: 24px; text-align: center;
  font-size: clamp(12.5px, calc(12.33px + 0.06vw), 13px); color: var(--text_tertiary_color);
}

/* ─────────────────────────────────────────────────────────── 14 Über mich ── */
.maker {
  display: grid; grid-template-columns: auto 1fr; gap: 44px; align-items: start;
  padding: clamp(34px, calc(27.86px + 2.05vw), 52px) clamp(24px, calc(15.82px + 2.73vw), 48px);
  border-radius: var(--r-xl);
  background: var(--surface_container_lowest_color);
  border: 1px solid var(--border_color);
}
.maker__mono {
  display: grid; place-items: center;
  width: clamp(72px, calc(61.09px + 3.64vw), 104px);
  height: clamp(72px, calc(61.09px + 3.64vw), 104px);
  border-radius: clamp(22px, calc(19.27px + 0.91vw), 30px);
  background: var(--primary_surface_color);
  border: 1px solid var(--primary_border_color);
  color: var(--primary_color); font-weight: 600;
  font-size: clamp(30px, calc(25.91px + 1.36vw), 42px);
}
.maker__body h2 {
  font-size: clamp(22px, calc(17.23px + 1.59vw), 36px); margin-bottom: 20px;
}
.maker__body p { font-size: clamp(15.5px, calc(15.16px + 0.11vw), 16.5px); max-width: 64ch; }
.maker__body p + p { margin-top: 16px; }
.maker__sign {
  margin-top: 26px !important; padding-top: 20px; border-top: 1px solid var(--border_color);
  font-weight: 600; color: var(--text_primary_color) !important;
}

/* ─────────────────────────────────────────────────────────────── 15 Preis ── */
/* Tarifkarte links, die üblichen Fragen zum Abo rechts */
.plan {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 48px; align-items: start;
}
.plan__card {
  padding: clamp(30px, calc(27.27px + 0.91vw), 38px) clamp(22px, calc(17.23px + 1.59vw), 36px);
  text-align: center;
  border: 1px solid var(--border_color); border-top: 4px solid var(--primary_color);
  border-radius: var(--r-xl);
  background: var(--surface_container_lowest_color);
  box-shadow: var(--shadow-lg);
}
.plan__badge {
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  background: var(--primary_surface_color); color: var(--primary_color);
  font-size: clamp(11.5px, calc(11.33px + 0.06vw), 12px);
  font-weight: 600; letter-spacing: .04em;
}
.plan__name { margin-top: 16px; font-size: clamp(20px, calc(18.64px + 0.45vw), 24px); }

.plan__price {
  margin-top: 18px;
  display: flex; align-items: baseline; justify-content: center; gap: 10px;
}
.plan__price b {
  font-size: clamp(44px, calc(33.09px + 3.64vw), 76px);
  font-weight: 900; font-style: italic; line-height: 1;
  letter-spacing: -.05em; color: var(--text_primary_color);
}
.plan__price span {
  font-size: clamp(16px, calc(15.32px + 0.23vw), 18px); color: var(--text_secondary_color);
}
.plan__per {
  margin-top: 8px; font-size: clamp(12.5px, calc(12.16px + 0.11vw), 13.5px);
  color: var(--text_tertiary_color);
}
.plan__cta { margin-top: 26px; }

/* Was nach dem Klick gilt — dieselben Haken wie in der Vergleichstabelle */
.plan__trust {
  display: inline-grid; gap: 9px; margin-top: 22px; text-align: left;
}
.plan__trust li {
  display: flex; align-items: center; gap: 10px;
  font-size: clamp(13.5px, calc(13.33px + 0.06vw), 14px); color: var(--text_secondary_color);
}
.plan__trust li::before {
  content: ""; flex: none; border-radius: 50%;
  width: clamp(16px, calc(15.32px + 0.23vw), 18px);
  height: clamp(16px, calc(15.32px + 0.23vw), 18px);
  background: var(--success_surface_color) center/10px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%234ade80' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 6.4l2.6 2.6L10 3'/%3E%3C/svg%3E");
}

.qa { border-bottom: 1px solid var(--border_subtle_color); }
.qa:first-child { border-top: 1px solid var(--border_subtle_color); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: clamp(16px, calc(14.64px + 0.45vw), 20px) 0; cursor: pointer; list-style: none;
  font-size: clamp(15.5px, calc(14.99px + 0.17vw), 17px);
  font-weight: 600; color: var(--text_primary_color);
}
.qa summary::-webkit-details-marker { display: none; }
/* Plus beim Zuklappen, Minus beim Aufklappen: derselbe Strich, der senkrechte
   fällt im offenen Zustand einfach aus der Maske */
.qa summary::after {
  --bar: linear-gradient(#000 0 0);
  content: ""; flex: none;
  width: clamp(13px, calc(12.32px + 0.23vw), 15px);
  height: clamp(13px, calc(12.32px + 0.23vw), 15px);
  background: var(--primary_color);
  -webkit-mask: var(--bar) 50%/100% 2px no-repeat, var(--bar) 50%/2px 100% no-repeat;
  mask: var(--bar) 50%/100% 2px no-repeat, var(--bar) 50%/2px 100% no-repeat;
}
.qa[open] summary::after {
  -webkit-mask: var(--bar) 50%/100% 2px no-repeat;
  mask: var(--bar) 50%/100% 2px no-repeat;
}
.qa summary:hover { color: var(--primary_color); }
.qa p {
  padding-bottom: 22px; font-size: clamp(14.5px, calc(14.16px + 0.11vw), 15.5px);
  color: var(--text_secondary_color);
}

/* ───────────────────────────────────────────────────────────────── 16 CTA ── */
.cta {
  padding: clamp(60px, calc(47.73px + 4.09vw), 96px) 0;
  background: var(--primary_color); color: var(--on_primary_color);
}
.cta__inner { max-width: 680px; margin-inline: auto; text-align: center; }
.cta h2 {
  font-size: clamp(26px, calc(17.82px + 2.73vw), 50px);
  color: var(--on_primary_color); margin-bottom: 14px;
}
.cta p { font-size: clamp(15.5px, calc(14.82px + 0.23vw), 17.5px); color: rgba(32, 32, 32, .78); }
.cta .stores { margin-top: 34px; }
.cta__fine {
  margin-top: 24px; font-size: clamp(12.5px, calc(12.16px + 0.11vw), 13.5px);
  color: rgba(32, 32, 32, .62) !important;
}

/* ────────────────────────────────────────────────────────────── 17 Footer ── */
.footer {
  padding: clamp(48px, calc(41.18px + 2.27vw), 68px) 0 26px;
  background: var(--surface_inverse_color);
  border-top: 1px solid var(--border_color);
}
.footer__top {
  display: grid; grid-template-columns: 2.4fr 1fr 1fr;
  gap: clamp(28px, calc(22.55px + 1.82vw), 44px);
  padding-bottom: clamp(28px, calc(22.55px + 1.82vw), 44px);
  border-bottom: 1px solid var(--border_color);
}
.footer__brand p {
  margin-top: 14px; max-width: 34ch;
  font-size: clamp(14px, calc(13.83px + 0.06vw), 14.5px); color: var(--text_tertiary_color);
}
.footer__col { display: flex; flex-direction: column; gap: 11px; }
.footer__col h4 {
  margin-bottom: 4px; font-size: clamp(12.5px, calc(12.33px + 0.06vw), 13px);
  letter-spacing: .04em; color: var(--text_primary_color);
}
.footer__col a {
  font-size: clamp(14px, calc(13.83px + 0.06vw), 14.5px);
  color: var(--text_secondary_color); transition: color .18s var(--ease);
}
.footer__col a:hover { color: var(--primary_color); }
/* Kündigungslink nach § 312k BGB — muss deutlich erkennbar sein */
.footer__cancel { font-weight: 600; color: var(--text_primary_color) !important; text-decoration: underline; }
.footer__cancel:hover { color: var(--primary_color) !important; }

.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 22px; font-size: clamp(12.5px, calc(12.33px + 0.06vw), 13px);
  color: var(--text_tertiary_color);
}

/* ────────────────────────────────────────────────────────────── 18 Reveal ── */
[data-reveal] {
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ────────────────────────────────────────────────────────── 19 Responsive ── */
/*
 * Der Hero klappt nirgends mehr um: Gerät und Text stehen bis 300px hinunter
 * nebeneinander, weil das Gerät über den Lock in .phone mitschrumpft und die
 * auto-Spalte ihm nur so viel Platz gibt, wie er dann noch braucht. Hier
 * bleiben nur die Abstände, die im Schmalen zu großzügig stünden.
 */
@media (max-width: 900px) {
  /* Derselbe Abschnitt ist hier viel kürzer — unverändert läge die Streuung
     dicht im Text. Also jedes zweite Stück weg und der Rest kleiner. */
  .drift__item:nth-child(2n) { display: none; }
  .drift__item {
    width: calc(var(--size) * .72); height: calc(var(--size) * .72);
    opacity: calc(var(--o, .42) * .82);
  }

  /* Nur noch die Abstände rücken zusammen — die Größen regeln die Locks */
  .story__index { margin-bottom: 12px; }
  .story__lead { margin-top: 16px; max-width: 54ch; }
  .story__fact { margin-top: 16px; }
  .story__scroll { margin-top: 26px; }
}

@media (max-width: 1020px) {
  .feature, .who, .maker { grid-template-columns: 1fr; gap: 40px; }
  /* Die Karte trägt die Aussage, die Fragen kommen darunter nach */
  .plan { grid-template-columns: 1fr; gap: 40px; max-width: 560px; margin-inline: auto; }
  .maker { justify-items: start; }
  .perks { grid-template-columns: repeat(2, 1fr); }
  .perk:nth-child(even) { margin-top: 0; }
  .perk:nth-child(2), .perk:nth-child(4) { margin-top: 24px; }
  .finds { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

/* Ab hier ändert sich der Aufbau, nicht mehr die Größe — die Maße regeln die
   Locks oben durchgehend bis 300px hinunter */
@media (max-width: 720px) {
  .nav__links {
    position: fixed; inset: auto 0 auto 0; top: var(--nav-h); flex-direction: column; gap: 0;
    margin: 0; padding: 10px var(--pad) 20px;
    background: var(--surface_inverse_color);
    border-bottom: 1px solid var(--border_color);
    box-shadow: var(--shadow);
    transform: translateY(-130%); transition: transform .3s var(--ease);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { padding: 14px 12px; font-size: 16px; border-radius: 10px; }
  /* Der Login-Button führt in die Demo — er bleibt deshalb auch schmal in der
     Kopfzeile stehen, statt im eingeklappten Menü zu verschwinden. Er schiebt
     sich nach rechts, der Burger schließt direkt daneben an */
  .nav__inner { gap: 12px; }
  .nav__cta { margin-left: auto; flex-shrink: 0; }
  .burger { display: flex; margin-left: 0; }

  .perks { grid-template-columns: 1fr; }
  .perk:nth-child(2), .perk:nth-child(4) { margin-top: 0; }
  .pensum li { flex-direction: column; gap: 2px; padding: 16px 0; }
  /* Untereinander braucht die Zahl keine Spaltenbreite mehr */
  .pensum b { min-width: 0; }
  /* Die Beschriftung des Checkout-Buttons ist vorgegeben und lang — auf
     schmalen Geräten darf sie deshalb umbrechen statt überzustehen */
  .plan__cta { white-space: normal; }
  .stores { justify-content: center; }
  .store { flex: 1 1 auto; justify-content: center; }
  .footer__top { grid-template-columns: 1fr; gap: 30px; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 420px) {
  /* Auf den schmalsten Geräten steht das Monogramm mittig über dem Text besser
     als linksbündig — .maker setzt justify-items: start, das gilt nur für
     dieses eine Element wieder ab */
  .maker__mono { justify-self: center; }

  /*
   * Der Checkout-Button trägt die längste Beschriftung der Seite und darf sie
   * nach § 312j BGB nicht kürzen. Ab hier bekommt er deshalb eine eigene,
   * steilere Kurve bis 300px: Schrift 15,2 → 13,5px, Polster 21,6 → 12px
   * waagerecht. Damit bleibt „Zahlungspflichtig abonnieren" auf einer Zeile —
   * bei 300px mit rund 11px Rest. Die Kurve schließt bei 420px genau an die
   * Werte von .btn--lg an, es gibt also keinen Sprung.
   */
  .plan__cta {
    padding: clamp(11px, calc(2.78px + 2.74vw), 14.29px)
             clamp(12px, calc(-12px + 8vw), 21.6px);
    font-size: clamp(13.5px, calc(9.25px + 1.42vw), 15.2px);
    /* Falls eine Schriftart doch breiter baut als gerechnet, sitzen die zwei
       Zeilen kompakt statt auseinandergezogen */
    line-height: 1.25;
  }
}

@media (max-width: 400px) {
  /*
   * Der Login-Button teilt sich die Kopfzeile mit Logo und Burger. Ab hier
   * bekommt er deshalb eine eigene, steilere Kurve bis 300px: Schrift
   * 13,6 → 12px, Polster 15,58 → 11px waagerecht und 9,1 → 7px senkrecht.
   * Damit schrumpfen Breite und Höhe zugleich — bei 300px ist er rund 60px
   * breit und 37px hoch und steht damit auf einer Höhe mit dem Burger.
   * Die Kurve schließt bei 400px genau an die Werte von .btn--sm an, es gibt
   * also keinen Sprung. Die Zeilenhöhe bleibt bewusst unangetastet: Sie ist
   * der einzige Wert, der sich nicht stufenlos mitführen ließe.
   * Senkrecht zentriert bleibt er weiterhin über .nav__inner.
   */
  .nav__cta {
    padding: clamp(7px, calc(0.7px + 2.1vw), 9.1px)
             clamp(11px, calc(-2.74px + 4.58vw), 15.58px);
    font-size: clamp(12px, calc(7.2px + 1.6vw), 13.6px);
  }
}

/* Flache Bildschirme (etwa 1366×768): sonst passt der Header nicht
   in eine Bildschirmhöhe. Das Gerät regelt seine Höhe selbst über den
   vh-Anteil seines Locks. */
@media (min-width: 901px) and (max-height: 860px) {
  .story__title--lead { font-size: clamp(34px, 4vw, 52px); }
  .story__lead { margin-top: 18px; font-size: 16.5px; }
  .story__step { min-height: 72vh; }
}

/* Bewegung reduzieren */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  /*
   * The story keeps working without motion: steps and scenes are simply there
   * instead of arriving. Only the switch between scenes remains, and it is
   * instant.
   */
  .story__step { opacity: 1; transform: none; }
  .scene > * { opacity: 1; transform: none; transition: none; }
  .scene.is-active > * { transition-delay: 0s; }
  .story__scroll .material-symbols-outlined { animation: none; }
  /* Briefe und Pakete liegen still da, statt in ihrer Endstellung zu erstarren */
  .drift__item { animation: none; transform: rotate(var(--rot)); }
}
