/* Werbeseite /willkommen -- eigenes Blatt, weil die Seite nicht im App-Rahmen
   steckt (kein Menü, keine Anmeldung). Farben, Schriften und Rundungen sind
   dieselben wie in app.css, damit der Sprung in die App nicht auffällt.
   Eigene Datei statt <style> im Kopf: die Content-Security-Policy der App
   erlaubt kein Inline-CSS (siehe src/app.ts). */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/static/fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('/static/fonts/space-grotesk-latin.woff2') format('woff2');
}

:root {
  --bg: #f6f7f5;
  --surface: #ffffff;
  --surface-2: #eef1ee;
  --text: #17201d;
  --muted: #55625d;
  --border: #d5dcd8;
  --accent: #0f766e;
  --accent-strong: #0b5c56;
  --accent-soft: #d8f0ec;
  --on-accent: #ffffff;
  --focus: #e8a400;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(0 0 0 / 6%), 0 4px 16px rgb(0 0 0 / 4%);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #111614;
    --surface: #1a211e;
    --surface-2: #232c28;
    --text: #e8eeeb;
    --muted: #a3b0aa;
    --border: #34403b;
    --accent: #3cc4b5;
    --accent-strong: #6ad8cb;
    --accent-soft: #163a36;
    --on-accent: #08201d;
    --shadow: none;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #111614;
  --surface: #1a211e;
  --surface-2: #232c28;
  --text: #e8eeeb;
  --muted: #a3b0aa;
  --border: #34403b;
  --accent: #3cc4b5;
  --accent-strong: #6ad8cb;
  --accent-soft: #163a36;
  --on-accent: #08201d;
  --shadow: none;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
h1, h2, h3 { font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif; line-height: 1.15; margin: 0; }
p { margin: 0; }
a { color: var(--accent); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--surface); color: var(--text); padding: 10px 14px; border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px; }

/* ---------- Kopfzeile ---------- */
.top {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.top-in { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 17px;
  color: var(--text); text-decoration: none; flex-shrink: 0;
}
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px; background: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; color: var(--on-accent);
}
.top-nav { display: flex; gap: 4px; margin-left: 10px; }
.top-nav a {
  color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 8px 10px; border-radius: 8px;
}
.top-nav a:hover { color: var(--text); background: var(--surface-2); }
.top-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 11px 18px; border-radius: 999px;
  font-size: 15px; font-weight: 600; text-decoration: none; border: 1px solid transparent;
}
.btn-main { background: var(--accent); color: var(--on-accent); }
.btn-main:hover { background: var(--accent-strong); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { min-height: 38px; padding: 8px 14px; font-size: 14.5px; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 56px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft); color: var(--accent-strong);
  font-size: 13.5px; font-weight: 600; padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(32px, 5.4vw, 52px); font-weight: 700; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 18px; color: var(--muted); max-width: 620px; margin: 0 auto 28px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.hero-note { font-size: 13.5px; color: var(--muted); }
.trust { display: flex; gap: 10px 22px; justify-content: center; flex-wrap: wrap; margin-top: 26px; font-size: 13.5px; color: var(--muted); }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { color: var(--accent); flex-shrink: 0; }

/* ---------- Abschnitte ---------- */
section { padding: 60px 0; }
.band { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.head { max-width: 640px; margin: 0 auto 36px; text-align: center; }
.kicker {
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.head h2 { font-size: clamp(25px, 3.4vw, 33px); font-weight: 700; margin-bottom: 12px; }
.head p { color: var(--muted); }

/* min(...) statt einer festen Mindestbreite: sonst bleibt die Spalte auf schmalen
   Handys breiter als der Bildschirm und die Seite laesst sich seitlich schieben. */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
/* Vier Karten sollen 2+2 stehen, nicht 3+1. */
.grid.zwei { grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; gap: 9px; }
.card h3 svg { color: var(--accent); flex-shrink: 0; }
.card p { color: var(--muted); font-size: 14.5px; }

/* Farben, die der Wochenkalender wirklich benutzt (siehe docs/ARCHITEKTUR.md). */
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 11px; height: 11px; border-radius: 3px; flex-shrink: 0; }
.dot-free { background: #9fdcbd; }
.dot-ask { background: #f0c75e; }
.dot-taken { background: #1d6b35; }
.dot-off { background: #c3ccc7; }

.who { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.who div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.who strong { display: block; font-size: 15.5px; margin-bottom: 4px; }
.who span { color: var(--muted); font-size: 14px; }

/* ---------- Bildschirmfotos ---------- */
/* Helle Aufnahmen aus der App. Im dunklen Modus bleiben sie hell -- ein
   zweiter Satz Bilder waere fuer den Gewinn zu viel Ballast; der Rahmen
   setzt sie sauber ab. */
.shot-wrap { max-width: 860px; margin: 34px auto 0; }
.shot-gross { max-width: 760px; margin-top: 0; padding-bottom: 8px; }
.shot { margin: 0; }
.shot img {
  display: block; width: 100%; height: auto;
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.shot figcaption { margin-top: 10px; font-size: 13.5px; color: var(--muted); text-align: center; }

/* ---------- Preis ---------- */
.price-card {
  max-width: 480px; margin: 0 auto; background: var(--surface);
  border: 1px solid var(--border); border-radius: 18px; padding: 28px; text-align: center; box-shadow: var(--shadow);
}
.price-badge {
  display: inline-block; background: var(--accent-soft); color: var(--accent-strong);
  font-size: 13px; font-weight: 700; padding: 5px 13px; border-radius: 999px; margin-bottom: 14px;
}
.price-amount { font-family: 'Space Grotesk', sans-serif; font-size: 42px; font-weight: 700; line-height: 1.1; }
/* Abstand ueber CSS statt &nbsp;: die Uebersetzung fasst Textknoten an und
   wuerde ein geschuetztes Leerzeichen am Anfang mitnehmen. */
.price-amount small { font-size: 17px; font-weight: 500; color: var(--muted); margin-left: 5px; }
.price-sub { color: var(--muted); margin-top: 6px; }
.price-list { list-style: none; margin: 20px 0; padding: 0; text-align: left; display: grid; gap: 10px; }
.price-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.price-list svg { color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.price-note { font-size: 13.5px; color: var(--muted); margin-top: 14px; }

/* ---------- Abschluss ---------- */
.final { text-align: center; }
.final h2 { font-size: clamp(25px, 3.4vw, 33px); margin-bottom: 12px; }
.final p { color: var(--muted); max-width: 540px; margin: 0 auto 26px; }

.foot { border-top: 1px solid var(--border); padding: 26px 0 40px; font-size: 14px; color: var(--muted); text-align: center; }
.foot a { color: var(--muted); }
.foot p { margin-bottom: 6px; }

@media (max-width: 720px) {
  .top-nav { display: none; }
  .hero { padding: 44px 0 40px; }
  section { padding: 46px 0; }
  .hero-actions .btn { width: 100%; }
}
