/* ============================================================================
   Sebastian Ehrlich – Ausbausysteme in Trockenbauweise – Gestaltung
   Mobile-first, kein Framework, keine Build-Pipeline.

   Farben aus dem Logo: Cyan #0094BA und das Anthrazit der Konturen, dazu ein
   warmes Licht wie auf den Fotos der Lichtvouten. Schriften: Young Serif
   (Überschriften, kräftige Serifen wie der Namenszug im Logo) und Work Sans
   (Fließtext), beide selbst gehostet. Begründung und Abweichungen von der
   Datenbank-Empfehlung: design-system/trockenbau-ehrlich/MASTER.md.

   Bewegung: Einblenden und Wort-für-Wort-Überschrift nach der Motion-Datenbank
   des Skills; Deckenraster, Lichtfuge, gezeichnete Symbole und Glanz nach
   eigenem Urteil. Nur transform, opacity und stroke-dashoffset – nichts, was
   das Layout verschiebt. Bei „weniger Bewegung" gilt sofort der Endzustand.
   ========================================================================= */

/* ------------------------------------------------------------- Schriften */
/* Selbst gehostet. Keine Einbindung über fonts.googleapis.com: die
   Content-Security-Policy steht auf 'self', und eine CDN-Einbindung würde die
   IP-Adresse jedes Besuchers an Google übertragen. SIL Open Font License,
   Lizenztexte in assets/fonts/. */

@font-face {
  font-family: "Young Serif";
  src: url("/assets/fonts/YoungSerif-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("/assets/fonts/WorkSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("/assets/fonts/WorkSans-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("/assets/fonts/WorkSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------------------------------------------------------------- Marken */

:root {
  /* Logo-Cyan. Mit Weiß nur 3,5:1 – deshalb für Schrift und Knöpfe die
     dunkleren Stufen: Cyan dunkel 5,6:1, Cyan tief 7,8:1 auf Weiß. */
  --farbe-cyan:        #0094BA;
  --farbe-cyan-dunkel: #00718F;
  --farbe-cyan-tief:   #005A73;
  /* Für dunkle Flächen: 8,2:1 auf Anthrazit */
  --farbe-cyan-hell:   #3CC4EA;
  /* Warmes Licht der Lichtvouten. Nur Schmuck und Schrift auf Dunkel
     (10,7:1 auf Anthrazit) – nie Schrift auf Weiß. */
  --farbe-licht:       #FFC46B;
  --farbe-licht-dunkel:#9A5B00;   /* Symbole auf Weiß, 5,4:1 */

  /* Fehler bleiben rot – das ist eine Bedeutung, keine Markenfarbe. */
  --farbe-rot:         #C0341D;
  --farbe-rot-dunkel:  #9B2A17;

  /* Anthrazit aus den Konturen des Logos */
  --farbe-anthrazit:   #1D1D1F;
  --farbe-anthrazit-2: #2A2B2E;
  --farbe-grau:        #5C6570;   /* 5.9:1 auf Weiß */
  --farbe-text:        #1D1D1F;
  --farbe-text-hell:   #50575F;   /* 7.3:1 auf Weiß */
  --farbe-weiss:       #FFFFFF;
  --farbe-flaeche:     #F3F6F8;
  --farbe-flaeche-2:   #E6ECF0;
  --farbe-rand:        #D3DCE2;

  /* Schrift */
  --schrift-titel: "Young Serif", Georgia, "Times New Roman", serif;
  --schrift-text:  "Work Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Maße */
  --breite:        76rem;
  --breite-schmal: 46rem;
  --abstand:       clamp(3.75rem, 8vw, 7rem);
  --rand-innen:    clamp(1rem, 4vw, 2.5rem);
  --radius:        4px;
  --schatten:      0 2px 12px rgba(31, 35, 40, .08);
  --schatten-hoch: 0 14px 32px rgba(31, 35, 40, .16);
  --kopf-hoehe:    4.5rem;

  /* Beschleunigungskurven, übersetzt aus den GSAP-Angaben der Motion-Datenbank */
  --e-power1: cubic-bezier(.5, 1, .89, 1);      /* power1.out   */
  --e-power2: cubic-bezier(.33, 1, .68, 1);     /* power2.out   */
  --e-expo:   cubic-bezier(.16, 1, .3, 1);      /* expo.out     */
  --e-back:   cubic-bezier(.34, 1.4, .64, 1);   /* back.out(1.4)*/
}

/* ------------------------------------------------------------ Grundlagen */

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

html {
  scroll-behavior: smooth;
  /* Damit Ankersprünge nicht unter der klebenden Kopfzeile landen */
  scroll-padding-top: calc(var(--kopf-hoehe) + 1rem);
}

body {
  margin: 0;
  background: var(--farbe-weiss);
  color: var(--farbe-text);
  font-family: var(--schrift-text);
  font-size: clamp(1rem, .96rem + .2vw, 1.09rem);
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--schrift-titel);
  /* Young Serif gibt es nur in einer Stärke – kein künstliches Fett. */
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.005em;
  color: var(--farbe-anthrazit);
  margin: 0 0 .45em;
}
h1 { font-size: clamp(2.5rem, 1.5rem + 4.6vw, 4.6rem); }
h2 { font-size: clamp(1.85rem, 1.35rem + 2vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 1.1rem + .5vw, 1.45rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--farbe-cyan-dunkel); text-underline-offset: .18em; }
a:hover { color: var(--farbe-cyan-tief); }

button { font: inherit; }

/* Sichtbarer Fokusring auf allem, was bedienbar ist. Nicht wegnehmen. */
:focus-visible {
  outline: 3px solid var(--farbe-cyan-dunkel);
  outline-offset: 3px;
  border-radius: 2px;
}
.hero :focus-visible,
.abschnitt--dunkel :focus-visible,
.fuss :focus-visible,
.einwilligung :focus-visible,
.lightbox :focus-visible { outline-color: var(--farbe-licht); }

/* ------------------------------------------------------------- Hilfsmittel */

.sprung {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  background: var(--farbe-anthrazit);
  color: #fff;
  padding: .8rem 1.2rem;
  text-decoration: none;
}
.sprung:focus { left: .5rem; top: .5rem; color: #fff; }

.visuell-versteckt {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* Honeypot: für Menschen unsichtbar, für Bots ein ganz normales Feld.
   Bewusst nicht display:none – manche Bots erkennen das und lassen es leer. */
.koeder {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.bahn {
  width: min(100% - 2 * var(--rand-innen), var(--breite));
  margin-inline: auto;
}

.symbol { width: 1.75rem; height: 1.75rem; flex: none; }
.symbol--klein { width: 1.1rem; height: 1.1rem; }

/* ================================================================ Bewegung */

/* Grundzustand vor der Einblendung – ausschließlich unter .js. Die Klasse setzt
   ein Inline-Skript ganz oben im <head>. Ohne JavaScript und für jeden Crawler
   ist damit alles von Anfang an sichtbar. */

/* Einblenden beim Scrollen – Motion-Datenbank „Scroll Reveal":
   300–400 ms, power1.out, 8–16 px Versatz. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
}
.js [data-reveal].istDa {
  opacity: 1;
  transform: none;
  transition: opacity 380ms var(--e-power1), transform 380ms var(--e-power1);
}

/* Gestaffelte Liste – Motion-Datenbank „Stagger List": back.out, je 60 ms.
   Nie mehr als ~8 Kinder staffeln, sonst wirken die letzten träge. */
.js [data-stagger] > * {
  opacity: 0;
  transform: translateY(16px) scale(.97);
}
.js [data-stagger].istDa > * {
  opacity: 1;
  transform: none;
  transition: opacity 420ms var(--e-back), transform 420ms var(--e-back);
}
.js [data-stagger].istDa > :nth-child(2) { transition-delay:  60ms; }
.js [data-stagger].istDa > :nth-child(3) { transition-delay: 120ms; }
.js [data-stagger].istDa > :nth-child(4) { transition-delay: 180ms; }
.js [data-stagger].istDa > :nth-child(5) { transition-delay: 240ms; }
.js [data-stagger].istDa > :nth-child(6) { transition-delay: 300ms; }
.js [data-stagger].istDa > :nth-child(7) { transition-delay: 360ms; }
.js [data-stagger].istDa > :nth-child(n+8) { transition-delay: 420ms; }

/* Lichtfuge unter Abschnittsüberschriften: eine Linie wie das LED-Band einer
   Lichtvoute, zieht sich von links nach rechts, am Ende leuchtet sie kurz auf.
   Eigenes Urteil. */
.fuge {
  display: block;
  position: relative;
  width: min(8.5rem, 45%);
  height: 4px;
  margin: .15rem 0 1.25rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--farbe-cyan-dunkel) 0%, var(--farbe-cyan) 60%, var(--farbe-cyan-hell) 100%);
  transform-origin: left center;
}
.fuge::after {
  content: "";
  position: absolute;
  inset: -6px -10px;
  border-radius: 8px;
  background: radial-gradient(closest-side, rgba(60, 196, 234, .55), rgba(60, 196, 234, 0));
  opacity: 0;
  pointer-events: none;
}
.js .fuge { transform: scaleX(0); }
.js .istDa > .fuge,
.js .istDa .fuge {
  transform: scaleX(1);
  transition: transform 900ms var(--e-power2) 180ms;
}
.js .istDa .fuge::after { animation: aufleuchten 1600ms ease-out 1000ms both; }
@keyframes aufleuchten {
  0%   { opacity: 0; }
  25%  { opacity: 1; }
  100% { opacity: 0; }
}

/* Symbole zeichnen sich Strich für Strich. Jeder Strich hat pathLength="1"
   (siehe symbol() in inc/layout.php), deshalb reicht 1 als Strichlänge. Die
   Deckkraft blendet mit, damit die runden Strichenden vorher keine Punkte
   hinterlassen. Eigenes Urteil. */
.js .symbol--zeichnen { opacity: 0; }
.js .symbol--zeichnen [pathLength] {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.js .istDa .symbol--zeichnen {
  opacity: 1;
  transition: opacity 120ms linear var(--zeichnen-verzug, 150ms);
}
.js .istDa .symbol--zeichnen [pathLength] {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 950ms var(--e-power2) var(--zeichnen-verzug, 150ms);
}

/* Hero-Überschrift Wort für Wort – Motion-Datenbank „Stagger List":
   400–700 ms, expo.out, nur für kurze Überschriften. Die Wörter baut
   seite.js; für Screenreader bleibt der ganze Satz lesbar. */
.hero__titel .wort { display: inline-block; }
.js .hero__titel .wort {
  opacity: 0;
  transform: translateY(.42em);
}
.js .hero__titel.istDa .wort {
  opacity: 1;
  transform: none;
  transition: opacity 650ms var(--e-expo), transform 650ms var(--e-expo);
  transition-delay: calc(140ms + var(--i, 0) * 110ms);
}

/* Stahlglanz: ein Lichtstreifen läuft einmal über das Element. Eigenes Urteil. */
[data-glanz] { position: relative; overflow: hidden; isolation: isolate; }
.js [data-glanz]::after {
  content: "";
  position: absolute;
  inset: -30% -60%;
  background: linear-gradient(100deg, transparent 42%, rgba(255, 255, 255, .5) 50%, transparent 58%);
  transform: translateX(-100%);
  pointer-events: none;
  z-index: 1;
}
.js [data-glanz].istDa::after {
  transform: translateX(100%);
  transition: transform 1200ms var(--e-power2) 650ms;
}

/* Notfall: Lädt seite.js nicht, setzt es auch nicht .js-bereit. Dann blendet
   sich nach drei Sekunden trotzdem alles ein – nichts bleibt für immer
   unsichtbar, nur weil ein Skript fehlt. */
.js:not(.js-bereit) :is([data-reveal], [data-stagger] > *, .hero__titel, .symbol--zeichnen),
.js:not(.js-bereit) .symbol--zeichnen [pathLength],
.js:not(.js-bereit) .fuge,
.js:not(.js-bereit) .hero__raster path {
  animation: notfall 1ms linear 3s forwards;
}
@keyframes notfall {
  to { opacity: 1; transform: none; stroke-dashoffset: 0; }
}

/* Weniger Bewegung: seite.js setzt .keine-bewegung, sobald das Betriebssystem
   es verlangt (örtlich auch per ?bewegung=aus). Dann gilt sofort der
   Endzustand – kein Aufblenden, keine gezeichneten Striche, keine Funken. */
.keine-bewegung :is([data-reveal], [data-stagger] > *, .hero__titel .wort) {
  opacity: 1 !important;
  transform: none !important;
}
.keine-bewegung .fuge { transform: none !important; }
.keine-bewegung .fuge::after { display: none; }
.keine-bewegung .hero__raster path { stroke-dashoffset: 0 !important; opacity: 1 !important; }
.keine-bewegung .symbol--zeichnen { opacity: 1 !important; }
.keine-bewegung .symbol--zeichnen [pathLength] { stroke-dashoffset: 0 !important; }
.keine-bewegung [data-glanz]::after { display: none !important; }
.keine-bewegung .hero__foto { animation: none !important; transform: none !important; }
.keine-bewegung,
.keine-bewegung *,
.keine-bewegung *::before,
.keine-bewegung *::after {
  scroll-behavior: auto !important;
  transition-duration: .01ms !important;
  transition-delay: 0s !important;
  animation-duration: .01ms !important;
  animation-delay: 0s !important;
  animation-iteration-count: 1 !important;
}

/* Rückfall, falls JavaScript fehlt: nur die Dauer kürzen. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* --------------------------------------------------------- Testfassungsbanner */

.testbanner {
  background: var(--farbe-rot);
  color: #fff;
  text-align: center;
  padding: .55rem 1rem;
  font-size: .9rem;
}

/* ------------------------------------------------------------- Kopfzeile */

.kopf {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid transparent;
  transition: box-shadow 250ms var(--e-power2), border-color 250ms var(--e-power2);
}
@supports (backdrop-filter: blur(8px)) {
  .kopf { background: rgba(255, 255, 255, .88); backdrop-filter: blur(10px); }
}
.kopf.istGescrollt {
  box-shadow: 0 6px 22px rgba(31, 35, 40, .12);
  border-bottom-color: var(--farbe-rand);
}

.kopf__innen {
  width: min(100% - 2 * var(--rand-innen), var(--breite));
  margin-inline: auto;
  min-height: var(--kopf-hoehe);
  display: flex;
  align-items: center;
  gap: .75rem;
  transition: min-height 250ms var(--e-power2);
}
.kopf.istGescrollt .kopf__innen { min-height: 3.75rem; }

.marke {
  display: block;
  margin-right: auto;
  padding: .35rem 0;
  text-decoration: none;
}
.marke picture { display: block; }
.marke__logo {
  width: auto;
  height: 3rem;
  transition: height 250ms var(--e-power2);
}
.kopf.istGescrollt .marke__logo { height: 2.6rem; }

.kopf__anruf,
.kopf__schalter {
  width: 2.75rem; height: 2.75rem;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid var(--farbe-rand);
  border-radius: var(--radius);
  background: #fff;
  color: var(--farbe-cyan-dunkel);
  cursor: pointer;
  transition: background-color 200ms var(--e-power2), border-color 200ms var(--e-power2), color 200ms;
}
.kopf__anruf:hover,
.kopf__schalter:hover { border-color: var(--farbe-cyan-dunkel); background: var(--farbe-flaeche); color: var(--farbe-cyan-dunkel); }
.kopf__anruf .symbol { width: 1.35rem; height: 1.35rem; }

.kopf__schalter { --strich: 2px; color: var(--farbe-anthrazit); }
.kopf__balken,
.kopf__balken::before,
.kopf__balken::after {
  display: block;
  width: 1.15rem;
  height: var(--strich);
  background: currentColor;
  transition: transform 220ms var(--e-power2), opacity 150ms linear;
}
.kopf__balken { position: relative; }
.kopf__balken::before, .kopf__balken::after {
  content: "";
  position: absolute;
  left: 0;
}
.kopf__balken::before { top: -.4rem; }
.kopf__balken::after  { top:  .4rem; }
[aria-expanded="true"] .kopf__balken { background: transparent; }
[aria-expanded="true"] .kopf__balken::before { transform: translateY(.4rem) rotate(45deg); }
[aria-expanded="true"] .kopf__balken::after  { transform: translateY(-.4rem) rotate(-45deg); }

.nav {
  display: none;
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  background: #fff;
  border-top: 1px solid var(--farbe-rand);
  box-shadow: 0 16px 30px rgba(31, 35, 40, .14);
  padding: .5rem var(--rand-innen) 1.25rem;
}
.nav.istOffen { display: block; animation: menue-auf 220ms var(--e-power2); }
@keyframes menue-auf {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}
.nav__liste { list-style: none; margin: 0 0 .9rem; padding: 0; }
.nav__link {
  display: block;
  padding: .8rem .2rem;
  color: var(--farbe-anthrazit);
  text-decoration: none;
  border-bottom: 1px solid var(--farbe-flaeche-2);
  font-family: var(--schrift-text);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0;
}
.nav__link:hover,
.nav__link.istAktiv { color: var(--farbe-cyan-dunkel); }

@media (min-width: 56em) {
  .kopf__anruf, .kopf__schalter { display: none; }
  .marke__logo { height: 3.6rem; }
  .kopf.istGescrollt .marke__logo { height: 2.9rem; }

  .nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    position: static;
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0;
  }
  .nav.istOffen { animation: none; }
  .nav__liste { display: flex; gap: .15rem; margin: 0; }
  .nav__link {
    position: relative;
    /* .6rem senkrecht bringt die anklickbare Fläche auf 44 px Höhe. */
    padding: .7rem .7rem;
    border: 0;
    font-size: .98rem;
  }
  /* Unterstrich wandert zum aktiven Punkt – nur transform, damit nichts umbricht. */
  .nav__link::after {
    content: "";
    position: absolute;
    left: .75rem; right: .75rem;
    bottom: .3rem;
    height: 3px;
    border-radius: 2px;
    background: var(--farbe-cyan);
    box-shadow: 0 0 8px rgba(0, 148, 186, .55);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 260ms var(--e-power2);
  }
  .nav__link:hover::after,
  .nav__link.istAktiv::after { transform: scaleX(1); }
}

/* --------------------------------------------------------------- Knöpfe */

.knopf {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 3rem;             /* Touch-Ziel mindestens 44 px */
  padding: .75rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: var(--farbe-cyan-dunkel);
  color: #fff;
  font-family: var(--schrift-text);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .01em;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 150ms var(--e-power1), background-color 200ms var(--e-power2),
              box-shadow 200ms var(--e-power2), border-color 200ms var(--e-power2), color 200ms;
}
/* Verschiebung bewusst unter 2 px: liest sich als Rückmeldung, nicht als Bewegung. */
.knopf:hover {
  color: #fff;
  background: var(--farbe-cyan-tief);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 113, 143, .32);
}
.knopf:active { transform: translateY(0); }
.knopf .symbol { transition: transform 200ms var(--e-power2); }
.knopf:hover .symbol--klein:last-child { transform: translateX(3px); }

/* Stahlglanz beim Überfahren */
.knopf--glanz::before {
  content: "";
  position: absolute;
  inset: 0 -40%;
  background: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, .38) 50%, transparent 60%);
  transform: translateX(-110%);
  pointer-events: none;
  z-index: -1;
}
.knopf--glanz:hover::before {
  transform: translateX(110%);
  transition: transform 650ms var(--e-power2);
}

.knopf--cyan { background: var(--farbe-cyan-dunkel); }

.knopf--rand {
  background: transparent;
  border-color: rgba(255, 255, 255, .45);
  color: #fff;
}
.knopf--rand:hover { border-color: #fff; background: rgba(255, 255, 255, .1); box-shadow: none; }

.knopf--rand-dunkel {
  background: transparent;
  border-color: var(--farbe-rand);
  color: var(--farbe-anthrazit);
}
.knopf--rand-dunkel:hover {
  color: var(--farbe-cyan-dunkel);
  border-color: var(--farbe-cyan-dunkel);
  background: #fff;
  box-shadow: none;
}

.knopf--klein { min-height: 2.75rem; padding: .5rem 1rem; font-size: .93rem; }

.knopf--telefon {
  background: transparent;
  border-color: var(--farbe-cyan-dunkel);
  color: var(--farbe-cyan-dunkel);
  width: 100%;
}
.knopf--telefon:hover { background: var(--farbe-cyan-dunkel); color: #fff; box-shadow: none; }
@media (min-width: 56em) { .knopf--telefon { width: auto; } }

/* ----------------------------------------------------------- Kopfbereich */

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: clamp(36rem, 88svh, 54rem);
  background: var(--farbe-anthrazit);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.hero__bild,
.hero__bild picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__bild { z-index: -2; }
.hero__foto {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  /* Langsamer Zoom, einmalig. Eigenes Urteil. */
  animation: hero-zoom 14s var(--e-power1) both;
}
@keyframes hero-zoom {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}
/* Verlauf für lesbare Schrift – unten dunkel, oben bleibt die leuchtende
   Deckenkante des Fotos sichtbar. */
.hero__bild::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(20, 20, 22, .96) 0%, rgba(20, 20, 22, .7) 42%, rgba(20, 20, 22, .2) 100%),
    linear-gradient(90deg, rgba(20, 20, 22, .6) 0%, rgba(20, 20, 22, 0) 70%);
}

/* Das Deckenraster aus dem Logo zeichnet sich als Lichtlinien über das Foto,
   danach leuchtet die untere Kante warm auf – wie eine Lichtvoute, die
   eingeschaltet wird. Eigenes Urteil. */
.hero__raster {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: clamp(1rem, 4vh, 2.5rem);
  width: min(58rem, 112%);
  transform: translateX(-50%);
  overflow: visible;
  pointer-events: none;
}
.hero__raster-linien path {
  fill: none;
  stroke: var(--farbe-cyan-hell);
  stroke-width: 1.6;
  stroke-linecap: round;
  opacity: .5;
  filter: drop-shadow(0 0 3px rgba(60, 196, 234, .8));
}
.hero__raster-licht {
  fill: none;
  stroke: var(--farbe-licht);
  stroke-width: 3;
  stroke-linecap: round;
  opacity: .9;
  filter: drop-shadow(0 0 6px rgba(255, 196, 107, .9)) drop-shadow(0 0 14px rgba(255, 196, 107, .6));
}
.js .hero__raster path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .hero__raster-linien path { animation: raster-zeichnen 1400ms var(--e-power2) forwards; }
.js .hero__raster-linien path:nth-child(1) { animation-delay: 200ms; }
.js .hero__raster-linien path:nth-child(2) { animation-delay: 320ms; }
.js .hero__raster-linien path:nth-child(3) { animation-delay: 440ms; }
.js .hero__raster-linien path:nth-child(n+4) { animation-delay: 600ms; }
.js .hero__raster-licht { animation: raster-zeichnen 1100ms var(--e-power2) 1500ms forwards; }
@keyframes raster-zeichnen { to { stroke-dashoffset: 0; } }

.hero__innen {
  position: relative;
  width: min(100% - 2 * var(--rand-innen), var(--breite));
  margin-inline: auto;
  padding: clamp(6rem, 18vh, 10rem) 0 clamp(2.5rem, 7vh, 4.5rem);
}

.hero__auszeichnung {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--schrift-text);
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #E6E9EC;
  margin-bottom: 1rem;
}
.hero__auszeichnung::before {
  content: "";
  width: 2.25rem; height: 3px;
  border-radius: 2px;
  background: var(--farbe-licht);
  box-shadow: 0 0 10px rgba(255, 196, 107, .8);
}

.hero__titel {
  max-width: 13ch;
  margin: 0 0 1.25rem;
  color: #fff;
  line-height: 1.05;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
}

.hero__vorspann {
  max-width: 36rem;
  font-size: clamp(1.05rem, .98rem + .45vw, 1.3rem);
  color: #DADFE4;
  margin-bottom: 1.75rem;
}

.hero__knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 2rem;
}

.plakette {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: 0;
  padding: .55rem 1rem .55rem .75rem;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .07);
  font-family: var(--schrift-text);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: #fff;
}
.plakette .symbol { color: var(--farbe-licht); width: 1.6rem; height: 1.6rem; }

/* ------------------------------------------------------------ Abschnitte */

.abschnitt { position: relative; padding: var(--abstand) 0; }
.abschnitt--grau { background: var(--farbe-flaeche); }
.abschnitt--dunkel { background: var(--farbe-anthrazit); color: #CBD0D5; }
.abschnitt--dunkel h2,
.abschnitt--dunkel h3 { color: #fff; }

.abschnitt__kopf {
  max-width: var(--breite-schmal);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.auszeichnung {
  display: block;
  font-family: var(--schrift-text);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--farbe-cyan-dunkel);
  margin-bottom: .5rem;
}
.abschnitt--dunkel .auszeichnung { color: var(--farbe-cyan-hell); }

.abschnitt__text { color: var(--farbe-text-hell); font-size: 1.08rem; }
.abschnitt--dunkel .abschnitt__text { color: #B3B9C0; }

/* ----------------------------------------------------------- Leistungen */

.leistungen {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}

.leistung {
  position: relative;
  background: #fff;
  border: 1px solid var(--farbe-rand);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem 1.5rem;
  overflow: hidden;
  transition: transform 250ms var(--e-power2), box-shadow 250ms var(--e-power2),
              border-color 250ms var(--e-power2);
}
/* Farbkante links – wächst bei der hervorgehobenen Karte über die ganze Höhe */
.leistung::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--leistung-farbe);
  transform: scaleY(.35);
  transform-origin: top center;
  transition: transform 320ms var(--e-power2);
}
.leistung--cyan      { --leistung-farbe: var(--farbe-cyan-dunkel);  --leistung-rgb: 0, 113, 143; }
.leistung--anthrazit { --leistung-farbe: var(--farbe-anthrazit);    --leistung-rgb: 29, 29, 31; }
.leistung--licht     { --leistung-farbe: var(--farbe-licht-dunkel); --leistung-rgb: 154, 91, 0; }

/* Hervorgehobene Karte. Mit Maus beim Überfahren. Auf Touch-Geräten gibt es
   kein Überfahren – dort setzt seite.js .istAktiv an die Karte, die gerade
   durch die Bildschirmmitte scrollt. Die Selektoren sind bewusst eine Stufe
   genauer als die Einblend-Regel, sonst setzte deren transform: none das
   Anheben außer Kraft. */
.leistungen > .leistung.istAktiv {
  transform: translateY(-4px);
  border-color: rgba(var(--leistung-rgb), .35);
  box-shadow: 0 16px 32px rgba(var(--leistung-rgb), .18);
}
.leistungen > .leistung.istAktiv::before { transform: scaleY(1); }
@media (hover: hover) {
  .leistungen > .leistung:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--leistung-rgb), .35);
    box-shadow: 0 16px 32px rgba(var(--leistung-rgb), .18);
  }
  .leistungen > .leistung:hover::before { transform: scaleY(1); }
}
/* Nach dem Einblenden (seite.js setzt .istFertig) gelten wieder die kurzen
   Übergänge der Karte selbst – ohne die Verzögerung aus der Staffelung. */
.js .leistungen.istDa.istFertig > .leistung {
  transition: transform 300ms var(--e-power2), box-shadow 300ms var(--e-power2),
              border-color 300ms var(--e-power2);
  transition-delay: 0ms;
}

.leistung__symbol {
  width: 3.4rem; height: 3.4rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(var(--leistung-rgb), .08);
  color: var(--leistung-farbe);
  margin-bottom: 1rem;
  transition: background-color 250ms var(--e-power2), color 250ms var(--e-power2);
}
.leistung__symbol .symbol { width: 2.1rem; height: 2.1rem; }
.leistungen > .leistung.istAktiv .leistung__symbol { background: var(--leistung-farbe); color: #fff; }
@media (hover: hover) {
  .leistungen > .leistung:hover .leistung__symbol { background: var(--leistung-farbe); color: #fff; }
}

.leistung__titel { margin-bottom: .35rem; }
.leistung__text { color: var(--farbe-text-hell); font-size: .97rem; margin-bottom: .9rem; }

.leistung__punkte { list-style: none; margin: 0; padding: 0; }
.leistung__punkte li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: .4rem;
  font-size: .95rem;
  line-height: 1.5;
}
.leistung__punkte li::before {
  content: "";
  position: absolute;
  left: 0; top: .5em;
  width: .6rem; height: .6rem;
  background: var(--leistung-farbe, var(--farbe-cyan));
  clip-path: polygon(0 0, 100% 0, 65% 100%, 0 100%);
}

/* Die Symbole zeichnen sich, nachdem die jeweilige Karte eingeblendet ist. */
.leistungen > :nth-child(1)   { --zeichnen-verzug: 260ms; }
.leistungen > :nth-child(2)   { --zeichnen-verzug: 320ms; }
.leistungen > :nth-child(3)   { --zeichnen-verzug: 380ms; }
.leistungen > :nth-child(4)   { --zeichnen-verzug: 440ms; }
.leistungen > :nth-child(5)   { --zeichnen-verzug: 500ms; }
.leistungen > :nth-child(6)   { --zeichnen-verzug: 560ms; }
.leistungen > :nth-child(7)   { --zeichnen-verzug: 620ms; }
.leistungen > :nth-child(n+8) { --zeichnen-verzug: 680ms; }

/* Karte am Ende: führt zur Anfrage und füllt das Raster auf. */
.leistung--aufruf {
  --leistung-farbe: var(--farbe-cyan);
  --leistung-rgb: 0, 148, 186;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  background: var(--farbe-anthrazit);
  border-color: var(--farbe-anthrazit);
  color: #CBD0D5;
  text-decoration: none;
}
.leistung--aufruf .leistung__titel {
  font-family: var(--schrift-titel);
  font-size: clamp(1.2rem, 1.1rem + .5vw, 1.45rem);
  line-height: 1.12;
  color: #fff;
}
.leistung--aufruf .leistung__text { color: #B3B9C0; margin: 0; }
.leistung__weiter {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: auto;
  padding-top: .75rem;
  font-weight: 700;
  color: var(--farbe-cyan-hell);
}
.leistung--aufruf:hover { color: #CBD0D5; }
.leistung--aufruf:hover .leistung__weiter .symbol { transform: translateX(3px); }
.leistung__weiter .symbol { transition: transform 200ms var(--e-power2); }

@media (min-width: 36em) { .leistungen { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .leistungen { grid-template-columns: repeat(3, 1fr); } }

/* --------------------------------------------------------------- Ablauf */

.ablauf { overflow: hidden; isolation: isolate; }

/* Ein leuchtendes Deckenfeld als ruhige Textur hinter dem Text */
.ablauf__textur {
  position: absolute;
  right: -10%;
  top: 50%;
  width: min(48rem, 75%);
  transform: translateY(-50%);
  z-index: -1;
  opacity: .28;
  -webkit-mask-image: radial-gradient(closest-side, #000 50%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 50%, transparent 100%);
  pointer-events: none;
}
.ablauf__textur-bild { width: 100%; }

/* Auf schmalen Bildschirmen liegt das hochformatige Deckenfeld schräg hinter
   den Schritten und wirkt wie ein Fleck – dort nur die dunkle Fläche. */
@media (max-width: 55.99em) {
  .ablauf__textur { display: none; }
}

.ablauf__schritte {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

/* Eine Lichtlinie verbindet die Schritte – senkrecht auf dem Handy, waagrecht
   ab Tabletbreite. Ein Lichtpunkt wandert einmal an ihr entlang. Eigenes Urteil. */
.ablauf__schritte::before {
  content: "";
  position: absolute;
  left: calc(1.7rem - 1.5px);
  top: 1.7rem;
  bottom: 1.7rem;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--farbe-cyan-hell), var(--farbe-licht));
  transform-origin: top center;
}
.ablauf__schritte::after {
  content: "";
  position: absolute;
  left: calc(1.7rem - 10px);
  top: 1.7rem;
  width: 20px;
  height: calc(100% - 3.4rem);
  background: radial-gradient(circle at 50% 0, #fff 0 3px, var(--farbe-licht) 6px, rgba(255, 196, 107, 0) 10px) no-repeat;
  opacity: 0;
  pointer-events: none;
}
.js .ablauf__schritte::before { transform: scaleY(0); }
.js .ablauf__schritte.istDa::before {
  transform: scaleY(1);
  transition: transform 1600ms var(--e-power2) 200ms;
}
.js .ablauf__schritte.istDa::after { animation: licht-senkrecht 1600ms var(--e-power2) 200ms both; }
@keyframes licht-senkrecht {
  0%   { opacity: 0; transform: translateY(0); }
  8%   { opacity: 1; }
  88%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(100%); }
}

.schritt {
  position: relative;
  z-index: 1;
  padding-left: 4.9rem;
  min-height: 3.4rem;
}
.schritt__kopf {
  position: absolute;
  left: 0; top: 0;
}
.schritt__symbol {
  width: 3.4rem; height: 3.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--farbe-anthrazit-2);
  border: 2px solid var(--farbe-cyan-hell);
  color: #fff;
  /* Der Ring in Hintergrundfarbe unterbricht die Naht hinter dem Symbol. */
  box-shadow: 0 0 0 6px var(--farbe-anthrazit);
}
.schritt__symbol .symbol { width: 1.8rem; height: 1.8rem; }
.schritt__nummer {
  position: absolute;
  right: -.45rem;
  bottom: -.3rem;
  padding: 0 .3rem;
  border-radius: 3px;
  background: var(--farbe-cyan-dunkel);
  color: #fff;
  font-family: var(--schrift-text);
  font-weight: 700;
  font-size: .78rem;
  line-height: 1.5;
}
.schritt__titel { font-size: 1.4rem; margin: .3rem 0 .35rem; }
.schritt__text { color: #B3B9C0; font-size: .98rem; }

/* Die Schritte erscheinen dort, wo der Funke gerade vorbeikommt. */
.js .ablauf__schritte .schritt { opacity: 0; transform: translateY(12px); }
.js .ablauf__schritte.istDa .schritt {
  opacity: 1;
  transform: none;
  transition: opacity 450ms var(--e-back), transform 450ms var(--e-back);
}
.js .ablauf__schritte.istDa .schritt:nth-child(1) { transition-delay: 150ms;  --zeichnen-verzug: 300ms; }
.js .ablauf__schritte.istDa .schritt:nth-child(2) { transition-delay: 550ms;  --zeichnen-verzug: 700ms; }
.js .ablauf__schritte.istDa .schritt:nth-child(3) { transition-delay: 950ms;  --zeichnen-verzug: 1100ms; }
.js .ablauf__schritte.istDa .schritt:nth-child(4) { transition-delay: 1350ms; --zeichnen-verzug: 1500ms; }
.keine-bewegung .ablauf__schritte .schritt,
.js:not(.js-bereit) .ablauf__schritte .schritt { opacity: 1 !important; transform: none !important; }
.keine-bewegung .ablauf__schritte::before { transform: none !important; }
.keine-bewegung .ablauf__schritte::after { display: none; }

@media (min-width: 56em) {
  .ablauf__schritte { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .ablauf__schritte::before {
    left: 1.7rem; right: 1.7rem;
    top: calc(1.7rem - 1.5px);
    bottom: auto;
    width: auto;
    height: 3px;
    background: linear-gradient(90deg, var(--farbe-cyan-hell), var(--farbe-licht));
    transform-origin: left center;
  }
  .ablauf__schritte::after {
    left: 1.7rem;
    top: calc(1.7rem - 10px);
    width: calc(100% - 3.4rem);
    height: 20px;
    background: radial-gradient(circle at 0 50%, #fff 0 3px, var(--farbe-licht) 6px, rgba(255, 196, 107, 0) 10px) no-repeat;
  }
  .js .ablauf__schritte::before { transform: scaleX(0); }
  .js .ablauf__schritte.istDa::before { transform: scaleX(1); }
  .js .ablauf__schritte.istDa::after { animation-name: licht-waagrecht; }
  .schritt { padding-left: 0; padding-top: 4.9rem; }
}
@keyframes licht-waagrecht {
  0%   { opacity: 0; transform: translateX(0); }
  8%   { opacity: 1; }
  88%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(100%); }
}

/* ------------------------------------------------------------- Über uns */

.ueber {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  align-items: start;
}

/* Kennzahlen, die beim Hineinscrollen hochzählen. tabular-nums hält die
   Ziffern gleich breit, sonst zappelt der Text daneben beim Zählen. */
.kennzahlen {
  list-style: none;
  margin: 1.8rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.kennzahl {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: 1rem 1.1rem 1.05rem;
  border-left: 4px solid var(--farbe-cyan);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--farbe-flaeche);
}
.kennzahl + .kennzahl { border-left-color: var(--farbe-licht); }
.kennzahl__zeile {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .35rem;
}
.kennzahl__vor {
  font-size: .95rem;
  font-weight: 700;
  color: var(--farbe-text-hell);
}
.kennzahl__wert {
  font-family: var(--schrift-titel);
  font-size: clamp(2.2rem, 7vw, 2.9rem);
  line-height: 1;
  color: var(--farbe-cyan-tief);
  font-variant-numeric: tabular-nums;
}
.kennzahl__text {
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--farbe-anthrazit);
}

.ueber__punkte { list-style: none; margin: 1.6rem 0 0; padding: 0; }
.ueber__punkte li {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--farbe-flaeche-2);
  font-weight: 700;
}
.ueber__punkte li:last-child { border-bottom: 0; }
.ueber__punkte .symbol { color: var(--farbe-cyan-dunkel); width: 1.45rem; height: 1.45rem; margin-top: .1rem; }
.ueber__punkte li:nth-child(1) { --zeichnen-verzug: 350ms; }
.ueber__punkte li:nth-child(2) { --zeichnen-verzug: 480ms; }
.ueber__punkte li:nth-child(3) { --zeichnen-verzug: 610ms; }
.ueber__punkte li:nth-child(4) { --zeichnen-verzug: 740ms; }

.ueber__bilder {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}
.ueber__bild {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--farbe-flaeche-2);
  box-shadow: var(--schatten);
}
.ueber__bild picture { height: 100%; }
.ueber__bild img { width: 100%; height: 100%; object-fit: cover; }
.ueber__bild--fertig img { object-position: 50% 20%; }
.ueber__bild figcaption {
  position: absolute;
  left: .6rem;
  bottom: .6rem;
  padding: .25rem .6rem;
  border-radius: 3px;
  background: rgba(29, 29, 31, .82);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
}

/* Visitenkarte im Kleinen: wer hier angekommen ist, soll direkt anrufen können. */
.direkt-karte {
  grid-column: 1 / -1;
  padding: 1.3rem 1.3rem 1.2rem;
  border-radius: var(--radius);
  border-top: 4px solid var(--farbe-cyan);
  background: var(--farbe-anthrazit);
  color: #CBD0D5;
}
.direkt-karte__titel {
  font-family: var(--schrift-titel);
  font-size: 1.35rem;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 .45rem;
}
.direkt-karte__text { font-size: .94rem; color: #B3B9C0; margin-bottom: .9rem; }
.direkt-karte__text:empty { display: none; }
.direkt-karte__telefon {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.75rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--farbe-cyan-hell);
  text-decoration: none;
}
.direkt-karte__telefon:hover { color: #fff; }

@media (min-width: 56em) {
  .ueber { grid-template-columns: 1.05fr 1fr; }
}

/* ------------------------------------------------------------- Projekte */

.filter {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: -1rem 0 1.75rem;
}
.filter__knopf {
  min-height: 2.75rem;
  padding: .4rem 1.1rem;
  border: 1px solid var(--farbe-rand);
  border-radius: 999px;
  background: #fff;
  color: var(--farbe-anthrazit);
  font-family: var(--schrift-text);
  font-weight: 700;
  font-size: .93rem;
  cursor: pointer;
  transition: background-color 200ms var(--e-power2), color 200ms, border-color 200ms;
}
.filter__knopf:hover { border-color: var(--farbe-cyan-dunkel); color: var(--farbe-cyan-dunkel); }
.filter__knopf[aria-pressed="true"] { background: var(--farbe-cyan-dunkel); border-color: var(--farbe-cyan-dunkel); color: #fff; }

.galerie {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(2, 1fr);
}
.galerie__eintrag.istVerborgen { display: none; }
/* Beim Filtern gilt die kurze Überblendung, nicht mehr die Staffelung vom ersten Einblenden. */
.js .galerie.istDa.istGefiltert > .galerie__eintrag {
  transition: opacity 220ms var(--e-power2), transform 220ms var(--e-power2);
  transition-delay: 0ms;
}
.js .galerie.istDa.istGefiltert > .galerie__eintrag.istAusblendend { opacity: 0; transform: scale(.94); }

.galerie__link {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--farbe-flaeche-2);
  color: #fff;
  text-decoration: none;
}
.galerie__link picture,
.galerie__bild { width: 100%; height: 100%; }
.galerie__bild { object-fit: cover; transition: transform 550ms var(--e-power2); }
.galerie__link:hover .galerie__bild { transform: scale(1.05); }
.galerie__link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(20, 20, 22, .8), rgba(20, 20, 22, 0) 55%);
}
.galerie__kategorie {
  position: absolute;
  left: .75rem;
  bottom: .55rem;
  z-index: 1;
  font-family: var(--schrift-text);
  font-weight: 700;
  font-size: .86rem;
}
.galerie__lupe {
  position: absolute;
  right: .6rem;
  top: .6rem;
  z-index: 1;
  width: 2.5rem; height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(20, 23, 28, .6);
  opacity: 0;
  transform: scale(.8);
  transition: opacity 200ms var(--e-power2), transform 250ms var(--e-back);
}
.galerie__lupe .symbol { width: 1.3rem; height: 1.3rem; }
.galerie__link:hover .galerie__lupe,
.galerie__link:focus-visible .galerie__lupe { opacity: 1; transform: none; }

@media (min-width: 40em) { .galerie { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
@media (min-width: 64em) { .galerie { grid-template-columns: repeat(4, 1fr); } }

/* Lightbox – das native <dialog> fängt den Fokus und schließt mit Esc. */
.lightbox {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(14, 16, 20, .95);
  color: #fff;
  overflow: hidden;
}
.lightbox[open] {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  animation: lightbox-auf 250ms var(--e-power2);
}
.lightbox::backdrop { background: rgba(14, 16, 20, .6); }
@keyframes lightbox-auf { from { opacity: 0; } to { opacity: 1; } }

.lightbox__figur {
  grid-column: 2;
  margin: 0;
  display: grid;
  justify-items: center;
  gap: .75rem;
  padding: 3.75rem .25rem 1rem;
}
.lightbox__bild {
  max-width: 100%;
  max-height: calc(100svh - 9rem);
  width: auto;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.lightbox__bild.istNeu { animation: bild-auf 320ms var(--e-back); }
@keyframes bild-auf {
  from { opacity: 0; transform: scale(.93); }
  to   { opacity: 1; transform: none; }
}
.lightbox__text { max-width: 40rem; text-align: center; font-size: .95rem; color: #CBD0D5; }

.lightbox__knopf {
  width: 3rem; height: 3rem;
  display: grid;
  place-items: center;
  margin: .5rem;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
  transition: background-color 200ms, border-color 200ms;
}
.lightbox__knopf:hover { background: rgba(255, 255, 255, .18); border-color: #fff; }
.lightbox__knopf .symbol { width: 1.4rem; height: 1.4rem; }
.lightbox__knopf--schliessen { position: absolute; top: .5rem; right: .5rem; }
.lightbox__knopf--zurueck { grid-column: 1; }
.lightbox__knopf--weiter { grid-column: 3; }

@media (max-width: 39.99em) {
  .lightbox[open] { grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .lightbox__figur { grid-column: 1 / -1; grid-row: 1; }
  .lightbox__knopf--zurueck { grid-column: 1; grid-row: 2; justify-self: end; }
  .lightbox__knopf--weiter { grid-column: 2; grid-row: 2; justify-self: start; }
  .lightbox__bild { max-height: calc(100svh - 12rem); }
}

.projekte__mehr { margin: 1.75rem 0 0; text-align: center; }
/* Die Vorschau auf der Startseite hat 6 Fotos – im Dreierraster gehen sie glatt auf. */
@media (min-width: 64em) { #projekte .galerie { grid-template-columns: repeat(3, 1fr); } }

/* Kopf der Unterseiten (Projekte) */
.seitenkopf { padding: clamp(2.75rem, 7vw, 4.5rem) 0 clamp(2rem, 4vw, 2.75rem); }
.seitenkopf h1 { font-size: clamp(2.3rem, 1.6rem + 3vw, 3.6rem); margin-bottom: .25em; }
.seitenkopf .abschnitt__text { max-width: var(--breite-schmal); }
.abschnitt--anschluss { padding-top: clamp(2rem, 4vw, 3rem); }
.hinweis-leer {
  margin: 0;
  padding: 1.25rem 1.4rem;
  border-left: 4px solid var(--farbe-cyan);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: #fff;
  font-weight: 700;
}

/* Aufruf am Ende der Projektseite */
.aufruf__innen {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius);
  border: 1px solid var(--farbe-rand);
  box-shadow: var(--schatten);
}
.aufruf__innen h2 { margin-bottom: .3em; }
.aufruf__knoepfe { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (min-width: 56em) { .aufruf__innen { grid-template-columns: 1fr auto; } }

/* -------------------------------------------------------------- Kontakt */

.kontakt {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: 1fr;
  align-items: start;
}
.kontakt__formular { min-width: 0; }

.formular {
  display: grid;
  gap: 1.15rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: #fff;
  border: 1px solid var(--farbe-rand);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
}

.feld { display: grid; gap: .35rem; min-width: 0; }
.feld > label,
.feld__label { font-weight: 700; font-size: .95rem; }
.feld__pflicht { color: var(--farbe-rot); }
.feld__hinweis { font-size: .86rem; color: var(--farbe-text-hell); font-weight: 400; }
.feld__hinweis--breit { grid-column: 1 / -1; margin: -.45rem 0 0; }
/* #9B2A17 auf Weiß: 8:1 */
.feld__fehler { font-size: .88rem; font-weight: 700; color: var(--farbe-rot-dunkel); }

/* Feldränder mit 3:1 Kontrast zum Weiß (WCAG 1.4.11) – ein zartes Grau
   wäre schöner, aber für manche Augen nicht als Eingabefeld erkennbar. */
.feld input[type="text"],
.feld input[type="email"],
.feld input[type="tel"],
.feld select,
.feld textarea {
  width: 100%;
  min-height: 3rem;
  padding: .7rem .85rem;
  border: 1px solid #8A94A0;
  border-radius: var(--radius);
  background: #fff;
  color: var(--farbe-text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 180ms var(--e-power2), box-shadow 180ms var(--e-power2);
}
.feld textarea { min-height: 8rem; resize: vertical; line-height: 1.6; }
.feld input:focus,
.feld select:focus,
.feld textarea:focus {
  outline: none;
  border-color: var(--farbe-cyan-dunkel);
  box-shadow: 0 0 0 3px rgba(0, 113, 143, .25);
}
.feld [aria-invalid="true"] {
  border-color: var(--farbe-rot);
  box-shadow: 0 0 0 3px rgba(192, 52, 29, .15);
}

.feld__paar { display: grid; gap: 1.15rem; grid-template-columns: 1fr; }
@media (min-width: 40em) { .feld__paar { grid-template-columns: 1fr 1fr; } }

/* Foto-Ablage. Das echte Dateifeld liegt unsichtbar über der ganzen Fläche –
   Tastatur, Screenreader und Ziehen & Ablegen bleiben damit die des Browsers. */
.ablage {
  position: relative;
  display: flex;
  align-items: center;
  gap: .9rem;
  min-height: 5.25rem;
  padding: 1rem 1.2rem;
  border: 2px dashed #8A94A0;
  border-radius: var(--radius);
  background: var(--farbe-flaeche);
  transition: border-color 200ms var(--e-power2), background-color 200ms var(--e-power2);
}
.ablage__eingabe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.ablage__symbol {
  width: 3rem; height: 3rem;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: #fff;
  color: var(--farbe-cyan-dunkel);
  box-shadow: var(--schatten);
  transition: transform 250ms var(--e-back);
}
.ablage__text { font-size: .98rem; }
.ablage__text strong { color: var(--farbe-cyan-dunkel); }
.ablage:hover,
.ablage.istBereit { border-color: var(--farbe-cyan-dunkel); background: #E8F4F8; }
.ablage:hover .ablage__symbol,
.ablage.istBereit .ablage__symbol { transform: scale(1.08) rotate(-6deg); }
.ablage:focus-within { outline: 3px solid var(--farbe-cyan-dunkel); outline-offset: 3px; }

.ablage__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.ablage__liste:empty { display: none; }
.ablage__datei {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .35rem .5rem;
  border: 1px solid var(--farbe-rand);
  border-radius: var(--radius);
  background: #fff;
  font-size: .9rem;
  word-break: break-word;
  animation: datei-rein 280ms var(--e-back) both;
}
.ablage__datei img { width: 48px; height: 48px; object-fit: cover; border-radius: 3px; flex: none; }
.ablage__datei.istFehler { border-color: var(--farbe-rot); color: var(--farbe-rot-dunkel); font-weight: 700; }
@keyframes datei-rein {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

.feld--zustimmung { grid-template-columns: auto 1fr; align-items: start; gap: .7rem; }
/* 1.55rem ≈ 25 px: über der Mindestgröße für Bedienelemente (24 × 24 px, WCAG 2.5.8) */
.feld--zustimmung input[type="checkbox"] {
  width: 1.55rem; height: 1.55rem;
  margin-top: .1rem;
  accent-color: var(--farbe-cyan-dunkel);
}
.feld--zustimmung label { font-weight: 400; font-size: .93rem; }
.feld--zustimmung .feld__fehler { display: block; margin-top: .3rem; }

.formular__absenden { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.knopf[disabled] { opacity: .7; cursor: progress; transform: none; box-shadow: none; }

/* Meldungen */
.meldung {
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border-left: 4px solid;
  margin-bottom: 1.5rem;
  animation: meldung-rein 350ms var(--e-power2);
}
.meldung:focus { outline: none; box-shadow: 0 0 0 3px rgba(0, 113, 143, .25); }
.meldung--gut     { background: #EAF5EC; border-color: #2E7D45; color: #1D5230; }
.meldung--fehler  { background: #FCEDE8; border-color: var(--farbe-rot); color: #7E2408; }
.meldung--hinweis { background: #E8F4F8; border-color: var(--farbe-cyan-dunkel); color: var(--farbe-text); }
.meldung h2,
.meldung h3 { font-size: 1.3rem; margin-bottom: .3rem; color: inherit; }
.meldung ul { margin: .5rem 0 0; padding-left: 1.2rem; }
.meldung a { color: inherit; font-weight: 700; }
@keyframes meldung-rein {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

.kontakt__seite { display: grid; gap: 1.25rem; min-width: 0; }
.kontakt__block {
  background: #fff;
  border: 1px solid var(--farbe-rand);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
}
.kontakt__block h3 { margin-bottom: .55rem; }
.kontakt__block > p { font-size: .96rem; color: var(--farbe-text-hell); }

.kontakt__direkt { display: grid; gap: .55rem; margin-top: 1rem; }
.kontakt__direkt a {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: 0;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--farbe-anthrazit);
  text-decoration: none;
  word-break: break-word;
}
.kontakt__direkt a:hover { color: var(--farbe-cyan-dunkel); }
.kontakt__direkt .symbol,
.kontakt__adresse .symbol,
.kontakt__zeiten .symbol { color: var(--farbe-cyan-dunkel); width: 1.3rem; height: 1.3rem; }

.kontakt__adresse,
.kontakt__zeiten {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  margin: 0 0 1rem;
  font-style: normal;
}
.kontakt__adresse .symbol,
.kontakt__zeiten .symbol { margin-top: .2rem; }

@media (min-width: 56em) { .kontakt { grid-template-columns: 1.35fr 1fr; } }

/* Karte: Platzhalter mit dem Deckenraster, bis jemand der Karte von Google zustimmt */
.karte {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--farbe-rand);
  border-radius: var(--radius);
  background: var(--farbe-flaeche);
}
.karte iframe {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  animation: karte-rein 400ms var(--e-power2);
}
.karte.istGeladen .karte__platzhalter { display: none; }
@keyframes karte-rein { from { opacity: 0; } to { opacity: 1; } }
.karte__skizze {
  display: grid;
  place-items: center;
  gap: .35rem;
  min-height: 9.5rem;
  padding: 1.25rem;
  text-align: center;
  background:
    linear-gradient(90deg, rgba(0, 148, 186, .12) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(0deg, rgba(0, 148, 186, .12) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--farbe-flaeche);
}
.karte__skizze .symbol { width: 2.4rem; height: 2.4rem; color: var(--farbe-cyan-dunkel); }
.karte__ort { margin: 0; font-weight: 700; }
.karte__hinweis { padding: .9rem 1rem 1rem; border-top: 1px solid var(--farbe-rand); background: #fff; }
.karte__hinweis p { font-size: .86rem; color: var(--farbe-text-hell); margin-bottom: .7rem; }
.karte__knoepfe { display: flex; flex-wrap: wrap; gap: .5rem; }
.karte .knopf--rand { border-color: #8A94A0; color: var(--farbe-anthrazit); }
.karte .knopf--rand:hover { border-color: var(--farbe-cyan-dunkel); color: var(--farbe-cyan-dunkel); background: #fff; }

/* ------------------------------------------------------ Einwilligungsbanner */

.einwilligung {
  position: fixed;
  left: var(--rand-innen);
  right: var(--rand-innen);
  bottom: 1rem;
  z-index: 200;
  max-width: 34rem;
  margin-left: auto;
  padding: 1.2rem 1.3rem 1.3rem;
  border-top: 4px solid var(--farbe-cyan);
  border-radius: var(--radius);
  background: var(--farbe-anthrazit);
  color: #CBD0D5;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}
.einwilligung:not([hidden]) { animation: banner-rein 420ms var(--e-back); }
@keyframes banner-rein {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
.einwilligung__titel { font-size: 1.35rem; color: #fff; margin-bottom: .45rem; }
.einwilligung__text { font-size: .9rem; margin-bottom: 1rem; }
.einwilligung__text a { color: var(--farbe-cyan-hell); }
.einwilligung__knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
/* Beide Knöpfe gleich groß und gleich auffällig – Ablehnen ist nicht schwerer als Zustimmen. */
.knopf--einwilligung { background: #fff; color: var(--farbe-anthrazit); font-size: 1rem; }
.knopf--einwilligung:hover { background: var(--farbe-flaeche-2); color: var(--farbe-anthrazit); box-shadow: none; }

/* ------------------------------------------------------------- Fußzeile */

.fuss {
  position: relative;
  background: var(--farbe-anthrazit);
  color: #B3B9C0;
  padding: clamp(3rem, 6vw, 4.5rem) 0 0;
  font-size: .95rem;
}
/* Cyan aus dem Logo als leuchtende Kante */
.fuss::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  background: var(--farbe-cyan);
  box-shadow: 0 0 14px rgba(0, 148, 186, .6);
}
.fuss__innen {
  width: min(100% - 2 * var(--rand-innen), var(--breite));
  margin-inline: auto;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  padding-bottom: 2.5rem;
}
/* Das Logo hat schwarze Konturen – auf Anthrazit stünde es unsichtbar. Deshalb
   auf einer hellen Karte, wie auf der Visitenkarte. */
.fuss__logo {
  display: inline-block;
  margin: 0 0 1rem;
  padding: .6rem .8rem;
  border-radius: var(--radius);
  background: #fff;
}
.fuss__logo img { width: auto; height: 4.2rem; }
.fuss__claim { color: #E6E9EC; max-width: 22rem; }
.fuss__titel {
  font-family: var(--schrift-text);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8F969E;   /* 5.6:1 auf Anthrazit */
  margin: 0 0 .8rem;
}
.fuss__kontakt { font-style: normal; line-height: 1.85; }
.fuss a { color: #E6E9EC; text-decoration: none; }
.fuss a:hover { color: #fff; text-decoration: underline; }
.fuss__liste { list-style: none; margin: 0; padding: 0; line-height: 2.1; }
.fuss__knopf {
  padding: 0;
  border: 0;
  background: none;
  color: #E6E9EC;
  cursor: pointer;
  text-align: left;
}
.fuss__knopf:hover { color: #fff; text-decoration: underline; }
.fuss__zeile {
  border-top: 1px solid #34363A;
  padding: 1.25rem 0;
  font-size: .85rem;
  color: #8F969E;
}
.fuss__zeile-innen {
  width: min(100% - 2 * var(--rand-innen), var(--breite));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .4rem 2rem;
}
.fuss__zeile p { margin: 0; }
.fuss__zeile a { color: #C9CED3; text-underline-offset: .18em; }
.fuss__zeile a:hover { color: #fff; }
@media (min-width: 40em) { .fuss__innen { grid-template-columns: 1.4fr 1fr 1fr; } }

/* ----------------------------------------------------- Rechtstexte-Seiten */

.rechtstext { padding: clamp(3rem, 7vw, 5rem) 0 var(--abstand); }
.rechtstext .bahn { max-width: var(--breite-schmal); }
.rechtstext h1 { font-size: clamp(2.3rem, 1.6rem + 3vw, 3.4rem); margin-bottom: .2em; }
.rechtstext h2 { font-size: 1.45rem; margin-top: 2.2rem; }
.rechtstext h3 { font-size: 1.2rem; margin-top: 1.5rem; }
.rechtstext ul { padding-left: 1.2rem; }
.rechtstext li { margin-bottom: .4rem; }
.rechtstext dl { margin: 0 0 1.1em; }
.rechtstext dt { font-weight: 700; margin-top: .8rem; }
.rechtstext dd { margin: 0 0 .3rem; }
.rechtstext .fuge { margin-bottom: 2rem; }

/* --------------------------------------------------------- Fehlerseite */

.fehler { text-align: center; padding: clamp(4rem, 12vw, 8rem) 0; }
.fehler__zahl {
  margin: 0;
  font-family: var(--schrift-titel);
  font-size: clamp(5rem, 18vw, 10rem);
  font-weight: 400;
  line-height: 1;
  color: var(--farbe-flaeche-2);
}

/* =================================================================== Druck */

@media print {
  .kopf, .fuss, .testbanner, .sprung, .einwilligung, .hero__raster, .karte__hinweis { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a { color: #000; text-decoration: underline; }
  .js [data-reveal],
  .js [data-stagger] > * { opacity: 1 !important; transform: none !important; }
}

/* Größere Tippflächen für die Links im Fuß (WCAG 2.5.8: mindestens 24 × 24 px) */
.fuss__liste a,
.fuss__knopf,
.fuss__kontakt a { display: inline-block; padding: .2rem 0; min-height: 1.6rem; }