/* ==========================================================================
   LDC GmbH — Stylesheet
   ========================================================================== */

/* Jost, self-hosted (fonts/, SIL Open Font License — see fonts/OFL.txt).
   One variable font file per character set covers every weight 400–700;
   unicode-range makes browsers fetch the Latin Extended file (Romanian
   ș ț ă, …) only on pages that actually contain such characters. Nothing
   is loaded from Google's servers. */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/jost-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/jost-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --color-primary: #2b5233;
  --color-primary-dark: #1e3b25;
  --color-primary-light: #e3eae0;
  --color-forest-deep: #16261b;

  --color-accent: #b08d5b;
  --color-accent-dark: #8c6f45;
  --color-accent-light: #ead9b4;

  --color-ink: #23301f;
  --color-white: #ffffff;
  --color-cream: #faf6ec;
  --color-cream-alt: #f1e8d6;
  /* Deliberately more saturated/darker than --color-cream — used only for
     the .btn-goo hover-fill blobs, where the very pale --color-cream read
     as almost white against the button's dark-green resting background.
     Kept as its own token instead of changing --color-cream itself, since
     that token also drives several page backgrounds (form-page--cream-light,
     home-closing, ...) which aren't part of this button-hover fix. */
  --color-cream-fill: #ede3cc;

  --color-gray-100: #ede6d4;
  --color-gray-300: #dbceb0;
  --color-gray-500: #7c7461;
  --color-gray-700: #4a4638;
  --color-text: #2a2a1e;

  --color-on-dark-muted: #c8bc9c;
  --color-error: #b3402a;

  /* Deep warm near-black brown and a richer, more saturated burnished
     gold/amber — used together on the homepage hero (description text +
     Partner werden button / eyebrow + Rekrutierer button) for a
     consistent, higher-contrast accent pairing against the light hero
     overlay than --color-gray-500/--color-accent-dark provided. */
  --color-espresso: #3a2a1f;
  --color-gold: #8a5f1a;

  --font-base: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  /* Geometric sans used only in the homepage hero, to echo the "LDC"
     logomark's circular letterforms — free substitute for the commercial
     Century Gothic / ITC Avant Garde Gothic (no license for either in
     this project). Self-hosted, see the @font-face rules at the top.
     Falls back to --font-base's stack if the webfont fails to load. */
  --font-hero: 'Jost', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;

  --shadow-sm: 0 2px 8px rgba(22, 38, 27, 0.08);
  --shadow-md: 0 8px 24px rgba(22, 38, 27, 0.12);
  --shadow-lg: 0 16px 40px rgba(22, 38, 27, 0.16);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --transition: 0.25s ease;
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* .leistungen-gallery breaks out to 100vw via a negative margin, which
     overshoots by the scrollbar's width and would otherwise cause an
     unwanted horizontal scrollbar on the whole page. */
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.hero-cta-row .btn:focus-visible {
  outline-color: var(--color-primary);
  outline-offset: 3px;
}

ul {
  list-style: none;
}

h1, h2, h3 {
  color: var(--color-ink);
  line-height: 1.2;
  font-weight: 700;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Reserve space for the quicknav left rail (see .quicknav rules) so page
   content never sits underneath it. Desktop footprint = 14px left offset +
   10px padding + 42px icon + 10px padding = 76px, added on top of the
   container's own 24px gutter. Below 1360px the rail is slimmer (8px
   offset + 6px + 36px + 6px = 56px), so 68px clears it with a 12px gap.
   The header is exempt: the rail is vertically centered and never reaches
   it, and the logo shouldn't shift. */
@media (min-width: 1360px) {
  .container {
    padding-left: 100px;
  }
}

@media (max-width: 1359px) {
  .container {
    padding-left: 68px;
  }

  .site-header .container {
    padding-left: 24px;
  }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}

/* Shared solid-green button/widget treatment — used by every .btn-primary
   CTA plus .call-now-btn and .back-to-top (each of those
   carries this class in its markup alongside its own layout-only rules,
   so this behavior lives in exactly one place). Hover fills the button
   with a "lava lamp" liquid blob merge rather than crossfading the
   background — the button's own background never changes, only what's
   painted on top of it.

   The .btn-goo wrapper, its two blobs, and the .has-goo class are all
   added at runtime by initButtonGooHover in js/script.js, not written
   into any template — a plain CSS filter can't blur only a
   pseudo-element while leaving an element's own text sharp (filter
   blurs the whole subtree), so the blob shapes need a dedicated wrapper
   separate from the button's real content for the goo filter to be
   scoped to. Gating the color/border invert behind .has-goo (added only
   once that wrapper exists) means a no-JS visitor gets a plain static
   button on hover — never dark-green text with no fill underneath it to
   stay readable against.

   isolation:isolate + .btn-goo's negative z-index is what keeps
   text/icons readable through the fill without touching any button's
   markup: within the stacking context this creates, a negative z-index
   paints above the button's own background (painted first, unconditionally)
   but below all of the button's normal content (painted later by default) —
   so the blobs always sit sandwiched exactly between the two, with zero
   dependency on what the button's markup looks like. */
.btn-primary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--color-primary);
  /* Resting text color — beige (the same tone used for the hover-fill
     itself, --color-cream-fill) instead of white, across every widget
     sharing this class (CTAs, call-now-btn, back-to-top, ...). Hover
     still switches to dark-green text once the fill covers the button
     (.btn-primary.has-goo:hover below) — unaffected by this change. */
  color: var(--color-cream-fill);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.btn-primary.has-goo {
  transition: color 350ms ease, border-color 320ms ease, transform var(--transition), box-shadow var(--transition);
}

/* Deliberately NOT wrapped in an @media (hover: hover) guard: that was
   tried on the earlier ripple version and caused a full regression on a
   real device where the query evaluated false even for an actual
   desktop mouse (the media feature's cross-browser behavior on
   hybrid/ambiguous input hardware isn't reliable enough to gate the
   whole effect on). Plain :hover, scoped to .has-goo so it only ever
   applies once the wrapper/filter actually exist. The one thing that
   still only runs on confirmed hover-capable devices is the
   cursor-position tracking in initButtonGooHover (js/script.js) — on a
   device that can't hover, --ripple-x/--ripple-y are simply never set
   and any stray tap-triggered :hover state just blobs out from center
   via the var(..., 50%) fallback below, a minor cosmetic edge case
   rather than a broken one. */
.btn-primary.has-goo:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  transition: color 600ms cubic-bezier(0.4, 0, 0.2, 1), border-color 550ms cubic-bezier(0.4, 0, 0.2, 1), transform var(--transition), box-shadow var(--transition);
}

/* The wrapper itself is sized to the button's full box, same as the
   old ripple ::before was. The goo filter stays applied unconditionally
   (not scoped to :hover) rather than toggled at the hover boundary: at
   rest the two blobs are scale(0) — effectively zero rendered area — so
   an always-applied filter costs almost nothing there, and it means the
   filter is still active through the whole recede animation on
   mouseleave rather than vanishing the instant :hover stops matching
   (which would otherwise cut the "goo" look off mid-drain, since :hover
   unmatches immediately while the blobs' own transform transition is
   still playing out for another 300+ms). */
.btn-goo {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.btn-primary.has-goo .btn-goo {
  filter: url(#btn-goo-filter);
}

/* Two blobs that share one growth mechanism (scale from 0) but each
   from its OWN transform-origin point — --ripple-x/y is the cursor's
   actual entry point, --ripple-x2/y2 (set alongside it in
   initButtonGooHover) is a fixed offset from that point. This replaces
   an earlier version that gave both blobs the SAME origin and tried to
   separate them with an extra translate(): scaling two shapes from one
   shared point only ever radiates them along the same line from that
   point, so no matter how the translate offset was tuned, the result
   could never be more than a slightly uneven circle — there was no
   actual spatial separation between the two growth centers for the
   goo filter to bridge. Independent origins fix that at the root:
   the two circles start distinctly apart even at small scale, and the
   goo filter shows a real merging "neck" between them as they grow
   into and past each other, rather than one shape scaling uniformly. */
.btn-goo::before,
.btn-goo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-cream-fill);
  border-radius: 50%;
  transform: scale(0);
}

.btn-goo::before {
  transform-origin: var(--ripple-x, 50%) var(--ripple-y, 50%);
  transition: transform 320ms ease;
}

.btn-goo::after {
  transform-origin: var(--ripple-x2, 62%) var(--ripple-y2, 38%);
  transition: transform 350ms ease;
}

.btn-primary.has-goo:hover .btn-goo::before {
  transform: scale(2.2);
  transition: transform 550ms cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary.has-goo:hover .btn-goo::after {
  transform: scale(1.9);
  transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-gray-300);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

/* ---- Icons ---- */
.icon {
  display: block;
  width: 1em;
  height: 1em;
  stroke: currentColor;
  stroke-width: 1.75;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- Eyebrow / Section heading ---- */
.eyebrow {
  display: inline-block;
  color: var(--color-accent-dark);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-heading {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-heading h1,
.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 16px;
}

.section-subtext {
  color: var(--color-gray-500);
  font-size: 1.05rem;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(250, 246, 236, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-gray-100);
}

/* Homepage-only: the header floats transparently over the hero
   video/photo at the top of the page, then gains the site's normal
   solid header look (same colors/blur as the base rule above, plus a
   subtle shadow) once scrolled past the hero-scroll-sentinel (~100px —
   see .hero-scroll-sentinel and initHeaderScrollState in js/script.js,
   which drives the .is-scrolled toggle via IntersectionObserver rather
   than a hardcoded scrollY check). Scoped with :has(.hero), which only
   the homepage has — every other page's header is untouched by this
   block and keeps the always-solid look from the base rule above. */
body:has(.hero) .site-header {
  background: rgba(250, 246, 236, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom-color: transparent;
  box-shadow: none;
  transition: background 300ms ease, backdrop-filter 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

body:has(.hero) .site-header.is-scrolled {
  background: rgba(250, 246, 236, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom-color: var(--color-gray-100);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 80px;
}

.logo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
  cursor: pointer;
  transition: opacity 180ms ease;
}

.logo:hover,
.logo:focus-visible {
  opacity: 0.8;
}

.logo-img {
  height: 40px;
  width: auto;
}

.logo-subtitle {
  margin-top: 2px;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--color-gray-500);
  white-space: nowrap;
  line-height: 1;
}

/* Delayed hover tooltip — same show/hide asymmetry as .quicknav-tooltip
   (instant hide, delayed show) but scoped as a child of .logo rather than
   a sibling, since the logo has no separate icon+label wrapper to hang a
   sibling selector off of. */
.logo-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: var(--color-forest-deep);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}

.logo:hover .logo-tooltip,
.logo:focus-visible .logo-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition-delay: 400ms;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* ---- Call switcher (icon-only toggle + dropdown, same pattern as the
   language switcher below) ---- */

.call-switcher-wrap {
  position: relative;
}

.nav-call {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-gray-300);
  background: transparent;
  color: var(--color-ink);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.nav-call:hover,
.nav-call[aria-expanded="true"] {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.nav-call .icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

/* Shared dark "hero-style" glass dropdown panel — reused by both the call
   switcher (.call-dropdown) and the language switcher (.lang-dropdown).
   Add this class alongside either to keep them visually identical; change
   the look once here and both update. */
.dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 230px;
  background: linear-gradient(160deg, rgba(22, 38, 27, 0.96) 0%, rgba(30, 59, 37, 0.95) 55%, rgba(43, 82, 51, 0.92) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 1001;
}

.dropdown-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.call-dropdown-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.call-dropdown-item:hover,
.call-dropdown-item:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.call-dropdown-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent-light);
}

.call-dropdown-number {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-white);
}

/* ---- Language switcher ---- */

.lang-switcher-wrap {
  position: relative;
}

.lang-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-gray-300);
  background: transparent;
  color: var(--color-ink);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.lang-switcher:hover,
.lang-switcher[aria-expanded="true"] {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.lang-switcher .icon {
  width: 19px;
  height: 19px;
}

.lang-dropdown {
  min-width: 170px;
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-white);
  transition: background var(--transition), color var(--transition);
}

.lang-option:hover,
.lang-option:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.lang-option.is-active {
  background: rgba(255, 255, 255, 0.08);
}

.lang-option__check {
  display: flex;
  flex-shrink: 0;
  color: var(--color-accent-light);
}

.lang-option__check .icon {
  width: 15px;
  height: 15px;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  color: var(--color-white);
  /* Pulled up by the header's own height (80px — see .header-inner)
     with the same amount added back as extra top padding: the hero's
     actual content stays exactly where it was, but its background
     (video) now extends up behind the header, which sits transparently
     over it until scrolled — see body:has(.hero) .site-header below. */
  margin-top: -80px;
  padding: 200px 0 120px;
  text-align: center;
}

.hero-scroll-sentinel {
  position: absolute;
  top: 100px;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

/* Full-bleed hero photo behind the text, with a gradient overlay (same
   palette as the previous flat gradient background) for contrast/legibility
   regardless of the underlying photo. */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img,
.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}

/* The hero video's last shot (the driver close-up, from 4.833s to the loop
   end) has a blurred strip baked into its left edge (~3% of the frame) and
   a thin gray bar along the bottom. While that shot plays,
   initHeroVideoCrop() in js/script.js adds --crop-left: a slight zoom
   anchored at the right edge (and at the same 35% height as
   object-position) pushes both strips out of view. Toggled frame-accurately
   on the shot cuts, so it needs no transition — a size change landing
   exactly on a hard cut is invisible, and every other shot keeps its
   untouched framing. --crop-smooth adds a transition only for browsers
   without requestVideoFrameCallback, where the toggle lands up to ~250ms
   off the cut. */
.hero-bg-video {
  transform-origin: 100% 35%;
}

.hero-bg-video--crop-smooth {
  transition: transform 0.4s ease;
}

.hero-bg-video--crop-left {
  transform: scale(1.04);
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Same gradient angle as before, recolored from dark green to
     --color-cream-alt (241, 232, 214) — the same cream already used on
     Über uns and Leistungen. Kept lighter than a dark overlay would need
     to be (a translucent dark tint reliably darkens a busy photo enough
     for light text anywhere on it; a translucent light tint at the same
     alpha doesn't reliably lighten the photo's own bright passages —
     chrome, sky — enough for dark text), but backed off from the earlier
     0.96/0.93/0.88 pass, which washed out the video underneath — text
     legibility here now leans on the .eyebrow/h1/hero-subtext text-shadow
     halo below rather than overlay opacity alone. */
  background: linear-gradient(160deg, rgba(241, 232, 214, 0.70) 0%, rgba(241, 232, 214, 0.62) 55%, rgba(241, 232, 214, 0.54) 100%);
}

/* No overlay on the hero video itself — it plays through unfiltered. The
   cream overlay above still applies where .hero-media is reused (e.g.
   .home-closing). */
.hero .hero-media::after {
  content: none;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

/* Heading, description and CTAs: one static block, horizontally centered
   over the video and visible for the whole loop. */
.hero > .hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Clear the slim left quicknav rail on smaller screens (see .container). */
@media (max-width: 1359px) {
  .hero > .hero-copy {
    padding-left: 68px;
  }
}

/* One shared dark scrim behind the heading and description (not the
   buttons, which are solid already). The text stays on screen through the
   busiest shots — the bright trailer canvas with its green LDC lettering
   and the driver close-up — so this is deliberately dense: a near-flat
   ~0.75 forest-deep core under the text that only starts fading beyond the
   text's own box, then blurred so its edge reads as shade rather than a
   panel. isolation keeps the negative z-index inside .hero-copy-text,
   behind its text but above the video. */
.hero-copy-text {
  position: relative;
  isolation: isolate;
}

.hero-copy-text::before {
  content: '';
  position: absolute;
  inset: -56px -170px;
  z-index: -1;
  background: radial-gradient(
    closest-side,
    rgba(16, 28, 20, 0.78) 0%,
    rgba(16, 28, 20, 0.74) 62%,
    rgba(16, 28, 20, 0.42) 84%,
    rgba(16, 28, 20, 0) 100%
  );
  filter: blur(26px);
  pointer-events: none;
}

/* Dark shadow under the light hero text — separates the letterforms
   further from any bright spot that still shows through the scrim. */
.hero .eyebrow,
.hero h1,
.hero-subtext {
  text-shadow: 0 1px 3px rgba(10, 18, 12, 0.7), 0 0 16px rgba(10, 18, 12, 0.5);
}

.hero .eyebrow {
  color: var(--color-gold);
  font-family: var(--font-hero);
  font-weight: 500;
}

.hero h1 {
  /* Off-white cream (the same tone as the trailer's canvas in the video)
     rather than the brand green — the green sat too close to the trailer's
     own LDC lettering and blended with it whenever it passed behind. */
  color: var(--color-cream);
  font-family: var(--font-hero);
  font-weight: 700;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  margin-bottom: 20px;
}

/* Fixed line breaks (hero.titleLine1-3 in i18n/*.json). */
.hero-title-line {
  display: block;
}

.hero-subtext {
  color: var(--color-cream);
  font-family: var(--font-hero);
  font-weight: 400;
  font-size: 1.1rem;
  margin: 0 auto;
  max-width: 600px;
}

/* Phone-only one-sentence version, see the max-width:640px block. */
.hero-subtext--short {
  display: none;
}

/* ---- Hero CTA buttons (Driver Application / Call a Recruiter) ---- */

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 640px;
  margin: 56px auto 0;
}

.hero-cta-row .btn {
  font-family: var(--font-hero);
  font-weight: 700;
}

.btn-cta {
  flex: 1 1 220px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 18px 28px;
}

.widget-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.widget-form-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-ink);
  margin-bottom: 16px;
}

.form-group select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--color-gray-300);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-primary-light);
}

/* Country-code combobox attached to the left of every phone number field
   (see .phone-field in templates + initPhoneCountryCode/initPhoneCombobox
   in js/script.js): a searchable text input plus a filtered listbox of all
   ~197 countries. */
.phone-field {
  display: flex;
  gap: 8px;
}

.phone-country-combobox {
  position: relative;
  flex: 0 0 auto;
  width: 92px;
}

.phone-country-combobox .phone-country-input {
  width: 100%;
  padding-left: 10px;
  padding-right: 6px;
}

.phone-field input[type='tel'] {
  flex: 1 1 auto;
  min-width: 0;
}

.phone-country-listbox {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  width: 260px;
  max-height: 280px;
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--color-white);
  border: 1.5px solid var(--color-gray-300);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}

.phone-country-listbox li {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--color-text);
  cursor: pointer;
  white-space: nowrap;
}

.phone-country-listbox li[hidden] {
  display: none;
}

.phone-country-listbox li.is-highlighted,
.phone-country-listbox li:hover {
  background: var(--color-gray-100);
}

.phone-country-listbox li[aria-selected='true'] {
  font-weight: 600;
}

@media (max-width: 480px) {
  .phone-country-combobox {
    width: 76px;
  }

  .phone-country-listbox {
    width: 220px;
  }
}

.btn-outline-solid {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-gray-300);
}

.btn-outline-solid:hover:not(:disabled) {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

.btn .spinner {
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  vertical-align: -3px;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Color/hover treatment (including the hover lift) comes from
   .btn-primary, also applied in this element's markup (see
   templates/rekrutierer.body.html) — this block is layout-only. The
   border is declared transparent here (rather than omitted) so
   .btn-primary's hover border-color has a paintable border to apply to. */
.call-now-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  padding: 18px;
}

.call-now-btn__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.call-now-btn__number {
  font-size: 1.5rem;
  font-weight: 700;
}

.widget-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--color-gray-500);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.widget-divider::before,
.widget-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-gray-300);
}

/* ==========================================================================
   Services
   ========================================================================== */

.services {
  position: relative;
  overflow: hidden;
  padding: 100px 0;
  background: var(--color-cream-alt);
}

/* Soft cursor-following glow (see initServicesCursorEffects in
   js/script.js, which writes --glow-x/--glow-y on mousemove and toggles
   .has-glow on enter/leave) — desktop/pointer-fine only, deliberately
   low-opacity ambient light rather than a bright spotlight. Sits behind
   all real content via z-index; .services > .container is lifted above
   it so cards/heading/button aren't affected. */
.services::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 300ms ease;
  background: radial-gradient(
    circle at var(--glow-x, 50%) var(--glow-y, 50%),
    rgba(176, 141, 91, 0.12) 0%,
    rgba(43, 82, 51, 0.07) 35%,
    transparent 65%
  );
}

.services.has-glow::before {
  opacity: 1;
}

.services > .container {
  position: relative;
  z-index: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  /* Scroll-triggered reveal (see initServiceCardsReveal in js/script.js)
     — starts hidden/offset, animates in once .is-revealed is added.
     transform/opacity share this same 450ms ease-out for the reveal;
     :hover below gives its own faster override so the hover lift itself
     still feels snappy like every other card/button on the site. */
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.45s ease-out, transform 0.45s ease-out, box-shadow var(--transition), border-color var(--transition);
}

.service-card.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-light);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-icon {
  font-size: 1.75rem;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--color-gray-500);
  font-size: 0.95rem;
}

.services-cta {
  text-align: center;
  margin-top: 48px;
}

/* Magnetic pull (see initServicesCursorEffects in js/script.js) —
   scoped to this specific button, not .btn-outline globally, which is
   shared across the whole site. Left on permanently (not toggled
   between "tracking" and "releasing") so the pull itself reads as
   slightly springy rather than snapping 1:1 to the cursor, and the
   same spring-like overshoot ease governs the release back to rest. */
.services-cta .btn {
  transition: transform 150ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   About
   ========================================================================== */

.about {
  padding: 100px 0;
  /* The slide-in reveal below starts .about-content's children 50px to the
     right; without clipping, that offset widens the whole page on phones
     (horizontal scroll / empty strip on the right) until they reveal. */
  overflow-x: clip;
}

/* Alternate section background for repeated .about-style teasers, so
   consecutive sections stay visually distinct (matches the existing
   cream / cream-alt rhythm used by .services). */
.about--alt-bg {
  background: var(--color-cream-alt);
}

.about-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}

.about-media-box {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--color-primary) 0%, var(--color-forest-deep) 100%);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Slow continuous Ken Burns zoom on the 5 homepage teaser photos
   (Fuhrpark/Über-uns/Partner-werden/Fahrerbewerbung/Rekrutierer). The
   overflow:hidden on .about-media-box (above) clips it cleanly, and
   object-fit:cover means there's never empty space at scale >= 1.
   initTeaserPhotoKenBurns in js/script.js toggles .is-animating via
   IntersectionObserver — deliberately NOT via animation-play-state:
   that observer's initial callback fires within milliseconds of page
   load, almost always before the browser has computed the animation's
   first frame (all 5 images sit below the tall hero, so they start
   off-screen). Pausing an animation that early leaves it permanently
   stuck at currentTime 0 even after later resuming it (reproduced
   directly — this was the actual bug behind "no visible zoom").
   Gating the animation's existence via a class sidesteps that
   entirely: adding .is-animating always starts the animation fresh,
   removing it always cleanly stops it, no paused-before-first-frame
   edge case possible. */
.about-media-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-media-photo.is-animating {
  animation: about-media-kenburns 12s ease-in-out infinite alternate;
}

@keyframes about-media-kenburns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-media-photo.is-animating {
    animation: none;
  }
}

/* Landscape photo in a portrait (4:5) card crops left/right by default —
   bias toward the left so the tractor's cab and front stay in frame
   instead of being cropped from the center. */
#fuhrpark .about-media-photo {
  object-position: 20% center;
}

.about-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 20px;
}

.about-content p {
  color: var(--color-gray-500);
  margin-bottom: 16px;
}

.about-content .btn {
  margin-top: 12px;
}

/* Alternates image/text sides on repeated .about-style teaser sections
   (Fuhrpark, Fahrerbewerbung, ...) without duplicating the column-width
   ratio: swap which column is narrow/wide, then reorder the two children
   into it, so the media box is always the narrow column regardless of
   which side it's visually on. */
.about-inner--reverse {
  grid-template-columns: 1.15fr 0.85fr;
}

.about-inner--reverse .about-content {
  order: 1;
}

.about-inner--reverse .about-media {
  order: 2;
}

/* Directional scroll-triggered entrance for the homepage's two-column
   teaser sections (Fuhrpark/Über-uns/Partner-werden/Fahrerbewerbung/
   Rekrutierer/Kontakt — see initAboutTeaserReveal in js/script.js).
   .about-media slides in from the left; each direct child of
   .about-content slides in from the right, staggered by nth-child so
   eyebrow -> heading -> body copy -> (signature line, where present) ->
   button reveal one after another. Scoped to the outermost .about-media
   wrapper (not .about-media-photo), so it never fights the Ken Burns
   zoom on the photo itself. translateX is relative to each element's
   own resting position, so the direction stays correct even on
   .about-inner--reverse sections where .order swaps which side things
   visually land on.

   The transition itself lives only on the .is-revealed variant of each
   rule, not the base (hidden) state — transitions use the *after-change*
   style's `transition` value, and the base rule declares none. So
   adding .is-revealed animates in, but removing it (the section exiting
   the viewport, either direction) snaps straight back to hidden with no
   reverse-animation lag, ready to replay identically next time. */
.about-media {
  opacity: 0;
  transform: translateX(-50px);
}

.about-inner.is-revealed .about-media {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.about-content > * {
  opacity: 0;
  transform: translateX(50px);
}

.about-inner.is-revealed .about-content > * {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  transition-delay: 0.1s;
}

.about-inner.is-revealed .about-content > *:nth-child(2) {
  transition-delay: 0.2s;
}

.about-inner.is-revealed .about-content > *:nth-child(3) {
  transition-delay: 0.3s;
}

.about-inner.is-revealed .about-content > *:nth-child(4) {
  transition-delay: 0.4s;
}

.about-inner.is-revealed .about-content > *:nth-child(5) {
  transition-delay: 0.5s;
}

@media (prefers-reduced-motion: reduce) {
  .about-inner.is-revealed .about-media,
  .about-inner.is-revealed .about-content > * {
    transition: none;
  }
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-form {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Formspree honeypot (name="_gotcha"), present in every form. Hidden
   entirely — display:none also takes it out of the tab order and the
   accessibility tree — so real visitors never fill it; Formspree silently
   drops submissions where a bot did. Must stay empty and unvalidated. */
.form-honeypot {
  display: none !important;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-ink);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--color-gray-300);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-primary-light);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group.has-error input,
.form-group.has-error textarea {
  border-color: var(--color-error);
}

.error-message {
  display: block;
  color: var(--color-error);
  font-size: 0.8rem;
  margin-top: 6px;
  min-height: 1em;
}

.form-status {
  margin-top: 16px;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  min-height: 1.2em;
}

.form-status.success {
  color: var(--color-primary-dark);
}

.form-status.error {
  color: var(--color-error);
}

/* No longer a standalone card (see .site-footer) — sits directly on the
   footer's own dark-green background, so it only needs its own spacing,
   not a separate background/border-radius of its own. */
.contact-info-card {
  color: var(--color-white);
  padding: 0 0 32px;
}

.contact-info-card h3 {
  color: var(--color-white);
  margin-bottom: 24px;
}

.contact-info-card ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.contact-info-card li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  border-radius: 50%;
}

.contact-info-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.contact-info-card p,
.contact-info-card a {
  color: var(--color-on-dark-muted);
  font-size: 0.9rem;
}

/* Only the E-Mail field has two stacked <p> blocks (Info@/Schaden@) —
   every other field has exactly one, so this never affects them. */
.contact-info-card p + p {
  margin-top: 8px;
}

.contact-info-card a:hover {
  color: var(--color-white);
}

/* ==========================================================================
   Quick-access sidebar (secondary nav, separate from the main nav)
   ========================================================================== */

.quicknav {
  position: fixed;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  z-index: 850;
  background: rgba(22, 38, 27, 0.88);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 16px 10px;
}

/* Thin scroll-progress line running through the rail, behind the icons
   (see initQuickNavScrollProgress in js/script.js). Spans the same
   16px top/bottom inset as .quicknav's own padding, so it reads as
   running the full height of the rail. Negative z-index keeps it
   behind .quicknav-list's icons regardless of DOM order — a positioned
   descendant with z-index:auto/0 would otherwise paint above static
   in-flow content. scaleY (not height) so the per-scroll-frame update
   in JS never triggers layout, only compositing. Desktop-only: doesn't
   apply once the rail becomes a horizontal bottom bar (see the
   1359px breakpoint below). */
.quicknav-progress {
  position: absolute;
  top: 16px;
  bottom: 16px;
  /* Fixed pixel offset, not 50%: icons stay pinned at the left edge even
     when the rail widens on hover (see .quicknav-list__label), so a
     percentage-of-rail-width offset would drift into the label text once
     expanded. 57px = padding-left (10) + icon width (42) + half the
     icon-to-label gap (10/2) — the midpoint between icon and label,
     correct in both the collapsed and expanded width. */
  left: 57px;
  width: 2px;
  transform: translateX(-50%);
  z-index: -1;
  background: rgba(250, 246, 236, 0.15);
  border-radius: 1px;
  overflow: hidden;
}

.quicknav-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: scaleY(0);
  transform-origin: top;
  background: var(--color-accent);
}

.quicknav-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.quicknav-item {
  position: relative;
}

/* The link is now a row (icon badge + label) rather than the icon badge
   itself — see .quicknav-link__icon below for the circle that used to be
   this element directly. Collapsed (icon-only) by default; the label only
   ever reveals itself via the hover-expand rules further down. */
.quicknav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-cream);
  /* Dedicated 300ms ease for the active-state color change, distinct
     from the sitewide 250ms --transition token used elsewhere, so the
     active icon eases into place rather than snapping. */
  transition: color 300ms ease;
}

.quicknav-link__icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
}

.quicknav-link__icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 300ms ease, transform 300ms ease, background 300ms ease;
}

.quicknav-link:hover .quicknav-link__icon::before,
.quicknav-link:focus-visible .quicknav-link__icon::before,
.quicknav-link.is-active .quicknav-link__icon::before {
  opacity: 1;
  transform: scale(1);
}

.quicknav-link:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 3px;
}

.quicknav-link .icon {
  position: relative;
  z-index: 1;
  width: 19px;
  height: 19px;
}

/* Collapsed by default everywhere (including touch/narrow, where the
   hover-expand media query below never matches) — max-width/overflow
   rather than width/display, since max-width is what lets this animate
   smoothly without needing a from/to "auto" transition. */
.quicknav-link__label {
  display: inline-block;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateX(-6px);
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 600;
  transition: max-width 280ms ease, opacity 280ms ease, transform 280ms ease;
}

.quicknav-tooltip {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  background: var(--color-forest-deep);
  color: var(--color-white);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.quicknav-link:hover + .quicknav-tooltip,
.quicknav-link:focus-visible + .quicknav-tooltip,
.quicknav-link:active + .quicknav-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* Hover-expand: the vertical rail widens and reveals a text label next to
   every icon. Scoped to the desktop rail width only — the sub-1360px
   bottom bar (a separate, mutually exclusive layout below) never matches
   this, so it keeps the plain icon-only rail unchanged. Both the rail's
   own width and each label's max-width transition together off the same
   :hover, which is what makes the icons stay put on the left while the
   labels grow in to their right instead of the whole row re-centering.
   Deliberately NOT also gated on `(hover: hover) and (pointer: fine)`:
   plenty of Windows touchscreen laptops report pointer:coarse/hover:none
   as their PRIMARY input even while being driven with a real mouse, which
   silently disabled this whole block there while the plain :hover-based
   active-circle elsewhere on this same rail kept working fine — same
   risk profile as that existing feature, not a new one. */
@media (min-width: 1360px) {
  .quicknav {
    width: 62px;
    transition: width 280ms ease;
  }

  .quicknav:hover {
    width: 248px;
  }

  .quicknav-list {
    align-items: flex-start;
  }

  .quicknav:hover .quicknav-link__label {
    max-width: 180px;
    opacity: 1;
    transform: translateX(0);
  }

  /* The persistent inline label takes over what the floating tooltip did
     on hover — keep the tooltip for :focus-visible/:active (keyboard,
     touch) only, so the two never show at the same time. */
  .quicknav-link:hover + .quicknav-tooltip {
    opacity: 0;
    visibility: hidden;
  }
}

/* Below the desktop width the rail stays docked on the left, same as on
   desktop, just slimmer: smaller icons, tighter spacing, no hover-expand
   labels (those are desktop-only, see the min-width:1360px block above).
   48px wide at an 8px inset, so page content needs ~68px of left clearance
   instead of desktop's 100px — see the .container rule further down. */
@media (max-width: 1359px) {
  .quicknav {
    left: 8px;
    padding: 8px 6px;
    border-radius: 14px;
  }

  .quicknav-progress {
    top: 8px;
    bottom: 8px;
    left: 50%;
  }

  .quicknav-list {
    gap: 6px;
  }

  /* The inline text label (and its icon-to-label gap) only exists for the
     desktop hover-expand. */
  .quicknav-link {
    gap: 0;
  }

  .quicknav-link__label {
    display: none;
  }

  .quicknav-link__icon {
    width: 36px;
    height: 36px;
  }

  .quicknav-link .icon {
    width: 17px;
    height: 17px;
  }
}

/* Short screens (e.g. a phone held sideways): shrink the icons so all 7
   still fit vertically. */
@media (max-height: 420px) {
  .quicknav-list {
    gap: 2px;
  }

  .quicknav-link__icon {
    width: 32px;
    height: 32px;
  }

  .quicknav-link .icon {
    width: 15px;
    height: 15px;
  }
}

/* ==========================================================================
   Trust strip (stat / badge row)
   ========================================================================== */

.trust-strip {
  background: var(--color-white);
  border-top: 1px solid var(--color-gray-100);
  border-bottom: 1px solid var(--color-gray-100);
  padding: 32px 0;
}

/* Extra breathing room above the Karriere page's application form card,
   which otherwise sits right against the trust-strip below it — only
   matches the .form-page-container that's the trust-strip's very next
   sibling, so this doesn't affect the page's own (unrelated) heading
   container above, or any other page. */
.trust-strip + .form-page-container {
  margin-top: 56px;
}

/* Breathing room between the "Ihre Vorteile bei uns" benefit cards and the
   "Jetzt bewerben" CTA button below them, matching the 48px gap
   .services-cta uses after .services-grid on the homepage (cards grid ->
   CTA button is the same pattern there). #vorteile is unique to this page,
   so this stays scoped to it. */
#vorteile + .form-page-container {
  margin-top: 48px;
}

.trust-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trust-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
  padding: 0 12px;
  border-left: 1px solid var(--color-gray-100);
}

.trust-stat:first-child {
  border-left: none;
}

.trust-stat__value {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-primary);
}

.trust-stat--badge .trust-stat__value {
  color: var(--color-primary);
}

.trust-stat__label {
  font-size: 0.78rem;
  color: var(--color-gray-500);
}

/* ==========================================================================
   Karriere overview
   ========================================================================== */

/* Breathing room above "Ihre Vorteile bei uns", matching the 100px gap
   .services uses after .trust-strip on the homepage (trust-strip only
   precedes a bare .container here and on the homepage, where it's
   followed by .services instead, so this stays scoped to this page). */
.trust-strip + .container {
  margin-top: 100px;
}

/* "Ihre Vorteile bei uns" benefit cards on the Karriere overview page.
   Cards also carry .service-card (see build-site.js) for their white
   card background, scroll-reveal and hover-lift — this block only adds
   the icon/title/text layout on top of that. Icon badge matches the
   footer's .contact-icon treatment for visual consistency across the page. */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* 7 cards wrap into 3 rows (3+3+1) — grid's default align-items:stretch
     only equalizes height within a single row, so a card in row 2 can
     still be taller than one in row 1. grid-auto-rows: 1fr equalizes
     every row (including implicit ones) to the tallest row's content. */
  grid-auto-rows: 1fr;
  gap: 24px;
  margin-top: 40px;
}

.benefit-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--color-white);
  border: 1px solid var(--color-gray-100);
}

.benefit-card__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 50%;
  margin-bottom: 4px;
}

.benefit-card__icon .icon {
  width: 20px;
  height: 20px;
}

.benefit-card__title {
  color: var(--color-ink);
  font-size: 1.05rem;
}

.benefit-card__text {
  color: var(--color-gray-500);
  font-size: 0.9rem;
}

.benefit-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.benefit-card__tag {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .benefit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .benefit-grid {
    grid-template-columns: 1fr;
  }
}

/* "Jetzt Bewerben" CTA below the benefit cards — same scroll-reveal
   fade+translateY as .service-card (initServiceCardsReveal in
   js/script.js targets both selectors), but kept as its own class rather
   than adding .service-card itself: that class also carries a card
   background/padding/border which would clash with this being a button,
   not a card. */
.karriere-apply-cta {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.45s ease-out, transform 0.45s ease-out;
}

.karriere-apply-cta.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Shared "arrow back-link" style — used by the sitewide .back-to-home link
   injected on every non-homepage page and the Fahrerbewerbung page's
   "back to benefits" link. */
.back-link {
  color: var(--color-primary);
  font-weight: 600;
}

.back-link:hover {
  text-decoration: underline;
}

/* Sitewide "back to homepage" link, injected at the top of every page
   except index.html — see withBackToHome() in scripts/build-site.js. */
.back-to-home {
  text-align: center;
  padding: 24px 0;
}

/* .container gets asymmetric padding-left at >=1360px to clear the fixed
   quicknav rail (see the .container media query above) — fine for the
   page's own left-aligned/wide content, but it visibly pushes a short
   centered link like this one off-center. Cancel it here only. */
.back-to-home.container {
  padding-left: 24px;
}

/* ==========================================================================
   Fullscreen scroll-snap galleries (Leistungen / Fuhrpark)
   ========================================================================== */

/* Spacing wrapper for the gallery on Leistungen/Fuhrpark — no background of
   its own, so the page's .form-page/.form-page--cream-light background
   shows through directly. Each gallery panel has its own photo + scrim, so
   this wrapper doesn't need a light/dark variant pair. */
.leistungen-sections {
  padding: 0 0 96px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Toggle between "Transportlösungen" (gallery) and "Be- und
   Entlademöglichkeiten" (grid) — only one .leistungen-tabpanel is visible
   at a time, switched by initLeistungenTabs() in js/script.js. */
.leistungen-tabs-wrap {
  margin-bottom: 40px;
}

.leistungen-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.leistungen-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 290px;
  max-width: 100%;
  height: 46px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-gray-300);
  background: transparent;
  color: var(--color-ink);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.leistungen-tab:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.leistungen-tab.is-active {
  background: var(--color-accent-light);
  border-color: var(--color-accent-light);
  color: var(--color-forest-deep);
}

/* "Be- und Entlademöglichkeiten" (leistungen-tab-1) starts/ends on letterforms
   with tighter side-bearing than "Transportlösungen", so identical padding
   reads as visually tighter around its text. A few extra px here evens out
   that optical gap; targeted by id (not [is-active]) so it stays put
   regardless of which tab is currently selected. */
#leistungen-tab-1 {
  padding-left: 32px;
  padding-right: 32px;
}

.leistungen-tabpanel[hidden] {
  display: none;
}

/* Fullscreen scroll-snap gallery ("Transportlösungen"). Breaks out to full
   viewport width since it sits directly in .leistungen-tabpanel, outside
   any .container. The track is its own independently-scrolling 100vh box
   (not page-level scroll-snap) so it behaves as a self-contained widget
   and doesn't hijack scrolling on the rest of the page. */
.leistungen-gallery {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.leistungen-gallery:focus-visible {
  outline: 2px solid var(--color-accent-light);
  outline-offset: -2px;
}

.leistungen-gallery-track {
  height: 100vh;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.leistungen-gallery-panel {
  position: relative;
  flex: 0 0 100vw;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.leistungen-gallery-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.leistungen-gallery-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 18, 13, 0.88) 0%, rgba(10, 18, 13, 0.4) 45%, rgba(10, 18, 13, 0) 75%);
}

.leistungen-gallery-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 48px 96px;
  color: var(--color-white);
  text-align: center;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.leistungen-gallery-panel.is-visible .leistungen-gallery-content {
  opacity: 1;
  transform: translateY(0);
}

.leistungen-gallery-content h3 {
  color: var(--color-white);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin-bottom: 12px;
}

.leistungen-gallery-content p {
  font-size: 1.05rem;
  color: var(--color-on-dark-muted);
}

.leistungen-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  animation: leistungen-nav-pulse 2.2s ease-in-out infinite;
  transition: background var(--transition);
}

.leistungen-gallery-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.leistungen-gallery-nav .icon {
  width: 22px;
  height: 22px;
}

.leistungen-gallery-nav--prev {
  left: 28px;
}

.leistungen-gallery-nav--next {
  right: 28px;
}

@media (min-width: 1360px) {
  .leistungen-gallery-nav--prev {
    left: 100px;
  }
}

.leistungen-gallery-nav[hidden] {
  display: none;
}

@keyframes leistungen-nav-pulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

.leistungen-gallery-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.leistungen-gallery-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.leistungen-gallery-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.leistungen-gallery-dot.is-active {
  background: var(--color-white);
  transform: scale(1.3);
}

@media (prefers-reduced-motion: reduce) {
  .leistungen-gallery-nav {
    animation: none;
  }

  .leistungen-gallery-content {
    transition: none;
  }

  .leistungen-gallery-track {
    scroll-behavior: auto;
  }
}

@media (max-width: 640px) {
  .leistungen-gallery-content {
    padding: 0 24px 72px;
  }

  .leistungen-gallery-dots {
    display: none;
  }
}

/* Portrait screens (phones, upright tablets): a fullscreen object-fit:cover
   panel shows only ~a quarter of a 16:9 photo's width there. Instead stack
   each slide — the whole photo on top at full width (contain, never
   cropped), title and text below it on the dark panel background. The
   horizontal scroll-snap track and its arrows are unchanged, so moving
   between slides works exactly as before. object-position is reset
   because the per-photo overrides (inline, from build-site.js) only exist
   to steer a cover crop. */
@media (orientation: portrait) {
  .leistungen-gallery-track {
    height: auto;
    background: var(--color-forest-deep);
  }

  .leistungen-gallery-panel {
    height: auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    background: var(--color-forest-deep);
  }

  .leistungen-gallery-image {
    position: static;
    width: 100%;
    height: auto;
    max-height: 62vh;
    object-fit: contain;
    object-position: center !important;
    background: #0a120d;
  }

  .leistungen-gallery-scrim {
    display: none;
  }

  .leistungen-gallery-content {
    padding: 24px 24px 40px;
  }

  /* Vertically centered on a full-width 16:9 photo (56.25vw tall). */
  .leistungen-gallery-nav {
    top: 28vw;
  }

  /* Galleries mixing landscape and portrait photos (Fuhrpark): the track
     takes its tallest slide's height, so a free-height portrait photo left
     the landscape slides with a large empty band under their text. One
     shared 4:3 frame (each photo still fully visible inside it) keeps all
     slides about the same height. */
  .leistungen-gallery--mixed .leistungen-gallery-image {
    aspect-ratio: 4 / 3;
    max-height: none;
  }

  .leistungen-gallery--mixed .leistungen-gallery-nav {
    top: 37.5vw;
  }
}

/* The galleries are full-bleed, so the slim left quicknav rail (below
   1360px) sits over their left edge: keep the prev arrow and the text clear
   of it, like the desktop rule above does at 100px. */
@media (max-width: 1359px) {
  .leistungen-gallery .leistungen-gallery-nav--prev {
    left: 68px;
  }

  .leistungen-gallery .leistungen-gallery-content {
    padding-left: 68px;
  }
}

/* ==========================================================================
   Form pages (Leistungen / Fuhrpark layout helpers)
   ========================================================================== */

/* On pages where a content section with its own bottom spacing (e.g.
   .leistungen-sections) lives inside the same <main> as the heading
   (Leistungen, Fuhrpark), .form-page's own bottom padding would show as
   extra empty space between that section and the footer, since the
   section only covers its own box, not main's padding area. Drop main's
   padding here, regardless of the light/dark variant. Pages with nothing
   after the heading (Rekrutierer, Bewerbung, ...) keep the normal
   padding. */
.form-page:has(.leistungen-sections) {
  padding-bottom: 0;
}

/* Keep the heading + tab buttons full-viewport on load so the gallery/grid
   below only comes into view once the visitor scrolls, instead of peeking
   in above the fold. 80px accounts for the sticky .site-header, which is
   already "used up" screen space before the page content starts. */
.leistungen-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 64px;
  min-height: calc(100vh - 80px);
}

/* Über uns page: prose content below the dark hero heading. */
.about-page-content {
  max-width: 760px;
  margin: 0 auto;
  padding-top: 8px;
}

.about-page-block + .about-page-block {
  margin-top: 48px;
}

.about-page-content h2 {
  color: var(--color-ink);
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.about-page-content p {
  color: var(--color-gray-500);
  margin-bottom: 14px;
  line-height: 1.7;
}

/* Signature line under a first-person quote — used on both the light
   homepage "Über uns" teaser and the dark Über-uns page's Mission block. */
.signature-line {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--color-accent-dark);
}


.signature-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}

.signature-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--color-gray-300);
}

.signature-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent-dark);
}

.signature-linkedin .icon {
  width: 16px;
  height: 16px;
}

.signature-linkedin:hover {
  color: var(--color-primary);
}


/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--color-forest-deep);
  color: var(--color-on-dark-muted);
  padding: 56px 0 28px;
}

/* Scroll-triggered fade-in for the whole footer (see initFooterReveal in
   js/script.js) — the entire block moves as one unit, deliberately not
   staggered per element like the homepage teaser reveals, so it's applied
   to .footer-inner itself rather than to its individual children. Same
   replay convention as those reveals: the transition lives only on the
   .is-revealed variant, not this base rule, so re-adding the class always
   replays the same animation, but removing it (footer exiting the
   viewport, either direction) snaps back to hidden instantly instead of
   playing a reverse animation — ready to replay identically next time. */
.footer-inner {
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(25px);
}

.footer-inner.is-revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 700ms ease-out, transform 700ms ease-out;
}

/* Copyright + legal links, directly below the contact info within the same
   footer — a top border stands in for the old gap between the two blocks. */
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  font-size: 0.85rem;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-legal-links {
  display: flex;
  gap: 20px;
}

.footer-legal-links a {
  color: var(--color-on-dark-muted);
  transition: color var(--transition);
}

.footer-legal-links a:hover {
  color: var(--color-white);
}

/* ==========================================================================
   Homepage-only closing section (below the shared footer)
   ========================================================================== */

/* Reuses .hero-media / .hero-media img / .hero-media::after as-is (see Hero
   section above) for the photo + gradient overlay — only the structural
   positioning context (relative + overflow:hidden, like .hero provides) and
   the content row are new here. */
.home-closing {
  position: relative;
  overflow: hidden;
  padding: 40px 0;
}

.home-closing .hero-media img {
  object-position: center;
}

.home-closing-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--color-white);
  font-size: 0.85rem;
}

.home-closing-address {
  margin: 0;
}

.home-closing-address {
  text-align: right;
}

.home-closing-social {
  display: flex;
  gap: 12px;
}

.social-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--color-white);
  flex-shrink: 0;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.social-icon-btn .icon {
  width: 18px;
  height: 18px;
}

.social-icon-btn:hover {
  border-color: var(--color-accent-light);
  color: var(--color-accent-light);
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 640px) {
  .home-closing-row {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .home-closing-address {
    text-align: center;
  }
}

/* ==========================================================================
   Standalone form pages (Fahrerbewerbung / Rekrutierer anrufen)
   ========================================================================== */

.form-page {
  padding: 64px 0 96px;
  background: var(--color-cream-alt);
}

/* Lighter alternate for the light form-page background, used to alternate
   cream tones across the teaser pages in sidebar-nav order (Leistungen,
   Fuhrpark, Über uns, Partner werden, Fahrerbewerbung, Rekrutierer,
   Kontakt) instead of every one of them using the same shade. Reuses
   --color-cream rather than introducing a new token — it's already the
   lighter half of this same cream pairing on the homepage's alternating
   .services/.about--alt-bg sections. */
.form-page--cream-light {
  background: var(--color-cream);
}

.form-page-container {
  max-width: 640px;
  margin: 0 auto;
}

.form-page .widget-form-label {
  margin-top: 4px;
}

/* ==========================================================================
   Legal pages (Impressum / Datenschutz)
   ========================================================================== */

.legal-page {
  padding: 64px 0 96px;
}

.legal-container {
  max-width: 760px;
  margin: 0 auto;
}

.legal-container h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: 32px;
}

.legal-container h2 {
  font-size: 1.2rem;
  margin-top: 36px;
  margin-bottom: 12px;
}

.legal-container h3 {
  font-size: 1.02rem;
  margin-top: 22px;
  margin-bottom: 8px;
}

.legal-container p {
  color: var(--color-gray-700);
  margin-bottom: 12px;
}

.legal-container a {
  color: var(--color-primary);
  text-decoration: underline;
}

.notice-box {
  background: var(--color-cream-alt);
  border-left: 4px solid var(--color-accent-dark);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin-bottom: 32px;
  color: var(--color-gray-700);
  font-size: 0.95rem;
}

.notice-box strong {
  color: var(--color-ink);
}

/* ==========================================================================
   Back to top
   ========================================================================== */

/* Color/hover treatment comes from .btn-primary, also applied in this
   button's markup (see build-site.js) — this block is layout and
   show/hide only. Border is transparent by default so .btn-primary's
   hover border-color has something to paint. .is-visible:hover pins
   transform back to translateY(0): .btn-primary:hover's translateY(-2px)
   lift has equal specificity (one class + one pseudo-class) and would
   otherwise win on source order, undoing the show/hide slide-in — this
   button never had a hover lift, only the color invert should apply. */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid transparent;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition), background-color 220ms ease, color 220ms ease, border-color 220ms ease;
  z-index: 999;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top.is-visible:hover {
  transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-inner,
  .about-inner--reverse {
    grid-template-columns: 1fr;
  }

  /* Keep a single, predictable stacking order (media, then content) once
     the layout drops to one column — the left/right alternation only
     makes sense as a two-column effect. */
  .about-inner--reverse .about-content,
  .about-inner--reverse .about-media {
    order: initial;
  }

  .about-media {
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (max-width: 860px) {
  .contact-info-card ul {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-cta-row {
    flex-direction: column;
    max-width: 480px;
    margin-top: 40px;
  }

  /* .btn-cta's flex-basis (220px) is meant as a minimum width in the
     desktop row; in this stacked column it would become each button's
     height instead. Size to content here. */
  .hero-cta-row .btn-cta {
    flex: 0 0 auto;
    padding: 15px 24px;
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .contact-info-card ul {
    grid-template-columns: 1fr;
  }

  .logo-img {
    height: 34px;
  }

  .logo-subtitle {
    font-size: 9px;
    letter-spacing: 0.03em;
  }

  /* Phones: the hero fills exactly one screen (svh = the height with the
     browser's toolbars showing, so nothing ends up below the fold), its
     content centered over the video — a shorter one-sentence description
     and only the driver-application button (the other two CTAs stay on
     desktop; their pages are still reachable from the quicknav). */
  .hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 96px 0 40px;
  }

  .hero-subtext--full,
  .hero-cta--desktop-only {
    display: none;
  }

  .hero-subtext--short {
    display: block;
  }

  .hero-cta-row {
    margin-top: 32px;
  }

  /* Tighter scrim so more of the video shows around the text. */
  .hero-copy-text::before {
    inset: -28px -36px;
  }

  .services,
  .about,
  .contact {
    padding: 64px 0;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form,
  .widget-card {
    padding: 28px;
  }

  .call-now-btn__number {
    font-size: 1.3rem;
  }

  .form-page {
    padding: 48px 0 72px;
  }

  .trust-strip-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 12px;
  }

  .trust-stat {
    border-left: none;
    padding: 0;
  }
}

/* Short phones (e.g. 360x640): tighten so the longer EN/RO headings still
   fit the hero in one screen. */
@media (max-width: 640px) and (max-height: 700px) {
  .hero {
    padding: 88px 0 24px;
  }

  .hero h1 {
    font-size: 1.9rem;
    margin-bottom: 14px;
  }

  .hero-subtext {
    font-size: 1rem;
  }

  .hero-cta-row {
    margin-top: 24px;
  }
}

/* ==========================================================================
   404 page (404.html, generated by build404Page in scripts/build-site.js).
   No quicknav there, so it uses its own wrapper instead of .container (whose
   left padding below 1360px reserves room for the quicknav rail).
   ========================================================================== */

.not-found {
  padding: 72px 0 96px;
  text-align: center;
}

.not-found-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

.not-found-code {
  font-family: var(--font-hero);
  font-size: clamp(4.5rem, 14vw, 8rem);
  font-weight: 700;
  line-height: 1;
  color: var(--color-primary);
  margin-bottom: 40px;
}

.not-found-langs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.not-found-lang {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 24px;
  background: var(--color-white);
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-lg);
}

.not-found-lang h1,
.not-found-lang h2 {
  font-size: 1.3rem;
}

.not-found-lang p {
  color: var(--color-gray-500);
  flex-grow: 1;
}

.not-found-footer {
  padding: 24px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-gray-500);
  border-top: 1px solid var(--color-gray-100);
}

.not-found-footer a {
  color: var(--color-primary);
}

@media (max-width: 860px) {
  .not-found-langs {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Splash screen (homepage-only, one-time logo intro — see renderSplashScreen
   in scripts/build-site.js and initSplashScreen in js/script.js)
   ========================================================================== */

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* Tightened from the earlier clamp(40px, 7vw, 80px) — that was sized to
     leave room for the (since-abandoned) exact-width-match stretch effect
     on the subtitle; now that both lines just sit at their own natural
     size, a smaller gap reads as "two closely related lines" instead of
     two disconnected blocks. */
  gap: clamp(16px, 3vw, 32px);
  background: var(--color-primary);
  opacity: 1;
  /* Fallback only (see initSplashScreen in js/script.js) — used when the
     circle clip-path exit isn't available at all (icon not found, or the
     browser lacks Element.animate). The exit itself is otherwise driven
     entirely by a WAAPI animation of this element's own clip-path
     (circle(0% ...) -> circle(150% ...)), not a CSS transition, since its
     center/radius depend on a runtime icon-position measurement a static
     value here can't express. */
  transition: opacity 700ms ease-out;
}

/* Set by initSplashScreen once the hold phase ends — the transition above
   handles the actual fade, this class only ever toggles the end state. */
.splash-screen--fade-out {
  opacity: 0;
  pointer-events: none;
}

/* Set synchronously by the inline <script> in renderSplashScreen's output,
   before js/script.js has even loaded — see that function's comment for
   why this needs to run that early. */
.splash-screen--skip {
  display: none !important;
}

/* Icon + "LDC" as one horizontal lockup, sharing a single font-size unit
   (icon/wordmark both sized in em off .splash-lockup's own clamp()) so
   they always scale together and stay proportioned to each other at any
   viewport width. Animates in as ONE unit (scale+fade) rather than the
   icon and wordmark separately, per the sequence: background alone for
   BG_ALONE_MS (2000ms — see the animation-delay below, matching
   initSplashScreen's HOLD_END_MS math in js/script.js), then this.
   A second, later animation (splash-caption-hide, reused from
   .splash-subtitle below) fades this back out in sync with the subtitle,
   clearing the screen back to plain green before .splash-slogan appears
   alone — see both elements' matching 5900ms delay. */
.splash-lockup {
  display: flex;
  align-items: center;
  /* Balanced against the icon/text sizes below — tight enough to read as
     one lockup, wide enough that icon and wordmark don't touch/crowd. */
  gap: 0.3em;
  font-size: clamp(120px, 15vw, 220px);
  opacity: 0;
  transform: scale(0.85);
  animation: splash-lockup-in 700ms ease-out forwards, splash-caption-hide 350ms ease forwards;
  animation-delay: 2000ms, 5900ms;
}

.splash-icon {
  /* 0.72em, not a round 0.75/0.85 — approximates Jost's cap-height ratio
     (a geometric sans's capital letters typically run ~0.7-0.75em of the
     font's em-square), so the icon reads as "the same visual height as
     LDC's capitals" rather than visibly taller/shorter than the letters
     next to it. align-items: center on the row above then centers this
     shorter icon box within the wordmark's own line-box height, keeping
     both vertically aligned to each other.
     display: flex (not the span default of inline) so this box centers
     its own svg child directly — an inline svg aligns to its parent's
     text baseline by default, which at this font-size leaves a visible
     baseline/descender gap underneath it, reading as "the icon sits
     lower than the text" even though the outer row's align-items:center
     is correct. */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.72em;
  height: 0.72em;
  color: var(--color-cream-fill);
  flex-shrink: 0;
}

.splash-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.splash-wordmark {
  font-family: var(--font-hero);
  font-weight: 700;
  font-size: 1em;
  line-height: 1;
  color: var(--color-cream-fill);
}

.splash-caption-slot {
  display: flex;
  justify-content: center;
}

/* Deliberately much smaller than .splash-lockup — reads as a subtitle
   underneath, not a peer element. letter-spacing here is only a fallback
   base value — initSplashScreen() in js/script.js measures .splash-lockup's
   actual rendered width (offsetWidth, so its own scale-in animation
   doesn't skew the reading) and sets an inline letter-spacing (in px) via
   JS so this line's total rendered width matches it exactly, on load and
   on resize. Deliberately letter-spacing, not the text-align-last/width
   trick an earlier version used: that stretched only the 2 gaps *between*
   the 3 words, which read as separate words popping in once the clip-path
   reveal swept across them rather than one smooth wipe. letter-spacing
   adds space after *every* character uniformly (words included), so the
   reveal still sweeps evenly across genuinely adjacent text — just more
   loosely tracked overall.
   The reveal itself is a clip-path sweep (not a fade): the text is fully
   there from the start, just visually clipped from the right edge inward,
   so it looks like a curtain opening left-to-right rather than
   materializing all at once. A second, later animation on the same
   element (splash-caption-hide) fades it back out once its hold time is
   up, clearing the screen before .splash-slogan-stage's slogan appears. */
.splash-subtitle {
  font-size: clamp(16px, 1.8vw, 26px);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--color-cream-fill);
  white-space: nowrap;
  clip-path: inset(0 100% 0 0);
  animation: splash-caption-unveil 2000ms ease forwards, splash-caption-hide 350ms ease forwards;
  animation-delay: 3300ms, 5900ms;
}

/* Sits in its own full-viewport stage (see .splash-slogan-stage below)
   rather than the .splash-lockup/.splash-caption-slot flex stack — that
   stack's own centering only ever centered the STACK as a block, and
   .splash-lockup keeps its layout space even after fading out (opacity
   only, not display:none), which pushed anything below it down and out
   of true viewport-center. This stage is independent of all of that.
   Deliberately NOT the same font-size as .splash-lockup, despite both
   being "equally dominant beats" of the intro conceptually — "Ihre Marke,
   unser Service" is ~26 characters against "LDC"'s 3, so reusing the
   lockup's clamp(120px, 15vw, 220px) verbatim ran the text past the
   right edge of the viewport at any usual width (confirmed by screenshot).
   This clamp is sized instead so the text's natural (rendered) width
   stays at roughly 80-85% of the viewport at any width from phones to
   large desktops (~0.55em average character width x ~26 characters x
   this font-size, kept comfortably under the viewport — an estimate, not
   a browser-measured value, hence the max-width/overflow belt-and-
   suspenders below too). */
.splash-slogan {
  font-family: var(--font-hero);
  font-weight: 700;
  font-size: clamp(19px, 6vw, 120px);
  color: var(--color-cream-fill);
  white-space: nowrap;
  max-width: 92vw;
  overflow: hidden;
  clip-path: inset(0 100% 0 0);
  animation: splash-caption-unveil 2300ms ease forwards;
  animation-delay: 6250ms;
}

/* Full-viewport, independent of .splash-lockup/.splash-caption-slot's own
   flex stack — .splash-screen is position:fixed, which is a valid
   containing block for this position:absolute (not fixed-in-fixed, which
   would raise questions about ancestors establishing new containing
   blocks — absolute-in-fixed has no such ambiguity). Centers the slogan
   on the true viewport center regardless of whatever space the earlier
   steps still occupy above it. */
.splash-slogan-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 16px;
}

/* Safety net for narrow viewports — "LANGER DISTRIBUTION COOPERATION" is
   long enough that even modest sizing can start crowding very narrow
   phone screens; drop it further there rather than let it wrap (which
   would break the single-line clip-path sweep) or overflow. */
/* letter-spacing itself is no longer set here — JS now overrides it
   (inline style) on every viewport size to hit the exact lockup width, so
   any value in this media query would just be overwritten anyway. Only
   the base font-size still needs a narrower-screen floor, since JS's
   width-matching stretch works from whatever natural (un-stretched) width
   this size produces — too large a floor here would need unreasonably
   little stretching room to still land on the (also small, on phones)
   lockup width. */
@media (max-width: 480px) {
  .splash-subtitle {
    font-size: 12px;
  }
}

@keyframes splash-lockup-in {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes splash-caption-unveil {
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes splash-caption-hide {
  to {
    opacity: 0;
  }
}
