/* AMBIENTE – ambientelicht.ch, Gestaltung «Nachtgarten»
   Dunkel, ruhig, warmes Licht als einziger Akzent. Keine externen Quellen, Schriften lokal.
   Diese Datei wird von bau-a/bauen.py unter einem Namen mit Inhalts-Prüfsumme nach fertig/assets/css/ geschrieben
   (assets/* wird ein Jahr lang «immutable» zwischengespeichert). */

@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-normal-latin.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic-latin.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}

:root {
  --nacht: #0a0f18;
  --nacht-2: #0d1420;
  --flaeche: #121a27;
  --flaeche-2: #182231;
  --linie: rgba(231, 219, 196, .13);
  --linie-2: rgba(231, 219, 196, .24);
  --text: #ece6da;
  --text-2: #b7b3aa;
  --text-3: #8e939b;
  --licht: #e7b56c;
  --licht-2: #f5d7a1;
  --licht-tief: #a97a35;
  --licht-ink: #1b1206;
  --atelier: #ebe7e0;
  --atelier-2: #dcd6cc;
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --rand: clamp(1rem, 4vw, 3.5rem);
  --breit: 1320px;
  --radius: 4px;
  --schatten: 0 24px 60px -24px rgba(0, 0, 0, .6);
  /* Kopf: gross oben, etwas kleiner beim Scrollen. Das Logo (PNG 899 × 552, unverändert) hat oben und unten je rund 8 %
     transparenten Rand; .marke img holt diesen Rand mit negativen Abständen in den Kopf (--logo-rand). --logo-h ist die
     Bildhöhe mit Rand, sichtbar sind rund 84 %. Die Zeile «EXKLUSIVE GARTENBELEUCHTUNG» ist 5.3 % der Bildhöhe hoch:
     PC 8.3 px (beim Scrollen 6.6 px), Handy 6.6 px (6 px), schmale Handys 5.7 px (5.3 px). Im Fuss 300 px breit: 9.7 px.
     Logobreite = --logo-h × 899/552: PC 255 px, Handy 203 px, bis 380 px 176 px, bis 350 px 150 px, Handy quer 143 px
     (quer auch beim Scrollen, Zeile 4.7 px).
     Ändern sich diese Werte, LOGO_SIZES_KOPF in bauen.py nachführen (sizes-Angabe für die Wahl der Logo-Datei). */
  --kopf-h: 156px;
  --kopf-h-klein: 124px;
  --logo-h: 156px;
  --logo-h-klein: 124px;
  --logo-rand: -.078;
  color-scheme: dark;
}
@media (max-width: 760px) {
  :root { --kopf-h: 124px; --kopf-h-klein: 112px; --logo-h: 124px; --logo-h-klein: 112px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--kopf-h-klein) + 16px); }
body {
  margin: 0; background: var(--nacht); color: var(--text);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--linie-2); text-underline-offset: .2em; }
a:hover { text-decoration-color: var(--licht); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--licht); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--licht); color: var(--licht-ink); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 100; background: var(--licht); color: var(--licht-ink); padding: .6rem 1rem; border-radius: var(--radius); text-decoration: none; font-weight: 500; }
.skip:focus { top: 1rem; }
[hidden] { display: none !important; }

/* ---------- Typografie ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; line-height: 1.04; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 7vw, 6.2rem); }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); }
h3 { font-size: clamp(1.45rem, 2vw, 1.75rem); line-height: 1.15; }
h4 { margin: 0 0 .5rem; font-size: 1rem; font-weight: 600; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--licht-2); }
p { margin: 0 0 1em; }
.vorzeile {
  display: inline-flex; align-items: center; gap: .7rem; margin: 0 0 1.25rem;
  font-size: .875rem; font-weight: 500; letter-spacing: .02em; color: var(--licht);
}
.vorzeile::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.lead { font-size: clamp(1.08rem, 1.35vw, 1.25rem); line-height: 1.6; color: var(--text-2); max-width: 40rem; }
.klein { font-size: .875rem; color: var(--text-3); }
.text-2 { color: var(--text-2); }
.mt-s { margin-top: 1rem; } .mt-m { margin-top: 1.75rem; } .mt-l { margin-top: 2.75rem; }
/* Eigener Teil innerhalb eines Abschnitts (Dark Skies unter dem Lichtfarben-Simulator): Abstand und Linie trennen klar */
.teil-trenner { margin-top: clamp(4rem, 8vw, 6rem); padding-top: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--linie); }

/* ---------- Layout ---------- */
.rahmen { width: 100%; max-width: var(--breit); margin-inline: auto; padding-inline: var(--rand); }
.rahmen--schmal { max-width: 860px; }
.abschnitt { padding-block: clamp(4rem, 8vw, 7rem); position: relative; }
.abschnitt--dicht { padding-block: clamp(3rem, 6vw, 5rem); }
.abschnitt--flaeche { background: var(--nacht-2); }
.abschnitt--linie { border-top: 1px solid var(--linie); }
.kopfzeile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); align-items: end; gap: 1.5rem 4rem; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.kopfzeile .lead { margin: 0; }
.kopfzeile > div > .lead + .textlink, .kopfzeile > div > p + p { margin-top: 1rem; }
@media (max-width: 900px) { .kopfzeile { grid-template-columns: 1fr; } }
.zweispaltig { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.zweispaltig--mitte { align-items: center; }
@media (max-width: 900px) { .zweispaltig { grid-template-columns: 1fr; } }
.schein { position: relative; isolation: isolate; }
.schein::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(42% 38% at 14% 42%, rgba(231, 170, 90, .075), transparent 72%);
}

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 50px; padding: .8rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  font-size: .975rem; font-weight: 500; letter-spacing: .005em; text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
  white-space: nowrap; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn--licht { background: var(--licht); color: var(--licht-ink); }
.btn--licht:hover { background: var(--licht-2); }
.btn--linie { border-color: var(--linie-2); color: var(--text); background: rgba(10, 15, 24, .25); }
.btn--linie:hover { border-color: var(--licht); color: var(--licht-2); }
.btn--klein { min-height: 40px; padding: .5rem 1.05rem; font-size: .9rem; }
.btn svg { width: 18px; height: 18px; flex: none; }
.knoepfe { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
@media (max-width: 420px) { .knoepfe .btn { white-space: normal; flex: 1 1 100%; } }
.textlink { color: var(--licht-2); text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; gap: .45rem; }
.textlink:hover { color: var(--licht); }
.textlink::after { content: "→"; transition: transform .2s ease; }
.textlink:hover::after { transform: translateX(3px); }
.textlink--aussen::after { content: "↗"; }
/* Zweizeiliger Link im Block unter dem Konfigurator: Pfeil folgt dem letzten Wort */
.verwandt .kopfzeile .textlink { display: inline; }
.verwandt .kopfzeile .textlink::after { display: inline-block; margin-left: .45rem; }
.textlinks { display: flex; flex-wrap: wrap; gap: .75rem 1.75rem; margin-top: 1.5rem; }

/* ---------- Kopf mit Logo ---------- */
.kopf {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--kopf-h);
  transition: height .3s ease, background-color .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.kopf::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 15, 24, .68), rgba(10, 15, 24, 0)); transition: opacity .3s ease;
}
.kopf.ist-klein { height: var(--kopf-h-klein); }
.kopf--fest, .kopf.ist-gescrollt {
  background: rgba(10, 15, 24, .9); border-bottom-color: var(--linie);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
}
.kopf--fest::before, .kopf.ist-gescrollt::before { opacity: 0; }
.kopf__innen { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.marke { display: inline-flex; align-items: center; flex: none; text-decoration: none; line-height: 0; }
.marke img { height: var(--logo-h); width: auto; max-width: none; margin-block: calc(var(--logo-h) * var(--logo-rand)); transition: height .3s ease, margin .3s ease; }
.kopf.ist-klein .marke img { height: var(--logo-h-klein); margin-block: calc(var(--logo-h-klein) * var(--logo-rand)); }
.nav { display: flex; align-items: center; gap: clamp(.9rem, 1.55vw, 1.9rem); }
.nav a { font-size: .95rem; text-decoration: none; color: var(--text-2); transition: color .2s ease; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--licht); text-underline-offset: .45em; }
.nav .btn--licht, .nav .btn--licht:hover { color: var(--licht-ink); text-decoration: none; }
.nav__nur-mobil { display: none; }
.nav__anfrage { display: inline-flex; align-items: center; gap: .5rem; }
.zaehler {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--licht); color: var(--licht-ink); font-size: .75rem; font-weight: 600; line-height: 1;
}
.zaehler[data-leer] { background: rgba(10, 15, 24, .6); color: var(--text-2); border: 1px solid var(--linie-2); }
.zaehler.ist-neu { animation: puls .6s ease; }
@keyframes puls { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.menue-knopf {
  display: none; width: 46px; height: 46px; border-radius: 999px; border: 1px solid var(--linie-2);
  background: rgba(10, 15, 24, .4); cursor: pointer; place-items: center; padding: 0;
}
.menue-knopf span, .menue-knopf span::before, .menue-knopf span::after {
  display: block; width: 18px; height: 1.5px; background: var(--text); position: relative; content: ""; transition: transform .25s ease, background-color .25s ease;
}
.menue-knopf span::before { position: absolute; top: -6px; }
.menue-knopf span::after { position: absolute; top: 6px; }
.menue-offen .menue-knopf span { background: transparent; }
.menue-offen .menue-knopf span::before { transform: translateY(6px) rotate(45deg); }
.menue-offen .menue-knopf span::after { transform: translateY(-6px) rotate(-45deg); }
.kopf__mobil { display: none; align-items: center; gap: .6rem; }
.kopf__anfrage-mobil { display: inline-flex; align-items: center; gap: .45rem; height: 46px; padding: 0 .8rem 0 .9rem; border-radius: 999px; border: 1px solid var(--linie-2); text-decoration: none; font-size: .9rem; background: rgba(10, 15, 24, .4); }
.kopf__anfrage-mobil svg { width: 18px; height: 18px; color: var(--licht); }

@media (max-width: 1200px) {
  .nav { display: none; }
  .kopf__mobil { display: flex; }
  .menue-knopf { display: grid; }
  .menue-offen .kopf { background: var(--nacht); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .menue-offen .aktionsleiste, .menue-offen .leiste-mobil { display: none; }
  /* Das offene Menü ist fixed und darf nie im Kopf hängen: .kopf trägt dann keinen backdrop-filter (sonst wird .kopf
     zum Bezugsrahmen der fixed .nav und die Links liegen nach dem Scrollen bzw. auf /leuchten ausserhalb). Neun Punkte
     passen auf 375 × 667 samt Knopf; auf kleineren oder querliegenden Bildschirmen scrollt das Menü. */
  .menue-offen .nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: fixed; inset: var(--kopf-h-klein) 0 0 0; background: var(--nacht); padding: .75rem var(--rand) calc(1.5rem + env(safe-area-inset-bottom));
    overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  }
  .menue-offen .kopf:not(.ist-klein) .nav { top: var(--kopf-h); }
  .menue-offen .nav a { flex: none; font-family: var(--serif); font-size: 1.5rem; line-height: 1.25; color: var(--text); padding: .45rem 0; border-bottom: 1px solid var(--linie); text-decoration: none; }
  .menue-offen .nav a[aria-current="page"] { color: var(--licht-2); }
  .menue-offen .nav .nav__nur-mobil { display: block; }
  .menue-offen .nav .nav__anfrage { justify-content: space-between; }
  .menue-offen .nav .btn { margin-top: 1.25rem; font-family: var(--sans); font-size: 1rem; line-height: 1.3; border-bottom: 0; color: var(--licht-ink); padding: .8rem 1.5rem; }
  .menue-offen { overflow: hidden; }
}
@media (max-width: 520px) { .kopf__anfrage-mobil .kopf__anfrage-text { display: none; } }
@media (max-width: 380px) {
  :root { --kopf-h: 108px; --kopf-h-klein: 100px; --logo-h: 108px; --logo-h-klein: 100px; }
  .kopf__innen { gap: .5rem; }
  .kopf__mobil { gap: .4rem; }
  .kopf__anfrage-mobil { padding: 0 .6rem; }
}
/* Sehr schmale Handys (320 px): Logo und Knöpfe kleiner, damit 16 px Rand bleiben */
@media (max-width: 350px) {
  :root { --kopf-h: 92px; --kopf-h-klein: 88px; --logo-h: 92px; --logo-h-klein: 88px; }
  .kopf__anfrage-mobil { height: 42px; padding: 0 .55rem; gap: .35rem; }
  .menue-knopf { width: 42px; height: 42px; }
}
/* Niedrige Bildschirme (Handy quer, z. B. 844 × 390): schmaler Kopf, sonst frisst er 40 % der Höhe.
   Muss nach den Breiten-Regeln stehen (Handy quer ist oft schmaler als 760 px). Logo-Datei unverändert.
   Beim Scrollen schrumpft der Kopf hier nicht weiter: kleiner als 88 px wäre das Logo nicht mehr lesbar. */
@media (max-height: 500px) {
  :root { --kopf-h: 88px; --kopf-h-klein: 88px; --logo-h: 88px; --logo-h-klein: 88px; }
  .kopf__anfrage-mobil, .menue-knopf { height: 42px; }
  .menue-knopf { width: 42px; }
}

/* ---------- Startseiten-Hero ---------- */
.hero { position: relative; min-height: clamp(660px, 100svh, 980px); display: flex; align-items: flex-end; isolation: isolate; overflow: hidden; }
.hero__bild { position: absolute; inset: 0; z-index: -2; }
.hero__bild img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
@media (max-width: 700px) { .hero__bild { inset: -34% 0 0 0; } .hero__bild img { object-position: 66% 50%; } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 15, 24, .72) 0%, rgba(10, 15, 24, .05) 22%, rgba(10, 15, 24, 0) 42%, rgba(10, 15, 24, .7) 70%, var(--nacht) 100%),
    linear-gradient(90deg, rgba(10, 15, 24, .6) 0%, rgba(10, 15, 24, 0) 62%);
}
@media (max-width: 700px) {
  .hero::after { background: linear-gradient(180deg, rgba(10, 15, 24, .7) 0%, rgba(10, 15, 24, .25) 18%, rgba(10, 15, 24, .55) 40%, rgba(10, 15, 24, .82) 62%, var(--nacht) 100%); }
}
.hero__inhalt { padding-bottom: clamp(3rem, 7vw, 5.5rem); padding-top: calc(var(--kopf-h) + 4rem); }
.hero h1 { max-width: 15ch; text-shadow: 0 2px 24px rgba(5, 8, 14, .45); }
.hero .lead { margin-top: 1.5rem; color: #dcd7cd; max-width: 36rem; text-shadow: 0 1px 14px rgba(5, 8, 14, .8), 0 0 2px rgba(5, 8, 14, .6); }
.fakten {
  display: flex; flex-wrap: wrap; gap: .5rem 2.25rem; margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding: 1.25rem 0 0; list-style: none;
  border-top: 1px solid var(--linie); font-size: .9rem; color: var(--text-2);
}
.fakten li { display: flex; align-items: center; gap: .6rem; }
.fakten li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--licht); box-shadow: 0 0 12px 2px rgba(231, 181, 108, .55); flex: none; }

/* ---------- Seiten-Hero (Unterseiten) ---------- */
.seitenheld { position: relative; min-height: clamp(460px, 66svh, 680px); display: flex; align-items: flex-end; isolation: isolate; overflow: hidden; }
.seitenheld--kompakt { min-height: clamp(400px, 52svh, 540px); }
.seitenheld__bild { position: absolute; inset: 0; z-index: -2; }
.seitenheld__bild img { width: 100%; height: 100%; object-fit: cover; }
.seitenheld::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 15, 24, .75) 0%, rgba(10, 15, 24, .2) 30%, rgba(10, 15, 24, .55) 62%, var(--nacht) 100%),
    linear-gradient(90deg, rgba(10, 15, 24, .7) 0%, rgba(10, 15, 24, .1) 70%);
}
.seitenheld__inhalt { padding-top: calc(var(--kopf-h) + 3rem); padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.seitenheld h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); max-width: 18ch; text-shadow: 0 2px 24px rgba(5, 8, 14, .45); }
.seitenheld .lead { margin-top: 1.25rem; color: #dcd7cd; text-shadow: 0 1px 14px rgba(5, 8, 14, .8); }
.seitenheld .pfad a, .seitenheld .pfad { color: #cfcabf; }

/* ---------- Seitenkopf ohne Bild ---------- */
.seitenkopf { padding-top: calc(var(--kopf-h) + clamp(2rem, 5vw, 3.5rem)); padding-bottom: clamp(2rem, 4vw, 3rem); }
.seitenkopf h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
.seitenkopf .lead { margin-top: 1.2rem; }
/* Schein nur in der Breite des Rahmens: 100vw enthält die Bildlaufleiste und ragte über den Rand (Querscrollen auf /leuchten) */
.seitenkopf.schein::before {
  background: radial-gradient(560px 300px at 28% 58%, rgba(231, 170, 90, .07), transparent 72%);
}
.pfad { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .85rem; color: var(--text-3); margin: 0 0 1.5rem; padding: 0; list-style: none; }
.pfad li + li::before { content: "/"; margin-right: .4rem; color: var(--linie-2); }
.pfad a { text-decoration: none; color: var(--text-2); }
.pfad a:hover { color: var(--text); }

/* ---------- Sprungleiste ---------- */
.sprung { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.sprung a { display: inline-flex; align-items: center; min-height: 42px; padding: .4rem 1rem; border: 1px solid var(--linie-2); border-radius: 999px; font-size: .9rem; color: var(--text-2); text-decoration: none; transition: border-color .2s ease, color .2s ease; }
.sprung a:hover { border-color: var(--licht); color: var(--text); }

/* ---------- Bereiche ---------- */
.bereiche { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.6rem, 1.2vw, 1rem); }
.bereich {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 0; aspect-ratio: 4 / 5;
  border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); isolation: isolate; background: var(--flaeche);
}
.bereich img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s cubic-bezier(.2, .7, .2, 1), filter .5s ease; filter: saturate(.85) brightness(.9); }
.bereich::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 15, 24, 0) 40%, rgba(10, 15, 24, .88) 100%); }
.bereich:hover img { transform: scale(1.04); filter: saturate(1) brightness(1); }
.bereich__text { padding: 1.25rem 1.25rem 1.2rem; display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.bereich h3 { font-size: clamp(1.35rem, 1.8vw, 1.7rem); }
.bereich__zahl { font-size: .82rem; color: var(--text-2); white-space: nowrap; }
.bereich--alle { background: radial-gradient(80% 60% at 50% 100%, rgba(231, 181, 108, .22), transparent 70%), var(--flaeche); border: 1px solid var(--linie); }
.bereich--alle::after { display: none; }
.bereich--alle .bereich__text { flex-direction: column; align-items: flex-start; height: 100%; justify-content: space-between; padding: 1.5rem; }
.bereich--alle strong { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 5vw, 4.6rem); line-height: 1; color: var(--licht-2); }
@media (max-width: 900px) { .bereiche { grid-template-columns: repeat(2, 1fr); } .bereich { aspect-ratio: 1 / 1.08; } }
@media (max-width: 520px) {
  .bereich__text { padding: .95rem; flex-direction: column; align-items: flex-start; gap: .3rem; }
  .bereich h3 { font-size: 1.3rem; }
  .bereich--alle .bereich__text { padding: 1rem; } .bereich--alle h3 { font-size: 1.15rem; } .bereich--alle .textlink { font-size: .9rem; }
}
.bauarten { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.75rem; padding: 0; list-style: none; }
.bauarten a { display: inline-flex; align-items: center; gap: .5rem; min-height: 42px; padding: .4rem 1rem; border: 1px solid var(--linie-2); border-radius: 999px; font-size: .92rem; color: var(--text-2); text-decoration: none; transition: all .2s ease; }
.bauarten a small { color: var(--text-3); font-size: .8rem; }
.bauarten a:hover { border-color: var(--licht); color: var(--text); }
.bauarten__titel { font-size: .9rem; color: var(--text-3); margin: 2.25rem 0 0; }

/* ---------- Produktkarten ---------- */
.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 236px), 1fr)); gap: clamp(1rem, 1.6vw, 1.5rem) clamp(.75rem, 1.4vw, 1.25rem); }
.karte { position: relative; min-width: 0; }
.karte a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--text); }
.karte__bild {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(120% 90% at 50% 18%, #f4f1eb 0%, var(--atelier) 46%, var(--atelier-2) 100%);
}
.karte__bild img { width: 100%; height: 100%; object-fit: contain; padding: 9%; mix-blend-mode: multiply; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.karte__bild img.ist-foto { object-fit: cover; padding: 0; mix-blend-mode: normal; }
.karte a:hover .karte__bild img { transform: scale(1.035); }
.karte__bild--leer { background: radial-gradient(110% 80% at 50% 20%, #1a2433 0%, var(--flaeche) 70%); border: 1px solid var(--linie); }
.platzhalter { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: .6rem; padding: 12%; text-align: center; }
.platzhalter svg { width: 34%; max-width: 96px; height: auto; color: var(--text-3); opacity: .7; }
.platzhalter span { font-size: .76rem; color: var(--text-3); max-width: 30ch; }
.galerie__haupt .platzhalter span { font-size: .9rem; }
.karte__text { padding: .95rem .15rem 0; }
.karte h3 { font-family: var(--sans); font-size: 1rem; font-weight: 500; line-height: 1.35; letter-spacing: 0; }
.karte__bauart { font-size: .86rem; color: var(--text-2); margin: .2rem 0 0; line-height: 1.4; }
.karte__marke { font-size: .8rem; color: var(--text-3); margin: .3rem 0 0; }
@media (max-width: 600px) {
  #katalog-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem .75rem; }
  #katalog-raster .karte h3 { font-size: .92rem; }
  #katalog-raster .karte__bauart { font-size: .8rem; }
  #katalog-raster .karte__text { padding-top: .7rem; }
}

.reihe-scroll { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--rand) * -1); padding-inline: var(--rand); scroll-padding-inline: var(--rand); }
.reihe-scroll::-webkit-scrollbar { display: none; }
.reihe-scroll .karten { grid-template-columns: repeat(8, minmax(230px, 1fr)); }
.reihe-scroll .karte { scroll-snap-align: start; }
.unter-reihe { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: .75rem; }
@media (min-width: 1100px) { .reihe-scroll { overflow: visible; margin: 0; padding: 0; } .reihe-scroll .karten { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px) { .reihe-scroll .karten { grid-template-columns: repeat(8, 64vw); } }
.reihe-scroll--4 .karten { grid-template-columns: repeat(4, minmax(230px, 1fr)); }
@media (max-width: 600px) { .reihe-scroll--4 .karten { grid-template-columns: repeat(4, 64vw); } }

/* ---------- Projekte: Mosaik (Startseite) ---------- */
.mosaik { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(.6rem, 1.2vw, 1rem); }
.mosaik a { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--flaeche); display: block; color: inherit; text-decoration: none; }
.mosaik img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.88); transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.mosaik a:hover img { transform: scale(1.03); }
.mosaik .m1 { grid-column: span 8; grid-row: span 2; aspect-ratio: 4 / 3.06; }
.mosaik .m2, .mosaik .m3 { grid-column: span 4; }
.mosaik .m4, .mosaik .m5, .mosaik .m6 { grid-column: span 4; aspect-ratio: 4 / 3; }
.mosaik .m2 img, .mosaik .m3 img { position: absolute; inset: 0; }
@media (max-width: 760px) {
  .mosaik { grid-template-columns: repeat(2, 1fr); }
  .mosaik .m1 { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 3; }
  .mosaik .m2, .mosaik .m3, .mosaik .m4, .mosaik .m5 { grid-column: span 1; aspect-ratio: 1 / 1.05; }
  .mosaik .m6 { grid-column: span 2; aspect-ratio: 16 / 10; }
}

/* ---------- Projekte: Galerie ----------
   Raster statt Spalten, damit alle Spalten gleich enden (bauen.py, projekte_seite: Reihenfolge und Breiten passen zu
   25 Bildern). .g-breit ist immer zwei Spalten breit, .g-breit-3 nur im Raster mit drei Spalten. */
.galerie-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.6rem, 1.2vw, 1rem); }
.galerie-raster a { display: block; margin: 0; aspect-ratio: 4 / 3; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--flaeche); text-decoration: none; color: inherit; }
.galerie-raster .g-breit { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.galerie-raster img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1), filter .4s ease; filter: saturate(.9); }
.galerie-raster a:hover img { transform: scale(1.025); filter: saturate(1); }
@media (min-width: 900px) {
  .galerie-raster { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* Höhe der Reihe gibt das Nachbarbild (4:3) vor; das breite Bild füllt sie, statt sie mit seinem eigenen Format zu strecken */
  .galerie-raster .g-breit, .galerie-raster .g-breit-3 { grid-column: span 2; aspect-ratio: auto; }
  .galerie-raster .g-breit img, .galerie-raster .g-breit-3 img { position: absolute; inset: 0; }
}
@media (max-width: 520px) { .galerie-raster a { aspect-ratio: 4 / 5; } .galerie-raster .g-breit { aspect-ratio: 16 / 10; } }
.bildreihe { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 30%); gap: .9rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: .5rem; scroll-padding-inline: 0; }
.bildreihe figure { margin: 0; scroll-snap-align: start; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--flaeche); aspect-ratio: 4 / 3; }
.bildreihe img { width: 100%; height: 100%; object-fit: cover; }
.bildreihe a { display: block; height: 100%; }
.bildreihe figcaption { pointer-events: none; }
.h-mittel { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.bildreihe figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem 1rem .8rem; font-size: .86rem; background: linear-gradient(180deg, transparent, rgba(10, 15, 24, .85)); }
@media (max-width: 600px) { .bildreihe { grid-auto-columns: 78%; } }
/* Ab 1000 px festes Raster: vier Spalten, das erste Bild doppelt breit, 7 Bilder = 2 volle Reihen, nichts angeschnitten.
   Darunter bleibt die Reihe zum Wischen. */
@media (min-width: 1000px) {
  .bildreihe { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; padding-bottom: 0; }
  .bildreihe .bildreihe__breit { grid-column: span 2; aspect-ratio: auto; }
  .bildreihe .bildreihe__breit a { position: absolute; inset: 0; }
}

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; grid-template-rows: auto 1fr auto; background: rgba(6, 9, 15, .97); color: var(--text); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s .3s; }
.lightbox.ist-offen { opacity: 1; visibility: visible; transition: opacity .3s ease; }
.lightbox__leiste { display: flex; justify-content: space-between; align-items: center; padding: .9rem var(--rand); color: var(--text-3); font-size: .85rem; }
.lightbox__buehne { position: relative; display: grid; place-items: center; padding: 0 clamp(.5rem, 7vw, 6.5rem); overflow: hidden; touch-action: pan-y; min-height: 0; }
.lightbox__bild { max-width: 100%; max-height: calc(100svh - 150px); object-fit: contain; transition: opacity .25s ease; border-radius: 2px; }
.lightbox__bild.laedt { opacity: 0; }
.lightbox__knopf { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 999px; color: var(--text); background: rgba(10, 15, 24, .5); border: 1px solid var(--linie-2); cursor: pointer; transition: background-color .2s ease, border-color .2s ease; }
.lightbox__knopf:hover { border-color: var(--licht); background: rgba(231, 181, 108, .15); }
.lightbox__knopf svg { width: 18px; height: 18px; }
.lightbox__zurueck, .lightbox__weiter { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.lightbox__zurueck { left: clamp(.5rem, 2vw, 1.75rem); }
.lightbox__weiter { right: clamp(.5rem, 2vw, 1.75rem); }
.lightbox__text { padding: .9rem var(--rand) 1.4rem; color: var(--text-2); font-size: .9rem; text-align: center; min-height: 3.2rem; }
/* Handy quer (z. B. 844 × 390): Zähler, Schliessen und Bildtext liegen halbtransparent über dem Bild, damit die Grossansicht
   fast die ganze Höhe nutzt (sonst nehmen Leiste und Text 150 px weg und das Bild wird kleiner als die Kachel in der Galerie). */
@media (max-height: 500px) {
  .lightbox { grid-template-rows: minmax(0, 1fr); }
  .lightbox__leiste { position: absolute; top: 0; left: 0; right: 0; z-index: 3; padding: .5rem var(--rand); background: linear-gradient(rgba(6, 9, 15, .8), rgba(6, 9, 15, 0)); pointer-events: none; }
  .lightbox__leiste > * { pointer-events: auto; }
  .lightbox__knopf.lightbox__zu { width: 42px; height: 42px; }
  .lightbox__buehne { padding-block: 12px; }
  .lightbox__bild { max-height: calc(100svh - 24px); }
  .lightbox__text {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; min-height: 0; margin: 0; padding: 1.25rem var(--rand) .55rem; font-size: .8rem;
    background: linear-gradient(rgba(6, 9, 15, 0), rgba(6, 9, 15, .85)); pointer-events: none;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
  }
}

/* ---------- Ablauf ---------- */
.ablauf { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: schritt; border-top: 1px solid var(--linie); list-style: none; margin: 0; padding: 0; }
.ablauf--5 { grid-template-columns: repeat(5, 1fr); }
.schritt { padding: 2rem clamp(1rem, 2vw, 2rem) 0 0; position: relative; }
.schritt::before {
  counter-increment: schritt; content: "0" counter(schritt);
  display: block; font-family: var(--serif); font-size: 3.2rem; line-height: 1; color: var(--licht-2); margin-bottom: 1.25rem;
}
.schritt::after { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--licht); box-shadow: 0 0 14px 3px rgba(231, 181, 108, .45); }
.schritt h3 { font-family: var(--sans); font-size: 1.08rem; font-weight: 600; letter-spacing: 0; margin-bottom: .6rem; }
.schritt p { color: var(--text-2); font-size: .98rem; }
.schritt .chips { margin-top: .75rem; }
@media (max-width: 1100px) { .ablauf--5 { grid-template-columns: repeat(3, 1fr); row-gap: 2.5rem; } }
/* Mehrspaltig: Titel immer zwei Zeilen hoch, damit alle Beschreibungen auf gleicher Höhe beginnen */
@media (min-width: 901px) { .ablauf--5 .schritt h3 { min-height: 2.3em; } }   /* 2 × line-height 1.15 */
@media (max-width: 900px) {
  .ablauf, .ablauf--5 { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--linie); padding-left: 1.75rem; gap: 2.25rem; }
  .schritt { padding: 0; }
  .schritt::before { font-size: 2.4rem; margin-bottom: .6rem; }
  .schritt::after { top: .9rem; left: calc(-1.75rem - 4px); }
}
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
/* Zweizeilige Chips (lange Oberflächennamen): abgerundetes Rechteck statt Oval, Folgezeile bündig unter dem Text */
.chips li { display: flex; align-items: baseline; font-size: .8rem; padding: .25rem .65rem; border-radius: 1rem; border: 1px solid var(--linie-2); color: var(--text-2); }
.chips i { flex: none; display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: .4rem; transform: translateY(1px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }

/* ---------- Karten mit Text ---------- */
.leistungen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: clamp(3rem, 6vw, 4.5rem); }
.leistungen--2 { grid-template-columns: repeat(2, 1fr); }
.leistungen--4 { grid-template-columns: repeat(4, 1fr); }
.leistungen--ohne-abstand { margin-top: 0; }
.leistung { padding: 1.6rem 1.6rem 1.4rem; border: 1px solid var(--linie); border-radius: var(--radius); background: rgba(18, 26, 39, .55); display: flex; flex-direction: column; }
.leistung h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 600; letter-spacing: 0; margin-bottom: .5rem; line-height: 1.35; }
.leistung p { color: var(--text-2); font-size: .96rem; margin: 0 0 .75rem; }
.leistung p:last-child { margin-bottom: 0; }
.leistung strong { color: var(--licht-2); font-weight: 500; }
.leistung .textlink { margin-top: auto; padding-top: .5rem; font-size: .94rem; }
.leistung__nr { font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--licht-2); margin-bottom: .9rem; }
@media (max-width: 1000px) { .leistungen--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .leistungen, .leistungen--2 { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .leistungen--4 { grid-template-columns: 1fr; } }

/* Objektarten */
.objekte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--linie); }
.objekte > div { padding: 1.6rem clamp(1rem, 2vw, 2rem) 1.6rem 0; border-bottom: 1px solid var(--linie); }
.objekte h3 { font-size: 1.6rem; margin-bottom: .5rem; }
.objekte p { color: var(--text-2); font-size: .96rem; margin: 0; }
@media (max-width: 900px) { .objekte { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .objekte { grid-template-columns: 1fr; } .objekte > div { padding-right: 0; } }

/* 16 Leistungen in 4 Bereichen */
.leistungsliste { border-top: 1px solid var(--linie); }
.leistungsliste details { border-bottom: 1px solid var(--linie); }
.leistungsliste summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 0; cursor: pointer; font-family: var(--serif); font-size: 1.6rem; line-height: 1.2; }
.leistungsliste summary::-webkit-details-marker { display: none; }
.leistungsliste summary small { font-family: var(--sans); font-size: .82rem; color: var(--text-3); margin-left: .6rem; white-space: nowrap; display: inline-block; }
.leistungsliste summary::after { content: "+"; font-family: var(--sans); font-size: 1.4rem; color: var(--licht); transition: transform .25s ease; flex: none; }
.leistungsliste details[open] summary::after { transform: rotate(45deg); }
.leistungsliste ul { margin: 0 0 1.25rem; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; }
.leistungsliste li { font-size: .9rem; padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--linie-2); color: var(--text-2); }

/* Vergleich alt / neu */
.vergleich { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.vergleich > div { padding: 1.6rem; border-radius: var(--radius); border: 1px solid var(--linie); }
.vergleich__neu { background: rgba(231, 181, 108, .06); border-color: rgba(231, 181, 108, .35) !important; }
.vergleich h3 { font-family: var(--sans); font-size: .95rem; font-weight: 600; margin-bottom: 1rem; }
.vergleich ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .6rem; font-size: .96rem; color: var(--text-2); }
.vergleich li { display: flex; gap: .7rem; }
.vergleich__alt li::before { content: "–"; color: var(--text-3); flex: none; }
.vergleich__neu li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: .6em; border-radius: 50%; background: var(--licht); box-shadow: 0 0 10px 2px rgba(231, 181, 108, .4); }
@media (max-width: 760px) { .vergleich { grid-template-columns: 1fr; } }

/* Punkteliste */
.punkte { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .55rem; }
.punkte li { display: flex; gap: .8rem; font-size: .98rem; color: var(--text-2); }
.punkte li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: .62em; border-radius: 50%; background: var(--licht); box-shadow: 0 0 10px 2px rgba(231, 181, 108, .4); }
.punkte strong { color: var(--text); font-weight: 500; }

/* Grundsätze (Nachhaltigkeit) */
.grundsatz { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.75rem 0; border-top: 1px solid var(--linie); }
.grundsatz__nr { font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: var(--licht-2); }
.grundsatz h3 { font-size: 1.55rem; margin-bottom: .6rem; }
.grundsatz p { color: var(--text-2); }

/* Kennzahlen */
.kennzahlen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem 1rem; margin: 0; padding: 0; list-style: none; }
.kennzahlen--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kennzahlen--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kennzahlen li { display: flex; flex-direction: column; gap: .35rem; font-size: .92rem; color: var(--text-2); }
.kennzahlen strong { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1; color: var(--licht-2); overflow-wrap: anywhere; }
@media (max-width: 900px) { .kennzahlen, .kennzahlen--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Hinweisbox */
.box { padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--linie); background: rgba(18, 26, 39, .6); }
.box + .box { margin-top: 1rem; }
.box h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin-bottom: .5rem; line-height: 1.35; }
.box p { color: var(--text-2); font-size: .95rem; margin: 0 0 .75rem; }
.box p:last-child { margin-bottom: 0; }
.box--licht { border-color: rgba(231, 181, 108, .4); background: rgba(231, 181, 108, .06); }

/* ---------- Hersteller und Zusagen ---------- */
.hersteller { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.hersteller article { padding: 2.25rem clamp(1rem, 2.4vw, 2.5rem) 2.25rem 0; display: flex; flex-direction: column; }
.hersteller article + article { border-left: 1px solid var(--linie); padding-left: clamp(1rem, 2.4vw, 2.5rem); }
.hersteller h3 { font-size: 2rem; margin-bottom: .2rem; }
.hersteller .herkunft { font-size: .9rem; color: var(--licht); margin: 0 0 1.1rem; }
.hersteller p { color: var(--text-2); font-size: .98rem; }
.hersteller dl { margin: 1.25rem 0 0; font-size: .92rem; display: grid; gap: .4rem; }
.hersteller dt { color: var(--text-3); font-size: .8rem; }
.hersteller dd { margin: 0 0 .5rem; color: var(--text); }
.hersteller .textlinks { margin-top: auto; padding-top: 1.25rem; }
@media (max-width: 900px) {
  .hersteller { grid-template-columns: 1fr; }
  .hersteller article { padding: 2rem 0; }
  .hersteller article + article { border-left: 0; border-top: 1px solid var(--linie); padding-left: 0; }
}
.zusagen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 2.5rem; list-style: none; padding: 0; }
.zusagen li { display: flex; flex-direction: column; gap: .35rem; font-size: .92rem; color: var(--text-2); }
.zusagen strong { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 7.5vw, 2.3rem); line-height: 1; color: var(--licht-2); overflow-wrap: anywhere; hyphens: manual; }
@media (max-width: 900px) { .zusagen { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1rem; } }

/* ---------- Videos (YouTube erst nach Klick) ---------- */
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.videos--2 { grid-template-columns: repeat(2, 1fr); }
.videos--4 { grid-template-columns: repeat(4, 1fr); }
.videos--kurz { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1000px) { .videos--4, .videos--kurz { grid-template-columns: repeat(2, 1fr); } .videos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .videos, .videos--2, .videos--4 { grid-template-columns: 1fr; } }
.yt { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--flaeche); isolation: isolate; color: var(--text); text-decoration: none; }
.yt--kurz { aspect-ratio: 9 / 16; }
.yt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease, opacity .3s ease; }
.yt::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 15, 24, 0) 60%, rgba(10, 15, 24, .45) 100%); }
.video { margin: 0; min-width: 0; }
.video__titel { margin-top: .7rem; font-size: .9rem; line-height: 1.4; color: var(--text-2); }
.video:has(.yt:hover) .video__titel { color: var(--text); }
.yt:hover img { transform: scale(1.03); }
/* Start-Knopf mittig mit dunkler Fläche: liegt nicht über Logos in den Ecken der Vorschaubilder und liest sich klar
   als eigener Knopf, auch wo das Vorschaubild ein kleines eingebranntes Play-Symbol trägt */
.yt__start { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(236, 230, 218, .75); background: rgba(10, 15, 24, .72); box-shadow: 0 4px 18px rgba(0, 0, 0, .35); transition: background-color .2s ease, border-color .2s ease; }
.yt:hover .yt__start { background: var(--licht); border-color: var(--licht); color: var(--licht-ink); }
.yt__start svg { width: 18px; height: 18px; margin-left: 3px; }
.yt--kurz + .video__titel { font-size: .84rem; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }
.yt-hinweis { font-size: .86rem; color: var(--text-3); margin-top: 1.25rem; }
.film { margin: 0; }
.film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--radius); background: var(--flaeche); }
.videogruppe { margin-top: 3rem; }
.videogruppe h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin-bottom: 1rem; color: var(--text); }

/* ---------- Stromspar-Rechner ---------- */
.rechner { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--linie-2); border-radius: 6px; overflow: hidden; }
.rechner__eingabe { padding: clamp(1.5rem, 3.5vw, 2.75rem); background: var(--flaeche); display: grid; gap: 1.75rem; align-content: start; }
.rechner__ergebnis { padding: clamp(1.5rem, 3.5vw, 2.75rem); background: var(--nacht-2); border-left: 1px solid var(--linie); }
.rechner .feldname { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; color: var(--text-2); margin-bottom: .6rem; }
.rechner output { color: var(--text); font-weight: 600; }
.segment { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--linie-2); border-radius: var(--radius); overflow: hidden; }
.segment--4 { grid-template-columns: repeat(4, 1fr); }
.segment--5 { grid-template-columns: repeat(5, 1fr); }
.segment input { position: absolute; opacity: 0; pointer-events: none; }
.segment label { display: grid; gap: .1rem; text-align: center; padding: .7rem .3rem; cursor: pointer; font-size: .78rem; color: var(--text-3); transition: background-color .2s ease, color .2s ease; }
.segment label + input + label { border-left: 1px solid var(--linie); }
.segment label b { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; color: var(--text); line-height: 1.1; }
.segment input:checked + label { background: var(--licht); color: var(--licht-ink); }
.segment input:checked + label b { color: var(--licht-ink); }
.segment input:focus-visible + label { outline: 2px solid var(--licht); outline-offset: -4px; }
/* Sehr schmale Handys: fünf LED-Stufen brauchen kleinere Werte, sonst stossen «1.6 W» und «8 W» an die Zellränder */
@media (max-width: 350px) { .segment--5 label { padding-inline: .15rem; } .segment--5 label b { font-size: 1.15rem; } }
.regler { width: 100%; height: 4px; border-radius: 4px; -webkit-appearance: none; appearance: none; background: linear-gradient(90deg, var(--licht) var(--fill, 50%), rgba(236, 230, 218, .18) var(--fill, 50%)); outline-offset: 6px; cursor: pointer; }
.regler::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--text); border: 2px solid var(--licht); box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.regler::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--text); border: 2px solid var(--licht); }
.ergebnis-gross { font-family: var(--serif); font-size: clamp(3rem, 6vw, 4.6rem); line-height: 1; color: var(--licht-2); margin: .4rem 0 .2rem; }
.ergebnis-gross small { font-family: var(--sans); font-size: .95rem; color: var(--text-2); margin-left: .5rem; }
.balken { display: grid; gap: .7rem; margin-top: 1.5rem; }
.balken > div { display: grid; grid-template-columns: 70px 1fr; gap: .8rem; align-items: center; font-size: .82rem; color: var(--text-3); }
.balken__spur { height: 6px; border-radius: 6px; background: rgba(236, 230, 218, .08); overflow: hidden; }
.balken__fuellung { height: 100%; width: var(--w, 50%); border-radius: 6px; transition: width .5s ease; }
.balken__alt .balken__fuellung { background: rgba(236, 230, 218, .4); }
.balken__neu .balken__fuellung { background: var(--licht); }
.ergebnis-zeilen { margin: 1.5rem 0 0; display: grid; gap: 0; }
.ergebnis-zeilen div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--linie); font-size: .94rem; color: var(--text-2); }
.ergebnis-zeilen dt { margin: 0; } .ergebnis-zeilen dd { margin: 0; color: var(--text); font-weight: 600; white-space: nowrap; }
.rechner__hinweis { margin: 1.25rem 0 0; font-size: .82rem; color: var(--text-3); line-height: 1.55; }
@media (max-width: 860px) { .rechner { grid-template-columns: 1fr; } .rechner__ergebnis { border-left: 0; border-top: 1px solid var(--linie); } }

/* ---------- Lichtfarben-Simulator ---------- */
.kelvin { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.kelvin__buehne { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 6px; background: var(--flaeche); }
.kelvin__buehne img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) brightness(.95); }
.kelvin__toenung { position: absolute; inset: 0; mix-blend-mode: color; opacity: .55; background: var(--kelvin-farbe, #ffb46b); transition: background .25s ease; }
.kelvin__glanz { position: absolute; inset: 0; mix-blend-mode: soft-light; opacity: .45; background: var(--kelvin-farbe, #ffb46b); transition: background .25s ease; }
.kelvin__anzeige { position: absolute; left: 0; top: 0; padding: .8rem 1.1rem; background: rgba(10, 15, 24, .78); font-family: var(--serif); font-size: 1.8rem; line-height: 1; border-bottom-right-radius: 6px; }
.kelvin__anzeige small { font-family: var(--sans); font-size: .78rem; color: var(--licht); margin-left: .5rem; }
.kelvin label { display: block; margin: 1.5rem 0 .8rem; font-size: .9rem; color: var(--text-2); }
/* Skala unter dem Regler: 3000 K an der richtigen Stelle ((3000 − 1800) / (6500 − 1800) = 25.5 %, --pos aus bauen.py).
   Der Mittelpunkt des Reglerknopfs läuft von 11 px bis Breite − 11 px (Knopf 22 px). */
.skala { position: relative; display: flex; justify-content: space-between; align-items: flex-start; font-size: .8rem; line-height: 1.3; color: var(--text-3); margin-top: .7rem; }
.skala small { display: block; font-size: .75rem; }
.skala > span:last-child { text-align: right; }
.skala__marke { position: absolute; top: 0; left: calc(11px + (100% - 22px) * var(--pos, .2553)); transform: translateX(-50%); white-space: nowrap; color: var(--text-2); }
.skala__marke::before { content: ""; position: absolute; left: 50%; top: -.45rem; width: 1px; height: .35rem; background: var(--linie-2); }
.kelvin__urteil { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--linie); font-size: .95rem; color: var(--text-2); min-height: 6.5rem; }
.kelvin__urteil b { display: block; color: var(--licht-2); font-weight: 600; margin-bottom: .3rem; }
.kelvin__urteil.ist-kalt b { color: #d8936d; }
@media (max-width: 900px) { .kelvin { grid-template-columns: 1fr; } }

/* ---------- Kontakt / Formular ---------- */
.kontakt { position: relative; isolation: isolate; overflow: hidden; }
.kontakt__bild { position: absolute; inset: 0; z-index: -2; }
.kontakt__bild img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.kontakt::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--nacht) 0%, rgba(10, 15, 24, 0) 22%), linear-gradient(90deg, rgba(10, 15, 24, .94) 10%, rgba(10, 15, 24, .72) 55%, rgba(10, 15, 24, .86) 100%); }
.kontakt__raster { display: grid; grid-template-columns: 1fr minmax(0, 560px); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.kontaktdaten { list-style: none; padding: 0; margin: 2.25rem 0 0; display: grid; gap: 1.1rem; }
.kontaktdaten li { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--linie); }
.kontaktdaten li > span { color: var(--text-3); font-size: .9rem; }
.kontaktdaten a { text-decoration: none; }
.kontaktdaten a:hover { color: var(--licht-2); }
@media (max-width: 900px) { .kontakt__raster { grid-template-columns: 1fr; } .kontaktdaten li { grid-template-columns: 90px 1fr; } }
.band { text-align: left; }
.band .knoepfe { margin-top: 2rem; }

.formkarte { background: rgba(18, 26, 39, .94); border: 1px solid var(--linie); border-radius: 6px; padding: clamp(1.4rem, 3vw, 2.4rem); box-shadow: var(--schatten); position: relative; }
.formkarte h2, .formkarte h3 { margin-bottom: .5rem; }
.formkarte h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); }
.formkarte > p { color: var(--text-2); font-size: .95rem; }
.felder { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.25rem; }
.felder > * { min-width: 0; }
.feld { display: flex; flex-direction: column; gap: .4rem; }
.feld--breit { grid-column: 1 / -1; }
.feld label { font-size: .86rem; color: var(--text-2); }
.feld input, .feld textarea, .feld select {
  width: 100%; min-height: 50px; padding: .75rem .9rem; border-radius: var(--radius);
  border: 1px solid var(--linie-2); background: rgba(10, 15, 24, .6); color: var(--text); font-size: 1rem;
  transition: border-color .2s ease, background-color .2s ease;
}
.feld select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem; text-overflow: ellipsis; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 1.25rem) 52%, calc(100% - .9rem) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
.feld select option { background: var(--flaeche); color: var(--text); }
.feld textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.feld input:focus, .feld textarea:focus, .feld select:focus { outline: none; border-color: var(--licht); background-color: rgba(10, 15, 24, .85); }
/* Tastaturfokus wie überall: 2 px goldene Umrandung */
.feld input:focus-visible, .feld textarea:focus-visible, .feld select:focus-visible { outline: 2px solid var(--licht); outline-offset: 2px; }
.feld input::placeholder, .feld textarea::placeholder { color: #727780; }
.zustimmung { grid-column: 1 / -1; display: flex; gap: .7rem; align-items: flex-start; font-size: .88rem; color: var(--text-2); }
.zustimmung input { width: 20px; height: 20px; margin: .15rem 0 0; accent-color: var(--licht); flex: none; }
.honig { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formfuss { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .25rem; }
.auswahl-kurz { grid-column: 1 / -1; border: 1px dashed var(--linie-2); border-radius: var(--radius); padding: .9rem 1rem; font-size: .9rem; color: var(--text-2); }
.auswahl-kurz strong { color: var(--text); font-weight: 500; }
.auswahl-kurz ul { margin: .5rem 0 0; padding-left: 1.1rem; }
.formmeldung { grid-column: 1 / -1; padding: 1rem 1.1rem; border-radius: var(--radius); background: rgba(231, 181, 108, .12); border: 1px solid rgba(231, 181, 108, .4); color: var(--licht-2); font-size: .95rem; }
.formmeldung.ist-fehler { background: rgba(216, 147, 109, .12); border-color: rgba(216, 147, 109, .5); color: #f0c2a6; }
.formerfolg { text-align: center; padding: 2rem 0 .5rem; }
.formerfolg h3 { margin-bottom: .6rem; }
.formerfolg p { color: var(--text-2); }
.formkarte.ist-gesendet form { display: none; }
.liste-hinweis { margin-top: 1.25rem; padding: .9rem 1rem; border: 1px dashed var(--linie-2); border-radius: var(--radius); font-size: .92rem; color: var(--text-2); }
@media (max-width: 600px) { .felder { grid-template-columns: 1fr; } .formfuss .btn { width: 100%; } }

.kontaktkarten { display: grid; gap: .75rem; margin-top: 2rem; }
.kontaktkarte { display: grid; grid-template-columns: 2.6rem 1fr; gap: 1rem; align-items: center; padding: 1.1rem 1.2rem; border: 1px solid var(--linie); border-radius: var(--radius); text-decoration: none; background: rgba(18, 26, 39, .5); transition: border-color .2s ease; }
a.kontaktkarte:hover { border-color: var(--licht); }
.kontaktkarte svg { width: 22px; height: 22px; color: var(--licht); justify-self: center; }
.kontaktkarte small { display: block; font-size: .8rem; color: var(--text-3); }
.kontaktkarte strong { display: block; font-weight: 500; font-size: 1.02rem; }
.kontaktkarte span.zusatz { display: block; font-size: .84rem; color: var(--text-2); }

/* ---------- Linkkacheln ---------- */
.kacheln { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.kacheln--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .kacheln, .kacheln--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .kacheln, .kacheln--4 { grid-template-columns: 1fr; } }
.kachel { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.2rem; border: 1px solid var(--linie); border-radius: var(--radius); text-decoration: none; transition: border-color .2s ease, background-color .2s ease; min-width: 0; }
.kachel:hover { border-color: var(--licht); background: rgba(231, 181, 108, .05); }
.kachel strong { display: block; font-weight: 500; }
.kachel span { display: block; font-size: .86rem; color: var(--text-3); }
.kachel::after { content: "→"; color: var(--licht); flex: none; }
.kachel[target="_blank"]::after { content: "↗"; }

/* Downloads (PDF) */
.pdfs { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.pdf { display: inline-flex; align-items: center; gap: .8rem; padding: .85rem 1.1rem; border: 1px solid var(--linie-2); border-radius: var(--radius); text-decoration: none; background: rgba(10, 15, 24, .5); }
.pdf:hover { border-color: var(--licht); }
.pdf svg { width: 22px; height: 22px; color: var(--licht); }
.pdf small { display: block; font-size: .8rem; color: var(--text-3); }

/* Tabelle (Hudson-Vergleichswerte) */
.tabelle { width: 100%; border-collapse: collapse; font-size: .94rem; margin-top: 1.25rem; }
.tabelle th, .tabelle td { text-align: left; padding: .65rem .5rem .65rem 0; border-bottom: 1px solid var(--linie); }
.tabelle th { font-weight: 500; color: var(--text-3); font-size: .84rem; }

/* ---------- Rechtstexte ---------- */
.rechtstext { max-width: 760px; }
.rechtstext h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin: 3rem 0 1rem; }
.rechtstext h2:first-child { margin-top: 0; }
.rechtstext h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin: 1.75rem 0 .5rem; }
.rechtstext p, .rechtstext li { color: var(--text-2); }
.rechtstext ul { padding-left: 1.2rem; }
.rechtstext li { margin-bottom: .4rem; }
.rechtstext strong { color: var(--text); font-weight: 600; }
.rechtstext a { color: var(--licht-2); }
.inhalt-liste { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.inhalt-liste a { display: inline-block; padding: .35rem .8rem; border: 1px solid var(--linie-2); border-radius: 999px; font-size: .86rem; color: var(--text-2); text-decoration: none; }
.inhalt-liste a:hover { border-color: var(--licht); color: var(--text); }

/* ---------- Fuss ---------- */
.fuss { border-top: 1px solid var(--linie); padding: clamp(3.5rem, 7vw, 5rem) 0 2rem; background: #070b12; font-size: .94rem; color: var(--text-2); }
.fuss__raster { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.fuss__marke img { width: 300px; height: auto; margin: -24px 0 .5rem -2px; }
.fuss h2 { margin: 0 0 1rem; font-family: var(--sans); font-size: .82rem; font-weight: 600; color: var(--text); letter-spacing: .02em; line-height: 1.4; }
.fuss ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.fuss a { text-decoration: none; }
.fuss a:hover { color: var(--text); }
.fuss__marken { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--linie); font-size: .86rem; color: var(--text-3); }
.fuss__marken a { color: var(--text-2); }
.fuss__unten { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--linie); font-size: .84rem; color: var(--text-3); }
.fuss__unten nav { display: flex; gap: 1.25rem; }
@media (max-width: 900px) { .fuss__raster { grid-template-columns: 1fr 1fr; } .fuss__raster > :first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .fuss a { display: inline-block; padding: .3rem 0; } .fuss__marke img { width: 260px; margin-top: -20px; } }

/* ---------- Handy-Aktionsleiste ---------- */
.aktionsleiste { display: none; }
@media (max-width: 760px) {
  .aktionsleiste {
    display: grid; grid-template-columns: 1fr 1fr 1.35fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: rgba(10, 15, 24, .95); border-top: 1px solid var(--linie); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    padding-bottom: env(safe-area-inset-bottom); transform: translateY(110%); transition: transform .3s ease;
  }
  .aktionsleiste.ist-sichtbar { transform: none; }
  .aktionsleiste a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; min-height: 60px; font-size: .78rem; text-decoration: none; color: var(--text-2); }
  .aktionsleiste a + a { border-left: 1px solid var(--linie); }
  .aktionsleiste svg { width: 20px; height: 20px; color: var(--licht); }
  .aktionsleiste a.ist-haupt { background: var(--licht); color: var(--licht-ink); font-weight: 600; }
  .aktionsleiste a.ist-haupt svg { color: var(--licht-ink); }
  body.hat-leiste .fuss { padding-bottom: calc(2rem + 64px + env(safe-area-inset-bottom)); }
}

/* ---------- Katalog ---------- */
@media (min-width: 601px) { #katalog-raster { grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); } }
.katalog { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 3.25rem); align-items: start; padding-bottom: clamp(4rem, 8vw, 7rem); }
.bereich-chips { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding: .25rem 0 1.5rem; margin-bottom: .25rem; }
.bereich-chips::-webkit-scrollbar { display: none; }
@media (min-width: 981px) { .bereich-chips { flex-wrap: wrap; overflow: visible; } }
@media (max-width: 980px) { .bereich-chips { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); padding-right: 2rem; } }
.chip-auswahl { position: relative; flex: none; }
.chip-auswahl input { position: absolute; opacity: 0; pointer-events: none; }
.chip-auswahl span {
  display: inline-flex; align-items: center; gap: .45rem; height: 42px; padding: 0 1rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--linie-2); color: var(--text-2); font-size: .92rem; white-space: nowrap; transition: all .2s ease; user-select: none;
}
.chip-auswahl span small { color: var(--text-3); font-size: .78rem; }
.chip-auswahl span:hover { border-color: var(--text-3); color: var(--text); }
.chip-auswahl input:checked + span { background: var(--licht); border-color: var(--licht); color: var(--licht-ink); }
.chip-auswahl input:checked + span small { color: var(--licht-ink); }
.chip-auswahl.ist-leer span { opacity: .45; cursor: default; }
.chip-auswahl input:focus-visible + span { outline: 2px solid var(--licht); outline-offset: 2px; }
.filter { position: sticky; top: calc(var(--kopf-h-klein) + 1rem); display: grid; gap: 1.75rem; max-height: calc(100vh - var(--kopf-h-klein) - 2rem); overflow-y: auto; padding: 0 .25rem 0 .4rem; margin-left: -.4rem; scrollbar-width: thin; }
.filter fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.filter legend { font-size: .82rem; font-weight: 600; color: var(--text); margin-bottom: .75rem; padding: 0; letter-spacing: .02em; }
.filter label { display: flex; align-items: center; gap: .7rem; padding: .38rem 0; font-size: .94rem; color: var(--text-2); cursor: pointer; }
.filter label:hover { color: var(--text); }
.filter input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; border: 1px solid var(--linie-2); border-radius: 3px; margin: 0; display: grid; place-items: center; flex: none; background: transparent; cursor: pointer; }
.filter input[type="checkbox"]:checked { background: var(--licht); border-color: var(--licht); }
.filter input[type="checkbox"]:checked::after { content: ""; width: 9px; height: 5px; border: solid var(--licht-ink); border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.filter label small { margin-left: auto; color: var(--text-3); font-size: .8rem; }
.filter label.ist-leer { opacity: .45; cursor: default; }   /* Eingabe ist dann deaktiviert (nacht.js) */
.filter label.ist-leer input { cursor: default; }
.suchfeld { position: relative; display: block; }
.suchfeld input { width: 100%; height: 46px; padding: 0 1rem 0 2.6rem; border-radius: 999px; border: 1px solid var(--linie-2); background: rgba(18, 26, 39, .7); font-size: .95rem; }
.suchfeld input:focus { outline: none; border-color: var(--licht); }
.suchfeld input:focus-visible { outline: 2px solid var(--licht); outline-offset: 2px; }
.suchfeld svg { position: absolute; left: 1rem; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--text-3); }
.katalog__leiste { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; margin-bottom: 1.5rem; }
.katalog__suche { flex: 1 1 260px; max-width: 420px; }
.katalog__anzahl { font-size: .95rem; color: var(--text-2); margin: 0; }
.katalog__anzahl strong { color: var(--text); font-weight: 600; }
.filter-knopf { display: none; }
.filter-zuruecksetzen { background: none; border: 0; padding: 0; color: var(--licht-2); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; font-size: .9rem; }
.mehr { display: flex; flex-direction: column; align-items: center; gap: .75rem; margin-top: 3rem; }
.leer { padding: 3rem 1.5rem; text-align: center; border: 1px dashed var(--linie-2); border-radius: var(--radius); color: var(--text-2); }
.filter__kopf, .filter__fuss, .filter-schleier { display: none; }
.katalog-hinweis { margin-top: 2.5rem; font-size: .86rem; color: var(--text-3); max-width: 46rem; }
html:not(.js) .nur-js { display: none !important; }

@media (max-width: 980px) {
  .katalog { grid-template-columns: 1fr; }
  .filter-knopf { display: inline-flex; }
  .filter {
    position: fixed; inset: auto 0 0 0; top: auto; z-index: 60; max-height: 82vh; background: var(--flaeche);
    margin-left: 0;   /* die -.4rem der Seitenspalte verschöben das Blatt sonst nach links */
    border-top: 1px solid var(--linie-2); border-radius: 14px 14px 0 0; padding: 0 var(--rand); gap: 1.5rem;   /* unten ohne Abstand: der sticky Fuss deckt bis zur Blattkante */
    transform: translateY(105%); visibility: hidden; transition: transform .35s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .35s; box-shadow: 0 -20px 60px rgba(0, 0, 0, .5);
  }
  html:not(.js) .filter { position: static; transform: none; visibility: visible; max-height: none; box-shadow: none; border-radius: var(--radius); padding: 1rem; }
  .filter-offen .filter { transform: none; visibility: visible; transition: transform .35s cubic-bezier(.2, .7, .2, 1), visibility 0s; }
  .filter__kopf { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: var(--flaeche); padding: 1.1rem 0 .75rem; z-index: 1; border-bottom: 1px solid var(--linie); }
  .filter__kopf strong { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; }
  .filter__fuss { display: block; position: sticky; bottom: 0; background: var(--flaeche); padding: .75rem 0 calc(1.25rem + env(safe-area-inset-bottom, 0px)); }
  .filter__fuss .btn { width: 100%; }
  .filter-schleier { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 55; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
  .filter-offen .filter-schleier { opacity: 1; pointer-events: auto; }
  .filter-offen { overflow: hidden; }
}

/* ---------- Produktseite ---------- */
.produktseite { padding-top: calc(var(--kopf-h) + 1.5rem); }
.produkt {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); grid-template-rows: auto 1fr;
  grid-template-areas: "galerie titel" "galerie kopf"; column-gap: clamp(2rem, 5vw, 5rem); row-gap: 0; align-items: start; padding-bottom: clamp(3rem, 6vw, 5rem);
}
.produkt__titel { grid-area: titel; }
.produkt__kopf { grid-area: kopf; }
.galerie { grid-area: galerie; position: sticky; top: calc(var(--kopf-h-klein) + 1.25rem); }
.galerie__haupt {
  aspect-ratio: 1 / 1; border-radius: 6px; overflow: hidden; position: relative;
  background: radial-gradient(110% 90% at 50% 15%, #f5f2ec 0%, var(--atelier) 50%, var(--atelier-2) 100%);
}
.galerie__haupt > img { width: 100%; height: 100%; object-fit: contain; padding: 7%; mix-blend-mode: multiply; }
.galerie__haupt > img.ist-foto { object-fit: cover; padding: 0; mix-blend-mode: normal; }
.galerie__haupt--leer { background: radial-gradient(110% 80% at 50% 20%, #1a2433 0%, var(--flaeche) 70%); border: 1px solid var(--linie); }
.galerie__daumen { display: flex; gap: .6rem; margin-top: .75rem; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.galerie__daumen button {
  flex: none; width: 78px; height: 78px; padding: 0; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  border: 1px solid transparent; background: var(--atelier); opacity: .7; transition: opacity .2s ease, border-color .2s ease;
}
.galerie__daumen button[aria-current="true"] { border-color: var(--licht); opacity: 1; box-shadow: 0 0 0 1px var(--licht); }
.galerie__daumen button:hover { opacity: 1; }
.galerie__daumen img { width: 100%; height: 100%; object-fit: contain; padding: 8%; mix-blend-mode: multiply; }
.galerie__daumen img.ist-foto { object-fit: cover; padding: 0; mix-blend-mode: normal; }
.galerie__quelle { font-size: .8rem; color: var(--text-3); margin-top: .75rem; }

.produkt__titel .marke-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .45rem; font-size: .9rem; color: var(--licht); margin-bottom: 1rem; }
.produkt__titel .marke-zeile span { color: var(--text-3); }
.produkt__titel h1 { font-size: clamp(2.3rem, 4.2vw, 3.6rem); line-height: 1.04; }
.produkt__bauart { font-size: 1.15rem; color: var(--text-2); margin: .6rem 0 0; }
.produkt__orig { color: var(--text-3); font-size: .9rem; margin: .5rem 0 0; }
.produkt__beschreibung { margin-top: 1.5rem; color: var(--text-2); font-size: 1.04rem; }
.merkmale { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .55rem; }
.merkmale li { display: flex; gap: .8rem; font-size: .97rem; }
.merkmale li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: .62em; border-radius: 50%; background: var(--licht); box-shadow: 0 0 10px 2px rgba(231, 181, 108, .4); }
.badges { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.25rem; }
.produkt__fassung { margin: 1.25rem 0 0; font-size: .92rem; color: var(--text-2); }
.badge { font-size: .8rem; padding: .3rem .7rem; border-radius: 999px; border: 1px solid var(--linie-2); color: var(--text-2); }
.badge--licht { border-color: rgba(231, 181, 108, .55); color: var(--licht-2); }

.konfig { margin-top: 2.25rem; border-top: 1px solid var(--linie); padding-top: 1.75rem; }
.konfig__titel { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .35rem; }
.konfig__titel h2 { font-size: 1.9rem; }
.konfig__intro { color: var(--text-3); font-size: .9rem; margin-bottom: 1.25rem; }
.konfig fieldset { border: 0; padding: 0; margin: 0 0 1.4rem; min-width: 0; }
/* Volle Breite: Die Legende passt sich sonst dem Inhalt an und ein langer Wert machte die Seite breiter als den Bildschirm */
.konfig legend { display: flex; flex-wrap: wrap; gap: .25rem .6rem; align-items: baseline; width: 100%; max-width: 100%; padding: 0; margin-bottom: .65rem; font-size: .9rem; font-weight: 600; color: var(--text); }
/* Gewählter Wert neben der Gruppenbezeichnung: eine Zeile, damit Wählen und Abwählen die Optionen nicht verschiebt
   (die volle Wahl steht markiert in der Option) */
.konfig__wahl { font-weight: 400; color: var(--text-3); flex: 1 1 0; min-width: 6em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Schmale Handys: Wert immer in einer eigenen Zeile unter der Bezeichnung, sonst bleiben neben langen Bezeichnungen nur 6em */
@media (max-width: 380px) { .konfig__wahl { flex-basis: 100%; } }
.konfig__wahl.ist-gewaehlt { color: var(--licht-2); }
.optionen { display: flex; flex-wrap: wrap; gap: .45rem; }
.option { position: relative; max-width: 100%; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option span {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 40px; padding: .45rem .85rem; border-radius: var(--radius);
  border: 1px solid var(--linie-2); font-size: .88rem; line-height: 1.3; color: var(--text-2); cursor: pointer; transition: all .18s ease; user-select: none;
}
.option span:hover { border-color: var(--text-3); color: var(--text); }
.option input:checked + span { border-color: var(--licht); color: var(--text); background: rgba(231, 181, 108, .12); box-shadow: inset 0 0 0 1px var(--licht); }
.option input:focus-visible + span { outline: 2px solid var(--licht); outline-offset: 2px; }
.option input:disabled + span { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.muster { width: 16px; height: 16px; border-radius: 50%; flex: none; background: var(--m, #888); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.muster--licht { box-shadow: 0 0 8px 1px var(--m), inset 0 0 0 1px rgba(255, 255, 255, .3); }
.muster--ral { background: conic-gradient(#b33, #d9a13b, #4a7b3a, #2b5d9b, #6b3a87, #b33); }
.muster--rgb { background: conic-gradient(#ff4d4d, #ffd24d, #4dff88, #4dc3ff, #b84dff, #ff4d4d); }
.konfig__hinweis { font-size: .84rem; color: var(--text-3); margin: .55rem 0 0; }
.optionen > .konfig__hinweis { flex-basis: 100%; margin: .1rem 0 .3rem; }
/* Ein- und Ausblenden eines Hinweises soll die Seite nicht verschieben (Scroll-Anker des Browsers); das Nachführen
   übernimmt nacht.js (hinweisZeigen) */
.konfig { overflow-anchor: none; }
.konfig__info { font-size: .88rem; color: var(--text-2); border-left: 2px solid var(--linie-2); padding: .2rem 0 .2rem .9rem; margin: 0 0 1.4rem; }
.konfig__info p { margin: 0 0 .35rem; }
.konfig .feld { margin-bottom: 1.4rem; }
.konfig__abschluss { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; align-items: center; padding-top: 1.25rem; border-top: 1px solid var(--linie); }
.konfig__abschluss .anzahl { justify-self: start; }
.anzahl { display: inline-flex; align-items: center; border: 1px solid var(--linie-2); border-radius: 999px; height: 50px; }
.anzahl button { width: 46px; height: 100%; border: 0; background: none; cursor: pointer; font-size: 1.25rem; color: var(--text-2); border-radius: 999px; }
.anzahl button:hover { color: var(--text); }
.anzahl input { width: 52px; height: 100%; border: 0; background: none; text-align: center; font-size: 1rem; -moz-appearance: textfield; appearance: textfield; }
.anzahl input::-webkit-outer-spin-button, .anzahl input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.konfig__knoepfe { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: .6rem; }
.konfig__knoepfe .btn { width: 100%; padding-inline: .9rem; white-space: normal; line-height: 1.25; }
.konfig__status { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: .8rem 1rem; border-radius: var(--radius); background: rgba(231, 181, 108, .1); border: 1px solid rgba(231, 181, 108, .4); font-size: .92rem; color: var(--licht-2); }
.konfig__status p { margin: 0; }
.preis-hinweis { grid-column: 1 / -1; font-size: .86rem; color: var(--text-3); margin: .25rem 0 0; }
@media (max-width: 560px) {
  .konfig__abschluss { grid-template-columns: 1fr; }
  .konfig__knoepfe { grid-template-columns: 1fr; }
}
.garantie { margin-top: 2rem; }
.garantie dl { margin: 0; display: grid; gap: .1rem; }
.garantie dl > div { display: grid; grid-template-columns: minmax(0, 11rem) 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--linie); font-size: .94rem; }
.garantie dt { color: var(--text-3); }
.garantie dd { margin: 0; color: var(--text); }
@media (max-width: 560px) { .garantie dl > div { grid-template-columns: 1fr; gap: .2rem; } }

.details { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--linie); }
.details > * { min-width: 0; }
.details h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin-bottom: 1.5rem; }
.techtabelle { width: 100%; border-collapse: collapse; font-size: .94rem; table-layout: fixed; }
.techtabelle th, .techtabelle td { text-align: left; vertical-align: top; padding: .8rem 0; border-bottom: 1px solid var(--linie); overflow-wrap: break-word; }
.techtabelle th { -webkit-hyphens: auto; hyphens: auto; }
.techtabelle th { width: 34%; font-weight: 400; color: var(--text-3); padding-right: 1.25rem; }
.techtabelle td { color: var(--text); }
.techtabelle td ul { margin: 0; padding-left: 1rem; }
/* Die Zusatzzeile («IES · Herstellerdatei «3.6W» · beim Hersteller ↗») steht rechts, solange beides in eine Zeile passt,
   sonst darunter und bricht selbst um. Mit nowrap lief sie bei 901–958 px (zweispaltige Details) aus der Seite. */
.downloads { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; }
.downloads a { display: flex; flex-wrap: wrap; justify-content: space-between; column-gap: 1rem; row-gap: .2rem; padding: .9rem 1rem; border: 1px solid var(--linie); border-radius: var(--radius); text-decoration: none; font-size: .94rem; transition: border-color .2s ease; }
.downloads a:hover { border-color: var(--licht); }
.downloads small { color: var(--text-3); min-width: 0; }
@media (max-width: 420px) { .downloads a { flex-direction: column; gap: .2rem; } .downloads small { white-space: normal; } }
.hinweise { margin-top: 2.5rem; }
.hinweise h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin-bottom: .6rem; }
.hinweise ul { padding-left: 1.1rem; color: var(--text-2); font-size: .94rem; }
@media (max-width: 900px) {
  .produkt { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "titel" "galerie" "kopf"; row-gap: 1.5rem; }
  .produkt__titel .marke-zeile { margin-bottom: .6rem; }
  .galerie { position: static; }
  .details { grid-template-columns: 1fr; }
  .techtabelle th { width: 40%; }
}
/* Niedrige Bildschirme (Handy quer, z. B. 844 × 390): Das quadratische Hauptbild wird höchstens 70 % der Bildschirmhöhe
   gross (sonst 776 × 776 px, zwei Bildschirmhöhen Bild). Format und Bildausschnitt bleiben wie sonst. Ab 640 px Breite
   stehen Bild und Text nebeneinander. */
@media (max-height: 500px) {
  .galerie { position: static; }
  .galerie__haupt { width: min(100%, 70vh); width: min(100%, 70svh); }
}
@media (max-width: 900px) and (min-width: 640px) and (max-height: 500px) {
  .produkt {
    grid-template-rows: auto 1fr;
    grid-template-areas: "galerie titel" "galerie kopf"; column-gap: 2rem; row-gap: 0;
  }
  .produkt__titel .marke-zeile { margin-bottom: 1rem; }
}
/* Bildspalte so breit wie das begrenzte Bild (höchstens 45 %), sonst klafft zwischen Bild und Text eine Lücke */
@media (min-width: 640px) and (max-height: 500px) {
  .produkt { grid-template-columns: minmax(0, min(70vh, 45%)) minmax(0, 1fr); grid-template-columns: minmax(0, min(70svh, 45%)) minmax(0, 1fr); }
}

/* Leiste unten auf der Produktseite (Handy) */
.leiste-mobil { display: none; }
@media (max-width: 900px) {
  .leiste-mobil {
    display: flex; gap: .6rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: .7rem var(--rand) calc(.7rem + env(safe-area-inset-bottom));
    background: rgba(10, 15, 24, .95); border-top: 1px solid var(--linie); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    transform: translateY(110%); transition: transform .3s ease;
  }
  .leiste-mobil.ist-sichtbar { transform: none; }
  .leiste-mobil .btn { flex: 1; min-width: 0; padding-inline: .8rem; white-space: normal; line-height: 1.2; }
  .leiste-mobil .btn.ist-bestaetigt { background: var(--flaeche-2); color: var(--licht-2); border-color: var(--licht); }
  body.hat-leiste-produkt .fuss { padding-bottom: calc(2rem + 72px + env(safe-area-inset-bottom)); }
}
/* 320 px: «Zusammenstellen» braucht sonst fast die ganze Pille */
@media (max-width: 350px) { .leiste-mobil { gap: .5rem; } .leiste-mobil .btn { font-size: .9rem; padding-inline: .6rem; } }

/* Anfrageliste */
.anfrage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; padding-bottom: clamp(4rem, 8vw, 7rem); }
.posten { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linie); }
.posten li { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 1.1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--linie); align-items: start; }
.posten__bild { width: 96px; height: 96px; border-radius: var(--radius); background: var(--atelier); overflow: hidden; display: block; }
.posten__bild img { width: 100%; height: 100%; object-fit: contain; padding: 8%; mix-blend-mode: multiply; }
.posten__bild.ist-leer { background: var(--flaeche); border: 1px solid var(--linie); display: grid; place-items: center; }
.posten__bild.ist-leer svg { width: 46%; height: auto; color: var(--text-3); opacity: .7; }
.posten h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 600; letter-spacing: 0; line-height: 1.35; }
.posten h3 a { text-decoration: none; }
.posten .marke-klein { font-size: .82rem; color: var(--licht); margin: 0 0 .25rem; }
.posten dl { margin: .55rem 0 0; display: grid; grid-template-columns: auto 1fr; gap: .2rem .9rem; font-size: .86rem; }
.posten dt { color: var(--text-3); }
.posten dd { margin: 0; color: var(--text-2); overflow-wrap: anywhere; }
.posten__offen { margin: .45rem 0 0; font-size: .82rem; color: var(--text-3); }
.posten__aktionen { display: flex; flex-direction: column; align-items: flex-end; gap: .6rem; }
.posten__aktionen .anzahl { height: 40px; }
.posten__aktionen .anzahl button { width: 36px; }
.posten__aktionen .anzahl input { width: 40px; }
.entfernen { background: none; border: 0; color: var(--text-3); font-size: .85rem; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; padding: .25rem 0; }
.entfernen:hover { color: var(--text); }
.anfrage__leer { padding: 2.5rem 1.5rem; border: 1px dashed var(--linie-2); border-radius: var(--radius); text-align: center; color: var(--text-2); }
.anfrage .formkarte { position: sticky; top: calc(var(--kopf-h-klein) + 1.25rem); }
@media (max-width: 980px) { .anfrage { grid-template-columns: 1fr; } .anfrage .formkarte { position: static; } }
@media (max-width: 560px) {
  .posten li { grid-template-columns: 72px minmax(0, 1fr); }
  .posten__bild { width: 72px; height: 72px; }
  .posten__aktionen { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; }
  .posten dl { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .posten dd { margin-bottom: .35rem; }
}

/* Weitere Leuchten auf der Produktseite */
.verwandt { padding-block: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--linie); }

/* Handy quer (niedrige Bildschirme): Leisten unten schlanker */
@media (max-height: 500px) {
  .leiste-mobil { padding-block: .4rem calc(.4rem + env(safe-area-inset-bottom)); }
  .leiste-mobil .btn { min-height: 40px; padding-block: .35rem; }
  .aktionsleiste a { min-height: 46px; flex-direction: row; gap: .45rem; }
  body.hat-leiste .fuss, body.hat-leiste-produkt .fuss { padding-bottom: calc(2rem + 52px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
}

/* Produktseite auf dem Handy: Brotkrumen nur als Rückweg zur Bauart, auf einer Zeile */
@media (max-width: 600px) {
  .produktseite .pfad li { display: none; }
  .produktseite .pfad li:nth-last-child(2) { display: block; }
  .produktseite .pfad li:nth-last-child(2)::before { content: "‹"; margin-right: .45rem; color: var(--text-3); }
  .produktseite .pfad { margin-bottom: 1rem; }
}
