/* ==========================================================================
   BINI Bau – Stylesheet
   Desktop-Werte (1440 px Viewport) stammen 1:1 aus baseline/design.css.
   Aufbau: 1 Grundlagen · 2 Kopf/Navigation · 3 Hero · 4 Buttons · 5 Formulare
           6 Abschnitte der Landingpage · 7 Unterseiten · 8 Bewegung · 9 Responsive · 10 Reduzierte Bewegung
   ========================================================================== */

/* ---------- 1. Grundlagen ---------------------------------------------- */
/* Schrift der Entwurfs-Referenz: DIN Condensed Bold, nur lokal vorhanden (macOS-Systemschrift – nicht kopieren, siehe UEBERGABE.md).
   Fehlt sie auf dem Gerät, greift „Title Web“ = Barlow Condensed Bold (SIL OFL 1.1, fonts/OFL-Barlow-Condensed.txt) mit
   Metrik-Anpassung an DIN: gleiche Versal-Lage und Zeilenhöhe; die ca. 7 % größere Breite gleicht html.no-din über die
   Laufweite aus. Verbleibende Abweichung: andere Buchstabenformen, Versalhöhe ca. 8 % niedriger. */
@font-face {
  font-family: Title;
  src: local('DIN Condensed Bold'), local('DIN-CondensedBold');
  font-display: swap;
}
@font-face {
  font-family: 'Title Web';
  src: url('../fonts/barlow-condensed-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-display: block;   /* kein sichtbarer Schriftwechsel mitten in der Überschrift */
  size-adjust: 93%;
  ascent-override: 84%;
  descent-override: 46%;
  line-gap-override: 0%;
}

:root {
  --navy: #102d50;
  --orange: #ff8400;
  --orange-ring: #e86f00;      /* Fokus-/Fehlerrand: orange, aber mit >= 3:1 Kontrast auf Weiß */
  --white: #fff;
  --light: #f7f7f7;
  --outer: #e6e7e8;
  --muted: #63717d;
  --error: #b3261e;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font-title: Title, 'Title Web', 'Arial Narrow', 'Roboto Condensed', Arial, sans-serif;
  --font-body: Arial, Helvetica, sans-serif;

  --frame: 24px;        /* Abstand der Seitenfläche zum Viewportrand (unter 1328 px Viewport) */
  --pad: 40px;          /* Innenabstand der Inhaltsabschnitte */
  --page-top: 32px;
  --page-radius: 43px;
  --nav-top: 27px;      /* Abstand der Navigation vom Heroanfang */
  --nav-side: 64px;     /* seitlicher Abstand der Navigation */
  --nav-stuck: 16px;    /* Abstand zum Viewportrand, sobald die Navigation mitläuft */
  --nav-h: 76px;
  --nav-r: 70px;
  --ls: .95;            /* Skalierung des Logo-Ausschnitts in der Navigation (Entwurf: 1) */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--outer);
  color: var(--navy);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
html { scroll-padding-top: calc(var(--nav-stuck) + var(--nav-h) * var(--zoom, 1) + 16px); }   /* gilt für Sprunglinks und Tastaturfokus unter der mitlaufenden Navigation */

.sr-only {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
/* Köderfeld gegen Spam-Programme: unsichtbar, nicht fokussierbar, für Screenreader verborgen (aria-hidden) */
.hp-field {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; opacity: 0; pointer-events: none;
}
.hp-field label, .hp-field input { display: block; width: 1px; height: 1px; margin: 0; padding: 0; border: 0; overflow: hidden; font-size: 1px; }
.skip-link {
  position: fixed; left: 16px; top: 16px; z-index: 300; padding: 12px 18px; border-radius: 8px;
  background: var(--navy); color: #fff; font-size: 15px;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; outline: 3px solid #fff; outline-offset: 2px; }

:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
main:focus { outline: none; }
.hero :focus-visible, .contact :focus-visible, .page-hero :focus-visible { outline-color: #fff; }
.site-header :focus-visible, .request :focus-visible, .contact-right :focus-visible { outline-color: var(--navy); }

.heading {
  font-family: var(--font-title);
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.02;
}
.orange { color: var(--orange); }

/* Fallback-Schrift (nur wenn DIN fehlt; Klasse setzt das Skript im <head>) */
html.no-din .heading, html.no-din .nav-items a, html.no-din .btn, html.no-din .mark, html.no-din .card .num,
html.no-din .card-bottom, html.no-din .request-toggle, html.no-din .faq summary, html.no-din .info h3, html.no-din .badge b, html.no-din .reason .n, html.no-din .task .n, html.no-din .service-links a { letter-spacing: -.02em; }
html.no-din .heading { -webkit-text-stroke: .005em currentColor; }   /* ersetzt das im Entwurf synthetisch verstärkte Fett */

/* Seitenfläche */
.page {
  position: relative;
  display: flow-root;
  width: var(--page-w, min(1280px, calc(100% - 2 * var(--frame))));   /* --page-w setzt das Skript im <head> nur auf großen Bildschirmen */
  margin: var(--page-top) auto 0;
  background: #fff;
  overflow: hidden;
  overflow: clip;       /* clip statt hidden: die Navigation darf mitlaufen (position: sticky) */
  border-radius: var(--page-radius) var(--page-radius) 0 0;
  zoom: var(--zoom, 1);   /* große Bildschirme: Seite wird breiter und moderat vergrößert (Rand bleibt 80 px, Hero passt ins Fenster) */
}
@supports not (overflow: clip) {
  .page { overflow: visible; }
  .hero, .page-hero, .hero::after, .page-hero::after { border-radius: var(--page-radius) var(--page-radius) 0 0; }
}
.inner { width: min(1120px, calc(100% - 2 * var(--pad))); margin: auto; }

.small-label { font-size: 12px; line-height: 1.4; text-align: center; margin-bottom: 15px; }
.small-label::before { content: '•'; content: '•' / ''; color: var(--orange); margin-right: 5px; }
.section-title { font-size: 39px; text-align: center; }
.section-head { text-align: center; }

/* ---------- 2. Kopf / Navigation --------------------------------------- */
/* Die Navigation sitzt ohne Platzbedarf über dem Hero (Header hat Höhe 0) und läuft mit, sobald ihre
   Ruheposition den oberen Rand verlässt: Beim Wechsel gibt es keinen Sprung, weil es dasselbe Element bleibt. */
.site-header {
  position: sticky;
  top: calc(var(--nav-stuck) / var(--zoom, 1) - var(--nav-top));   /* bleibt auch bei vergrößerter Seite 16 echte px unter dem Rand */
  height: 0;
  z-index: 100;
}
.nav {
  position: absolute;
  left: var(--nav-side);
  right: var(--nav-side);
  top: var(--nav-top);
  height: var(--nav-h);
  border-radius: var(--nav-r);
  background: #fff;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 35px;
  box-shadow: 0 6px 22px #06142615;
  transition: box-shadow 200ms var(--ease);
}
.site-header.is-stuck .nav { box-shadow: 0 10px 30px rgba(6, 20, 38, .24), 0 2px 6px rgba(6, 20, 38, .12); }

.logo { position: relative; display: block; width: calc(86px * var(--ls)); height: calc(71px * var(--ls));   /* 70 statt 66 px: der Ausschnitt schnitt die Unterkante von „Bau“ an */
  overflow: hidden; flex: none; }
.logo img { position: absolute; width: calc(125px * var(--ls)); height: calc(125px * var(--ls)); max-width: none; left: calc(-22px * var(--ls)); top: calc(-26px * var(--ls)); }

.nav-items { margin-left: 50px; }
.nav-list { display: flex; gap: 48px; align-items: center; margin: 0; padding: 0; }
.nav-list > li { position: relative; display: flex; align-items: center; }
.nav-list > li > a { font-family: var(--font-title); font-size: 23px; text-transform: uppercase; padding: 6px 2px; transition: color 150ms var(--ease); }   /* Entwurf: 19 px – auf Wunsch größer */
.nav-list > li > a:hover, .has-sub.is-open > a { color: var(--orange); }
.nav-list > li > a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 7px; }   /* aktuelle Seite (Unterstreichung statt Orange: Kontrast) */
.nav-items .nav-cta { display: none; }

/* Dropdown-Menüs (Hover, Tastaturfokus, Antippen des Pfeils); Zustand steuert main.js über .is-open */
.nav-sub-toggle { display: flex; align-items: center; justify-content: center; width: 24px; height: 32px; margin-left: 1px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--navy); cursor: pointer; }
.nav-sub-toggle svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 180ms var(--ease); }
.has-sub.is-open > .nav-sub-toggle { color: var(--orange); }
.has-sub.is-open > .nav-sub-toggle svg { transform: rotate(180deg); }
.nav-sub {
  position: absolute; left: -20px; top: calc(100% + 30px); z-index: 5; min-width: 260px; margin: 0; padding: 10px;
  background: #fff; border-radius: 20px; box-shadow: 0 14px 34px rgba(6, 20, 38, .22), 0 2px 6px rgba(6, 20, 38, .08);
  visibility: hidden; opacity: 0; transform: translateY(8px);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease), visibility 0s linear 180ms;
}
.nav-sub::before { content: ''; position: absolute; left: 0; right: 0; top: -40px; height: 40px; }   /* unsichtbare Brücke zwischen Leiste und Menü, damit es beim Hinübergehen offen bleibt */
.has-sub.is-open > .nav-sub { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.nav-sub a { display: flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 12px; font-family: var(--font-title); font-size: 20px; text-transform: uppercase; white-space: nowrap; }
.nav-sub a:hover, .nav-sub a:focus-visible { background: #f6f6f6; color: var(--orange); }
/* Maus-Geräte ab 1024 px: Menü öffnet beim Darüberfahren/Fokus, kein sichtbarer Pfeil. Touch-Geräte und Handymenü behalten den Pfeil-Button. */
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) { .nav-sub-toggle { display: none; } }
html:not(.has-js) .has-sub:hover > .nav-sub, html:not(.has-js) .has-sub:focus-within > .nav-sub { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }   /* ohne Skript: Hover/Fokus */

.menu-toggle { display: none; }

/* ---------- 3. Hero ---------------------------------------------------- */
.hero {
  position: relative;
  min-height: 815px;
  color: #fff;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 610px) 398px;
  justify-content: space-between;
  align-items: start;
  padding: 190px max(70px, calc((100% - 1020px) / 2)) 20px;   /* Entwurf: 252 px/70 px – Formular und Text sitzen auf Wunsch höher und enger beieinander (Inhalt max. 1020 px, mittig; Entwurf: 1140 px) */
}
.hero-media { position: absolute; inset: 0; overflow: hidden; z-index: -2; }
.hero-parallax { position: absolute; left: 0; right: 0; top: -14px; bottom: -14px; will-change: transform; }
.hero-photo {
  display: block; width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: center;
  transform-origin: 50% 50%;
}
.hero-photo--bright { filter: brightness(.65); }   /* helles Foto (Baukräne): abgedunkelt, damit weiße und orange Schrift den Kontrast halten (weiß ≥ 6:1, Headline ≥ 3:1) */
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, #041b31bb 0%, #041b3140 68%, #041b3120), linear-gradient(0deg, #041b3150, transparent 70%);
}
.hero-copy { margin-top: 92px; min-width: 0; }   /* Entwurf: 68 px */
.hero-label { font-size: 15px; margin-bottom: 20px; }
.hero-label::before { content: '•'; content: '•' / ''; color: var(--orange); margin-right: 7px; }
.hero h1 { font-size: 79px; line-height: .99; display: flex; flex-direction: column; }  /* Flex: Zeilenhüllen-Margins kollabieren nicht */
.line { display: block; overflow: hidden; padding: .32em 0 .12em; margin: -.32em 0 -.12em; }   /* Platz für Umlautpunkte; Margins gleichen das Padding exakt aus */
.line-inner { display: block; }
.uline-box { position: relative; align-self: flex-start; font-size: 1.2em; margin-top: .06em; }   /* Markenname größer (Tom: „BINI Bau“ soll herausstechen); BINI weiß, BAU. orange wie das Logo zweifarbig */   /* schrumpft auf die Breite von „BINI Bau.“ */
.uline { position: absolute; left: -1.5%; top: calc(100% - .16em); width: 104%; max-width: none; height: auto; pointer-events: none; transform-origin: left center; }   /* Pinselstrich unter der dritten Zeile */
.hero .buttons { display: flex; gap: 20px; margin-top: 30px; flex-wrap: wrap; }

/* ---------- 4. Buttons -------------------------------------------------- */
.btn {
  background: var(--orange); color: #fff;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 7px 15px 7px 7px;
  border: 0; border-radius: 35px;
  font-family: var(--font-title); font-size: 19px; line-height: 1; text-transform: uppercase; white-space: nowrap;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease);
}
.btn__icon {
  width: 34px; height: 34px; background: #fff; color: var(--orange); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  font-family: Arial, Helvetica, sans-serif; font-size: 25px; font-weight: 400; flex: none;
}
.btn__arrow { display: block; transition: transform 180ms var(--ease); }
.btn--white { background: #fff; color: var(--navy); }
.btn--white .btn__icon { background: var(--orange); color: #fff; }
.btn--phone { font-size: 18px; padding-right: 17px; }
.btn--phone .btn__icon { font-size: 18px; }
.btn--lg { font-size: 21px; padding-right: 22px; }
.btn--lg .btn__icon { width: 38px; height: 38px; }

@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(6, 20, 38, .22); }
  .btn:hover .btn__arrow { transform: translateX(3px); }
}
.btn:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(6, 20, 38, .22); }
.btn:focus-visible .btn__arrow { transform: translateX(3px); }
.btn:active { transform: scale(.98); transition-duration: 100ms; }

/* ---------- 5. Formulare ------------------------------------------------ */
.request {
  background: #fff; color: var(--navy); border-radius: 8px; padding: 29px 22px;
  width: 398px; box-shadow: 0 12px 20px #06142619; min-width: 0;
}
.request h2 { font-size: 32px; text-align: center; margin-bottom: 27px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 14px; }
.field { font-size: 12px; font-weight: bold; line-height: 1.2; min-width: 0; }
.field--full { grid-column: span 2; }
.field label { display: block; }
.field input, .field textarea, .field select {
  display: block; width: 100%; margin: 8px 0 0; border: 0; border-radius: 0;
  background: #f6f6f6; color: var(--navy);
  font-size: 12px; font-weight: 400; line-height: 1.2;
  padding: 14.78px 12px 15.22px; height: 44.4px;   /* 14,78 px statt 15 px: gleiche Pixelzeile des Platzhaltertexts wie im Entwurf (echte Inputs runden anders als das div) */
  outline: 2px solid transparent; outline-offset: 0; box-shadow: 0 0 0 0 rgba(255, 132, 0, 0);
  transition: box-shadow 150ms var(--ease), outline-color 150ms var(--ease), background-color 150ms var(--ease);
  -webkit-appearance: none; appearance: none; border-radius: 0;
}
.field textarea { height: 107px; padding: 15px 12px; resize: none; min-height: 107px; }
.contact-form .field textarea { resize: vertical; }
.contact-form .field input, .contact-form .field textarea, .contact-form .field select { box-shadow: inset 0 -2px 0 #7b858c; }   /* Feldkante ≥ 3:1; die Hero-Felder bleiben wie im Entwurf */
.contact-form .field input:focus, .contact-form .field textarea:focus, .contact-form .field select:focus { box-shadow: 0 0 0 5px rgba(255, 132, 0, .2); }
.field select {
  padding-right: 34px; cursor: pointer; text-overflow: ellipsis;
  background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.field ::placeholder { color: #6a7178; opacity: 1; }   /* Entwurf: #737b82 (3,98:1) – minimal abgedunkelt für AA */
.field input:focus, .field textarea:focus, .field select:focus {
  background-color: #fff;
  outline: 2px solid var(--orange-ring); outline-offset: 0;
  box-shadow: 0 0 0 5px rgba(255, 132, 0, .2);
}
.field.has-error input, .field.has-error textarea, .field.has-error select { outline: 2px solid var(--error); outline-offset: 0; }
.field__error { font-size: 12px; font-weight: 400; line-height: 1.35; color: var(--error); margin-top: 6px; }
.request .btn { margin-top: 20px; }
.request-toggle { display: none; width: 100%; min-height: 52px; align-items: center; justify-content: center; gap: 10px; padding: 0 20px; border: 2px solid var(--navy); border-radius: 35px; background: #fff; color: var(--navy); font-family: var(--font-title); font-size: 21px; line-height: 1; text-transform: uppercase; cursor: pointer; transition: background-color 150ms var(--ease), color 150ms var(--ease); }
.request-toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 180ms var(--ease); }
.request-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.request-toggle:active { background: #f6f6f6; }
.request-note { font-size: 8px; line-height: 1.4; color: #70767a; margin-top: 13px; }   /* Entwurf: #8e969b (3,0:1) */
.request-note a, .contact-form-note a { text-decoration: underline; text-underline-offset: 1px; }
.request-note a:hover, .contact-form-note a:hover { color: var(--navy); }
.form-status {
  margin-top: 13px; font-size: 12px; line-height: 1.45; font-weight: 700; color: var(--navy);
  border-left: 3px solid var(--orange); padding: 8px 10px; background: #f6f6f6;
}
.form-status[hidden] { display: none; }
html:not(.has-js) .inquiry-form [type="submit"] { opacity: .55; cursor: not-allowed; }
.btn[aria-disabled="true"] { cursor: progress; }
.form-status.is-error { border-left-color: var(--error); background: #fdf0ef; color: #7a1913; }

/* ---------- 6. Abschnitte der Landingpage ------------------------------- */
.trust { padding: 73px 0 64px; background: #fff; }
.trust .section-title { font-size: 40px; }
.marks { display: flex; justify-content: space-between; align-items: center; margin: 43px 70px 0; }
.mark { display: flex; align-items: center; gap: 15px; font-family: var(--font-title); font-size: 27px; line-height: 1; text-transform: uppercase; max-width: 200px; }
.mark svg { width: 52px; height: 52px; stroke: var(--navy); stroke-width: 1.8; fill: none; flex: none; }
.mark span span { font-size: 19px; color: var(--orange); }

.services { background: var(--light); padding: 72px 0 76px; }
.service-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 30px 25px; margin-top: 42px; }
.service-grid > .card { grid-column: span 2; }

.card { position: relative; background: #fff; border-radius: 12px 12px 4px 4px; overflow: hidden; transition: transform 220ms var(--ease), box-shadow 220ms var(--ease); }
.card .photo { position: relative; height: 180px; overflow: hidden; }
.card .photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease); }
.card .photo img[src*="drywall"] { object-position: 50% 30%; }   /* Handwerker im Ausschnitt */
.card .photo img[src*="tapezieren"] { object-position: 50% 85%; }   /* Leiterfüße im Bild */
.card .photo .num { position: absolute; top: 13px; left: 13px; background: #fff; color: var(--navy); padding: 5px 8px; font-family: var(--font-title); font-size: 17px; border-radius: 5px; }
.card-body { padding: 22px 22px 20px; }
.card h3 { font-size: 26px; }
.card p { font-size: 12px; color: var(--muted); line-height: 1.65; margin-top: 9px; min-height: 39px; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; font-family: var(--font-title); font-size: 18px; text-transform: uppercase; }
.card-bottom::after { content: ''; position: absolute; inset: 0; z-index: 1; }   /* ganze Karte ist anklickbar */
@supports selector(:has(*)) {
  .card-bottom:focus-visible { outline: none; }   /* Ring sitzt dann um die ganze Karte (:has); sonst bleibt der Standard-Fokusring am Link */
}
.card:has(.card-bottom:focus-visible) { outline: 3px solid var(--navy); outline-offset: 3px; }
.round-arrow {
  height: 32px; width: 32px; display: flex; align-items: center; justify-content: center; flex: none;
  background: var(--orange); color: #fff; border-radius: 50%;
  transition: transform 180ms var(--ease);
}
.round-arrow svg { display: block; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }   /* Zeichnung statt Textzeichen „↗“: iOS zeigt es sonst als blaues Emoji */
@media (hover: hover) {
  .card:hover { transform: translateY(-4px); box-shadow: 0 10px 22px rgba(16, 45, 80, .09); }
  .card:hover .photo img { transform: scale(1.04); }
  .card:hover .round-arrow, .insight:hover .round-arrow { transform: translate(2px, -2px) rotate(8deg); }
}
.card:has(.card-bottom:focus-visible) .round-arrow, .insight:has(a:focus-visible) .round-arrow { transform: translate(2px, -2px) rotate(8deg); }

.why { padding: 71px 0 74px; }
.why-layout { display: grid; grid-template-columns: 480px 1fr; gap: 44px; margin-top: 37px; align-items: center; }
.why-photo { height: 430px; width: 416px; position: relative; margin-left: 54px; }
.why-photo__frame { position: absolute; inset: 0; }
.why-photo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 10px; object-position: 65% center; }
.badge { position: absolute; top: 41px; left: -54px; background: var(--orange); color: #fff; border-radius: 5px; width: 145px; padding: 20px 10px; text-align: center; }
.badge b { display: block; font-family: var(--font-title); font-size: 64px; line-height: 1; }
.badge span { display: block; font-size: 14px; line-height: 1.3; margin-top: 6px; }
.reasons { display: grid; gap: 14px; min-width: 0; }
.reason { display: grid; grid-template-columns: 52px 1fr; gap: 13px; background: #f6f6f6; border: 1px solid transparent; border-radius: 5px; padding: 18px 18px 17px; transition: border-color 180ms var(--ease); }
.reason .n { font-family: var(--font-title); font-size: 59px; line-height: .88; }
.reason h3 { font-size: 22px; }
.reason p { font-size: 12px; color: #65717c; line-height: 1.5; margin-top: 6px; }
.reasons .btn { justify-self: start; margin-top: 3px; }
.reasons--wide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 37px; }
@media (max-width: 899px) { .reasons--wide { grid-template-columns: 1fr; } }
@media (hover: hover) { .reason:hover { border-color: #ffa646; } }
.reason:focus-within, .reason.is-current { border-color: #ffa646; }
.reason.is-current .n, .reason:focus-within .n { color: var(--orange); }
@media (hover: hover) { .reason:hover .n { color: var(--orange); } }

.process { background: var(--light); padding: 66px 0 69px; }
.timeline { position: relative; width: min(810px, 100%); margin: 38px auto; display: flex; align-items: center; justify-content: space-between; }
.timeline__track { position: absolute; left: 20px; right: 20px; top: 17px; height: 1px; background: #d9dde0; }
.timeline__fill { position: absolute; left: 20px; right: 20px; top: 17px; height: 2px; background: var(--orange); transform-origin: left center; }
.dot { position: relative; z-index: 1; border: 1px solid #c0c6ca; border-radius: 50%; width: 34px; height: 34px; background: var(--orange); color: #fff; border-color: var(--orange); font-size: 12px; display: flex; align-items: center; justify-content: center; }   /* Ruhezustand: alle vier Punkte orange (ohne JS, bei reduzierter Bewegung und nach der Animation) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { position: relative; background: #fff; border: 1px solid #fff; border-radius: 4px; padding: 22px 16px; text-align: center; transition: border-color 180ms var(--ease); }
.step svg { width: 37px; height: 37px; stroke: var(--navy); fill: none; stroke-width: 1.4; }
.step h3 { font-size: 23px; margin: 14px 0 9px; transition: color 180ms var(--ease); }
.step p { font-size: 12px; color: #61707b; line-height: 1.5; }
.step__no { display: none; }
@media (hover: hover) { .step:hover { border-color: #ffad6a; } .step:hover h3 { color: var(--orange); } }
.step.is-current { border-color: #ffad6a; }
.step.is-current h3 { color: var(--orange); }

.insights { padding: 65px 0 60px; }
.insight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 37px; }
.insight { position: relative; }
.insight__media { display: block; overflow: hidden; border-radius: 7px; height: 235px; }
.insight__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease); }
.insight-row { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; }
.insight h3 { font-size: 24px; }
.insight h3 a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
@supports selector(:has(*)) {
  .insight h3 a:focus-visible { outline: none; }
}
.insight:has(a:focus-visible) .insight__media { outline: 3px solid var(--navy); outline-offset: 3px; }
.insight p { font-size: 12px; color: #61717b; line-height: 1.6; margin-top: 8px; max-width: 290px; }
@media (hover: hover) { .insight:hover .insight__media img { transform: scale(1.035); } }
.photo-note { font-size: 10px; color: #70777a; text-align: center; margin-top: 31px; }   /* Entwurf: #91999e (2,9:1) */

.contact { background: var(--navy); padding: 58px 0; color: #fff; }
.contact .inner { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.contact .small-label { text-align: left; margin-bottom: 22px; }
.contact h2 { font-size: 56px; line-height: 1.05; }
.contact .contact-text { font-size: 15px; color: #c5d1db; line-height: 1.7; max-width: 385px; margin-top: 22px; }
.contact-details { display: flex; gap: 16px; font-size: 11px; color: #a7bacb; border-top: 1px solid #57718a; margin-top: 30px; padding-top: 20px; flex-wrap: wrap; }
.contact-right { background: #fff; color: var(--navy); border-radius: 8px; padding: 32px; }
.contact-right h3 { font-size: 29px; }
.contact-right p { font-size: 13px; color: #6c7780; margin: 15px 0 21px; max-width: 100%; line-height: 1.7; }

.footer { padding: 29px 0; background: #fff; }
.footer .inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; color: #6a7784; font-size: 11px; gap: 16px; }
.footer .inner > :last-child { justify-self: end; }   /* Entwurf: #758492 (3,8:1) */
.footer b { color: var(--navy); }
.footer-links { display: flex; gap: 23px; }
.footer-links a:hover { color: var(--navy); text-decoration: underline; }

/* ---------- 7. Unterseiten ---------------------------------------------- */
/* Unterseiten leiten sich aus der Landingpage ab: gleicher Foto-Hero, gleiche Navigation, gleiche Buttons,
   helle Inhaltsabschnitte und derselbe Footer. */
.page-hero { position: relative; color: #fff; isolation: isolate; min-height: 520px; padding: 190px max(70px, calc((100% - 1020px) / 2)) 64px; display: flex; flex-direction: column; justify-content: flex-end; }
.page-hero .hero-media { z-index: -2; }
.page-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, #041b31bb 0%, #041b3140 68%, #041b3120), linear-gradient(0deg, #041b3150, transparent 70%), rgba(4, 27, 49, .16); }   /* Overlay des Entwurfs + leichte Tönung für Lesbarkeit auf hellen Fotos */
.page-hero--short { min-height: 440px; }
.page-hero--dim::after { background: linear-gradient(90deg, #041b31bb 0%, #041b3140 68%, #041b3120), linear-gradient(0deg, #041b3150, transparent 70%), rgba(4, 27, 49, .27); }
.page-hero--plain { background: radial-gradient(85% 130% at 82% -20%, #2a5c96 0%, rgba(42, 92, 150, 0) 62%), radial-gradient(60% 100% at 0% 112%, #17406f 0%, rgba(23, 64, 111, 0) 68%), #0f2b4d; }   /* Kopf ohne Foto (Kontakt, Impressum, Datenschutz): Markenblau mit leichtem Lichtverlauf */
.page-hero--plain::after { background: none; }
.page-hero--scrim::after { background: linear-gradient(90deg, rgba(4, 27, 49, .84) 0%, rgba(4, 27, 49, .7) 45%, rgba(4, 27, 49, .22) 82%), linear-gradient(90deg, #041b31bb 0%, #041b3140 68%, #041b3120), linear-gradient(0deg, #041b3150, transparent 70%), rgba(4, 27, 49, .3); }   /* helle Fotos (Küche, Baustelle, Boden): zusätzlicher Schleier auf der Textseite, damit kleine weiße Schrift 4,5:1 hält */
.page-hero .hero-label { margin-bottom: 18px; }
.page-hero h1 { font-size: 79px; line-height: .99; max-width: 820px; display: flex; flex-direction: column; }
.page-hero .lead { font-size: 17px; line-height: 1.6; color: #e6edf3; max-width: 640px; margin-top: 20px; }
.page-hero .buttons { display: flex; gap: 20px; margin-top: 30px; flex-wrap: wrap; }
.crumbs { font-size: 12px; margin-bottom: 18px; color: #dbe5ee; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.crumbs li + li::before { content: '/'; margin-right: 8px; opacity: .6; }
.crumbs a { text-decoration: underline; text-underline-offset: 2px; }
.crumbs a:hover { color: #fff; }

.section { padding: 72px 0 76px; }
.section--light { background: var(--light); }
.section--tight { padding-top: 0; }   /* folgt auf einen weißen Abschnitt: kein doppelter Abstand */
.section-title--left { text-align: left; }
.small-label--left { text-align: left; }

.intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) 416px; gap: 64px; align-items: center; }
.intro-grid h2 { margin-bottom: 18px; }
.prose p { font-size: 15px; line-height: 1.75; color: #3d4f62; max-width: 62ch; }
.prose p + p { margin-top: 14px; }
.photo-frame { position: relative; height: 380px; }
.photo-frame img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.tasks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 25px; margin-top: 37px; }
.tasks--1 { grid-template-columns: minmax(0, 720px); justify-content: center; }
.task--link { position: relative; }
.task--link h3 a::after { content: ''; position: absolute; inset: 0; }   /* ganze Kachel ist anklickbar */
@supports selector(:has(*)) { .task--link h3 a:focus-visible { outline: none; } }
.task--link:has(a:focus-visible) { outline: 3px solid var(--navy); outline-offset: 3px; }
@media (hover: hover) { .task--link:hover { border-color: #ffa646; } .task--link:hover h3 { color: var(--orange); } }
.task h3 { transition: color 180ms var(--ease); }
.section-head--spaced { margin-top: 72px; }
.section-head--spaced + .steps { margin-top: 37px; }
.tasks--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tasks--3 .task { grid-template-columns: 1fr; gap: 6px; padding: 22px 22px 20px; align-content: start; }
.task { display: grid; align-content: start; grid-template-columns: 52px 1fr; gap: 13px; background: #fff; border: 1px solid #fff; border-radius: 5px; padding: 18px 18px 17px; transition: border-color 180ms var(--ease); }
.task .n { font-family: var(--font-title); font-size: 46px; line-height: .9; color: var(--orange); }
.task h3 { font-size: 22px; }
.task p { font-size: 13px; color: #5d6c78; line-height: 1.55; margin-top: 6px; }
@media (hover: hover) { .task:hover { border-color: #ffa646; } }

/* Bereichsseiten: „Gut zu wissen“ (Info-Karten) und „Häufige Fragen“ (aufklappbar, ohne Skript) */
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 37px; }
.info { position: relative; background: #f6f6f6; border-radius: 5px; padding: 28px 24px 26px; }
.info::before { content: ''; display: block; width: 34px; height: 3px; border-radius: 2px; background: var(--orange); margin-bottom: 16px; }
.info h3 { font-size: 24px; margin-bottom: 8px; }
.info p { font-size: 14px; line-height: 1.7; color: #3d4f62; }
.faq { display: grid; gap: 12px; max-width: 860px; margin: 37px auto 0; }
.faq__item { background: #f6f6f6; border-radius: 5px; border-left: 3px solid transparent; transition: border-color 180ms var(--ease); }
.faq__item[open] { border-left-color: var(--orange); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 12px 20px; cursor: pointer; list-style: none; font-family: var(--font-title); font-size: 22px; line-height: 1.15; text-transform: uppercase; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 180ms var(--ease); }
.faq__item[open] summary svg { transform: rotate(180deg); }
.faq summary:focus-visible { outline: 3px solid var(--navy); outline-offset: -3px; border-radius: 5px; }
.faq__item p { padding: 0 20px 20px; font-size: 15px; line-height: 1.7; color: #3d4f62; max-width: 68ch; }
@media (hover: hover) { .faq summary:hover { color: var(--orange); } }
@media (max-width: 899px) { .info-grid { grid-template-columns: 1fr; } .faq summary { font-size: 20px; } }

.help-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.help-grid h2 { margin-bottom: 14px; }
.checklist { display: grid; gap: 12px; }
.checklist li { position: relative; background: #f6f6f6; border-radius: 5px; padding: 15px 16px 15px 46px; font-size: 14px; line-height: 1.55; color: #3d4f62; }
.checklist li::before { content: '•'; content: '•' / ''; position: absolute; left: 18px; top: 14px; color: var(--orange); font-size: 18px; line-height: 1.5; }   /* gleicher Punkt wie bei .small-label */
.note-box { margin-top: 18px; border: 1px solid #ffa646; background: #f6f6f6; padding: 14px 16px; font-size: 14px; line-height: 1.6; color: #3d4f62; border-radius: 5px; }   /* wie die erste Box im Why-Abschnitt */
.note-box strong { color: var(--navy); }

.service-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 20px; margin-top: 37px; }
.service-links li { display: flex; }
.service-links a { flex: 1; display: flex; align-items: center; gap: 12px; min-height: 64px; background: #fff; border: 1px solid #fff; border-radius: 5px; padding: 12px 16px; font-family: var(--font-title); font-size: 20px; line-height: 1.05; text-transform: uppercase; transition: border-color 180ms var(--ease), color 180ms var(--ease); }
.service-links .n { color: var(--orange); font-size: 26px; flex: none; }
.service-links a:hover, .service-links a:focus-visible { border-color: #ffa646; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 25px; margin-top: 42px; }
.related-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; margin-left: auto; margin-right: auto; }   /* zwei weitere Bereiche */

.draft-note { background: #fff7ee; border: 1px dashed #ffa646; border-radius: 6px; padding: 14px 16px; font-size: 13px; line-height: 1.55; color: #5a3a0e; }
.draft-note strong { color: #7a3d00; }
.placeholder { background: #fff0dc; color: #7a3d00; padding: 1px 6px; border-radius: 3px; font-size: .92em; }

.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 64px; align-items: start; }
.contact-info h2 { margin-bottom: 16px; }
.contact-info .prose p { max-width: 52ch; }
.contact-channels { display: grid; gap: 12px; margin-top: 26px; }
.contact-channels dt { font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.contact-channels dd { margin: 0; font-size: 14px; color: #3d4f62; }
.contact-channels a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
/* Touch: Telefon/E-Mail antippbar mit ≥ 44 px Höhe, ohne das Layout zu verschieben */
@media (pointer: coarse), (max-width: 767px) {
  .contact-channels a { display: inline-block; padding: 14px 0; margin: -14px 0; }
}
.contact-form { background: #fff; border-radius: 8px; padding: 29px 22px 24px; box-shadow: 0 12px 20px #06142619; }
.contact-form h2 { font-size: 32px; text-align: center; margin-bottom: 27px; }
.contact-form .btn { margin-top: 20px; }
.contact-form-note { font-size: 11px; line-height: 1.5; color: #6c767e; margin-top: 13px; }

.legal { max-width: 760px; margin: 0 auto; }
.legal h2 { font-size: 28px; margin: 34px 0 12px; }
.legal h3 { font-size: 20px; margin: 22px 0 8px; }
.legal p, .legal li { font-size: 15px; line-height: 1.7; color: #3d4f62; }
.legal p + p, .legal ul + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; margin-top: 8px; }
.legal a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- 8. Bewegung -------------------------------------------------- */
/* Ausgeblendete Startzustände existieren nur mit der Klasse .js (wird im <head> gesetzt und bei Fehlern
   wieder entfernt). Ohne JavaScript, bei Skriptfehlern oder reduzierter Bewegung ist alles sofort sichtbar. */
@keyframes rv { from { opacity: 0; transform: translate3d(0, var(--ry, 16px), 0); } to { opacity: 1; transform: none; } }
@keyframes hero-in { from { opacity: 0; transform: translate3d(0, var(--hy, 22px), 0); } to { opacity: 1; transform: none; } }
@keyframes uline-draw { from { opacity: 0; transform: scaleX(0); } to { opacity: 1; transform: none; } }
@keyframes photo-settle { from { transform: scale(1.025); } to { transform: scale(1); } }
/* Ablauf: Die Linie fließt von 01 nach 02, 02 wird orange, weiter nach 03, 03 wird orange, weiter nach 04, 04 wird orange – und bleibt es.
   Drei Teilstücke mit eigenem Easing; die Wegpunkte entsprechen den Punktmitten (0 · 33,2 % · 66,8 % · 100 % der Linienlänge). */
@keyframes line-flow {
  0%     { transform: scaleX(0);    animation-timing-function: cubic-bezier(.22, 1, .36, 1); }
  33.33% { transform: scaleX(.332); animation-timing-function: cubic-bezier(.22, 1, .36, 1); }
  66.66% { transform: scaleX(.668); animation-timing-function: cubic-bezier(.22, 1, .36, 1); }
  100%   { transform: scaleX(1); }
}
@keyframes dot-on { from { background: var(--light); color: var(--navy); border-color: #c0c6ca; } to { background: var(--orange); color: #fff; border-color: var(--orange); } }

/* Hero-Einstieg */
/* Der Einstieg startet mit dem ersten Stilberechnen (Klasse js steht im <head>) – er hängt nicht vom später geladenen main.js ab. */
html.js .hero-photo { animation: photo-settle 1100ms var(--ease) backwards; }
html.js [data-hero] { animation: hero-in var(--hd, 650ms) var(--ease) var(--hdelay, 0ms) backwards; }
[data-hero="nav"] { --hy: -10px; --hd: 550ms; }
[data-hero="label"] { --hy: 10px; --hd: 450ms; --hdelay: 40ms; }
[data-hero="line"] { --hy: 22px; --hd: 650ms; }
[data-hero="line"][data-i="0"] { --hdelay: 110ms; }
[data-hero="line"][data-i="1"] { --hdelay: 200ms; }
[data-hero="line"][data-i="2"] { --hdelay: 290ms; }
html.js .uline { animation: uline-draw 650ms var(--ease) 820ms backwards; }   /* zeichnet sich von links ein, nachdem „BINI Bau.“ steht */
[data-hero="buttons"] { --hy: 10px; --hd: 450ms; --hdelay: 390ms; }
[data-hero="form"] { --hy: 18px; --hd: 700ms; --hdelay: 220ms; }
[data-hero="lead"] { --hy: 12px; --hd: 500ms; --hdelay: 300ms; }

/* Scroll-Einblendungen (einmalig, per IntersectionObserver) */
:where(html.js) [data-reveal] { --ry: 16px; --rd: 550ms; --rdelay: 0ms; }   /* :where → niedrige Spezifität, die Typregeln unten gewinnen */
html.js [data-reveal]:not(.is-in) { opacity: 0; }
html.js [data-reveal].is-in { animation: rv var(--rd) var(--ease) var(--rdelay) backwards; }
[data-reveal="trust-title"] { --ry: 14px; --rd: 500ms; }
[data-reveal="mark"] { --ry: 10px; --rd: 450ms; }
[data-reveal="title"] { --ry: 16px; --rd: 550ms; }
[data-reveal="card"] { --ry: 20px; --rd: 550ms; }
[data-reveal="photo"] { --ry: 16px; --rd: 650ms; }
[data-reveal="badge"] { --ry: 8px; --rd: 500ms; }
[data-reveal="reason"] { --ry: 12px; --rd: 500ms; }
[data-reveal="step"] { --ry: 12px; --rd: 450ms; }
[data-reveal="insight"] { --ry: 16px; --rd: 550ms; }
[data-reveal="contact"] { --ry: 14px; --rd: 550ms; }
[data-reveal="block"] { --ry: 14px; --rd: 550ms; }

/* Ablauf: das im Entwurf vorhandene orange Teilstück wird von links aufgebaut */
html.js .timeline:not(.is-in) .timeline__fill { transform: scaleX(0); }
html.js .timeline:not(.is-in) .dot:not([data-n="1"]) { background: var(--light); color: var(--navy); border-color: #c0c6ca; }
html.js .timeline.is-in .timeline__fill { animation: line-flow 2100ms linear backwards; }
html.js .timeline.is-in .dot[data-n="2"] { animation: dot-on 350ms var(--ease) 300ms backwards; }
html.js .timeline.is-in .dot[data-n="3"] { animation: dot-on 350ms var(--ease) 1000ms backwards; }
html.js .timeline.is-in .dot[data-n="4"] { animation: dot-on 350ms var(--ease) 1700ms backwards; }
.step::after { content: ''; position: absolute; inset: -1px; border: 1px solid var(--orange); border-radius: 4px; opacity: 0; pointer-events: none; }
@keyframes step-flash { 0% { opacity: 0; } 20% { opacity: 1; } 62% { opacity: 1; } 100% { opacity: 0; } }
html.js .timeline.is-in ~ .steps .step:nth-child(1)::after { animation: step-flash 1100ms var(--ease) 100ms backwards; }
html.js .timeline.is-in ~ .steps .step:nth-child(2)::after { animation: step-flash 1100ms var(--ease) 750ms backwards; }
html.js .timeline.is-in ~ .steps .step:nth-child(3)::after { animation: step-flash 1100ms var(--ease) 1450ms backwards; }
html.js .timeline.is-in ~ .steps .step:nth-child(4)::after { animation: step-flash 1100ms var(--ease) 2150ms backwards; }

/* ---------- 9. Responsive ------------------------------------------------ */
/* Niedrige Laptop-Fenster: Hero-Inhalt rückt nach oben, damit das Formular im Fenster bleibt */
@media (min-width: 1200px) and (max-height: 780px) {
  .hero { padding-top: 128px; }
  .hero-copy { margin-top: 90px; }
}

/* Laptop: Seitenfläche schrumpft, Hero bleibt zweispaltig */
@media (max-width: 1199px) {
  :root { --nav-side: 32px; }
  .hero { padding: 190px 40px 28px; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; }
  .hero-copy { margin-top: 92px; }
  .hero h1 { font-size: clamp(54px, 6.4vw, 70px); }
  .request { width: 360px; }
  .hero .buttons { gap: 14px; }
  .nav { padding-left: 24px; }
  .nav-items { margin-left: 24px; }
  .nav-list { gap: 32px; }
  .nav-list > li > a { font-size: 21px; }
  .marks { margin-left: 0; margin-right: 0; }
  .why-layout { grid-template-columns: 440px 1fr; gap: 32px; }
  .why-photo { width: 380px; margin-left: 54px; }
  .contact .inner { gap: 56px; }
  .contact h2 { font-size: 48px; }
  .page-hero { padding: 180px 40px 56px; }
  .page-hero h1 { font-size: clamp(54px, 6.4vw, 70px); }
  .intro-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; }
  .contact-layout { grid-template-columns: minmax(0, 1fr) 460px; gap: 40px; }
}

/* Tablet: kompakte Navigation (Menübutton), gestapelter Hero, zwei Kartenspalten */
@media (max-width: 1023px) {
  :root { --nav-h: 68px; --nav-side: 24px; --ls: .88; }
  .nav { padding: 0 10px 0 22px; }
  .nav > .btn--phone { display: none; }
  .nav-items {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px;
    background: #fff; border-radius: 28px; box-shadow: 0 14px 34px rgba(6, 20, 38, .22);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 180ms var(--ease), transform 180ms var(--ease), visibility 0s linear 180ms;
    max-height: calc(100vh - var(--nav-stuck) - var(--nav-h) - 16px);
    max-height: calc(100dvh - var(--nav-stuck) - var(--nav-h) - 16px);
    overflow-y: auto; overscroll-behavior: contain;
  }
  html.has-js .site-header:not(.is-stuck) .nav-items { max-height: calc(100vh - var(--page-top) - var(--nav-top) - var(--nav-h) - 24px); max-height: calc(100dvh - var(--page-top) - var(--nav-top) - var(--nav-h) - 24px); }   /* in Ruhelage sitzt die Navigation tiefer (59 statt 16 px) */
  .nav-items > * { flex-shrink: 0; }
  .nav-items.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-list > li { flex-wrap: wrap; position: static; }
  .nav-list > li > a { flex: 1; font-size: 22px; padding: 0 18px; min-height: 48px; display: flex; align-items: center; border-radius: 14px; }
  .nav-list > li > a:hover { background: #f6f6f6; color: var(--navy); }
  .nav-sub-toggle { width: 48px; height: 48px; border-radius: 14px; }
  .nav-sub-toggle svg { width: 14px; height: 14px; }
  .nav-sub { position: static; display: none; visibility: visible; opacity: 1; transform: none; flex-basis: 100%; min-width: 0; margin: 0 0 6px; padding: 0 0 0 18px; background: transparent; box-shadow: none; border-radius: 0; transition: none; }
  .nav-sub::before { display: none; }
  .has-sub.is-open > .nav-sub { display: block; }
  .nav-sub a { min-height: 44px; font-size: 18px; }
  .nav-items .nav-cta { display: inline-flex; margin: 8px 4px 4px; align-self: flex-start; font-size: 18px; min-height: 0; padding: 7px 17px 7px 7px; border-radius: 35px; }
  .nav-items .nav-cta:hover { background: var(--orange); color: #fff; }
  .menu-toggle {
    display: none; width: 48px; height: 48px; border: 0; border-radius: 50%; background: #fff; cursor: pointer;
    align-items: center; justify-content: center; flex-direction: column; gap: 5px; padding: 0; color: var(--navy);
  }
  html.has-js .menu-toggle { display: flex; }
  .menu-toggle span.bar { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 180ms var(--ease), opacity 120ms; }
  .menu-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }
  /* Ohne JavaScript bleibt das Menü sichtbar und klappt unter dem Logo auf */
  html:not(.has-js) .nav { height: auto; flex-wrap: wrap; padding: 10px 16px; row-gap: 4px; }
  html:not(.has-js) .nav-items { position: static; visibility: visible; opacity: 1; transform: none; flex-direction: row; flex-wrap: wrap; box-shadow: none; padding: 0; width: 100%; max-height: none; }
  html:not(.has-js) .nav-list { flex-direction: row; flex-wrap: wrap; }
  html:not(.has-js) .nav-list > li > a { font-size: 18px; min-height: 44px; }
  html:not(.has-js) .nav-sub-toggle { display: none; }

  .hero { grid-template-columns: minmax(0, 1fr); padding: 170px 40px 56px; gap: 40px; min-height: 0; }
  /* helles Hero-Foto im gestapelten Layout: nur der obere Teil (Kräne neben der Überschrift), darunter läuft es in das Markenblau aus */
  .hero-media { background: var(--navy); }
  .hero-photo--bright { filter: brightness(.42); height: 760px; max-height: 100%; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
  .hero-copy { margin-top: 0; }
  .hero h1 { font-size: clamp(48px, 9vw, 70px); }
  .request { width: 100%; max-width: 640px; }
  
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid > .card { grid-column: auto; }
  .service-grid > .card:last-child:nth-child(odd) { grid-column: 1 / -1; width: calc(50% - 12px); justify-self: center; }   /* ungerade letzte Karte mittig */
  .why-layout { grid-template-columns: 1fr; gap: 40px; justify-items: center; }
  .why-photo { width: min(416px, calc(100% - 54px)); margin-left: 54px; }
  .reasons { width: 100%; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .page-hero { padding: 150px 40px 48px; min-height: 0; }
  .intro-grid, .help-grid, .contact-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .photo-frame { height: 320px; }
  .tasks { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .service-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related-grid > .card:last-child { display: none; }
  .related-grid--2 > .card:last-child { display: block; }
  .contact-form { max-width: 560px; }

  /* Ablauf: auf Tablet gehört die Nummer in die Karte (2×2-Raster), die breite Zeitleiste entfällt */
  .timeline { display: none; }
  .steps { margin-top: 30px; }
  .step__no { display: flex; width: 34px; height: 34px; margin: 0 auto 12px; border-radius: 50%; border: 1px solid #c0c6ca; align-items: center; justify-content: center; font-size: 12px; background: var(--orange); color: #fff; border-color: var(--orange); }

  /* Touchflächen >= 44 px, lesbare Mindestgrößen */
  .footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; }
  .footer .inner { align-items: center; font-size: 13px; }
  .crumbs ol { align-items: center; gap: 0 4px; }
  .crumbs li a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
  .crumbs li[aria-current] { padding: 0 4px; }
  .crumbs { margin-bottom: 0; }
  .request-note { font-size: 12px; color: #6c767e; }
  .field { font-size: 14px; }
  .field input, .field textarea, .field select { font-size: 16px; }
  .field input, .field select { height: 48px; }
  .card p, .reason p, .step p, .insight p { font-size: 14px; }
    .photo-note, .contact-form-note { font-size: 12px; }
  .contact-details { font-size: 13px; }
  .legal a { display: inline-block; padding: 10px 0; }
}

@media (max-width: 899px) {
  .marks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
  .mark { max-width: none; }
  .marks > .mark:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; }
  .insight-grid { grid-template-columns: 1fr; gap: 32px; max-width: 520px; margin-left: auto; margin-right: auto; }
  .contact .inner { grid-template-columns: 1fr; gap: 40px; }
  .contact h2 { font-size: clamp(38px, 8vw, 48px); }
  .contact .contact-text { max-width: 520px; }
  .page-hero::after { background: linear-gradient(90deg, #041b31bb 0%, #041b3140 68%, #041b3120), linear-gradient(0deg, #041b3150, transparent 70%), rgba(4, 27, 49, .45); }
  .page-hero--plain::after { background: none; }
  .page-hero--scrim::after { background: linear-gradient(90deg, #041b31bb 0%, #041b3140 68%, #041b3120), linear-gradient(0deg, #041b3150, transparent 70%), rgba(4, 27, 49, .58); }
  .page-hero .hero-photo[src*="drywall"] { object-position: 62% 40% !important; }   /* schmales Fenster zeigt nur die Bildmitte: der Handwerker soll im Bild bleiben (Inline-Wert überschreiben) */
  .footer .inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
  .footer .inner > :last-child { justify-self: auto; }
}

/* Mobil: eine Spalte, volle Breite, lesbare Schriftgrößen, Touchflächen >= 44 px */
@media (max-width: 767px) {
  :root { --frame: 0px; --pad: 20px; --page-top: 0px; --page-radius: 0px; --nav-top: 12px; --nav-side: 12px; --nav-stuck: 10px; --nav-h: 64px; --ls: .8; }
  body { background: #fff; }
  .small-label { font-size: 13px; }
  .section-title { font-size: clamp(28px, 8.4vw, 36px); }
  .trust .section-title { font-size: clamp(28px, 8.4vw, 36px); }
  .trust, .services, .why, .process, .insights, .section { padding-top: 52px; padding-bottom: 52px; }
  .section-title br { display: none; }
  .hero { padding: 132px 20px 36px; gap: 32px; }
  .hero-label { font-size: 15px; }
  .hero h1 { font-size: clamp(40px, 12.4vw, 54px); }
  .hero .buttons { margin-top: 24px; }
  .hero .buttons .btn { font-size: 20px; }
  .request { padding: 24px 18px; max-width: none; }
  .request h2 { font-size: 30px; margin-bottom: 22px; }
  .request-toggle { display: flex; }
  html.has-js .hero .request:not(.is-open) h2 { margin-bottom: 18px; }
  html.has-js .hero .request:not(.is-open) .inquiry-form, html.has-js .hero .request:not(.is-open) noscript { display: none; }   /* nur mit Skript eingeklappt (has-js); Notausgang des Skripts öffnet es wieder */
  .request-toggle[aria-expanded="true"] { margin-bottom: 22px; }
  .form-grid { grid-template-columns: 1fr; gap: 16px; }
  .field--full { grid-column: auto; }
  .field { font-size: 14px; }
  .field input, .field textarea, .field select { font-size: 16px; height: 48px; }
  .field textarea { height: 112px; min-height: 104px; }
  .field__error { font-size: 13px; }
  .request-note { font-size: 12px; color: #6c767e; }
  .form-status { font-size: 14px; }
    .marks { margin-top: 32px; }
  .mark { font-size: 22px; gap: 10px; }
  .mark svg { width: 40px; height: 40px; }
  .mark span span { font-size: 16px; }
  .service-grid { grid-template-columns: 1fr; margin-top: 32px; }
  .service-grid > .card:last-child:nth-child(odd) { width: auto; justify-self: stretch; }
  .card p { font-size: 14px; min-height: 0; }
  .card-bottom { font-size: 19px; min-height: 44px; }
  .why-layout { margin-top: 28px; }
  .why-photo { width: calc(100% - 20px); height: 340px; margin-left: 20px; }
  .badge { left: -20px; top: 24px; width: 130px; padding: 16px 10px; }
  .badge b { font-size: 56px; }
  .reason { grid-template-columns: 44px 1fr; padding: 16px 14px; }
  .reason .n { font-size: 50px; }
  .reason p { font-size: 14px; }
  .reasons .btn { justify-self: stretch; justify-content: flex-start; }

  .timeline { display: none; }
  .steps { grid-template-columns: 1fr; gap: 14px; position: relative; margin-top: 30px; }
  .step { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; text-align: left; padding: 18px 16px; align-items: start; }
  .step svg { grid-column: 2; grid-row: 1; width: 32px; height: 32px; }
  .step h3 { grid-column: 2; margin: 8px 0 6px; font-size: 24px; }
  .step p { grid-column: 2; font-size: 14px; }
  .step__no { display: flex; grid-column: 1; grid-row: 1 / span 3; margin: 0; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #c0c6ca; align-items: center; justify-content: center; font-size: 12px; background: var(--orange); color: #fff; border-color: var(--orange); }

  .insight p { font-size: 14px; max-width: none; }
  .photo-note { font-size: 12px; }
  .contact { padding: 48px 0; }
  .contact h2 { font-size: clamp(36px, 11vw, 46px); }
  .contact .contact-text { font-size: 16px; }
  .contact-details { font-size: 13px; }
  .contact-right { padding: 24px 20px; }
  .contact-right h3 { font-size: 30px; }
  .contact-right p { font-size: 15px; }
  .contact-right .btn { max-width: 100%; }
  .footer { padding: 24px 0 28px; }
  .footer .inner { font-size: 13px; }
  .footer-links { gap: 4px; flex-wrap: wrap; justify-content: center; }
  .footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; }

  .page-hero { padding: 120px 20px 36px; }
  .page-hero h1 { font-size: clamp(40px, 12.4vw, 54px); }
  .page-hero .lead { font-size: 16px; }
  .page-hero .buttons .btn { font-size: 20px; }
  .crumbs { font-size: 13px; }
  .prose p, .checklist li, .note-box { font-size: 16px; }
  .photo-frame { height: 260px; }
  .task p { font-size: 15px; }
  .related-grid { grid-template-columns: 1fr; margin-top: 32px; }
  .service-links { grid-template-columns: 1fr; margin-top: 28px; }
  .service-links a { min-height: 56px; font-size: 22px; }
  .related-grid > .card:last-child { display: block; }
  .contact-form { padding: 24px 18px; }
  .contact-form h2 { font-size: 30px; }
  .contact-form-note { font-size: 13px; }
  .legal p, .legal li { font-size: 16px; }
}

@media (max-width: 480px) {
  .btn { white-space: normal; max-width: 100%; text-align: left; line-height: 1.1; }   /* lange Button-Texte dürfen umbrechen statt abgeschnitten zu werden */
}
@media (max-width: 420px) {
  .marks { gap: 24px 12px; }
  .mark { font-size: 18px; gap: 8px; }
  .mark svg { width: 34px; height: 34px; }
  .mark svg { width: 32px; height: 32px; }
  .mark span span { font-size: 14px; }
}
@media (max-width: 380px) {
  .hero .buttons { flex-direction: column; align-items: flex-start; }
  .nav { padding-left: 14px; }
}

/* ---------- 10. Reduzierte Bewegung ------------------------------------- */
/* Handy quer (niedrig und schmaler als 1024 px): Hero-Formular ebenfalls eingeklappt, sonst ist der Hero fast drei Bildschirme hoch */
@media (max-width: 1023px) and (max-height: 500px) and (orientation: landscape) {
  .request-toggle { display: flex; }
  html.has-js .hero .request:not(.is-open) h2 { margin-bottom: 18px; }
  html.has-js .hero .request:not(.is-open) .inquiry-form, html.has-js .hero .request:not(.is-open) noscript { display: none; }
  .request-toggle[aria-expanded="true"] { margin-bottom: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-reveal], html.js [data-hero], html.js .uline { opacity: 1 !important; animation: none !important; transform: none !important; }
  html.js .hero-photo { animation: none !important; transform: none !important; }
  html.js .timeline__fill { transform: none !important; animation: none !important; }
  html.js .timeline .dot { animation: none !important; background: var(--orange) !important; color: #fff !important; border-color: var(--orange) !important; }
  .hero-parallax { transform: none !important; }
  .card:hover, .btn:hover, .btn:focus-visible, .btn:active { transform: none !important; }
  .card:hover .photo img, .insight:hover .insight__media img { transform: none !important; }
  .card:hover .round-arrow, .insight:hover .round-arrow, .card:has(.card-bottom:focus-visible) .round-arrow, .insight:has(a:focus-visible) .round-arrow, .btn:hover .btn__arrow, .btn:focus-visible .btn__arrow { transform: none !important; }
  .nav-items, .nav-sub { transition: none !important; transform: none !important; }
  .menu-toggle .bar { transition: none !important; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

@media print {
  html.js [data-reveal], html.js [data-hero] { opacity: 1 !important; animation: none !important; }
  .site-header, .skip-link { display: none; }
  .hero-media, .hero::after, .page-hero::after,   .hero, .page-hero { color: var(--navy); min-height: 0; padding: 24px 0; display: block; }
  .page-hero .lead, .page-hero .crumbs, .page-hero .hero-label { color: #3d4f62; }
  .hero .orange { color: #c25f00; }
  .btn { border: 1px solid var(--navy); background: #fff; color: var(--navy); }
  .btn__icon { background: var(--navy); color: #fff; }
}
