@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0d3371;
  --navy-deep: #071b3d;
  --navy-line: #1d3f7a;
  /* Markenrot: nur für Flächen, Balken und große Schrift auf Dunkel */
  --red: #ed1b24;
  /* Rot für Buttonflächen mit weißer Schrift (WCAG-AA 5.2:1) */
  --red-btn: #d8141e;
  /* Rot für kleine Schrift auf hellem Grund (WCAG-AA 5.2:1) */
  --red-ink: #c81119;
  --red-dark: #b5121a;
  --paper: #fafaf9;
  --paper-2: #f1efec;
  --ink: #14202b;
  --ink-soft: #4a5663;
  --white: #ffffff;
  --shear: -16.7deg;
  --wrap: 1180px;
  /* Header: groß beim Seitenaufruf, schrumpft beim Scrollen (siehe .hdr[data-scrolled]).
     --hdr-h steuert zugleich Nav-Overlay und Scroll-Offset. */
  --hdr-h: 9.5rem;
  --logo-h: 125px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --step: clamp(4rem, 9vw, 7rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  /* Sprungziele: Header ist beim Ankersprung immer im geschrumpften Zustand */
  scroll-padding-top: 5.75rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--red);
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
}
.skip:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

/* --- Schräg-Motiv (Logo-Winkel) --- */
.shear {
  display: inline-block;
  transform: skewX(var(--shear));
}
.shear > * {
  display: inline-block;
  transform: skewX(calc(var(--shear) * -1));
}

.stripes {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    73.3deg,
    rgba(255, 255, 255, 0.05) 0 2px,
    transparent 2px 26px
  );
  pointer-events: none;
}

/* --- Buttons --- */
.btn {
  --btn-bg: var(--red-btn);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--btn-fg);
  background: transparent;
  border: 0;
  cursor: pointer;
  isolation: isolate;
  transition: transform 0.25s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-bg);
  transform: skewX(var(--shear));
  transition: background 0.25s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:hover::before {
  background: var(--red-dark);
}
.btn--ghost {
  --btn-fg: #fff;
}
.btn--ghost::before {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.45);
}
.btn--ghost:hover::before {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}
.btn--navy {
  --btn-bg: var(--navy);
}
.btn--navy:hover::before {
  background: var(--navy-deep);
}

/* --- Header --- */
.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-deep);
  border-bottom: 1px solid var(--navy-line);
}
/* Beim Scrollen schrumpfen Header und Logo (data-scrolled setzt js/main.js) */
/* Gescrollt bleibt der Header schlank, sonst frisst er dauerhaft die Sichtfläche */
.hdr[data-scrolled="true"] {
  --hdr-h: 5.75rem;
  --logo-h: 66px;
}
.hdr__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--hdr-h);
  transition: min-height 0.3s var(--ease);
}
.hdr__logo {
  display: block;
  flex-shrink: 0;
  line-height: 0;
}
.hdr__logo img {
  /* Kleiner als 56px wird die Zeile „SPEDITION" im Logo unlesbar */
  height: var(--logo-h);
  width: auto;
  transition: height 0.3s var(--ease);
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
}
.nav a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav a:hover {
  color: #fff;
  border-bottom-color: var(--red);
}
.nav .btn {
  padding: 0.7rem 1.25rem;
  font-size: 0.8125rem;
  border-bottom: 0;
}
.nav .btn:hover {
  border-bottom-color: transparent;
}
.burger {
  display: none;
  flex-shrink: 0; /* darf neben dem großen Logo nicht zusammengedrückt werden */
  background: none;
  border: 0;
  color: #fff;
  padding: 0.6rem;
  cursor: pointer;
  font: inherit;
}
.burger svg {
  display: block;
  width: 26px;
  height: 26px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
}

/* --- Hero --- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
  color: #fff;
  padding-block: clamp(4rem, 11vw, 8rem) clamp(4rem, 9vw, 6.5rem);
}
.hero__band {
  position: absolute;
  top: -12%;
  bottom: -12%;
  width: 46vw;
  transform: skewX(var(--shear));
  pointer-events: none;
}
.hero__band--red {
  right: -6vw;
  background: linear-gradient(180deg, rgba(237, 27, 36, 0.95), rgba(181, 18, 26, 0.75));
  opacity: 0.9;
}
.hero__band--navy {
  right: 26vw;
  width: 20vw;
  background: var(--navy);
  opacity: 0.85;
}
/* Scrim: hält den Text immer auf dunklem Grund, egal wo die Bänder liegen */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    92deg,
    var(--navy-deep) 0%,
    rgba(7, 27, 61, 0.97) 38%,
    rgba(7, 27, 61, 0.82) 58%,
    rgba(7, 27, 61, 0.1) 82%,
    rgba(7, 27, 61, 0) 100%
  );
}
.hero__in {
  position: relative;
  z-index: 2;
  /* breit genug, dass „& Expresszustellungen" auf Desktop in eine Zeile passt */
  max-width: 54rem;
}
.hero h1 {
  font-size: clamp(1.6rem, 4.6vw, 3.4rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  /* „Expresszustellungen" passt auf schmalen Displays sonst nicht in die Zeile */
  hyphens: auto;
  overflow-wrap: break-word;
}
.hero h1 em {
  font-style: normal;
  color: var(--red);
  display: block;
  margin-top: 0.15em;
}
.hero__sub {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.86);
  max-width: 40rem;
  margin-bottom: 2.25rem;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.75rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.badges li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}
.badges li::before {
  content: "";
  width: 10px;
  height: 16px;
  background: var(--red);
  transform: skewX(var(--shear));
  flex-shrink: 0;
}

/* --- Section-Grundgerüst --- */
.sec {
  padding-block: var(--step);
}
.sec--navy {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}
.sec--paper2 {
  background: var(--paper-2);
}
.sec__head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-ink);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 12px;
  background: var(--red);
  transform: skewX(var(--shear));
}
.sec--navy .eyebrow {
  color: #fff;
}
.sec h2 {
  font-size: clamp(1.9rem, 3.7vw, 2.9rem);
}
.sec__lead {
  margin-top: 1.1rem;
  font-size: 1.125rem;
  color: var(--ink-soft);
}
.sec--navy .sec__lead {
  color: rgba(255, 255, 255, 0.82);
}

/* --- Leistungen --- */
.svc {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.25rem;
}
.svc__item {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid #e2ded8;
  padding: 2.25rem 1.75rem 2rem;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
    transform 0.3s var(--ease);
}
.svc__item:hover {
  border-color: #cfc9c1;
  transform: translateY(-3px);
}
.svc__item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 0;
  background: var(--red);
  transition: width 0.4s var(--ease);
}
.svc__item:hover {
  background: #fff;
}
.svc__item:hover::after {
  width: 100%;
}
.svc__no {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #fff;
  background: var(--navy);
  padding: 0.3rem 0.85rem;
  transform: skewX(var(--shear));
}
.svc__no span {
  display: inline-block;
  transform: skewX(calc(var(--shear) * -1));
}
.svc__item h3 {
  font-size: 1.1875rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.svc__item p {
  font-size: 0.9688rem;
  color: var(--ink-soft);
}

/* --- Einsatzgebiet / Flotte --- */
.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
  z-index: 2;
}
.col {
  border-top: 3px solid var(--red);
  padding-top: 1.5rem;
}
.col h3 {
  font-size: 1.0625rem;
  letter-spacing: 0.04em;
  margin-bottom: 1.1rem;
}
.col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}
.col li {
  display: flex;
  gap: 0.85rem;
  align-items: baseline;
  font-size: 0.9688rem;
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 0.85rem;
}
.col li::before {
  content: "";
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  background: var(--red);
  transform: skewX(var(--shear));
  translate: 0 -1px;
}
.col li strong {
  font-weight: 700;
  color: #fff;
}

/* --- Über uns --- */
.about__txt {
  max-width: 46rem;
}
.about__txt p + p {
  margin-top: 1.1rem;
}
.about__txt p {
  color: var(--ink-soft);
  font-size: 1.0625rem;
}

/* --- CTA-Banner --- */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
  color: #fff;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.cta__in {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.cta p {
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 34rem;
  text-transform: uppercase;
}
.cta__bar {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 12%;
  width: 30vw;
  background: var(--red);
  transform: skewX(var(--shear));
  opacity: 0.16;
}

/* --- Kontakt --- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.dl {
  margin: 0 0 2rem;
  display: grid;
  gap: 1.25rem;
}
.dl > div {
  display: grid;
  gap: 0.2rem;
  border-left: 3px solid var(--red);
  padding-left: 1rem;
}
.dl dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.dl dd {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
}
.dl dd a {
  text-decoration: none;
  border-bottom: 2px solid rgba(13, 51, 113, 0.25);
  transition: border-color 0.2s, color 0.2s;
}
.dl dd a:hover {
  color: var(--red-ink);
  border-bottom-color: var(--red-ink);
}
.contact__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Karte mit Klick-Zustimmung (DSGVO) */
.map {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--navy-deep);
  overflow: hidden;
}
.map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.map__ask {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  padding: 2rem;
  border: 0;
  width: 100%;
  color: #fff;
  background: var(--navy-deep);
  background-image: repeating-linear-gradient(
    73.3deg,
    rgba(255, 255, 255, 0.06) 0 2px,
    transparent 2px 24px
  );
  cursor: pointer;
  font: inherit;
  transition: background-color 0.25s;
}
.map__ask:hover {
  background-color: #0a2450;
}
.map__ask strong {
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.map__ask span {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 24rem;
}
.map__ask em {
  font-style: normal;
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.6rem 1.4rem;
  background: var(--red);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: skewX(var(--shear));
}
.map__ask em i {
  display: inline-block;
  font-style: normal;
  transform: skewX(calc(var(--shear) * -1));
}

/* --- Öffnungszeiten --- */
.hours {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  background: var(--paper);
  border: 1px solid #e2ded8;
  border-left: 4px solid var(--red);
  padding: 1.5rem 1.75rem;
}
.hours__t {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.25rem;
}
.hours__v {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.hours__note {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  max-width: 26rem;
}

/* --- Footer --- */
.ftr {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.72);
  padding-block: clamp(3rem, 6vw, 4rem) 2rem;
  font-size: 0.9375rem;
}
.ftr__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--navy-line);
}
.ftr img {
  height: 71px;
  width: auto;
  margin-bottom: 1.25rem;
}
.ftr h3 {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: #fff;
  margin-bottom: 1rem;
}
.ftr ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
}
.ftr a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.2s;
}
.ftr a:hover {
  color: #fff;
}
.ftr__btm {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  padding-top: 1.75rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
}

/* --- Rechtstexte (Impressum/Datenschutz) --- */
.page {
  padding-block: clamp(3rem, 7vw, 5rem);
}
.prose {
  max-width: 46rem;
}
.prose h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 2rem;
}
.prose h2 {
  font-size: 1.25rem;
  margin: 2.75rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 3px solid var(--red);
}
.prose h3 {
  font-size: 1rem;
  margin: 1.75rem 0 0.5rem;
  text-transform: none;
  letter-spacing: 0;
}
.prose p,
.prose li {
  color: var(--ink-soft);
}
.prose p + p {
  margin-top: 1rem;
}
.prose ul {
  margin: 1rem 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.5rem;
}
.prose a {
  color: var(--navy);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.prose a:hover {
  color: var(--red-ink);
}
.prose .lead {
  font-size: 1.125rem;
  color: var(--ink);
}
.legal-dl {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0;
}
.legal-dl > div {
  display: grid;
  grid-template-columns: minmax(11rem, auto) 1fr;
  gap: 0.5rem 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2ded8;
}
.legal-dl dt {
  font-weight: 700;
  font-size: 0.9375rem;
}
.legal-dl dd {
  margin: 0;
  color: var(--ink-soft);
}

/* --- 404 --- */
.nf {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 62vh;
  gap: 1.5rem;
}
.nf__code {
  font-size: clamp(4.5rem, 16vw, 9rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: var(--navy);
}
.nf__code span {
  color: var(--red);
}

/* --- Reveal-Animation (nur mit JS; ohne JS bleibt alles sichtbar) --- */
.js .rv {
  opacity: 0;
  transform: translateY(22px);
}
.js .rv.rv-on {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .hero .rv.rv-on {
  transition-delay: var(--d, 0ms);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .contact {
    grid-template-columns: 1fr;
  }
  .hero__band--navy {
    display: none;
  }
  .hero__band--red {
    right: -22vw;
    width: 70vw;
    opacity: 0.75;
  }
  /* Auf schmalen Displays liegt der Text über dem Band, daher deckt der Scrim stärker ab */
  .hero__scrim {
    background: linear-gradient(
      92deg,
      var(--navy-deep) 0%,
      rgba(7, 27, 61, 0.96) 62%,
      rgba(7, 27, 61, 0.8) 88%,
      rgba(7, 27, 61, 0.55) 100%
    );
  }
}

@media (max-width: 760px) {
  :root {
    /* Mobil bewusst kompakt (Entscheidung 16.07.2026): das große Logo bleibt
       der Desktop-Ansicht vorbehalten, hier zählt sichtbarer Inhalt.
       clamp begrenzt die Breite, denn das Logo ist 2,23:1 und muss neben dem
       Burger Platz lassen. */
    --hdr-h: 6rem;
    --logo-h: clamp(56px, 17vw, 65px);
  }
  .hdr[data-scrolled="true"] {
    --hdr-h: 4.625rem;
    --logo-h: 48px;
  }
  .burger {
    display: block;
  }
  .nav {
    position: fixed;
    inset: var(--hdr-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy-deep);
    border-bottom: 1px solid var(--navy-line);
    padding: 0.5rem var(--pad) 1.75rem;
    transform: translateY(-140%);
    transition: transform 0.35s var(--ease);
  }
  .nav[data-open="true"] {
    transform: none;
  }
  .nav a {
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--navy-line);
    font-size: 1rem;
  }
  .nav .btn {
    margin-top: 1.25rem;
    justify-content: center;
    padding: 1rem;
  }
  .legal-dl > div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .js .rv,
  .js .rv.rv-on {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .hdr,
  .nav,
  .cta,
  .map {
    display: none;
  }
  body {
    background: #fff;
  }
}
