/* ==========================================================================
   ib-bauArt GmbH – Stylesheet
   Mobile-first. Keine externen Abhängigkeiten, Schrift lokal eingebunden.
   ========================================================================== */

/* ---------- Schrift (Manrope, variabel, SIL OFL 1.1) ---------- */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2-variations");
  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;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Design-Tokens ---------- */
:root {
  --ink: #07071a;          /* Nachtblau: Text, dunkle Karten */
  --ink-soft: #4a4a58;     /* Nebentext */
  --red: #b84b4b;          /* Akzent (minimal abgedunkelt für Kontrast 5:1) */
  --red-hover: #9e3d3d;
  --bg: #fafafa;           /* Seitenhintergrund */
  --grey-1: #e8e8e8;       /* einziges Grau: graue Abschnitte und Karten auf hellem Grund
                              (Karten auf grauen Abschnitten sind weiß) */
  --line: rgba(7, 7, 26, .14);
  --line-on-dark: rgba(255, 255, 255, .28);
  --white: #fff;
  --bar-bg: rgba(250, 250, 250, .96); /* angeheftete Leisten (Kopfleiste, Referenz-Filter) */
  --bar-line: #d8d8db;       /* deckende Trennlinie der Leisten (= --line auf --bg), Inhalt scheint nicht durch */

  /* Schriftgrößen-Skala für Fließtext (Überschriften und Hero-Einleitung separat) */
  --fs-body: 1rem;         /* 16 px – jeder Fließtext */
  --fs-small: .875rem;     /* 14 px – Nebentext: Bildunterschriften, Nachweise, kleine Teamkarten, Footer */
  --fs-label: .75rem;      /* 12 px – Etiketten, Zähler */

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius-lg: 8px;    /* Karten, Kacheln (vorher 18px) */
  --radius: 6px;       /* Bilder (vorher 10px) */
  --radius-sm: 4px;    /* Buttons, Felder, Etiketten (vorher 6px) */

  --container: 1200px;
  --gutter: clamp(1.125rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);
  --header-h: 84px;
  --header-h-sticky: 85px;  /* Höhe der Kopfleiste beim Scrollen inkl. Rand – Ziel für Sprungmarken */
}

/* ---------- Reset & Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* „hidden“ gewinnt immer – sonst überstimmen display-Regeln (z. B. display: grid) das Attribut */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h-sticky); /* Abschnitt beginnt direkt unter der Kopfleiste */
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  text-wrap: balance;
  /* Notbremse gegen Überlauf langer Komposita; gezielte Trennung per &shy; im HTML */
  overflow-wrap: break-word;
}
h1 { font-size: clamp(2.1rem, 1.3rem + 3.6vw, 4rem); font-weight: 500; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.6rem); font-weight: 500; }
h3 { font-size: clamp(1.2rem, 1.1rem + .4vw, 1.4rem); }

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

.nowrap { white-space: nowrap; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--grey { background: var(--grey-1); }
.section--flush-top { padding-top: 0; } /* statt Inline-Stil (CSP erlaubt keine style-Attribute) */

/* Abschnittskopf: linksbündig, mit Label „01 ── Leistungen“ (Nummern = Reihenfolge im Hauptmenü) */
.section-head {
  max-width: 44rem;
  margin: 0 0 clamp(2rem, 5vw, 3.5rem);
}
.section-head p { color: var(--ink); }
.section-head h2 { margin-bottom: .4em; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 1rem;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow__num { display: inline-flex; align-items: center; gap: .75rem; color: var(--red-hover); letter-spacing: .08em; }
/* kurzer Strich wie eine Bemaßungslinie mit Endmarke */
.eyebrow__num::after {
  content: "";
  width: 2rem; height: 7px;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat,
    linear-gradient(currentColor, currentColor) right center / 1px 100% no-repeat;
  opacity: .8;
}

/* ---------- „Nach oben“-Knopf ---------- */
.to-top {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 45;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 6px 18px -6px rgba(7, 7, 26, .45);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, background-color .15s ease;
}
.to-top:hover { background: var(--red-hover); }
.to-top svg { width: 20px; height: 20px; }
/* main.js blendet ihn nahe am Seitenanfang aus (ohne JS immer sichtbar) */
.to-top.is-hidden { opacity: 0; visibility: hidden; transform: translateY(8px); }

/* ---------- Kennzahlen-Leiste unter dem Hero ---------- */
.facts { padding-block: clamp(2rem, 5vw, 3rem); border-bottom: 1px solid var(--line); }
.facts__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1.25rem; list-style: none; }
.fact {
  display: grid;
  align-content: start;
  gap: .5rem;
  padding-left: 1rem;
  /* Linie mit roter Endmarke oben – wie der Zeitstrahl */
  background:
    linear-gradient(var(--red-hover), var(--red-hover)) left top / 2px 1.5rem no-repeat,
    linear-gradient(var(--line), var(--line)) left top / 1px 100% no-repeat;
}
.fact__value {
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.fact__value--text { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); font-weight: 400; line-height: 1.15; letter-spacing: 0; }
.fact__pre { font-size: var(--fs-small); font-weight: 600; letter-spacing: .04em; color: var(--ink-soft); }
.fact__label { font-size: var(--fs-small); line-height: 1.45; color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .75rem 1.5rem;
  border: 0;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-hover); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: #24243a; }
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: .75rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bar-bg);
  border-bottom: 1px solid var(--bar-line);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background-color .25s ease, border-color .25s ease;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}
.brand { display: inline-block; flex-shrink: 0; }
.brand img { width: auto; height: 60px; transition: height .25s ease; }

.nav-toggle {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.main-nav {
  position: absolute;
  top: 100%; left: 0; right: 0;
  display: none;
  padding: .5rem var(--gutter) 1.5rem;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 30px -20px rgba(7, 7, 26, .35);
}
.main-nav.is-open { display: block; }
.main-nav ul { list-style: none; }
.main-nav a {
  display: block;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.125rem;
  font-weight: 500;
  text-decoration: none;
}
.main-nav a:hover { color: var(--red); }
/* aktiver Hauptmenüpunkt (z. B. „Referenzen“ auf den Referenzseiten) */
.main-nav a[aria-current] { color: var(--red-hover); } /* ohne Fettung: Menü verschiebt sich beim Wechsel nicht */

.header-contact { display: none; }
.main-nav .header-contact--mobile {
  display: grid;
  gap: .35rem;
  margin-top: 1.25rem;
  font-size: .9375rem;
  color: var(--ink-soft);
}
.main-nav .header-contact--mobile a { padding: 0; border: 0; font-size: inherit; font-weight: 600; color: var(--ink); }
.main-nav .header-contact--mobile a + a { font-weight: 500; color: var(--ink-soft); }
/* Telefon/Adresse mit Icon (Kopfleiste) */
.contact-link { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; }
.contact-link svg { flex: none; width: 1em; height: 1em; color: var(--red); }
.contact-link:hover { color: var(--red); }
.main-nav .contact-link { display: inline-flex; } /* gegen .main-nav a { display: block } */

/* ---------- Hero ---------- */
/* Mobil: Text oben, Bild als randloses Band darunter.
   Ab 960 px: Bild vollflächig hinter dem Text (wie im Original), Kopfleiste liegt darüber. */
.hero { position: relative; overflow: hidden; }
.hero__inner { position: relative; z-index: 1; padding-block: clamp(2.5rem, 7vw, 4rem) 2rem; }
.hero__text p { max-width: 36rem; font-size: 1.0625rem; color: var(--ink); }
.hero h1 { margin-bottom: .75em; font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.4rem); }
.hero__media { position: relative; display: none; } /* Smartphone: kein Bildband, ab 640 px vollflächig */
.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 96% 40%; /* linke Bildhälfte ist nur Verlauf – auf das Notizbuch zuschneiden */
}
/* weicher Übergang vom Seitenhintergrund ins Bild */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(250, 250, 250, 0) 30%);
  pointer-events: none;
}

/* Wellenlinie unter „Ingenieurbüro“ (wie im Original) */
.squiggle {
  padding-bottom: .12em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8 C 40 2, 80 2, 120 6 S 180 10, 198 4' fill='none' stroke='%23b84b4b' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") left bottom / 100% .28em no-repeat;
}

/* ---------- Leistungen ---------- */
.services { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.service {
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.service--dark { background: var(--ink); color: var(--white); }
.service h3 { margin-bottom: 1rem; }
/* Linien-Icon über dem Titel (steckt in der h3, damit die Subgrid-Zeilen gleich bleiben) */
.service__icon {
  display: block;
  width: 40px; height: 40px;
  margin-bottom: 1rem;
  fill: none;
  stroke: var(--red-hover);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service--dark .service__icon { stroke: #e48a8a; }

.service details { border-block: 1px solid var(--line); }
.service--dark details { border-color: var(--line-on-dark); }
.service summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 0;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.service summary::-webkit-details-marker { display: none; }
.service summary::after {
  content: "";
  width: 14px; height: 14px;
  flex-shrink: 0;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: transform .2s ease;
}
.service details[open] summary::after { transform: rotate(45deg); }
.service__body { padding-bottom: 1.25rem; font-size: var(--fs-body); overflow-wrap: break-word; }

/* Aufklappen wie im Original (Höhe + Einblenden, .3 s) – nur CSS:
   Browser mit ::details-content + interpolate-size animieren Auf- und Zuklappen,
   alle anderen blenden beim Öffnen weich ein. */
@supports (interpolate-size: allow-keywords) {
  .service { interpolate-size: allow-keywords; }
  .service details::details-content {
    block-size: 0;
    opacity: 0;
    overflow: clip;
    transition: block-size .3s ease, opacity .3s ease, content-visibility .3s allow-discrete;
  }
  .service details[open]::details-content { block-size: auto; opacity: 1; }
  .service__body { transform: translateY(-6px); transition: transform .3s ease; }
  .service details[open] .service__body { transform: none; }
}
@supports not (interpolate-size: allow-keywords) {
  .service details[open] .service__body { animation: service-in .3s ease; }
}
@keyframes service-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
.service--dark .service__body { color: rgba(255, 255, 255, .85); }
.service__body blockquote {
  margin: 1em 0;
  padding-left: 1em;
  border-left: 2px solid var(--red);
  font-style: italic;
}

/* ---------- Beratung (CTA) ---------- */
.cta { display: grid; gap: 1rem; margin-top: clamp(2.5rem, 6vw, 4rem); }
.cta__card {
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.cta__card h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
.cta__card p { color: var(--ink); }
.cta__card .btn { margin-top: 1.5rem; }
.cta__media { border-radius: var(--radius-lg); overflow: hidden; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }

/* ---------- Anfrage-Kacheln ---------- */
.requests {
  display: grid;
  gap: 2.5rem;
  margin-top: clamp(3rem, 7vw, 4.5rem);
}
.request h3 { max-width: 22rem; font-weight: 500; }
.request__actions { display: grid; gap: .6rem; max-width: 22rem; margin: 1.25rem 0 0; }
/* Prüfanträge als schlichte Download-Links (gleichwertig, ohne Hintergrund) */
.downloads { display: grid; gap: .75rem; list-style: none; }
.download {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: .6rem;
  color: var(--ink);
  text-decoration: none;
}
.download__icon { width: 1.25rem; height: 1.25rem; margin-top: .1rem; color: var(--red-hover); }
.download__text { display: block; line-height: 1.4; }
.download__name { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.download__meta { margin-left: .4rem; font-size: var(--fs-small); color: var(--ink-soft); white-space: nowrap; }
.download:hover .download__name { color: var(--red-hover); }

/* ---------- Referenzen (Startseite) ---------- */
.ref-grid { display: grid; gap: 1.25rem; }
.ref__fig { margin: 0; } /* Link (a.ref) umschließt die ganze Figur – figcaption bleibt direkt in figure */
.ref img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--grey-1);
}
.ref figcaption { padding-top: .75rem; }
.ref__title { display: block; font-weight: 600; }
/* ganze Kachel verlinkt zum Projekt auf der Referenzseite */
.ref__link { display: block; color: inherit; text-decoration: none; border-radius: var(--radius); }
.ref__link img { transition: transform .3s ease, box-shadow .3s ease; }
.ref__link:hover img { transform: translateY(-4px); box-shadow: 0 14px 28px -16px rgba(7, 7, 26, .45); }
/* Pfeil per geschütztem Leerzeichen an das letzte Wort gebunden (kein einzelner Pfeil in neuer Zeile) */
.ref__title::after { content: "\00a0→"; content: "\00a0→" / ""; margin-left: .15rem; color: var(--red); transition: margin-left .2s ease; }
.ref__link:hover .ref__title::after { margin-left: .45rem; }
.ref__link:hover .ref__title { color: var(--red-hover); }
.ref__meta { display: block; font-size: var(--fs-small); color: var(--ink-soft); }
.ref-links { margin-top: clamp(2rem, 5vw, 3rem); }
@media (max-width: 759.98px) {
  .ref-links { flex-direction: column; align-items: stretch; }
  .ref-links .btn { justify-content: flex-start; text-align: left; }
}

/* ---------- Über uns ---------- */
.about { display: grid; gap: 1.5rem; align-items: start; }
.about__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
/* mobil eigener 4:3-Ausschnitt mit mehr Luft über den Köpfen (Platz für das „Berlin“-Etikett), ab 960 px 3:2 */
.about__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.badge {
  position: absolute;
  left: 1rem; top: 1rem;
  padding: .3rem .85rem;
  border-radius: var(--radius-sm);
  background: rgba(7, 7, 26, .75);
  color: var(--white);
  font-size: var(--fs-label);
  font-weight: 600;
}
.about__card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 1px 0 var(--line);
}
.chip {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: .35rem .8rem;
  border-radius: var(--radius-sm);
  background: var(--grey-1);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.checklist {
  display: grid;
  gap: .9rem;
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  list-style: none;
}
.checklist li { position: relative; padding-left: 2.25rem; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: .15em;
  width: 1.375rem; height: 1.375rem;
  border-radius: var(--radius-sm);
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* ---------- Team ---------- */
.team { display: grid; gap: 1.25rem; list-style: none; }
/* Geschäftsführung/Prüfingenieure groß, übriges Team kleiner und mehr pro Reihe (wie im Original) */
.team--more { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-top: 1.25rem; }
.person {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--grey-1);
}
/* Köpfe sitzen in allen Porträts weit oben: Ausschnitt oben verankern, damit nichts angeschnitten wird */
.person img, .person__placeholder { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 0; }
/* Platzhalter, solange ein Porträt fehlt (z. B. neue Mitarbeitende) */
.person__placeholder { display: grid; place-items: center; background: var(--white); color: var(--ink-soft); }
.person__placeholder svg { width: 40%; max-width: 6rem; }
.person__body { padding: 1.25rem 1.5rem 1.5rem; }
.person h3 { margin-bottom: .1em; font-size: 1.25rem; }
.person__title { margin-bottom: .75em; font-size: var(--fs-small); color: var(--ink-soft); }
.person__role { font-size: var(--fs-body); }
.team--more .person img, .team--more .person__placeholder { aspect-ratio: 2 / 3; }
.team--more .person__body { padding: .75rem .875rem 1rem; }
.team--more .person h3 { font-size: 1rem; }
.team--more .person__title { margin-bottom: .4em; font-size: var(--fs-small); }
.team--more .person__role { font-size: var(--fs-small); line-height: 1.5; }
.team-cta { margin-top: clamp(2rem, 5vw, 3rem); }

/* ---------- Ablauf ---------- */
/* Ablauf als Zeitstrahl: große Ziffern (CSS-Zähler der <ol>), Linie wie eine Bemaßungskette */
.steps { display: grid; gap: 2.5rem; list-style: none; counter-reset: step; }
.step {
  counter-increment: step;
  position: relative;
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr);
  column-gap: 1.25rem;
  align-items: start;
  align-content: start; /* gestreckte Schritte: Zusatzplatz nicht auf die Zeilen verteilen */
}
.step::before {
  content: counter(step, decimal-leading-zero);
  content: counter(step, decimal-leading-zero) / "";
  font-size: clamp(2.5rem, 2rem + 2vw, 3.75rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  color: var(--red-hover);
}
/* mobil: senkrechte Linie unter der Ziffer bis zum nächsten Schritt */
.step::after {
  content: "";
  position: absolute;
  left: 1.25rem; top: 3.5rem; bottom: -2rem;
  width: 1px;
  background: var(--ink);
  opacity: .35;
}
.step:last-child::after { display: none; }
.step h3 { margin: .2rem 0 .5rem; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); font-weight: 500; }
.step p { color: var(--ink); }

/* ---------- Kontakt ---------- */
/* Kontakt: links Formular, rechts direkter Kontakt (ab 960 px nebeneinander) */
.contact-layout { display: grid; gap: 1.25rem; align-items: start; }
.contact {
  padding: clamp(1.5rem, 5vw, 3rem);
  border-radius: var(--radius-lg);
  background: var(--grey-1);
}
.contact-aside {
  padding: clamp(1.5rem, 5vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--white);
}
.contact-aside h3 { margin-bottom: 1.25rem; font-size: 1.25rem; }
.contact-aside a { color: var(--white); text-decoration: none; }
.contact-aside a:hover { text-decoration: underline; }
.contact-direct { display: grid; gap: 1.1rem; list-style: none; }
.contact-direct li { display: grid; grid-template-columns: 1.25rem 1fr; gap: .9rem; align-items: start; }
.contact-direct svg { width: 1.1rem; height: 1.1rem; margin-top: .25rem; color: #e48a8a; }
.contact-direct a { font-weight: 600; }
.contact-direct__label { display: block; font-size: var(--fs-label); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.contact-aside .contact-aside__sub { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line-on-dark); font-size: 1rem; }
.contact-docs { display: grid; gap: .6rem; list-style: none; }
.contact-docs a { display: inline-flex; align-items: center; gap: .6rem; }
.contact-docs svg { flex: none; width: 1.25rem; height: 1.25rem; color: #e48a8a; }
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label, .field legend { font-size: var(--fs-body); font-weight: 600; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: .7rem .9rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font: inherit;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8a8a95; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(184, 75, 75, .35);
}
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: .75rem; }
.field--check input { width: 1.25rem; height: 1.25rem; min-height: 0; margin-top: .2rem; accent-color: var(--ink); }
.field--check label { font-weight: 400; }
.field--hp { position: absolute; left: -9999px; }
.form small { color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer {
  padding-block: clamp(3rem, 7vw, 4.5rem) 2rem;
  background: var(--white);
  font-size: var(--fs-small);
}
.footer-grid { display: grid; gap: 2.5rem; }
.footer-brand img.footer-logo { width: 150px; height: auto; margin-bottom: 1.25rem; }
.footer-brand p { max-width: 22rem; color: var(--ink-soft); }
.footer-col h2 {
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.footer-col ul { display: grid; gap: .6rem; list-style: none; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: var(--red); text-decoration: underline; }
.contact-list li { display: grid; grid-template-columns: 1.25rem 1fr; gap: .75rem; align-items: start; }
.contact-list svg { width: 1.1rem; height: 1.1rem; margin-top: .2rem; }
.footer-bottom {
  display: grid;
  gap: .25rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: var(--fs-small);
  color: var(--ink-soft);
}
/* Copyright | Mitgliedschaften – mobil untereinander ohne Trennstrich */
.footer-bottom__sep { display: none; }
@media (min-width: 760px) {
  .footer-bottom { display: flex; flex-wrap: wrap; gap: 0 .75rem; }
  .footer-bottom__sep { display: inline; }
}

/* ---------- Unterseiten: Referenzlisten ---------- */
.page-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 2.5rem); }
.page-hero p { max-width: 40rem; color: var(--ink); }
/* Umschalter zwischen den drei Referenzbereichen (Reiter wie im Hauptmenü) */
.ref-switch {
  display: flex;
  flex-wrap: wrap; /* mobil umbrechen statt seitlich scrollen – der aktive Reiter bleibt sichtbar */
  gap: 0 1.75rem;
  margin-top: clamp(1.5rem, 4vw, 2.25rem);
  border-bottom: 1px solid var(--line);
}
.ref-switch__count { font-size: var(--fs-label); font-weight: 700; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* Gebündelte Referenzseite: Filter ohne JS (Radiobuttons + :has) */
.ref-filter { min-width: 0; margin: 0; padding: 0; border-width: 0 0 1px; } /* fieldset schrumpft sonst nicht unter seine Inhaltsbreite */
/* angeheftete Leiste: Hintergrund über die volle Breite, Höhe als Variable für Sprungmarken */
:root { --ref-filter-h: 49px; }
.ref-filter-bar {
  position: sticky;
  /* 1 px unter die Kopfleiste geschoben (die liegt mit z-index 50 obenauf): bei krummen
     Skalierungen (z. B. 175 %) wird ihre Linie gerundet, sonst bliebe ein Spalt, durch den Inhalt scheint */
  top: var(--header-h);
  z-index: 40;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  background: var(--bar-bg); /* wie die Kopfleiste */
  border-bottom: 1px solid var(--bar-line); /* Linie über die volle Breite, wie bei der Kopfleiste */
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: top .25s ease;
}
.site-header.is-scrolled ~ main .ref-filter-bar { top: calc(var(--header-h-sticky) - 1px); }
html:has(.ref-filter-bar) { scroll-padding-top: calc(var(--header-h-sticky) + var(--ref-filter-h)); }
/* eine Zeile, mobil seitlich wischbar (main.js hält den gewählten Filter im Blick) */
.ref-filter-bar .ref-filter {
  flex-wrap: nowrap;
  border-bottom: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.ref-filter-bar .ref-filter::-webkit-scrollbar { display: none; }
.ref-filter label { line-height: 1.5; }
.ref-filter label {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: .4rem;
  padding: .75rem 0;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}
.ref-filter input { position: absolute; opacity: 0; pointer-events: none; }
.ref-filter label:hover { color: var(--red-hover); }
.ref-filter label:has(input:checked) { color: var(--red-hover); box-shadow: inset 0 -2px 0 var(--red-hover); }
.ref-filter label:has(input:focus-visible) { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }
.refs-all:has(input[value="tw"]:checked) .project:not(.is-tw),
.refs-all:has(input[value="st"]:checked) .project:not(.is-st),
.refs-all:has(input[value="bp"]:checked) .project:not(.is-bp) { display: none; }
.project__cat { margin-bottom: .35rem; font-size: var(--fs-label); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }

/* Seitenüberschriften der Unterseiten so groß wie die Abschnittsüberschriften der Startseite */
.page-hero h1,
.prose h1 { font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.6rem); margin-bottom: .4em; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: clamp(2rem, 5vw, 3rem); /* deutlich abgesetzt vom Seitenkopf darunter */
  font-weight: 600;
  text-decoration: none;
}
.back-link:hover { color: var(--red); }

.projects { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1rem, 2.5vw, 1.5rem); list-style: none; counter-reset: projekt; }
.project {
  counter-increment: projekt;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  overflow-wrap: break-word;
  padding: clamp(1.25rem, 4vw, 2.75rem);
  border-radius: var(--radius-lg);
  background: var(--grey-1);
}
/* Projektnummer „01“, „02“ … (rein dekorativ) */
.project > div:first-child::before {
  content: counter(projekt, decimal-leading-zero);
  content: counter(projekt, decimal-leading-zero) / "";
  display: block;
  margin-bottom: .75rem;
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--red-hover); /* dunkleres Rot: Kontrast ≥ 4,5:1 auf Grau und Rosé */
}
/* sanftes Einblenden beim Scrollen: main.js setzt „is-pending“ nur bei Karten unterhalb des sichtbaren Bereichs */
.project { transition: opacity .6s ease, transform .6s ease; }
.project.is-pending { opacity: 0; transform: translateY(24px); }
.project h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); margin-bottom: .2em; }
/* Adresse als ruhige Zeile mit Kartennadel (statt Versalien-Etikett, das bei langen Adressen umbrach) */
.project__address {
  position: relative;
  margin-bottom: 1.1em;
  padding-left: 1.4rem;
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink-soft);
}
.project__address::before {
  content: "";
  position: absolute;
  left: 0; top: .15em;
  width: 1rem; height: 1rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%239e3d3d' d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.project dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .25rem 1rem; margin: 1rem 0 0; font-size: var(--fs-body); }
.project dt { font-weight: 600; }
.project dd { margin: 0; }
.project__credit { margin-top: 1rem; font-size: var(--fs-small); color: var(--ink-soft); }

.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 85%;
  gap: .75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  padding-bottom: .5rem;
  list-style: none;
}
.gallery li { scroll-snap-align: start; }
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--grey-1);
}
.gallery--single { grid-auto-columns: 100%; }

/* Galerie mit Bühne, Vorschaubildern und Großansicht (main.js ersetzt damit die .gallery) */
.gal { display: grid; gap: .625rem; min-width: 0; }
.gal__stage { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--grey-1); }
.gal__open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gal__open img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s ease, opacity .25s ease; }
.gal__open:hover img { transform: scale(1.03); }
.gal__open:focus-visible { outline-offset: -4px; }
.gal__zoom {
  position: absolute; right: .75rem; bottom: .75rem;
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(7, 7, 26, .7);
  color: var(--white);
  pointer-events: none;
}
.gal__count {
  position: absolute; left: .75rem; bottom: .75rem;
  padding: .25rem .65rem;
  border-radius: var(--radius-sm);
  background: rgba(7, 7, 26, .7);
  color: var(--white);
  font-size: var(--fs-label);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.gal__nav,
.lightbox__btn {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(7, 7, 26, .25);
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.gal__nav:hover, .lightbox__btn:hover { background: var(--white); transform: scale(1.06); }
.gal__nav { position: absolute; top: 50%; margin-top: -22px; }
.gal__nav--prev { left: .75rem; }
.gal__nav--next { right: .75rem; }
.gal__nav svg, .lightbox__btn svg, .gal__zoom svg { width: 20px; height: 20px; }
.gal__thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(64px, 96px);
  gap: .5rem;
  overflow-x: auto;
  padding: 2px;
  list-style: none;
}
.gal__thumb {
  display: block; width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: none;
  opacity: .6;
  cursor: pointer;
  transition: opacity .2s ease, box-shadow .2s ease;
}
.gal__thumb:hover { opacity: .9; }
.gal__thumb[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 3px var(--red); }
.gal__thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Großansicht */
.lightbox {
  width: 100%; height: 100%;
  max-width: none; max-height: none;
  margin: 0; padding: 0;
  border: 0;
  background: rgba(7, 7, 26, .95);
  color: var(--white);
}
.lightbox::backdrop { background: rgba(7, 7, 26, .6); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem var(--gutter); }
.lightbox__title { margin: 0; font-size: 1rem; font-weight: 600; }
.lightbox__count { font-size: .875rem; color: rgba(255, 255, 255, .75); font-variant-numeric: tabular-nums; }
.lightbox__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 var(--gutter); }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius-sm); touch-action: pan-y; }
.lightbox__btn--prev, .lightbox__btn--next { position: absolute; top: 50%; margin-top: -22px; }
.lightbox__btn--prev { left: var(--gutter); }
.lightbox__btn--next { right: var(--gutter); }
.lightbox__caption { max-width: 60rem; margin: 0 auto; padding: .75rem var(--gutter) 1.25rem; text-align: center; font-size: var(--fs-small); color: rgba(255, 255, 255, .85); }
body.has-lightbox { overflow: hidden; }

/* ---------- Rechtstexte ---------- */
/* Textseiten (Impressum, Datenschutz, Danke): Abstand oben wie der Seitenkopf der Referenzseite;
   Kante bündig mit dem Logo, nur der Textblock ist auf Lesebreite begrenzt */
.section--page { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
/* kurze Seiten (z. B. Danke): Footer sitzt am unteren Fensterrand statt mitten im Bild */
body:has(.section--page) { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body:has(.section--page) > main { flex: 1 0 auto; }
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.5rem; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.6rem); font-weight: 600; }
.prose h3 { margin-top: 1.75rem; font-size: 1.125rem; }
.prose ul { padding-left: 1.25rem; margin-bottom: 1em; }
.prose li { margin-bottom: .4em; }
.prose address { font-style: normal; margin-bottom: 1em; }

/* ---------- Ohne JavaScript (Klasse „js“ setzt ein Inline-Skript im <head>) ---------- */
/* Kopfleiste nicht anheften: ohne JS schrumpft sie nicht und das Menü steht mobil offen darin */
html:not(.js) { scroll-padding-top: 0; }
html:not(.js) .site-header { position: relative; }
html:not(.js) .ref-filter-bar { top: 0; }
html:not(.js):has(.ref-filter-bar) { scroll-padding-top: var(--ref-filter-h); }
@media (max-width: 959.98px) {
  /* Klappmenü braucht JS – stattdessen Menü als Linkzeile unter dem Logo */
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .site-header__inner { flex-wrap: wrap; row-gap: 0; }
  html:not(.js) .main-nav {
    position: static;
    display: block;
    width: 100%;
    padding: 0 0 .9rem;
    background: none;
    border: 0;
    box-shadow: none;
  }
  html:not(.js) .main-nav ul { display: flex; flex-wrap: wrap; gap: .15rem 1.25rem; }
  html:not(.js) .main-nav a { padding: .3rem 0; border: 0; font-size: 1rem; }
  html:not(.js) .main-nav .header-contact--mobile { display: none; }
}

/* ==========================================================================
   Breakpoints
   ========================================================================== */
@media (min-width: 640px) {
  /* Hero: Bild vollflächig hinter dem Text */
  .hero { display: flex; align-items: center; min-height: clamp(460px, 62vh, 640px); }
  .hero__inner { padding-block: 3.5rem; }
  .hero__text { max-width: 62%; }
  .hero__media { position: absolute; inset: 0; z-index: 0; display: block; }
  .hero__media img { height: 100%; aspect-ratio: auto; object-position: 100% 40%; }
  .hero__media::after {
    background: linear-gradient(90deg, var(--bg) 0%, rgba(250, 250, 250, .92) 45%, rgba(250, 250, 250, .4) 65%, rgba(250, 250, 250, 0) 85%);
  }

  .ref-grid { grid-template-columns: repeat(2, 1fr); }
  .team--lead { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .team--lead .person img { aspect-ratio: 3 / 4; }
  .team--more { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .team--more .person img, .team--more .person__placeholder { aspect-ratio: 1 / 1; }
  .form { grid-template-columns: 1fr 1fr; column-gap: 1.25rem; }
  .field--full { grid-column: 1 / -1; }
  .gallery { grid-auto-columns: 60%; }
  .gallery--single { grid-auto-columns: 100%; }
}

@media (min-width: 760px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  /* Subgrid: Kacheln einer Reihe teilen sich die Überschriftenzeile – die Trennlinien
     liegen auf einer Höhe, aufgeklappter Text beginnt oben direkt darunter */
  @supports (grid-template-rows: subgrid) {
    .service { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
    .service details { align-self: start; }
  }
  .requests { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .request { display: flex; flex-direction: column; }
  .request__actions { margin-top: auto; padding-top: 1.25rem; width: 100%; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; }
}

@media (min-width: 960px) {
  :root { --header-h: 116px; --header-h-compact: 88px; --header-h-sticky: 89px; }
  .brand img { height: 88px; }
  /* beim Scrollen kompakter (Klasse setzt main.js; ohne JS bleibt das große Logo) */
  .site-header.is-scrolled .site-header__inner { min-height: var(--header-h-compact); }
  /* Die Leiste schrumpft nur optisch: der frei werdende Platz wird als Außenabstand ausgeglichen,
     damit der Seitenfluss gleich bleibt und Sprungmarken nicht um 28 px verrutschen */
  .site-header { transition: background-color .25s ease, border-color .25s ease, margin-bottom .25s ease; }
  .site-header.is-scrolled { margin-bottom: calc(var(--header-h) - var(--header-h-compact)); }
  .site-header.is-scrolled .brand img { height: 64px; }
  .site-header__inner { transition: min-height .25s ease; }

  /* Startseite: Kopfleiste oben transparent über dem Hero-Bild (nur mit JS, sonst normal deckend) */
  .home .site-header.is-top {
    background: transparent;
    border-bottom-color: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .nav-toggle { display: none; }

  .main-nav {
    position: static;
    display: block;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .main-nav ul { display: flex; gap: clamp(1rem, 2.2vw, 2rem); }
  .main-nav a { padding: .5rem 0; border: 0; font-size: 1rem; }
  .main-nav .header-contact--mobile { display: none; }

  .header-contact {
    display: grid;
    gap: .1rem;
    font-size: .875rem;
    line-height: 1.4;
    text-align: right;
    color: var(--ink-soft);
  }
  .header-contact a { justify-self: end; font-weight: 700; color: var(--ink); text-decoration: none; }
  .header-contact a + a { font-weight: 400; color: var(--ink-soft); }
  .header-contact a:hover { color: var(--red); }

  /* Hero reicht hinter die (oben transparente) Kopfleiste */
  .hero { min-height: clamp(560px, 80vh, 860px); margin-top: calc(var(--header-h) * -1); }
  .hero__inner { padding-block: calc(var(--header-h) + 3rem) 4.5rem; }
  .hero__text { max-width: min(44rem, 60%); }
  .hero h1 { font-size: clamp(2.3rem, 1rem + 2.3vw, 3.2rem); }
  .hero__media img { object-position: 75% 35%; }
  .hero__media::after {
    background: linear-gradient(90deg, var(--bg) 0%, rgba(250, 250, 250, .9) 30%, rgba(250, 250, 250, .35) 55%, rgba(250, 250, 250, 0) 75%);
  }

  /* Abschnittskopf zweispaltig: Überschrift links, Einleitung rechts (unten bündig) */
  /* nur Köpfe direkt im Seitencontainer (nicht in Karten wie dem Kontaktformular) */
  .container > .section-head:has(> p:not(.eyebrow)) {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    column-gap: 4rem;
    align-items: end;
    max-width: none;
  }
  .container > .section-head:has(> p:not(.eyebrow)) .eyebrow { grid-column: 1 / -1; }
  .container > .section-head:has(> p:not(.eyebrow)) h2 { margin-bottom: 0; }
  .container > .section-head:has(> p:not(.eyebrow)) > p:not(.eyebrow) { margin-bottom: .3em; }

  .facts__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
  .contact-layout { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
  .contact-aside { position: sticky; top: calc(var(--header-h-sticky) + 1.5rem); }

  .cta { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .cta__card { display: flex; flex-direction: column; justify-content: center; }
  .cta__card .btn { align-self: flex-start; }

  .ref-grid { grid-template-columns: repeat(6, 1fr); }
  .ref { grid-column: span 2; }
  .ref:nth-child(-n+2) { grid-column: span 3; }
  .ref:nth-child(-n+2) img { aspect-ratio: 3 / 2; }

  .about { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .about__media { position: sticky; top: calc(var(--header-h-sticky) + 1.5rem); }
  .about__media img { aspect-ratio: 3 / 2; }

  .team--lead .person img { aspect-ratio: 1 / 1; }
  .team--more { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .team--more .person img, .team--more .person__placeholder { aspect-ratio: 2 / 3; }

  /* Desktop: Ziffer – Bemaßungslinie (läuft durch den Spaltenabstand) – Text */
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
  .step { grid-template-columns: minmax(0, 1fr); }
  .step > div { order: 2; }
  .step::after,
  .step:last-child::after {
    display: block;
    order: 1;
    position: static;
    width: calc(100% + 2.5rem);
    height: 11px;
    margin: 1.25rem 0 1.5rem;
    background:
      linear-gradient(var(--ink), var(--ink)) left center / 100% 1px no-repeat,
      linear-gradient(var(--red-hover), var(--red-hover)) left center / 2px 100% no-repeat;
    opacity: .5;
  }
  .step:last-child::after {
    width: 100%;
    background:
      linear-gradient(var(--ink), var(--ink)) left center / 100% 1px no-repeat,
      linear-gradient(var(--red-hover), var(--red-hover)) left center / 2px 100% no-repeat,
      linear-gradient(var(--ink), var(--ink)) right center / 1px 100% no-repeat;
  }

  .main-nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--red-hover); }
  .project { grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: 3rem; align-items: center; }
  .project:nth-child(even) { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
  .project:nth-child(even) > div:first-child { order: 2; }
  .gallery { grid-auto-columns: 75%; }
}

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

@media print {
  .site-header, .nav-toggle, .form, .btn, .to-top { display: none !important; }
  .project.is-pending { opacity: 1; transform: none; }
  body { background: #fff; }
}
