/* Streamline Transport & Logistics – Landingpage.
   Farben und Schriften stammen aus der Streamline-App (app/globals.css, DESIGN.md):
   Navy als Fläche, Gold nur für Linien, Kanten und Markierungen; Text in Gold nutzt --gold-ink. */

@font-face {
  font-family: "Jost";
  src: url("fonts/jost-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f4f3f0;
  --card: #ffffff;
  --ink: #0b1a2d;
  --ink-soft: #4a5566;
  --navy: #0a2952;
  --navy-deep: #081f3f;
  --navy-line: #183d68;
  --navy-fg: #e8ecf2;
  --navy-muted: #9fb0c6;
  --gold: #a17f59;
  --gold-ink: #7c5e36;
  --gold-light: #bf996e;
  --line: #e5e3dc;
  --field: #938a76;
  --success: #126851;
  --danger: #8e1d15;

  --font-display: "Jost", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 500; line-height: 1.12; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }

:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  padding: 10px 16px; background: var(--gold-light); color: var(--navy);
  font-weight: 600; text-decoration: none; border-radius: 6px;
}
.skip:focus { top: 12px; }

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  font: 600 1rem/1 var(--font-body);
  text-decoration: none; border-radius: 6px; border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn-gold { background: var(--gold-light); color: var(--navy); }
.btn-gold:hover { background: #cfac84; }
.btn-ghost { color: var(--navy-fg); border-color: var(--navy-line); }
.btn-ghost:hover { border-color: var(--gold-light); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: #143761; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ── Header ────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--navy);
  border-bottom: 1px solid var(--navy-line);
  color: var(--navy-fg);
}
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display); font-weight: 500; font-size: 1.1875rem;
  letter-spacing: .14em; text-transform: uppercase; color: #fff;
}
.brand-sub { margin-top: 5px; font-size: .75rem; letter-spacing: .04em; color: var(--navy-muted); }

.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list a {
  display: block; padding: 10px 14px; font-size: .9375rem; font-weight: 500;
  color: var(--navy-fg); text-decoration: none; border-radius: 6px;
}
.nav-list a:hover { color: #fff; background: #143761; }
.nav-list .nav-cta { margin-left: 8px; background: var(--gold-light); color: var(--navy); font-weight: 600; }
.nav-list .nav-cta:hover { background: #cfac84; color: var(--navy); }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  background: none; border: 1px solid var(--navy-line); border-radius: 6px; cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; margin-inline: auto;
  background: var(--navy-fg); transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 880px) {
  .js .nav-toggle { display: block; }
  .js .nav-list {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--navy); border-bottom: 1px solid var(--navy-line);
    display: none;
  }
  .js .nav-list.is-open { display: flex; }
  .nav-list a { padding: 14px 4px; border-bottom: 1px solid var(--navy-line); border-radius: 0; }
  .nav-list .nav-cta { margin: 16px 0 0; text-align: center; border-radius: 6px; border: 0; }
  html:not(.js) .nav-list { flex-wrap: wrap; }
}

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--navy-fg);
  padding-top: clamp(48px, 8vw, 104px);
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(32px, 6vw, 80px); align-items: center;
}
.hero-place { color: var(--gold-light); font-size: .9375rem; font-weight: 500; }
.hero h1 {
  margin-top: 20px;
  font-size: clamp(2.5rem, 5.6vw, 4.5rem);
  font-weight: 400; letter-spacing: -.01em; line-height: 1.04;
  color: #fff; max-width: 14ch;
}
.hero-lead { margin-top: 28px; max-width: 46ch; font-size: 1.1875rem; color: var(--navy-fg); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

.hero-route { margin: 0; justify-self: end; width: 100%; max-width: 420px; }
.route { width: 100%; height: auto; overflow: visible; }
.route path, .route circle { fill: none; stroke-linejoin: miter; }
.route-lane { stroke: var(--navy-line); stroke-width: 34; }
.route-line { stroke: var(--gold-light); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 0; }
.route-dash { stroke: var(--navy-muted); stroke-width: 3; stroke-dasharray: 10 12; opacity: .55; }
.route .route-arrow { fill: var(--gold-light); stroke: none; }
.route .route-stop { fill: var(--navy); stroke: var(--gold-light); stroke-width: 3; }
.route .route-stop-end { fill: var(--gold-light); }
.route-label { fill: var(--navy-muted); font: 500 15px var(--font-body); }
.route-caption {
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--navy-line);
  font-family: var(--font-display); font-size: 1.25rem; color: #fff;
}

/* Einmaliger Moment beim Laden: die Route zeichnet sich vom Abholpunkt zur Zustellung. */
@media (prefers-reduced-motion: no-preference) {
  .js .route-line { stroke-dashoffset: 1; animation: draw 2.2s .3s var(--ease) forwards; }
  .js .route-arrow, .js .route-stop-end { opacity: 0; animation: appear .5s forwards; }
  .js .route-arrow-1 { animation-delay: 1s; }
  .js .route-arrow-2 { animation-delay: 1.6s; }
  .js .route-stop-end { animation-delay: 2.3s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

.hero-facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(56px, 8vw, 96px);
  border-top: 1px solid var(--navy-line);
}
.hero-facts li {
  padding: 28px 24px 36px 0;
  font-size: .9375rem; color: var(--navy-muted);
}
.hero-facts li + li { padding-left: 24px; border-left: 1px solid var(--navy-line); }
.hero-facts strong {
  display: block; margin-bottom: 6px;
  font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; color: #fff;
}

/* ── Sections ──────────────────────────────────────────── */
.section { padding-block: var(--section); }
.section-tint { background: var(--card); border-block: 1px solid var(--line); }
.section-navy { background: var(--navy); color: var(--navy-fg); }
.section-navy h2, .section-navy h3 { color: #fff; }

.section-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 64px; align-items: end;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head h2, .fleet h2, .area h2, .faq h2, .trust h2, .contact h2 {
  font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -.005em; max-width: 18ch;
}
.section-head p { max-width: 48ch; color: var(--ink-soft); }

/* Leistungen: ein Raster aus Linien, keine Karten. Die Goldkante markiert die Zeile. */
.services {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.service {
  padding: 32px 32px 40px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.service:not(:nth-child(3n + 1)) { padding-left: 32px; border-left: 1px solid var(--line); }
.service::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 40px; height: 2px; background: var(--gold);
}
.service:not(:nth-child(3n + 1))::before { left: 32px; }
.service h3 { font-size: 1.4375rem; }
.service p { margin-top: 12px; color: var(--ink-soft); max-width: 36ch; }

/* Flotten */
.fleet { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 96px); }
.fleet-copy p { margin-top: 20px; max-width: 44ch; color: var(--ink-soft); }
.fleet-copy .btn { margin-top: 32px; }
.fleet-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; align-content: start; }
.fleet-list div { padding: 24px 0; border-top: 1px solid var(--line); }
.fleet-list dt { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; }
.fleet-list dd { margin-top: 6px; color: var(--ink-soft); }

/* Branchen */
.sectors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 48px; }
.sectors li { padding-left: 20px; border-left: 2px solid var(--gold); }
.sectors h3 { font-size: 1.25rem; }
.sectors p { margin-top: 8px; color: var(--ink-soft); font-size: 1rem; }

/* Vertrauen */
.trust { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 96px); }
.trust-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 48px; }
.trust-list li { padding-top: 20px; border-top: 1px solid var(--gold-light); }
.trust-list h3 { font-size: 1.3125rem; }
.trust-list p { margin-top: 10px; color: var(--navy-muted); }

/* Ablauf: echte Reihenfolge, deshalb nummeriert. */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: step; position: relative; }
.steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 20px);
}
.steps li { position: relative; padding-right: 32px; counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 24px;
  position: relative;
  font: 500 1.25rem/1 var(--font-display);
  color: #fff; background: var(--navy); border-radius: 50%;
  box-shadow: 0 0 0 6px var(--paper);
}
.steps h3 { font-size: 1.3125rem; }
.steps p { margin-top: 8px; color: var(--ink-soft); }

/* Einsatzgebiet */
.area { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 96px); align-items: center; }
.area p { margin-top: 20px; max-width: 46ch; color: var(--ink-soft); }
.area-rings { position: relative; width: min(100%, 420px); aspect-ratio: 1; justify-self: center; }
.ring {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  border-radius: 50%; display: flex; justify-content: center;
}
.ring span { font-size: .875rem; font-weight: 600; padding-top: 14px; }
.ring-de { width: 100%; height: 100%; border: 1px dashed var(--field); color: var(--gold-ink); }
.ring-by { width: 64%; height: 64%; border: 1px solid var(--gold); color: var(--gold-ink); background: #faf8f4; }
.ring-muc {
  width: 32%; height: 32%; background: var(--navy); color: #fff;
  align-items: center;
}
.ring-muc span { padding: 0; font-family: var(--font-display); font-weight: 500; font-size: 1.0625rem; }

/* Fragen */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 7vw, 96px); }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  rotate: 45deg; translate: 0 -3px; transition: rotate .25s var(--ease), translate .25s var(--ease);
}
.faq details[open] summary::after { rotate: 225deg; translate: 0 3px; }
.faq details p { padding: 0 48px 24px 0; color: var(--ink-soft); max-width: 62ch; }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 96px); }
.contact-copy p { margin-top: 20px; max-width: 40ch; color: var(--navy-muted); }
.contact-address {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--navy-line);
  font-style: normal; line-height: 1.7; color: var(--navy-fg);
}
.contact-address strong { color: #fff; font-weight: 600; }

.form {
  display: grid; gap: 20px;
  padding: clamp(24px, 4vw, 40px);
  background: var(--card); color: var(--ink);
  border-radius: 10px; border-top: 3px solid var(--gold-light);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: .875rem; font-weight: 600; }
.field em, .consent em { font-style: normal; color: var(--gold-ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--field); border-radius: 6px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 132px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(10, 41, 82, .15);
}
.field [aria-invalid="true"] { border-color: var(--danger); }
.field textarea::placeholder { color: #8a8478; }

.consent { display: grid; grid-template-columns: 20px 1fr; gap: 12px; font-size: .875rem; color: var(--ink-soft); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); }
.consent a { color: var(--navy); }

/* Honeypot: aus dem Sichtfeld, aber nicht display:none, damit Bots es ausfüllen. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-status { font-size: .9375rem; font-weight: 500; }
.form-status.is-ok { color: var(--success); }
.form-status.is-error { color: var(--danger); }

/* Footer */
.site-footer { background: var(--navy-deep); color: var(--navy-muted); font-size: .9375rem; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 32px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--navy-fg); font-weight: 500; }
.footer-nav { display: flex; gap: 24px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-grid, .section-head, .fleet, .trust, .area, .faq, .contact-grid { grid-template-columns: 1fr; }
  .hero-route { justify-self: start; max-width: 320px; }
  .services, .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service, .service:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; padding-right: 24px; }
  .service:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--line); }
  .service::before, .service:not(:nth-child(3n + 1))::before { left: 0; }
  .service:nth-child(2n)::before { left: 24px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 0; }
  .steps::before { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts li, .hero-facts li + li { padding: 20px 0; border-left: 0; }
  .hero-facts li + li { border-top: 1px solid var(--navy-line); }
  .hero-route { max-width: 260px; }
  .services, .sectors, .fleet-list, .trust-list, .steps, .form-row { grid-template-columns: 1fr; }
  .service, .service:nth-child(2n), .service:not(:nth-child(3n + 1)) { padding: 28px 0 32px; border-left: 0; }
  .service::before, .service:nth-child(2n)::before, .service:not(:nth-child(3n + 1))::before { left: 0; }
  .faq details p { padding-right: 0; }
}

/* ── Rechtsseiten ──────────────────────────────────────── */
.legal { padding-block: clamp(48px, 8vw, 96px); }
.legal-body { max-width: 68ch; }
.legal h1 { font-size: clamp(2.25rem, 4vw, 3rem); margin-bottom: 32px; }
.legal h2 { font-size: 1.375rem; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 20px; margin-top: 8px; }
.legal .todo { background: #f7ecd9; color: var(--gold-ink); padding: 0 4px; border-radius: 3px; font-weight: 600; }
.legal-back { display: inline-block; margin-bottom: 32px; color: var(--navy); font-weight: 600; }
