:root {
  color-scheme: light dark;
  --surface: #f6f7f9; --card: #fff; --text: #16202c; --quiet: #5c6b7c; --line: #d9dfe6;
  --accent: #0b5cad; --on-accent: #fff; --ready: #1b7a3d; --tint: #e8f1fb;
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --surface: #11161c; --card: #1a2129; --text: #e7ecf2; --quiet: #9aa8b8; --line: #2c3744; --accent: #6db3ff; --on-accent: #0b1520; --ready: #6fd08c; --tint: #16283b; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); color: var(--text); }
a { color: var(--accent); }
img, svg { max-width: 100%; }
.container { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

header.header { border-bottom: 1px solid var(--line); background: var(--card); }
header.header .container { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--text); text-decoration: none; }
.brand img { width: 28px; height: 28px; }
nav.main-nav { display: flex; gap: 20px; font-size: 15px; }
nav.main-nav a { text-decoration: none; color: var(--quiet); }
nav.main-nav a:hover, nav.main-nav a[aria-current] { color: var(--text); }

.hero { padding: 72px 0 56px; }
.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.1; margin: 0 0 20px; letter-spacing: -0.02em; }
.tagline { font-size: 20px; color: var(--quiet); margin: 0 0 28px; max-width: 34em; }
.buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.button { display: inline-block; padding: 13px 22px; border-radius: 12px; font-weight: 600; text-decoration: none; background: var(--accent); color: var(--on-accent); }
.button.quiet { background: transparent; color: var(--accent); border: 1px solid var(--line); }
.status { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); background: var(--tint); padding: 5px 10px; border-radius: 999px; margin-bottom: 18px; }

/* Das Handy im Kopfbereich ist reines HTML/CSS – dieselbe Karte wie in der App. */
.phone { justify-self: center; width: 300px; border-radius: 40px; padding: 14px; background: #16202c; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.45); }
.phone .screen { border-radius: 28px; background: var(--surface); padding: 22px 16px 26px; display: grid; gap: 12px; }
.phone .company { font-size: 12px; color: var(--quiet); }
.phone .greeting { font-size: 22px; font-weight: 700; }
.app-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 8px; }
.app-card .label { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; color: var(--quiet); }
.app-card .state { font-size: 17px; font-weight: 700; color: var(--ready); }
.slider { height: 46px; border-radius: 23px; border: 2px solid var(--ready); display: flex; align-items: center; padding: 3px; color: var(--ready); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.slider i { width: 36px; height: 36px; border-radius: 50%; background: var(--ready); display: grid; place-items: center; color: var(--card); font-style: normal; font-size: 20px; margin-right: 14px; flex: none; }
.offer { border-color: var(--accent); }
.offer .time { font-size: 11px; color: var(--quiet); font-weight: 600; display: flex; justify-content: space-between; }
.offer .time b { color: #b3261e; border: 1px solid currentColor; border-radius: 5px; padding: 0 5px; font-size: 10px; }
.offer .subject { font-weight: 700; }
.offer .place { font-size: 12px; color: var(--quiet); }
.offer .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.offer .pair span { text-align: center; padding: 8px; border-radius: 9px; font-size: 13px; font-weight: 600; border: 1px solid var(--line); color: var(--accent); }
.offer .pair span:first-child { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* Fotos: entstehen mit tools/generate_images.py, liegen als WebP in public/img/. */
.shot { display: block; width: 100%; height: auto; }
.band { margin: 0 0 56px; }
.band .shot { border-radius: 18px; border: 1px solid var(--line); }

section { padding: 56px 0; }
section.alt { background: var(--card); border-block: 1px solid var(--line); }
h2 { font-size: 30px; line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
.lead { color: var(--quiet); max-width: 40em; margin: 0 0 32px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
section.alt .tile { background: var(--surface); }
.tile h3 { margin: 0 0 8px; font-size: 19px; }
.tile p { margin: 0; color: var(--quiet); }
.tile.has-shot { padding: 0; overflow: hidden; }
.tile.has-shot .shot { aspect-ratio: 3 / 2; object-fit: cover; border-bottom: 1px solid var(--line); }
.tile.has-shot h3 { margin: 22px 24px 8px; }
.tile.has-shot p { margin: 0 24px 24px; }
.number { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--tint); color: var(--accent); font-weight: 700; margin-bottom: 14px; }
.modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; padding: 0; margin: 0; list-style: none; }
.modules li { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: var(--card); }
.modules b { display: block; }
.modules span { color: var(--quiet); font-size: 15px; }
.modules em { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--quiet); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; margin-left: 6px; vertical-align: 2px; }
/* Der Weg eines Einsatzes: ein SVG, das den Farben der Seite folgt. */
.flow { margin: 0; }
.flow svg { display: block; width: 100%; height: auto; }
.flow rect { fill: var(--card); stroke: var(--line); stroke-width: 1.5; }
.flow .here rect { fill: var(--tint); stroke: var(--accent); }
.flow .t { fill: var(--text); font-size: 19px; font-weight: 700; }
.flow .s { fill: var(--quiet); font-size: 15px; }
.flow .c { fill: var(--quiet); font-size: 14px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.flow .arrow { color: var(--quiet); }
.flow .arrow line { stroke: currentColor; stroke-width: 1.5; }
.flow .back { color: var(--accent); }
.flow .back path { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-dasharray: 5 4; }
.flow .back .c { fill: var(--accent); }

.checklist { padding-left: 20px; margin: 0; color: var(--quiet); }
.checklist li { margin-bottom: 8px; }
.checklist b { color: var(--text); }
.note-box { border-left: 3px solid var(--accent); background: var(--tint); padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 24px 0 0; }

main.text { padding: 48px 0 72px; }
main.text h1 { font-size: 36px; }
main.text h2 { font-size: 22px; margin-top: 36px; }
main.text address { font-style: normal; }

footer.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--quiet); font-size: 15px; }
footer.footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer.footer a { color: var(--quiet); }

@media (max-width: 820px) {
  .hero { padding: 44px 0 32px; }
  .hero .container, .three, .two-columns { grid-template-columns: 1fr; }
  .phone { width: 270px; }
  /* Auf dem Handy ist das breite Band nur noch ein schmaler Streifen – enger
     beschneiden, damit das Gerät darin erkennbar bleibt. */
  .band { margin-bottom: 36px; }
  .band .shot { aspect-ratio: 16 / 9; object-fit: cover; object-position: 62% center; }
  nav.main-nav a.wide-only { display: none; }
}
