/* =====================================================================
   Vieth Logistik — MVP Styles
   Reset → Tokens → Base → Utilities → Components → Layout → Responsive
   ===================================================================== */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

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

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

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

/* ---------- Tokens ---------- */
:root {
  --blue: #193278;
  --blue-dark: #121A30;
  --red: #e30044;
  --red-dark: #b8003a;
  --white-soft: #F8F9FA;
  --gray-surface: #EBEDF2;
  --gray-border: #D1D5DB;
  --ink: #1a1a2e;
  --muted: #6B7280;

  --r-btn: 10px;
  --r-card: 16px;
  --r-card-lg: 20px;
  --r-section: 28px;

  --shadow-1: 0 2px 8px rgba(18, 26, 48, .06);
  --shadow-2: 0 8px 24px rgba(18, 26, 48, .12);
  --shadow-hover: 0 16px 40px rgba(18, 26, 48, .18);

  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 48px;
  --s-6: 64px;
  --s-7: 96px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
  --dur-fast: 150ms;
  --dur: 300ms;
  --dur-slow: 500ms;

  --font-display: 'Work Sans', system-ui, sans-serif;
  --font-body: 'Mulish', system-ui, sans-serif;

  --header-h: 80px;
  --maxw: 1240px;
  --page-gutter: 24px;
}

/* ---------- Base ---------- */
html {
  overflow-x: clip;
  /* prevent horizontal page scroll from carousels/grids */
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white-soft);
  overflow-x: clip;
  min-width: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  font-weight: 700;
  overflow-wrap: anywhere;
}

p {
  max-width: 68ch;
}

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

/* Anchor targets clear sticky header */
section[id],
#top,
#main {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--red);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--page-gutter, var(--s-3));
  min-width: 0;
}

.grid-2>*,
.bloom>*,
.fleet>*,
.services-grid>*,
.footer__grid>* {
  min-width: 0;
}

.section {
  padding-block: var(--s-7);
}

.section--surface {
  background: var(--gray-surface);
}

.section--dark {
  background: var(--blue-dark);
  color: var(--white-soft);
}

.text-accent {
  color: var(--red);
}

.muted {
  color: var(--muted);
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--s-2);
}

.eyebrow--light {
  color: #ff5c86;
}

.h2 {
  font-size: clamp(1.9rem, 4vw, 2.4rem);
  color: var(--blue);
  margin-bottom: var(--s-3);
}

.h2--light {
  color: #fff;
}

.lead {
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: var(--s-3);
}

.lead--tight {
  margin-bottom: 0;
}

.lead--light {
  color: rgba(255, 255, 255, .85);
}

.section__head {
  margin-bottom: var(--s-5);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--s-4);
  flex-wrap: wrap;
}

.section__head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section__head--center .lead {
  margin-inline: auto;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6);
}

.grid-2--align {
  align-items: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-1);
  padding: 14px 26px;
  border-radius: var(--r-btn);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  transition: transform var(--dur) var(--ease), background var(--dur), border-color var(--dur), color var(--dur);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn--sm {
  padding: 9px 18px;
  font-size: .92rem;
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background: var(--red);
  color: #fff;
}

.btn--primary:hover {
  background: var(--red-dark);
  transform: scale(1.02);
}

.btn--primary .btn__arrow {
  transition: transform var(--dur) var(--ease);
}

.btn--primary:hover .btn__arrow {
  transform: translateX(4px);
}

.btn--secondary {
  border-color: var(--blue);
  color: var(--blue);
  background: transparent;
}

.btn--secondary:hover {
  background: var(--blue);
  color: #fff;
}

.btn--ghost {
  border-color: rgba(255, 255, 255, .6);
  color: #fff;
  background: rgba(255, 255, 255, .06);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, .16);
}

.link-arrow {
  font-weight: 600;
  color: inherit;
  position: relative;
  padding-bottom: 2px;
}

.link-arrow::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}

.link-arrow:hover::after {
  transform: scaleX(1);
}

.btn-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  transition: transform var(--dur) var(--ease), background var(--dur);
}

.btn-icon:hover {
  transform: scale(1.1);
  background: var(--red-dark);
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background var(--dur), box-shadow var(--dur), height var(--dur);
  /* always solid enough to cover content scrolling underneath */
  background: transparent;
  isolation: isolate;
}

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

.header[data-transparent]:not(.is-scrolled) {
  background: transparent;
}

.header[data-transparent]:not(.is-scrolled) .nav__list a {
  color: #fff;
}

.header[data-transparent]:not(.is-scrolled) .btn--secondary {
  border-color: #fff;
  color: #fff;
}

.header[data-transparent]:not(.is-scrolled) .btn--secondary:hover {
  background: #fff;
  color: var(--blue);
}

.header[data-transparent]:not(.is-scrolled) .nav__burger span {
  background: #fff;
}

.header.is-scrolled {
  background: var(--white-soft);
  box-shadow: var(--shadow-1);
}

.header.is-scrolled .header__inner {
  height: 60px;
}

/* ---------- Page loader (preloader) ---------- */
body.is-loading {
  overflow: hidden;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  /* whiter field, no plate — logo sits directly on the page loader bg */
  background:
    radial-gradient(120% 90% at 50% 40%, #ffffff 0%, #f7f8fb 55%, #eef0f5 100%);
  transition: opacity .55s var(--ease), visibility .55s var(--ease);
}

.page-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader__inner {
  --p: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: min(260px, 70vw);
  text-align: center;
  /* no card / plate under logo */
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.page-loader__label {
  margin: 0;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(25, 50, 120, .42);
}

/* Dual-layer logo mark (white base + color reveal) */
.logo-mark {
  position: relative;
  display: inline-block;
  line-height: 0;
  --reveal: 0;
  /* 0 = white only, 1 = full color */
}

.logo-mark img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
}

.logo-mark__white {
  position: relative;
  z-index: 0;
  filter: brightness(0) invert(1);
}

.logo-mark__color {
  position: absolute;
  inset: 0;
  z-index: 1;
  clip-path: inset(0 calc((1 - var(--reveal)) * 100%) 0 0);
}

/* Loader logo: small → zoom, white → brand colors */
.logo-mark--loader {
  --reveal: var(--p);
  width: 100%;
  transform: scale(calc(0.76 + 0.24 * var(--p)));
  transform-origin: center center;
  filter: drop-shadow(0 14px 36px rgba(18, 26, 48, .14));
}

.logo-mark--loader img {
  width: 100%;
  height: auto;
}

/* Pure white cut-out on the dimmed field */
.logo-mark--loader .logo-mark__white {
  filter: brightness(0) invert(1);
  opacity: 1;
}

/* Soft lift so white mark doesn't melt into the field */
.logo-mark--loader .logo-mark__white {
  filter: brightness(0) invert(1) drop-shadow(0 1px 0 rgba(255, 255, 255, .35));
}

/* Header logo: white on hero, brand colors when scrolled */
.header__logo {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.logo-mark--header {
  --reveal: 0;
  transition: transform var(--dur) var(--ease);
}

.logo-mark--header img {
  height: 42px;
  width: auto;
}

.header.is-scrolled .logo-mark--header {
  --reveal: 1;
}

.header.is-scrolled .logo-mark--header .logo-mark__white {
  opacity: 0;
}

.header[data-transparent]:not(.is-scrolled) .logo-mark--header {
  --reveal: 0;
}

.header[data-transparent]:not(.is-scrolled) .logo-mark--header .logo-mark__white {
  opacity: 1;
}

.header.is-scrolled .logo-mark--header .logo-mark__color {
  clip-path: inset(0 0 0 0);
}

.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;
}

@media (prefers-reduced-motion: reduce) {
  .page-loader {
    transition: none;
  }

  .logo-mark--loader {
    transform: none;
  }
}

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

.nav__list {
  display: flex;
  gap: var(--s-1);
}

.nav__list a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 500;
  position: relative;
  border: none;
  background: transparent;
  box-shadow: none;
  transition: background var(--dur), color var(--dur);
}

.nav__list a:hover {
  background: var(--gray-surface);
  color: var(--blue);
}

.header[data-transparent]:not(.is-scrolled) .nav__list a:hover {
  background: rgba(255, 255, 255, .14);
  color: #fff;
}

.nav__close,
.nav__burger {
  display: none;
}

.nav__burger {
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform var(--dur), opacity var(--dur);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  margin-top: calc(-1 * var(--header-h));
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--blue-dark);
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 800ms var(--ease);
  background-size: cover;
  background-position: center;
}

.hero__slide.is-active {
  opacity: 1;
}

/* [ASSET] Cinematic-Platzhalter statt echtem Video */
.hero__slide:nth-child(1),
.hero__slide:nth-child(2),
.hero__slide:nth-child(3) {
  background-image: linear-gradient(120deg, rgba(15, 24, 48, 0.7) 0%, rgba(15, 24, 48, 0.4) 100%), url('img/hader.webp');
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 24, 48, .92) 0%, rgba(15, 24, 48, .7) 45%, rgba(15, 24, 48, .35) 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 420px);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  width: 100%;
  padding-block: var(--s-6);
}

.hero__content {
  color: #fff;
}

.hero__title {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  color: #fff;
  margin-bottom: var(--s-3);
}

.hero__sub {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, .85);
  margin-bottom: var(--s-4);
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-bottom: var(--s-5);
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  font-size: .92rem;
  color: rgba(255, 255, 255, .75);
}

.trust li {
  position: relative;
  padding-left: 20px;
}

.trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  transform: translateY(-50%);
}

.glass {
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--r-card-lg);
  padding: var(--s-4);
  color: #fff;
}

.hero__card {
  align-self: end;
  box-shadow: var(--shadow-2);
}

.hero__card-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #ff88a8;
  margin-bottom: var(--s-2);
}

.hero__card-caption {
  font-weight: 500;
  font-size: 1.05rem;
  min-height: 3.2em;
}

.hero__card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--s-3);
}

.dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .4);
  transition: background var(--dur), transform var(--dur), width var(--dur) var(--ease);
}

.dots button[aria-selected="true"] {
  background: var(--red);
  transform: scale(1.25);
}

/* Expanding progress dots (hero news + jobs carousel) */
.dots--progress {
  gap: 10px;
}

.dots--progress button {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, .38);
  transform: none;
  flex: 0 0 auto;
  padding: 0;
}

.dots--progress button[aria-selected="true"] {
  width: 52px;
  height: 10px;
  background: rgba(255, 255, 255, .28);
  /* gray pill */
  transform: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}

.dots--progress button .dot-progress {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff6b8a, var(--red));
  box-shadow: 0 0 12px rgba(227, 0, 68, .35);
  pointer-events: none;
}

.dots--progress button[aria-selected="false"] .dot-progress {
  width: 0% !important;
}

.pause-btn {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  transition: background var(--dur);
}

.pause-btn:hover {
  background: rgba(255, 255, 255, .28);
}

.pause-btn .ic-play {
  display: none;
}

.pause-btn[aria-pressed="true"] .ic-pause {
  display: none;
}

.pause-btn[aria-pressed="true"] .ic-play {
  display: block;
}

.pause-btn--light {
  background: rgba(255, 255, 255, .1);
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
}

.stats li {
  background: var(--white-soft);
  border: 1px solid var(--gray-border);
  border-radius: var(--r-card);
  padding: var(--s-4);
  box-shadow: var(--shadow-1);
}

.stats__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--blue);
}

.stats__label {
  color: var(--muted);
  font-size: .95rem;
}

/* ---------- Bloom Tiles ---------- */
.bloom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
}

.tile {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--white-soft);
  box-shadow: var(--shadow-1);
  border: 2px solid transparent;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur), border-color var(--dur);
}

.tile__img {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.tile__img::before {
  content: "";
  position: absolute;
  inset: 0;
  transition: transform var(--dur-slow) var(--ease);
  background-size: cover;
  background-position: center;
}

.tile__img--transport::before {
  background: linear-gradient(135deg, #193278, #24408f);
}

.tile__img--logistik::before {
  background: linear-gradient(135deg, #1d2f5f, #35508f);
}

.tile__img--baustoffe::before {
  background: linear-gradient(135deg, #3a3f4a, #6b7280);
}

.tile__img--ziersteine::before {
  background: linear-gradient(135deg, #4a3b52, #8a6f95);
}

.tile__img--entsorgung::before {
  background: linear-gradient(135deg, #14432f, #2f8f4e);
}

.tile__ph {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  height: 100%;
  color: rgba(255, 255, 255, .7);
  font-size: .82rem;
  letter-spacing: .04em;
}

.tile__body {
  padding: var(--s-3);
  transition: background var(--dur-slow) var(--ease);
}

.tile__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--s-1);
  transition: color var(--dur);
}

.tile__short {
  color: var(--muted);
  font-size: .95rem;
  transition: color var(--dur);
}

.tile__long {
  color: rgba(255, 255, 255, .88);
  font-size: .95rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease), opacity var(--dur), margin var(--dur);
}

.tile:hover,
.tile:focus-visible,
.tile.is-active {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--red);
}

.tile:hover .tile__img::before,
.tile.is-active .tile__img::before {
  transform: scale(1.06);
}

.tile:hover .tile__body,
.tile:focus-visible .tile__body,
.tile.is-active .tile__body {
  background: var(--blue-dark);
}

.tile:hover .tile__title,
.tile:focus-visible .tile__title,
.tile.is-active .tile__title {
  color: #fff;
}

.tile:hover .tile__short,
.tile:focus-visible .tile__short,
.tile.is-active .tile__short {
  color: rgba(255, 255, 255, .7);
}

.tile:hover .tile__long,
.tile:focus-visible .tile__long,
.tile.is-active .tile__long {
  max-height: 200px;
  opacity: 1;
  margin-top: var(--s-2);
}

/* ---------- Fuhrpark ---------- */
.fleet {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
}

.fleet__item {
  background: #fff;
  border: 1px solid var(--gray-border);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur), border-color var(--dur);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.fleet__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: rgba(227, 0, 68, .22);
}

.fleet__media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 168px;
  padding: 18px 16px 8px;
  background:
    radial-gradient(120% 90% at 50% 30%, #ffffff 0%, #f4f6fa 62%, #e9edf4 100%);
  border-bottom: 1px solid rgba(25, 50, 120, .08);
}

.fleet__media img {
  width: 100%;
  max-width: 280px;
  height: 132px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 10px 18px rgba(18, 26, 48, .14));
  transition: transform var(--dur-slow) var(--ease);
}

.fleet__item:hover .fleet__media img {
  transform: scale(1.04) translateY(-2px);
}

.fleet__body {
  padding: 16px 18px 18px;
  border-top: 3px solid var(--red);
  flex: 1 1 auto;
}

.fleet__item h3 {
  font-size: 1.12rem;
  color: var(--blue);
  margin-bottom: 6px;
}

.fleet__item p {
  color: var(--muted);
  font-size: .94rem;
  margin: 0;
  max-width: none;
}

/* ---------- Chips ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1) var(--s-2);
  justify-content: center;
  margin-top: var(--s-4);
}

.chips li {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: .9rem;
  font-weight: 500;
}

/* ---------- Careers Carousel ---------- */
.carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s-2);
  max-width: 100%;
  min-width: 0;
}

.carousel__viewport {
  overflow: hidden;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  padding-block: 4px;
}

.carousel__track {
  display: flex;
  gap: var(--s-3);
  transition: transform 600ms var(--ease);
  width: max-content;
  /* track grows with cards; viewport clips */
  will-change: transform;
}

.job {
  position: relative;
  box-sizing: border-box;
  flex: 0 0 360px;
  width: 360px;
  max-width: 360px;
  border-radius: var(--r-card);
  overflow: hidden;
  min-height: 380px;
  box-shadow: var(--shadow-2);
  border: 2px solid transparent;
  background: var(--blue-dark);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur), border-color var(--dur);
}

.job__img {
  position: absolute;
  inset: 0;
  transition: transform var(--dur-slow) var(--ease), opacity var(--dur) var(--ease);
}

.job__img--driver {
  background: url('img/Berufskraftfahrer.webp') center/cover no-repeat;
}

.job__img--dispo {
  background: url('img/Disponent.webp') center/cover no-repeat;
}

.job__img--aushilfe {
  background: url('img/Aushilfsfahrer.webp') center/cover no-repeat;
}

.job__img--teilzeit {
  background: url('img/Teilzeitkraft.webp') center/cover no-repeat;
}

.job__img .tile__ph {
  color: rgba(255, 255, 255, .55);
}

.job__grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 26, 48, .96) 0%, rgba(18, 26, 48, .45) 62%, transparent 72%);
}

.job__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--s-3);
  color: #fff;
}

.job__type {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: var(--s-1);
}

.job__title {
  font-size: 1.3rem;
  font-weight: 600;
}

.job__fact {
  font-size: .9rem;
  color: rgba(255, 255, 255, .85);
  margin-top: 4px;
  max-width: 90%;
}

.job__more {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease), opacity var(--dur), margin var(--dur);
}

.job__more ul {
  margin-bottom: var(--s-2);
}

.job__more li {
  position: relative;
  padding-left: 18px;
  font-size: .9rem;
  color: rgba(255, 255, 255, .9);
  margin-bottom: 4px;
}

.job__more li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

/* No upward lift — sticky header would cover the card image */
.job:hover,
.job:focus-within,
.job.is-active {
  transform: none;
  box-shadow: var(--shadow-hover);
  border-color: var(--red);
  z-index: 2;
}

.job:hover .job__img,
.job:focus-within .job__img,
.job.is-active .job__img {
  transform: scale(1.05);
  opacity: 0.55;
}

.job:hover .job__more,
.job:focus-within .job__more,
.job.is-active .job__more {
  max-height: 220px;
  opacity: 1;
  margin-top: var(--s-2);
}

.carousel__arrow {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  transition: background var(--dur), transform var(--dur);
}

.carousel__arrow:hover {
  background: var(--red);
}

.carousel__foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  margin-top: var(--s-4);
}

/* ---------- Logistikpark CTA ---------- */
.logipark {
  position: relative;
  padding-block: var(--s-7);
  overflow: hidden;
}

.logipark__media {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(16, 27, 56, 0.85) 0%, rgba(36, 64, 143, 0.85) 100%), url('img/Lager.webp') center/cover no-repeat;
}

.logipark__media .tile__ph {
  color: rgba(255, 255, 255, .35);
}

.logipark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 24, 48, .9), rgba(15, 24, 48, .55));
}

.logipark__inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

/* ---------- Smart Form ---------- */
.contact {
  align-items: start;
}

.formcard {
  background: var(--white-soft);
  border-radius: var(--r-card-lg);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.tab {
  padding: 16px 18px;
  font-weight: 600;
  font-size: .95rem;
  background: var(--gray-surface);
  color: var(--muted);
  border-bottom: 3px solid transparent;
  transition: background var(--dur), color var(--dur);
  line-height: 1.25;
}

.tab.is-active {
  background: var(--blue);
  color: #fff;
}

.form {
  padding: var(--s-4);
}

.field {
  margin-bottom: var(--s-3);
  display: flex;
  flex-direction: column;
}

.field label,
.field .label {
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.req {
  color: var(--red);
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-2);
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-border);
  border-radius: var(--r-btn);
  background: #fff;
  transition: border-color var(--dur), box-shadow var(--dur);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(25, 50, 120, .12);
}

textarea {
  resize: vertical;
}

.radios {
  display: flex;
  gap: var(--s-3);
  align-items: center;
}

.radios label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
  margin: 0;
}

.radios input {
  width: auto;
}

.field--check .check {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  font-size: .9rem;
}

.check input {
  width: auto;
  margin-top: 4px;
}

.check a {
  color: var(--blue);
  text-decoration: underline;
}

.field__err {
  color: var(--red);
  font-size: .8rem;
  margin-top: 5px;
  min-height: 1em;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--red);
}

.field.is-valid input,
.field.is-valid select {
  border-color: #2F8F4E;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

.is-loading .spinner {
  display: inline-block;
}

.is-loading .btn__label {
  opacity: .7;
}

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

.form__status {
  margin-top: var(--s-3);
  font-weight: 600;
}

.form__status.is-success {
  color: #2F8F4E;
}

.form__status.is-error {
  color: var(--red);
}

.contact__aside {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.map-ph {
  height: 240px;
  border-radius: var(--r-card-lg);
  background: linear-gradient(135deg, #dfe3ec, #c8cede);
  display: grid;
  place-items: center;
  border: 1px solid var(--gray-border);
}

.map-ph .tile__ph {
  color: var(--muted);
}

.contacts li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-border);
}

.contacts li:last-child {
  border-bottom: none;
}

.contacts svg {
  color: var(--red);
  flex: 0 0 auto;
  margin-top: 2px;
}

.contacts a:hover {
  color: var(--blue);
  text-decoration: underline;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--blue-dark);
  color: var(--white-soft);
  padding-top: var(--s-6);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s-4);
  padding-bottom: var(--s-5);
}

.footer__logo {
  filter: brightness(0) invert(1);
  height: 40px;
  width: auto;
  margin-bottom: var(--s-2);
}

.footer__brand .muted {
  color: rgba(255, 255, 255, .6);
}

.footer__col h3 {
  font-size: 1rem;
  margin-bottom: var(--s-2);
  color: #fff;
}

.footer__col a {
  color: rgba(255, 255, 255, .75);
  display: inline-block;
  padding: 5px 0;
  transition: color var(--dur);
}

.footer__col a:hover {
  color: #fff;
}

.socials {
  display: flex;
  gap: var(--s-2);
  margin-top: var(--s-3);
}

.socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  transition: background var(--dur), transform var(--dur);
}

.socials a:hover {
  background: var(--red);
  transform: translateY(-2px);
}

.footer__bar {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-block: var(--s-3);
  font-size: .88rem;
  color: rgba(255, 255, 255, .55);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive: laptop / tablet / mobile ---------- */

/* Large desktop: keep side gutters, never edge-bleed content */
@media (min-width: 1440px) {
  :root {
    --maxw: 1280px;
    --page-gutter: 40px;
  }
}

/* Laptop (≤1366 / typical notebooks) — centered content + side gutters */
@media (max-width: 1366px) {
  :root {
    --header-h: 72px;
    --maxw: 1120px;
    --page-gutter: 40px;
  }

  .nav__list a {
    padding: 8px 11px;
    font-size: .93rem;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 360px);
    gap: 32px;
  }

  .hero__title {
    font-size: clamp(2.1rem, 3.5vw, 2.9rem);
  }

  .service-card {
    min-height: 280px;
    padding: 24px;
  }

  .job {
    flex: 0 0 320px;
    width: 320px;
    max-width: 320px;
    min-height: 360px;
  }
}

/* Small laptop / large tablet landscape (≤1200) */
@media (max-width: 1200px) {
  :root {
    --maxw: 1080px;
    --page-gutter: 28px;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
    gap: 24px;
  }

  .job {
    flex-basis: 320px;
    width: 320px;
    max-width: 320px;
  }
}

/* Tablet (≤1024) */
@media (max-width: 1024px) {
  :root {
    --header-h: 68px;
    --s-7: 72px;
    --maxw: 100%;
    --page-gutter: 24px;
  }

  .hero {
    min-height: auto;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--s-4);
    padding-block: 48px 40px;
  }

  .hero__card {
    max-width: 520px;
    width: 100%;
    align-self: start;
  }

  .hero__cta {
    gap: 12px 16px;
  }

  .bloom {
    grid-template-columns: repeat(2, 1fr);
  }

  .fleet {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Tablet jobs: ~2 full cards, fixed width (never collapse to thin strips) */
  .carousel {
    gap: 12px;
  }

  .carousel__arrow {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
  }

  .carousel__viewport {
    overflow: hidden;
    flex: 1 1 auto;
    min-width: 0;
  }

  .carousel__track {
    display: flex;
    width: max-content;
    max-width: none;
    transition: transform 600ms var(--ease);
  }

  .job {
    flex: 0 0 320px !important;
    width: 320px !important;
    max-width: 320px !important;
    min-width: 320px !important;
    min-height: 400px;
  }

  .job__title {
    font-size: 1.2rem;
  }

  .job__body {
    padding: 18px;
  }

  .job__more {
    max-height: 200px;
  }

  /* keep readable on tablet hover/focus */

  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: var(--s-3);
  }

  .footer__grid .footer__col:last-child {
    grid-column: 2 / -1;
  }

  .logo-mark--header img {
    height: 38px;
  }

  .section__head {
    gap: var(--s-3);
  }

  .h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.2rem);
  }
}

/* Large phone / small tablet (≤768) */
@media (max-width: 768px) {
  :root {
    --header-h: 64px;
    --s-5: 36px;
    --s-6: 48px;
    --s-7: 56px;
  }

  .container {
    padding-inline: 18px;
  }

  .section {
    padding-block: var(--s-6);
  }

  /* Header + mobile drawer — logo + phone + burger only */
  .header__inner {
    height: var(--header-h);
    gap: 10px;
    position: relative;
  }

  .header.is-scrolled .header__inner {
    height: 56px;
  }

  .header.is-scrolled {
    background: rgba(248, 249, 250, .97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  body.nav-open .header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transition: none !important;
  }

  .logo-mark--header img {
    height: 34px;
  }

  /* Take nav completely out of header flex flow */
  .nav {
    position: fixed;
    inset: 0;
    z-index: 200;
    width: 100%;
    height: 100%;
    margin: 0;
    background: var(--blue-dark);
    transform: translateX(100%);
    transition: transform var(--dur) var(--ease), visibility var(--dur);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--s-5);
    overflow-y: auto;
    visibility: hidden;
    /* prevent ghost desktop links in header */
    pointer-events: none;
  }

  .nav.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .nav__list {
    flex-direction: column;
    gap: 4px;
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
  }

  .nav__list a {
    color: #fff !important;
    font-size: 1.25rem;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, .12) !important;
    background: rgba(255, 255, 255, .04) !important;
    border-radius: 14px;
    display: block;
    text-align: left;
  }

  .nav__list a:hover,
  .nav__list a:focus-visible {
    background: rgba(255, 255, 255, .12) !important;
    color: #fff !important;
  }

  .nav__close {
    display: grid !important;
    place-items: center;
    position: absolute;
    top: max(14px, env(safe-area-inset-top));
    right: 16px;
    font-size: 2.2rem;
    color: #fff;
    line-height: 1;
    width: 48px;
    height: 48px;
  }

  .nav__burger {
    display: flex !important;
    flex-direction: column;
  }

  .header__actions .btn--secondary {
    display: none !important;
  }

  .header__actions {
    gap: 8px;
    margin-left: auto;
  }

  .header__logo {
    flex: 0 1 auto;
    min-width: 0;
  }

  /* Hero — keep under sticky header, no clipped title on phones */
  .hero {
    min-height: auto;
    margin-top: calc(-1 * var(--header-h));
    padding-top: calc(var(--header-h) + 8px);
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-block: 28px 28px;
  }

  .hero__content {
    padding-top: 4px;
  }

  .hero__title {
    font-size: clamp(1.9rem, 8.4vw, 2.45rem);
    margin-bottom: 14px;
    line-height: 1.08;
  }

  .hero__sub {
    font-size: 1rem;
    margin-bottom: 18px;
    max-width: none;
  }

  .hero__cta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 18px;
  }

  .hero__cta .btn {
    width: 100%;
    min-width: 0;
  }

  .hero__cta .link-arrow {
    width: auto;
    justify-self: start;
    text-align: left;
    padding: 6px 0 2px;
  }

  .hero__card {
    max-width: none;
    width: 100%;
  }

  .hero__card-caption {
    font-size: 1rem;
    min-height: 0;
  }

  .trust {
    gap: 10px 16px;
    font-size: .88rem;
  }

  .fleet__media {
    min-height: 148px;
    padding: 14px 12px 6px;
  }

  .fleet__media img {
    height: 118px;
    max-width: 240px;
  }

  /* Layout grids */
  .grid-2 {
    grid-template-columns: 1fr;
    gap: var(--s-4);
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stats li {
    padding: 18px 16px;
  }

  .stats__num {
    font-size: 1.55rem;
  }

  .bloom {
    grid-template-columns: 1fr;
  }

  .fleet {
    grid-template-columns: 1fr;
  }

  .section__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: var(--s-4);
  }

  .section__head .btn {
    width: 100%;
  }

  /* Company CTA */
  .company-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
  }

  .company-cta__note {
    max-width: none;
    width: 100%;
  }

  .company-cta__arrow {
    display: none;
  }

  .company-cta .btn {
    width: 100%;
    margin: 0;
  }

  /* Jobs carousel — full readable card on phone */
  .carousel {
    max-width: 100%;
    min-width: 0;
    gap: 0;
    padding-inline: 0;
  }

  .carousel__arrow {
    display: none !important;
    /* no side arrows on phone — they clip text */
  }

  .carousel__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    padding: 8px 16px 12px;
    scrollbar-width: none;
  }

  .carousel__viewport::-webkit-scrollbar {
    display: none;
  }

  .carousel__track {
    transition: none;
    width: max-content;
    max-width: none;
    transform: none !important;
    /* native swipe on phone */
    gap: 14px;
  }

  .job {
    /* beat tablet !important widths on phone */
    flex: 0 0 calc(100vw - 48px) !important;
    width: calc(100vw - 48px) !important;
    max-width: calc(100vw - 48px) !important;
    min-width: calc(100vw - 48px) !important;
    min-height: 0 !important;
    height: auto !important;
    scroll-snap-align: center;
    /* switch from absolute overlay layout → stacked so text is never clipped */
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .job__img {
    position: relative;
    inset: auto;
    flex: 0 0 140px;
    min-height: 140px;
    width: 100%;
  }

  .job__grad {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(18, 26, 48, .55) 0%, transparent 55%);
    pointer-events: none;
  }

  .job__body {
    position: relative;
    inset: auto;
    flex: 1 1 auto;
    padding: 18px 18px 20px;
    background: linear-gradient(180deg, #16233f 0%, #121A30 100%);
  }

  .job__title {
    font-size: 1.2rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .job__fact {
    font-size: .92rem;
    line-height: 1.4;
  }

  /* Touch: details always fully visible */
  .job__more {
    max-height: none !important;
    opacity: 1 !important;
    margin-top: 12px !important;
    overflow: visible !important;
  }

  .job__more .btn {
    width: 100%;
  }

  .tile__long {
    max-height: none;
    opacity: 1;
    margin-top: var(--s-2);
  }

  .tile:hover,
  .tile.is-active {
    transform: none;
  }

  /* Chips / logipark */
  .chips {
    justify-content: flex-start;
    gap: 8px;
  }

  .chips li {
    font-size: .84rem;
    padding: 7px 12px;
  }

  .logipark {
    padding-block: var(--s-6);
  }

  .logipark__inner {
    max-width: none;
  }

  /* Form + contact — always single column on phone */
  .grid-2,
  .contact.grid-2,
  .contact {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .formcard,
  .contact__aside {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

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

  .form {
    padding: 18px;
  }

  .tabs {
    grid-template-columns: 1fr 1fr;
  }

  .tabs button {
    font-size: .9rem;
    padding: 14px 10px;
  }

  .radios {
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  .contact__aside {
    gap: 16px;
  }

  .map-card,
  .map-ph {
    width: 100%;
    height: 240px;
  }

  /* Footer */
  .footer {
    padding-top: var(--s-5);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
  }

  .footer__grid .footer__col:last-child {
    grid-column: auto;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  /* Progress dots a bit smaller */
  .dots--progress button[aria-selected="true"] {
    width: 40px;
  }

  /* Page loader */
  .page-loader__inner {
    width: min(220px, 72vw);
  }

  .page-loader__label {
    font-size: .76rem;
  }
}

/* Small phones (≤480) */
@media (max-width: 480px) {
  :root {
    --header-h: 60px;
  }

  .container {
    padding-inline: 16px;
  }

  .header__inner {
    height: var(--header-h);
  }

  .header.is-scrolled .header__inner {
    height: 54px;
  }

  .logo-mark--header img {
    height: 30px;
  }

  .btn-icon {
    width: 42px;
    height: 42px;
  }

  .nav__burger {
    width: 42px;
    height: 42px;
  }

  .hero__inner {
    padding-block: 28px 28px;
    gap: 22px;
  }

  .hero__title {
    font-size: clamp(1.9rem, 10.5vw, 2.35rem);
  }

  .hero__sub {
    font-size: .98rem;
  }

  .hero__card {
    padding: 18px;
  }

  .hero__card-badge {
    font-size: 11px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .stats__num {
    font-size: 1.7rem;
  }

  .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .hero__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__cta .btn {
    width: 100%;
    min-width: 0;
  }

  .hero__cta .link-arrow {
    width: 100%;
    text-align: center;
  }

  .job {
    flex: 0 0 calc(100vw - 32px) !important;
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
    min-width: calc(100vw - 32px) !important;
  }

  .job__title {
    font-size: 1.12rem;
  }

  .job__img {
    flex-basis: 120px;
    min-height: 120px;
  }

  .carousel__viewport {
    padding-inline: 16px;
  }

  /* Contact form stack — double-ensure on small phones */
  .contact.grid-2,
  .grid-2 {
    grid-template-columns: 1fr !important;
  }

  .formcard {
    order: 1;
  }

  .contact__aside {
    order: 2;
  }

  .map-card {
    height: 220px;
  }

  .service-card {
    padding: 20px;
    border-radius: 18px;
  }

  .service-card h3 {
    font-size: 1.2rem;
  }

  .service-card__num {
    font-size: 2.6rem;
    right: 14px;
    top: 12px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__bar {
    font-size: .82rem;
    text-align: center;
  }

  .formcard {
    border-radius: 16px;
  }

  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
    /* prevent iOS zoom */
  }

  p {
    max-width: none;
  }

  .lead {
    font-size: 1.02rem;
  }
}

/* Very small (≤360) */
@media (max-width: 360px) {
  .container {
    padding-inline: 14px;
  }

  .hero__title {
    font-size: 1.75rem;
  }

  .trust li {
    font-size: .82rem;
  }

  .dots--progress button[aria-selected="true"] {
    width: 34px;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .tile:hover,
  .job:hover,
  .tile.is-active,
  .job.is-active {
    transform: none;
  }
}


/* ---------- Professional fixes: nav outline, hero indicator, company CTA, services, OSM ---------- */
:root {
  --rose-line: rgba(255, 126, 160, .62);
  --rose-soft: rgba(255, 126, 160, .12);
}

/* Nav: no outline/border around sections — clean text links only */
.nav__list a:hover,
.nav__list a:focus-visible {
  background: var(--rose-soft);
  color: var(--blue);
}

.header[data-transparent]:not(.is-scrolled) .nav__list a:hover,
.header[data-transparent]:not(.is-scrolled) .nav__list a:focus-visible {
  background: rgba(255, 126, 160, .18);
  color: #fff;
}

.company-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: var(--s-4);
  flex-wrap: wrap;
}

.company-cta__note {
  margin: 0;
  max-width: 230px;
  color: var(--blue-dark);
  font-weight: 700;
  line-height: 1.35;
  padding: 12px 14px;
  border-left: 3px solid var(--red);
  background: rgba(227, 0, 68, .045);
  border-radius: 0 14px 14px 0;
}

.company-cta__arrow {
  width: min(170px, 22vw);
  min-width: 118px;
  color: #ef7f9e;
  transform: rotate(-2deg);
}

.company-cta .btn {
  margin-left: 0;
}

.services-section {
  background: linear-gradient(180deg, #f4f6fa 0%, #eef1f6 100%);
}

.services-head {
  align-items: flex-start;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--s-3);
}

.service-card {
  position: relative;
  grid-column: span 2;
  min-height: 310px;
  padding: 28px;
  border: 1px solid rgba(25, 50, 120, .12);
  border-radius: 22px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 1px 2px rgba(18, 26, 48, .04), 0 14px 34px rgba(18, 26, 48, .07);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur), border-color var(--dur);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), #ff9ab4);
  opacity: .88;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(227, 0, 68, .26);
  box-shadow: 0 4px 16px rgba(18, 26, 48, .08), 0 20px 44px rgba(18, 26, 48, .12);
}

.service-card--featured {
  grid-column: span 4;
  background: linear-gradient(135deg, #121A30 0%, #193278 100%);
  color: #fff;
}

.service-card__num {
  position: absolute;
  right: 22px;
  top: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.4rem;
  line-height: 1;
  color: rgba(25, 50, 120, .08);
}

.service-card--featured .service-card__num {
  color: rgba(255, 255, 255, .12);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--red);
  background: rgba(227, 0, 68, .08);
  margin-bottom: 22px;
}

.service-card__icon svg {
  width: 25px;
  height: 25px;
}

.service-card--featured .service-card__icon {
  color: #fff;
  background: rgba(255, 255, 255, .13);
}

.service-card h3 {
  color: var(--blue);
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.service-card--featured h3 {
  color: #fff;
}

.service-card p {
  color: var(--muted);
  font-size: .98rem;
  margin-bottom: 22px;
}

.service-card--featured p {
  color: rgba(255, 255, 255, .76);
  max-width: 58ch;
}

.service-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-card li {
  border-radius: 999px;
  padding: 7px 11px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--blue);
  background: rgba(25, 50, 120, .07);
}

.service-card--featured li {
  color: #fff;
  background: rgba(255, 255, 255, .12);
}

.map-card {
  position: relative;
  overflow: hidden;
  height: 320px;
  border-radius: var(--r-card-lg);
  border: 1px solid rgba(25, 50, 120, .14);
  box-shadow: var(--shadow-1);
  background: #dfe3ec;
}

.map-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: saturate(.92) contrast(.98);
}

.map-card__link {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--blue);
  font-weight: 700;
  font-size: .86rem;
  box-shadow: 0 6px 18px rgba(18, 26, 48, .14);
}

.map-card__link:hover {
  color: var(--red);
  text-decoration: none;
}

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

  .service-card,
  .service-card--featured {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .company-cta {
    align-items: flex-start;
    gap: 12px;
  }

  .company-cta__arrow {
    display: none;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 0;
    padding: 24px;
  }

  .map-card {
    height: 280px;
  }
}

@media (max-width: 480px) {
  .company-cta .btn {
    width: 100%;
  }

  .company-cta__note {
    max-width: none;
    width: 100%;
  }
}


/* ---------- Final polish: CTA arrow alignment + OSM fallback ---------- */
@media (min-width: 1025px) {
  .company-cta {
    flex-wrap: nowrap;
    gap: 12px;
  }

  .company-cta__note {
    max-width: 188px;
    flex: 0 0 188px;
    font-size: .92rem;
  }

  .company-cta__arrow {
    width: 96px;
    min-width: 96px;
    transform: rotate(-4deg) translateY(-2px);
  }

  .company-cta .btn {
    flex: 0 0 auto;
    padding-inline: 22px;
  }
}

.map-card {
  background:
    radial-gradient(circle at 68% 42%, rgba(227, 0, 68, .16) 0 8px, transparent 9px),
    linear-gradient(120deg, transparent 42%, rgba(25, 50, 120, .08) 43% 46%, transparent 47%),
    linear-gradient(28deg, transparent 48%, rgba(25, 50, 120, .07) 49% 52%, transparent 53%),
    linear-gradient(135deg, #e8ebf2, #d7dde8);
}

.map-card iframe {
  position: relative;
  z-index: 1;
}

.map-card__fallback {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 7px;
  padding: 24px;
  text-align: center;
  color: var(--blue);
  background:
    radial-gradient(circle at 52% 48%, rgba(255, 255, 255, .62), rgba(255, 255, 255, .2) 44%, transparent 45%),
    linear-gradient(135deg, rgba(232, 235, 242, .9), rgba(215, 221, 232, .88));
  transition: opacity var(--dur), visibility var(--dur);
}

.map-card.is-loaded .map-card__fallback {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.map-card__pin {
  color: var(--red);
  font-size: 1.7rem;
  line-height: 1;
  text-shadow: 0 8px 20px rgba(227, 0, 68, .22);
}

.map-card__fallback strong {
  font-family: var(--font-display);
  font-size: 1.12rem;
}

.map-card__fallback span:last-child {
  color: var(--muted);
  font-weight: 600;
  font-size: .92rem;
}

.map-card__link {
  z-index: 3;
}


/* ---------- Mobile text overflow safety ---------- */
.hero__title,
.hero__title .text-accent {
  overflow-wrap: anywhere;
  word-break: normal;
}

/* Extra containment so wide children never blow page width.
   IMPORTANT: do NOT set max-width:100% on .hero__inner — that class is on the
   same element as .container and would override max-width: var(--maxw),
   stretching laptop layout edge-to-edge. */
.carousel,
.services-grid,
.formcard,
.footer__grid,
.bloom,
.fleet {
  max-width: 100%;
  min-width: 0;
}

.hero__inner {
  min-width: 0;
}

/* Ensure container max-width always wins for centered laptop gutters */
.container {
  max-width: min(100%, var(--maxw));
}

body.nav-open {
  overflow: hidden;
  touch-action: none;
}

/* Legal / subpages: solid header */
body.page-legal .header {
  background: var(--white-soft);
  box-shadow: var(--shadow-1);
}

body.page-legal .header[data-transparent]:not(.is-scrolled) {
  background: var(--white-soft);
}

body.page-legal .header[data-transparent]:not(.is-scrolled) .nav__list a {
  color: var(--ink);
}

body.page-legal .header[data-transparent]:not(.is-scrolled) .btn--secondary {
  border-color: var(--blue);
  color: var(--blue);
}

body.page-legal .header[data-transparent]:not(.is-scrolled) .nav__burger span {
  background: var(--ink);
}

body.page-legal .logo-mark--header {
  --reveal: 1;
}

body.page-legal .logo-mark--header .logo-mark__white {
  opacity: 0;
}

body.page-legal .logo-mark--header .logo-mark__color {
  clip-path: inset(0 0 0 0);
}

/* ============ SCROLL TO TOP BUTTON ============ */
.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--gray-border);
  box-shadow: 0 4px 20px rgba(18, 26, 48, 0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.9);
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease), transform 0.35s var(--ease), background-color 0.25s var(--ease);
  outline: none;
  padding: 0;
}

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

.scroll-top:hover {
  background-color: #f5f7fc;
  transform: scale(1.05);
}

.scroll-top:active {
  transform: scale(0.95);
}

.scroll-top__progress {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  pointer-events: none;
}

.scroll-top__circle-bg {
  stroke: rgba(18, 26, 48, 0.06);
}

.scroll-top__circle-fg {
  stroke: var(--red);
  transition: stroke-dashoffset 0.1s linear;
}

.scroll-top__arrow {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  z-index: 2;
  transition: transform 0.25s var(--ease);
}

.scroll-top:hover .scroll-top__arrow {
  transform: translateY(-2px);
}