/* ==========================================================================
   SFS Transporte — Design tokens & base styles
   ========================================================================== */

:root {
  --ink: #201b18;
  --paper: #faf6f0;
  --paper-2: #f1e7da;
  --brick: #c6272b;
  --brick-2: #a31f22;
  --bordeaux: #6e1524;
  --bordeaux-2: #57101c;
  --blue: #2e4f92;
  --green: #5d9b3b;
  --tire: #1b1b1b;
  --line: rgba(32, 27, 24, 0.12);

  --font-display: "Barlow Semi Condensed", -apple-system, sans-serif;
  --font-body: "Work Sans", -apple-system, sans-serif;

  --radius: 14px;
  --shadow: 0 20px 45px -25px rgba(32, 27, 24, 0.35);
  --container: 1120px;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  margin: 0 0 0.5em;
  text-wrap: balance;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 4vw + 1rem, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 2.4vw + 1rem, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.container {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}

section { padding: clamp(48px, 8vw, 96px) 0; }
.section-tight { padding: clamp(32px, 5vw, 56px) 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: 0.6em;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--brick);
  color: var(--paper);
  box-shadow: 0 10px 24px -10px rgba(198, 39, 43, 0.55);
}
.btn-primary:hover { background: var(--brick-2); }

.btn-secondary {
  background: transparent;
  color: var(--bordeaux);
  border-color: var(--bordeaux);
}
.btn-secondary:hover { background: var(--bordeaux); color: var(--paper); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding-inline: 4px;
  text-decoration: underline;
  text-decoration-color: var(--brick);
  text-underline-offset: 4px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(0px);
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  border-color: var(--line);
  backdrop-filter: blur(10px) saturate(1.4);
  box-shadow: 0 12px 30px -22px rgba(32, 27, 24, 0.4);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 14px;
}
.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
}
.brand-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  color: var(--bordeaux);
}
.brand-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--brick);
  margin-top: 2px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  font-weight: 600;
  font-size: 0.95rem;
}
.main-nav a {
  text-decoration: none;
  padding-block: 6px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  border-bottom-color: var(--brick);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
}
.phone-pill .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(93, 155, 59, 0.18);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
}

@media (max-width: 860px) {
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 24px 18px; }
  .main-nav a { display: block; padding: 12px 0; }
  .nav-toggle { display: block; }
  .phone-pill span.label { display: none; }
}

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

.hero {
  position: relative;
  padding: clamp(64px, 11vw, 132px) 0 clamp(48px, 7vw, 84px);
  overflow: clip;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 130%;
  background:
    radial-gradient(60% 55% at 82% 10%, color-mix(in srgb, var(--brick) 20%, transparent), transparent 70%),
    radial-gradient(45% 50% at 8% 30%, color-mix(in srgb, var(--bordeaux) 16%, transparent), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.hero .container {
  display: grid;
  gap: 22px;
  max-width: 780px;
}
.hero h1 { font-size: clamp(2.6rem, 5vw + 1rem, 4.2rem); }
.hero p.lede {
  font-size: clamp(1.05rem, 1vw + 0.9rem, 1.25rem);
  color: color-mix(in srgb, var(--ink) 78%, transparent);
  max-width: 56ch;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
}

/* USP tiles ------------------------------------------------------------ */

.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tile-grid { grid-template-columns: 1fr; } }

.tile {
  background: var(--paper-2);
  border-radius: var(--radius);
  padding: 24px 22px;
}
.tile h3 { margin-bottom: 6px; font-size: 1.1rem; }
.tile p { font-size: 0.94rem; color: color-mix(in srgb, var(--ink) 75%, transparent); margin: 0; }
.tile-swatch {
  width: 34px; height: 34px;
  border-radius: 9px;
  margin-bottom: 14px;
  background: var(--brick);
}
.tile:nth-child(2) .tile-swatch { background: var(--blue); }
.tile:nth-child(3) .tile-swatch { background: var(--bordeaux); }
.tile:nth-child(4) .tile-swatch { background: var(--green); }

/* Audience split --------------------------------------------------------- */

.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 760px) { .audience-grid { grid-template-columns: 1fr; } }

.audience-card {
  border-radius: 18px;
  padding: 32px 28px;
  color: var(--paper);
}
.audience-card.for-spedition { background: var(--bordeaux); }
.audience-card.for-firmenkunde { background: var(--ink); }
.audience-card h3 { color: var(--paper); font-size: 1.4rem; }
.audience-card p { color: color-mix(in srgb, var(--paper) 85%, transparent); }
.audience-card .btn-secondary { color: var(--paper); border-color: color-mix(in srgb, var(--paper) 55%, transparent); }
.audience-card .btn-secondary:hover { background: var(--paper); color: var(--ink); }

/* Cards / generic surfaces ------------------------------------------------ */

.card {
  background: var(--paper-2);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 700px) { .card-grid { grid-template-columns: 1fr; } }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 760px) { .values-grid { grid-template-columns: 1fr; } }
.value-item {
  padding: 22px 20px;
  border-left: 3px solid var(--brick);
  background: var(--paper-2);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Photo placeholder ------------------------------------------------------- */

.photo-placeholder {
  border: 1.5px dashed color-mix(in srgb, var(--bordeaux) 45%, transparent);
  border-radius: var(--radius);
  background: var(--paper-2);
  aspect-ratio: 16 / 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: color-mix(in srgb, var(--ink) 55%, transparent);
}
.photo-placeholder span { font-size: 2rem; opacity: 0.7; }
.photo-placeholder p { margin: 0; font-weight: 600; font-size: 0.95rem; }

/* Bands ------------------------------------------------------------------ */

.band {
  background: var(--bordeaux);
  color: var(--paper);
}
.band h2 { color: var(--paper); }
.band p { color: color-mix(in srgb, var(--paper) 85%, transparent); }
.band-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Forms -------------------------------------------------------------- */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--ink) 80%, transparent);
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--brick);
  outline-offset: 1px;
}
.field textarea { resize: vertical; min-height: 110px; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }

.form-note {
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--ink) 65%, transparent);
  margin-top: 10px;
}

.alert {
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 24px;
  font-weight: 600;
}
.alert-success { background: color-mix(in srgb, var(--green) 18%, var(--paper)); color: var(--bordeaux-2); }
.alert-error { background: color-mix(in srgb, var(--brick) 15%, var(--paper)); color: var(--brick-2); }

/* Contact info block ------------------------------------------------- */

.contact-info {
  display: grid;
  gap: 14px;
}
.contact-info dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--brick);
}
.contact-info dd { margin: 2px 0 0; }

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

.site-footer {
  background: var(--ink);
  color: var(--paper-2);
  padding: 48px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  color: var(--paper);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.site-footer a { text-decoration: none; color: color-mix(in srgb, var(--paper-2) 88%, transparent); }
.site-footer a:hover { color: var(--paper); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(250, 246, 240, 0.12);
  font-size: 0.82rem;
  color: color-mix(in srgb, var(--paper-2) 65%, transparent);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
}

/* Legal pages ---------------------------------------------------------- */

.legal-content h2 { margin-top: 1.6em; font-size: 1.25rem; }
.legal-content { max-width: 760px; }

/* Scroll reveal ---------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(.16,.8,.28,1), transform 0.7s cubic-bezier(.16,.8,.28,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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