/* ============================================================
   Stil der Website. Übernimmt das Design-System aus Design/ —
   nichts hier ist neu erfunden, alle Werte stammen aus
   Design/variables.css bzw. Design/DESIGN.md.

   Bewusst nur ein Erscheinungsbild (hell): DESIGN.md legt
   "Theme: light" und eine monochrome Fläche fest. Deshalb keine
   Dunkel-Variante, aber jede Farbe ausdrücklich gesetzt, damit die
   Seite auf jedem Untergrund hält.

   Motiv der Seite: Ubers Standort-Eingabe hat eine senkrechte
   Linie mit gefülltem Kreis (Abholung) und Quadrat (Ziel). Für
   Frachtstrecken ist das kein Zierrat, sondern zeigt genau das,
   worum es geht — von wo nach wo.
   ============================================================ */

:root {
  --jet-black: #000000;
  --paper-white: #ffffff;
  --mist-gray: #f6f6f6;
  --charcoal: #333333;
  --iron-gray: #767676;
  --ash-gray: #afafaf;
  --slate: #5e5e5e;
  --faded-teal: #9dcdd6;

  /* Die Ersatzschriften stehen so in DESIGN.md — kein stiller Rückfall */
  --font-display: 'UberMove', 'Helvetica Neue', system-ui, -apple-system, sans-serif;
  --font-text: 'UberMoveText', system-ui, -apple-system, 'Helvetica Neue', sans-serif;

  --text-caption: 12px;
  --text-body-sm: 14px;
  --text-body: 16px;
  --text-subheading: 18px;
  --text-heading-sm: 24px;
  --text-heading: 36px;
  --text-display: 52px;

  --s4: 4px;   --s8: 8px;   --s12: 12px;  --s16: 16px;
  --s20: 20px; --s24: 24px; --s32: 32px;  --s48: 48px;  --s64: 64px;

  --radius: 8px;
  --radius-pill: 9999px;
  --breite: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-text);
  font-size: var(--text-body);
  line-height: 1.43;
  color: var(--jet-black);
  background: var(--paper-white);
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.huelle { max-width: var(--breite); margin: 0 auto; padding: 0 var(--s24); }

/* ===== Kopfleiste: schwarz, die einzige Umkehrung ist die weiße Pille ===== */
.kopf {
  background: var(--jet-black);
  color: var(--paper-white);
  position: sticky;
  top: 0;
  z-index: 50;
}

.kopf-inner {
  max-width: var(--breite);
  margin: 0 auto;
  padding: var(--s16) var(--s24);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s24);
}

.marke {
  font-family: var(--font-display);
  font-size: var(--text-subheading);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.kopf-nav { display: flex; align-items: center; gap: var(--s24); }

.kopf-nav a {
  font-size: var(--text-body-sm);
  text-decoration: none;
  color: var(--paper-white);
  opacity: 0.85;
}

.kopf-nav a:hover { opacity: 1; }

/* Achtung Spezifitaet: ".kopf-nav a" (0,1,1) schlaegt ".pille" (0,1,0) --
   ohne den zweiten Selektor unten ist die Schrift weiss auf weiss und die
   Pille sieht leer aus. Genau das war im ersten Vorschau-Bild zu sehen. */
.pille,
.kopf-nav a.pille,
.leiste-unten a.pille {
  background: var(--paper-white);
  color: var(--jet-black);
  border-radius: var(--radius-pill);
  padding: 6px var(--s16);
  font-size: var(--text-body-sm);
  text-decoration: none;
  white-space: nowrap;
}

/* ===== Kopfbereich ===== */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--s64);
  align-items: start;
  padding: var(--s64) 0;
}

h1 {
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 400;
  line-height: 1.23;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin-bottom: var(--s16);
}

.hero p.vorspann {
  font-size: var(--text-subheading);
  color: var(--slate);
  max-width: 42ch;
  margin-bottom: var(--s32);
}

/* ===== Strecken-Motiv: Kreis, Linie, Quadrat ===== */
.strecke-motiv {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: var(--s12) var(--s16);
  align-items: center;
}

.motiv-spur {
  grid-row: 1 / span 2;
  justify-self: center;
  align-self: stretch;
  width: 12px;
  position: relative;
}

.motiv-spur::before,
.motiv-spur::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 9px;
  height: 9px;
  background: var(--jet-black);
}

.motiv-spur::before { top: 4px; border-radius: 50%; }
.motiv-spur::after { bottom: 4px; border-radius: 1px; }

.motiv-spur span {
  position: absolute;
  left: 50%;
  top: 13px;
  bottom: 13px;
  width: 1px;
  background: var(--iron-gray);
  transform: translateX(-50%);
}

/* ===== Anfrageformular ===== */
.formular {
  background: var(--mist-gray);
  border-radius: var(--radius);
  padding: var(--s24);
}

.formular h2 { font-size: var(--text-heading-sm); font-weight: 400; margin-bottom: var(--s16);
                font-family: var(--font-display); }

.feld { margin-bottom: var(--s16); }

label {
  display: block;
  font-size: var(--text-body-sm);
  color: var(--slate);
  margin-bottom: var(--s4);
}

input[type=text], input[type=tel], textarea, select {
  width: 100%;
  font-family: var(--font-text);
  font-size: var(--text-body);
  color: var(--jet-black);
  background: var(--paper-white);
  border: 1px solid var(--iron-gray);
  border-radius: var(--radius);
  padding: var(--s16);
}

input::placeholder, textarea::placeholder { color: var(--ash-gray); }

input:focus-visible, textarea:focus-visible, select:focus-visible,
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--jet-black);
  outline-offset: 2px;
}

.knopf {
  display: inline-block;
  background: var(--jet-black);
  color: var(--paper-white);
  border: none;
  border-radius: var(--radius);
  padding: var(--s12) var(--s16);
  font-family: var(--font-text);
  font-size: var(--text-body);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.knopf.breit { width: 100%; }
.knopf:hover { background: var(--charcoal); }

.hinweis { font-size: var(--text-caption); color: var(--iron-gray); line-height: 1.67; }

/* ===== Abschnitte ===== */
section.block { padding: var(--s64) 0; border-top: 1px solid var(--mist-gray); }

h2.abschnitt {
  font-family: var(--font-display);
  font-size: var(--text-heading);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin-bottom: var(--s8);
  text-wrap: balance;
}

p.abschnitt-text { color: var(--slate); max-width: 60ch; margin-bottom: var(--s32); }

/* ===== Karten ===== */
.raster { display: grid; gap: var(--s16); }
.raster.drei { grid-template-columns: repeat(3, 1fr); }
.raster.zwei { grid-template-columns: repeat(2, 1fr); }

.karte {
  background: var(--paper-white);
  border: 1px solid var(--iron-gray);
  border-radius: var(--radius);
  padding: var(--s24);
  text-decoration: none;
  display: block;
}

.karte:hover { border-color: var(--jet-black); }
.karte h3 { font-size: var(--text-subheading); font-weight: 500; margin-bottom: var(--s8); }
.karte p { color: var(--slate); font-size: var(--text-body-sm); }

.karte.wash { background: var(--mist-gray); border-color: transparent; }

/* Streckenliste */
.strecken-liste { display: grid; gap: var(--s8); }

.strecken-zeile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s16);
  padding: var(--s16) var(--s24);
  border: 1px solid var(--iron-gray);
  border-radius: var(--radius);
  text-decoration: none;
  background: var(--paper-white);
}

.strecken-zeile:hover { border-color: var(--jet-black); }
.strecken-zeile b { font-weight: 500; }

.zahlen {
  font-size: var(--text-body-sm);
  color: var(--slate);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ===== Kennzahlen einer Strecke ===== */
.kennzahlen {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s16);
  margin-bottom: var(--s32);
}

.kennzahl {
  border: 1px solid var(--iron-gray);
  border-radius: var(--radius);
  padding: var(--s20);
}

.kennzahl dt { font-size: var(--text-caption); color: var(--iron-gray);
               text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--s4); }
.kennzahl dd { font-size: var(--text-heading-sm); font-family: var(--font-display);
               font-variant-numeric: tabular-nums; }

/* Der einzige Farbakzent im ganzen System, sparsam eingesetzt */
.kennzahl:first-child { box-shadow: inset 3px 0 0 var(--faded-teal); }

/* ===== Brotkrumen ===== */
.krumen { padding: var(--s24) 0 0; font-size: var(--text-body-sm); color: var(--iron-gray); }
.krumen a { text-decoration: none; }
.krumen a:hover { text-decoration: underline; }

/* ===== Fußbereich: schwarz ===== */
.fuss {
  background: var(--jet-black);
  color: var(--paper-white);
  padding: var(--s48) 0;
  margin-top: var(--s64);
}

.fuss-inner {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 var(--s24);
  display: flex;
  justify-content: space-between;
  gap: var(--s32);
  flex-wrap: wrap;
}

.fuss a { color: var(--paper-white); }
.fuss .klein { font-size: var(--text-body-sm); color: var(--ash-gray); line-height: 1.5; }

/* ===== Klebende Leiste unten: die dauerhafte Handlungsaufforderung =====
   Im Design-System ausdrücklich als Merkmal beschrieben. */
.leiste-unten {
  position: sticky;
  bottom: 0;
  background: var(--jet-black);
  color: var(--paper-white);
  padding: var(--s12) var(--s24);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s16);
  font-size: var(--text-body-sm);
}

.leiste-unten .pille { padding: var(--s8) var(--s20); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: var(--s32); padding: var(--s32) 0; }
  h1 { font-size: var(--text-heading); }
  .raster.drei, .raster.zwei, .kennzahlen { grid-template-columns: 1fr; }
  .kopf-nav a { display: none; }
  section.block { padding: var(--s32) 0; }
}
