/* =====================================================================
   SECA Transport Solutions – Stylesheet
   Design: Swiss Modernism 2.0 / minimalistisch, clean, B2B
   Schrift: Inter (Google Fonts)
   ---------------------------------------------------------------------
   FARBEN: Alle Farben sind als CSS-Variablen in :root definiert.
   Wenn du später Farben anpassen willst, ändere sie nur HIER.
   ===================================================================== */

/* ---------- 1. Design-Tokens / Variablen ---------- */
:root {
  /* Markenfarben */
  --accent:        #5170FF;   /* Primär/Akzent (aus dem Logo) */
  --accent-dark:   #3a55e0;   /* Hover-Zustand für Akzent */
  --accent-soft:   #eef1ff;   /* sehr helles Akzent-Tönung (Icon-Hintergründe) */

  /* Neutrale Farben */
  --white:         #ffffff;
  --text:          #111111;   /* Überschriften / Text-Schwarz */
  --muted:         #5a6072;   /* grauer Fließtext */
  --bg-soft:       #f8f8f8;   /* helle Sektions-Hintergründe */
  --border:        #e8eaf0;   /* dezente Trennlinien / Karten-Rahmen */
  --border-strong: #d7dae6;

  /* Typografie */
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Abstands-Skala (8px-Basis) */
  --space-1: 0.5rem;   /*  8px */
  --space-2: 1rem;     /* 16px */
  --space-3: 1.5rem;   /* 24px */
  --space-4: 2rem;     /* 32px */
  --space-5: 3rem;     /* 48px */
  --space-6: 4rem;     /* 64px */
  --space-7: 6rem;     /* 96px */

  /* Layout */
  --container: 1180px;
  --radius:    14px;
  --radius-sm: 10px;

  /* Effekte */
  --shadow-sm: 0 1px 2px rgba(17, 17, 17, 0.04);
  --shadow-md: 0 10px 30px -12px rgba(17, 17, 17, 0.12);
  --shadow-accent: 0 12px 28px -10px rgba(81, 112, 255, 0.45);
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);

  --header-h: 104px;   /* Header-Höhe, abgestimmt auf das größere Logo */
}

/* ---------- 2. Reset / Basis ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px); /* Ankerlinks unter Sticky-Header */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;          /* 17px */
  line-height: 1.65;
  color: var(--muted);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;            /* kein horizontales Scrollen */
}

h1, h2, h3, h4 {
  margin: 0 0 var(--space-2);
  color: var(--text);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
}

p { margin: 0 0 var(--space-2); }

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dark); }

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

ul { margin: 0; padding: 0; list-style: none; }

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

/* ---------- 3. Layout-Helfer ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

.section {
  padding-block: var(--space-7);
}
.section--soft { background: var(--bg-soft); }

.section-head {
  max-width: 680px;
  margin-bottom: var(--space-5);
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-2);
}

.section-title {
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.5rem);
  font-weight: 800;
}

.section-lead {
  font-size: 1.125rem;
  color: var(--muted);
  margin-bottom: 0;
}

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.95rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              transform var(--transition), box-shadow var(--transition),
              border-color var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--accent);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--accent-dark);
  color: var(--white);
  box-shadow: var(--shadow-accent);
}

.btn--ghost {
  background: var(--white);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.btn--lg { padding: 1.1rem 1.9rem; font-size: 1.0625rem; }
.btn .btn__icon { width: 18px; height: 18px; }

/* ---------- 5. Header / Navigation ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

/* Logo im Header – bewusst groß/gut sichtbar */
.nav__logo { display: inline-flex; align-items: center; }
.nav__logo img {
  height: 78px;          /* Desktop; bei Bedarf hier anpassen */
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.nav__link {
  color: var(--text);
  font-weight: 500;
  font-size: 0.975rem;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}
.nav__link:hover { color: var(--accent); background: var(--accent-soft); }

.nav__actions { display: flex; align-items: center; gap: var(--space-2); }

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 3rem + 8vw, 8rem);
  background:
    radial-gradient(60% 80% at 85% 10%, rgba(81, 112, 255, 0.07), transparent 60%),
    var(--white);
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-3);
}
.hero__badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.hero h1 {
  font-size: clamp(2.5rem, 1.6rem + 4.5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.hero h1 .accent { color: var(--accent); }
.hero__lead {
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.4rem);
  color: var(--muted);
  max-width: 560px;
  margin-bottom: var(--space-4);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* Abstrakte Routen-/Pfeillinie (dezentes Grafik-Element passend zum Logo-Chevron) */
.hero__graphic {
  position: absolute;
  top: 50%;
  /* nach innen gerückt, damit die Chevron-Pfeilspitze komplett sichtbar bleibt */
  right: clamp(1.5rem, 3vw, 4rem);
  transform: translateY(-50%);
  width: min(42%, 560px);
  z-index: 1;
  pointer-events: none;
  opacity: 1;
}
.hero__graphic .route-dash {
  stroke-dasharray: 10 12;
  animation: routeMove 2.4s linear infinite;
}
@keyframes routeMove { to { stroke-dashoffset: -44; } }

/* ----- Optionaler Platz für ein echtes Foto eures Transporters -----
   Der folgende Platzhalter ist im HTML auskommentiert. Sobald ein
   eigenes Foto vorliegt, dort einsetzen. Diese Klasse stylt es passend. */
.hero__photo {
  margin-top: var(--space-5);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

/* ---------- 7. Karten-Raster (Vorteile / Leistungen) ---------- */
.grid {
  display: grid;
  gap: var(--space-3);
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  transition: transform var(--transition), box-shadow var(--transition),
              border-color var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: var(--space-3);
}
.card__icon svg { width: 26px; height: 26px; }

.card__title {
  font-size: 1.1875rem;
  font-weight: 700;
  margin-bottom: var(--space-1);
}
.card__text { margin-bottom: 0; font-size: 1rem; }

/* ---------- 8. Über uns ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-6);
  align-items: center;
}
.about__lead {
  font-size: 1.25rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.5;
}
.about__text p:last-child { margin-bottom: 0; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.stat {
  padding: var(--space-3) var(--space-2);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
}
.stat__num {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  white-space: nowrap;        /* "3,5 t" / "1:1" nie umbrechen */
  margin-bottom: 0.15rem;
}
.stat__label {
  display: block;
  font-size: 0.8rem;
  line-height: 1.3;
  color: var(--muted);
  white-space: nowrap;        /* Label einzeilig halten */
}

/* ---------- 9. Ablauf (Steps) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); counter-reset: step; }
.step { position: relative; }
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--white);
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: var(--space-3);
  box-shadow: var(--shadow-accent);
}
.step__title { font-size: 1.125rem; font-weight: 700; margin-bottom: var(--space-1); }
.step__text { font-size: 1rem; margin-bottom: 0; }
/* dezente Verbindungslinie zwischen Schritten (Desktop) */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 24px;
  left: 64px;
  right: -12px;
  height: 2px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
}

/* ---------- 10. Kontakt ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr;
  gap: var(--space-5);
  align-items: start;
}

.form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.field { margin-bottom: var(--space-2); }
.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.field label .req { color: var(--accent); }
.field input,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field input::placeholder,
.field textarea::placeholder { color: #aab0c0; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 120px; }

.form__note { font-size: 0.85rem; color: var(--muted); margin: var(--space-1) 0 var(--space-3); }
.form__submit { width: 100%; }

/* Erfolgs-/Statusmeldung des Formulars */
.form__status {
  display: none;
  margin-top: var(--space-2);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
}
.form__status.is-visible { display: block; }
.form__status.is-success {
  background: var(--accent-soft);
  color: var(--accent-dark);
  border: 1px solid #c9d2ff;
}
.form__status.is-error {
  background: #fff1f1;
  color: #c0341d;
  border: 1px solid #ffd5d0;
}

/* Kontakt-Infokarte */
.contact-info {
  background: var(--text);
  color: rgba(255, 255, 255, 0.78);
  border-radius: var(--radius);
  padding: var(--space-4);
}
.contact-info h3 { color: var(--white); font-size: 1.25rem; }
.contact-info__item {
  display: flex;
  gap: var(--space-2);
  padding-block: var(--space-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.contact-info__item:last-child { border-bottom: none; }
.contact-info__item svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.contact-info__item strong { display: block; color: var(--white); font-weight: 600; }
.contact-info__item a { color: rgba(255, 255, 255, 0.85); }
.contact-info__item a:hover { color: var(--white); }

/* ---------- 11. Abschluss-CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent), #6f86ff);
  color: var(--white);
  border-radius: var(--radius);
  padding: clamp(2.5rem, 2rem + 4vw, 4.5rem);
  text-align: center;
}
.cta::after {  /* dezenter Chevron-Schatten im Hintergrund */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 120% at 100% 0%, rgba(255,255,255,0.18), transparent 60%);
  pointer-events: none;
}
.cta h2 { color: var(--white); position: relative; font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.6rem); }
.cta p { color: rgba(255, 255, 255, 0.9); position: relative; max-width: 560px; margin-inline: auto; font-size: 1.15rem; }
.cta__actions { position: relative; display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; margin-top: var(--space-4); }
.cta .btn--primary { background: var(--white); color: var(--accent); }
.cta .btn--primary:hover { background: #f0f3ff; color: var(--accent-dark); box-shadow: 0 12px 28px -10px rgba(0,0,0,0.35); }
.cta .btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.cta .btn--ghost:hover { background: rgba(255,255,255,0.12); color: var(--white); border-color: var(--white); }

/* ---------- 12. Footer ---------- */
.footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding-block: var(--space-6) var(--space-4);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-5);
}
.footer__logo img { height: 60px; width: auto; margin-bottom: var(--space-2); }
.footer__claim { max-width: 320px; font-size: 0.975rem; }
.footer__col h4 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 600;
}
.footer__col ul li { margin-bottom: 0.6rem; }
.footer__col a { color: var(--text); font-size: 0.975rem; font-weight: 500; }
.footer__col a:hover { color: var(--accent); }
.footer__col address { font-style: normal; font-size: 0.975rem; line-height: 1.8; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted);
}
.footer__legal { display: flex; gap: var(--space-3); }
.footer__legal a { color: var(--muted); }
.footer__legal a:hover { color: var(--accent); }

/* ---------- 13. Rechts-Seiten (Impressum / Datenschutz) ---------- */
.legal {
  padding-block: var(--space-6);
}
.legal__inner { max-width: 800px; }
.legal h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); font-weight: 800; margin-bottom: var(--space-2); }
.legal h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
  padding-top: var(--space-2);
}
.legal h3 { font-size: 1.1rem; font-weight: 700; margin-top: var(--space-3); }
.legal p, .legal li { color: var(--muted); }
.legal ul { list-style: disc; padding-left: 1.25rem; margin-bottom: var(--space-2); }
.legal ul li { margin-bottom: 0.4rem; }
.legal .back-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; margin-bottom: var(--space-4);
}
.legal__updated { font-size: 0.9rem; color: var(--muted); margin-top: var(--space-5); padding-top: var(--space-3); border-top: 1px solid var(--border); }

/* ---------- 14. Scroll-Reveal (IntersectionObserver) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* gestaffelte Verzögerung für Kinder-Elemente */
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }
.reveal[data-delay="5"] { transition-delay: 400ms; }

/* ---------- 15. Responsive ---------- */
@media (max-width: 980px) {
  .about__grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .contact__grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:not(:last-child)::after { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-4); }
  .hero__graphic { display: none; }
}

@media (max-width: 760px) {
  :root { --header-h: 84px; }   /* Header auf Mobil etwas niedriger */
  .section { padding-block: var(--space-6); }

  /* Logo auf Mobil etwas kleiner, aber weiterhin gut sichtbar */
  .nav__logo img { height: 58px; }

  /* Mobile-Navigation */
  .nav__links {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: var(--space-2);
    transform: translateY(-130%);
    transition: transform var(--transition);
    visibility: hidden;
  }
  .nav__links.is-open { transform: translateY(0); visibility: visible; }
  .nav__link { padding: 0.85rem 1rem; border-radius: 10px; font-size: 1.05rem; }

  .nav__toggle { display: flex; }
  .nav__cta { display: none; }            /* Header-Button auf sehr kleinen Screens ausblenden */

  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
}

/* ---------- 16. Reduzierte Bewegung respektieren ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
