/* Bauplanungsbüro Grusdt – Stylesheet (mobile first) */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-wght.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --gruen: #94c238;
  --gruen-tief: #7fab27;
  --gruen-dunkel: #437012;
  --schiefer: #282e3a;
  --schiefer-2: #333a48;
  --papier: #f4f6f1;
  --linie: #dde2d8;
  --text: #22262e;
  --text-2: #555c66;
  --hell: #d6dbe3;
  --schrift: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --titel: "Montserrat", "Segoe UI", system-ui, Arial, sans-serif;
  --breite: 1200px;
  --radius: 6px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 12px; }
@media (min-width: 900px) { html { scroll-padding-top: 110px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
}

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

h1, h2, h3 {
  font-family: var(--titel);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  overflow-wrap: break-word;
  hyphens: auto;
}
h2 { font-size: clamp(1.75rem, 4.2vw, 2.55rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }

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

:focus-visible { outline: 3px solid var(--gruen-dunkel); outline-offset: 3px; }
.dunkel :focus-visible, .fuss :focus-visible, .hero :focus-visible, .seitenkopf :focus-visible, .cta-karte :focus-visible { outline-color: var(--gruen); }
.kontakt-karte :focus-visible { outline-color: var(--text); }

.visually-hidden {
  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: 16px; top: -100px; z-index: 100;
  background: var(--schiefer); color: #fff; padding: .7em 1em; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: var(--breite); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }

/* Maßstab als Trenner, wie die Kante eines Lineals */
.massstab {
  height: 18px;
  background-color: #fff;
  background-image:
    linear-gradient(var(--gruen), var(--gruen)),
    repeating-linear-gradient(90deg, var(--schiefer) 0 2px, transparent 2px 100px),
    repeating-linear-gradient(90deg, var(--schiefer) 0 1px, transparent 1px 50px),
    repeating-linear-gradient(90deg, #7c8490 0 1px, transparent 1px 10px);
  background-size: 100% 5px, 100% 13px, 100% 9px, 100% 5px;
  background-position: 0 100%, 0 0, 0 0, 0 0;
  background-repeat: no-repeat;
}

/* Knöpfe */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.3em;
  font-family: var(--titel); font-weight: 600; font-size: 1rem; letter-spacing: .01em;
  text-decoration: none; line-height: 1.2;
  border: 2px solid var(--gruen); border-radius: var(--radius);
  background: var(--gruen); color: var(--text);
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--gruen-tief); border-color: var(--gruen-tief); color: var(--text); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--hell { background: transparent; border-color: #fff; color: #fff; }
.btn--hell:hover { background: #fff; border-color: #fff; color: var(--text); }
.btn--dunkel { background: var(--schiefer); border-color: var(--schiefer); color: #fff; }
.btn--dunkel:hover { background: #12161d; border-color: #12161d; color: #fff; }

/* Kopfzeile */
.kopf { background: #fff; border-bottom: 1px solid var(--linie); position: relative; z-index: 50; }
.kopf__innen { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.kopf__logo { display: block; flex: none; }
.kopf__logo img { width: 158px; }
.kopf__tel { min-height: 44px; padding: .5em .9em; font-size: .98rem; }
.kopf__tel-nr { display: none; }
@media (min-width: 420px) { .kopf__tel-nr { display: inline; } .kopf__tel-wort { display: none; } }

.nav { border-top: 1px solid var(--linie); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; gap: 18px; }
.nav a {
  display: block; padding: .75em 0; color: var(--text); text-decoration: none; white-space: nowrap;
  font-family: var(--titel); font-weight: 600; font-size: .95rem;
}
.nav a:hover, .nav a[aria-current] { color: var(--gruen-dunkel); }

@media (min-width: 900px) {
  .kopf { position: sticky; top: 0; }
  .kopf__innen { padding-top: 12px; padding-bottom: 12px; flex-wrap: nowrap; }
  .kopf__logo img { width: 206px; }
  .nav { border-top: 0; margin-left: auto; }
  .nav ul { gap: 30px; }
  .nav a { padding: .4em 0; border-bottom: 3px solid transparent; }
  .nav a:hover, .nav a[aria-current] { border-bottom-color: var(--gruen); color: var(--text); }
  .kopf__tel { margin-left: 18px; }
}
@media (max-width: 899px) {
  .kopf__innen { flex-wrap: wrap; }
  .nav { order: 3; flex: 1 0 100%; margin: 0 -16px; padding: 0 16px; min-width: 0; }
  .nav ul { overflow-x: auto; }
}
/* Schmale Bildschirme: alle vier Menüpunkte als 2×2-Raster */
@media (max-width: 479px) {
  .nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow: visible; }
  .nav li:nth-child(odd) { border-right: 1px solid var(--linie); }
  .nav li:nth-child(-n+2) { border-bottom: 1px solid var(--linie); }
  .nav a { text-align: center; padding: .7em .4em; }
}
@media (min-width: 700px) and (max-width: 899px) { .nav { margin: 0 -28px; padding: 0 28px; } .nav ul { justify-content: flex-start; gap: 32px; } }

/* Hero Startseite */
.hero { position: relative; isolation: isolate; background: var(--schiefer); color: #fff; overflow: hidden; }
.hero__bild { position: absolute; inset: 0; z-index: -2; }
.hero__bild img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 40%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(24, 29, 38, .95) 0%, rgba(24, 29, 38, .8) 55%, rgba(24, 29, 38, .5) 100%);
}
.hero__inhalt { padding-top: clamp(96px, 22vw, 180px); padding-bottom: clamp(48px, 9vw, 100px); }
.hero__kicker {
  display: inline-block; margin-bottom: 1.1rem; padding: .35em .8em;
  font-family: var(--titel); font-weight: 600; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  background: var(--gruen); color: var(--text); border-radius: 3px;
}
.hero h1 { font-size: clamp(1.95rem, 6.2vw, 4rem); line-height: 1.08; max-width: 17ch; margin-bottom: .45em; }
@media (max-width: 419px) { .hero__kicker { font-size: .72rem; letter-spacing: .08em; } }
@media (max-width: 339px) { .hero__kicker { letter-spacing: .03em; padding: .35em .6em; } }
.hero__text { font-size: clamp(1.1rem, 2.2vw, 1.3rem); max-width: 36rem; color: #eef1f4; }
.hero__knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }
@media (min-width: 900px) {
  .hero { min-height: min(78vh, 760px); display: flex; align-items: flex-end; }
  .hero > .wrap { width: 100%; }
  .hero::before { background: linear-gradient(90deg, rgba(24, 29, 38, .94) 0%, rgba(24, 29, 38, .78) 45%, rgba(24, 29, 38, .2) 100%); }
}

/* Abschnitte */
.abschnitt { padding: clamp(56px, 9vw, 112px) 0; }
.abschnitt--papier { background: var(--papier); }
.kicker {
  display: flex; align-items: center; gap: .7em; margin: 0 0 .9rem;
  font-family: var(--titel); font-weight: 600; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gruen-dunkel);
}
.kicker::before { content: ""; width: 44px; height: 14px; flex: none; background: url("../img/dachlinie.svg") center / contain no-repeat; }
.dunkel .kicker, .seitenkopf .kicker { color: var(--gruen); }
.einleitung { font-size: 1.2rem; color: var(--text-2); max-width: 46rem; }

/* Über mich */
.willkommen { display: grid; gap: 40px; }
.willkommen__text p { max-width: 42rem; }
.wissen { background: var(--papier); border-left: 6px solid var(--gruen); padding: 28px 24px; align-self: start; border-radius: 0 var(--radius) var(--radius) 0; }
.wissen h3 { font-size: 1.3rem; }
.haken-liste { list-style: none; padding: 0; margin: 0 0 1em; }
.haken-liste li { position: relative; padding-left: 34px; margin-bottom: .75em; }
.haken-liste li:last-child { margin-bottom: 0; }
.haken-liste li::before {
  content: ""; position: absolute; left: 0; top: .22em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--gruen) url("../img/haken.svg") center / 13px no-repeat;
}
.wissen__seit { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--linie); }
.wissen__seit span { font-family: var(--titel); font-weight: 600; font-size: .9rem; background: #fff; border: 1px solid var(--linie); border-radius: 3px; padding: .3em .7em; }
.signatur { font-family: var(--titel); font-weight: 600; font-size: 1.15rem; margin-top: 1.2em; }
@media (min-width: 900px) { .willkommen { grid-template-columns: 7fr 5fr; gap: 64px; align-items: start; } }

/* Leistungen */
.leistungen { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 20px; }
.karte {
  position: relative; background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 8px 24px -12px rgba(0, 0, 0, .2);
  transition: box-shadow .2s, transform .2s;
}
.karte:hover { box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 14px 30px -12px rgba(0, 0, 0, .28); transform: translateY(-2px); }
.karte:focus-within { outline: 3px solid var(--gruen-dunkel); outline-offset: 3px; }
.karte__bild { aspect-ratio: 3 / 2; background: var(--linie); overflow: hidden; }
.karte__bild img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.karte:hover .karte__bild img { transform: scale(1.04); }
.karte__inhalt { padding: 22px 22px 24px; border-top: 5px solid var(--gruen); flex: 1; display: flex; flex-direction: column; }
.karte__nr { display: block; font-family: var(--titel); font-weight: 600; font-size: .85rem; letter-spacing: .12em; color: var(--gruen-dunkel); margin-bottom: .35rem; }
.karte h3 { margin-bottom: .45em; }
.karte h3 a { color: var(--text); text-decoration: none; }
.karte h3 a::after { content: ""; position: absolute; inset: 0; }
.karte h3 a:focus-visible { outline: none; }
.karte p { color: var(--text-2); margin: 0 0 1em; }
.karte__mehr { margin-top: auto; display: inline-flex; align-items: center; gap: .4em; font-family: var(--titel); font-weight: 600; font-size: .92rem; color: var(--gruen-dunkel); }
.karte__mehr svg { width: 1em; height: 1em; transition: transform .2s; }
.karte:hover .karte__mehr svg { transform: translateX(4px); }
@media (min-width: 640px) { .leistungen { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .leistungen { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.hinweis-zeile { margin: 34px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; font-size: 1.15rem; }
.hinweis-zeile p { margin: 0; }

/* Dunkler Abschnitt mit Bauplan-Raster */
.dunkel { background: var(--schiefer); color: #fff; position: relative; overflow: hidden; }
.dunkel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
}
.dunkel > .wrap { position: relative; }
.dunkel p { color: var(--hell); }
.dunkel a:not(.btn) { color: #fff; }
.dunkel .einleitung { color: var(--hell); }

/* Effizienz-Check */
.check { display: grid; gap: 44px; align-items: start; }
.check__formular { margin-top: 26px; }
.check__felder { display: grid; gap: 14px; margin-bottom: 16px; }
.feld label { display: block; font-weight: 600; margin-bottom: .35em; color: #fff; }
.feld select, .feld input {
  width: 100%; min-height: 50px; padding: .55em .8em;
  font: inherit; font-size: 1.1rem; color: #fff;
  background-color: var(--schiefer-2);
  border: 2px solid #8a92a0; border-radius: var(--radius);
}
.feld select { padding-right: 2.4em; background: var(--schiefer-2) url("../img/pfeil-unten.svg") right .8em center / 14px no-repeat; appearance: none; -webkit-appearance: none; }
.feld select:hover, .feld input:hover { border-color: #fff; }
.feld select:focus-visible, .feld input:focus-visible { outline: 3px solid var(--gruen); outline-offset: 2px; border-color: #fff; }
.feld option { color: var(--text); background: #fff; }
.feld input::placeholder { color: #aab2be; opacity: 1; }
.feld__einheit { position: relative; }
.feld__einheit input { padding-right: 4.2em; }
.feld__einheit span { position: absolute; right: .9em; top: 50%; transform: translateY(-50%); color: var(--hell); pointer-events: none; }
.feld--haken { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.feld--haken input { width: 22px; height: 22px; min-height: 0; margin: .15em 0 0; accent-color: var(--gruen); flex: none; }
.feld--haken label { font-weight: 400; margin: 0; color: var(--hell); }
@media (min-width: 560px) { .check__felder { grid-template-columns: 1fr 1fr; } .check__felder .feld:first-child { grid-column: 1 / -1; } }

.ergebnis { min-height: 8em; margin-top: 22px; padding: 18px 20px; border-radius: var(--radius); background: var(--schiefer-2); border-left: 6px solid #8a92a0; }
.ergebnis p { margin: 0; }
.ergebnis p + p { margin-top: .5em; }
.ergebnis__status {
  display: inline-block; margin-bottom: .6em; padding: .2em .65em; border-radius: 3px;
  font-family: var(--titel); font-weight: 700; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase;
  background: #6b7280; color: #fff;
}
.ergebnis[class*="stufe-"] { border-left-color: var(--farbe); }
.ergebnis[class*="stufe-"] .ergebnis__status { background: var(--farbe); color: var(--schrift-farbe, #1f242c); }
.ergebnis .ergebnis__wert { font-family: var(--titel); font-weight: 700; font-size: 1.35rem; color: #fff; }
.check__cta { margin: 22px 0 0; }
.check__hinweis { font-size: .95rem; margin: 0; }

.skala-box .skala-box__titel { font-family: var(--titel); font-weight: 700; font-size: 1.1rem; margin: 0 0 .3em 30px; color: #fff; }
.skala-box__einheit { font-size: .95rem; margin: 0 0 1rem 30px; }
.skala-rahmen { position: relative; padding-left: 30px; }
.skala { list-style: none; margin: 0; padding: 0; }
.skala li { display: grid; grid-template-columns: minmax(0, 1fr) 8.6em; align-items: center; gap: 12px; height: 40px; margin-bottom: 6px; transition: opacity .4s; }
.skala__balken {
  height: 100%; width: var(--w); display: flex; align-items: center; padding-left: 12px;
  font-family: var(--titel); font-weight: 700; font-size: 1.2rem; line-height: 1;
  background: var(--farbe); color: var(--schrift-farbe, #1f242c);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%);
}
.skala__bereich { font-size: .95rem; color: var(--hell); text-align: right; white-space: nowrap; }
.stufe-ap { --w: 46%; --farbe: #14783a; --schrift-farbe: #fff; }
.stufe-a { --w: 52.5%; --farbe: #3c9a2f; --schrift-farbe: #fff; }
.stufe-b { --w: 59%; --farbe: #86bf3a; }
.stufe-c { --w: 65.5%; --farbe: #c4d62a; }
.stufe-d { --w: 72%; --farbe: #f5dc00; }
.stufe-e { --w: 78.5%; --farbe: #f7b500; }
.stufe-f { --w: 85%; --farbe: #ef8a00; }
.stufe-g { --w: 92%; --farbe: #de4f1c; --schrift-farbe: #fff; }
.stufe-h { --w: 100%; --farbe: #c3112b; --schrift-farbe: #fff; }
.skala__zeiger {
  position: absolute; left: 0; top: 0; width: 0; height: 0; opacity: 0;
  border-left: 20px solid #fff; border-top: 13px solid transparent; border-bottom: 13px solid transparent;
  transform: translateY(calc(var(--i, 0) * 46px + 7px));
  transition: transform .9s cubic-bezier(.2, .75, .15, 1), opacity .3s;
}
.skala-box--aktiv .skala__zeiger { opacity: 1; }
.skala-box--aktiv .skala li { opacity: .35; }
.skala-box--aktiv .skala li.aktiv { opacity: 1; }
.skala-box--aktiv .skala li.aktiv .skala__bereich { color: #fff; font-weight: 700; }
@media (min-width: 900px) {
  .check { grid-template-columns: 1.05fr .95fr; gap: 28px 72px; }
  .skala-box { grid-column: 2; grid-row: 1 / span 2; margin-top: 64px; }
  .check__hinweis { grid-column: 1; }
}

/* Kontakt */
.kontakt { display: grid; gap: 24px; margin-top: 36px; }
.info-karte { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 26px 22px; }
.info-karte h3 { font-size: 1.3rem; }
.info-karte address { font-style: normal; margin-bottom: 1em; }
.info-karte .klein { color: var(--text-2); font-size: 1rem; }
.kontakt-zeile { display: flex; gap: 12px; align-items: flex-start; margin-bottom: .8em; }
.kontakt-zeile svg { width: 22px; height: 22px; flex: none; margin-top: .15em; color: var(--gruen-dunkel); }
.kontakt-zeile a { overflow-wrap: anywhere; }
.orte { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: .4em 0 0; }
.orte li { background: var(--papier); border: 1px solid var(--linie); border-radius: 3px; padding: .25em .7em; font-weight: 600; }
.kontakt-karte { background: var(--gruen); color: var(--text); padding: 30px 26px; border-radius: var(--radius); display: flex; flex-direction: column; gap: 16px; align-self: start; }
.kontakt-karte h3 { font-size: 1.4rem; margin: 0; }
.kontakt-karte p { margin: 0; }
.kontakt-tel { font-family: var(--titel); font-weight: 700; font-size: clamp(1.9rem, 6.6vw, 2.8rem); line-height: 1; color: var(--text); text-decoration: none; letter-spacing: -.01em; }
.kontakt-tel:hover { color: var(--text); text-decoration: underline; }
.kontakt-karte .btn { align-self: flex-start; }
@media (min-width: 900px) { .kontakt { grid-template-columns: 1fr 1fr; gap: 32px; } .info-karte, .kontakt-karte { padding: 36px; } }

/* Unterseiten */
.seitenkopf { position: relative; isolation: isolate; background: var(--schiefer); color: #fff; overflow: hidden; }
.seitenkopf__bild { position: absolute; inset: 0; z-index: -2; }
.seitenkopf__bild img { width: 100%; height: 100%; object-fit: cover; }
.seitenkopf::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(24, 29, 38, .95) 0%, rgba(24, 29, 38, .82) 60%, rgba(24, 29, 38, .6) 100%);
}
.seitenkopf--ohne-bild::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 80px 80px;
}
.seitenkopf__inhalt { padding-top: clamp(28px, 5vw, 48px); padding-bottom: clamp(44px, 7vw, 80px); }
.seitenkopf h1 { font-size: clamp(1.85rem, 5vw, 3.2rem); line-height: 1.12; max-width: 22ch; margin-top: clamp(28px, 6vw, 64px); }
.seitenkopf__text { font-size: clamp(1.08rem, 2vw, 1.25rem); max-width: 40rem; color: #eef1f4; }
.seitenkopf .hero__knoepfe { margin-top: 1.3rem; }
@media (min-width: 900px) {
  .seitenkopf::before { background: linear-gradient(90deg, rgba(24, 29, 38, .94) 0%, rgba(24, 29, 38, .8) 50%, rgba(24, 29, 38, .35) 100%); }
  .seitenkopf--ohne-bild::before { background: none; background-image: linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px); background-size: 80px 80px; }
}

.brotkrumen { font-size: .95rem; color: var(--text-2); margin-bottom: 1.4rem; }
.brotkrumen ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4em; }
.brotkrumen li + li::before { content: "/"; margin-right: .4em; color: #9aa1ab; }
.brotkrumen a { display: inline-block; padding: 4px 0; }
.seitenkopf .brotkrumen { color: var(--hell); margin: 0; }
.seitenkopf .brotkrumen a { color: #fff; }

.inhalt { display: grid; gap: 40px; }
.inhalt > *, .seitenleiste > * { min-width: 0; }
.prosa { max-width: 44rem; }
.prosa, .seitenleiste, .wb__liste, .karte__inhalt { overflow-wrap: break-word; hyphens: auto; }
.prosa h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); margin-top: 1.7em; }
.prosa h2:first-child { margin-top: 0; }
.prosa .einleitung { margin-bottom: 1.2em; }
.prosa ul:not(.haken-liste) li::marker { color: var(--gruen-dunkel); }
.seitenleiste { display: grid; gap: 24px; align-content: start; }
.vorteil-karte { background: var(--papier); border-left: 6px solid var(--gruen); padding: 26px 24px; border-radius: 0 var(--radius) var(--radius) 0; }
.vorteil-karte h2 { font-size: 1.3rem; }
.cta-karte { background: var(--schiefer); color: #fff; padding: 28px 24px; border-radius: var(--radius); border-top: 6px solid var(--gruen); }
.cta-karte p { color: var(--hell); }
.cta-karte__satz { font-family: var(--titel); font-weight: 700; font-size: 1.25rem; line-height: 1.3; color: #fff !important; }
.cta-karte .kontakt-tel { color: #fff; font-size: clamp(1.7rem, 5vw, 2.2rem); display: inline-block; margin: .2em 0 .6em; }
.cta-karte .kontakt-tel:hover { color: #fff; }
@media (min-width: 900px) {
  .inhalt { grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; }
  .seitenleiste { position: sticky; top: 120px; }
}

.weitere { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.weitere a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 100%;
  padding: 16px 18px; background: #fff; border: 1px solid var(--linie); border-left: 5px solid var(--gruen); border-radius: var(--radius);
  color: var(--text); text-decoration: none; font-family: var(--titel); font-weight: 600; font-size: 1rem; line-height: 1.3;
  transition: border-color .2s, box-shadow .2s;
}
.weitere a:hover { border-color: var(--gruen-tief); box-shadow: 0 8px 20px -12px rgba(0, 0, 0, .3); color: var(--text); }
.weitere svg { width: 18px; height: 18px; flex: none; color: var(--gruen-dunkel); }
@media (min-width: 640px) { .weitere { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .weitere { grid-template-columns: repeat(4, 1fr); } }

/* ---------------------------------------------------------------
   Wärmebild (Startseite) – Umschalten nur per CSS
   --------------------------------------------------------------- */
.wb { display: grid; gap: 28px; }
.wb__figur { margin: 0; }
.wb__rahmen { border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden; background: var(--papier); }
.wb-svg { width: 100%; height: auto; }
.wb-svg text { font-family: var(--titel); font-weight: 700; }
.wb-thermo { opacity: 0; transition: opacity .7s ease; }
.wb:has(.schalter input:checked) .wb-thermo { opacity: 1; }
.wb-marke circle { fill: var(--gruen); stroke: #fff; stroke-width: 2; transition: fill .7s, stroke .7s; }
.wb-marke text { fill: #1f242c; font-size: 17px; }
.wb:has(.schalter input:checked) .wb-marke circle { fill: #fff; stroke: #1f242c; }
.wb-ansicht { font-size: 14px; letter-spacing: .08em; }
.wb-plan .wb-ansicht { fill: #555c66; }
.wb-thermo text { fill: #fff; font-size: 13px; }
.wb__figur figcaption { font-size: .95rem; color: var(--text-2); margin-top: .7em; }

.schalter { display: flex; align-items: center; gap: 14px; margin: 26px 0 8px; }
.schalter input {
  appearance: none; -webkit-appearance: none; position: relative; flex: none; margin: 0; cursor: pointer;
  width: 58px; height: 32px; border-radius: 16px; background: #6b7280; transition: background-color .3s;
}
.schalter input::before {
  content: ""; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); transition: transform .3s;
}
.schalter input:checked { background: linear-gradient(90deg, #6b1fa0, #e8452c 55%, #f7a21b); }
.schalter input:checked::before { transform: translateX(26px); }
.schalter input:focus-visible { outline: 3px solid var(--gruen-dunkel); outline-offset: 3px; }
.schalter label { font-family: var(--titel); font-weight: 600; cursor: pointer; }

.wb__liste { list-style: none; padding: 0; margin: 0; counter-reset: wb; display: grid; gap: 14px; }
.wb__liste li { counter-increment: wb; position: relative; padding-left: 42px; }
.wb__liste li::before {
  content: counter(wb); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--gruen); color: #1f242c;
  font-family: var(--titel); font-weight: 700; font-size: .9rem;
}
.wb__liste h3 { font-size: 1.05rem; margin: 0 0 .2em; }
.wb__liste h3 a { color: var(--text); text-decoration-color: var(--gruen); }
.wb__liste h3 a:hover { color: var(--gruen-dunkel); }
.wb__liste p { margin: 0; color: var(--text-2); }
@media (min-width: 900px) {
  .wb { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-template-areas: "text figur" "liste figur"; gap: 28px 64px; align-items: start; }
  .wb__text { grid-area: text; }
  .wb__figur { grid-area: figur; position: sticky; top: 130px; }
  .wb__liste { grid-area: liste; }
}

/* ---------------------------------------------------------------
   Sonnenstand (Hausplanung) – Tageszeit per Radio-Buttons, nur CSS
   --------------------------------------------------------------- */
.sonne { display: grid; gap: 36px; align-items: center; }
.sonne__figur { margin: 0; }
.sv-svg { width: 100%; height: auto; }
.sv-svg text { font-family: var(--titel); font-weight: 600; }
.sv-raum { fill: rgba(255, 255, 255, .03); transition: fill .8s .3s; }
.sv-licht { opacity: 0; transition: opacity .8s .3s; }
.sv-licht polygon { fill: rgba(255, 210, 63, .45); }
.sv-sonnenlauf { transform-box: view-box; transform-origin: 300px 240px; transition: transform 1.2s cubic-bezier(.3, .7, .2, 1); }
.sv-text { display: none; }
/* Grundzustand Mittag, damit es auch ohne :has() passt */
.sv-licht-mittag { opacity: 1; }
.sv-wohnen, .sv-schlafen, .sv-terrasse { fill: rgba(255, 210, 63, .14); }
.sv-text-mittag { display: block; }
.sonne:has(#sv-morgen:checked) .sv-sonnenlauf { transform: rotate(-90deg); }
.sonne:has(#sv-abend:checked) .sv-sonnenlauf { transform: rotate(90deg); }
.sonne:has(#sv-morgen:checked) .sv-licht-mittag, .sonne:has(#sv-abend:checked) .sv-licht-mittag { opacity: 0; }
.sonne:has(#sv-morgen:checked) .sv-licht-morgen, .sonne:has(#sv-abend:checked) .sv-licht-abend { opacity: 1; }
.sonne:has(#sv-morgen:checked) .sv-wohnen, .sonne:has(#sv-morgen:checked) .sv-terrasse { fill: rgba(255, 255, 255, .03); }
.sonne:has(#sv-morgen:checked) .sv-kueche { fill: rgba(255, 210, 63, .14); }
.sonne:has(#sv-abend:checked) .sv-schlafen { fill: rgba(255, 255, 255, .03); }
.sonne:has(#sv-morgen:checked) .sv-text-mittag, .sonne:has(#sv-abend:checked) .sv-text-mittag { display: none; }
.sonne:has(#sv-morgen:checked) .sv-text-morgen, .sonne:has(#sv-abend:checked) .sv-text-abend { display: block; }

.zeitwahl { border: 0; padding: 0; margin: 24px 0 18px; min-width: 0; }
.zeitwahl legend { padding: 0; margin-bottom: .6em; font-weight: 600; color: #fff; }
.zeitwahl__knoepfe { display: flex; flex-wrap: wrap; gap: 10px; }
.zeitwahl input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.zeitwahl label {
  display: inline-flex; align-items: center; min-height: 46px; padding: .5em 1.2em; cursor: pointer;
  border: 2px solid #8a92a0; border-radius: 999px; color: #fff;
  font-family: var(--titel); font-weight: 600; transition: background-color .2s, border-color .2s, color .2s;
}
.zeitwahl label:hover { border-color: #fff; }
.zeitwahl input:checked + label { background: var(--gruen); border-color: var(--gruen); color: #1f242c; }
.zeitwahl input:focus-visible + label { outline: 3px solid var(--gruen); outline-offset: 3px; }
.sv-status { min-height: 5.2em; padding: 16px 18px; border-left: 6px solid #ffd23f; background: var(--schiefer-2); border-radius: var(--radius); }
.sv-status p { margin: 0; color: #fff; }
.sonne__klein { font-size: .95rem; margin-top: 14px; }
.sonne__figur figcaption { color: var(--hell); }
.sonne > * { min-width: 0; }
/* mobil: Knöpfe, dann Grundriss, dann Erklärung */
.sonne__figur { order: 1; }
.sonne__fuss { order: 2; }
.zeitwahl:last-child { margin-bottom: 0; }
@media (min-width: 900px) {
  .sonne { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); grid-template-areas: "kopf figur" "fuss figur"; gap: 0 64px; align-items: start; }
  .sonne__kopf { grid-area: kopf; }
  .sonne__fuss { grid-area: fuss; margin-top: 18px; }
  .sonne__figur { grid-area: figur; align-self: center; }
}

/* ---------------------------------------------------------------
   Zollstock als Scroll-Fortschritt – nur CSS, nur wo unterstützt
   --------------------------------------------------------------- */
.zollstock { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 16px; z-index: 60; pointer-events: none; }
@media (min-width: 900px) { .kopf .zollstock { position: absolute; top: 100%; } }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) { .zollstock { display: block; } }
}
.zs {
  position: absolute; top: 0; left: 100%; width: 100%; height: 100%;
  background-color: var(--gruen);
  background-image:
    repeating-linear-gradient(90deg, rgba(31, 36, 44, .9) 0 1.5px, transparent 1.5px 50%),
    repeating-linear-gradient(90deg, rgba(31, 36, 44, .7) 0 1px, transparent 1px 5%);
  background-size: 100% 8px, 100% 4px;
  background-position: 0 0, 0 0;
  background-repeat: no-repeat;
  border-right: 1px solid rgba(31, 36, 44, .45);
  box-shadow: 0 2px 3px rgba(0, 0, 0, .18);
  transform-origin: 0 50%;
  animation-name: zs-auf;
  animation-duration: auto;
  animation-timing-function: linear;
  animation-fill-mode: both;
  animation-timeline: scroll(root);
}
.zollstock > .zs { left: 0; width: 10%; }
.zs b { position: absolute; right: 3px; bottom: 0; font: 700 9px/1 var(--titel); color: #1f242c; }
.zs-0 { animation-name: zs-start; animation-range: 0% 4%; }
.zs-1 { animation-range: 4% 14.67%; }
.zs-2 { animation-range: 14.67% 25.33%; }
.zs-3 { animation-range: 25.33% 36%; }
.zs-4 { animation-range: 36% 46.67%; }
.zs-5 { animation-range: 46.67% 57.33%; }
.zs-6 { animation-range: 57.33% 68%; }
.zs-7 { animation-range: 68% 78.67%; }
.zs-8 { animation-range: 78.67% 89.33%; }
.zs-9 { animation-range: 89.33% 100%; }
/* Glied klappt aus der gefalteten Lage (gespiegelt über dem vorigen) heraus */
@keyframes zs-auf { from { transform: scaleX(-1); } to { transform: scaleX(1); } }
@keyframes zs-start { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Fußzeile */
.fuss { background: var(--schiefer); color: #c9ced6; font-size: 1rem; }
.fuss__innen { display: grid; gap: 32px; padding-top: 52px; padding-bottom: 36px; }
.fuss__logo { width: 210px; margin-bottom: 16px; }
.fuss h2 { font-size: .95rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: .9em; }
.fuss p, .fuss address { margin: 0 0 .5em; font-style: normal; }
.fuss a { color: #fff; display: inline-block; padding: 4px 0; }
.fuss a:hover { color: var(--gruen); }
.fuss ul { list-style: none; padding: 0; margin: 0; }
.fuss li { margin-bottom: .3em; }
.fuss__insta { display: inline-flex !important; align-items: center; gap: .5em; margin-top: .4em; }
.fuss__insta svg { width: 20px; height: 20px; }
.fuss__unten { border-top: 1px solid #3d4453; padding-top: 18px; padding-bottom: 22px; font-size: .95rem; color: #aeb5c0; }
.fuss__unten p { margin: 0; }
@media (min-width: 700px) { .fuss__innen { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .fuss__innen { grid-template-columns: 1.3fr 1.2fr 1fr .8fr; } }

/* Rechtstexte */
.rechtstext { padding: clamp(40px, 7vw, 80px) 0 clamp(56px, 8vw, 96px); }
.rechtstext .wrap { max-width: 820px; }
.rechtstext h1 { font-size: clamp(2.1rem, 6vw, 3.2rem); }
.rechtstext h2 { font-size: clamp(1.35rem, 3.2vw, 1.75rem); margin-top: 1.6em; }
.rechtstext h3 { font-size: 1.15rem; margin-top: 1.4em; }
.rechtstext li { margin-bottom: .35em; }
.rechtstext a { overflow-wrap: anywhere; }
.rechtstext .stand { color: var(--text-2); margin-top: 2em; }

/* 404 */
.fehler { padding: clamp(56px, 10vw, 120px) 0; text-align: center; }
.fehler .fehler__code { font-family: var(--titel); font-weight: 800; font-size: clamp(5.5rem, 24vw, 11rem); line-height: .9; color: var(--gruen); margin: 0 auto .15em; letter-spacing: -.04em; }
.fehler h1 { font-size: clamp(2rem, 6vw, 3.2rem); }
.fehler p { max-width: 36rem; margin-left: auto; margin-right: auto; color: var(--text-2); font-size: 1.15rem; }
.fehler .btn { margin-top: 1rem; }
