/* M&S Bausatzvertrieb – isorast-ms.de
   Farben aus dem Logo: Rot #E30613, Gelb #FFD500. Keine externen Ressourcen. */

:root {
  color-scheme: only light;   /* immer hell – Browser sollen die Seite nicht automatisch abdunkeln */
  --rot: #e30613;
  --rot-dunkel: #b3000e;
  --gelb: #ffd500;
  --tinte: #1c1f22;
  --text: #33383d;
  --text-leise: #5c636a;
  --linie: #e2dfda;
  --flaeche: #ffffff;
  --flaeche-alt: #f5f3f0;
  --dunkel: #202428;

  --schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 10px;
  --schatten: 0 1px 2px rgb(0 0 0 / .06), 0 8px 24px rgb(0 0 0 / .08);
  --breite: 1200px;
  --rand: clamp(16px, 4vw, 32px);
  --abschnitt: clamp(56px, 8vw, 104px);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--schrift);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--text);
  background: var(--flaeche);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--rot-dunkel); text-underline-offset: .18em; }
a:hover { color: var(--rot); }
:focus-visible { outline: 3px solid var(--tinte); outline-offset: 2px; border-radius: 4px; }
/* auf dunklem Grund gelber Fokusrahmen (Kontrast ≥ 3:1 auf beiden Seiten) */
:is(.hero, .seitenkopf, .band, .abschnitt--dunkel, .fusszeile, .lightbox, .video-lightbox, .kopfzeile .btn--primaer, .marker-punkt) :focus-visible,
.btn--primaer:focus-visible, .marker-punkt:focus-visible { outline-color: var(--gelb); box-shadow: 0 0 0 6px var(--tinte); }

h1, h2, h3 { color: var(--tinte); line-height: 1.2; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); font-weight: 800; letter-spacing: -.015em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(100% - 2 * var(--rand), var(--breite)); margin-inline: auto; }
.abschnitt { padding-block: var(--abschnitt); }
.abschnitt--alt { background: var(--flaeche-alt); }
.abschnitt--dunkel { background: var(--dunkel); color: #d6d9dc; }
.abschnitt--dunkel h2, .abschnitt--dunkel h3 { color: #fff; }
.abschnitt--dunkel a:not(.btn) { color: #fff; }
.abschnitt--dunkel a:not(.btn):hover { color: var(--gelb); }

.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;
}
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--tinte); color: #fff; padding: 8px 14px; }
.skip-link:focus { left: 8px; }

/* Kopfzeile über Abschnitten */
.dachzeile {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--rot-dunkel); margin-bottom: .9em;
}
.dachzeile::before { content: ""; width: 28px; height: 3px; background: var(--gelb); }
.abschnitt--dunkel .dachzeile { color: var(--gelb); }
.einleitung { max-width: 62ch; font-size: 1.08em; color: var(--text-leise); }
.abschnitt--dunkel .einleitung { color: #b9bec3; }
.kopf { margin-bottom: clamp(32px, 5vw, 56px); }
.kopf--mitte { text-align: center; }
.kopf--mitte .einleitung { margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .75em 1.4em;
  font: inherit; font-weight: 700; text-decoration: none; line-height: 1.2;
  border: 2px solid transparent; border-radius: 999px; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primaer { background: var(--rot); color: #fff; }
.btn--primaer:hover { background: var(--rot-dunkel); color: #fff; }
.btn--hell { border-color: rgb(255 255 255 / .7); color: #fff; }
.btn--hell:hover { background: #fff; color: var(--tinte); }
.btn--rahmen { border-color: var(--tinte); color: var(--tinte); }
.btn--rahmen:hover { background: var(--tinte); color: #fff; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- Header ---------- */
.kopfzeile {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / .96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--linie);
}
.kopfzeile__innen { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.logo { flex: none; display: block; }
.logo img { width: 96px; height: auto; }
.hauptnav { margin-left: auto; }
.hauptnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.hauptnav a {
  display: block; padding: 10px 12px; border-radius: 6px;
  color: var(--tinte); font-weight: 600; text-decoration: none; font-size: .96rem;
}
.hauptnav a:hover { background: var(--flaeche-alt); color: var(--rot-dunkel); }
.hauptnav a[aria-current="page"] { color: var(--rot-dunkel); }
.kopfzeile__tel { display: none; color: var(--tinte); font-weight: 700; text-decoration: none; white-space: nowrap; }
.kopfzeile .btn { min-height: 42px; padding: .6em 1.1em; }
.menue-knopf {
  display: none; margin-left: auto; width: 48px; height: 48px;
  background: none; border: 0; border-radius: 8px; cursor: pointer; color: var(--tinte);
}
.menue-knopf svg { width: 28px; height: 28px; margin: auto; }

@media (min-width: 1100px) { .kopfzeile__tel { display: inline; } }

/* Handy-Menü bis 1000 px, damit die 6 Menüpunkte darüber sicher in eine Zeile passen */
@media (max-width: 1000px) {
  .menue-knopf { display: grid; }
  .kopfzeile__cta { display: none; }
  .hauptnav {
    position: fixed; inset: 76px 0 auto 0; margin: 0;
    background: #fff; border-bottom: 1px solid var(--linie); box-shadow: var(--schatten);
    padding: 8px var(--rand) 20px;
    display: none;
  }
  .hauptnav.offen { display: block; }
  .hauptnav ul { flex-direction: column; align-items: stretch; }
  .hauptnav a { padding: 14px 8px; border-bottom: 1px solid var(--linie); border-radius: 0; font-size: 1.05rem; }
  .hauptnav .btn { margin-top: 12px; border-bottom: 0; border-radius: 999px; padding: 14px 20px; }
  .hauptnav .btn--primaer, .hauptnav .btn--primaer:hover { color: #fff; }
  .hauptnav .btn--primaer:hover { background: var(--rot-dunkel); }
}
@media (min-width: 1001px) { .hauptnav .nur-mobil { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; 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% 60%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgb(16 18 20 / .82) 0%, rgb(16 18 20 / .6) 55%, rgb(16 18 20 / .15) 85%),
              linear-gradient(0deg, rgb(16 18 20 / .5) 0%, transparent 40%);
}
@media (max-width: 899px) {
  /* Text läuft über die ganze Bildbreite – gleichmäßig abdunkeln, damit der Kontrast überall reicht */
  .hero::before { background: rgb(16 18 20 / .62); }
}
.hero__inhalt { padding-block: clamp(88px, 14vw, 180px) clamp(64px, 10vw, 128px); max-width: 720px; }
.hero .dachzeile { color: var(--gelb); }
.hero h1 { color: #fff; margin-bottom: .4em; }
.hero h1 .marker { color: var(--gelb); }
.hero__slogan { font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); font-weight: 700; color: #fff; margin-bottom: .5em; }
.hero__text { font-size: 1.1em; color: #e4e6e8; max-width: 56ch; }
.hero__aktionen { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__punkte { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-weight: 600; font-size: .95rem; }
.hero__punkte li { display: flex; align-items: center; gap: 8px; }
.hero__punkte svg { width: 20px; height: 20px; color: var(--gelb); flex: none; }

/* ---------- Karten / Raster ---------- */
.raster { display: grid; gap: clamp(16px, 2.5vw, 28px); }
/* feste Spaltenzahlen, damit keine einzelne Karte in die letzte Zeile rutscht */
@media (min-width: 900px) { .raster--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 600px) { .raster--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .raster--4 { grid-template-columns: repeat(4, 1fr); } }

.karte {
  background: #fff; border: 1px solid var(--linie); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
}
.abschnitt--alt .karte { border-color: transparent; box-shadow: var(--schatten); }
.karte__icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: #fdeced; color: var(--rot); margin-bottom: 18px;
}
.karte__icon svg { width: 28px; height: 28px; }
.karte { transition: transform .25s, box-shadow .25s, border-color .25s; }
.karte:hover { transform: translateY(-4px); box-shadow: var(--schatten); border-color: transparent; }
.karte:hover .karte__icon { background: var(--rot); color: #fff; }
.karte__icon { transition: background-color .25s, color .25s; }

/* Dezentes Einblenden beim Scrollen – nur mit JS (Klasse .js-einblenden auf <html>) und ohne „weniger Bewegung“ */
@media (prefers-reduced-motion: no-preference) {
  .js-einblenden .einblenden { opacity: 0; translate: 0 18px; transition: opacity .6s ease, translate .6s ease; }
  .js-einblenden .einblenden.ist-sichtbar { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: reduce) { .karte, .karte:hover { transition: none; transform: none; } }
@media print { .js-einblenden .einblenden { opacity: 1 !important; translate: none !important; } }
.karte p:last-child { margin-bottom: 0; }

/* Zwei Spalten Text + Bild */
.split { display: grid; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (min-width: 880px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--bild-links .split__bild { order: -1; }
}
.split__bild img { border-radius: var(--radius); width: 100%; }
.split__bild figcaption { font-size: .88rem; color: var(--text-leise); margin-top: 10px; }
.isorast-marke { width: 180px; margin-bottom: 20px; }

.haken-liste { list-style: none; padding: 0; margin: 0 0 1.2em; }
.haken-liste li { position: relative; padding-left: 30px; margin-bottom: .5em; }
.haken-liste li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--rot) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- Bauablauf / Videos ---------- */
.phasen { counter-reset: phase; }
.phase { display: flex; flex-direction: column; }
.phase__nr {
  font-size: .875rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--rot-dunkel);
  margin: 18px 0 6px;
}
.abschnitt--dunkel .phase__nr { color: var(--gelb); }

.video {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: #000;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__start {
  position: absolute; inset: 0; width: 100%; padding: 0; border: 0; cursor: pointer; background: none; color: #fff;
}
.video__start img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s, filter .3s; }
.video__start:hover img { transform: scale(1.03); filter: brightness(.85); }
/* unten links, damit der Titel im Vorschaubild lesbar bleibt */
.video__play {
  position: absolute; left: 14px; bottom: 14px;
  width: 60px; height: 60px; border-radius: 50%; background: var(--rot);
  display: grid; place-items: center; box-shadow: 0 6px 20px rgb(0 0 0 / .35);
}
.video__play svg { width: 26px; height: 26px; margin-left: 4px; }
.video__hinweis { font-size: .875rem; color: var(--text-leise); margin: 8px 0 0; }
.abschnitt--dunkel .video__hinweis { color: #9aa1a8; }
.abschnitt--dunkel .video__hinweis a { color: #fff; }

/* ---------- Zahlenband ---------- */
.band { background: var(--rot); color: #fff; padding-block: clamp(40px, 6vw, 64px); }
.band__innen { display: grid; gap: 20px 48px; align-items: center; }
@media (min-width: 760px) { .band__innen { grid-template-columns: auto 1fr auto; } }
.band__zahl { font-size: clamp(3.2rem, 2rem + 5vw, 5.5rem); font-weight: 900; line-height: 1; letter-spacing: -.03em; }
.band h2 { color: #fff; font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); margin-bottom: .3em; }
.band p { margin: 0; color: #fff; }
/* auf Rot: massiver weißer Button statt Rahmen, damit er nicht untergeht */
.band .btn--hell {
  background: #fff; border-color: #fff; color: var(--tinte);
  padding-inline: 1.6em; box-shadow: 0 6px 18px rgb(0 0 0 / .18);
  transition: background-color .15s, color .15s, transform .15s, box-shadow .15s;
}
.band .btn--hell::after { content: "→"; font-size: 1.15em; transition: translate .15s; }
.band .btn--hell:hover { background: var(--tinte); border-color: var(--tinte); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgb(0 0 0 / .25); }
.band .btn--hell:hover::after { translate: 3px 0; }
@media (prefers-reduced-motion: reduce) { .band .btn--hell:hover { transform: none; } }

/* ---------- Musterhaus (Startseite) ---------- */
.musterhaus h2 sup { font-size: .5em; color: var(--text-leise); }
.musterhaus__werte { list-style: none; margin: 4px 0 28px; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.musterhaus__werte li { background: var(--flaeche-alt); border-radius: var(--radius); padding: 12px 14px; font-size: .88rem; line-height: 1.35; color: var(--text-leise); }
.musterhaus__werte strong { display: block; font-size: 1.15rem; color: var(--tinte); }
.musterhaus__effizienz { margin: -12px 0 28px; padding-inline: 18px 0; }
.musterhaus__fussnote { font-size: .875rem; color: var(--text-leise); margin: 16px 0 0; }
.musterhaus .split__bild a { display: block; border-radius: var(--radius); overflow: hidden; }
.musterhaus .split__bild img { transition: transform .35s; }
.musterhaus .split__bild a:hover img { transform: scale(1.03); }

/* Kostenvergleich (Musterhaus vs. Heizspiegel) – waagrechte Balken, Wert immer als Text daneben */
.vergleich { margin-top: clamp(40px, 6vw, 72px); background: var(--flaeche-alt); border-radius: var(--radius); padding: clamp(20px, 3vw, 36px); }
.vergleich h3 { font-size: 1.3rem; margin-bottom: .3em; }
.vergleich__einleitung { color: var(--text-leise); max-width: 70ch; }
.vergleich__liste { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.vergleich__liste li { display: grid; grid-template-columns: 9.5em minmax(0, 1fr) 6.5em; align-items: center; gap: 14px; }
.vergleich__name { font-weight: 600; color: var(--tinte); line-height: 1.25; }
.vergleich__name small { display: block; font-weight: 400; font-size: .875rem; color: var(--text-leise); }
.vergleich__balken { height: 22px; display: block; }
.vergleich__balken span { display: block; height: 100%; width: var(--anteil); background: #a7adb3; border-radius: 0 4px 4px 0; min-width: 4px; }
.vergleich__wert { font-weight: 800; color: var(--tinte); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.vergleich__wert small { display: block; font-weight: 500; font-size: .875rem; color: var(--text-leise); line-height: 1.2; }
.vergleich__musterhaus .vergleich__wert small { font-size: .875rem; color: var(--rot-dunkel); }
.vergleich__musterhaus { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--linie); }
.vergleich__musterhaus .vergleich__balken span { background: var(--rot); }
/* Praxisbeispiel: Bezeichnung über die ganze Zeile, Balken und Wert darunter auf der Linie der anderen */
.vergleich__musterhaus { row-gap: 8px !important; }
.vergleich__titel { grid-column: 1 / -1; grid-row: 1; font-weight: 700; color: var(--tinte); }
.vergleich__musterhaus .vergleich__name { grid-column: 1; grid-row: 2; }
.vergleich__musterhaus .vergleich__balken { grid-column: 2; grid-row: 2; }
.vergleich__musterhaus .vergleich__wert { grid-column: 3; grid-row: 2; }
.vergleich__musterhaus .vergleich__wert { color: var(--rot-dunkel); font-size: 1.15rem; }
.vergleich__quelle { font-size: .875rem; color: var(--text-leise); margin-top: 18px; line-height: 1.5; }
/* „Auf lange Sicht“ – Ersparnis über 20 Jahre */
.langfristig { margin-top: 22px; background: #fff; border-radius: 8px; border-left: 5px solid var(--rot); padding: 16px 18px; }
.langfristig__titel { font-size: 1.05rem; margin: 0 0 10px; color: var(--tinte); }
.langfristig__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px 32px; }
@media (min-width: 700px) { .langfristig__liste { grid-template-columns: 1fr 1fr; } }
.langfristig__liste strong { display: block; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-weight: 900; color: var(--rot); line-height: 1.1; letter-spacing: -.01em; }
.langfristig__liste span { color: var(--text-leise); font-size: .92rem; }
.langfristig__hinweis { font-size: .875rem; color: var(--text-leise); margin: 12px 0 0; }

/* Aufklappbarer Rechenweg unter dem Vergleich */
.rechenweg { margin-top: 18px; background: #fff; border-radius: 8px; border: 1px solid var(--linie); }
.rechenweg summary {
  list-style: none; cursor: pointer; padding: 12px 44px 12px 16px; position: relative;
  font-weight: 700; color: var(--tinte); font-size: .95rem;
}
.rechenweg summary::-webkit-details-marker { display: none; }
.rechenweg summary::before { content: "ⓘ"; margin-right: 8px; color: var(--rot); font-weight: 400; }
.rechenweg summary::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 10px; height: 10px; translate: 0 -70%;
  border-right: 2.5px solid var(--rot); border-bottom: 2.5px solid var(--rot); rotate: 45deg; transition: rotate .2s, translate .2s;
}
.rechenweg[open] summary::after { rotate: -135deg; translate: 0 -20%; }
.rechenweg summary:hover { color: var(--rot-dunkel); }
.rechenweg__inhalt { padding: 0 16px 16px; font-size: .92rem; border-top: 1px solid var(--linie); }
.rechenweg__inhalt > p { margin: 14px 0 0; max-width: 80ch; }
.rechenweg__schritte { list-style: none; counter-reset: schritt; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.rechenweg__schritte li { counter-increment: schritt; position: relative; padding: 10px 12px 10px 46px; background: var(--flaeche-alt); border-radius: 6px; }
.rechenweg__schritte li::before {
  content: counter(schritt); position: absolute; left: 12px; top: 10px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--tinte); color: #fff; font-weight: 800; font-size: .875rem; display: grid; place-items: center;
}
.rechenweg__schritte li:last-child::before { background: var(--rot); }
.rechenweg__schritte strong { display: block; color: var(--tinte); }
.rechenweg__schritte span { color: var(--text-leise); font-variant-numeric: tabular-nums; }
.rechenweg__schritte span strong { display: inline; color: var(--rot-dunkel); }

@media (max-width: 599px) {
  .vergleich__liste li { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .vergleich__balken { grid-column: 1 / -1; grid-row: 2; height: 16px; }
  .vergleich__musterhaus .vergleich__name { grid-column: 1; grid-row: 2; }
  .vergleich__musterhaus .vergleich__wert { grid-column: 2; grid-row: 2; }
  .vergleich__musterhaus .vergleich__balken { grid-column: 1 / -1; grid-row: 3; }
}

/* ---------- Details mit Markern ---------- */
.details { display: grid; gap: clamp(24px, 4vw, 48px); align-items: start; }
/* Startseite „Ein Blick auf die Details“: Bild über die volle Breite, Erklärungen darunter in zwei Spalten */
@media (min-width: 760px) {
  .details .details__liste { columns: 2; column-gap: 48px; }
  .details .details__liste li { break-inside: avoid; }
}
.details__bild { position: relative; }
.details__bild img { border-radius: var(--radius); width: 100%; }
.marker-punkt {
  position: absolute; translate: -50% -50%;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--rot); color: #fff; font-weight: 800; font-size: .95rem;
  display: grid; place-items: center; text-decoration: none;
  border: 3px solid #fff; box-shadow: 0 3px 10px rgb(0 0 0 / .35);
}
.marker-punkt:hover, .marker-punkt:focus-visible { background: var(--gelb); color: var(--tinte); }
.details__liste { list-style: none; margin: 0; padding: 0; counter-reset: detail; }
.details__liste li {
  counter-increment: detail; position: relative;
  padding: 14px 0 14px 50px; border-bottom: 1px solid var(--linie);
}
.details__liste li::before {
  content: counter(detail); position: absolute; left: 0; top: 14px;
  width: 32px; height: 32px; border-radius: 50%; background: var(--tinte); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: .9rem;
}
.details__liste li:target::before { background: var(--rot); }
.details__liste li:target { background: #fff7cc; }
.details__liste strong { display: block; color: var(--tinte); }
.details__liste p { margin: 2px 0 0; font-size: .96rem; }

/* ---------- Vorher-Nachher-Regler (Plan ↔ fertiges Haus) ---------- */
@property --pos { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
.vorher-nachher { --pos: 50%; }
.vorher-nachher--wartet { --pos: 100%; }
/* Einmalige Einführung: Plan → fertiges Haus → Mitte */
.vorher-nachher--intro { animation: vorher-nachher-intro 4.4s ease-in-out .4s both; }
@keyframes vorher-nachher-intro {
  0%, 8% { --pos: 100%; }
  58%, 68% { --pos: 0%; }
  100% { --pos: 50%; }
}
@media (prefers-reduced-motion: reduce) { .vorher-nachher--intro { animation: none; } }
.vorher-nachher__buehne { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 3 / 2; touch-action: pan-y; user-select: none; cursor: ew-resize; }
.vorher-nachher__buehne img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0;
  pointer-events: none; -webkit-user-drag: none; }  /* sonst startet der Browser „Bild herausziehen“ statt des Reglers */
/* Plan liegt über dem Foto und ist links vom Regler sichtbar */
.vorher-nachher__plan { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.vorher-nachher__griff {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; translate: -50% 0;
  background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / .15), 0 0 12px rgb(0 0 0 / .25); pointer-events: none;
}
.vorher-nachher__griff::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; translate: -50% -50%;
  border-radius: 50%; background: var(--rot) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 24px no-repeat;
  border: 3px solid #fff; box-shadow: 0 4px 14px rgb(0 0 0 / .3);
}
.vorher-nachher__regler {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0;
  -webkit-appearance: none; appearance: none; background: transparent;
  pointer-events: none;  /* Maus/Finger übernimmt das Skript auf der ganzen Fläche; Tastatur bleibt */
}
.vorher-nachher__buehne:has(.vorher-nachher__regler:focus-visible) .vorher-nachher__griff::after { outline: 3px solid var(--gelb); outline-offset: 2px; }
.vorher-nachher__marke {
  position: absolute; top: 12px; padding: 4px 10px; border-radius: 999px; font-size: .875rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; pointer-events: none; transition: opacity .2s;
}
.vorher-nachher__marke--plan { left: 12px; background: rgb(255 255 255 / .9); color: #1e3a66; box-shadow: 0 1px 4px rgb(0 0 0 / .12); }
.vorher-nachher__marke--foto { right: 12px; background: rgb(0 0 0 / .55); color: #fff; }
.vorher-nachher figcaption { font-size: .88rem; color: var(--text-leise); margin-top: 10px; }

/* ---------- Referenzen ---------- */
.galerie { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.galerie a { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--linie); }
.galerie img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.galerie a:hover img { transform: scale(1.04); }
@media (min-width: 900px) {
  .galerie { grid-template-columns: repeat(4, 1fr); }
  .galerie a:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
}

.galerie__mehr { margin: 28px 0 0; text-align: center; }
.galerie__hinweis { font-size: .88rem; color: var(--text-leise); margin: 16px 0 0; }

/* Gleichmäßiges Raster mit Bildunterschriften (Referenzen-Seite) – überschreibt das 2×2-Startbild der Startseite */
.galerie--raster { grid-template-columns: 1fr; gap: 24px 16px; }
@media (min-width: 600px) { .galerie--raster { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .galerie--raster { grid-template-columns: repeat(4, 1fr); } }
.galerie--raster figure { margin: 0; }
.galerie--raster a:first-child { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; }
.galerie--raster figcaption { margin-top: 8px; font-weight: 700; color: var(--tinte); font-size: .95rem; }

.lightbox { padding: 0; border: 0; background: transparent; max-width: min(96vw, 1600px); max-height: 92vh; }
.lightbox::backdrop { background: rgb(10 10 12 / .9); }
.lightbox img { max-height: 86vh; width: auto; margin: auto; border-radius: 6px; }
.lightbox p { color: #ddd; text-align: center; margin: 10px 0 0; font-size: .95rem; }
.lightbox__zu, .lightbox__nav {
  position: fixed; background: rgb(255 255 255 / .12); color: #fff; border: 0; border-radius: 50%;
  width: 48px; height: 48px; font-size: 26px; line-height: 1; cursor: pointer;
}
.lightbox__zu { top: 16px; right: 16px; }
.lightbox__zu:hover, .lightbox__nav:hover { background: rgb(255 255 255 / .25); }

.video-lightbox { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; overflow: visible; }
.video-lightbox::backdrop { background: rgb(10 10 12 / .92); }
/* so groß wie möglich; oben bleibt Platz für den Schließen-Knopf, damit er YouTube-Bedienelemente nicht verdeckt */
.video-lightbox__rahmen {
  width: min(94vw, 1400px, calc((100vh - 170px) * 16 / 9)); aspect-ratio: 16 / 9;
  background: #000; border-radius: 8px; overflow: hidden; box-shadow: 0 20px 60px rgb(0 0 0 / .5);
}
.video-lightbox__rahmen iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-lightbox__titel { color: #ddd; text-align: center; margin: 12px 0 0; font-weight: 600; }
.lightbox__nav { top: 50%; translate: 0 -50%; }
.lightbox__nav--zurueck { left: 16px; }
.lightbox__nav--vor { right: 16px; }
.lightbox--einzeln .lightbox__nav { display: none; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--linie); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 48px 20px 0; position: relative;
  font-weight: 700; color: var(--tinte); font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; translate: 0 -70%;
  border-right: 3px solid var(--rot); border-bottom: 3px solid var(--rot); rotate: 45deg; transition: rotate .2s, translate .2s;
}
.faq details[open] summary::after { rotate: -135deg; translate: 0 -20%; }
.faq details p { margin: 0 0 20px; max-width: 70ch; }

/* ---------- Kontakt-Aufruf ---------- */
.cta { display: grid; gap: 32px; align-items: center; }
@media (min-width: 880px) { .cta { grid-template-columns: 1.2fr 1fr; } }
.cta__wege { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cta__wege a {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius);
  background: rgb(255 255 255 / .06); color: #fff; text-decoration: none; font-weight: 700; font-size: 1.1rem;
}
.cta__wege a:hover { background: rgb(255 255 255 / .12); }
.cta__wege svg { width: 24px; height: 24px; color: var(--gelb); flex: none; }
.cta__wege small { display: block; font-weight: 400; font-size: .875rem; color: #aab0b6; }

/* ---------- Unterseiten-Kopf ---------- */
.seitenkopf { background: var(--dunkel); color: #d6d9dc; padding-block: clamp(40px, 6vw, 72px) clamp(36px, 5vw, 56px); }
.seitenkopf h1 { color: #fff; font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); }
.seitenkopf .dachzeile { color: var(--gelb); }
.seitenkopf .einleitung { color: #b9bec3; margin-bottom: 0; }
.brotkrumen ol { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: .875rem; color: #9aa1a8; }
.brotkrumen li + li::before { content: "/"; margin-right: 4px; color: #6b7278; }
.brotkrumen a { color: #d6d9dc; }

.sprungnav ul { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sprungnav a {
  display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .25);
  color: #fff; text-decoration: none; font-weight: 600; font-size: .9rem;
}
.sprungnav a:hover { background: #fff; color: var(--tinte); }

/* ---------- Bausystem-Seite ---------- */
.karte__nr { font-size: .875rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--rot-dunkel); margin-bottom: .4em; }

.schritte { list-style: none; counter-reset: schritt; margin: 0 0 1.2em; padding: 0; display: grid; gap: 10px; }
.schritte li { counter-increment: schritt; display: flex; gap: 12px; align-items: baseline; }
.schritte li::before {
  content: counter(schritt); flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--gelb); color: var(--tinte); font-weight: 800; font-size: .875rem; display: grid; place-items: center;
  translate: 0 -2px;
}
.schritte strong { color: var(--tinte); }

/* Interaktiver Wandquerschnitt – Umschalten per Radio-Button und :has(), ohne JavaScript */
.wq { background: #fff; border-radius: var(--radius); box-shadow: var(--schatten); padding: clamp(18px, 3vw, 32px); margin-bottom: clamp(36px, 5vw, 56px); }
.wq__kopf h3 { margin-bottom: .3em; font-size: 1.3rem; }
.wq__kopf p { color: var(--text-leise); margin-bottom: 18px; }
.wq__wahl { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.wq__wahl input { position: absolute; opacity: 0; pointer-events: none; }
.wq__wahl label {
  cursor: pointer; padding: 10px 18px; border-radius: 999px; border: 2px solid var(--linie);
  font-weight: 700; color: var(--tinte); transition: background-color .15s, border-color .15s, color .15s;
}
.wq__wahl label:hover { border-color: var(--tinte); }
.wq__wahl input:checked + label { background: var(--rot); border-color: var(--rot); color: #fff; }
.wq__wahl input:focus-visible + label { outline: 3px solid var(--gelb); outline-offset: 2px; }
@media (max-width: 599px) {
  .wq__wahl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .wq__wahl label { padding: 10px 4px; text-align: center; font-size: .875rem; }
}
.wq__zustand { display: none; gap: 24px 36px; align-items: center; animation: wq-ein .35s ease; }
/* ohne :has()-Unterstützung bleibt die 37er Wand (Musterhaus) sichtbar */
.wq__zustand--37 { display: grid; }
@supports selector(:has(*)) { .wq__zustand--37 { display: none; } }
.wq:has(#wq-25:checked) .wq__zustand--25 { display: grid; }
.wq:has(#wq-31:checked) .wq__zustand--31 { display: grid; }
.wq:has(#wq-37:checked) .wq__zustand--37 { display: grid; }
.wq:has(#wq-43:checked) .wq__zustand--43 { display: grid; }
@media (min-width: 900px) { .wq__zustand { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
@keyframes wq-ein { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .wq__zustand { animation: none; } }
.wq__bild svg { display: block; width: 100%; height: auto; }
.wq__aussen { fill: #e8f1f7; }
.wq__innen { fill: #fdf0e6; }
.wq__ort { font: 600 13px/1 system-ui, sans-serif; fill: #6b7278; text-transform: uppercase; letter-spacing: .1em; }
.wq__temp { font: 800 20px/1 system-ui, sans-serif; }
.wq__temp--kalt { fill: #2b6a9a; }
.wq__temp--warm { fill: #c2410c; }
.wq__daemmung { fill: #d5d9dc; stroke: #aab0b6; stroke-width: 1; }
.wq__beton { fill: #7d848b; }
.wq__schicht { font: 700 12px/1 system-ui, sans-serif; fill: #4b5259; letter-spacing: .08em; text-transform: uppercase; }
.wq__schicht--hell { fill: #fff; }
.wq__mass { stroke: var(--tinte); stroke-width: 1.5; }
.wq__mass--fein { stroke-width: 1; }
.wq__schichtmass { font: 700 14px/1 system-ui, sans-serif; fill: var(--tinte); }
.wq__masszahl { font: 800 14px/1 system-ui, sans-serif; fill: var(--tinte); paint-order: stroke; stroke: #fff; stroke-width: 6px; }
.wq__pfeil { stroke: var(--rot); stroke-linecap: round; opacity: .85; }
.wq__pfeilspitze { fill: var(--rot); opacity: .85; }
.wq__pfeiltext { font: 700 12px/1 system-ui, sans-serif; fill: var(--rot-dunkel); }
.wq__werte { margin: 0; display: grid; gap: 10px; }
.wq__werte > div { background: var(--flaeche-alt); border-radius: 8px; padding: 10px 14px; }
.wq__werte dt { font-size: .875rem; color: var(--text-leise); }
.wq__werte dd { margin: 2px 0 0; color: var(--text-leise); font-size: .92rem; }
.wq__werte dd strong { font-size: 1.5rem; font-weight: 900; color: var(--tinte); margin-right: 4px; letter-spacing: -.01em; }
.wq__vergleich { background: #fff7cc !important; }
.wq__vergleich dd { color: var(--tinte); }
.wq__vergleich dd strong { color: var(--rot); }
.wq__fuss { font-size: .875rem; color: var(--text-leise); margin: 18px 0 0; }

.tabelle__titel { margin-top: 2em; }
.tabelle { overflow-x: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--schatten); margin-bottom: 8px; }
.tabelle:focus-visible { outline-offset: 4px; }
.tabelle table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .95rem; font-variant-numeric: tabular-nums; }
.tabelle th, .tabelle td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--linie); vertical-align: top; }
.tabelle thead th { background: var(--tinte); color: #fff; font-size: .875rem; letter-spacing: .04em; white-space: nowrap; }
.tabelle tbody th { font-weight: 600; color: var(--tinte); width: 38%; }
.tabelle td { white-space: nowrap; }
.tabelle td[colspan] { white-space: normal; }
.tabelle tbody tr:last-child > * { border-bottom: 0; }
.tabelle tbody tr:nth-child(even) { background: #faf9f7; }
.tabelle__hervor, .tabelle tbody tr.tabelle__hervor { background: #fff7cc; }
.tabelle__hervor td { font-weight: 800; color: var(--tinte); }
/* erste Spalte bleibt beim seitlichen Scrollen stehen */
@media (max-width: 760px) {
  .tabelle tbody th { position: sticky; left: 0; background: inherit; background-color: #fff; min-width: 170px; box-shadow: 1px 0 0 var(--linie); }
  .tabelle tbody tr:nth-child(even) th { background-color: #faf9f7; }
  .tabelle tbody tr.tabelle__hervor th { background-color: #fff7cc; }
  .tabelle thead th:first-child { position: sticky; left: 0; z-index: 1; }
}
.tabelle__fuss { font-size: .88rem; color: var(--text-leise); margin-top: 16px; max-width: 75ch; }

.kennzahlen { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.kennzahlen li { display: flex; align-items: center; gap: 12px; background: rgb(255 255 255 / .06); border-radius: var(--radius); padding: 12px 16px; color: #fff; font-weight: 600; }
.kennzahlen__wert { font-size: 1.6rem; font-weight: 900; color: var(--gelb); line-height: 1; }
#brandverhalten .split { align-items: start; }

.downloads { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 700px) { .downloads { grid-template-columns: repeat(2, 1fr); } }
.downloads a {
  display: flex; align-items: center; gap: 16px; height: 100%; padding: 16px 18px;
  border: 1px solid var(--linie); border-radius: var(--radius); background: #fff;
  color: var(--tinte); text-decoration: none; transition: border-color .15s, box-shadow .15s;
}
.downloads a:hover { border-color: var(--rot); box-shadow: var(--schatten); color: var(--tinte); }
.downloads__icon {
  flex: none; width: 46px; height: 54px; border-radius: 4px 14px 4px 4px; background: var(--rot); color: #fff;
  display: grid; place-items: end center; padding-bottom: 8px; font-size: .875rem; font-weight: 800; letter-spacing: .05em;
}
.downloads__text strong { display: block; line-height: 1.3; }
.downloads__text small { color: var(--text-leise); font-size: .875rem; }
.downloads a:hover strong { color: var(--rot-dunkel); }

/* ---------- Bauablauf-Seite ---------- */
.hero--seite .hero__inhalt { padding-block: clamp(56px, 9vw, 120px) clamp(48px, 7vw, 88px); }
.hero--seite::before {
  background: linear-gradient(90deg, rgb(16 18 20 / .85) 0%, rgb(16 18 20 / .6) 50%, rgb(16 18 20 / .2) 85%),
              linear-gradient(0deg, rgb(16 18 20 / .4) 0%, transparent 40%);
}
.hero .brotkrumen ol { color: #c9cdd1; }
.hero .brotkrumen a { color: #fff; }

.etappen-uebersicht { padding-block: clamp(24px, 4vw, 40px); }
/* feste Spaltenzahlen, damit kein einzelner Schritt allein in der letzten Zeile steht (11 = 6+5 bzw. 3+3+3+2) */
.etappen-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
@media (min-width: 600px) { .etappen-liste { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .etappen-liste { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 599px) { .etappen-liste a { padding: 8px 12px; } }
.etappen-liste a {
  display: flex; align-items: center; gap: 10px; height: 100%; padding: 10px 14px; border-radius: 8px;
  background: #fff; color: var(--tinte); text-decoration: none; font-weight: 600; font-size: .92rem; line-height: 1.3;
  box-shadow: 0 1px 2px rgb(0 0 0 / .06);
}
.etappen-liste a:hover { color: var(--rot-dunkel); box-shadow: var(--schatten); }
.etappen-liste span { flex: none; font-weight: 900; color: var(--rot); font-variant-numeric: tabular-nums; }

/* Zeitleiste: Nummer links, senkrechte Linie verbindet die Schritte */
.etappen { list-style: none; margin: 0; padding: 0; }
.etappe {
  position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: clamp(16px, 3vw, 32px);
  padding-bottom: clamp(48px, 7vw, 80px); scroll-margin-top: 96px;
}
.etappe::before { content: ""; position: absolute; left: 27px; top: 60px; bottom: 8px; width: 2px; background: var(--linie); }
.etappe:last-child { padding-bottom: 0; }
.etappe:last-child::before { display: none; }
.etappe__kopf { display: contents; }
.etappe__nr {
  grid-row: 1 / span 2; align-self: start;
  width: 56px; height: 56px; border-radius: 50%; background: var(--rot); color: #fff;
  display: grid; place-items: center; font-weight: 900; font-size: 1.15rem; font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 6px #fff;
}
.etappe h3 { grid-column: 2; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); margin: 10px 0 .5em; }
.etappe__inhalt { grid-column: 2; display: grid; gap: 20px 32px; align-items: start; }
.etappe__text p { max-width: 68ch; }
.etappe__text p:last-child { margin-bottom: 0; }
@media (min-width: 980px) {
  .etappe__inhalt:has(.etappe__video) { grid-template-columns: minmax(0, 1fr) 320px; }
  .etappe__inhalt .bildgruppe { grid-column: 1 / -1; }
}
.etappe__video-text { font-size: .88rem; color: var(--text-leise); margin: 8px 0 0; }

.bildgruppe { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
.bildgruppe a { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--linie); }
.bildgruppe img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.bildgruppe a:hover img { transform: scale(1.04); }
@media (min-width: 700px) {
  .bildgruppe--2 a { aspect-ratio: 16 / 9; }
  .bildgruppe--3 { grid-template-columns: repeat(3, 1fr); }
  .bildgruppe--4 { grid-template-columns: repeat(4, 1fr); }
}
/* bei drei Bildern auf dem Handy: das erste Bild über die volle Breite */
@media (max-width: 699px) { .bildgruppe--3 a:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; } }

.etappen__hinweis { margin-top: 40px; }

/* Steckbrief des fertigen Hauses (Bauablauf Schritt 12) – nachgebautes Poster */
.steckbrief {
  background: var(--flaeche-alt); border-radius: var(--radius); padding: clamp(18px, 3vw, 36px);
  border-top: 6px solid var(--gelb); display: grid; gap: clamp(20px, 3vw, 32px);
}
.steckbrief__label { font-size: .875rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--rot-dunkel); margin: 0 0 4px; }
.steckbrief__titel { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.75rem); font-weight: 800; color: var(--tinte); margin: 0 0 8px; line-height: 1.2; }
.steckbrief__flaechen { margin: 0; color: var(--text-leise); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.steckbrief__flaechen span { background: #fff; border-radius: 999px; padding: 2px 12px; color: var(--tinte); font-weight: 600; font-size: .92rem; }

.steckbrief__haupt { display: grid; gap: 24px 36px; align-items: start; }
@media (min-width: 980px) { .steckbrief__haupt { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.steckbrief__bildbox { position: relative; }
/* gelber Rahmen wie auf dem Poster */
.steckbrief__bild { border: 8px solid var(--gelb); border-radius: calc(var(--radius) + 4px); }
.steckbrief__bild img { border-radius: 4px; }
.steckbrief__liste li { padding-block: 10px; }
.steckbrief__liste p { font-size: .95rem; }

.steckbrief__kosten {
  margin: 0; background: #fff; border: 3px solid var(--rot); border-radius: var(--radius);
  padding: 12px 18px; display: grid; gap: 2px; text-align: center; box-shadow: 0 8px 24px rgb(0 0 0 / .25);
}
.steckbrief__betrag { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.7rem); font-weight: 900; color: var(--tinte); line-height: 1; letter-spacing: -.02em; }
.steckbrief__kosten > span:last-child { font-weight: 700; color: var(--tinte); line-height: 1.3; font-size: .95rem; }
.steckbrief__kosten small { display: block; font-weight: 400; color: var(--text-leise); font-size: .875rem; }
@media (min-width: 600px) {
  .steckbrief__kosten { position: absolute; right: -14px; bottom: -14px; }
}
@media (max-width: 599px) { .steckbrief__kosten { margin-top: 12px; } }

.steckbrief__unten { display: grid; gap: 28px 40px; align-items: center; }
@media (min-width: 980px) { .steckbrief__unten { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }

/* Effizienzskala A+ bis H; Pfeile über/unter der Skala zeigen die Werte (--pos = Anteil an 0–275 kWh) */
.effizienz { background: #fff; border-radius: var(--radius); padding: 14px 18px; }
.effizienz__skala { list-style: none; margin: 0; padding: 0; display: flex; height: 30px; border-radius: 999px; overflow: hidden; }
.effizienz__skala li {
  flex-basis: 0; display: grid; place-items: center; font-size: .875rem; font-weight: 800; color: var(--tinte);
  border-right: 1px solid rgb(0 0 0 / .15);
}
.effizienz__skala li:last-child { border-right: 0; }
.effizienz__skala li:nth-child(1) { background: #127a33; color: #fff; }
.effizienz__skala li:nth-child(2) { background: #52b748; }
.effizienz__skala li:nth-child(3) { background: #a6d96a; }
.effizienz__skala li:nth-child(4) { background: #d9ef8b; }
.effizienz__skala li:nth-child(5) { background: #fee08b; }
.effizienz__skala li:nth-child(6) { background: #fdbf6f; }
.effizienz__skala li:nth-child(7) { background: #fd8d3c; }
.effizienz__skala li:nth-child(8) { background: #c8321e; color: #fff; }
.effizienz__skala li:nth-child(9) { background: #b10e0e; color: #fff; }
.effizienz__wert { position: relative; margin: 0; padding-left: calc(var(--pos) + 16px); font-size: .9rem; color: var(--text-leise); line-height: 1.3; }
.effizienz__wert strong { font-size: 1.15rem; color: var(--tinte); }
.effizienz__wert::before {
  content: ""; position: absolute; left: calc(var(--pos) - 7px); border: 7px solid transparent;
}
.effizienz__wert--oben { padding-bottom: 10px; }
.effizienz__wert--oben::before { bottom: -4px; border-top: 10px solid var(--tinte); }
.effizienz__wert--unten { padding-top: 10px; }
.effizienz__wert--unten::before { top: -4px; border-bottom: 10px solid var(--tinte); }

/* Bauzeit als Zeitleiste – Abstände entsprechen der Zeit (Rohbau nach ~2,5 von 13 Monaten) */
.bauzeit__gesamt { margin: 0 0 12px; color: var(--text-leise); }
.bauzeit__gesamt strong { font-size: 1.35rem; color: var(--rot); margin-right: 4px; }
.bauzeit__leiste { list-style: none; margin: 0; padding: 0; position: relative; }
.bauzeit__leiste li { font-size: .88rem; color: var(--text-leise); line-height: 1.3; }
.bauzeit__leiste strong { display: block; color: var(--tinte); font-size: .98rem; }
@media (min-width: 600px) {
  .bauzeit__leiste { height: 78px; margin-inline: 8px 70px; border-top: 4px solid var(--rot); margin-top: 64px; }
  .bauzeit__leiste li { position: absolute; top: 14px; left: var(--pos); translate: -8px 0; white-space: nowrap; }
  /* Rohbau liegt zeitlich dicht am Baubeginn – Beschriftung deshalb über der Linie */
  .bauzeit__leiste li:nth-child(2) { top: -60px; }
  .bauzeit__leiste li:nth-child(2)::before { top: 50px; }
  .bauzeit__leiste li:last-child { translate: -70% 0; text-align: right; }
  .bauzeit__leiste li::before {
    content: ""; position: absolute; left: 0; top: -24px; width: 16px; height: 16px; border-radius: 50%;
    background: #fff; border: 4px solid var(--rot);
  }
  .bauzeit__leiste li:last-child::before { left: auto; right: calc(30% - 8px); background: var(--rot); }
}
@media (max-width: 599px) {
  .bauzeit__leiste { border-left: 4px solid var(--rot); padding-left: 18px; display: grid; gap: 12px; }
  .bauzeit__leiste li { position: relative; }
  .bauzeit__leiste li::before { content: ""; position: absolute; left: -29px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 4px solid var(--rot); }
}

.steckbrief__fussnote { font-size: .875rem; color: var(--text-leise); margin: 0; }

/* Bildgruppe mit 6 Bildern (Bauablauf) */
@media (min-width: 700px) { .bildgruppe--6 { grid-template-columns: repeat(3, 1fr); } }

/* Ansprechpartner-Karte: Foto über die volle Spaltenbreite, Name darunter */
.ansprechpartner { margin: 0 0 28px; background: #fff; border-radius: var(--radius); box-shadow: var(--schatten); overflow: hidden; }
.ansprechpartner a { display: block; position: relative; cursor: zoom-in; }
.ansprechpartner img { width: 100%; height: auto; transition: transform .35s; }
.ansprechpartner a:hover img { transform: scale(1.02); }
/* Lupen-Hinweis unten rechts im Bild */
.ansprechpartner a::after {
  content: ""; position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%;
  background: rgb(0 0 0 / .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3M11 8v6M8 11h6'/%3E%3C/svg%3E") center / 22px no-repeat;
}
.ansprechpartner figcaption { display: grid; gap: 2px; line-height: 1.35; color: var(--text-leise); padding: 14px 18px 16px; border-top: 4px solid var(--gelb); }
.ansprechpartner__rolle { font-size: .875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--rot-dunkel); }
.ansprechpartner strong { font-size: 1.15rem; color: var(--tinte); }
.bauablauf__mehr { margin: 32px 0 0; }

@media (max-width: 599px) {
  .etappe { grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; }
  .etappe__nr { width: 40px; height: 40px; font-size: .95rem; box-shadow: 0 0 0 4px #fff; }
  .etappe::before { left: 19px; top: 44px; }
  .etappe h3 { margin-top: 4px; }
}

/* ---------- Kontaktseite ---------- */
.kontakt { display: grid; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (min-width: 960px) { .kontakt { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); } }
.kontakt__info h2 { font-size: 1.35rem; }
.kontakt__wege { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.kontakt__wege a {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius);
  background: #fff; box-shadow: var(--schatten); color: var(--tinte); text-decoration: none; font-weight: 700; font-size: 1.05rem;
  overflow-wrap: anywhere;
}
.kontakt__wege a:hover { color: var(--rot-dunkel); }
.kontakt__wege svg { width: 24px; height: 24px; color: var(--rot); flex: none; }
.kontakt__wege small { display: block; font-weight: 400; font-size: .875rem; color: var(--text-leise); }
.kontakt__adresse { font-style: normal; line-height: 1.8; margin-bottom: 24px; }
.kontakt__adresse strong { color: var(--tinte); }
.kontakt__tipp { border-left: 4px solid var(--gelb); padding: 4px 0 4px 18px; margin-bottom: 24px; }
.kontakt__tipp h3 { font-size: 1rem; margin-bottom: .3em; }
.kontakt__tipp p { margin: 0; font-size: .95rem; }
.kontakt__hinweis { font-size: .9rem; color: var(--text-leise); }

.formular-karte { background: #fff; border-radius: var(--radius); box-shadow: var(--schatten); padding: clamp(20px, 4vw, 44px); }
.formular-karte > h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); margin-bottom: .3em; }
.formular__intro { color: var(--text-leise); font-size: .95rem; }
.formular { display: grid; gap: 20px; }
.feld-reihe { display: grid; gap: 20px; }
@media (min-width: 620px) {
  .feld-reihe { grid-template-columns: 1fr 1fr; }
  .feld-reihe--plz { grid-template-columns: 10em 1fr; }
}
.feld { display: grid; gap: 6px; min-width: 0; }
.feld label, .feldgruppe legend { font-weight: 700; color: var(--tinte); font-size: .95rem; }
.pflicht { color: var(--rot); }
.optional { font-weight: 400; color: var(--text-leise); }
.feld__hilfe { margin: 0; font-size: .875rem; color: var(--text-leise); }

.formular input[type="text"], .formular input[type="email"], .formular input[type="tel"], .formular textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  font: inherit; color: var(--tinte); background: #fff;
  border: 1.5px solid #cfcbc4; border-radius: 8px;
  transition: border-color .15s, box-shadow .15s;
}
.formular textarea { resize: vertical; min-height: 140px; }
.formular input:hover, .formular textarea:hover { border-color: #a9a49c; }
.formular input:focus, .formular textarea:focus { outline: none; border-color: var(--tinte); box-shadow: 0 0 0 3px var(--gelb); }
.formular .ist-ungueltig { border-color: var(--rot); }

.feldgruppe { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 14px; }
.feldgruppe legend { padding: 0; margin-bottom: 10px; float: left; width: 100%; }
.feldgruppe legend + * { clear: both; }

.auswahl { display: grid; gap: 8px; }
.auswahl--reihe { display: flex; flex-wrap: wrap; }
.auswahl--reihe .auswahl__option { flex: 1 1 auto; }
.auswahl__option {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer;
  border: 1.5px solid #cfcbc4; border-radius: 8px; font-weight: 600; color: var(--tinte);
}
.auswahl__option:hover { border-color: #a9a49c; }
.auswahl__option:has(input:checked) { border-color: var(--rot); background: #fff5f5; }
.auswahl__option:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--gelb); }
.auswahl input, .zustimmung input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--rot); }

.datei-feld {
  position: relative; border: 2px dashed #cfcbc4; border-radius: var(--radius); background: var(--flaeche-alt);
  transition: border-color .15s, background-color .15s;
}
.datei-feld:hover, .datei-feld.ist-ziel { border-color: var(--rot); background: #fff5f5; }
.datei-feld:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--gelb); }
.datei-feld input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.datei-feld__text { margin: 0; padding: 22px 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--text-leise); pointer-events: none; }
.datei-feld__text svg { width: 30px; height: 30px; color: var(--rot); }
.datei-feld__text strong { color: var(--rot-dunkel); }
.datei-feld__liste { list-style: none; margin: 0; padding: 0 12px; display: grid; gap: 6px; }
.datei-feld__liste:not(:empty) { padding-bottom: 12px; }
.datei-feld__liste li {
  position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 12px;
  background: #fff; border-radius: 6px; padding: 8px 12px; font-size: .9rem; color: var(--tinte);
}
.datei-feld__liste li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.datei-feld__liste li span:last-child { flex: none; color: var(--text-leise); }

.feld--honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.zustimmung { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; cursor: pointer; }
.zustimmung input { margin-top: 3px; }

.formular__senden { justify-self: start; min-width: 220px; }
.formular__senden[disabled] { opacity: .7; cursor: progress; }
@media (max-width: 619px) { .formular__senden { justify-self: stretch; } }

.formular__meldung { border-radius: 8px; padding: 14px 16px; margin: 0 0 20px; font-weight: 600; }
.formular__meldung--fehler { background: #fdeced; color: #8a0009; border-left: 4px solid var(--rot); }
.formular__meldung a { color: inherit; }

/* ---------- Rechtstexte (Impressum, Datenschutz) ---------- */
.rechtstext { max-width: 780px; overflow-wrap: break-word; }
.rechtstext h2 { font-size: clamp(1.3rem, 1.1rem + .7vw, 1.6rem); margin-top: 1.8em; scroll-margin-top: 96px; }
.rechtstext > h2:first-child { margin-top: 0; }
.rechtstext h3 { font-size: 1.05rem; margin: 1.4em 0 .3em; }
.rechtstext ul:not(.haken-liste) { padding-left: 1.2em; margin: 0 0 1em; }
.rechtstext li { margin-bottom: .3em; }
.rechtstext__daten { display: grid; grid-template-columns: max-content 1fr; gap: 2px 16px; margin: 0 0 1em; }
.rechtstext__daten dt { font-weight: 700; color: var(--tinte); }
.rechtstext__daten dd { margin: 0; }
.rechtstext__kurz { background: var(--flaeche-alt); border-radius: var(--radius); padding: clamp(20px, 3vw, 28px); margin-bottom: 32px; }
.rechtstext__kurz h2 { margin-top: 0; font-size: 1.2rem; }
.rechtstext__kurz .haken-liste { margin: 0; }
.rechtstext__inhalt { border-left: 4px solid var(--gelb); padding-left: 18px; margin-bottom: 40px; }
.rechtstext__inhalt h2 { font-size: 1rem; margin: 0 0 .4em; }
.rechtstext__inhalt ol { margin: 0; padding-left: 1.2em; }
.rechtstext__hervor { background: #fff7cc; border-radius: 8px; padding: 14px 16px; }
.rechtstext__verweis { margin-top: 2.5em; padding-top: 1.2em; border-top: 1px solid var(--linie); }

/* ---------- Einzugsgebiet (Kontaktseite) ---------- */
.einzugsgebiet { align-items: center; }
.einzugsgebiet__radius { display: flex; align-items: baseline; gap: 12px; margin: 4px 0 14px; }
.einzugsgebiet__radius strong { font-size: clamp(2.6rem, 2rem + 2.5vw, 3.6rem); font-weight: 900; line-height: 1; color: var(--rot-dunkel); letter-spacing: -.02em; }
.einzugsgebiet__radius span { font-weight: 700; color: var(--tinte); font-size: 1.1rem; }
.einzugsgebiet__hinweis { font-size: .88rem; color: var(--text-leise); }
.einzugsgebiet__karte { margin: 0; }
.einzugsgebiet__karte figcaption { font-size: .875rem; color: var(--text-leise); text-align: right; margin-top: 6px; }
.gebietskarte { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--schatten); background: #fff; }
.gebietskarte__de { fill: #fbfaf8; }
.gebietskarte__ausland { fill: #e9e6e1; }
.gebietskarte__grenze { fill: none; stroke: #b9b3aa; stroke-width: 2; stroke-dasharray: 5 4; }
.gebietskarte__land { font: 700 18px/1 system-ui, sans-serif; letter-spacing: .2em; fill: #a39d94; }
.gebietskarte__rand { fill: none; stroke: var(--rot); stroke-width: 2.5; stroke-dasharray: 9 7; opacity: .6; }
.gebietskarte__radius { stroke: var(--rot-dunkel); stroke-width: 3; stroke-dasharray: 9 7; }
.gebietskarte__radius-text { font: 800 24px/1 system-ui, sans-serif; fill: var(--rot-dunkel); paint-order: stroke; stroke: #fbfaf8; stroke-width: 5px; stroke-linejoin: round; }
.gebietskarte__ort { fill: #8b9198; }
.gebietskarte__ortname { font: 500 18px/1 system-ui, sans-serif; fill: #6b7278; }
.gebietskarte__ziel { fill: #fff; stroke: var(--rot); stroke-width: 4; }
.gebietskarte__zielname { font: 700 22px/1 system-ui, sans-serif; fill: var(--tinte); paint-order: stroke; stroke: #fbfaf8; stroke-width: 6px; stroke-linejoin: round; }
.gebietskarte__mitte circle:first-child { fill: var(--rot); opacity: .2; }
.gebietskarte__mitte-punkt { fill: var(--rot); stroke: #fff; stroke-width: 4; }
.gebietskarte__mitte text { font: 800 24px/1 system-ui, sans-serif; fill: var(--tinte); paint-order: stroke; stroke: #fbfaf8; stroke-width: 5px; stroke-linejoin: round; }

/* ---------- Danke-Seite ---------- */
.danke__innen { max-width: 720px; text-align: center; }
.danke .dachzeile { justify-content: center; }
.danke .einleitung { margin-inline: auto; }
.danke__icon { width: 72px; height: 72px; margin: 0 auto 24px; border-radius: 50%; background: var(--rot); color: #fff; display: grid; place-items: center; }
.danke__icon svg { width: 36px; height: 36px; }
.danke__aktionen { justify-content: center; }
.fehler__tel { margin-top: 2em; }

/* ---------- Footer ---------- */
.fusszeile { background: #15181b; color: #aab0b6; font-size: .95rem; padding-block: 56px 28px; }
.fusszeile a { color: #d6d9dc; text-decoration: none; }
.fusszeile a:hover { color: #fff; text-decoration: underline; }
.fusszeile__raster { display: grid; gap: 32px; }
@media (min-width: 600px) { .fusszeile__raster { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .fusszeile__raster { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.fusszeile h2 { font-size: .875rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.fusszeile ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fusszeile address { font-style: normal; line-height: 1.8; }
.fusszeile__google { margin: 12px 0 0; }
.fusszeile__google a { display: inline-flex; align-items: center; gap: 6px; }
.fusszeile__google a::before { content: "★"; color: var(--gelb); }
.fusszeile__logo { background: #fff; border-radius: 8px; padding: 10px; width: 120px; margin-bottom: 16px; }
.fusszeile__unten {
  margin-top: 48px; padding-top: 20px; border-top: 1px solid #2c3136;
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .875rem;
}

/* Ratgeber-Artikel */
.artikel__inhalt { max-width: 860px; }
.artikel h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); margin: 2.2em 0 .6em; scroll-margin-top: 100px; }
.artikel h2:first-of-type { margin-top: 1.4em; }
.artikel__inhalt > p, .artikel__liste { max-width: 72ch; }
.artikel__hinweis { background: #fff7cc; border-left: 5px solid var(--gelb); border-radius: 8px; padding: 16px 20px; }
.artikel__hinweis p { margin: 0; }
.artikel__gegenueber { margin-top: 8px; }
@media (min-width: 760px) { .artikel__gegenueber { grid-template-columns: 1fr 1fr; } }
.artikel__gegenueber h3 { font-size: 1.1rem; margin-bottom: .5em; }
.artikel__gegenueber p { margin: 0; }
.artikel__tabellentitel { caption-side: top; text-align: left; font-weight: 700; color: var(--tinte); padding: 14px 16px 10px; }
.artikel .tabelle { margin-top: 16px; }
.artikel .tabelle td { white-space: normal; }
.artikel__fussnoten { margin: 10px 0 0; padding-left: 1.4em; font-size: .875rem; color: var(--text-leise); }
.artikel__fussnoten li { margin-bottom: 2px; }
.artikel__rechnung { margin: 20px 0 24px; background: var(--flaeche-alt); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); }
.artikel__rechnung h3 { font-size: 1.1rem; margin: 0 0 .4em; }
.artikel__annahme { font-size: .95rem; color: var(--text-leise); }
.artikel__rechnung .tabelle table { min-width: 520px; }
.artikel__liste { padding-left: 1.2em; }
.artikel__liste li { margin-bottom: 8px; }
.artikel__quellen { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--linie); }
.artikel__quellen h2 { font-size: 1.1rem; margin: 0 0 .5em; }
.artikel__quellen ul { padding-left: 1.2em; font-size: .95rem; color: var(--text-leise); }
@media (min-width: 900px) { .artikel__gegenueber--3 { grid-template-columns: repeat(3, 1fr); } }
.karte--hervor { border: 2px solid var(--rot); }
.tabelle--vergleich table { min-width: 760px; }
.tabelle--vergleich thead .tabelle__isorast { background: var(--rot-dunkel); }
.tabelle--vergleich tbody .tabelle__isorast { background: #fdeced; font-weight: 600; color: var(--tinte); }
.tabelle__bestwert { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: var(--rot-dunkel); color: #fff; font-size: .875rem; font-weight: 700; white-space: nowrap; }
.artikel__liste--haken { list-style: none; padding-left: 0; }
.artikel__liste--haken li { position: relative; padding-left: 30px; }
.artikel__liste--haken li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--rot-dunkel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.tabelle--vergleich tbody th { width: 17%; }
.tabelle--vergleich table { min-width: 720px; font-size: .9rem; }
.tabelle--vergleich th, .tabelle--vergleich td { padding: 10px 12px; }
.tabelle--vergleich thead th { white-space: normal; vertical-align: bottom; }

/* Ratgeber: Grafiken */
.tabelle--vergleich td { white-space: normal; }
.rg-blick { display: grid; gap: clamp(24px, 4vw, 48px); align-items: center; }
@media (min-width: 980px) { .rg-blick { grid-template-columns: 1.25fr .75fr; } }
.rg-kacheln { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 600px) { .rg-kacheln { grid-template-columns: 1fr 1fr; } }
.rg-kacheln li { background: var(--flaeche-alt); border-radius: var(--radius); padding: 18px 20px; color: var(--text-leise); line-height: 1.4; }
.rg-kacheln .karte__icon { margin-bottom: 12px; }
.rg-kacheln strong { display: block; font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); font-weight: 900; color: var(--tinte); line-height: 1.1; margin-bottom: 4px; }
.rg-blick__bild { margin: 0; }
.rg-blick__bild img { border-radius: var(--radius); box-shadow: var(--schatten); width: 100%; }
.rg-blick__bild figcaption, .rg-foto figcaption { font-size: .875rem; color: var(--text-leise); margin-top: 10px; }
.rg-preis { margin-top: clamp(28px, 4vw, 44px); }

.rg-aufbau { margin-top: 8px; }
@media (min-width: 900px) { .rg-aufbau { grid-template-columns: repeat(3, 1fr); } }
.rg-schnitt { display: block; width: 100%; height: auto; margin-bottom: 18px; border-radius: 6px; background: #fff; }
.rg-aufbau h3 { font-size: 1.15rem; margin-bottom: .2em; }
.rg-aufbau__beispiel { font-size: .875rem; font-weight: 700; letter-spacing: .04em; color: var(--rot-dunkel); margin: 0 0 .6em; }
.rg-aufbau p:last-child { margin-bottom: 0; }

.rg-zwei { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (min-width: 980px) {
  .rg-zwei { grid-template-columns: 1fr 1fr; }
  .rg-zwei--mitte { align-items: start; }
  .rg-zwei--bild { grid-template-columns: 1.5fr .8fr; }
}
.rg-diagramm { margin: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--schatten); padding: clamp(18px, 3vw, 28px); }
.abschnitt:not(.abschnitt--alt) .rg-diagramm { background: var(--flaeche-alt); box-shadow: none; }
.rg-diagramm__titel { font-weight: 800; color: var(--tinte); margin-bottom: 16px; }
.rg-diagramm .artikel__annahme { margin: 16px 0 0; font-size: .875rem; }
.rg-diagramm .rechenweg { margin-top: 20px; }
.rg-balken { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.rg-balken li { display: grid; grid-template-columns: minmax(0, 12em) minmax(0, 1fr) auto; align-items: center; gap: 8px 14px; }
.rg-balken__name { font-weight: 600; color: var(--tinte); font-size: .95rem; line-height: 1.25; }
.rg-balken__name small { display: block; font-weight: 400; font-size: .875rem; color: var(--text-leise); }
.rg-balken__spur { position: relative; display: block; height: 22px; background: #e9e5df; border-radius: 4px; }
.rg-balken__spur > span { display: block; height: 100%; width: var(--anteil); min-width: 4px; background: #858b91; border-radius: 4px; }
.rg-balken--isorast .rg-balken__spur > span { background: var(--rot); }
.rg-balken--isorast .rg-balken__name, .rg-balken--isorast .rg-balken__zahl { color: var(--rot-dunkel); }
.rg-balken__zahl { font-weight: 800; color: var(--tinte); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; min-width: 4.5em; }
.rg-balken__spur > .rg-balken__offen { background: linear-gradient(90deg, #858b91 75%, #e9e5df); }
.rg-balken--marke .rg-balken__spur::after { content: ""; position: absolute; left: var(--marke); top: -5px; bottom: -5px; width: 3px; margin-left: -1px; background: var(--rot-dunkel); }
.rg-marke-legende { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; font-size: .875rem; color: var(--text-leise); }
.rg-marke-legende span { flex: none; width: 3px; height: 18px; background: var(--rot-dunkel); }
@media (max-width: 599px) {
  .rg-balken li { grid-template-columns: minmax(0, 1fr) auto; }
  .rg-balken__spur { grid-column: 1 / -1; order: 3; }
}
.rg-einordnung { background: #fff; border-left: 5px solid #858b91; border-radius: 8px; padding: 14px 18px; }

.rg-grundrisse { margin: 0; }
.rg-grundrisse__paar { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 3vw, 28px); }
.rg-grundriss svg { display: block; width: 100%; height: auto; border-radius: 4px; }
.rg-grundriss p { margin: 10px 0 0; color: var(--text-leise); font-size: .95rem; line-height: 1.3; }
.rg-grundriss strong { display: block; font-size: 1.4rem; font-weight: 900; color: var(--tinte); }
.rg-grundriss--isorast strong { color: var(--rot-dunkel); }
.rg-plus { margin: 20px 0 0; background: #fdeced; border-radius: 8px; padding: 14px 18px; color: var(--text); }
.rg-plus strong { font-size: 1.3rem; font-weight: 900; color: var(--rot-dunkel); margin-right: 4px; }

.rg-foto { margin: 0; }
.rg-foto img { border-radius: var(--radius); box-shadow: var(--schatten); width: 100%; max-height: 640px; object-fit: cover; }
.rg-diagramm--weiss { margin-top: 24px; }

.rg-bauzeit-kopf { display: grid; gap: 20px 40px; align-items: end; margin-bottom: clamp(24px, 3vw, 36px); }
@media (min-width: 900px) { .rg-bauzeit-kopf { grid-template-columns: 1fr auto; } }
.rg-bauzeit-kopf .kopf { margin-bottom: 0; }
.rg-bauzeit-zahl { margin: 0; background: var(--rot); color: #fff; border-radius: var(--radius); padding: 18px 26px; max-width: 320px; line-height: 1.35; }
.rg-bauzeit-zahl strong { display: block; font-size: 2.4rem; font-weight: 900; line-height: 1.05; }
.rg-schritte { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 600px) { .rg-schritte { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .rg-schritte { grid-template-columns: repeat(5, 1fr); } }
.rg-schritte li { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden; }
.rg-schritte img, .rg-schritte__symbol { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.rg-schritte__symbol { display: grid; place-items: center; background: var(--flaeche-alt); color: var(--rot-dunkel); }
.rg-schritte__symbol svg { width: 52px; height: 52px; }
.rg-schritte h3 { display: flex; align-items: center; gap: 10px; font-size: 1.02rem; margin: 14px 16px 0; }
.rg-schritte h3 span { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--rot); color: #fff; font-size: .9rem; }
.rg-schritte p { margin: 6px 16px 16px; font-size: .95rem; color: var(--text-leise); }
.rg-praxis { margin: 24px 0 0; color: var(--text-leise); }

.rg-fazit { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 600px) { .rg-fazit { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .rg-fazit { grid-template-columns: repeat(3, 1fr); } }
.rg-fazit li { position: relative; background: #fff; border-radius: var(--radius); padding: 56px 18px 18px; color: var(--text-leise); box-shadow: var(--schatten); }
.rg-fazit li::before {
  content: ""; position: absolute; left: 18px; top: 18px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--rot-dunkel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.rg-fazit strong { display: block; color: var(--tinte); font-size: 1.05rem; margin-bottom: 4px; }
.rg-fair { margin-top: 28px; background: #fff; border-radius: var(--radius); border-left: 5px solid var(--rot); padding: clamp(18px, 3vw, 28px); }
.rg-fair h3 { font-size: 1.15rem; margin-bottom: .5em; }
.rg-fair p:last-child { margin-bottom: 0; }

/* Sommer & Winter: Dämmung das ganze Jahr */
.jahreszeiten { margin-top: clamp(28px, 4vw, 44px); background: #fff; border-radius: var(--radius); box-shadow: var(--schatten); padding: clamp(18px, 3vw, 28px); }
.jahreszeiten__titel { font-size: 1.2rem; margin: 0 0 16px; }
.jahreszeiten__paar { display: grid; gap: 16px; }
@media (min-width: 760px) { .jahreszeiten__paar { grid-template-columns: 1fr 1fr; } }
.jahreszeiten__seite { display: grid; grid-template-columns: minmax(0, 46%) 1fr; gap: 16px; align-items: center; }
.jahreszeiten__seite svg { display: block; width: 100%; height: auto; border-radius: 8px; }
.jahreszeiten__seite h4 { font-size: 1.05rem; margin: 0 0 .3em; }
.jahreszeiten__seite--winter h4 { color: #2c5a8a; }
.jahreszeiten__seite--sommer h4 { color: #8a4b00; }
.jahreszeiten__seite p { margin: 0; color: var(--text-leise); }
@media (max-width: 420px) { .jahreszeiten__seite { grid-template-columns: 1fr; } }

/* Ratgeber: Vertrauensleiste */
.rg-vertrauen { list-style: none; margin: 0 0 clamp(28px, 4vw, 40px); padding: 0; display: grid; gap: 14px; }
@media (min-width: 760px) { .rg-vertrauen { grid-template-columns: repeat(3, 1fr); } }
.rg-vertrauen li { background: var(--tinte); color: #d6d9dc; border-radius: var(--radius); padding: 20px 22px; line-height: 1.4; }
.rg-vertrauen strong { display: block; color: #fff; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 900; line-height: 1.1; margin-bottom: 4px; }

/* Kontaktformular: gegliedert in Schritte, Kacheln und Pillen */
.formular-karte { padding: 0; overflow: hidden; }
.formular__kopf { background: var(--tinte); color: #d6d9dc; padding: clamp(22px, 4vw, 36px) clamp(20px, 4vw, 40px); }
.formular__kopf h2 { color: #fff; font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); margin-bottom: .35em; }
.formular__kopf .formular__intro { color: #c3c8cd; margin-bottom: 18px; }
.formular__vorteile { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .92rem; font-weight: 600; color: #fff; }
.formular__vorteile li { display: flex; align-items: center; gap: 8px; }
.formular__vorteile svg { width: 20px; height: 20px; flex: none; color: var(--gelb); }
.formular-karte > .formular__meldung { margin: 20px clamp(20px, 4vw, 40px) 0; }
.formular-karte > noscript .formular__meldung { margin: 20px clamp(20px, 4vw, 40px) 0; }
.formular { gap: 0; padding: 8px clamp(20px, 4vw, 40px) clamp(24px, 4vw, 40px); }
.formular__pflichthinweis { margin: 14px 0 0; font-size: .875rem; color: var(--text-leise); }

.formular__schritt { display: grid; gap: 22px; padding: 26px 0; border-bottom: 1px solid var(--linie); }
.formular__schritt-titel { display: flex; align-items: center; gap: 12px; font-size: 1.15rem; margin: 0; }
.formular__schritt-titel span {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--rot); color: #fff; font-size: .95rem; font-weight: 800;
}

.formular input[type="text"], .formular input[type="email"], .formular input[type="tel"], .formular textarea {
  background: var(--flaeche-alt); border-color: #8f8a82; border-radius: 10px;
}
.formular input:focus, .formular textarea:focus { background: #fff; }
.formular ::placeholder { color: #6b7075; opacity: 1; }

/* Kacheln mit Symbol (Art des Vorhabens) */
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 10px; }
.kachel {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 108px; padding: 14px 10px; text-align: center; cursor: pointer;
  border: 1.5px solid #8f8a82; border-radius: 12px; background: #fff;
  font-weight: 700; font-size: .92rem; line-height: 1.25; color: var(--tinte);
  transition: border-color .15s, background-color .15s, transform .15s;
}
.kachel input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.kachel svg { width: 34px; height: 34px; color: #6b7075; transition: color .15s; }
.kachel:hover { border-color: var(--tinte); transform: translateY(-1px); }
.kachel:has(input:checked) { border-color: var(--rot); background: #fff5f5; box-shadow: 0 0 0 1px var(--rot); }
.kachel:has(input:checked) svg { color: var(--rot); }
.kachel:has(input:checked)::after {
  content: ""; position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--rot) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.kachel:has(input:focus-visible) { outline: 3px solid var(--tinte); outline-offset: 2px; }

/* Pillen (Einfachauswahl) */
.pillen { display: flex; flex-wrap: wrap; gap: 8px; }
.pille { position: relative; cursor: pointer; }
.pille input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pille span {
  display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 16px;
  border: 1.5px solid #8f8a82; border-radius: 999px; background: #fff;
  font-weight: 600; font-size: .95rem; color: var(--tinte); transition: border-color .15s, background-color .15s, color .15s;
}
.pille span::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2px solid #6b7075; background: #fff; transition: border-color .15s, box-shadow .15s; }
.pille:hover span { border-color: var(--tinte); }
.pille input:checked + span { border-color: var(--tinte); background: var(--tinte); color: #fff; }
.pille input:checked + span::before { border-color: #fff; box-shadow: inset 0 0 0 3px var(--tinte), inset 0 0 0 8px #fff; }
.pille input:focus-visible + span { outline: 3px solid var(--tinte); outline-offset: 2px; }

.formular__abschluss { display: grid; gap: 18px; padding-top: 26px; }
.formular__senden { justify-self: stretch; min-height: 56px; font-size: 1.05rem; }
.formular__senden svg { width: 20px; height: 20px; }
.formular__danach { margin: 0; text-align: center; font-size: .9rem; color: var(--text-leise); }

/* Hinweis-Box auf den Ratgeber (Startseite, Bausystem) */
.ratgeber-hinweis {
  margin-top: clamp(28px, 4vw, 44px); display: grid; gap: clamp(20px, 3vw, 40px); align-items: center;
  background: var(--tinte); color: #c3c8cd; border-radius: var(--radius); padding: clamp(22px, 4vw, 40px);
  box-shadow: var(--schatten);
}
@media (min-width: 900px) { .ratgeber-hinweis { grid-template-columns: 1.15fr 1fr; } }
.ratgeber-hinweis .dachzeile { color: var(--gelb); }
.ratgeber-hinweis h3 { color: #fff; font-size: clamp(1.3rem, 1.1rem + .9vw, 1.7rem); margin-bottom: .4em; }
.ratgeber-hinweis__text p:not(.dachzeile) { margin-bottom: 20px; }
.ratgeber-hinweis .btn svg { width: 18px; height: 18px; }
.ratgeber-hinweis__werte { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ratgeber-hinweis__werte li { background: rgb(255 255 255 / .07); border-left: 4px solid var(--rot); border-radius: 8px; padding: 12px 16px; line-height: 1.35; }
.ratgeber-hinweis__werte strong { display: block; color: #fff; font-size: 1.35rem; font-weight: 900; }

/* Bauablauf: Phasen, Video-Karten, Eigenleistung */
.etappe__phase {
  grid-column: 2; justify-self: start; margin: 4px 0 0; padding: 5px 14px; border-radius: 999px;
  background: var(--tinte); color: #fff; font-size: .875rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.etappe__phase + .etappe__nr { grid-row: 2 / span 2; }
.etappe__inhalt:has(.etappe__video) { grid-template-columns: minmax(0, 1fr); }
.etappe__video {
  display: grid; background: var(--tinte); border-radius: var(--radius); overflow: hidden; box-shadow: var(--schatten);
}
@media (min-width: 760px) { .etappe__video { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; } }
.etappe__video .video { border-radius: 0; }
.etappe__video .video__play { width: 68px; height: 68px; }
.etappe__video .video__play svg { width: 28px; height: 28px; }
.etappe:has(.etappe__phase)::before { top: 104px; }
@media (max-width: 599px) { .etappe:has(.etappe__phase)::before { top: 84px; } }
.etappe__video-text { padding: clamp(18px, 3vw, 32px); color: #c3c8cd; font-size: .95rem; margin: 0; }
.etappe__video-text p { margin: 0; }
.etappe__video-label { font-size: .875rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gelb); }
.etappe__video-text .etappe__video-titel { color: #fff; font-size: clamp(1.2rem, 1rem + .8vw, 1.5rem); font-weight: 800; margin: 4px 0 10px; line-height: 1.2; }

/* Bauablauf: breites erstes Bild, Silo-Box, Galerie fertiges Haus */
.bildgruppe--breit-erstes > a:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
@media (min-width: 700px) {
  .bildgruppe--breit-erstes > a:first-child { grid-column: span 2; aspect-ratio: auto; position: relative; }
  .bildgruppe--breit-erstes > a:first-child img { position: absolute; inset: 0; }
}
.silo { margin-top: 4px; }
.silo__inhalt { display: grid; gap: 20px; }
@media (min-width: 760px) { .silo__inhalt { grid-template-columns: 340px minmax(0, 1fr); align-items: start; } }
.silo__bild { margin: 0; }
.silo__bild img { border-radius: 8px; width: 100%; }
.silo__bild figcaption { font-size: .875rem; color: var(--text-leise); margin-top: 8px; }
.fertig-galerie { margin-bottom: 8px; }

/* Unterseiten-Kopf: dezente Wandstruktur der isorast-Elemente */
.seitenkopf {
  background: linear-gradient(rgb(32 36 40 / .9), rgb(32 36 40 / .93)), url("/img/strukturen/textur-wand-1400.webp") center / cover, var(--dunkel);
}

/* Bausystem: Alltag & Wohnklima */
@media (min-width: 900px) { .bedenken { grid-template-columns: repeat(3, 1fr); } }
.bedenken__karte { display: flex; flex-direction: column; scroll-margin-top: 100px; }
.bedenken__karte h3 { font-size: 1.15rem; }
.bedenken__karte p { color: var(--text); }
.bedenken__quelle { margin-top: auto; padding-top: 10px; font-size: .9rem; }

/* Referenzen: Kennzahlen im Seitenkopf */
.referenz-zahlen { margin: 24px 0 0; }

/* Startseite: Referenzen als Mosaik */
.referenzen-kopf { display: grid; gap: 20px 48px; align-items: end; margin-bottom: clamp(24px, 3vw, 36px); }
@media (min-width: 900px) { .referenzen-kopf { grid-template-columns: 1.3fr 1fr; } }
.referenzen-kopf .kopf { margin-bottom: 0; }
.referenzen-kopf__zahlen { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: baseline; }
.referenzen-kopf__zahlen p { margin: 0; color: var(--text-leise); font-weight: 600; }
.referenzen-kopf__zahlen strong { display: block; font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.5rem); font-weight: 900; line-height: 1; color: var(--rot-dunkel); }

.mosaik { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 10px; }
.galerie.mosaik > a { position: relative; aspect-ratio: auto; grid-column: auto; grid-row: auto; }
.mosaik img { position: absolute; inset: 0; }
.galerie.mosaik > .mosaik--gross { grid-column: span 2; grid-row: span 2; }
.galerie.mosaik > .mosaik--breit { grid-column: span 2; }
@media (min-width: 900px) {
  .mosaik { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 205px; grid-template-areas: "g g a b" "g g w w" "c d e m"; }
  .galerie.mosaik > .mosaik--gross { grid-area: g; } .galerie.mosaik > .mosaik--a { grid-area: a; } .galerie.mosaik > .mosaik--b { grid-area: b; }
  .galerie.mosaik > .mosaik--breit { grid-area: w; } .galerie.mosaik > .mosaik--c { grid-area: c; } .galerie.mosaik > .mosaik--d { grid-area: d; }
  .galerie.mosaik > .mosaik--e { grid-area: e; } .galerie.mosaik > .mosaik--f { grid-area: m; }
}
.mosaik__titel {
  position: absolute; left: 10px; bottom: 10px; z-index: 1; max-width: calc(100% - 20px);
  padding: 4px 11px; border-radius: 999px; background: rgb(28 31 34 / .82); color: #fff;
  font-size: .875rem; font-weight: 700; line-height: 1.3;
}

/* Freigestelltes Produktfoto (transparenter Hintergrund) */
img.freigestellt { border-radius: 0 !important; box-shadow: none !important; background: none; filter: drop-shadow(0 18px 22px rgb(0 0 0 / .16)); }

/* Schallschutz / Gösele-Schlitz (Bausystem) */
.schall { background: linear-gradient(180deg, #fff 0%, #fff 55%, var(--flaeche-alt) 100%); }
.schall__kopf .einleitung { max-width: 62ch; }
.schall__siegel {
  display: inline-flex; align-items: center; gap: 10px; margin: 8px 0 0; padding: 10px 18px;
  background: var(--tinte); color: #fff; border-radius: 999px; font-weight: 600; font-size: .95rem; text-align: left;
}
.schall__siegel svg { width: 20px; height: 20px; flex: none; color: var(--gelb); }
.schall__etikett { font-size: .875rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-leise); margin: 0 0 12px; }

.schall__gegenueber { display: grid; gap: 16px; align-items: stretch; }
@media (min-width: 880px) { .schall__gegenueber { grid-template-columns: 1fr 56px 1fr; gap: 0 12px; } }
.schall__karte { background: var(--flaeche-alt); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); border: 2px solid transparent; }
.schall__karte h3 { font-size: 1.2rem; margin: 18px 0 8px; }
.schall__karte p:last-child { margin-bottom: 0; color: var(--text); }
.schall__karte--loesung { background: #fff; border-color: var(--rot); box-shadow: var(--schatten); }
.schall__karte--loesung .schall__etikett { color: var(--rot); }
.schall__pfeil { display: grid; place-items: center; }
.schall__pfeil svg { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--rot); color: #fff; }
@media (max-width: 879px) { .schall__pfeil svg { rotate: 90deg; } }
.schall-schema { display: block; width: 100%; height: auto; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--linie); }
.schall-schema__beton { fill: #7d848b; }
.schall-schema__daemmung { fill: #d5d9dc; }
.schall-schema__putz { fill: #e9dcc4; }
.schall-schema__schlitz { fill: none; stroke: var(--tinte); stroke-width: 3; }
.schall-schema__welle { fill: none; stroke: var(--rot); stroke-width: 5; stroke-linecap: round; }
.schall-schema__welle--leise { stroke: #8a9198; stroke-width: 3; }
.schall__legende { grid-column: 1 / -1; list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; font-size: .875rem; color: var(--text-leise); }
.schall__legende li { display: flex; align-items: center; gap: 8px; }
.schall__farbe { width: 18px; height: 14px; border-radius: 3px; border: 1px solid #aab0b6; }
.schall__farbe--beton { background: #7d848b; }
.schall__farbe--daemmung { background: #d5d9dc; }
.schall__farbe--putz { background: #e9dcc4; }
.schall__farbe--schlitz { background: linear-gradient(var(--tinte), var(--tinte)) center / 100% 3px no-repeat, #d5d9dc; }

.schall__herkunft { display: grid; gap: clamp(24px, 4vw, 48px); align-items: center; margin-top: clamp(48px, 7vw, 88px); }
@media (min-width: 880px) { .schall__herkunft { grid-template-columns: 1.1fr 1fr; } }
.bildgruppe--hoch { grid-template-columns: repeat(2, 1fr); gap: 14px; }
.bildgruppe--hoch a { aspect-ratio: 3 / 4; background: #fff; border: 1px solid var(--linie); box-shadow: var(--schatten); }
.schall__fotos a:nth-child(2) { translate: 0 28px; }
@media (max-width: 879px) { .schall__fotos a:nth-child(2) { translate: none; } }
.schall__geschichte h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin: 0 0 18px; }
.schall__zeitleiste { list-style: none; margin: 0; padding: 0; position: relative; }
.schall__zeitleiste::before { content: ""; position: absolute; left: 8px; top: 10px; bottom: 10px; width: 2px; background: var(--linie); }
.schall__zeitleiste li { position: relative; padding: 0 0 18px 36px; color: var(--text); }
.schall__zeitleiste li::before { content: ""; position: absolute; left: 1px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--rot); }
.schall__zeitleiste strong { display: block; color: var(--tinte); }
.schall__klopftest { margin-top: 6px; background: var(--tinte); color: #e9eaeb; border-radius: var(--radius); padding: 18px 20px 18px 64px; position: relative; }
.schall__klopftest::before {
  content: ""; position: absolute; left: 18px; top: 20px; width: 30px; height: 30px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffd500' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 12h4M10 6c2 2 2 10 0 12M14 3c4 4 4 14 0 18M18 7c2 2 2 8 0 10'/%3E%3C/svg%3E") center / contain no-repeat;
}
.schall__klopftest p { margin: 0; }
.schall__klopftest strong { display: block; color: #fff; font-size: 1.05rem; margin-bottom: 4px; }
.schall__klopftest em { font-style: normal; color: var(--gelb); font-weight: 700; }

.schall__daten { display: grid; gap: clamp(20px, 3vw, 36px); margin-top: clamp(36px, 5vw, 56px); align-items: start; }
@media (min-width: 900px) { .schall__daten { grid-template-columns: 1.7fr 1fr; } }
.schall-diagramm { margin: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--schatten); padding: clamp(18px, 3vw, 28px); }
.schall-diagramm__titel { font-weight: 800; color: var(--tinte); font-size: 1.15rem; }
.schall-diagramm__titel small { display: block; font-weight: 400; font-size: .9rem; color: var(--text-leise); margin-top: 2px; }
.schall-diagramm__legende { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: .9rem; color: var(--text); }
.schall-diagramm__legende li { display: flex; align-items: center; gap: 8px; }
.schall-diagramm__marke { width: 14px; height: 14px; border-radius: 3px; }
.schall-diagramm__marke--alt, .schall-diagramm__balken--alt { background: #8a9198; }
.schall-diagramm__marke--neu, .schall-diagramm__balken--neu { background: var(--rot); }
.schall-diagramm__flaeche {
  list-style: none; margin: 16px 0 0; padding: 30px 0 0; position: relative;
  display: grid; grid-template-columns: repeat(5, 1fr); height: 260px;
  background: linear-gradient(var(--linie) 1px, transparent 1px) 0 30px / 100% 50px no-repeat, linear-gradient(var(--linie) 1px, transparent 1px) 0 80px / 100% 50px no-repeat, linear-gradient(var(--linie) 1px, transparent 1px) 0 130px / 100% 50px no-repeat, linear-gradient(var(--linie) 1px, transparent 1px) 0 180px / 100% 50px no-repeat;
}
.schall-diagramm__band {
  position: absolute; left: 0; top: 0; bottom: 30px; width: 80%; background: rgb(255 213 0 / .16);
  border-top: 3px solid var(--gelb); border-radius: 6px 6px 0 0;
  font-size: .875rem; font-weight: 700; color: var(--tinte); padding: 4px 8px; pointer-events: none;
}
.schall-diagramm__spalte { position: relative; display: grid; grid-template-rows: 1fr 30px; }
.schall-diagramm__paar { display: flex; align-items: flex-end; justify-content: center; gap: 2px; border-bottom: 2px solid var(--tinte); }
.schall-diagramm__balken { position: relative; width: min(36%, 34px); height: var(--hoehe); border-radius: 4px 4px 0 0; }
.schall-diagramm__balken span { position: absolute; bottom: 100%; left: 50%; translate: -50% -3px; font-size: .875rem; font-weight: 700; color: var(--tinte); font-variant-numeric: tabular-nums; }
.schall-diagramm__balken--alt span { color: var(--text-leise); font-weight: 600; }
.schall-diagramm__hz { align-self: center; text-align: center; font-size: .875rem; color: var(--text-leise); white-space: nowrap; }
.schall-diagramm__tabelle { margin-top: 18px; }
.schall-diagramm__tabelle table { width: 100%; border-collapse: collapse; margin-top: 12px; font-variant-numeric: tabular-nums; }
.schall-diagramm__tabelle th, .schall-diagramm__tabelle td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--linie); }
.schall__werte { margin: 0; display: grid; gap: 10px; }
.schall__werte > div { background: var(--flaeche-alt); border-radius: 8px; padding: 12px 16px; }
.schall__werte dt { font-size: .875rem; color: var(--text-leise); }
.schall__werte dd { margin: 2px 0 0; color: var(--text-leise); font-size: .92rem; }
.schall__werte dd strong { font-size: 1.5rem; font-weight: 900; color: var(--tinte); margin-right: 4px; }
.schall__werte > div:first-child { background: #fff7cc; }
.schall__werte > div:first-child dd strong { color: var(--rot); }
.schall__fotos { margin: clamp(32px, 5vw, 48px) 0 0; display: grid; gap: 16px 36px; align-items: center; }
@media (min-width: 880px) { .schall__fotos { grid-template-columns: 1.4fr 1fr; } }
.bildgruppe--hoch { grid-template-columns: repeat(2, 1fr); }
.bildgruppe--hoch a { aspect-ratio: 3 / 4; background: #fff; border: 1px solid var(--linie); }
.schall__fotos figcaption { font-size: 1rem; color: var(--text); }
.schall__fotos figcaption strong { display: block; font-size: 1.15rem; color: var(--tinte); margin-bottom: 6px; }
