/* ==========================================================================
   Baukraft Deutschland GmbH — Design System
   Architektonisch-editoriale Gestaltung: scharfe Kanten, Haarlinien als
   Struktur, große Typografie, Fotografie als Hauptträger.
   ========================================================================== */

/* --- 1. Schriften (selbst gehostet, keine externen Requests) ------------- */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(../fonts/inter-latin.woff2) format('woff2');
  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: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(../fonts/inter-latin-ext.woff2) format('woff2');
  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;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url(../fonts/inter-tight-latin.woff2) format('woff2');
  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: 'Inter Tight';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url(../fonts/inter-tight-latin-ext.woff2) format('woff2');
  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;
}

/* --- 2. Tokens ----------------------------------------------------------- */

:root {
  /* Markenfarben, entnommen aus dem Baukraft-Logo */
  --navy-950: #060c18;
  --navy-900: #0a1526;
  --navy-850: #0c1b32;
  --navy-800: #0f2140;
  --navy-700: #102667;
  --navy-600: #23478f;
  --navy-500: #3b63ae;
  --orange-600: #e07c0c;
  --orange-500: #fd9224;
  --orange-400: #ffa94f;
  --orange-050: #fff5e9;

  --white: #ffffff;
  --paper: #fafbfc;
  --paper-2: #f1f4f8;
  --line: #e1e6ee;
  --line-2: #cdd6e3;
  --ink: #0a1526;
  --ink-2: #44516a;
  --ink-3: #6c7889;

  /* Semantisch */
  --bg: var(--white);
  --fg: var(--ink);
  --muted: var(--ink-2);
  --accent: var(--orange-500);
  --border: var(--line);

  /* Typografie */
  --font-display: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --fs-display: clamp(2.5rem, 6.6vw, 5.25rem);
  --fs-h1: clamp(2.25rem, 5vw, 3.9rem);
  --fs-h2: clamp(1.8rem, 3.4vw, 2.9rem);
  --fs-h3: clamp(1.25rem, 1.8vw, 1.6rem);
  --fs-h4: 1.125rem;
  --fs-lead: clamp(1.0625rem, 1.5vw, 1.3125rem);
  --fs-body: 1.0625rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;
  --fs-eyebrow: 0.75rem;

  /* Raster & Abstand (4/8-Rhythmus) */
  --s-1: 0.25rem;  --s-2: 0.5rem;   --s-3: 0.75rem;  --s-4: 1rem;
  --s-5: 1.5rem;   --s-6: 2rem;     --s-7: 3rem;     --s-8: 4rem;
  --s-9: 6rem;     --s-10: 8rem;

  --section-y: clamp(4rem, 9vw, 8rem);
  --container: 78rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  /* Bewegung */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 140ms;
  --dur: 240ms;
  --dur-slow: 520ms;

  /* Ebenen */
  --z-base: 1;
  --z-sticky: 40;
  --z-header: 60;
  --z-nav: 80;
  --z-overlay: 100;
}

/* --- 3. Reset & Grundlagen ---------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-feature-settings: 'kern' 1, 'liga' 1, 'cv11' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.025em; line-height: 1.2; }
h4 { font-size: var(--fs-h4); letter-spacing: -0.015em; line-height: 1.35; }

p { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }

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

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

ul, ol { margin: 0; padding: 0; list-style: none; }

strong, b { font-weight: 600; }

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: var(--s-7) 0;
}

::selection { background: var(--orange-500); color: var(--navy-950); }

/* Fokus – niemals entfernen, nur veredeln */
:focus-visible {
  outline: 2px solid var(--orange-500);
  outline-offset: 3px;
  border-radius: 1px;
}
.on-dark :focus-visible { outline-color: var(--orange-400); }

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: var(--s-4);
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--navy-900);
  color: var(--white);
  font-size: var(--fs-sm);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform var(--dur) var(--ease-out);
}
.skip-link:focus-visible { transform: translateY(0); }

.visually-hidden {
  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;
}

/* --- 4. Layout-Bausteine ------------------------------------------------ */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide { max-width: 92rem; }
.container--narrow { max-width: 46rem; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--paper { background: var(--paper-2); }
.section--dark {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.82);
}
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }

.section-head {
  display: grid;
  gap: var(--s-5);
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
@media (min-width: 62rem) {
  .section-head--split {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: var(--s-8);
    align-items: end;
  }
}

.eyebrow {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange-600);
  margin: 0 0 var(--s-4);
}
.eyebrow::before {
  content: '';
  width: 2rem;
  height: 2px;
  margin-top: 0.5em; /* auf die erste Textzeile ausrichten, auch bei Umbruch */
  background: var(--orange-500);
  flex: none;
}
.section--dark .eyebrow { color: var(--orange-400); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--muted);
  max-width: 38ch;
}
.section--dark .lead { color: rgba(255, 255, 255, 0.72); }
.lead--wide { max-width: 60ch; }

.prose { max-width: 68ch; color: var(--muted); }
.prose p + p { margin-top: var(--s-4); }
.prose strong { color: var(--fg); }
.section--dark .prose strong { color: var(--white); }

/* --- 5. Buttons --------------------------------------------------------- */

.btn {
  --btn-bg: var(--navy-900);
  --btn-fg: var(--white);
  --btn-bd: var(--navy-900);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 3rem;
  padding: 0.875rem 1.75rem;
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
  touch-action: manipulation;
}
.btn:hover { background: var(--navy-700); border-color: var(--navy-700); }
.btn:active { transform: translateY(1px); }
.btn svg { flex: none; width: 1.125rem; height: 1.125rem; }

.btn--accent {
  --btn-bg: var(--orange-500);
  --btn-fg: var(--navy-950);
  --btn-bd: var(--orange-500);
}
.btn--accent:hover { background: var(--orange-400); border-color: var(--orange-400); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--line-2);
}
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }

.btn--ghost-light {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  --btn-bd: rgba(255, 255, 255, 0.34);
}
.btn--ghost-light:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy-900);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-6);
}
/* Auf schmalen Displays gestapelt und gleich breit statt ungleich umgebrochen */
@media (max-width: 30rem) {
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; }
}

/* Textlink mit wandernder Pfeilspitze */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--navy-700);
  padding-block: 0.375rem;
}
.link-arrow svg {
  width: 1.125rem; height: 1.125rem;
  transition: transform var(--dur) var(--ease-out);
}
.link-arrow:hover { color: var(--orange-600); }
.link-arrow:hover svg { transform: translateX(4px); }
.section--dark .link-arrow { color: var(--orange-400); }

/* --- 6. Kopfzeile ------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-header);
  padding-block: var(--s-4);
  border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              padding var(--dur) var(--ease-out);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}

/* Zustand über dem dunklen Hero */
.site-header .logo { color: var(--white); }
.site-header .nav-link { color: rgba(255, 255, 255, 0.9); }
.site-header .nav-link:hover,
.site-header .nav-link[aria-current='page'] { color: var(--white); }
.site-header .nav-toggle { color: var(--white); }
.site-header .header-tel { color: rgba(255, 255, 255, 0.82); }
.site-header .header-tel:hover { color: var(--white); }

/* Zustand nach dem Scrollen */
.site-header.is-solid {
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--border);
  padding-block: var(--s-3);
}
.site-header.is-solid .logo { color: var(--navy-700); }
.site-header.is-solid .nav-link { color: var(--ink-2); }
.site-header.is-solid .nav-link:hover,
.site-header.is-solid .nav-link[aria-current='page'] { color: var(--navy-700); }
.site-header.is-solid .nav-toggle { color: var(--ink); }
.site-header.is-solid .header-tel { color: var(--ink-2); }
.site-header.is-solid .header-tel:hover { color: var(--navy-700); }

.logo {
  display: flex;
  align-items: center;
  flex: none;
  color: var(--navy-700);
  transition: color var(--dur) var(--ease-out);
}
.logo svg { width: clamp(9.25rem, 15vw, 11.5rem); height: auto; }
.logo-house { stroke: var(--orange-500); }

.site-nav { display: none; }
@media (min-width: 64rem) {
  .site-nav {
    display: flex;
    align-items: center;
    gap: clamp(1.25rem, 2.4vw, 2.25rem);
  }
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: color var(--dur) var(--ease-out);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0.375rem;
  height: 2px;
  background: var(--orange-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}
.nav-link:hover::after,
.nav-link[aria-current='page']::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}
.header-tel {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: color var(--dur) var(--ease-out);
}
.header-tel svg { width: 1rem; height: 1rem; }
@media (min-width: 48rem) { .header-tel { display: inline-flex; } }
.header-actions .btn { display: none; }
@media (min-width: 64rem) { .header-actions .btn { display: inline-flex; } }

/* Mobile Navigation */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem; height: 2.75rem;
  margin-right: -0.5rem;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
}
@media (min-width: 64rem) { .nav-toggle { display: none; } }
.nav-toggle__bars { position: relative; width: 1.5rem; height: 0.75rem; }
.nav-toggle__bars span {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur-fast) linear;
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { bottom: 0; }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.nav-toggle[aria-expanded='true'] .nav-toggle__bars span:nth-child(2) {
  transform: translateY(-5px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: var(--z-nav);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: var(--navy-900);
  color: var(--white);
  visibility: hidden;
  opacity: 0;
  /* visibility erst nach dem Ausblenden schalten, beim Einblenden sofort –
     sonst ist das Overlay im Moment des Öffnens noch nicht fokussierbar. */
  transition: opacity var(--dur) var(--ease-out), visibility 0s linear var(--dur);
}
.mobile-nav.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity var(--dur) var(--ease-out), visibility 0s;
}
.mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-4) var(--gutter);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.mobile-nav__head .logo { color: var(--white); }
.mobile-nav__body {
  padding: var(--s-6) var(--gutter);
  overflow-y: auto;
}
.mobile-nav__link {
  display: flex;
  align-items: baseline;
  gap: var(--s-4);
  padding: var(--s-4) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.9);
  min-height: 3.5rem;
  opacity: 0;
  transform: translateY(12px);
}
.mobile-nav.is-open .mobile-nav__link {
  animation: nav-in var(--dur-slow) var(--ease-out) forwards;
}
.mobile-nav__link[aria-current='page'] { color: var(--orange-400); }
.mobile-nav__link span {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  font-variant-numeric: tabular-nums;
}
@keyframes nav-in { to { opacity: 1; transform: none; } }
.mobile-nav__foot {
  padding: var(--s-5) var(--gutter) calc(var(--s-5) + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: var(--s-3);
}
.mobile-nav__foot a {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.75rem;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.78);
}
.mobile-nav__foot svg { width: 1.0625rem; height: 1.0625rem; color: var(--orange-400); flex: none; }

/* --- 7. Hero ----------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 40rem;
  padding-top: clamp(6.5rem, 9vh, 7.5rem);
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
  background: var(--navy-950);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero--home { min-height: min(92svh, 56rem); }
.hero--page { min-height: min(66svh, 38rem); }

/* Ohne Foto – für Rechtstexte und Fehlerseiten */
.hero--plain {
  min-height: min(48svh, 27rem);
  background: linear-gradient(155deg, var(--navy-800) 0%, var(--navy-900) 45%, var(--navy-950) 100%);
}
.hero--plain::after {
  content: '';
  position: absolute;
  right: 0; top: -40%;
  width: 55%; aspect-ratio: 1;
  z-index: -1;
  background: radial-gradient(circle, rgba(253, 146, 36, 0.16), transparent 62%);
  pointer-events: none;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    /* Kopfzeilenbereich abdunkeln, damit die Navigation auch über hellem Himmel lesbar bleibt */
    linear-gradient(to bottom, rgba(6, 12, 24, 0.78) 0%, rgba(6, 12, 24, 0.34) 12%, transparent 24%),
    linear-gradient(to top, rgba(6, 12, 24, 0.94) 0%, rgba(6, 12, 24, 0.62) 38%, rgba(6, 12, 24, 0.26) 72%, transparent 100%),
    linear-gradient(to right, rgba(6, 12, 24, 0.7) 0%, rgba(6, 12, 24, 0.12) 62%);
}

.hero__inner { position: relative; width: 100%; }
.hero__inner > .breadcrumb { margin-bottom: var(--s-6); }

/* Der Hero tritt per CSS-Animation auf – bewusst ohne JavaScript, damit die
   wichtigste Botschaft der Seite auch ohne Skripte sichtbar ist. */
@keyframes hero-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.hero__inner > * { animation: hero-in 640ms var(--ease-out) both; }
.hero__inner > *:nth-child(1) { animation-delay: 40ms; }
.hero__inner > *:nth-child(2) { animation-delay: 110ms; }
.hero__inner > *:nth-child(3) { animation-delay: 180ms; }
.hero__inner > *:nth-child(4) { animation-delay: 250ms; }
.hero__inner > *:nth-child(5) { animation-delay: 320ms; }
.hero__inner > *:nth-child(6) { animation-delay: 390ms; }

.hero__title {
  font-size: var(--fs-display);
  font-weight: 800;
  letter-spacing: -0.042em;
  line-height: 0.98;
  max-width: 22ch;
  margin-bottom: var(--s-5);
}
.hero__title em {
  font-style: normal;
  color: var(--orange-500);
}
.hero--page .hero__title { font-size: var(--fs-h1); max-width: 26ch; }

.hero__lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  max-width: 48ch;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}
.hero__meta .dot { width: 4px; height: 4px; background: var(--orange-500); }

/* Kennzahlenband am Hero-Fuß */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(1.75rem, 4vh, 3rem);
  background: rgba(255, 255, 255, 0.16);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
@media (min-width: 48rem) {
  .hero__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.hero__stat {
  background: rgba(6, 12, 24, 0.34);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: var(--s-3) var(--s-4) var(--s-4);
}
.hero__stat dt {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--s-2);
}
.hero__stat dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hero__stat dd span { color: var(--orange-500); }

.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: 50%;
  z-index: 2;
  display: none;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  writing-mode: vertical-rl;
}
@media (min-width: 64rem) { .scroll-cue { display: flex; } }
.scroll-cue::after {
  content: '';
  width: 1px; height: 4rem;
  background: linear-gradient(to bottom, var(--orange-500), transparent);
}

/* --- 8. Leistungen (nummerierte Liste) --------------------------------- */

.services { border-top: 1px solid var(--border); }
.service {
  display: grid;
  gap: var(--s-3);
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
  border-bottom: 1px solid var(--border);
  transition: background var(--dur) var(--ease-out);
}
@media (min-width: 56rem) {
  .service {
    grid-template-columns: 4.5rem minmax(0, 15rem) minmax(0, 1fr);
    gap: var(--s-6);
    align-items: start;
  }
}
.service:hover { background: var(--paper-2); }
.service__num {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--orange-600);
  letter-spacing: 0.02em;
  padding-top: 0.25rem;
}
.service__title { color: var(--fg); }
.service__body { color: var(--muted); font-size: var(--fs-sm); line-height: 1.7; }
.service__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: var(--s-3);
}
.service__tags li {
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--ink-3);
  padding: 0.25rem 0.625rem;
  border: 1px solid var(--border);
  background: var(--white);
}

/* --- 9. Projektkarten -------------------------------------------------- */

.project-list { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); }

.project-card {
  position: relative;
  display: grid;
  gap: var(--s-5);
  border-top: 1px solid var(--border);
  padding-top: var(--s-5);
}
@media (min-width: 56rem) {
  .project-card {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
  }
  .project-card:nth-child(even) .project-card__media { order: 2; }
}

.project-card__media {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
  aspect-ratio: 4 / 3;
}
.project-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out);
}
.project-card:hover .project-card__media img { transform: scale(1.035); }

.project-card__tag {
  position: absolute;
  left: 0; top: 0;
  z-index: 2;
  padding: 0.5rem 0.875rem;
  background: var(--orange-500);
  color: var(--navy-950);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card__title {
  /* Größe hier festlegen, damit h2 (Projektliste) und h3 (Startseite)
     identisch aussehen – die Ebene richtet sich nach dem Seitenaufbau. */
  font-size: var(--fs-h3);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: var(--s-4);
  transition: color var(--dur) var(--ease-out);
}
.project-card:hover .project-card__title { color: var(--navy-700); }
.project-card__body { color: var(--muted); font-size: var(--fs-sm); line-height: 1.7; }

.project-card__link { position: static; }
.project-card__link::after { content: ''; position: absolute; inset: 0; z-index: 3; }

/* Datenzeilen – wirkt wie eine echte Referenzliste */
.meta-list {
  display: grid;
  gap: 0;
  margin: var(--s-5) 0 0;
  border-top: 1px solid var(--border);
  font-size: var(--fs-sm);
}
.meta-list > div {
  display: grid;
  grid-template-columns: minmax(7.5rem, 32%) minmax(0, 1fr);
  gap: var(--s-4);
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--border);
}
/* Schmale Displays: Beschriftung über den Wert. Nebeneinander würden lange
   Beschriftungen wie „Projektzeitraum" in den Wert hineinlaufen. */
@media (max-width: 40rem) {
  .meta-list > div { grid-template-columns: 1fr; gap: 0.25rem; padding-block: 0.875rem; }
}
.meta-list dt {
  color: var(--ink-3);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 0.1875rem;
}
.meta-list dd { margin: 0; color: var(--fg); font-weight: 500; }
.meta-list dd .accent { color: var(--orange-600); font-weight: 600; }

.section--dark .meta-list,
.section--dark .meta-list > div { border-color: rgba(255, 255, 255, 0.14); }
.section--dark .meta-list dt { color: rgba(255, 255, 255, 0.5); }
.section--dark .meta-list dd { color: var(--white); }

/* --- 10. Galerie & Lightbox ------------------------------------------- */

/* Mehrspaltiges Mauerwerk-Layout: Hoch- und Querformate ohne Beschnitt */
.gallery {
  columns: 1;
  column-gap: var(--s-3);
}
@media (min-width: 40rem) { .gallery { columns: 2; } }
@media (min-width: 64rem) { .gallery { columns: 3; } }

.gallery__item {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 var(--s-3);
  overflow: hidden;
  break-inside: avoid;
  background: var(--paper-2);
  border: 0;
  padding: 0;
  cursor: zoom-in;
  touch-action: manipulation;
}
.gallery__item img {
  width: 100%;
  height: auto;
  transition: transform 700ms var(--ease-out), opacity var(--dur) linear;
}
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 12, 24, 0.5), transparent 55%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out);
}
.gallery__item:hover::after { opacity: 1; }
.gallery__zoom {
  position: absolute;
  right: 0.75rem; bottom: 0.75rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.25rem; height: 2.25rem;
  background: var(--white);
  color: var(--navy-900);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.gallery__item:hover .gallery__zoom { opacity: 1; transform: none; }
.gallery__zoom svg { width: 1.125rem; height: 1.125rem; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  display: grid;
  /* Feste Zeilenhöhen für Kopf und Bildunterschrift: nur so ist die
     Bühnenhöhe definit und die Bildbegrenzung berechenbar. */
  grid-template-rows: var(--lb-bar) minmax(0, 1fr) var(--lb-cap);
  --lb-bar: 4.5rem;
  --lb-cap: 5.5rem;
  background: rgba(4, 8, 16, 0.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out), visibility 0s linear var(--dur);
}
.lightbox.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity var(--dur) var(--ease-out), visibility 0s;
}
.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 0 var(--gutter);
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}
.lightbox__stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: var(--s-2) var(--gutter);
  min-height: 0;
}
.lightbox__stage img {
  max-width: 100%;
  /* Viewport-basiert statt Prozent: die Bühnenhöhe ist für Prozentwerte
     nicht zuverlässig auflösbar, 100svh minus Kopf und Unterschrift ist es. */
  max-height: calc(100svh - var(--lb-bar) - var(--lb-cap) - 1rem);
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out);
}
.lightbox__stage img.is-ready { opacity: 1; }
.lightbox__caption {
  align-self: start;
  padding: var(--s-4) var(--gutter) calc(var(--s-4) + env(safe-area-inset-bottom));
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--fs-sm);
  line-height: 1.5;
  text-align: center;
  max-width: 62ch;
  margin-inline: auto;
  /* Auf zwei Zeilen begrenzen, damit die Zeilenhöhe nie überschritten wird */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lb-btn {
  display: grid;
  place-items: center;
  width: 3rem; height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: background var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
  touch-action: manipulation;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.5); }
.lb-btn svg { width: 1.25rem; height: 1.25rem; }
.lightbox__nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  display: flex;
  gap: var(--s-2);
}
.lightbox__nav--prev { left: var(--gutter); }
.lightbox__nav--next { right: var(--gutter); }
@media (max-width: 47.99rem) {
  /* Mehr Platz unten: Blätter-Buttons liegen auf Touchgeräten am Fuß */
  .lightbox { --lb-bar: 4rem; --lb-cap: 9.5rem; }
  .lightbox__nav {
    top: auto;
    bottom: calc(5.25rem + env(safe-area-inset-bottom));
    transform: none;
  }
  .lightbox__nav--prev { left: var(--gutter); }
  .lightbox__nav--next { right: var(--gutter); }
  .lightbox__caption { -webkit-line-clamp: 3; }
}

/* --- 11. Video ---------------------------------------------------------- */

.video-block {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--navy-950);
  overflow: hidden;
}
.video-block video, .video-block img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.video-block__play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-4);
  border: 0;
  background: linear-gradient(to top, rgba(6, 12, 24, 0.7), rgba(6, 12, 24, 0.15));
  color: var(--white);
  cursor: pointer;
  transition: opacity var(--dur) var(--ease-out);
  touch-action: manipulation;
}
.video-block.is-playing .video-block__play { opacity: 0; pointer-events: none; }
.video-block__play span {
  display: grid;
  place-items: center;
  width: clamp(4rem, 8vw, 5.5rem);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.video-block__play:hover span { background: var(--orange-500); transform: scale(1.06); }
.video-block__play:hover span svg { color: var(--navy-950); }
.video-block__play span svg { width: 1.5rem; height: 1.5rem; margin-left: 0.1875rem; }
.video-block__play small {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

/* --- 12. Ablauf / Prozess --------------------------------------------- */

.steps {
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
  border-block: 1px solid rgba(255, 255, 255, 0.14);
}
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  background: var(--navy-900);
  padding: var(--s-6) var(--s-5) var(--s-7);
  position: relative;
}
.step__num {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.22);
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--s-4);
}
.step h3 { margin-bottom: var(--s-3); font-size: 1.1875rem; }
.step p { font-size: var(--fs-sm); color: rgba(255, 255, 255, 0.66); line-height: 1.65; }

/* --- 13. Merkmale / Werte --------------------------------------------- */

.feature-grid {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
@media (min-width: 48rem) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature {
  background: var(--white);
  padding: clamp(1.75rem, 3vw, 2.5rem);
}
.feature__icon {
  display: grid;
  place-items: center;
  width: 3.25rem; height: 3.25rem;
  margin-bottom: var(--s-5);
  border: 1px solid var(--border);
  background: var(--orange-050);
  color: var(--orange-600);
}
.feature__icon svg { width: 1.625rem; height: 1.625rem; }
.feature h3 { margin-bottom: var(--s-3); }
.feature p { font-size: var(--fs-sm); color: var(--muted); line-height: 1.7; }

/* Kennzahlen im Licht */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
@media (min-width: 56rem) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--white); padding: clamp(1.5rem, 3vw, 2.25rem); }
.stat dt {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--s-3);
}
.stat dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat dd span { color: var(--orange-500); }

/* Leistungsumfang-Häkchenliste */
.scope-list { display: grid; gap: 0.625rem; }
@media (min-width: 40rem) { .scope-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-5); } }
.scope-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.6875rem;
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.55;
}
.scope-list svg { width: 1.0625rem; height: 1.0625rem; margin-top: 0.1875rem; color: var(--orange-600); flex: none; }

/* --- 14. Zwei-Spalten-Bild/Text --------------------------------------- */

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (min-width: 56rem) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--media-right .split__media { order: 2; }
}
.split--top { align-items: start; }
.split__media { position: relative; }
.split__media img { width: 100%; }
.split__media--stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
}
/* Kinder sind <picture>-Elemente, nicht <img> – daher > * statt img */
.split__media--stack > * {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--paper-2);
}
.split__media--stack > *:first-child {
  grid-column: span 2;
  aspect-ratio: 16 / 10;
}
.split__media--stack img { width: 100%; height: 100%; object-fit: cover; }

/* Orangefarbene Akzentklammer an Bildern.
   Muss außerhalb von .img-wrap liegen, da dort overflow:hidden greift. */
.framed { position: relative; }
.framed > .img-wrap { position: relative; z-index: 1; }
.framed::before {
  content: '';
  position: absolute;
  left: -0.75rem; bottom: -0.75rem;
  width: 45%; height: 45%;
  border-left: 3px solid var(--orange-500);
  border-bottom: 3px solid var(--orange-500);
  pointer-events: none;
}
@media (min-width: 56rem) {
  .framed::before { left: -1.5rem; bottom: -1.5rem; }
}

/* --- 15. Zitat / Geschäftsführung ------------------------------------- */

.quote {
  border-left: 3px solid var(--orange-500);
  padding-left: clamp(1.25rem, 3vw, 2.25rem);
}
.quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.6vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.3;
  text-wrap: balance;
}
.quote figcaption {
  margin-top: var(--s-5);
  font-size: var(--fs-sm);
  color: var(--ink-3);
}
.quote figcaption strong { display: block; color: var(--fg); font-size: var(--fs-body); }
.section--dark .quote figcaption { color: rgba(255, 255, 255, 0.6); }
.section--dark .quote figcaption strong { color: var(--white); }

/* --- 16. CTA-Band ----------------------------------------------------- */

.cta-band {
  position: relative;
  background: var(--navy-700);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(253, 146, 36, 0.28), transparent 55%),
    radial-gradient(90% 120% at 0% 100%, rgba(35, 71, 143, 0.9), transparent 60%);
}
.cta-band__inner {
  display: grid;
  gap: var(--s-6);
  padding-block: clamp(3rem, 7vw, 6rem);
}
@media (min-width: 62rem) {
  .cta-band__inner {
    grid-template-columns: minmax(0, 1.2fr) auto;
    align-items: center;
    gap: var(--s-8);
  }
}
.cta-band h2 { font-size: var(--fs-h2); margin-bottom: var(--s-4); }
.cta-band p { color: rgba(255, 255, 255, 0.78); max-width: 50ch; }

/* --- 17. Formular ----------------------------------------------------- */

.form-grid { display: grid; gap: var(--s-5); }
@media (min-width: 40rem) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field--full { grid-column: 1 / -1; }
}

.field { display: grid; gap: 0.4375rem; }
.field label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--fg);
}
.field label .req { color: var(--orange-600); }
.field__hint { font-size: var(--fs-xs); color: var(--ink-3); }

.field input, .field select, .field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.9375rem;
  border: 1px solid var(--line-2);
  border-radius: 0;
  background: var(--white);
  color: var(--fg);
  font-family: inherit;
  font-size: var(--fs-body);
  line-height: 1.5;
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2344516a' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  background-size: 1.125rem;
  padding-right: 2.75rem;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0;
  border-color: var(--navy-600);
  box-shadow: 0 0 0 3px rgba(35, 71, 143, 0.16);
}
.field input::placeholder, .field textarea::placeholder { color: #9aa5b5; }

.field.has-error input, .field.has-error select, .field.has-error textarea {
  border-color: #c0261b;
}
.field.has-error input:focus, .field.has-error textarea:focus {
  box-shadow: 0 0 0 3px rgba(192, 38, 27, 0.16);
}
.field__error {
  display: none;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: #a8211a;
}
.field__error svg { width: 0.9375rem; height: 0.9375rem; flex: none; }
.field.has-error .field__error { display: flex; }

.checkbox {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
}
.checkbox input {
  width: 1.25rem; height: 1.25rem;
  min-height: 0;
  margin: 0.1875rem 0 0;
  accent-color: var(--navy-600);
  flex: none;
}
.checkbox label { font-size: var(--fs-sm); font-weight: 400; color: var(--muted); line-height: 1.55; }
.checkbox label a { color: var(--navy-700); text-decoration: underline; text-underline-offset: 2px; }

.form-note { font-size: var(--fs-xs); color: var(--ink-3); }

.form-status {
  display: none;
  align-items: flex-start;
  gap: 0.75rem;
  padding: var(--s-4) var(--s-5);
  border-left: 3px solid;
  font-size: var(--fs-sm);
}
.form-status svg { width: 1.25rem; height: 1.25rem; flex: none; margin-top: 0.125rem; }
.form-status.is-visible { display: flex; }
.form-status--ok { border-color: #1f7a45; background: #eefaf2; color: #14562f; }
.form-status--err { border-color: #c0261b; background: #fdf0ef; color: #8f1c15; }

.btn[aria-busy='true'] { pointer-events: none; opacity: 0.75; }
.btn__spinner { display: none; width: 1.0625rem; height: 1.0625rem; }
.btn[aria-busy='true'] .btn__spinner { display: block; animation: spin 700ms linear infinite; }
.btn[aria-busy='true'] .btn__icon { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- 18. Kontaktkarten ------------------------------------------------ */

.contact-cards { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); }
@media (min-width: 40rem) { .contact-cards { grid-template-columns: repeat(3, 1fr); } }
.contact-card {
  background: var(--white);
  padding: clamp(1.5rem, 3vw, 2rem);
  display: grid;
  gap: var(--s-3);
  align-content: start;
  transition: background var(--dur) var(--ease-out);
}
a.contact-card:hover { background: var(--paper-2); }
.contact-card svg { width: 1.375rem; height: 1.375rem; color: var(--orange-600); }
.contact-card dt {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.contact-card dd { margin: 0; font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; }
.contact-card dd small { display: block; font-size: var(--fs-sm); font-weight: 400; color: var(--muted); margin-top: 0.25rem; }

/* --- 19. Fußzeile ---------------------------------------------------- */

.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--fs-sm);
}
.site-footer__main {
  display: grid;
  gap: var(--s-7);
  padding-block: clamp(3rem, 6vw, 5rem);
}
@media (min-width: 56rem) {
  .site-footer__main {
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: var(--s-6);
  }
}
.site-footer .logo { color: var(--white); }
.site-footer__brand p { margin-top: var(--s-5); max-width: 34ch; line-height: 1.7; }
.site-footer h3 {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
  margin-bottom: var(--s-4);
}
.site-footer li + li { margin-top: 0.5rem; }
.site-footer a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 1.875rem;
  color: rgba(255, 255, 255, 0.72);
  transition: color var(--dur) var(--ease-out);
}
.site-footer a:hover { color: var(--orange-400); }
/* Nur die Zeilen-Icons verkleinern – nicht das Logo-SVG in der Markenspalte. */
.site-footer li svg { width: 1rem; height: 1rem; flex: none; color: var(--orange-500); }
.site-footer address { font-style: normal; line-height: 1.8; }

.site-footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding-block: var(--s-5);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.6);
}
.site-footer__bar ul { display: flex; flex-wrap: wrap; gap: var(--s-5); }
.site-footer__bar li + li { margin-top: 0; }

/* --- 20. Rechtstexte ------------------------------------------------- */

.legal { max-width: 52rem; }
.legal h2 {
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  margin: var(--s-8) 0 var(--s-4);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
}
.legal h2:first-of-type { margin-top: 0; border-top: 0; padding-top: 0; }
.legal h3 { font-size: 1.0625rem; margin: var(--s-6) 0 var(--s-3); }
.legal p, .legal li { color: var(--muted); font-size: var(--fs-sm); line-height: 1.75; }
.legal ul { list-style: none; margin: var(--s-3) 0; }
.legal ul li { position: relative; padding-left: 1.125rem; margin-bottom: 0.5rem; }
.legal ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.6875rem;
  width: 5px; height: 1px;
  background: var(--orange-500);
}
.legal a { color: var(--navy-700); text-decoration: underline; text-underline-offset: 2px; }
.legal address { font-style: normal; color: var(--muted); font-size: var(--fs-sm); line-height: 1.8; }
.legal dl { display: grid; gap: 0; margin: var(--s-4) 0; }
.legal dl > div {
  display: grid;
  grid-template-columns: minmax(9rem, 30%) 1fr;
  gap: var(--s-4);
  padding-block: 0.625rem;
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-sm);
}
@media (max-width: 40rem) {
  .legal dl > div { grid-template-columns: 1fr; gap: 0.125rem; }
}
.legal dl dt { color: var(--ink-3); }
.legal dl dd { margin: 0; color: var(--fg); }

/* --- 21. Brotkrumen ------------------------------------------------- */

.breadcrumb { font-size: var(--fs-xs); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.breadcrumb li { display: flex; align-items: center; gap: 0.5rem; color: rgba(255, 255, 255, 0.5); }
.breadcrumb li:not(:last-child)::after { content: '/'; color: rgba(255, 255, 255, 0.3); }
.breadcrumb a { color: rgba(255, 255, 255, 0.72); min-height: 2rem; display: inline-flex; align-items: center; }
.breadcrumb a:hover { color: var(--orange-400); }
.breadcrumb [aria-current='page'] { color: var(--orange-400); }

/* --- 22. Projektnavigation ----------------------------------------- */

.project-nav {
  display: grid;
  gap: 1px;
  background: var(--border);
  border-block: 1px solid var(--border);
}
@media (min-width: 48rem) { .project-nav { grid-template-columns: 1fr 1fr; } }
.project-nav a {
  display: grid;
  gap: var(--s-2);
  padding: clamp(1.5rem, 3vw, 2.25rem) var(--gutter);
  background: var(--white);
  transition: background var(--dur) var(--ease-out);
}
.project-nav a:hover { background: var(--paper-2); }
.project-nav a:last-child { text-align: right; }
.project-nav small {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.project-nav a:last-child small { justify-content: flex-end; }
.project-nav svg { width: 1rem; height: 1rem; }
.project-nav strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* --- 23. Scroll-Reveal --------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-delay='1'] { transition-delay: 70ms; }
[data-reveal-delay='2'] { transition-delay: 140ms; }
[data-reveal-delay='3'] { transition-delay: 210ms; }
[data-reveal-delay='4'] { transition-delay: 280ms; }

/* Bild-Platzhalter: LQIP wird ausgeblendet, sobald das Bild geladen ist */
.img-wrap { position: relative; overflow: hidden; background: var(--paper-2); }
.img-wrap picture { display: block; }
.img-wrap picture img { position: relative; z-index: 1; }

/* Muss spezifischer sein als `.img-wrap picture img`, sonst verliert das
   absolute Positionieren und der Platzhalter belegt Layoutfläche. */
.img-wrap > img.img-lqip {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(16px);
  transform: scale(1.08);
  transition: opacity 400ms linear;
}
.img-wrap.is-loaded > img.img-lqip { opacity: 0; }

/* Feste Seitenverhältnisse: Bild füllt den Rahmen formatfüllend */
.img-wrap--fill picture { height: 100%; }
.img-wrap--fill picture img { width: 100%; height: 100%; object-fit: cover; }

/* --- 25. Touch-Flächen auf Zeigegeräten ohne Maus ---------------------- */
/* Fingerbedienung braucht größere Ziele als ein Mauszeiger. Gilt nur für
   grobe Zeiger, damit die Desktop-Gestaltung kompakt bleibt. */
@media (pointer: coarse), (max-width: 48rem) {
  .site-footer a { min-height: 2.75rem; }
  .site-footer__bar ul a { min-height: 2.5rem; }
  .breadcrumb a,
  .breadcrumb li { min-height: 2.75rem; }
  .meta-list dd a,
  .contact-card dd a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
  }
  .checkbox input {
    width: 1.5rem;
    height: 1.5rem;
    margin-top: 0.0625rem;
  }
  /* Das Label ist bereits mehrzeilig und per `for` klickbar – es dient als
     großzügige Tippfläche. Kein display:flex, das würde den Satz in
     einzelne Flex-Elemente zerlegen. */
  .checkbox { padding-block: 0.375rem; }
  .checkbox label { padding-block: 0.25rem; }
}

/* --- 24. Bewegungsreduktion & Druck ------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .project-card:hover .project-card__media img,
  .gallery__item:hover img { transform: none; }
}

@media print {
  .site-header, .mobile-nav, .nav-toggle, .scroll-cue, .lightbox,
  .cta-band, .video-block { display: none !important; }
  body { color: #000; font-size: 11pt; }
  .hero { min-height: 0; padding: 0 0 1rem; color: #000; background: none; }
  .hero__media, .hero__scrim { display: none; }
  .hero__title { color: #000; }
  a { text-decoration: underline; }
  .section { padding-block: 1rem; }
}
