/* =========================================================================
   WLD Logistik GmbH — "Feld & Schiene" identity
   Self-hosted fonts, no external requests. DSGVO-clean by construction.
   Adapted from the WLD Nord GmbH design system — same layout primitives,
   green accent instead of cyan to match the WLD Logistik brand mark.
   ========================================================================= */

/* ---- Fonts (self-hosted, latin subset) ---------------------------------- */
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
/* Zilla Slab — heritage slab serif, echoes the WLD Logistik logo lettering */
@font-face {
  font-family: "Zilla Slab";
  src: url("fonts/zilla-slab-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Zilla Slab";
  src: url("fonts/zilla-slab-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

/* ---- Tokens ------------------------------------------------------------- */
:root {
  /* Monochrome base, matched to the black & green WLD Logistik logo */
  --ink:        #14181b;   /* near-black            */
  --steel:      #2b3034;   /* dark neutral graphite */
  --steel-soft: #6c7176;   /* muted neutral grey    */
  --paper:      #f3f5f2;   /* near-white light bg (faint green cast) */
  --white:      #ffffff;
  --signal:     #4caf50;   /* WLD Logistik green accent */
  --signal-deep:#2e7d32;   /* deep green — readable on white */
  --line:       #e2e6e0;   /* hairline              */
  --ok:         #2e7d5b;

  --display: "Zilla Slab", Georgia, "Times New Roman", ui-serif, serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --maxw: 1140px;
  --gap: clamp(1rem, 4vw, 2.5rem);
  --radius: 4px;
  --header-h: 80px;        /* height reserved for the fixed navbar */
}

/* ---- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }

/* ---- Layout helpers ----------------------------------------------------- */
.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.section { padding-block: clamp(3rem, 8vw, 6rem); }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: #e9eaeb; }
.section--ink h2, .section--ink h3 { color: #fff; }

.eyebrow {
  font-family: var(--body);
  font-weight: 600; font-size: .72rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--signal-deep);
  display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 7px; background:
  repeating-linear-gradient(90deg, var(--signal) 0 4px, transparent 4px 7px);
  border-top: 2px solid var(--signal); border-bottom: 2px solid var(--signal);
  box-sizing: content-box; }
.section--ink .eyebrow, .hero .eyebrow, .page-head .eyebrow { color: var(--signal); }

/* brand word "Logistik" in the accent colour throughout the site */
.accent { color: var(--signal-deep); }
.hero .accent, .page-head .accent, .section--ink .accent, .site-footer .accent { color: var(--signal); }

/* ---- THE SIGNATURE: the rail line --------------------------------------- */
/* two parallel rails with periodic sleeper ticks, used as a divider        */
.rail {
  --rail-color: var(--steel);
  position: relative; height: 14px; border: 0; margin: 0; padding: 0;
  background:
    linear-gradient(var(--rail-color), var(--rail-color)) left 0    / 100% 2px no-repeat,
    linear-gradient(var(--rail-color), var(--rail-color)) left 12px / 100% 2px no-repeat;
}
.rail::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg,
     var(--rail-color) 0 2px, transparent 2px 30px);
  opacity: .55;
}
.rail--signal { --rail-color: var(--signal); }
.section--ink .rail { --rail-color: #444b50; }

/* little locomotive that rides the rails as you scroll */
.rail-wrap { position: relative; }
.rail-train {
  position: absolute; left: 0; bottom: 3px; width: 100px; height: 62px;
  background: url(/assets/lok-wld-logistik-green.png) center bottom / contain no-repeat;
  pointer-events: none; will-change: transform; z-index: 1;
}
@media (max-width: 560px){ .rail-train { width: 76px; height: 48px; } }
@media (prefers-reduced-motion: reduce){ .rail-train { display: none; } }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--body); font-weight: 600; font-size: .98rem;
  padding: .8rem 1.4rem; border-radius: var(--radius);
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--signal); color: var(--ink); }
.btn--primary:hover { background: var(--signal-deep); color: #fff;
  transform: translateY(-1px); box-shadow: 0 8px 20px rgba(76,175,80,.28); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--steel); }
.section--ink .btn--ghost, .hero .btn--ghost, .page-head .btn--ghost {
  color: #fff; border-color: #444b50; }
.btn--ghost:hover { border-color: var(--signal); color: var(--signal-deep); }
.section--ink .btn--ghost:hover, .hero .btn--ghost:hover, .page-head .btn--ghost:hover {
  color: var(--signal); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--signal); outline-offset: 2px;
}

/* ---- Skip link (hidden until keyboard focus) ---------------------------- */
.skip-link {
  position: absolute; left: 8px; top: -52px; z-index: 100;
  background: var(--ink); color: #fff; padding: .6rem 1rem;
  border-radius: var(--radius); font-weight: 600; text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 8px; }

/* ---- Header (transparent over hero, solid on scroll) -------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.site-header.is-stuck {
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom-color: var(--line); box-shadow: 0 6px 22px rgba(20,24,27,.07);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: var(--header-h); padding-block: .65rem; }
body.plain-top { padding-top: var(--header-h); }   /* pages with no dark hero */

/* brand: transparent-background green locomotive mark, reads cleanly on any
   background (dark hero, solid header, footer) without needing a crossfade. */
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none;
  line-height: 1; }
.brand__mark { height: 48px; width: auto; display: block; }
@media (max-width: 400px){ .brand__mark { height: 40px; } }
.brand__name { font-family: var(--display); font-weight: 700; font-size: 1.42rem;
  letter-spacing: -0.01em; color: #fff; transition: color .3s ease; }
.brand__name b { color: var(--signal); font-weight: 700; transition: color .3s ease; }
.is-stuck .brand__name { color: var(--ink); }
.is-stuck .brand__name b { color: var(--signal-deep); }
@media (max-width: 400px){ .brand__name { font-size: 1.25rem; } }

/* nav links with an animated green underline */
.nav { display: flex; align-items: center; gap: .35rem; }
.nav a:not(.btn) { position: relative; text-decoration: none; font-weight: 500; font-size: .96rem;
  color: rgba(255,255,255,.82); padding: .5rem .7rem; transition: color .2s ease; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .26rem;
  height: 2px; background: var(--signal); transform: scaleX(0); transform-origin: left;
  transition: transform .22s ease; }
.nav a:not(.btn):hover, .nav a:not(.btn)[aria-current="page"] { color: #fff; }
.nav a:not(.btn):hover::after, .nav a:not(.btn)[aria-current="page"]::after { transform: scaleX(1); }
.is-stuck .nav a:not(.btn) { color: var(--steel); }
.is-stuck .nav a:not(.btn):hover, .is-stuck .nav a:not(.btn)[aria-current="page"] { color: var(--ink); }
.nav .btn { margin-left: .4rem; padding: .55rem 1rem; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem;
  color: #fff; transition: color .3s ease; }
.is-stuck .nav-toggle { color: var(--ink); }
.nav-toggle svg { display: block; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column;
    align-items: stretch; gap: 0; background: var(--white);
    border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1rem;
    box-shadow: 0 12px 24px rgba(20,24,27,.10);
    display: none;
  }
  .nav[data-open="true"] { display: flex; }
  /* dropdown panel is always light → force dark link colours regardless of header state */
  .nav a:not(.btn), .is-stuck .nav a:not(.btn) { color: var(--steel);
    padding: .9rem .4rem; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn):hover, .nav a:not(.btn)[aria-current="page"],
  .is-stuck .nav a:not(.btn):hover { color: var(--ink); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin: .8rem 0 0; justify-content: center; }
}

/* ---- Hero --------------------------------------------------------------- */
.hero { background: var(--ink); color: #e9eaeb; position: relative; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding-top: calc(var(--header-h) + clamp(1.5rem, 5vw, 3rem));
  padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); color: #fff; }
.hero h1 .amber { color: var(--signal); }
.hero p.lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: #b9bcbe; margin: 1.4rem 0 2rem;
  max-width: 38ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__meta { margin-top: 2.4rem; display: flex; gap: 2rem; flex-wrap: wrap; }
.hero__meta div { border-left: 2px solid var(--signal); padding-left: .8rem; }
.hero__meta b { font-family: var(--display); font-size: 1.5rem; color: #fff; display: block; }
.hero__meta small { color: #9a9ea1; font-size: .82rem; }

/* ---- Germany rail map (animated network) -------------------------------- */
.railmap { width: 100%; max-width: 440px; margin-inline: auto; }
.railmap__title { font-family: var(--display); font-weight: 700; color: #fff;
  font-size: 1.15rem; margin: 0 0 1.1rem; text-align: center; }
.railmap__frame { border-radius: 10px; overflow: hidden; }
.railmap__frame svg { width: 100%; height: auto; display: block; }

/* media facade (consent-gated video) */
.facade { position: relative; aspect-ratio: 16/10; border-radius: 6px; overflow: hidden;
  background:
    radial-gradient(120% 80% at 70% 0%, #23282c 0%, #14181b 60%),
    var(--ink);
  border: 1px solid #2b3034; display: grid; place-items: center; }
.facade__play {
  position: relative; z-index: 2; display: inline-flex; flex-direction: column; align-items: center;
  gap: .6rem; background: none; border: 0; color: #fff; cursor: pointer; padding: 1rem;
}
.facade__play .disc { width: 64px; height: 64px; border-radius: 50%; background: var(--signal);
  color: var(--ink); display: grid; place-items: center; transition: transform .15s ease; }
.facade__play:hover .disc { transform: scale(1.06); }
.facade__play small { font-size: .78rem; color: #b9bcbe; max-width: 24ch; text-align: center; }
.facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (max-width: 820px) {
  .hero__grid { grid-template-columns: 1fr; }
  .facade { order: -1; }
}

/* ---- Tiles (benefits / services) --------------------------------------- */
.lede { font-size: clamp(1.25rem, 2.6vw, 1.6rem); font-family: var(--display); font-weight: 500;
  line-height: 1.3; max-width: 34ch; color: var(--ink); }
.section__head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap);
  align-items: end; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section__head p { margin: 0; color: var(--steel); }
@media (max-width: 760px){ .section__head { grid-template-columns: 1fr; } }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.tile { background: var(--white); padding: 1.8rem 1.6rem; }
.tile .num { font-family: var(--display); font-weight: 700; color: var(--signal-deep);
  font-size: .9rem; letter-spacing: .05em; }
.tile h3 { font-size: 1.18rem; margin: .5rem 0 .55rem; }
.tile p { margin: 0; color: var(--steel); font-size: .97rem; }
.section--ink .tile { background: #1b201a; }
.section--ink .tile p { color: #b6b9bb; }
@media (max-width: 860px){ .tiles { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .tiles { grid-template-columns: 1fr; } }

/* ---- Partners ----------------------------------------------------------- */
.partners { list-style: none; margin: 1.4rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: clamp(1.6rem, 5vw, 3.4rem); }
.partners li { display: flex; }
.partners a { display: inline-flex; align-items: center; }
.partners img { height: 30px; width: auto; opacity: .42;
  transition: opacity .18s ease, transform .18s ease; }
.partners a:hover img, .partners a:focus-visible img { opacity: 1; transform: translateY(-1px); }
@media (max-width: 560px){ .partners img { height: 26px; } }

/* ---- Generic page header (subpages) ------------------------------------- */
.page-head { background: var(--ink); color: #e9eaeb;
  padding-top: calc(var(--header-h) + clamp(1.4rem, 4vw, 2.2rem));
  padding-bottom: clamp(2.8rem, 6vw, 4.5rem); }
.page-head h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3rem); }
.page-head p { color: #b9bcbe; max-width: 56ch; margin: 1rem 0 0; }

/* ---- Prose / profile ---------------------------------------------------- */
.prose { max-width: 64ch; }
.prose p { color: var(--steel); margin: 0 0 1.1rem; }
.prose p:first-child { font-size: 1.15rem; color: var(--ink); }

/* ---- Team --------------------------------------------------------------- */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.member { background: var(--white); padding: 1.5rem 1.4rem; }
.member .avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--paper);
  border: 2px solid var(--signal); display: grid; place-items: center; font-family: var(--display);
  font-weight: 700; color: var(--steel); margin-bottom: .9rem; }
.member b { display: block; font-family: var(--display); }
.member small { color: var(--steel-soft); }

/* ---- Service list (leistungen) ------------------------------------------ */
.svc { border-top: 1px solid var(--line); }
.svc__row { display: grid; grid-template-columns: 3rem 1fr; gap: 1.2rem;
  padding: 1.6rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.svc__row .idx { font-family: var(--display); font-weight: 700; color: var(--signal-deep); }
.svc__row h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.svc__row p { margin: 0; color: var(--steel); max-width: 62ch; }

/* ---- Contact cards ------------------------------------------------------ */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
@media (max-width: 760px){ .cards { grid-template-columns: 1fr; } }
.card { border: 1px solid var(--line); border-radius: 8px; padding: 1.8rem; background: var(--white); }
.card.badge24 { border-color: var(--signal); }
.card h3 { font-size: 1.2rem; }
.card .tag { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--signal-deep); margin-bottom: .6rem; }
.card address { font-style: normal; color: var(--steel); line-height: 1.8; margin-top: .4rem; }
.card a { color: var(--steel); }
.card a:hover { color: var(--signal-deep); }

/* ---- Forms -------------------------------------------------------------- */
.form { display: grid; gap: 1.1rem; max-width: 560px; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea {
  font: inherit; padding: .75rem .85rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); color: var(--ink); width: 100%;
}
.field--file input { padding: .6rem; background: var(--paper); }
.field .hint { font-size: .82rem; color: var(--steel-soft); }
.consent { display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: start;
  font-size: .9rem; color: var(--steel); }
.consent input { margin-top: .25rem; }
.consent a { color: var(--signal-deep); }

/* ---- Map facade --------------------------------------------------------- */
.map-facade { position: relative; aspect-ratio: 16/7; border: 1px solid var(--line);
  border-radius: 8px; overflow: hidden; background: var(--paper); display: grid; place-items: center;
  text-align: center; }
.map-facade__grid { position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 28px 28px; }
.map-facade .inner { position: relative; z-index: 2; padding: 1.5rem; }
.map-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- CTA strip ---------------------------------------------------------- */
.cta-strip { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; }
.cta-strip h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
@media (max-width: 700px){ .cta-strip { grid-template-columns: 1fr; } }

/* ---- Footer ------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #b0b3b5; padding-block: clamp(2.5rem, 6vw, 4rem) 2rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { font-family: var(--body); font-size: .74rem; letter-spacing: .16em;
  text-transform: uppercase; color: #888c8f; margin: 0 0 1rem; }
.site-footer a { color: #d4d6d8; text-decoration: none; }
.site-footer a:hover { color: var(--signal); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer .brand__name { color: #fff; font-size: 1.32rem; }
.site-footer .brand__name b { color: #fff; }
.site-footer address { font-style: normal; line-height: 1.8; margin-top: .7rem; font-size: .94rem; }
.foot-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid #2b3034; font-size: .85rem;
  color: #888c8f; }
@media (max-width: 720px){ .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .site-footer .col-brand { grid-column: 1 / -1; } }

/* ---- Legal pages -------------------------------------------------------- */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.4rem; margin: 2.4rem 0 .8rem; }
.legal h3 { font-size: 1.08rem; margin: 1.6rem 0 .5rem; font-family: var(--body); font-weight: 600; }
.legal p, .legal li { color: var(--steel); line-height: 1.7; }
.legal p { margin: 0 0 1rem; }
.legal ul { margin: .2rem 0 1.2rem; padding-left: 1.25rem; }
.legal li { margin: .35rem 0; }
.legal a { color: var(--signal-deep); }
.legal a:hover { color: var(--signal); }

/* callout / note box on the legal pages */
.note { background: #eef8ec; border: 1px solid #bfe3ba; border-left: 4px solid var(--signal);
  padding: 1rem 1.2rem; margin: 1.4rem 0; border-radius: 6px; color: var(--steel);
  font-size: .95rem; line-height: 1.7; }
.note strong { color: var(--ink); }

/* ---- Cookie consent banner ----------------------------------------------- */
.consent-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
  background: var(--white); border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(20,24,27,.12);
  padding: 1rem clamp(1rem, 4vw, 2rem);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
}
.consent-banner p { margin: 0; max-width: 62ch; font-size: .95rem; color: var(--steel); }
.consent-banner p a { color: var(--signal-deep); }
.consent-banner__actions { display: flex; gap: .6rem; flex-shrink: 0; }
.consent-banner .btn { padding: .55rem 1.1rem; font-size: .95rem; }
@media (max-width: 600px) {
  .consent-banner { flex-direction: column; align-items: stretch; }
  .consent-banner__actions { justify-content: flex-end; }
}
