  /* Die Farben der App (decisions/0004 und 0007): ein ruhiger, heller Grund, Petrol als
     Arbeitsfarbe für Links und Akzente, Bernstein nur für das, was gefeiert wird. Keine
     Verläufe. Die Werte stehen in `Sources/Shared/Theme.swift`. Aufbau und Klassen wie in
     Tomatinos Stylesheet, damit beide Seiten gleich zu pflegen sind. */
  :root {
    --bg: #ffffff;
    --surface: #f5f4f1;
    --surface-2: #ebe9e4;
    --text: #15191b;
    --muted: #62676a;
    --line: #e4e1db;
    --accent: #005f73;
    --accent-fill: #005f73;
    --celebration: #ac5802;
    --radius: 20px;
    --shadow: 0 22px 60px -18px rgba(0, 18, 25, .22);
    --shadow-alpha: 0 18px 40px rgba(0, 18, 25, .18);
  }
  @media (prefers-color-scheme: dark) {
    :root {
      --bg: #0e0d0c;
      --surface: #181716;
      --surface-2: #232220;
      --text: #f3f2ef;
      --muted: #a3a09a;
      --line: #2a2927;
      --accent: #2ea3a5;
      --accent-fill: #087d80;
      --celebration: #ee9b00;
      --shadow: 0 22px 60px -18px rgba(0, 0, 0, .6);
      --shadow-alpha: 0 18px 40px rgba(0, 0, 0, .5);
    }
  }
  * { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
  body {
    margin: 0; background: var(--bg); color: var(--text);
    font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
  }
  .wrap { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
  .narrow { max-width: 680px; }
  a { color: var(--accent); text-underline-offset: 2px; }
  h1, h2, h3 { letter-spacing: -.021em; font-weight: 650; margin: 0; }
  p { margin: 0 0 18px; }
  p:last-child { margin-bottom: 0; }
  strong { font-weight: 600; }

  /* ── Hero ──────────────────────────────────────────────── */
  /* Der Grund der App, eine Stufe wärmer als die Seite darunter. */
  .hero { background: var(--surface); padding: 20px 0 90px; border-bottom: 1px solid var(--line); }
  .hero-grid {
    display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center;
    margin-top: 48px;
  }
  .topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .brand { display: inline-flex; align-items: center; gap: 10px; }
  .brand img { display: block; border-radius: 8px; filter: drop-shadow(0 2px 6px rgba(0, 18, 25, .15)); }
  .brand span { font-size: 19px; font-weight: 650; letter-spacing: -.01em; }
  .hero h1 { font-size: 58px; line-height: 1.04; margin-bottom: 22px; }
  /* Die erste Zeile der H1 benennt, was die Seite ist, damit die Überschrift das Suchwort
     trägt. Versal durch `text-transform`, im Quelltext ein gewöhnlicher Satz. */
  .h1-lead {
    display: block; font-size: 13px; font-weight: 600; letter-spacing: .07em;
    text-transform: uppercase; line-height: 1.4; color: var(--accent);
    margin-bottom: 14px; text-wrap: balance;
  }
  .hero .tagline { font-size: 21px; line-height: 1.5; color: var(--muted); max-width: 36ch; }
  .cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 32px; }
  /* Solange es kein Badge gibt: ein Satz in einer Kapsel, bewusst nicht wie ein Knopf, weil
     er nirgendwohin führt. */
  .soon {
    display: inline-flex; align-items: center; gap: 9px;
    font-size: 15px; font-weight: 600; padding: 10px 18px; border-radius: 980px;
    color: var(--accent); border: 1.5px solid currentColor;
  }
  .soon::before {
    content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--celebration);
  }
  .store-badge { display: inline-block; line-height: 0; }
  .store-badge img { height: 56px; width: auto; display: block; }
  .req { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 18px 0 0; text-wrap: balance; max-width: 52ch; }

  /* ── Abwechselnde Blöcke ───────────────────────────────── */
  .row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 68px; align-items: center;
    padding: 84px 0;
  }
  .row + .row { border-top: 1px solid var(--line); }
  .row.flip .art { order: 2; }
  .row h2 { font-size: 31px; line-height: 1.22; margin-bottom: 18px; }
  .kicker {
    font-size: 13px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 12px;
  }
  .art { display: flex; justify-content: center; }

  /* Die Bilder haben durchsichtige Ecken, also `drop-shadow` statt `box-shadow`, der die
     Ecken als Kasten nachzöge. Kein Gehäuse, siehe `site/make-ios-shot.swift`. */
  .phoneshot {
    width: 100%; max-width: 300px; height: auto; display: block;
    filter: drop-shadow(var(--shadow-alpha));
  }
  .widgetshot {
    width: 100%; max-width: 520px; height: auto; display: block;
    filter: drop-shadow(var(--shadow-alpha));
  }
  .macshot {
    width: 100%; max-width: 700px; height: auto; display: block;
    filter: drop-shadow(var(--shadow-alpha));
  }
  /* Der Mac-Abschnitt ist eine Spalte: Text oben und schmal, das Fenster darunter breit. */
  .row.wide { grid-template-columns: 1fr; gap: 44px; }
  .wide-text { max-width: 680px; margin: 0 auto; text-align: center; }
  .macshot { max-width: 960px; }

  /* ── Textblöcke ────────────────────────────────────────── */
  .note { margin-top: 26px; max-width: 680px; font-size: 15.5px; color: var(--muted); }
  section.block { padding: 84px 0; border-top: 1px solid var(--line); }
  section.block h2 { font-size: 31px; line-height: 1.22; }
  h3 { font-size: 19px; margin: 34px 0 8px; }
  #faq h2 + h3 { margin-top: 26px; }
  .features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
  .card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 22px 24px;
  }
  .card b { display: block; color: var(--text); margin-bottom: 6px; font-size: 16px; font-weight: 650; }
  .card { color: var(--muted); font-size: 15.5px; line-height: 1.6; }

  /* ── Abschluss ─────────────────────────────────────────── */
  .final {
    background: var(--surface); border-top: 1px solid var(--line);
    padding: 80px 0; text-align: center;
  }
  .final h2 { font-size: 34px; margin-bottom: 14px; }
  .final p { color: var(--muted); max-width: 46ch; margin: 0 auto; }

  /* ── Rechtsseiten ──────────────────────────────────────── */
  .hero-slim { padding: 20px 0 52px; }
  .hero-slim .legal-h1 { font-size: 40px; line-height: 1.08; margin: 44px 0 16px; }
  .hero-slim .tagline { max-width: 56ch; }
  .legal { padding: 52px 0 12px; }
  .legal h2 { font-size: 23px; margin: 0 0 12px; }
  .legal h2 ~ h2 { margin-top: 40px; }
  .legal p { max-width: 68ch; font-size: 16.5px; line-height: 1.7; margin: 0 0 18px; }
  .legal p:last-child { margin-bottom: 0; }
  .legal-date { color: var(--muted); font-size: 15px; margin-top: 34px; }
  .legal-note { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 14px 0 0; max-width: 60ch; }
  a.brand { text-decoration: none; color: inherit; }
  a.brand:hover span { text-decoration: underline; text-underline-offset: 3px; }

  footer { padding: 40px 0 60px; font-size: 14.5px; color: var(--muted); text-align: center; }
  footer a { color: var(--muted); }
  footer p { margin: 0; }

  /* Das Konfetti liegt über allem und fängt keinen Klick ab. */
  .confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 10; }

  @media (max-width: 900px) {
    .hero-grid, .row { grid-template-columns: 1fr; gap: 44px; }
    .row.flip .art { order: 0; }
    .hero h1 { font-size: 44px; }
    .features { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 560px) {
    .hero { padding: 16px 0 64px; }
    .hero-grid { margin-top: 36px; }
    .hero h1 { font-size: 36px; }
    .h1-lead { font-size: 12px; letter-spacing: .05em; }
    .hero .tagline { font-size: 19px; }
    .row, section.block, .final { padding: 56px 0; }
    .row h2, section.block h2 { font-size: 26px; }
    .features { grid-template-columns: 1fr; }
    .phoneshot { max-width: 260px; }
  }

  /* ── Sprachumschalter ──────────────────────────────────── */
  /* Wie in Tomatino: eine Kapsel mit Globus, die als `popover` eine Liste aufklappt und
     mit CSS Anchor Positioning an ihr hängt. Hier auf hellem Grund statt auf rotem. */
  .langswitch { font-size: 13px; font-weight: 600; }
  .langswitch button {
    display: inline-flex; align-items: center; gap: 7px; anchor-name: --sprache;
    padding: 6px 12px 6px 11px; border-radius: 980px; cursor: pointer;
    font: inherit; user-select: none; -webkit-user-select: none;
    background: var(--bg); border: 1px solid var(--line); color: var(--text); letter-spacing: .02em;
  }
  .langswitch button::after {
    content: ""; width: 5px; height: 5px; margin: -3px 1px 0 1px;
    border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg); opacity: .7;
  }
  .langswitch:has(:popover-open) button::after { transform: rotate(225deg); margin-top: 3px; }
  .langswitch button:hover,
  .langswitch:has(:popover-open) button { background: var(--surface-2); }
  .langswitch button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .langswitch .globus { display: block; opacity: .8; }
  .langswitch ul {
    position-anchor: --sprache; inset: auto;
    top: anchor(bottom); right: anchor(right); margin: 8px 0 0;
    display: none; grid-template-columns: minmax(160px, auto); gap: 2px;
    max-height: calc(100dvh - 90px); overflow-y: auto;
    padding: 6px; list-style: none; font-size: 13px;
    background: var(--bg); color: var(--text);
    border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  }
  .langswitch ul:popover-open { display: grid; }
  .langswitch li { margin: 0; }
  .langswitch li a,
  .langswitch li span {
    display: block; padding: 7px 12px; border-radius: 8px; white-space: nowrap;
    color: var(--text); text-decoration: none; font-weight: 500; letter-spacing: 0;
  }
  .langswitch li a:hover { background: var(--surface-2); }
  .langswitch li a:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
  .langswitch li [aria-current="true"] { color: var(--accent); font-weight: 650; }

  /* ── Fehlerseite ───────────────────────────────────────── */
  .notfound {
    min-height: 100svh; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 40px 28px; text-align: center; background: var(--surface);
  }
  .nf-brand {
    display: inline-flex; flex-direction: column; align-items: center; gap: 10px;
    color: inherit; text-decoration: none; margin-bottom: 18px;
  }
  .nf-brand img { display: block; border-radius: 14px; filter: drop-shadow(var(--shadow-alpha)); }
  .nf-brand span { font-size: 19px; font-weight: 650; letter-spacing: -.01em; }
  .nf-code { font-size: 88px; font-weight: 700; letter-spacing: -.04em; line-height: 1; color: var(--accent); margin: 10px 0 22px; }
  .notfound p[lang] { color: var(--muted); margin: 0 0 8px; font-size: 16.5px; }
  .notfound .nf-langs { margin: 18px 0 0; font-size: 14.5px; color: var(--muted); }
