:root {
  --background: #0b0b0d;
  --foreground: #f2f2f4;
  --accent: #6b83ff;
  --accent-2: #a56bff;
  --accent-strong: color-mix(in oklch, var(--accent) 80%, white);
  --accent-subtle: color-mix(in oklch, var(--accent) 14%, var(--background));
  --muted: #8f95a3;
  --border: color-mix(in oklch, var(--foreground) 14%, transparent);
  --border-strong: color-mix(in oklch, var(--foreground) 32%, transparent);
  --surface: color-mix(in oklch, var(--foreground) 6%, var(--background));
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  position: relative;
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* Feines Filmkorn über der gesamten Seite — bricht die sonst komplett
   flache Dunkelfläche auf, ohne dass es als Textur bewusst auffällt. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

.num {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 500;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3 { font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; margin: 0; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in oklch, var(--background) 85%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.05rem;
  padding-bottom: 1.05rem;
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 2.1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}

.site-nav a {
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.15s ease;
}

.site-nav a span { position: relative; }

.site-nav a span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.2s ease;
}

.site-nav a:hover { color: var(--foreground); }
.site-nav a:hover span::after { transform: scaleX(1); transform-origin: left; }

@media (min-width: 800px) {
  .site-nav { display: flex; margin: 0 auto; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, opacity 0.15s ease, background-color 0.15s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn:active { transform: scale(0.96); }

.btn-primary {
  background: linear-gradient(180deg, color-mix(in oklch, var(--accent) 90%, white 12%), var(--accent));
  color: #05050a;
  box-shadow: 0 1px 0 color-mix(in oklch, white 30%, transparent) inset,
    0 8px 24px -8px color-mix(in oklch, var(--accent) 75%, transparent);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 color-mix(in oklch, white 30%, transparent) inset,
    0 12px 28px -8px color-mix(in oklch, var(--accent) 85%, transparent);
}

.btn-ghost {
  background: var(--surface);
  color: var(--foreground);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-small { padding: 0.55rem 1.15rem; font-size: 0.875rem; }

.text-link {
  font-weight: 600;
  color: var(--foreground);
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 0.15rem;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.text-link:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 8rem 0 6.5rem;
}

/* Zwei weiche Glow-Flächen statt der früheren Linien-Doodles — geben der
   sonst komplett flachen Fläche Tiefe, ohne von der Produkt-Vorschau
   abzulenken. Auf reinem CSS (radial-gradient + blur), keine Assets. */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(10px);
}

.hero::before {
  top: -22%;
  right: -12%;
  width: 46vw;
  height: 46vw;
  max-width: 640px;
  max-height: 640px;
  background: radial-gradient(circle, color-mix(in oklch, var(--accent) 32%, transparent) 0%, transparent 70%);
}

.hero::after {
  bottom: -30%;
  left: -14%;
  width: 38vw;
  height: 38vw;
  max-width: 520px;
  max-height: 520px;
  background: radial-gradient(circle, color-mix(in oklch, var(--accent-2) 22%, transparent) 0%, transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 980px) {
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; }
}

.hero-copy { max-width: 620px; }

.accent-text {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
}

.hero h1 {
  font-size: clamp(2.6rem, 5.8vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 1.4rem;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 0 2.25rem;
}

.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; margin-bottom: 1.25rem; }

.hero-note { font-size: 0.85rem; color: var(--muted); margin: 0; }

/* ---------- App preview (Hero-Mockup) ---------- */

.hero-visual { position: relative; z-index: 1; }

.preview-card {
  position: relative;
  margin: 0 auto;
  max-width: 380px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, color-mix(in oklch, var(--foreground) 8%, var(--background)), var(--surface));
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6), 0 1px 0 color-mix(in oklch, white 6%, transparent) inset;
  padding: 1.5rem;
  transform: rotate(1.2deg);
}

.preview-card-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}

.preview-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-subtle);
  flex-shrink: 0;
}

.preview-route-name { font-weight: 700; font-size: 0.95rem; }

.preview-card-head .preview-tag {
  margin-left: auto;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  color: var(--muted);
}

.preview-route-line { width: 100%; height: 56px; margin-bottom: 1.2rem; }
.preview-route-line path {
  fill: none;
  stroke: url(#previewGradient);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.preview-divider { height: 1px; background: var(--border); margin-bottom: 1rem; }

.preview-label {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.preview-leaderboard { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }

.preview-leaderboard li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.6rem;
  border-radius: var(--radius-sm);
  background: color-mix(in oklch, var(--foreground) 3%, transparent);
}

.preview-leaderboard li:first-child {
  background: var(--accent-subtle);
  border: 1px solid color-mix(in oklch, var(--accent) 35%, transparent);
}

.preview-rank {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  background: color-mix(in oklch, var(--foreground) 8%, transparent);
  flex-shrink: 0;
}

.preview-rank--1 { color: #05050a; background: var(--accent); }

.preview-name { font-size: 0.85rem; font-weight: 600; }

.preview-vehicle {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
}

.preview-time {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--foreground);
  white-space: nowrap;
}

@media (max-width: 979px) {
  .preview-card { transform: none; }
}

/* ---------- Section shared ---------- */

section { padding: 6rem 0; }

section h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  max-width: 640px;
}

.section-lede {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0.9rem 0 3rem;
}

/* ---------- Features ---------- */

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

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.feature {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, var(--surface), transparent);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.feature:hover {
  border-color: color-mix(in oklch, var(--accent) 45%, var(--border));
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -18px color-mix(in oklch, var(--accent) 40%, transparent);
}

.feature-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-md);
  background: var(--accent-subtle);
  margin-bottom: 1.4rem;
}

.feature-icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.feature h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.feature p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* ---------- Steps ---------- */

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

.step-list {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
}

.step-list li {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.step-list h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.step-list p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* ---------- CTA ---------- */

.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.cta::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -60%;
  left: 50%;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  transform: translateX(-50%);
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, color-mix(in oklch, var(--accent) 16%, transparent) 0%, transparent 70%);
}

.cta-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }

.cta p { color: var(--muted); font-size: 1.05rem; margin: 1rem 0 2rem; }

.cta-secondary { margin-top: 1.5rem; font-size: 0.9rem; color: var(--muted); }

/* ---------- Legal (Impressum, Datenschutz, AGB) ---------- */

.legal { padding: 4rem 0 5rem; }

.legal-inner { max-width: 680px; }

.legal h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); margin-bottom: 2rem; }

.legal h2 {
  font-size: 1rem;
  margin: 2.25rem 0 0.6rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.legal h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }

.legal h3 {
  font-size: 0.925rem;
  color: var(--muted);
  margin: 1.5rem 0 0.4rem;
  letter-spacing: 0;
}

.legal p { color: var(--foreground); font-size: 0.95rem; line-height: 1.7; margin: 0 0 0.5rem; }

.legal a { border-bottom: 1px solid var(--border-strong); }
.legal a:hover { color: var(--accent); border-color: var(--accent); }

.legal ul, .legal ol {
  color: var(--foreground);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
}

.legal li { margin-bottom: 0.35rem; }
.legal li::marker { color: var(--muted); }

/* Datum-/Stand-Zeile direkt unter der Überschrift. */
.legal-stand {
  color: var(--muted);
  font-size: 0.85rem;
  margin: -1.25rem 0 2rem;
}

/* Inhaltsverzeichnis für die längeren Texte (AGB, Datenschutz). Ohne das
   sind 16 Ziffern auf dem Handy nicht navigierbar. */
.legal-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  margin: 0 0 2.5rem;
}
.legal-toc p { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 0.6rem; }
.legal-toc ol { margin: 0; padding-left: 1.1rem; font-size: 0.9rem; }
.legal-toc li { margin-bottom: 0.2rem; }
.legal-toc a { border-bottom: none; color: var(--foreground); }

/* Anker sollen nicht unter dem klebrigen Header verschwinden. */
.legal h2[id] { scroll-margin-top: 5rem; }

/* Hinweiskasten im Fliesstext (z. B. „was andere sehen können"). */
.legal-note {
  border-left: 2px solid var(--accent);
  background: var(--accent-subtle);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.9rem 1.1rem;
  margin: 1rem 0 1.25rem;
}
.legal-note p { font-size: 0.9rem; margin: 0 0 0.4rem; }
.legal-note p:last-child { margin-bottom: 0; }

/* Entwurfs-Banner. Bewusst laut: ein ungeprüfter Rechtstext, der wie ein
   geprüfter aussieht, ist schlimmer als gar keiner. */
.legal-draft {
  border: 1px solid #d98a2b;
  /* Statischer Vorgabewert zuerst: ein Browser ohne color-mix() verwirft die
     Zeile darunter und stünde sonst ganz ohne Warnhintergrund da — bei einem
     Kasten, dessen einziger Zweck das Warnen ist. */
  background: rgba(217, 138, 43, 0.12);
  background: color-mix(in oklch, #d98a2b 12%, var(--background));
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  margin: 0 0 2.25rem;
}
.legal-draft strong { color: #f0a94a; }
.legal-draft p { font-size: 0.9rem; margin: 0 0 0.5rem; }
.legal-draft p:last-child { margin-bottom: 0; }

/* Noch nicht eingesetzte Angabe (Firma, Adresse, Gerichtsstand). Sichtbar
   markiert, damit sie beim Korrekturlesen nicht durchrutscht. */
.todo {
  display: inline-block;
  /* Wie oben: ohne Vorgabewert wäre eine offene Pflichtangabe nicht mehr
     als solche zu erkennen. */
  background: rgba(217, 138, 43, 0.22);
  background: color-mix(in oklch, #d98a2b 22%, var(--background));
  border: 1px dashed #d98a2b;
  border-radius: 0.3rem;
  padding: 0 0.35rem;
  color: #f0a94a;
  font-size: 0.9em;
  font-weight: 600;
}

/* Tabellen (Preise, Auftragsbearbeiter, Aufbewahrungsfristen). Der Wrapper
   scrollt, nicht die Seite. */
.legal-table-wrap { overflow-x: auto; margin: 0.75rem 0 1.25rem; }

.legal table {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.legal th, .legal td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  line-height: 1.55;
}
.legal th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom-color: var(--border-strong);
}
.legal tr:last-child td { border-bottom: none; }

/* Übersichtsseite /legal */
.legal-index { display: grid; gap: 0.75rem; margin-top: 2rem; }

.legal-index a {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 1.1rem 1.25rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.legal-index a:hover { border-color: var(--accent); transform: translateY(-1px); color: inherit; }
.legal-index h2 {
  font-size: 1rem;
  border-top: none;
  padding-top: 0;
  margin: 0 0 0.3rem;
}
.legal-index p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.footer-tag { color: var(--muted); font-size: 0.9rem; margin: 0; }

.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem 1.5rem; font-size: 0.9rem; margin: 0.5rem 0; }
.footer-links a:hover { color: var(--accent); }

.footer-copy { color: var(--muted); font-size: 0.8rem; margin: 0.5rem 0 0; }
