/* ==========================================================================
   FSL Ladenbau — Stil
   Palette: Logo führt (#C3006B → oklch 358) + Eiche/Messing als Materialakzent
   Grammatik: Werkbank-Editorial — Eichenlinie als durchgehendes Leitmotiv
   ========================================================================== */

/* ---------- Schriften (lokal, kein CDN) ---------- */
@font-face {
  font-family: "Young Serif";
  src: url("../fonts/young-serif-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --hue: 358; /* Marke aus dem Logo */
  --holz: 73; /* Material: Eiche / Messing */

  --grund: oklch(0.145 0.022 var(--hue));
  --grund-tief: oklch(0.108 0.02 var(--hue));
  --flaeche: oklch(0.205 0.028 var(--hue));
  --flaeche-2: oklch(0.255 0.03 var(--hue));
  --linie: oklch(0.32 0.03 var(--hue));
  --linie-zart: oklch(0.26 0.026 var(--hue));
  --text: oklch(0.97 0.008 var(--hue));
  --leise: oklch(0.745 0.016 var(--hue));
  --marke: oklch(0.63 0.21 var(--hue));
  --marke-knopf: oklch(0.575 0.21 var(--hue)); /* weisse Schrift darauf = 4,9:1 */
  --marke-tief: oklch(0.48 0.18 var(--hue));
  --eiche: oklch(0.73 0.1 var(--holz));
  --eiche-tief: oklch(0.43 0.07 var(--holz));

  /* themenfeste Bühnenfarben (GESETZ Kap. 11) — nie im Hell-Thema überschreiben */
  --kalk-fest: #f6f2ef;
  --meta-fest: #cfc5be;

  --seite: min(1320px, 100% - 2.5rem);
  --eng: min(760px, 100% - 2.5rem);
  --r: 14px;
  --tempo: 0.55s cubic-bezier(0.22, 0.9, 0.3, 1);
}

[data-thema="hell"] {
  --grund: oklch(0.985 0.004 var(--hue));
  --grund-tief: oklch(0.955 0.006 var(--hue));
  --flaeche: oklch(0.945 0.008 var(--hue));
  --flaeche-2: oklch(0.9 0.01 var(--hue));
  --linie: oklch(0.82 0.014 var(--hue));
  --linie-zart: oklch(0.89 0.01 var(--hue));
  --text: oklch(0.205 0.02 var(--hue));
  --leise: oklch(0.43 0.02 var(--hue));
  --marke: oklch(0.47 0.2 var(--hue));
  --marke-knopf: oklch(0.47 0.2 var(--hue));
  --marke-tief: oklch(0.38 0.17 var(--hue));
  --eiche: oklch(0.48 0.09 var(--holz));
  --eiche-tief: oklch(0.7 0.08 var(--holz));
}

/* ---------- Basis ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family:
    "Geist",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    system-ui,
    sans-serif;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  transition:
    background-color 0.35s ease,
    color 0.35s ease;
}
img,
video,
svg {
  max-width: 100%;
  display: block;
}
img {
  height: auto;
}
a {
  color: inherit;
}
h1,
h2,
h3,
h4 {
  font-family: "Young Serif", Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0;
  overflow-wrap: break-word;
}
p {
  margin: 0 0 1em;
}
.huelle {
  width: var(--seite);
  margin-inline: auto;
}
.eng {
  width: var(--eng);
  margin-inline: auto;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
:focus-visible {
  outline: 3px solid var(--eiche);
  outline-offset: 3px;
  border-radius: 4px;
}

.eyebrow {
  font-size: 0.775rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--eiche);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--eiche);
  flex: none;
}
.eyebrow--fest {
  color: var(--meta-fest);
}
.eyebrow--fest::before {
  background: var(--meta-fest);
}

.akzent {
  color: var(--marke);
}
.lead {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  color: var(--leise);
  line-height: 1.6;
}

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  background: var(--marke-knopf);
  color: #fff;
  transition:
    transform var(--tempo),
    box-shadow var(--tempo),
    background-color var(--tempo);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--marke) 45%, transparent);
}
.knopf:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px -12px
    color-mix(in oklab, var(--marke) 70%, transparent);
}
.knopf--linie {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--linie);
}
.knopf--linie:hover {
  box-shadow: inset 0 0 0 1px var(--eiche);
  background: color-mix(in oklab, var(--eiche) 10%, transparent);
}
.knopf--fest {
  background: transparent;
  color: var(--kalk-fest);
  box-shadow: inset 0 0 0 1px
    color-mix(in srgb, var(--kalk-fest) 45%, transparent);
}
.knopf--fest:hover {
  background: color-mix(in srgb, var(--kalk-fest) 14%, transparent);
  color: var(--kalk-fest);
}
.knopf__pfeil {
  transition: transform var(--tempo);
}
.knopf:hover .knopf__pfeil {
  transform: translateX(4px);
}

/* ---------- Kopfleiste ---------- */
.leiste {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.05rem clamp(1.25rem, 3vw, 2.5rem);
  transition:
    background-color 0.35s ease,
    box-shadow 0.35s ease,
    padding 0.35s ease;
}
.leiste[data-gescrollt="ja"] {
  background: color-mix(in oklab, var(--grund) 88%, transparent);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--linie-zart);
  padding-block: 0.7rem;
}
.leiste__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex: none;
}
.leiste__logo svg {
  height: 38px;
  width: auto;
}
.leiste__nav {
  display: flex;
  gap: 1.9rem;
  margin-left: auto;
  align-items: center;
}
.leiste__nav a {
  text-decoration: none;
  font-size: 0.925rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--kalk-fest);
  opacity: 0.86;
  position: relative;
  padding: 0.25rem 0;
}
.leiste[data-gescrollt="ja"] .leiste__nav a {
  color: var(--text);
}
.leiste__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 1.5px;
  background: var(--eiche);
  transition: right var(--tempo);
}
.leiste__nav a:hover,
.leiste__nav a[aria-current="page"] {
  opacity: 1;
}
.leiste__nav a:hover::after,
.leiste__nav a[aria-current="page"]::after {
  right: 0;
}
.leiste__werkzeuge {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: none;
}
.leiste .knopf {
  padding: 0.7rem 1.25rem;
  font-size: 0.875rem;
}

.thema-schalter {
  appearance: none;
  border: 0;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--kalk-fest) 12%, transparent);
  color: var(--kalk-fest);
  transition:
    background-color var(--tempo),
    color var(--tempo);
}
.leiste[data-gescrollt="ja"] .thema-schalter {
  background: var(--flaeche);
  color: var(--text);
}
.thema-schalter:hover {
  background: color-mix(in oklab, var(--eiche) 26%, transparent);
}
.thema-schalter svg {
  width: 19px;
  height: 19px;
}
[data-thema="hell"] .thema-schalter .ikon-mond,
.thema-schalter .ikon-sonne {
  display: none;
}
[data-thema="hell"] .thema-schalter .ikon-sonne {
  display: block;
}

.menue-knopf {
  display: none;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--kalk-fest);
  width: 42px;
  height: 42px;
  cursor: pointer;
  padding: 0;
}
.leiste[data-gescrollt="ja"] .menue-knopf {
  color: var(--text);
}
.menue-knopf span {
  display: block;
  height: 2px;
  background: currentColor;
  margin: 5px auto;
  width: 24px;
  transition:
    transform var(--tempo),
    opacity var(--tempo);
}
.menue-knopf[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menue-knopf[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menue-knopf[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Kopf / Head ---------- */
.kopf {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--grund-tief);
}
.kopf--sub {
  min-height: 74svh;
}
.kopf__medium {
  position: absolute;
  inset: 0;
}
.kopf__medium video,
.kopf__medium img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.kopf__schleier {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      color-mix(in srgb, #0b0409 76%, transparent) 0%,
      color-mix(in srgb, #0b0409 32%, transparent) 12%,
      transparent 26%
    ),
    linear-gradient(
      to top,
      color-mix(in srgb, #0b0409 92%, transparent) 0%,
      color-mix(in srgb, #0b0409 62%, transparent) 34%,
      transparent 68%
    ),
    linear-gradient(
      to right,
      color-mix(in srgb, #0b0409 72%, transparent) 0%,
      transparent 55%
    );
}
.kopf__inhalt {
  position: relative;
  z-index: 2;
  width: var(--seite);
  margin-inline: auto;
  padding: 0 0 clamp(3.5rem, 8vh, 6rem);
}
.kopf h1 {
  font-size: clamp(2.9rem, 1.6rem + 5.6vw, 6.4rem);
  color: var(--kalk-fest);
  max-width: 16ch;
  text-wrap: balance;
}
/* Zeile 1 der H1 nennt Betrieb, Leistung und Ort (GESETZ Kap. 3) — klein gesetzt,
   die Pointe darunter traegt die Groesse. */
.kopf__firma {
  display: block;
  font-family: "Geist", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--meta-fest);
  margin-bottom: 1.1rem;
}
.kopf__pointe-gross {
  display: block;
}
.kopf--sub h1 {
  font-size: clamp(2.5rem, 1.5rem + 4.2vw, 5rem);
}
.kopf__pointe {
  color: var(--meta-fest);
  max-width: 48ch;
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.28rem);
  margin: 1.4rem 0 2.2rem;
}
.kopf__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.kopf__marke {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--marke) 0 22%,
    var(--eiche) 22% 100%
  );
  opacity: 0.9;
  z-index: 3;
}

/* ---------- Fakten-Leiste ---------- */
.fakten {
  border-bottom: 1px solid var(--linie-zart);
  background: var(--grund);
}
.fakten__reihe {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.fakten__zelle {
  padding: 2.4rem 1.5rem;
  text-align: center;
  border-left: 1px solid var(--linie-zart);
}
.fakten__zelle:first-child {
  border-left: 0;
}
/* Display-Moment der Seite: die Zahl selbst, nie ein Satz (GESETZ Kap. 3). */
.fakten__wert {
  font-family: "Young Serif", serif;
  font-size: clamp(2.6rem, 1.2rem + 4.6vw, 8.4rem);
  line-height: 0.94;
  color: var(--text);
  display: block;
  font-variant-numeric: lining-nums;
}
.fakten__wert em {
  font-size: 0.44em;
  vertical-align: 0.5em;
}
.fakten__wert em {
  font-style: normal;
  color: var(--eiche);
}
.fakten__label {
  display: block;
  margin-top: 0.7rem;
  font-size: 0.775rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--leise);
}

/* ---------- Abschnitte ---------- */
.block {
  padding-block: clamp(3.6rem, 6.4vw, 6rem);
}
.block--eng {
  padding-block: clamp(3.5rem, 6vw, 5rem);
}
.block--tief {
  background: var(--grund-tief);
}
.block__kopf {
  max-width: 62ch;
  margin-bottom: clamp(1.9rem, 3.2vw, 2.9rem);
}
.block__kopf h2 {
  font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.6rem);
  text-wrap: balance;
}
.block__kopf p {
  margin-top: 1.2rem;
  color: var(--leise);
  font-size: 1.08rem;
}

/* Manifest */
.manifest {
  position: relative;
  overflow: hidden;
  min-height: min(74svh, 620px);
  display: flex;
  align-items: center;
  padding-block: clamp(3.4rem, 6vw, 5rem);
}
.manifest__bild {
  position: absolute;
  inset: 0;
}
/* Choreografie 3 — Gegenlauf-Parallax auf den Bühnen (GESETZ Kap. 2 ausdrücklich erlaubt:
   Bild vollflächig, Gegenlauf statt Form-Zoom). Der Versatz kommt aus --parallax (JS). */
.manifest__bild,
.bewerten__bild {
  will-change: transform;
}
.manifest__bild img,
.bewerten__bild img {
  width: 100%;
  height: 112%;
  object-fit: cover;
  transform: translate3d(0, calc(var(--parallax, 0) * -6%), 0);
}
.manifest__schleier {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    color-mix(in srgb, #0b0409 88%, transparent) 0 36%,
    color-mix(in srgb, #0b0409 32%, transparent) 100%
  );
}
.manifest__text {
  position: relative;
  z-index: 2;
}
.manifest__satz {
  font-family: "Young Serif", serif;
  font-size: clamp(1.6rem, 1rem + 2.1vw, 2.9rem);
  line-height: 1.14;
  color: var(--kalk-fest);
  max-width: 19ch;
  margin: 0 0 1.4rem;
  text-wrap: balance;
}
.manifest__quelle {
  font-family: "Geist", sans-serif;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.14rem);
  line-height: 1.62;
  color: var(--meta-fest);
  max-width: 46ch;
  margin: 0;
}

/* ==========================================================================
   ⭐ TIME-STREAM — Fingerabdruck 1 (Hamadas Punkt 1)
   7 Instanzen von der Planung bis zum Aftersale, mündend in FSL Project
   ========================================================================== */
.stream {
  position: relative;
}
.stream__achse {
  position: absolute;
  left: calc(2.75rem - 1px);
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--linie-zart);
  overflow: hidden;
}
.stream__achse::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: var(--fortschritt, 0%);
  background: linear-gradient(
    to bottom,
    var(--marke) 0%,
    var(--eiche) 42%,
    var(--eiche) 100%
  );
  transition: height 0.18s linear;
}
.stream__liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(2.2rem, 4vw, 3.6rem);
}
.station {
  position: relative;
  padding-left: 6.5rem;
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.22, 0.9, 0.3, 1);
}
.station.sichtbar {
  opacity: 1;
  transform: none;
}
.station__nr {
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 5.5rem;
  height: 5.5rem;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grund);
  box-shadow: inset 0 0 0 1px var(--linie);
  font-family: "Young Serif", serif;
  font-size: 1.5rem;
  color: var(--leise);
  transition:
    color var(--tempo),
    box-shadow var(--tempo),
    background-color var(--tempo);
}
.station.sichtbar .station__nr {
  color: var(--eiche);
  box-shadow: inset 0 0 0 2px var(--eiche);
}
.station__kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1rem;
  margin-bottom: 0.5rem;
}
.station h3 {
  font-size: clamp(1.55rem, 1.2rem + 1.2vw, 2.3rem);
}
.station__satz {
  color: var(--eiche);
  font-size: 0.95rem;
  font-weight: 500;
}
.station__leib {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 3vw, 2.8rem);
  align-items: center;
  margin-top: 1.1rem;
}
.station__text p {
  color: var(--leise);
}
.station__punkte {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.station__punkte li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.96rem;
}
.station__punkte li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 1.5px;
  background: var(--eiche);
}
.station__bild {
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 26px 60px -34px rgba(0, 0, 0, 0.85);
  aspect-ratio: 4/3;
  background: var(--flaeche);
}
/* Choreografie 2 — Werkbank-Wisch: das Stationsbild wird beim Erscheinen von links
   aufgedeckt, als liefe eine Fräse darüber. Kein Pin, kein Scrub (GESETZ Kap. 2). */
.station__bild {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.05s cubic-bezier(0.22, 0.9, 0.3, 1);
}
.station.sichtbar .station__bild {
  clip-path: inset(0 0 0 0);
}
.station__bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s cubic-bezier(0.22, 0.9, 0.3, 1);
}
.station:hover .station__bild img {
  transform: scale(1.035);
}

/* Mündung */
.muendung {
  position: relative;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-left: 6.5rem;
}
.muendung__grafik {
  position: absolute;
  left: 0.15rem;
  top: -5.5rem;
  width: 6.4rem;
  height: 9rem;
  overflow: visible;
}
@media (max-width: 900px) {
  .muendung__grafik {
    left: -0.9rem;
    top: -4rem;
    width: 5rem;
    height: 6.5rem;
  }
}
.muendung__karte {
  position: relative;
  border-radius: var(--r);
  padding: clamp(1.8rem, 3.5vw, 3rem);
  background: linear-gradient(
    140deg,
    var(--flaeche) 0%,
    var(--grund-tief) 100%
  );
  box-shadow: inset 0 0 0 1px var(--linie);
  overflow: hidden;
}
.muendung__karte::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--marke), var(--eiche));
}
.muendung__karte h3 {
  font-size: clamp(1.9rem, 1.3rem + 2vw, 3rem);
  margin-bottom: 0.7rem;
}
.muendung__karte h3 .akzent {
  color: var(--eiche);
}
.muendung__karte p {
  color: var(--leise);
  max-width: 56ch;
}

/* ==========================================================================
   ⭐ PROJEKT-INSZENIERUNG — Fingerabdruck 2 (Hamadas Punkt 2)
   ========================================================================== */
.szene {
  position: relative;
  min-height: min(88svh, 760px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: var(--r);
}
.szene + .szene {
  margin-top: clamp(1.25rem, 2.5vw, 2rem);
}
.szene__bild {
  position: absolute;
  inset: 0;
}
.szene__bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s cubic-bezier(0.22, 0.9, 0.3, 1);
}
.szene:hover .szene__bild img {
  transform: scale(1.04);
}
.szene__schleier {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    color-mix(in srgb, #0b0409 90%, transparent) 0%,
    color-mix(in srgb, #0b0409 45%, transparent) 42%,
    transparent 72%
  );
}
.szene__inhalt {
  position: relative;
  z-index: 2;
  padding: clamp(1.6rem, 4vw, 3rem);
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: end;
}
.szene h3 {
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.4rem);
  color: var(--kalk-fest);
  max-width: 18ch;
}
.szene__zeile {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
  margin-top: 0.9rem;
  color: var(--meta-fest);
  font-size: 0.9rem;
  align-items: center;
}
.szene__zeile span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.szene__zeile span + span::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--eiche);
  margin-right: 0.45rem;
}
.szene__beweis {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  background: color-mix(in srgb, var(--kalk-fest) 14%, transparent);
  color: var(--kalk-fest);
  box-shadow: inset 0 0 0 1px
    color-mix(in srgb, var(--kalk-fest) 28%, transparent);
}
.szene__link {
  position: absolute;
  inset: 0;
  z-index: 3;
  text-indent: -999em;
  font-size: 0;
  overflow: hidden;
}

/* Projekt-Raster (Unterseite) */
.welten {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}
.welt-knopf {
  appearance: none;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  background: transparent;
  color: var(--leise);
  box-shadow: inset 0 0 0 1px var(--linie);
  transition: all var(--tempo);
}
.welt-knopf:hover {
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--eiche);
}
.welt-knopf[aria-pressed="true"] {
  background: var(--eiche);
  color: #1a1206;
  box-shadow: none;
  font-weight: 600;
}
/* Im hellen Thema ist --eiche der dunkle Holzton: dann traegt der aktive Filter helle
   Schrift, sonst faellt der Kontrast auf 2,8:1 (gemessen 09.09.2026). */
[data-thema="hell"] .welt-knopf[aria-pressed="true"] {
  color: #fff;
}

.projekte-raster {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(0.8rem, 1.6vw, 1.4rem);
}
.projekt-kachel {
  position: relative;
  grid-column: span 2;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--flaeche);
  min-height: 280px;
  display: flex;
  align-items: flex-end;
}
.projekt-kachel--gross {
  grid-column: span 3;
  min-height: 420px;
}
.projekt-kachel--breit {
  grid-column: span 4;
  min-height: 380px;
}
.projekt-kachel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.22, 0.9, 0.3, 1);
}
.projekt-kachel:hover img {
  transform: scale(1.05);
}
.projekt-kachel__schleier {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    color-mix(in srgb, #0b0409 88%, transparent) 0%,
    color-mix(in srgb, #0b0409 30%, transparent) 55%,
    transparent 80%
  );
}
.projekt-kachel__text {
  position: relative;
  z-index: 2;
  padding: 1.4rem 1.5rem;
}
.projekt-kachel h3 {
  font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.75rem);
  color: var(--kalk-fest);
}
.projekt-kachel p {
  margin: 0.4rem 0 0;
  color: var(--meta-fest);
  font-size: 0.9rem;
}
.projekt-kachel a {
  position: absolute;
  inset: 0;
  z-index: 3;
  font-size: 0;
}
.projekt-kachel[hidden] {
  display: none;
}

/* ---------- Landkarte ---------- */
.karte-block {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.landkarte {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
}
.landkarte svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.landkarte__spur {
  stroke: var(--linie);
  stroke-width: 0.8;
  fill: none;
  opacity: 0.5;
}
.landkarte__heim {
  fill: var(--marke);
}
.ort {
  cursor: pointer;
}
.ort__punkt {
  fill: var(--eiche);
  transition:
    r 0.3s ease,
    fill 0.3s ease;
}
.ort:hover .ort__punkt,
.ort:focus-visible .ort__punkt {
  fill: var(--marke);
  r: 7;
}
.ort__ring {
  fill: none;
  stroke: var(--eiche);
  stroke-width: 1;
  opacity: 0;
  transform-origin: center;
  transition: opacity 0.3s;
}
.ort:hover .ort__ring {
  opacity: 0.6;
}
.ort__name {
  font-family: "Geist", sans-serif;
  font-size: 11px;
  fill: var(--leise);
  pointer-events: none;
}
.ort:hover .ort__name {
  fill: var(--text);
}

/* ---------- Auftraggeber + Auszeichnungen ---------- */
.marken {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.marken li {
  list-style: none;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--leise);
  box-shadow: inset 0 0 0 1px var(--linie-zart);
}
.preise {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
  margin-top: 2.5rem;
}
.preis {
  padding: 1.6rem;
  border-radius: var(--r);
  background: var(--flaeche);
  box-shadow: inset 0 0 0 1px var(--linie-zart);
}
.preis__jahr {
  font-family: "Young Serif", serif;
  font-size: 2rem;
  color: var(--eiche);
  display: block;
  line-height: 1;
}
.preis strong {
  display: block;
  margin: 0.6rem 0 0.3rem;
  font-size: 1.05rem;
}
.preis span.wer {
  color: var(--leise);
  font-size: 0.9rem;
}

/* ---------- Meilensteine ---------- */
.meilensteine {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.meilensteine::before {
  content: "";
  position: absolute;
  left: 5.5rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: var(--linie-zart);
}
.meilenstein {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 2rem;
  padding-block: 1.5rem;
  position: relative;
}
.meilenstein__jahr {
  font-family: "Young Serif", serif;
  font-size: 1.6rem;
  color: var(--eiche);
  text-align: right;
  padding-right: 1.5rem;
}
.meilenstein__leib {
  position: relative;
  padding-left: 1.75rem;
}
.meilenstein__leib::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 0.65em;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--grund);
  box-shadow: inset 0 0 0 2px var(--eiche);
}
.meilenstein h3 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}
.meilenstein p {
  color: var(--leise);
  margin: 0;
  font-size: 0.97rem;
}

/* ---------- Karriere ---------- */
.stellen {
  display: grid;
  gap: 1rem;
}
.stelle {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.6rem 1.8rem;
  border-radius: var(--r);
  background: var(--flaeche);
  box-shadow: inset 0 0 0 1px var(--linie-zart);
  transition:
    box-shadow var(--tempo),
    transform var(--tempo);
}
.stelle:hover {
  box-shadow: inset 0 0 0 1px var(--eiche);
  transform: translateY(-2px);
}
.stelle h3 {
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.6rem);
}
.stelle__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.7rem;
}
.chip {
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--eiche) 16%, transparent);
  color: var(--eiche);
}
.vorteile {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--linie-zart);
  border-radius: var(--r);
  overflow: hidden;
}
.vorteil {
  background: var(--grund);
  padding: 1.7rem 1.4rem;
}
.vorteil svg {
  width: 26px;
  height: 26px;
  color: var(--eiche);
  margin-bottom: 0.85rem;
}
.vorteil strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.vorteil span {
  color: var(--leise);
  font-size: 0.88rem;
}
.schritte {
  list-style: none;
  counter-reset: s;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
}
.schritt {
  counter-increment: s;
  position: relative;
  padding-top: 2.6rem;
}
.schritt::before {
  content: "0" counter(s);
  position: absolute;
  top: 0;
  left: 0;
  font-family: "Young Serif", serif;
  font-size: 1.5rem;
  color: var(--eiche);
}
.schritt::after {
  content: "";
  position: absolute;
  top: 1.9rem;
  left: 2.4rem;
  right: 0;
  height: 1px;
  background: var(--linie-zart);
}
.schritt:last-child::after {
  display: none;
}
.schritt strong {
  display: block;
  margin-bottom: 0.35rem;
}
.schritt p {
  color: var(--leise);
  font-size: 0.9rem;
  margin: 0;
}

/* ---------- Team / Ansprechpartner ---------- */
.leute {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}
.person {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.4rem;
  align-items: center;
  padding: 1.4rem;
  border-radius: var(--r);
  background: var(--flaeche);
  box-shadow: inset 0 0 0 1px var(--linie-zart);
}
.person img {
  width: 96px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  flex: none;
}
.person h3 {
  font-size: 1.25rem;
}
.person__rolle {
  color: var(--eiche);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0.3rem 0 0.8rem;
}
.person a {
  color: var(--leise);
  text-decoration: none;
  font-size: 0.94rem;
  display: block;
}
.person a:hover {
  color: var(--text);
}

/* ---------- Formular ---------- */
.kontakt-raster {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.formular {
  display: grid;
  gap: 1.1rem;
}
.feld {
  display: grid;
  gap: 0.45rem;
}
.feld label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--leise);
}
.feld input,
.feld textarea,
.feld select {
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--flaeche);
  border: 0;
  box-shadow: inset 0 0 0 1px var(--linie);
  border-radius: 10px;
  padding: 0.9rem 1.05rem;
  width: 100%;
  transition: box-shadow var(--tempo);
}
.feld input:focus,
.feld textarea:focus,
.feld select:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--eiche);
}
.feld textarea {
  min-height: 130px;
  resize: vertical;
}
.feld-paar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.honig {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.zustimmung {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--leise);
  line-height: 1.5;
}
.zustimmung input {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 0.15rem;
  accent-color: var(--marke);
}
.zustimmung a {
  color: var(--eiche);
}
.versprechen {
  font-size: 0.87rem;
  color: var(--leise);
  margin-top: -0.2rem;
}
.hinweis {
  padding: 1rem 1.2rem;
  border-radius: 10px;
  font-size: 0.93rem;
  margin-top: 0.4rem;
}
.hinweis--ok {
  background: color-mix(in oklab, var(--eiche) 16%, transparent);
  color: var(--text);
}
.hinweis--fehler {
  background: color-mix(in oklab, var(--marke) 20%, transparent);
  color: var(--text);
}

/* ---------- Karte 2-Klick ---------- */
.maps {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--flaeche);
  box-shadow: inset 0 0 0 1px var(--linie-zart);
}
.maps__vorschau {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  gap: 1.1rem;
  background: linear-gradient(150deg, var(--flaeche), var(--grund-tief));
}
.maps__knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}
.maps__vorschau p {
  color: var(--leise);
  max-width: 42ch;
  font-size: 0.93rem;
  margin: 0;
}
.maps iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Bewerten-CTA ---------- */
.bewerten {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  display: grid;
  place-items: center;
  text-align: center;
}
.bewerten__bild {
  position: absolute;
  inset: 0;
}
.bewerten__bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bewerten__schleier {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, #0b0409 82%, transparent);
}
.bewerten__karte {
  position: relative;
  z-index: 2;
  max-width: 52ch;
  display: grid;
  gap: 1.1rem;
  justify-items: center;
}
.bewerten h2 {
  color: var(--kalk-fest);
  font-size: clamp(1.8rem, 1.3rem + 2vw, 2.9rem);
}
.bewerten p {
  color: var(--meta-fest);
  margin: 0;
}
.sterne {
  display: flex;
  gap: 0.35rem;
}
.sterne svg {
  width: 30px;
  height: 30px;
  color: var(--eiche);
}

/* ---------- Fußzeile ---------- */
.fuss {
  padding-bottom: calc(2rem + env(safe-area-inset-bottom));
  background: var(--grund-tief);
  border-top: 1px solid var(--linie-zart);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.fuss__raster {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.fuss h4 {
  font-family: "Geist", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--eiche);
  margin: 0 0 1.1rem;
  font-weight: 600;
}
.fuss ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.fuss a {
  text-decoration: none;
  color: var(--leise);
  font-size: 0.95rem;
}
.fuss a:hover {
  color: var(--text);
}
.fuss__logo svg {
  height: 42px;
  width: auto;
  margin-bottom: 1.2rem;
}
.fuss__unten {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--linie-zart);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  color: var(--leise);
  font-size: 0.87rem;
}
.fuss__unten nav {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}

/* ---------- Sticky Anrufen ---------- */
.ruf {
  position: fixed;
  right: clamp(1rem, 2.5vw, 1.75rem);
  bottom: clamp(1rem, 2.5vw, 1.75rem);
  z-index: 55;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--marke-knopf);
  color: #fff;
  box-shadow: 0 14px 40px -14px rgba(0, 0, 0, 0.8);
  transition: transform var(--tempo);
}
.ruf:hover {
  transform: translateY(-3px);
}
.ruf svg {
  width: 19px;
  height: 19px;
}

/* ---------- Reveals ---------- */
.auf {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.22, 0.9, 0.3, 1);
}
.auf.sichtbar {
  opacity: 1;
  transform: none;
}
.auf--2 {
  transition-delay: 0.09s;
}
.auf--3 {
  transition-delay: 0.18s;
}
.auf--4 {
  transition-delay: 0.27s;
}

/* ---------- Projekt-Detailseite ---------- */
.detail-raster {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.detail-galerie .szene {
  min-height: min(70svh, 620px);
}
.nachbarn {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}
.nachbarn .knopf {
  max-width: 100%;
  overflow-wrap: break-word;
}
@media (max-width: 900px) {
  .detail-raster {
    grid-template-columns: 1fr;
  }
  .nachbarn {
    flex-direction: column;
    align-items: stretch;
  }
  .nachbarn .knopf {
    justify-content: center;
    text-align: center;
  }
}

/* ---------- Rechtsseiten ---------- */
.unter-leiste {
  padding-top: clamp(5rem, 8vw, 7rem);
}
.rechtstext {
  max-width: 74ch;
}
.rechtstext h2 {
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem);
  margin: 2.4rem 0 0.8rem;
  color: var(--text);
}
.rechtstext p {
  color: var(--leise);
  font-size: 0.985rem;
  line-height: 1.72;
  margin: 0 0 0.9rem;
}
.rechtstext a {
  color: var(--eiche);
}
.rechtstext strong {
  color: var(--text);
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .station__leib {
    grid-template-columns: 1fr;
  }
  .karte-block {
    grid-template-columns: 1fr;
  }
  .kontakt-raster {
    grid-template-columns: 1fr;
  }
  .vorteile {
    grid-template-columns: repeat(2, 1fr);
  }
  .schritte {
    grid-template-columns: repeat(2, 1fr);
  }
  .schritt::after {
    display: none;
  }
  .fuss__raster {
    grid-template-columns: 1fr 1fr;
  }
  .projekt-kachel,
  .projekt-kachel--gross,
  .projekt-kachel--breit {
    grid-column: span 3;
  }
}
@media (max-width: 900px) {
  .leiste__nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.6rem;
    background: var(--grund);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    margin: 0;
  }
  .leiste__nav[data-offen="ja"] {
    opacity: 1;
    pointer-events: auto;
  }
  .leiste__nav a {
    font-size: 1.5rem;
    font-family: "Young Serif", serif;
    color: var(--text);
  }
  .menue-knopf {
    display: block;
    order: 3;
  }
  .leiste__werkzeuge .knopf {
    display: none;
  }
  .leiste__nav {
    z-index: 1;
  }
  .menue-knopf {
    position: relative;
    z-index: 2;
  }
  .thema-schalter {
    position: relative;
    z-index: 2;
  }

  .kopf {
    min-height: auto;
    display: block;
  }
  .kopf__medium {
    position: relative;
    inset: auto;
    height: 52svh;
  }
  .kopf__schleier {
    /* auch mobil oben abdunkeln: Logo und Menue-Knopf liegen sonst auf einem hellen
       Buehnenbild (gemessen an man1, Glasdach) */
    background:
      linear-gradient(
        to bottom,
        color-mix(in srgb, #0b0409 72%, transparent) 0%,
        color-mix(in srgb, #0b0409 26%, transparent) 16%,
        transparent 34%
      ),
      linear-gradient(
        to top,
        color-mix(in srgb, #0b0409 70%, transparent),
        transparent 60%
      );
  }
  .kopf__inhalt {
    /* unten Platz fuer den fixen Anrufen-Knopf: ein Overlay darf nie Inhalt verdecken
       (GESETZ Kap. 10) — gemessen an 390x844 */
    padding: 2.5rem 0 5.5rem;
    text-align: center;
  }
  .kopf h1 {
    font-size: clamp(2.2rem, 1.4rem + 4.4vw, 3.2rem);
    color: var(--text);
    max-width: none;
    margin-inline: auto;
  }
  .kopf__pointe {
    color: var(--leise);
    margin-inline: auto;
  }
  .kopf__ctas {
    justify-content: center;
  }
  .kopf__marke {
    display: none;
  }

  .fakten__reihe {
    grid-template-columns: 1fr 1fr;
  }
  .fakten__zelle {
    border-top: 1px solid var(--linie-zart);
    padding: 1.8rem 1rem;
  }
  .fakten__zelle:nth-child(-n + 2) {
    border-top: 0;
  }
  .fakten__zelle:nth-child(odd) {
    border-left: 0;
  }

  .stream__achse {
    left: calc(1.6rem - 1px);
  }
  .station {
    padding-left: 4.2rem;
  }
  .station__nr {
    width: 3.2rem;
    height: 3.2rem;
    font-size: 1.05rem;
  }
  .muendung {
    padding-left: 4.2rem;
  }
  .meilensteine::before {
    left: 3.6rem;
  }
  .meilenstein {
    grid-template-columns: 3.6rem 1fr;
    gap: 1rem;
  }
  .meilenstein__jahr {
    font-size: 1.15rem;
    padding-right: 0.8rem;
  }
  .leute {
    grid-template-columns: 1fr;
  }
  .stelle {
    grid-template-columns: 1fr;
  }
  .szene__inhalt {
    grid-template-columns: 1fr;
  }
  .preise {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .fuss__raster {
    grid-template-columns: 1fr;
  }
  .vorteile {
    grid-template-columns: 1fr;
  }
  .schritte {
    grid-template-columns: 1fr;
  }
  .feld-paar {
    grid-template-columns: 1fr;
  }
  .projekt-kachel,
  .projekt-kachel--gross,
  .projekt-kachel--breit {
    grid-column: span 6;
    min-height: 260px;
  }
  .ruf {
    padding: 0.85rem 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .auf,
  .station {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .szene__bild img,
  .projekt-kachel img,
  .station__bild img {
    transition: none;
  }
  .stream__achse::after {
    transition: none;
  }
}
