/* ==========================================================================
   Carry my Car — design system
   Palette, type scale and surfaces taken from the live site's own tokens.
   Change a value here and it changes everywhere.
   ========================================================================== */

/* --- Fonts (self-hosted, no network needed) ------------------------------- */
@font-face { font-family: Rubik; font-style: normal; font-weight: 300;
  src: url("assets/fonts/rubik-300.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: Rubik; font-style: normal; font-weight: 400;
  src: url("assets/fonts/rubik-400.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: Rubik; font-style: normal; font-weight: 500;
  src: url("assets/fonts/rubik-500.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: Rubik; font-style: normal; font-weight: 600;
  src: url("assets/fonts/rubik-600.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: Roboto; font-style: normal; font-weight: 400;
  src: url("assets/fonts/roboto-400.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: Roboto; font-style: normal; font-weight: 500;
  src: url("assets/fonts/roboto-500.ttf") format("truetype"); font-display: swap; }

:root {
  /* Colour */
  --accent:        #5A9832;
  --accent-hover:  #6BB03C;
  --cream:         #FBF9ED;
  --white:         #FEFEFE;
  --text:          #807E7C;
  --text-dim:      #706D69;
  --text-faint:    #5A5757;
  --silver:        #C0C0C0;

  --black:         #000000;
  --surface-1:     #252422;
  --surface-2:     #31302D;
  --surface-3:     #3A3936;
  --surface-4:     #454542;

  --page-bg: linear-gradient(135deg, var(--surface-2) 0%, var(--black) 50%);
  --hairline: rgba(251, 249, 237, .10);

  /* Type */
  --font: Rubik, Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-display: 56px;   /* big page/section headings */
  --fs-h1:      40px;
  --fs-h2:      34px;
  --fs-h3:      24px;
  --fs-h4:      22px;
  --fs-body:    16px;
  --fs-sm:      15px;
  --fs-xs:      14px;
  --fs-xxs:     12px;
  --fs-counter: 100px;
  /* Unitless so they inherit as a ratio — an em value would freeze at the
     body's pixel size and collapse the big display headings. */
  --lh-tight:   1.147;
  --lh-body:    1.47;
  --ls-tight:   -0.2px;

  /* Space & shape */
  --shell:      1200px;
  --gut:        24px;
  --sec-y:      104px;
  --radius:     12px;
  --radius-lg:  18px;
  --pill:       999px;
  --header-h:   84px;
  --ease:       cubic-bezier(.22, .61, .36, 1);
}

@media (max-width: 1024px) {
  :root {
    --fs-display: 38px; --fs-h1: 34px; --fs-h2: 28px; --fs-h3: 23px;
    --fs-body: 15px; --fs-counter: 55px; --sec-y: 76px; --header-h: 74px;
  }
}
@media (max-width: 767px) {
  :root {
    --fs-display: 30px; --fs-h1: 29px; --fs-h2: 26px; --fs-h3: 20px;
    --fs-counter: 50px; --sec-y: 60px; --gut: 20px; --header-h: 68px;
  }
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--black) var(--page-bg) fixed;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  margin: 0;
  color: var(--cream);
  font-weight: 400;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* --- Layout helpers ------------------------------------------------------- */
.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: var(--sec-y); }
.section--tight { padding-block: calc(var(--sec-y) * .6); }
.section-head { max-width: 760px; margin-inline: auto; text-align: center; }
.section-head p { margin-top: 18px; color: var(--text); }
.eyebrow {
  font-size: var(--fs-xs); font-weight: 300; text-transform: uppercase;
  letter-spacing: 1.6px; color: var(--accent); margin: 0 0 14px;
}
.lead { font-size: var(--fs-h4); line-height: 1.4; color: var(--silver); }
.accent { color: var(--accent); }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; border: 0; border-radius: var(--pill);
  background: var(--accent); color: var(--cream);
  font-size: var(--fs-xs); font-weight: 400; letter-spacing: .2px;
  cursor: pointer; transition: background .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--accent); color: var(--cream); }
.btn--ghost:hover { background: var(--accent); }
.btn--quiet { background: var(--surface-3); }
.btn--quiet:hover { background: var(--surface-4); }

/* --- Splash --------------------------------------------------------------- */
#splash {
  position: fixed; inset: 0; z-index: 999;
  display: grid; place-items: center;
  background: var(--black);
  transition: opacity .6s var(--ease), transform .7s var(--ease), visibility .7s;
  /* Belt and braces: the splash clears itself even if the script never runs,
     so a stalled JS load can never leave a black screen over the site. */
  animation: splash-out .6s var(--ease) 2.4s forwards;
}
#splash img { width: 190px; animation: splash-in .8s var(--ease) both; }
#splash.is-gone { opacity: 0; visibility: hidden; transform: translateY(-24px); pointer-events: none; }
@keyframes splash-in { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes splash-out {
  to { opacity: 0; visibility: hidden; transform: translateY(-24px); pointer-events: none; }
}

/* --- Header --------------------------------------------------------------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 90;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s var(--ease), backdrop-filter .3s var(--ease), box-shadow .3s var(--ease);
}
.header.is-stuck {
  background: rgba(8, 8, 8, .86);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--hairline);
}
.header .shell { display: flex; align-items: center; gap: 28px; }
.brand { flex: none; }
.brand img { width: 96px; }

.nav { margin-inline: auto; display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: var(--fs-sm); font-weight: 300; color: var(--cream);
  padding-block: 6px; position: relative; white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--cream); transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--white); }

.has-sub { position: relative; }
.has-sub > button {
  display: inline-flex; align-items: center; gap: 7px;
  background: none; border: 0; cursor: pointer;
  font-size: var(--fs-sm); font-weight: 300; color: var(--cream); padding-block: 6px;
}
.has-sub > button svg { transition: transform .25s var(--ease); }
.has-sub:hover > button svg { transform: rotate(180deg); }
.sub {
  position: absolute; top: calc(100% + 14px); left: 50%; translate: -50% 0;
  min-width: 190px; padding: 10px; margin: 0; list-style: none;
  background: var(--surface-1); border: 1px solid var(--hairline);
  border-radius: var(--radius); box-shadow: 0 20px 40px rgba(0,0,0,.5);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 9px 12px; border-radius: 8px; }
.sub a::after { display: none; }
.sub a:hover { background: var(--surface-3); }

.burger {
  display: none; flex: none; width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer; padding: 11px;
}
.burger span { display: block; height: 1.5px; background: var(--cream); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s; }
.burger span + span { margin-top: 5px; }
body.menu-open .burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* --- Off-canvas menu ------------------------------------------------------ */
.scrim {
  position: fixed; inset: 0; z-index: 95; background: rgba(0,0,0,.6);
  backdrop-filter: blur(3px); opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
body.menu-open .scrim { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; z-index: 96; inset: 0 0 0 auto;
  width: min(340px, 86vw); padding: 26px 24px;
  background: var(--surface-1); border-left: 1px solid var(--hairline);
  transform: translateX(100%); transition: transform .38s var(--ease);
  overflow-y: auto;
}
body.menu-open .drawer { transform: none; }
.drawer .brand img { width: 110px; margin-bottom: 30px; }
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a {
  padding: 14px 0; font-size: 17px; color: var(--cream);
  border-bottom: 1px solid var(--hairline);
}
.drawer nav a.sub-item { padding-left: 18px; font-size: var(--fs-sm); color: var(--silver); }
.drawer .btn { margin-top: 26px; width: 100%; justify-content: center; }

/* --- Hero ----------------------------------------------------------------- */
.hero {
  position: relative; min-height: 640px;
  display: flex; align-items: center;
  padding-block: calc(var(--header-h) + 60px) 80px;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--hero-img); background-size: cover; background-position: center;
  /* Fade the photo to nothing at the bottom so it dissolves into the page
     instead of ending on a hard horizontal seam. */
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 48%, rgba(0,0,0,.6) 74%, transparent 94%);
          mask-image: linear-gradient(180deg, #000 0%, #000 48%, rgba(0,0,0,.6) 74%, transparent 94%);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.45) 50%, rgba(0,0,0,.1) 100%),
    linear-gradient(180deg, rgba(0,0,0,.5) 0%, transparent 32%, rgba(0,0,0,.8) 100%);
  /* Released later than the photo above, so the darkening is still at full
     strength while the image fades and only lets go once it has gone. */
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 80%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 80%, transparent 100%);
}
.hero > * { position: relative; z-index: 1; }
.hero-copy { max-width: 620px; }
/* Small label above the headline. Deliberately not an <h1>: each page's real
   h1 is the hero title below, which is what search results should show. */
.hero-copy .hero-eyebrow {
  font-size: var(--fs-xs); font-weight: 300; letter-spacing: 2px;
  text-transform: uppercase; color: var(--cream); margin-bottom: 18px;
}
.hero-copy .hero-title {
  font-size: var(--fs-display); color: var(--cream);
  line-height: 1.12; letter-spacing: var(--ls-tight);
}
.hero-copy .hero-title span { display: block; }
.hero-copy .tagline { margin-top: 16px; font-size: var(--fs-h3); color: var(--silver); }
.hero-copy .btn { margin-top: 32px; }
/* Hero art lives here, not in an inline style: a url() inside a custom
   property resolves against the stylesheet that uses it, so declaring these
   inline against the document would resolve to /static/static/... */
.hero--home      { --hero-img: url("assets/img/hero-home.jpg"); }
.hero--about     { --hero-img: url("assets/img/hero-about.jpg"); }
.hero--handover  { --hero-img: url("assets/img/driver-handover.jpg"); }
.hero--tracking  { --hero-img: url("assets/img/tracking.jpg"); }
.hero--fleet     { --hero-img: url("assets/img/fleet.jpg"); }
.hero--pickup    { --hero-img: url("assets/img/driver-pickup.jpg"); }
.hero--short     { min-height: 420px; }

.hero--split .shell { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero--split .hero-copy { max-width: none; }
.hero--center { text-align: center; min-height: 520px; }
.hero--center .hero-copy { max-width: 820px; margin-inline: auto; }

/* These two layouts run copy across the full width, so the directional
   gradient alone leaves text sitting on the bright side of the photo. */
.hero--split::after, .hero--center::after {
  background:
    linear-gradient(180deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.72) 100%),
    linear-gradient(90deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.3) 100%);
}

/* rotating word on the Werkstatt hero */
.rotator { color: var(--accent); display: block; min-height: 1.2em; }

/* --- Cards ---------------------------------------------------------------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  display: flex; flex-direction: column;
  background: var(--surface-1); border: 1px solid var(--hairline);
  border-radius: var(--radius-lg); padding: 30px;
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.card:hover { transform: translateY(-5px); border-color: rgba(90,152,50,.5); background: var(--surface-2); }
.card h3 { margin-bottom: 12px; }
.card p { font-size: var(--fs-sm); }
/* auto margin keeps the buttons on one line across a row of uneven cards */
.card p { margin-bottom: 22px; }
.card p:only-of-type { margin-bottom: 0; }
.card .btn { margin-top: auto; align-self: flex-start; }
.card--media { padding: 0; overflow: hidden; }
.card--media img { width: 100%; height: 190px; object-fit: cover; }
.card--media .card-body { padding: 26px 26px 30px; display: flex; flex-direction: column; }
.card--media .card-body h3 { text-align: center; }
.card--media .card-body p { text-align: center; }

/* Team cards */
.team-card { background: var(--surface-1); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--hairline); transition: transform .3s var(--ease); }
.team-card:hover { transform: translateY(-5px); }
.team-card img { width: 100%; aspect-ratio: 3 / 3.4; object-fit: cover; object-position: top center; }
.team-card .who { padding: 20px 22px 24px; }
.team-card .who strong { display: block; color: var(--cream); font-size: 20px; font-weight: 400; }
.team-card .who span { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 1.2px; }

/* --- Value list ----------------------------------------------------------- */
.panel {
  background: var(--surface-1); border: 1px solid var(--hairline);
  border-radius: var(--radius-lg); padding: 44px;
}
.checklist { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-sm); }
.checklist svg { flex: none; margin-top: 4px; color: var(--accent); }

/* --- Split feature -------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius-lg); width: 100%; height: 100%;
  max-height: 460px; object-fit: cover; }
.split--flip .split-media { order: 2; }

/* --- Counter -------------------------------------------------------------- */
.counter { text-align: center; }
.counter .num {
  font-size: var(--fs-counter); font-weight: 300; color: var(--cream);
  line-height: 1.1; letter-spacing: .6px;
}
.counter .cap { font-size: var(--fs-h3); color: var(--silver); }

/* --- Cities --------------------------------------------------------------- */
.cities { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.cities span {
  padding: 9px 24px; border-radius: var(--pill);
  border: 1px solid rgba(90,152,50,.5); color: var(--cream);
  font-size: var(--fs-sm);
}

/* --- Partner marquee ------------------------------------------------------ */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.marquee-track { display: flex; gap: 22px; width: max-content; animation: slide 52s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* Nearly every partner mark is dark artwork drawn on white, so it needs a
   light tile to be legible here — that keeps each logo in its real brand
   colours instead of flattening them all to silhouettes. */
/* Monochrome marks straight on the page — no tile. Every raster logo has been
   baked to a white silhouette on transparency, so the whiten filter can no
   longer turn a logo's own white background into a solid block.
   Wide-and-short box: these range from square (BMW) to 7:1 wordmarks, and a
   taller box would let the square ones tower over the rest. */
.partner {
  flex: none; display: grid; place-items: center;
  width: 180px; height: 78px; padding: 19px 15px;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  opacity: .55;
}
.partner:hover { opacity: 1; transform: translateY(-3px); }
.partner img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  filter: brightness(0) invert(1);
}

@keyframes slide { to { transform: translateX(-50%); } }

@media (max-width: 767px) {
  .marquee-track { gap: 16px; }
  .partner { width: 148px; height: 66px; padding: 15px 12px; }
}

/* --- Video card ----------------------------------------------------------- */
.video-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.video-card img { width: 100%; }

/* --- Legal pages (Impressum, Datenschutz) --------------------------------- */
.legal { font-size: var(--fs-sm); }
.legal p { margin-bottom: 14px; }
.legal-h {
  display: flex; align-items: center; gap: 14px;
  margin: 46px 0 18px; font-size: var(--fs-h3); color: var(--cream);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.legal-h:first-child { margin-top: 0; }
.legal-num {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--cream); font-size: var(--fs-xs);
}
.legal-sub {
  margin: 28px 0 12px; font-size: var(--fs-body); color: var(--silver);
  padding-left: 14px; border-left: 2px solid var(--accent);
}
.legal-list { margin: 0 0 16px; padding-left: 20px; display: grid; gap: 7px; }
.legal-list li::marker { color: var(--accent); }

.legal-card {
  background: var(--surface-1); border: 1px solid var(--hairline);
  border-radius: var(--radius-lg); padding: 32px; margin-bottom: 12px;
}
.legal-address { color: var(--cream); line-height: 1.6; }
.legal-address strong { font-weight: 400; font-size: var(--fs-h4); }

.legal-facts { margin: 22px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 22px; }
.legal-facts dt { color: var(--text-dim); font-size: var(--fs-xs); }
.legal-facts dd { margin: 0; color: var(--cream); }

.legal-source, .legal-date { font-size: var(--fs-xs); color: var(--text-faint); margin-top: 20px; }
.legal-date { color: var(--silver); }

@media (max-width: 767px) {
  .legal, .legal-card { text-align: left; }
  .legal-card { padding: 24px 20px; }
  .legal-facts { grid-template-columns: 1fr; gap: 3px; }
  .legal-facts dd { margin-bottom: 12px; }
  .legal-h { font-size: var(--fs-h4); margin-top: 38px; }
}

/* --- Numbered process list ------------------------------------------------ */
.steps-list {
  list-style: none; margin: 40px auto 0; padding: 0;
  max-width: 780px; display: grid; gap: 18px; counter-reset: step;
}
.steps-list li {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--surface-1); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 20px 24px;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.steps-list li:hover { border-color: rgba(90,152,50,.5); transform: translateX(4px); }
.steps-list .step-num {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--cream);
  font-size: var(--fs-sm); font-weight: 400;
}
.steps-list p { font-size: var(--fs-sm); margin: 5px 0 0; }

/* --- Accordion ------------------------------------------------------------ */
.acc { border-top: 1px solid var(--hairline); }
.acc details { border-bottom: 1px solid var(--hairline); }
.acc summary {
  list-style: none; cursor: pointer; padding: 22px 0;
  display: flex; justify-content: space-between; gap: 20px; align-items: center;
  color: var(--cream); font-size: var(--fs-h3);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary .chev { flex: none; color: var(--accent); transition: transform .25s var(--ease); }
.acc details[open] summary .chev { transform: rotate(180deg); }
.acc .acc-body { padding: 0 0 24px; font-size: var(--fs-sm); max-width: 80ch; }
.acc .acc-body p + p { margin-top: 12px; }

/* Service breakdown inside the first FAQ answer */
.faq-defs { margin: 0; display: grid; gap: 18px; }
.faq-defs dt {
  color: var(--cream); font-size: var(--fs-body); font-weight: 400;
  padding-left: 14px; border-left: 2px solid var(--accent);
}
.faq-defs dd { margin: 6px 0 0 16px; }

.acc-link { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.acc-link:hover { color: var(--accent-hover); }
.acc-note {
  margin-top: 14px; padding: 12px 16px; border-radius: 8px;
  background: var(--surface-2); border-left: 2px solid var(--accent); color: var(--silver);
}

/* --- Forms ---------------------------------------------------------------- */
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 8px; font-size: var(--fs-xs); color: var(--silver); }
.field label .req { color: var(--accent); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 16px; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--hairline); color: var(--cream);
  font-size: var(--fs-sm); transition: border-color .25s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent);
}
.form-note { font-size: var(--fs-xs); margin-top: 14px; }
.form-note.ok { color: var(--accent); }
.form-note.err { color: #E57373; }

/* Stepper */
.steps { display: flex; align-items: center; margin-bottom: 34px; }
.steps .dot {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: var(--fs-xxs);
  background: var(--surface-4); color: var(--cream);
  transition: background .3s var(--ease);
}
.steps .dot.is-on { background: var(--accent); }
.steps .bar { flex: 1; height: 1px; background: var(--surface-4); }
.step { display: none; }
.step.is-on { display: block; animation: fade-up .35s var(--ease) both; }
.step-nav { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }

/* Newsletter */
.newsletter { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.newsletter input { flex: 1 1 240px; padding: 13px 18px; border-radius: var(--pill);
  background: var(--surface-2); border: 1px solid var(--hairline); color: var(--cream); }
.newsletter input:focus { outline: none; border-color: var(--accent); }

/* Fernstrecken-Rechner — embedded directly in the page, no card around it.
   The two address inputs always share one line; the button sits centered
   underneath. */
.calc .section-head { margin-bottom: 34px; }
.calc-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  max-width: 820px; margin-inline: auto;
}
.calc-form .field { margin-bottom: 0; }
.calc-form .btn { grid-column: 1 / -1; justify-self: center; margin-top: 8px; }
.calc-form .form-note { grid-column: 1 / -1; text-align: center; margin-top: 0; }
.calc-form .form-note:empty { display: none; }
.calc-result { text-align: center; margin-top: 34px; animation: fade-up .45s var(--ease) both; }
.calc-price {
  margin: 0; color: var(--accent); font-weight: 400;
  font-size: clamp(44px, 6vw, 72px); line-height: 1; letter-spacing: var(--ls-tight);
}
.calc-note { font-size: var(--fs-xs); color: var(--text-dim); margin: 14px auto 0; max-width: 520px; }
@media (max-width: 767px) {
  .calc-form { gap: 12px; }
}

/* --- Floating contact button + composer ----------------------------------- */
.fab {
  position: fixed; z-index: 80; right: 18px; top: 50%; translate: 0 -50%;
  width: 52px; height: 52px; border: 0; border-radius: 14px; cursor: pointer;
  display: grid; place-items: center;
  background: var(--accent); color: var(--cream);
  box-shadow: 0 12px 28px rgba(0,0,0,.45);
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.fab:hover { background: var(--accent-hover); transform: translateY(-50%) scale(1.06); }

.composer {
  position: fixed; z-index: 97; right: 18px; bottom: 18px;
  width: min(360px, calc(100vw - 36px));
  background: var(--surface-1); border: 1px solid var(--hairline);
  border-radius: var(--radius-lg); box-shadow: 0 26px 60px rgba(0,0,0,.6);
  padding: 24px; opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.composer.is-open { opacity: 1; visibility: visible; transform: none; }
.composer h3 { font-size: var(--fs-h4); margin-bottom: 6px; }
.composer .sub-note { font-size: var(--fs-xs); margin-bottom: 18px; }
.composer .close {
  position: absolute; top: 14px; right: 14px; width: 30px; height: 30px;
  background: none; border: 0; color: var(--text); cursor: pointer; font-size: 20px;
  line-height: 1; border-radius: 6px;
}
.composer .close:hover { color: var(--cream); }

/* --- Cookie banner -------------------------------------------------------- */
.cookies {
  position: fixed; z-index: 98; left: 18px; bottom: 18px;
  width: min(330px, calc(100vw - 36px));
  background: var(--surface-1); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 20px;
  font-size: var(--fs-xxs); line-height: 1.5;
  box-shadow: 0 20px 50px rgba(0,0,0,.55);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
.cookies[hidden] { display: block; opacity: 0; visibility: hidden; transform: translateY(14px); }
.cookies a { text-decoration: underline; }
.cookie-opts { margin: 14px 0; display: grid; gap: 9px; }
.cookie-opts label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.cookie-opts input { appearance: none; margin: 0; flex: none; width: 34px; height: 18px;
  border-radius: var(--pill); background: var(--surface-4); position: relative;
  cursor: pointer; transition: background .25s var(--ease); }
.cookie-opts input::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--cream); transition: transform .25s var(--ease);
}
.cookie-opts input:checked { background: var(--accent); }
.cookie-opts input:checked::after { transform: translateX(16px); }
.cookie-opts input:disabled { opacity: .75; cursor: default; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 9px 16px; font-size: var(--fs-xxs); }

/* --- Footer --------------------------------------------------------------- */
.footer { border-top: 1px solid var(--hairline); padding-block: 66px 30px; background: rgba(0,0,0,.4); }
.footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 44px; }
.footer h4 { font-size: 18px; margin-bottom: 20px; }
.footer img.logo { width: 118px; margin-bottom: 22px; }
.footer .company { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .6px;
  color: var(--silver); max-width: 220px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer ul a { font-size: var(--fs-sm); }
.footer ul a:hover, .footer ul a.is-active { color: var(--cream); text-decoration: underline; }
.footer .contact a { display: block; font-size: var(--fs-sm); margin-bottom: 11px; }
.contact-link { color: var(--cream); }
.contact-link:hover { color: var(--accent); }
.footer .contact a:hover { color: var(--cream); }
.socials { display: flex; gap: 10px; margin-top: 26px; }
.socials a {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--cream); transition: background .25s var(--ease);
}
.socials a:hover { background: var(--accent-hover); }
.copyright { margin-top: 50px; padding-top: 22px; border-top: 1px solid var(--hairline);
  font-size: var(--fs-xxs); }

/* --- Scroll reveal -------------------------------------------------------- */
/* Gated on .js: if the script never runs, content must still be readable
   rather than sitting invisibly at opacity 0. */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

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

/* --- Responsive ----------------------------------------------------------- */

/* The full bar (logo + links + CTA) needs ~825px, so it keeps working well
   below the 1024px layout breakpoint. Navigation therefore switches to the
   burger on its own breakpoint rather than riding along with the grid changes. */
@media (max-width: 1099px) and (min-width: 860px) {
  .nav { gap: 20px; }
  .nav a, .has-sub > button { font-size: var(--fs-xs); }
  .brand img { width: 84px; }
  .header .cta-desktop { padding: 11px 18px; }
  .header .shell { gap: 18px; }
}
@media (max-width: 859px) {
  .nav { display: none; }
  .header .cta-desktop { display: none; }
  .burger { display: block; margin-left: auto; }
}

@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .split, .hero--split .shell { grid-template-columns: 1fr; gap: 34px; }
  .split--flip .split-media { order: 0; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 540px; }
  .panel { padding: 32px; }
}
@media (max-width: 767px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .fab { top: auto; bottom: 18px; right: 18px; translate: none; }
  .fab:hover { transform: scale(1.06); }
  .composer { bottom: 84px; }
  .cookies { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .acc summary { font-size: var(--fs-h4); }
  .panel { padding: 26px 22px; }

  /* One narrow column reads best centred — headings, copy and buttons all
     share the same centre line instead of drifting to the left edge. */
  .hero, .hero-copy, .card, .panel, .split, .split > div,
  .team-card .who, .footer .cols > * { text-align: center; }
  .hero { min-height: 460px; }
  .hero-copy { margin-inline: auto; }
  .hero--split .shell { justify-items: center; }
  .card .btn, .split .btn, .panel .btn { align-self: center; }
  .split img { margin-inline: auto; max-height: 300px; }

  /* Keep the tick list left-aligned so the lines start together, but centre
     the block itself under the heading. */
  .checklist { gap: 14px; display: inline-grid; text-align: left; justify-self: center; }

  .newsletter { justify-content: center; }
  .newsletter input { flex: 1 1 100%; text-align: center; }
  .newsletter .btn { width: 100%; justify-content: center; }

  /* Forms stay left-aligned — labels above fields are easier to scan that
     way — but the step controls centre up. */
  .field, .field label { text-align: left; }
  .step-nav { justify-content: center; }
  #contact-form .btn, #apply-form .btn { align-self: center; }

  /* Comfortable touch targets: 44px minimum. */
  .btn { min-height: 46px; }
  .contact-link { display: inline-block; padding-block: 13px; min-height: 44px; }
  .footer ul a { display: inline-block; padding-block: 13px; min-height: 44px; }
  /* stays block-level, or the two lines collapse onto one row */
  .footer .contact a { display: block; padding-block: 13px; min-height: 44px; margin-bottom: 0; }
  .footer ul { gap: 0; }
  .footer .cols { grid-template-columns: 1fr; gap: 30px; }
  .footer img.logo, .footer .company { margin-inline: auto; }
  .socials { justify-content: center; }
  .socials a { width: 44px; height: 44px; }
  .acc summary { padding: 20px 0; }
}
