/* ==========================================================================
   KD ZTT — Redesign-Entwurf
   Raster: 12 Spalten. Linke Spalte (1–3) trägt die Abschnittsüberschrift,
   Inhalt steht ab Spalte 5. Header, Hero, Abschnitte und Footer teilen dieselbe Kante.
   ========================================================================== */

/* ---------- Schrift: selbst gehostet (Instrument Sans, SIL OFL 1.1, Lizenz in assets/fonts) ---------- */
@font-face {
  font-family: "Instrument Sans";
  src: url("assets/fonts/instrument-sans-latin-var.woff2") format("woff2-variations"),
       url("assets/fonts/instrument-sans-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
  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;
}
/* Metrisch angeglichenes Arial, damit der Schriftwechsel keine Zeilen verschiebt. */
@font-face {
  font-family: "Instrument Sans Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 103.9%;
  ascent-override: 93.4%;
  descent-override: 24.1%;
  line-gap-override: 0%;
}

:root {
  /* Farbe — Grüntöne im Farbton des Logos */
  --forest-950: #0f1812;
  --forest-900: #18281e;
  --forest-800: #263e2f;
  --forest-700: #304f3c;
  --ivory: #f3f0e6;
  --paper: #e9e4d6;
  --white: #fffef9;
  --ink: #152019;
  --brown: #80592f;
  --amber: #d49a37;
  --amber-hover: #e0aa4c;
  --sand: #ead5aa;

  /* Rollen (helle Fläche als Standard) */
  --bg: var(--ivory);
  --fg: var(--ink);
  --muted: #4c5852;
  --line: rgba(21, 32, 25, .16);
  --line-strong: rgba(21, 32, 25, .34);
  --focus: var(--forest-800);
  --link-line: rgba(21, 32, 25, .4);

  /* Typografie */
  --font-sans: "Instrument Sans", "Instrument Sans Fallback", system-ui, sans-serif;
  --fs-hero: clamp(2.375rem, 1.4rem + 3.4vw, 4.5rem);
  --fs-statement: clamp(2rem, 1.3rem + 2.5vw, 3.5rem);
  --fs-h2: clamp(1.5rem, 1.3rem + .7vw, 2rem);
  --fs-h3: clamp(1.125rem, 1.06rem + .3vw, 1.3125rem);
  --fs-lead: clamp(1.125rem, 1.03rem + .35vw, 1.3125rem);
  --fs-body: 1.0625rem;
  --fs-small: .875rem;

  /* Abstand */
  --s-1: .25rem;
  --s-2: .5rem;
  --s-3: .75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --section-y: clamp(4rem, 2.5rem + 5vw, 7.5rem);

  /* Raster */
  --container: 1280px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --gap: clamp(1rem, .6rem + 1.2vw, 1.5rem);
  --header-h: 4.75rem;
  --radius: 6px;
}

.surface-forest {
  --bg: var(--forest-800);
  --fg: var(--white);
  --muted: rgba(255, 254, 249, .74);
  --line: rgba(255, 255, 255, .18);
  --line-strong: rgba(255, 255, 255, .36);
  --focus: var(--amber);
  --link-line: rgba(255, 255, 255, .5);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--ivory);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--s-4));
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  color: var(--fg);
  background: var(--bg);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a { touch-action: manipulation; }
img, video, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
p { max-width: 65ch; text-wrap: pretty; }
strong { font-weight: 650; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.nowrap { white-space: nowrap; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
/* Eigener Icon-Satz: 24er-Raster, 1,5 px Strich, nur wo das Icon etwas bedeutet (Kontaktweg, Transportart, Ort). */
.icon { display: block; flex: none; width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Kontakt-Baustein: Label über dem Wert auf gemeinsamer Textkante, Icon ohne Rahmen davor auf Höhe des Werts. */
.contact-item {
  display: inline-grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: ". label" "icon value";
  align-items: center; column-gap: var(--s-2);
  text-decoration: none; color: inherit;
}
.contact-item > span { display: contents; }
.contact-item > .icon { grid-area: icon; width: 1.125rem; height: 1.125rem; color: var(--muted); transition: color .15s; }
.contact-label { grid-area: label; display: block; color: var(--muted); font-size: var(--fs-small); line-height: 1.3; }
.contact-value { grid-area: value; display: block; font-weight: 600; font-size: 1.0625rem; line-height: 1.35; font-variant-numeric: tabular-nums; white-space: nowrap; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .22em; transition: text-decoration-color .15s; }
.contact-item:hover > .icon { color: inherit; }
.contact-item:hover .contact-value { text-decoration-color: currentColor; }
.contact-item.compact { grid-template-areas: "icon value"; padding-block: var(--s-1); }
.contact-item.compact > .icon { width: 1rem; height: 1rem; }
.contact-item.compact .contact-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.contact-item.compact .contact-value { font-size: var(--fs-small); font-weight: 500; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

h1, h2, h3 { font-weight: 600; text-wrap: balance; }
h2 { font-size: var(--fs-h2); line-height: 1.15; letter-spacing: -.015em; }
h3 { font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -.005em; }
.lead { font-size: var(--fs-lead); line-height: 1.5; }

/* Links im Fließtext und als Einzelaktion: unterstrichen, ohne Pfeile. */
.content a:not(.contact-item), .rail a:not(.contact-item), .text-link {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em;
  text-decoration-color: var(--link-line);
  transition: text-decoration-color .15s;
}
.content a:not(.contact-item):hover, .rail a:not(.contact-item):hover, .text-link:hover { text-decoration-color: currentColor; }
.text-link { font-weight: 600; }
p > .text-link:only-child { display: inline-block; padding-block: var(--s-1); }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: .75rem 1.375rem;
  border: 0; border-radius: var(--radius);
  color: var(--forest-900); background: var(--amber);
  font-weight: 650; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s;
}
.button:hover { background: var(--amber-hover); }
.button:disabled { cursor: not-allowed; opacity: .55; }

.skip-link {
  position: fixed; z-index: 100; top: var(--s-3); left: var(--s-3);
  padding: var(--s-3) var(--s-4); border-radius: var(--radius);
  color: var(--ink); background: var(--white);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* ---------- Raster ---------- */
.wrap {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); background: var(--bg); color: var(--fg); }
.section-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap); row-gap: var(--s-7);
  align-items: baseline;
}
.section-grid > .rail { grid-column: 1 / 4; }
.section-grid > .content { grid-column: 5 / -1; }
/* Folgt ein heller Abschnitt auf einen hellen, trennt eine Linie auf Containerbreite statt einer neuen Farbfläche. */
.section.flow { padding-top: 0; }
.section.flow .section-grid { position: relative; padding-top: var(--s-6); }
.section.flow .section-grid::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line); }
a[href^="tel:"] { white-space: nowrap; }

.rail > * + * { margin-top: var(--s-5); }
.rail-note { margin-bottom: var(--s-3); color: var(--muted); font-size: var(--fs-small); }
.content > * + * { margin-top: var(--s-5); }

.photo img { width: 100%; height: auto; border-radius: 3px; background: var(--paper); }
.photo figcaption { margin-top: var(--s-2); color: var(--muted); font-size: var(--fs-small); }

/* ---------- Header ---------- */
/* Der Header übernimmt Pixelreihe für Pixelreihe die Farbe des Abschnitts darunter.
   app.js schreibt pro Frame Verläufe mit harten Kanten: Fläche (--hdr-bg) sowie die Masken
   der hellen Lage (--hdr-light, echte Bedienelemente) und der dunklen Lage (--hdr-dark, visuelle Kopie). */
.site-header {
  --hdr-bg: transparent;
  --hdr-light: linear-gradient(#000, #000);
  --hdr-dark: linear-gradient(transparent, transparent);
  --hdr-line: transparent;
  position: fixed; z-index: 40; inset: 0 0 auto;
  color: var(--white);
}
.site-header::before, .site-header::after { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none; }
/* Lesbarkeit über dem Film */
.site-header::before { background: linear-gradient(rgba(15, 24, 18, .55), rgba(15, 24, 18, 0)); }
.site-header::after { background: var(--hdr-bg); box-shadow: 0 1px 0 var(--hdr-line); }
/* Desktop: drei Spalten, die Navigation steht in der Mitte, Logo links, Kontakt rechts. Mobil wieder Flex. */
.header-inner {
  position: relative;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s-5);
  height: var(--header-h);
  -webkit-mask-image: var(--hdr-light); mask-image: var(--hdr-light);
}
/* Dunkle Lage: deckungsgleiche Kopie für hellen Grund, aria-hidden und inert. */
.header-ghost {
  position: absolute; inset: 0 0 auto; margin-inline: auto;
  color: var(--ink); --focus: var(--forest-800);
  pointer-events: none;
  -webkit-mask-image: var(--hdr-dark); mask-image: var(--hdr-dark);
}
/* Tastaturfokus im Header: einfarbig dunkel, damit der Fokusring nie in einer maskierten Zone liegt. */
.site-header:has(:focus-visible) { --hdr-bg: var(--forest-900) !important; --hdr-light: none !important; --hdr-line: transparent !important; }
.site-header:has(:focus-visible) .header-ghost { display: none; }
/* Ohne JavaScript scrollt der Header mit, statt hell auf hellem Grund stehen zu bleiben. */
html:not(.js) .site-header { position: absolute; }
.brand { position: relative; display: block; flex: none; justify-self: start; padding-block: var(--s-2); }
/* Zwei echte Logo-Varianten: Negativ in der hellen Lage, Positiv in der dunklen. */
.brand img { display: block; width: auto; height: 3.25rem; }
.brand .brand-positive { display: none; }
.header-ghost .brand .brand-negative { display: none; }
.header-ghost .brand .brand-positive { display: block; }

.navigation { display: flex; align-items: center; gap: clamp(1.1rem, 2vw, 2rem); font-size: .9375rem; font-weight: 550; }
.navigation > a { text-decoration: none; }
.navigation > a:not(.nav-cta) { padding-block: var(--s-3); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .4em; text-decoration-thickness: 1px; }
.navigation > a:not(.nav-cta):hover, .navigation > a.is-hover, .navigation > a[aria-current="true"] { text-decoration-color: currentColor; }
/* Aktiver Abschnitt über ein Attribut am Header, damit beide Lagen ihn zeigen. */
.site-header[data-current="leistungen"] .navigation > a[href="#leistungen"],
.site-header[data-current="beratung"] .navigation > a[href="#beratung"],
.site-header[data-current="kompetenz"] .navigation > a[href="#kompetenz"],
.site-header[data-current="kisten"] .navigation > a[href="#kisten"],
.site-header[data-current="standorte"] .navigation > a[href="#standorte"],
.site-header[data-current="faq"] .navigation > a[href="#faq"] { text-decoration-color: currentColor; }
.nav-cta {
  display: inline-flex; align-items: center; min-height: 2.625rem; padding: .5rem 1rem;
  border: 1px solid rgba(255, 255, 255, .6); border-radius: var(--radius);
  font-weight: 600; text-decoration: none;
  transition: background-color .15s, color .15s, border-color .15s;
}
.nav-cta:hover, .nav-cta.is-hover { color: var(--forest-900); background: var(--white); border-color: var(--white); }
.header-ghost .nav-cta { color: var(--white); background: var(--forest-800); border-color: var(--forest-800); }
.header-ghost .nav-cta.is-hover { color: var(--white); background: var(--forest-900); border-color: var(--forest-900); }
.menu-toggle { display: none; }
.nav-cta-menu { display: none !important; }

/* Kontakt bleibt im Header: zwei Icon-Links im Stil der Kontakt-Bausteine. */
.header-actions { display: flex; align-items: center; gap: 0; justify-self: end; }
/* Ohne Rahmen: Die Icons stehen frei, Hover zeigt nur eine leise Fläche.
   Gesetz der Nähe: Telefon und E-Mail bilden eine Kontaktgruppe (10 px zwischen den Zeichen),
   dahinter folgt mit deutlich mehr Luft das Menü. Tippfläche 28 × 44 px. */
.header-icon {
  display: grid; place-items: center; flex: none;
  width: 1.75rem; height: 2.75rem; border-radius: var(--radius);
  /* Keine eigene Farb-Transition: die Farbe wird vom Header geerbt und läuft dort schon mit. Eine zweite Transition würde hinterherhinken. */
  transition: background-color .15s;
}
.header-icon .icon { width: 1.125rem; height: 1.125rem; }
/* .is-hover spiegelt das echte :hover in die dunkle Header-Kopie (.header-ghost). */
.header-icon:hover, .header-icon.is-hover { background: rgba(255, 255, 255, .14); }
.header-ghost .header-icon:hover, .header-ghost .header-icon.is-hover { background: rgba(21, 32, 25, .07); }
.header-cta { margin-left: var(--s-4); }

/* ---------- Hero ---------- */
/* Echtes Foto statt Film: Text links auf dem dunklen Grün, Foto rechts. Das Foto beginnt unter dem Header
   (der Header steht so immer auf ruhigem Grün) und läuft rechts aus dem Fenster. Seine linke Kante liegt
   auf der Rasterlinie nach der Textspalte (6 Spalten, ab 1280 px 5 Spalten). Der Hero füllt immer den
   ersten Screen; auf sehr großen Schirmen wird das Foto (1500 px breit) dafür etwas hochskaliert. */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh;
  display: grid; align-items: stretch;
  color: var(--white); background: var(--forest-900);
  overflow: hidden;
  --focus: var(--amber);
  --hero-wrap: min(100%, calc(var(--container) + 2 * var(--gutter)));
  --hero-col: calc((var(--hero-wrap) - 2 * var(--gutter) - 11 * var(--gap)) / 12);
  --hero-edge: calc((100% - var(--hero-wrap)) / 2 + var(--gutter));
  --hero-text-cols: 6;
}
.hero-media {
  position: absolute; z-index: -1;
  top: var(--header-h); right: 0; bottom: 0;
  left: calc(var(--hero-edge) + var(--hero-text-cols) * (var(--hero-col) + var(--gap)));
  background: var(--forest-800);
}
/* Ausschnitt: Wagenfront (93 % der Bildbreite) bleibt bei hohen Spalten im Bild, Anhängerdach und Rampe (30–87 % der Höhe) bei flachen. */
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 80% 72%; }
/* Textblock vertikal in der Fläche unter dem Header, unten mehr Luft als oben:
   so steht er auf der optischen Mitte statt am unteren Rand zu kleben. */
.hero-inner {
  display: flex; align-items: center; gap: var(--s-6);
  min-height: 100svh;
  padding-top: calc(var(--header-h) + var(--s-6));
  padding-bottom: clamp(5rem, 2rem + 9vh, 9rem);
}
/* Text endet zwei Abstände vor der Fotokante. */
.hero-content { max-width: calc((100% - 11 * var(--gap)) / 12 * var(--hero-text-cols) + (var(--hero-text-cols) - 2) * var(--gap)); }
@media (min-width: 1280px) { .hero { --hero-text-cols: 5; } }
.hero h1 { margin-bottom: var(--s-5); font-size: var(--fs-hero); line-height: 1.04; letter-spacing: -.025em; font-stretch: 94%; }
/* Suchbegriff als erste Zeile der H1, gesetzt wie die gesperrte Wortmarke im Logo. Einziger Kicker der Seite. */
.hero-kicker {
  display: block; margin-bottom: var(--s-2);
  color: var(--sand);
  font-size: clamp(.75rem, .7rem + .2vw, .875rem); font-weight: 600; font-stretch: 100%;
  line-height: 1.4; letter-spacing: .18em; text-transform: uppercase;
}
.hero-copy { margin-bottom: var(--s-6); color: rgba(255, 254, 249, .84); font-size: var(--fs-lead); line-height: 1.5; max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-5); }
.hero .contact-item { --muted: rgba(255, 254, 249, .74); --line-strong: rgba(255, 255, 255, .45); }
.video-control {
  display: grid; place-items: center; flex: none;
  width: 2.75rem; height: 2.75rem; padding: 0;
  border: 0; border-radius: var(--radius);
  color: var(--white); background: none;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .55));
  opacity: .85; cursor: pointer;
  transition: opacity .15s;
}
.video-control:hover { opacity: 1; }
.video-control[hidden] { display: none; }
.video-icon { position: relative; width: 14px; height: 16px; }
.video-icon::before, .video-icon::after { content: ""; position: absolute; top: 0; width: 4px; height: 16px; border-radius: 1px; background: currentColor; }
.video-icon::before { left: 1px; }
.video-icon::after { right: 1px; }
.video-control[data-state="paused"] .video-icon::before {
  left: 2px; width: 0; height: 0; border-radius: 0; background: none;
  border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent currentColor;
}
.video-control[data-state="paused"] .video-icon::after { display: none; }

/* ---------- Einleitung und Tierparade ---------- */
.intro .statement { grid-column: 1 / 10; font-size: var(--fs-statement); line-height: 1.05; letter-spacing: -.025em; font-stretch: 94%; }
.intro .intro-copy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.intro .intro-copy > * + * { margin-top: 0; }
.intro .intro-copy p:last-child { color: var(--muted); }
.section-grid > .parade { grid-column: 1 / -1; container-type: inline-size; margin-top: var(--s-5); }
.parade-line {
  --u: min(1rem, (100cqi - 2.5rem) / 31);
  position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-2);
  padding-bottom: 2.25rem;
}
.parade-line::before { content: ""; position: absolute; left: 0; right: 0; bottom: 2.25rem; height: 1px; background: var(--line-strong); }
.animal { position: relative; flex: none; }
.animal svg { display: block; width: auto; fill: var(--forest-800); overflow: visible; }
.animal-shrew { height: calc(var(--u) * 1.3); }
.animal-turtle { height: calc(var(--u) * 2.5); }
.animal-penguin { height: calc(var(--u) * 4.6); }
.animal-flamingo { height: calc(var(--u) * 7.8); }
.animal-elephant { height: calc(var(--u) * 10.5); }
.animal svg .light { fill: var(--bg); }
.animal svg .accent { fill: var(--amber); }
.animal svg .line { fill: none; stroke: var(--forest-800); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.animal svg .neck { fill: none; stroke: var(--forest-800); stroke-width: 7; stroke-linecap: round; }
.animal svg .trunk { fill: none; stroke: var(--forest-800); stroke-width: 15; stroke-linecap: round; }
.animal svg .ear { fill: var(--forest-700); }
.animal svg .far { fill: var(--forest-900); }
.animal svg .tusk { fill: none; stroke: var(--bg); stroke-width: 4; stroke-linecap: round; }
.animal-shrew { fill: var(--amber) !important; }
.animal-shrew .tail { fill: none; stroke: var(--amber); stroke-width: 3; stroke-linecap: round; }
.animal-shrew .eye { fill: var(--forest-900); }
.animal-turtle .shell { fill: none; stroke: var(--bg); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
.animal-name { position: absolute; left: 0; top: calc(100% + .6rem); white-space: nowrap; color: var(--muted); font-size: var(--fs-small); }
.parade figcaption { margin-top: var(--s-2); color: var(--muted); font-size: var(--fs-small); text-align: right; max-width: none; }

/* ---------- Leistungen ---------- */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--gap); }
.services li { padding-top: var(--s-4); border-top: 1px solid var(--line-strong); }
.service-icon { width: 1.75rem; height: 1.75rem; margin-bottom: var(--s-3); color: var(--forest-800); }
.services h3 { margin-bottom: var(--s-2); }
.services p { color: var(--muted); }
.content > .service-photos { margin-top: var(--s-7); }
.advice { margin-top: var(--s-6); border-top: 1px solid var(--line-strong); }
.advice li { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: var(--s-2) var(--gap); padding-block: var(--s-5); border-bottom: 1px solid var(--line-strong); }
.advice h3 { grid-column: span 3; }
.advice p { grid-column: span 5; color: var(--muted); }
.service-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); align-items: start; }

/* ---------- Kay Dobenecker ---------- */
#kompetenz .lead { max-width: 44ch; }
.kay-photo { max-width: 26rem; }
.facts { border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--gap); padding-block: var(--s-3); border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }

/* ---------- Einsätze ---------- */
/* Wischbare Reihe echter Fotos: gleiche Höhe, Breite aus dem Seitenverhältnis (quer 4:3, hoch 3:4).
   Überschrift und Blätter-Tasten stehen in einer Zeile darüber, die Reihe nutzt die ganze Inhaltsbreite
   (beginnt in Spalte 1) und läuft beim Blättern links und rechts bis an den Fensterrand. Ohne JavaScript
   bleibt sie per Wischen, Trackpad und Pfeiltasten (Fokus auf der Reihe) bedienbar. */
#einsaetze { container-type: inline-size; } /* 100cqw = Fensterbreite ohne Scrollleiste */
.layout-gallery { row-gap: var(--s-5); }
.layout-gallery > .rail, .layout-gallery > .content { grid-column: 1 / -1; }
.layout-gallery > .rail { display: flex; align-items: center; justify-content: space-between; gap: var(--gap); }
.layout-gallery > .rail > * + * { margin-top: 0; }
.gallery-nav { display: flex; gap: var(--s-1); margin-right: calc(-1 * var(--s-2)); }
.gallery-nav[hidden] { display: none; }
/* Wie die Header-Icons: ohne Rahmen, Hover zeigt eine leise Fläche. 44 px Tippfläche. */
.gallery-step {
  display: grid; place-items: center; flex: none;
  width: 2.75rem; height: 2.75rem; padding: 0;
  border: 0; border-radius: var(--radius);
  color: var(--fg); background: none; cursor: pointer;
  transition: background-color .15s, opacity .15s;
}
.gallery-step:hover { background: rgba(21, 32, 25, .07); }
.gallery-step[aria-disabled="true"] { opacity: .3; cursor: default; background: none; }
.gallery-step .icon { width: 1.5rem; height: 1.5rem; }
.gallery-prev .icon { transform: scaleX(-1); }
.gallery-track {
  --g-h: clamp(17rem, 9rem + 13vw, 27rem);
  --bleed: calc((100cqw - min(100cqw, var(--container) + 2 * var(--gutter))) / 2 + var(--gutter));
  margin-inline: calc(-1 * var(--bleed));
  padding: 0 var(--bleed) var(--s-4);
  scroll-padding-inline: var(--bleed);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.gallery-track:focus-visible { outline-offset: -3px; }
.gallery-list { display: flex; gap: var(--gap); width: max-content; }
.gallery-item { flex: none; width: calc(var(--g-h) * var(--ar)); scroll-snap-align: start; }
.gallery-item.quer { --ar: 4 / 3; }
.gallery-item.hoch { --ar: 3 / 4; }
.gallery-item img, .gallery-item video { width: 100%; height: var(--g-h); object-fit: cover; border-radius: 3px; background: var(--paper); }
.gallery-item figcaption { margin-top: var(--s-2); color: var(--muted); font-size: var(--fs-small); line-height: 1.45; }
.gallery-film { position: relative; }
.gallery-film .video-control { position: absolute; right: var(--s-1); bottom: var(--s-1); }

/* ---------- Transportkisten ---------- */
.rail-photo { max-width: 22rem; }
.content > .crate-figure { margin-top: var(--s-7); }
.crate { width: 100%; max-width: 40rem; overflow: visible; }
.crate-figure figcaption { margin-top: var(--s-3); color: var(--muted); font-size: var(--fs-small); }
.crate .c-shadow { fill: var(--forest-800); opacity: .18; }
.crate .c-skid-side { fill: #8d6c3f; }
.crate .c-skid-end { fill: #6f5330; }
.crate .c-wall-a { fill: #584734; }
.crate .c-wall-b { fill: #46382a; }
.crate .c-wall-edge { fill: none; stroke: #2b2219; stroke-width: 1; }
.crate .c-l-panel { fill: #e8d6b1; }
.crate .c-r-panel { fill: #d3bb8f; }
.crate .c-top-panel { fill: #f3e9d2; }
.crate .c-l-frame { fill: #d6b782; stroke: #8a6a3e; stroke-width: .8; }
.crate .c-r-frame { fill: #c09d67; stroke: #7d5f36; stroke-width: .8; }
.crate .c-top-frame { fill: #e4cc99; stroke: #9a7a4a; stroke-width: .8; }
.crate .c-grain { fill: none; stroke: #8a6a3e; stroke-width: .7; opacity: .3; }
.crate .c-hole { fill: #2b2219; }
.crate .c-hole-lip { fill: none; stroke: #f6ead0; stroke-width: 1.1; opacity: .55; }
.crate .c-nail { fill: #6b5332; }
.crate .c-edge { fill: none; stroke: #7a5a32; stroke-width: .9; }
.crate .c-bar-top { fill: #caa66e; }
.crate .c-bar-front { fill: #916f42; }
.crate .c-bar-end { fill: #6f5330; }
.crate .c-bar-front-r { fill: #7d5f36; }
.crate .c-label rect { fill: var(--white); stroke: var(--forest-800); stroke-width: 1.2; }
.crate .c-label text { fill: var(--forest-800); font: 700 10.5px/1 var(--font-sans); text-anchor: middle; letter-spacing: .03em; }
.crate .c-arrow { fill: var(--forest-800); }
.crate .c-hatch rect:first-child { fill: #dcc496; stroke: #7a5a32; stroke-width: .9; }
.crate .c-hinge, .crate .c-latch { fill: #5b6168; }
.crate .c-rim { fill: none; stroke: var(--forest-800); stroke-width: 1.6; }
.crate .c-lid-side-l { fill: #cdac77; }
.crate .c-lid-side-r { fill: #b4925f; }
.crate .c-outline { fill: none; stroke: var(--forest-800); stroke-width: 1.8; stroke-linejoin: round; }
.crate .c-outline-inner { stroke: var(--forest-800); stroke-width: 1.3; }
.crate .c-dim line, .crate .c-dim path { fill: none; stroke: var(--brown); stroke-width: 1; }
.crate .c-dim text { fill: var(--brown); font: 600 13px/1 var(--font-sans); }
.crate .c-callout path { fill: none; stroke: var(--brown); stroke-width: 1; }
.crate .c-callout circle { fill: var(--ivory); stroke: var(--brown); stroke-width: 1.4; }
.crate .c-callout text { fill: var(--forest-800); font: 600 16px/1 var(--font-sans); }
/* Der Deckel hebt beim Durchscrollen kurz ab und gibt den Innenraum frei. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .crate-figure { view-timeline: --crate block; }
    .crate .c-lid { animation: lid-lift linear both; animation-timeline: --crate; animation-range: cover 15% cover 85%; }
  }
}
@keyframes lid-lift { 0%, 100% { transform: none; } 35%, 65% { transform: translateY(-30px); } }

/* ---------- Ablauf: große gestapelte Schritte, Reihenfolge in Worten statt Ziffern ---------- */
.rail-intro { color: var(--muted); max-width: none; }
.steps { border-bottom: 1px solid var(--line-strong); }
.steps li { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-2) var(--gap); padding-block: var(--s-6); border-top: 1px solid var(--line-strong); }
.step-when { color: var(--brown); font-size: var(--fs-small); font-weight: 600; }
.steps h3 { font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2.375rem); line-height: 1.1; letter-spacing: -.02em; font-stretch: 94%; }
.steps p { color: var(--muted); max-width: 38ch; }
.price-note { padding: var(--s-5); border-radius: var(--radius); background: var(--paper); }
.price-note h3 { margin-bottom: var(--s-2); }
.price-note p { margin-bottom: var(--s-4); color: var(--muted); }

/* ---------- Standorte ---------- */
.regions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.region-map { max-width: 20rem; }
.region-map svg { width: 100%; overflow: visible; }
.region-map figcaption { margin-top: var(--s-2); color: var(--muted); font-size: var(--fs-small); }
.map-land { fill: rgba(38, 62, 47, .06); stroke: rgba(38, 62, 47, .45); stroke-width: 1; stroke-linejoin: round; }
.map-city .halo { fill: var(--amber); fill-opacity: .16; transform-box: fill-box; transform-origin: center; transition: fill-opacity .2s, transform .3s ease; }
.map-city .pin { fill: var(--amber); stroke: var(--bg); stroke-width: 3; }
.map-city text { fill: var(--ink); font: 600 13px/1 var(--font-sans); paint-order: stroke; stroke: var(--bg); stroke-width: 4px; stroke-linejoin: round; }
.region-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--s-3); align-items: baseline; padding-block: var(--s-4); border-top: 1px solid var(--line-strong); }
.region-pin { width: 1.25rem; height: 1.25rem; color: var(--amber); align-self: start; margin-top: .15rem; }
.region-list li:last-child { border-bottom: 1px solid var(--line-strong); }
.region-list p { color: var(--muted); }
.region-list h3 { transition: color .15s; }
.regions:has([data-city="leipzig"]:hover) .map-city[data-city="leipzig"] .halo,
.regions:has([data-city="wuppertal"]:hover) .map-city[data-city="wuppertal"] .halo,
.regions:has([data-city="muenchen"]:hover) .map-city[data-city="muenchen"] .halo { fill-opacity: .34; transform: scale(1.25); }
.regions:has([data-city="leipzig"]:hover) .region-list [data-city="leipzig"] h3,
.regions:has([data-city="wuppertal"]:hover) .region-list [data-city="wuppertal"] h3,
.regions:has([data-city="muenchen"]:hover) .region-list [data-city="muenchen"] h3 { color: var(--brown); }

/* ---------- Häufige Fragen ---------- */
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-list > * + * { margin-top: 0; }
.faq-list details { border-bottom: 1px solid var(--line-strong); }
.faq-list summary {
  position: relative; display: block; list-style: none;
  padding: var(--s-4) var(--s-7) var(--s-4) 0;
  font-weight: 600; line-height: 1.4; cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before, .faq-list summary::after {
  content: ""; position: absolute; right: var(--s-2); top: 50%;
  width: 13px; height: 1.5px; background: currentColor;
  transition: transform .2s ease;
}
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0deg); }
.faq-list details p { padding: 0 var(--s-7) var(--s-5) 0; color: var(--muted); }

/* ---------- Anfrage ---------- */
.contact .lead { color: var(--fg); }
/* Zwei gleichwertige Kontaktwege auf den Spalten von Abhol- und Zielort, kein Satz mit „oder“. */
.direct-contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--gap); }

.section-grid > .request-form { grid-column: 1 / -1; }
.request-form {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--s-6);
  align-items: start;
}
.request-form > * { grid-column: 5 / -1; }
.request-form > .summary { grid-column: 1 / 4; grid-row: 1 / span 5; position: sticky; top: calc(var(--header-h) + var(--s-5)); }
.step { min-width: 0; margin: 0; padding: var(--s-4) 0 0; border: 0; border-top: 1px solid var(--line); }
.step legend { float: left; width: 100%; padding: 0; margin-bottom: var(--s-4); font-size: var(--fs-h3); font-weight: 600; }
.step legend + * { clear: both; }
/* Optionen im Raster: Spaltengrenzen wie bei Abhol-/Zielort und den Leistungen. */
.choices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-2) var(--gap); }
.choice { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 2.75rem; cursor: pointer; }
.choice input { width: 1.125rem; height: 1.125rem; margin: 0; accent-color: var(--amber); }
.choice .icon { color: var(--muted); transition: color .15s; }
.choice:has(input:checked) .icon { color: var(--amber); }
.field { min-width: 0; }
.field + .field, .field-row + .field { margin-top: var(--s-5); }
.field-row > .field { margin-top: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) var(--gap); }
.field label { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-1) var(--s-3); margin-bottom: var(--s-1); font-weight: 600; }
.req { color: var(--muted); font-size: .8125rem; font-weight: 450; }
.field input, .field textarea {
  width: 100%; min-height: 3rem; padding: .65rem .75rem;
  border: 1px solid rgba(255, 255, 255, .45); border-radius: 4px;
  color: var(--fg); background: rgba(255, 255, 255, .05);
  font-size: 1.0625rem;
  transition: border-color .15s;
}
.field textarea { min-height: 7rem; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: rgba(255, 255, 255, .75); }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--white); }
.field input:-webkit-autofill { -webkit-text-fill-color: var(--white); box-shadow: 0 0 0 100px var(--forest-800) inset; }
.field [aria-invalid="true"] { border-color: #ffb4a2; }
.field-hint { margin-top: var(--s-2); color: var(--muted); font-size: .8125rem; }
.field-error { margin-top: var(--s-2); color: #ffb4a2; font-size: .8125rem; font-weight: 600; }
.field-error:empty { display: none; }

.summary {
  --fg: var(--ink); --muted: #4c5852; --line: rgba(21, 32, 25, .16); --focus: var(--forest-800);
  padding: var(--s-5);
  border-radius: var(--radius);
  color: var(--fg); background: var(--ivory);
}
.summary h3 { margin-bottom: var(--s-3); }
.summary dl > div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: var(--s-3); padding-block: var(--s-2); border-top: 1px solid var(--line); font-size: .9375rem; }
.summary dt { color: var(--muted); }
.summary dd { font-weight: 600; overflow-wrap: break-word; hyphens: auto; }
.summary-status { margin-top: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--line); color: var(--muted); font-size: var(--fs-small); }
.summary.is-ready .summary-status { color: var(--forest-800); font-weight: 600; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.form-privacy { flex-basis: 100%; color: var(--muted); font-size: .8125rem; }
.copy-button { padding: var(--s-2) 0; border: 0; background: none; cursor: pointer; color: var(--sand); font-weight: 600; text-decoration: underline; text-underline-offset: .22em; }
.copy-button[hidden] { display: none; }
.form-status { font-size: var(--fs-small); }
.form-status:empty { display: none; }
.copy-fallback label { display: block; margin-bottom: var(--s-2); font-size: var(--fs-small); font-weight: 600; }
.copy-fallback textarea { width: 100%; padding: var(--s-3); border: 1px solid rgba(255, 255, 255, .45); border-radius: 4px; color: var(--fg); background: rgba(255, 255, 255, .06); resize: vertical; }

/* ---------- Footer ---------- */
.site-footer {
  --fg: var(--white); --muted: rgba(255, 254, 249, .66); --line: rgba(255, 255, 255, .16); --focus: var(--amber);
  padding-block: clamp(3rem, 2rem + 3vw, 5rem) var(--s-7);
  color: var(--fg); background: var(--forest-950);
  font-size: var(--fs-small);
}
.footer-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--s-6); }
.footer-brand { grid-column: 1 / 4; }
.footer-brand img { width: min(100%, 15rem); height: auto; }
.footer-contact { grid-column: 5 / 8; }
.footer-legal { grid-column: 8 / 10; }
.concept-note { grid-column: 10 / -1; color: var(--muted); }
.footer-contact p { margin-bottom: var(--s-2); color: var(--muted); }
.footer-contact .contact-item { display: grid; width: fit-content; }
.footer-legal a {
  display: block; width: fit-content; padding-block: var(--s-1);
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .22em;
  transition: text-decoration-color .15s;
}
.footer-legal a:hover { text-decoration-color: currentColor; }

/* ==========================================================================
   Kompositionen: gleiches 12er-Raster, aber jeder Abschnitt mit eigener Figur.
   Grundmuster (Überschrift links, Inhalt ab Spalte 5) bleibt nur bei Ablauf und Anfrage als Anker.
   Ab 1024 px werden Inhalte per display: contents direkt ins Raster gehoben; darunter gilt die Lesereihenfolge.
   ========================================================================== */
@media (min-width: 1024px) {
  /* Einleitung: Statement links, Text rechts auf Höhe der letzten Zeile – diagonale Bewegung */
  .layout-diagonal > .statement { grid-column: 1 / 8; grid-row: 1; }
  .layout-diagonal > .intro-copy { grid-column: 9 / -1; grid-row: 1; align-self: start; margin-top: calc(var(--fs-statement) * 1.05); grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }

  /* Leistungen: Überschrift über allem, vier Leistungen als Band, Fotos versetzt */
  .layout-band > .rail, .layout-band > .content { grid-column: 1 / -1; }
  .layout-band .services { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .layout-band .service-photos { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
  /* Zwei gleiche Hälften, Teilung auf der Kante zwischen zweiter und dritter Leistung: gemeinsame Ober- und Unterkante. */
  .layout-band .photo-wide { grid-column: 1 / 7; }
  .layout-band .photo-tall { grid-column: 7 / -1; }

  /* Regel für geteilte Abschnitte: Die Überschrift bekommt eine eigene Zeile,
     darunter starten linke und rechte Spalte gemeinsam auf derselben Oberkante. */

  /* Kay Dobenecker: Foto links, Aussage, Fakten und Link rechts untereinander.
     Die letzte Zeile (1fr) nimmt die Resthöhe des Fotos auf, damit zwischen Aussage, Fakten und Link keine Lücken entstehen. */
  .layout-split { row-gap: var(--s-6); align-items: start; grid-template-rows: auto auto auto auto auto 1fr; }
  .layout-split > .content { display: contents; }
  .layout-split > .rail { grid-column: 1 / 7; grid-row: 1; }
  .layout-split .kay-photo { grid-column: 1 / 6; grid-row: 2 / span 5; max-width: none; }
  .layout-split .lead { grid-column: 7 / -1; grid-row: 2; margin: 0; max-width: 24ch; font-size: clamp(1.5rem, 1.1rem + 1vw, 2.125rem); line-height: 1.3; letter-spacing: -.01em; }
  .layout-split .vita { grid-column: 7 / -1; grid-row: 3; margin: 0; }
  .layout-split .facts { grid-column: 7 / -1; grid-row: 4; margin: 0; }
  .layout-split .content > p:last-child { grid-column: 7 / -1; grid-row: 5; margin: 0; }

  /* Transportkisten: gespiegelt, Illustration groß links, Text rechts */
  .layout-mirror { row-gap: var(--s-5); align-items: start; }
  .layout-mirror > .rail, .layout-mirror > .content { display: contents; }
  .layout-mirror h2 { grid-column: 9 / -1; grid-row: 1; }
  .layout-mirror .crate-figure { grid-column: 1 / 8; grid-row: 2 / span 4; margin: 0; }
  .layout-mirror .lead { grid-column: 9 / -1; grid-row: 2; margin: 0; }
  .layout-mirror .crate-penguins { grid-column: 9 / -1; grid-row: 3; margin: 0; }
  .layout-mirror .crate-more { grid-column: 9 / -1; grid-row: 4; margin: 0; }
  .layout-mirror .rail-photo { grid-column: 9 / -1; grid-row: 5; margin: var(--s-3) 0 0; max-width: none; }

  /* Standorte: Text und Liste links, Karte groß rechts */
  .layout-map { row-gap: var(--s-5); align-items: start; }
  .layout-map > .content, .layout-map .regions { display: contents; }
  .layout-map > .rail { grid-column: 1 / 6; grid-row: 1; }
  .layout-map .lead { grid-column: 1 / 6; grid-row: 2; margin: 0; }
  .layout-map .region-list { grid-column: 1 / 6; grid-row: 3; }
  .layout-map .region-map { grid-column: 7 / -1; grid-row: 2 / span 2; justify-self: center; width: 100%; max-width: 26rem; }

  /* Die Versalhöhe der Aussage liegt genau auf der Oberkante der Nachbarspalte (Faktenlinie, Zeichnung, Karte). */
  @supports (text-box: trim-both cap alphabetic) {
    .layout-split .lead, .layout-mirror .lead, .layout-map .lead { text-box: trim-both cap alphabetic; }
  }

  /* Ablauf: Schritte als Zeilen mit Wann | Titel | Erklärung, Preis-Karte links bündig zum letzten Schritt */
  /* Gleiche Regel wie bei den geteilten Abschnitten: Überschrift eigene Zeile, darunter starten
     Einordnung links und Schritte rechts gemeinsam; die Preis-Karte folgt direkt unter der Einordnung.
     Die dritte Zeile nimmt den Restplatz der Schritte auf, damit die Karte nicht nach unten rutscht. */
  .layout-process { row-gap: var(--s-6); align-items: start; grid-template-rows: auto auto 1fr; }
  .layout-process > .rail { display: contents; }
  .layout-process h2 { grid-column: 1 / 4; grid-row: 1; }
  .layout-process .rail-intro { grid-column: 1 / 4; grid-row: 2; margin: 0; }
  .layout-process > .content { grid-column: 5 / -1; grid-row: 2 / span 2; }
  .layout-process > .price-note { grid-column: 1 / 4; grid-row: 3; align-self: start; }
  .layout-process .steps li { grid-template-columns: 7.5rem minmax(0, 1.15fr) minmax(0, 1fr); align-items: baseline; padding-block: var(--s-7); }
  /* Oberkanten statt Grundlinien: Text wird auf die Versalhöhe beschnitten, dann liegen Einordnung links
     und erste Schritt-Linie, sowie Wann-Wort, Titel und Erklärung oben auf einer Linie. Ohne Unterstützung bleibt die Grundlinie. */
  @supports (text-box: trim-both cap alphabetic) {
    .layout-process .rail-intro, .layout-process .step-when, .layout-process .steps h3, .layout-process .steps p { text-box: trim-both cap alphabetic; }
    .layout-process .steps li { align-items: start; }
  }

  /* Häufige Fragen: schmale Lesespalte in der Mitte, Hilfe rechts neben der Überschrift */
  .layout-center > .rail { grid-column: 3 / 11; grid-row: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: var(--gap); }
  .layout-center > .rail > * + * { margin-top: 0; }
  .layout-center > .content { grid-column: 3 / 11; grid-row: 2; }
}

/* ==========================================================================
   Breakpoints
   ========================================================================== */

@media (max-width: 1240px) {
  .navigation { gap: 1rem; font-size: .875rem; }
}

/* Navigation klappt ein, sobald die Einträge nicht mehr ruhig nebeneinander passen. */
@media (max-width: 1120px) {
  :root { --header-h: 4rem; }
  .brand img { height: 2.625rem; }
  .header-inner { display: flex; gap: var(--s-3); }
  .brand { margin-right: auto; }
  /* Ohne Rahmen; die Kiste schließt bündig mit der Inhaltskante ab (negativer Rand = Innenabstand). */
  .js .menu-toggle {
    margin-left: var(--s-3); margin-right: -.75rem;
    display: inline-flex; align-items: center; gap: var(--s-2);
    min-height: 2.75rem; padding: .5rem .75rem .5rem .5rem;
    border: 0; border-radius: var(--radius);
    background: transparent; cursor: pointer;
    font-size: .875rem; font-weight: 600;
    transition: background-color .15s;
  }
  .js .menu-toggle:hover, .js .menu-toggle.is-hover { background: rgba(255, 255, 255, .14); }
  .header-ghost .menu-toggle:hover, .header-ghost .menu-toggle.is-hover { background: rgba(21, 32, 25, .07); }
  /* Menü-Icon als Transportkiste auf 20 × 15 px, Kanten auf dem Pixelraster: die Striche sind Luftschlitze, offen ein Kreuz.
     Rausschauen samt Wackeln (.is-peeking) und Hüpfer (.is-hopping) setzt app.js. */
  .menu-icon { width: 20px; height: 15px; overflow: visible; }
  .menu-icon.is-peeking { animation: crate-rock 3s ease-in-out; }
  .menu-icon .frame { fill: none; stroke: currentColor; stroke-width: 1; }
  .menu-icon .vent { fill: currentColor; transform-box: fill-box; transform-origin: center; transition: transform .25s ease; }
  .menu-icon .slit { fill: var(--forest-950); opacity: 0; }
  .menu-icon .eyes circle { fill: var(--amber); opacity: 0; transform-box: fill-box; transform-origin: center; }
  .menu-toggle[aria-expanded="true"] .vent-top { transform: translateY(2.75px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .vent-bottom { transform: translateY(-2.75px) rotate(-45deg); }
  .menu-icon.is-peeking .vent-top { animation: crate-vent-top 3s ease; }
  .menu-icon.is-peeking .vent-bottom { animation: crate-vent-bottom 3s ease; }
  .menu-icon.is-peeking .slit { animation: crate-slit 3s ease; }
  .menu-icon.is-peeking .eyes { animation: crate-look 3s ease-in-out; }
  .menu-icon.is-peeking .eyes circle { animation: crate-eyes 3s ease; }
  .menu-icon.is-hopping { animation: crate-hop .32s ease; }

  .js .navigation {
    position: fixed; inset: 0; z-index: -1;
    display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    padding: calc(var(--header-h) + var(--s-6)) var(--gutter) calc(var(--s-6) + env(safe-area-inset-bottom));
    color: var(--white); background: var(--forest-900);
    font-size: clamp(1.5rem, 1.2rem + 2vw, 2rem); font-weight: 600;
    visibility: hidden; opacity: 0;
    transition: opacity .2s ease, visibility 0s linear .2s;
  }
  .js .navigation.open { visibility: visible; opacity: 1; transition: opacity .2s ease; }
  .js .navigation > a:not(.nav-cta) { padding-block: var(--s-4); border-bottom: 1px solid rgba(255, 255, 255, .16); text-decoration: none; }
  .js .header-cta { display: none; }
  .js .navigation .nav-cta-menu { display: inline-flex !important; }
  .js .navigation .nav-cta {
    justify-content: center; margin-top: auto; min-height: 3.25rem;
    color: var(--forest-900); background: var(--amber); border-color: var(--amber);
    font-size: 1.0625rem;
  }
  body.menu-open .site-header { color: var(--white); --focus: var(--amber); }
  body.menu-open .site-header::before, body.menu-open .site-header::after { opacity: 0; }
  /* Offenes Menü: nur die helle Lage, ohne Maske, auf der dunklen Menüfläche. */
  body.menu-open .site-header .header-ghost { display: none; }
  body.menu-open .site-header .header-inner { -webkit-mask-image: none; mask-image: none; }
  body.menu-open .site-header .header-icon:hover, body.menu-open .site-header .header-icon.is-hover,
  body.menu-open .site-header .menu-toggle:hover, body.menu-open .site-header .menu-toggle.is-hover { background: rgba(255, 255, 255, .14); }

  html:not(.js) .header-inner { flex-wrap: wrap; height: auto; padding-block: var(--s-3); }
  html:not(.js) .navigation { order: 3; flex-basis: 100%; flex-wrap: wrap; gap: var(--s-2) var(--s-4); }
}
/* Rausschauen (3 s): Die Schlitze rücken auseinander, in einem schmalen dunklen Spalt leuchten die Augen,
   schauen nach links zu Telefon und E-Mail, dann kurz nach rechts, blinzeln zweimal und ziehen sich zurück. */
@keyframes crate-vent-top { 0%, 100% { transform: none; } 8%, 90% { transform: translateY(-.75px); } }
@keyframes crate-vent-bottom { 0%, 100% { transform: none; } 8%, 90% { transform: translateY(.75px); } }
@keyframes crate-slit { 0%, 100% { opacity: 0; } 6%, 92% { opacity: 1; } }
@keyframes crate-look { 0%, 16% { transform: none; } 24%, 42% { transform: translateX(-1px); } 50%, 60% { transform: none; } 67%, 74% { transform: translateX(1px); } 81%, 100% { transform: none; } }
@keyframes crate-eyes { 0%, 5% { opacity: 0; transform: scaleY(.2); } 11% { opacity: 1; transform: none; } 45% { transform: none; } 47% { transform: scaleY(.15); } 49% { transform: none; } 84% { transform: none; } 86% { transform: scaleY(.15); } 88% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: scaleY(.2); } }
/* Wackeln beim Rausschauen: Die Kiste kippelt über die untere rechte, dann die linke Kante, als bewege sich drinnen jemand.
   Die Kante wird nur bei 0° gewechselt, deshalb springt nichts. */
@keyframes crate-rock {
  0%, 3% { rotate: 0deg; transform-origin: 100% 100%; }
  8% { rotate: 4deg; transform-origin: 100% 100%; }
  13% { rotate: 0deg; transform-origin: 100% 100%; }
  13.1% { rotate: 0deg; transform-origin: 0% 100%; }
  18% { rotate: -2.5deg; transform-origin: 0% 100%; }
  23% { rotate: 0deg; transform-origin: 0% 100%; }
  23.1% { rotate: 0deg; transform-origin: 100% 100%; }
  27% { rotate: 1deg; transform-origin: 100% 100%; }
  31%, 87% { rotate: 0deg; transform-origin: 100% 100%; }
  87.1% { rotate: 0deg; transform-origin: 0% 100%; }
  92% { rotate: -2deg; transform-origin: 0% 100%; }
  97%, 100% { rotate: 0deg; transform-origin: 0% 100%; }
}
@keyframes crate-hop { 40% { translate: 0 -2px; } }

/* Linke Spalte klappt ein: Überschrift über dem Inhalt. */
@media (max-width: 1023px) {
  .section-grid { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-5); }
  .section-grid > *, .intro .statement { grid-column: 1 / -1 !important; }
  .rail-photo { max-width: 26rem; }
  .request-form { grid-template-columns: minmax(0, 1fr); }
  .request-form > *, .request-form > .summary { grid-column: 1 !important; grid-row: auto !important; }
  .summary { position: static; max-width: 28rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / 7; }
  .footer-legal { grid-column: 7 / -1; }
  .concept-note { grid-column: 1 / -1; max-width: 60ch; }
}

/* Unterhalb des Desktops und bei hochkantigen Fenstern (iPad Pro hochkant): Header-Leiste, Foto, Text.
   Der Hero füllt genau den ersten Screen (svh = Höhe bei eingeblendeter Browserleiste): Der Text nimmt,
   was er braucht, das Foto den Rest. Mindestens 45vw hoch (dann passen Wagen und Anhänger samt Dach und
   Rädern noch hinein), höchstens 75vw (= ganzes 4:3-Foto, sonst würde die Wagenfront angeschnitten). */
@media (max-width: 1023px), (max-aspect-ratio: 1/1) {
  .hero { min-height: 100svh; padding-top: var(--header-h); display: grid; grid-template-rows: minmax(45vw, 1fr) minmax(max(0px, 100svh - var(--header-h) - 75vw), auto); align-items: stretch; }
  .hero-media { position: relative; inset: auto; grid-row: 1; grid-column: 1; overflow: hidden; }
  .hero-media img { position: absolute; inset: 0; }
  .hero-inner { grid-row: 2; grid-column: 1; position: relative; min-height: 0; flex-direction: column; justify-content: center; align-items: flex-start; padding-top: var(--s-6); padding-bottom: var(--s-7); background: var(--forest-900); max-width: none; }
  .hero-content { max-width: 40rem; }
}

@media (max-width: 680px) {
  :root { --gap: 1rem; }
  /* Erster Screen auf dem Handy: Foto, Überschrift, Text, Button und Telefon ruhig auf einen Blick. */
  .hero-inner { padding-top: var(--s-5); padding-bottom: var(--s-6); }
  .hero h1 { margin-bottom: var(--s-4); }
  .hero-copy { margin-bottom: var(--s-5); font-size: 1rem; line-height: 1.55; }
  /* Button und Telefon nebeneinander: Schrift wächst mit der Breite, bei 360 px passt beides gerade
     in eine Zeile; erst darunter bricht das Telefon in die nächste Zeile. */
  .hero-actions { gap: var(--s-4) var(--s-3); }
  .hero-actions .button { padding-inline: .75rem; font-size: clamp(.875rem, 4vw, 1.0625rem); white-space: nowrap; }
  .hero-actions .contact-value { font-size: clamp(.875rem, 4vw, 1.0625rem); }
  .intro .intro-copy, .services, .steps, .regions, .field-row, .service-photos { grid-template-columns: minmax(0, 1fr); }
  .advice li { grid-template-columns: minmax(0, 1fr); }
  .advice h3, .advice p { grid-column: auto; }
  .choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choice .icon { display: none; }
  .direct-contact { grid-template-columns: minmax(0, 1fr); }
  .intro .intro-copy > * + * { margin-top: var(--s-4); }
  .animal:not(:first-child):not(:last-child) .animal-name { display: none; }
  .parade figcaption { text-align: left; }
  .region-map { max-width: 17rem; }
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .content > .crate-figure { margin-inline: calc(-1 * var(--gutter)); }
  .crate-figure figcaption { padding-inline: var(--gutter); }
  .crate .c-callout text { font-size: 17px; }
  .footer-contact, .footer-legal { grid-column: 1 / -1; }
  /* Querformate höchstens 82vw breit, damit das nächste Bild sichtbar anschließt */
  .gallery-track { --g-h: 17rem; }
  .gallery-item.quer { width: min(calc(var(--g-h) * 4 / 3), 82vw); }
}
/* Kurze Handy-Bildschirme (iPhone SE, kleine Androids, jeweils mit eingeblendeter Browserleiste): Text etwas
   dichter, damit Foto, Überschrift, Text, Button und Telefon zusammen auf den ersten Screen passen.
   Unter 380 px Breite bricht der Text früher um und braucht deshalb schon bei mehr Höhe die dichtere Fassung. */
@media (max-width: 379px) and (max-height: 700px), (max-width: 680px) and (max-height: 650px) {
  .hero-inner { padding-top: var(--s-4); padding-bottom: var(--s-5); }
  .hero-kicker { margin-bottom: var(--s-1); }
  .hero h1 { margin-bottom: var(--s-3); font-size: 2.125rem; }
  .hero-copy { margin-bottom: var(--s-4); font-size: .9375rem; line-height: 1.5; }
}
/* Sehr kurz (iPhone SE): Das Foto darf zum flachen Streifen werden, statt den Button unter den Rand zu schieben. */
@media (max-width: 680px) and (max-height: 600px) {
  .hero { grid-template-rows: minmax(30vw, 1fr) auto; }
}

/* ---------- Präferenzen ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media (forced-colors: active) {
  .button, .nav-cta, .menu-toggle, .video-control, .header-icon, .gallery-step { border: 2px solid ButtonText; }
}
@media print {
  .site-header, .hero-media, .video-control, .gallery-nav { display: none !important; }
  .gallery-track { overflow: visible; margin: 0; padding: 0; }
  .gallery-list { flex-wrap: wrap; }
}
