/* wohlfühlgrad – Stylesheet
   Schrift: standardmäßig Systemschriften (DSGVO-sicher, kein externer Aufruf).
   Zum Umstellen auf Figtree: Schriftdateien nach /assets/fonts/ legen und den
   @font-face-Block unten einkommentieren. */

/*
@font-face { font-family: "Figtree"; src: url("fonts/figtree-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
*/

:root {
  /* Markenfarben */
  --gruen: #02891c;            /* Hauptgrün, Primärbutton */
  --gruen-dunkel: #0f5c2d;     /* Kontrastgrün, Links und Hover */
  --gelb: #fdd101;             /* Logo-Gelb, Akzente und Sekundärbutton */
  --gelb-hover: #eac300;
  --gelb-hell: #fff8d6;        /* Highlight-Flächen */

  /* Flächen */
  --warmweiss: #fafbf7;        /* Haupthintergrund */
  --nebelgruen: #f1f7f2;       /* wechselnde Sektionen */
  --tiefgruen: #0b2f1c;        /* dunkle Sektionen, Fußbereich */
  --weiss: #ffffff;            /* Karten, Formulare */

  /* Schrift und Linien */
  --dunkel: #1c241e;           /* Fließtext */
  --warmgrau: #657068;         /* Sekundärtext */
  --sand: #d9e5db;             /* Trennlinien */
  --feldrand: #6f9078;         /* Umrandung von Eingabefeldern, 3,4:1 */
  --alarm: #b3261e;

  /* abgeleitete Töne für dunkle Flächen */
  --auf-dunkel: var(--auf-dunkel);         /* Text auf Tiefgrün, 11,4:1 */
  --auf-dunkel-leise: #a9bdb2;   /* Sekundärtext auf Tiefgrün, 7,4:1 */
  --linie-dunkel: var(--linie-dunkel);       /* Trennlinien auf Tiefgrün */
  --flaeche-dunkel: var(--flaeche-dunkel);     /* abgesetzte Fläche auf Tiefgrün */

  --schrift: "Figtree", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --spalte: 1140px;
  --text-spalte: 64ch;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--dunkel);
  background: var(--warmweiss);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; max-width: var(--text-spalte); }
a { color: var(--gruen-dunkel); }
a:hover { color: var(--gruen); }
img { max-width: 100%; height: auto; display: block; }

:focus-visible { outline: 3px solid var(--gruen); outline-offset: 3px; border-radius: 2px; }

.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 {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--tiefgruen); color: var(--nebelgruen); padding: 0.7rem 1.1rem; border-radius: 4px;
}
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--spalte); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Logo ---------- */
/* Logo als eigene Datei. logo.svg trägt die Originalfarben und setzt einen
   dunklen Untergrund voraus; logo-hell.svg ist die abgedunkelte Fassung. */
.logo { display: inline-flex; text-decoration: none; }
.logo img { display: block; height: 6rem; width: auto; }
@media (max-width: 900px) { .logo img { height: 4.6rem; } }
@media (max-width: 480px) { .logo img { height: 3.8rem; } }

/* ---------- Kopfbereich ---------- */
.kopf {
  position: sticky; top: 0; z-index: 50;
  background: var(--warmweiss); border-bottom: 1px solid var(--sand);
}
.kopf__innen { display: flex; align-items: center; gap: 1.5rem; padding-top: 0.5rem; padding-bottom: 0.5rem; }
.kopf__nav { margin-left: auto; display: flex; align-items: center; gap: 1.4rem; }
.kopf__nav a { color: var(--dunkel); text-decoration: none; font-size: 1rem; }
.kopf__nav a:hover, .kopf__nav a[aria-current="page"] { color: var(--gruen-dunkel); }
.kopf__nav a[aria-current="page"] { font-weight: 700; }
.kopf__tel { font-weight: 700; white-space: nowrap; }

.menue-schalter {
  display: none; margin-left: auto; background: none; border: 1px solid var(--sand);
  border-radius: 4px; padding: 0.55rem 0.8rem; font: inherit; font-size: 0.95rem; cursor: pointer;
  color: var(--dunkel);
}

@media (max-width: 900px) {
  .menue-schalter { display: block; }
  .kopf__nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--weiss); border-bottom: 1px solid var(--sand); padding: 0.5rem 1.25rem 1.25rem;
  }
  .kopf__nav.offen { display: flex; }
  .kopf__nav a { padding: 0.75rem 0; border-bottom: 1px solid var(--sand); }
  .kopf__tel { border-bottom: 0; padding-top: 1rem; }
}

/* ---------- Abschnitte ---------- */
.band { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.band--creme { background: var(--nebelgruen); }
.band--dunkel { background: var(--tiefgruen); color: var(--weiss); }
.band--dunkel h2, .band--dunkel h3 { color: var(--weiss); }
/* Knöpfe ausnehmen, sonst gelbe Schrift auf gelbem Knopf */
.band--dunkel a:not(.knopf) { color: var(--gelb); }
.band--schmal { padding: clamp(2.25rem, 4vw, 3.25rem) 0; }

.fuehrung { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--warmgrau); }
.band--dunkel .fuehrung { color: var(--auf-dunkel-leise); }

/* ---------- Reglerlinie als Gliederungselement ---------- */
.regler-linie { display: flex; height: 6px; border-radius: 3px; overflow: hidden; max-width: 220px; margin: 0 0 1.75rem; }
.regler-linie span:first-child { flex: 2; background: var(--gelb); }
.regler-linie span:last-child { flex: 1; background: var(--gruen); }

/* ---------- Hero ---------- */
.hero { background: var(--nebelgruen); padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); }
.hero__raster { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 900px) { .hero__raster { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: 0.4em; }
.hero__text p { font-size: 1.15rem; }

/* ---------- Rechner ---------- */
.rechner { background: var(--weiss); border: 1px solid var(--sand); border-radius: 10px; padding: 1.5rem; }
.rechner__kopf { font-weight: 700; margin-bottom: 0.25rem; }
.rechner__haus { color: var(--warmgrau); font-size: 0.95rem; margin-bottom: 1.5rem; }
.rechner__stufe { font-size: 1.35rem; font-weight: 700; margin-bottom: 1.25rem; min-height: 1.6em; }

.schieber { width: 100%; margin: 0 0 0.5rem; -webkit-appearance: none; appearance: none; background: transparent; }
.schieber::-webkit-slider-runnable-track {
  height: 10px; border-radius: 5px;
  background: linear-gradient(to right, var(--gelb) 0 66%, var(--gruen) 66% 100%);
}
.schieber::-moz-range-track {
  height: 10px; border-radius: 5px;
  background: linear-gradient(to right, var(--gelb) 0 66%, var(--gruen) 66% 100%);
}
.schieber::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--gruen); border: 3px solid var(--weiss); margin-top: -8px;
  box-shadow: 0 0 0 1px var(--sand); cursor: pointer;
}
.schieber::-moz-range-thumb {
  width: 26px; height: 26px; border-radius: 50%; background: var(--gruen);
  border: 3px solid var(--weiss); box-shadow: 0 0 0 1px var(--sand); cursor: pointer;
}
.schieber__skala { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--warmgrau); margin-bottom: 1.5rem; }

.werte { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; border-top: 1px solid var(--sand); padding-top: 1.25rem; }
.wert__zahl { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; }
.wert__name { font-size: 0.9rem; color: var(--warmgrau); }
.hinweis { font-size: 0.82rem; color: var(--warmgrau); margin: 1.25rem 0 0; max-width: none; }

/* ---------- Listen und Raster ---------- */
.raster { display: grid; gap: 1.75rem; }
.raster--2 { grid-template-columns: repeat(2, 1fr); }
.raster--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px) { .raster--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .raster--2, .raster--3 { grid-template-columns: 1fr; } }

.leistung { border-top: 4px solid var(--gruen); padding-top: 1rem; }
.leistung h3 { margin-bottom: 0.35em; }
.leistung p { font-size: 1rem; color: var(--warmgrau); margin-bottom: 0.6em; }
.leistung a { font-weight: 700; text-decoration: none; }
.leistung a:hover { text-decoration: underline; }

.liste { list-style: none; padding: 0; margin: 0 0 1.5rem; max-width: var(--text-spalte); }
.liste li { padding: 0.6rem 0 0.6rem 1.7rem; border-bottom: 1px solid var(--sand); position: relative; }
.liste li::before {
  content: ""; position: absolute; left: 0; top: 1.15rem;
  width: 9px; height: 9px; border-radius: 50%; background: var(--gruen);
}
.band--dunkel .liste li { border-bottom-color: var(--linie-dunkel); }

.ablauf { list-style: none; counter-reset: schritt; padding: 0; margin: 0; }
.ablauf li { counter-increment: schritt; padding: 1.1rem 0 1.1rem 3.2rem; border-bottom: 1px solid var(--sand); position: relative; }
.ablauf li::before {
  content: counter(schritt); position: absolute; left: 0; top: 1.05rem;
  width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--gelb-hell);
  color: var(--gruen-dunkel); font-weight: 700; display: grid; place-items: center; font-size: 0.95rem;
}
.ablauf strong { display: block; }

/* ---------- Förderbalken ---------- */
.foerderbalken { margin: 0 0 2rem; }
.foerderbalken__spur { display: flex; height: 34px; border-radius: 6px; overflow: hidden; background: var(--sand); }
.foerderbalken__teil { display: grid; place-items: center; font-size: 0.85rem; font-weight: 700; color: var(--weiss); }
.foerderbalken__teil--grund { background: var(--gruen-dunkel); }
.foerderbalken__teil--tempo { background: var(--gruen); }
.foerderbalken__teil--einkommen { background: var(--gelb); color: var(--tiefgruen); }
.foerderbalken__rest { color: var(--warmgrau); font-size: 0.85rem; display: grid; place-items: center; }

/* ---------- Zitate ---------- */
.stimme { border-left: 4px solid var(--gelb); padding: 0.25rem 0 0.25rem 1.25rem; }
.stimme blockquote { margin: 0 0 0.75rem; font-size: 1.1rem; }
.stimme cite { font-style: normal; color: var(--warmgrau); font-size: 0.92rem; }

/* ---------- Schaltflächen ---------- */
.knopf {
  display: inline-block; background: var(--gruen); color: var(--weiss);
  padding: 0.85rem 1.6rem; border-radius: 6px; text-decoration: none; font-weight: 700;
  border: 2px solid var(--gruen); cursor: pointer; font-family: inherit; font-size: 1rem;
}
.knopf:hover { background: var(--gruen-dunkel); border-color: var(--gruen-dunkel); color: var(--weiss); }
.knopf--rand { background: transparent; color: var(--gruen-dunkel); }
.knopf--rand:hover { background: var(--gruen); color: var(--weiss); }
.band--dunkel .knopf--rand { color: var(--nebelgruen); border-color: var(--nebelgruen); }
.band--dunkel .knopf--rand:hover { background: var(--nebelgruen); color: var(--dunkel); }
.knopf--gelb {
  background: var(--gelb); border-color: var(--gelb); color: var(--tiefgruen);
}
.band--dunkel .knopf--gelb, .knopf--gelb { color: var(--tiefgruen); }
.knopf--gelb:hover { background: var(--gelb-hover); border-color: var(--gelb-hover); color: var(--tiefgruen); }

.knopf-reihe { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.5rem; }

/* ---------- Formular ---------- */
.formular { display: grid; gap: 1.1rem; max-width: 34rem; }
.feld { display: grid; gap: 0.35rem; }
.feld label { font-weight: 700; font-size: 0.95rem; }
.feld input, .feld select, .feld textarea {
  font: inherit; padding: 0.7rem 0.8rem; border: 1px solid var(--feldrand);
  border-radius: 6px; background: var(--weiss); color: var(--dunkel); width: 100%;
}
.feld textarea { min-height: 8rem; resize: vertical; }
.feld--kontrolle { display: flex; gap: 0.6rem; align-items: flex-start; }
.feld--kontrolle input { width: auto; margin-top: 0.35rem; }
.feld--kontrolle label { font-weight: 400; font-size: 0.92rem; }

/* ---------- Fußbereich ---------- */
.fuss { background: var(--tiefgruen); color: var(--auf-dunkel); padding: 3.5rem 0 2rem; font-size: 0.95rem; }
.fuss a { color: var(--gelb); text-decoration: none; }
.fuss a:hover { color: var(--gelb-hover); text-decoration: underline; }
.fuss__raster { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 760px) { .fuss__raster { grid-template-columns: 1fr; gap: 2rem; } }
.fuss h4 { color: var(--weiss); font-size: 1rem; margin-bottom: 0.8em; }
.fuss ul { list-style: none; padding: 0; margin: 0; }
.fuss li { margin-bottom: 0.5rem; }
.fuss__mark { width: 46px; margin-bottom: 1rem; }
.fuss__unten {
  margin-top: 2.75rem; padding-top: 1.25rem; border-top: 1px solid var(--linie-dunkel);
  display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: space-between; font-size: 0.88rem;
}

/* ---------- Seitenkopf der Unterseiten ---------- */
.seitenkopf { background: var(--nebelgruen); padding: clamp(2.5rem, 5vw, 3.75rem) 0; }
.seitenkopf p { font-size: 1.15rem; color: var(--warmgrau); }
.brotkrumen { font-size: 0.88rem; color: var(--warmgrau); margin-bottom: 1.25rem; }
.brotkrumen a { color: var(--warmgrau); }

.inhalt h2 { margin-top: 2.5rem; }
.inhalt h2:first-child { margin-top: 0; }
.inhalt h3 { margin-top: 1.75rem; }

/* ---------- Erklärung zum Rechenweg ----------
   Öffnet per :hover und :focus-within, also auch ohne JavaScript und
   per Tastatur. Antippen setzt den Fokus auf den Knopf und öffnet ebenfalls. */
.erklaerung { position: relative; display: inline-block; margin-top: 1rem; }
.erklaerung__schalter {
  background: none; border: 0; padding: 0; font: inherit; font-size: 0.88rem;
  color: var(--gruen-dunkel); text-decoration: underline;
  text-decoration-style: dotted; text-underline-offset: 3px; cursor: help;
}
.erklaerung__feld {
  display: none; position: absolute; bottom: calc(100% + 0.6rem); left: 0; z-index: 20;
  width: min(32rem, calc(100vw - 3rem));
  background: var(--tiefgruen); color: var(--auf-dunkel); border-radius: 8px;
  padding: 1.1rem 1.2rem; font-size: 0.86rem; line-height: 1.6;
  box-shadow: 0 10px 30px rgba(34, 48, 26, 0.25);
}
.erklaerung:hover .erklaerung__feld,
.erklaerung:focus-within .erklaerung__feld { display: block; }
.erklaerung__feld h4 { color: var(--weiss); font-size: 0.9rem; margin: 0 0 0.4rem; }
.erklaerung__feld h4 + h4, .erklaerung__feld ul + h4 { margin-top: 1rem; }
.erklaerung__feld p { margin: 0 0 0.5rem; max-width: none; }
.erklaerung__feld ul { margin: 0; padding-left: 1.1rem; }
.erklaerung__feld li { margin-bottom: 0.2rem; }
.rechenweg {
  display: block; border-radius: 5px; padding: 0.5rem 0.7rem; margin-bottom: 0.3rem;
}
.rechenweg b { display: block; color: var(--weiss); font-weight: 700; }
.rechenweg.aktiv { background: var(--flaeche-dunkel); color: var(--weiss); }
@media (max-width: 620px) {
  .erklaerung { position: static; display: block; }
  .erklaerung__feld { position: static; width: auto; margin-top: 0.75rem; box-shadow: none; }
}

/* ---------- Bedingte Formularblöcke ---------- */
.themenwahl {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.5rem; border: 0; padding: 0; margin: 0; min-width: 0;
}
.themenwahl > legend { font-weight: 700; font-size: 0.95rem; padding: 0; margin-bottom: 0.5rem; }
.themenwahl input[type="radio"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.themenwahl label {
  display: block; border: 1px solid var(--sand); border-radius: 6px;
  padding: 0.65rem 0.8rem; cursor: pointer; font-size: 0.95rem; text-align: center;
  background: var(--weiss);
}
.themenwahl label:hover { border-color: var(--gruen); }
.themenwahl input:checked + label {
  background: var(--gruen); border-color: var(--gruen); color: var(--weiss); font-weight: 700;
}
.themenwahl input:focus-visible + label { outline: 3px solid var(--gruen); outline-offset: 3px; }

.block {
  grid-column: 1 / -1;
  border: 1px solid var(--sand); border-radius: 8px; padding: 1.25rem;
  margin: 0.75rem 0 0; background: var(--nebelgruen); min-width: 0;
}
#t-wartung:checked ~ .block[data-thema~="wartung"],
#t-waermepumpe:checked ~ .block[data-thema~="waermepumpe"],
#t-klimaanlage:checked ~ .block[data-thema~="klimaanlage"],
#t-stoerung:checked ~ .block[data-thema~="stoerung"],
#t-sonstiges:checked ~ .block[data-thema~="sonstiges"] { display: block; }
.block { display: none; }
.block legend { font-weight: 700; padding: 0 0.4rem; font-size: 0.95rem; }
.block .feld { margin-bottom: 1rem; }
.block .feld:last-of-type { margin-bottom: 0; }
.block__hinweis { font-size: 0.85rem; color: var(--warmgrau); margin: 0 0 1rem; }

.raum-zeile { display: grid; grid-template-columns: 1fr 7rem auto; gap: 0.6rem; margin-bottom: 0.6rem; align-items: end; }
.raum-zeile .feld { margin-bottom: 0; }
.raum-weg {
  background: none; border: 1px solid var(--sand); border-radius: 6px;
  padding: 0.7rem 0.75rem; font: inherit; cursor: pointer; color: var(--warmgrau); line-height: 1;
}
.raum-weg:hover { border-color: var(--gruen); color: var(--gruen-dunkel); }
@media (max-width: 520px) { .raum-zeile { grid-template-columns: 1fr 5.5rem auto; } }

.knopf--klein { padding: 0.55rem 1rem; font-size: 0.92rem; }
.honigtopf { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Fehlermeldungen ---------- */
.feld-fehler { color: var(--alarm); font-size: 0.85rem; }
.feld input:invalid:not(:placeholder-shown),
.feld textarea:invalid:not(:placeholder-shown) { border-color: var(--alarm); }
.meldung--alarm {
  border-left: 4px solid var(--alarm); border-radius: 0;
  padding: 0.75rem 0 0.75rem 1rem; color: var(--alarm);
}

/* Elemente, die ohne JavaScript sinnlos wären, bleiben ohne JavaScript verborgen */
.nur-mit-js { display: none; }
.js .nur-mit-js { display: inline-block; }

/* ---------- Bildflächen ----------
   Fällt auf eine Farbfläche zurück, solange kein Foto hinterlegt ist. */
.bild {
  background: var(--sand) center/cover no-repeat; border-radius: 8px;
  aspect-ratio: 4 / 3; width: 100%;
}
.bild--breit { aspect-ratio: 16 / 9; }
.bildunterschrift { font-size: 0.85rem; color: var(--warmgrau); margin: 0.5rem 0 0; }

/* ---------- Marken und Auszeichnungen ---------- */
.marken {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.9rem; list-style: none; padding: 0; margin: 0; align-items: center;
}
.marken li { display: flex; }
.marken img {
  width: 100%; height: auto; border: 1px solid var(--sand); border-radius: 6px;
  background: var(--weiss);
}

.auszeichnungen { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin: 0; padding: 0; list-style: none; }
.siegel {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem; list-style: none; padding: 0; margin: 0 0 1.5rem;
}
.siegel img {
  width: 100%; height: auto; border-radius: 8px; background: var(--weiss);
  border: 1px solid var(--sand);
}
.band--dunkel .siegel img { border-color: var(--linie-dunkel); }

.auszeichnungen li {
  border: 1px solid var(--sand); border-left: 4px solid var(--gruen);
  border-radius: 6px; padding: 0.9rem 1rem; font-size: 0.95rem;
}
.auszeichnungen strong { display: block; }
.band--dunkel .siegel {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem; list-style: none; padding: 0; margin: 0 0 1.5rem;
}
.siegel img {
  width: 100%; height: auto; border-radius: 8px; background: var(--weiss);
  border: 1px solid var(--sand);
}
.band--dunkel .siegel img { border-color: var(--linie-dunkel); }

.auszeichnungen li { border-color: var(--linie-dunkel); border-left-color: var(--gelb); }

/* ---------- Häufige Fragen ---------- */
.fragen { max-width: var(--text-spalte); }
.fragen details { border-bottom: 1px solid var(--sand); }
.fragen summary {
  cursor: pointer; padding: 1rem 0; font-weight: 700; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem;
}
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: "+"; color: var(--gruen-dunkel); font-size: 1.3rem; line-height: 1; }
.fragen details[open] summary::after { content: "−"; }
.fragen details > p { padding-bottom: 1rem; margin: 0; }

/* ---------- Kontaktwege ---------- */
.wege { list-style: none; padding: 0; margin: 0 0 2rem; }
.wege li { border-bottom: 1px solid var(--sand); padding: 0.85rem 0; }
.wege a { text-decoration: none; font-weight: 700; }
.wege a:hover { text-decoration: underline; }
.wege span { display: block; font-weight: 400; font-size: 0.9rem; color: var(--warmgrau); }

.karte { width: 100%; aspect-ratio: 16 / 10; border: 0; border-radius: 8px; }

/* ---------- Einwilligungsbanner ---------- */
.einwilligung {
  position: fixed; inset: auto 0 0 0; z-index: 90;
  background: var(--tiefgruen); color: var(--auf-dunkel);
  border-top: 3px solid var(--gelb);
  padding: 1.5rem 0 calc(1.5rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.3);
}
.einwilligung[hidden] { display: none; }
.einwilligung h2 { color: var(--weiss); font-size: 1.15rem; margin-bottom: 0.4rem; }
.einwilligung p { font-size: 0.92rem; margin-bottom: 1rem; max-width: 60ch; }
.einwilligung a { color: var(--gelb); }
.einwilligung__wahl { display: grid; gap: 0.5rem; margin-bottom: 1.25rem; }
.einwilligung__wahl label { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.92rem; }
.einwilligung__wahl input { margin-top: 0.3rem; }
.einwilligung__wahl span { display: block; color: var(--auf-dunkel-leise); font-size: 0.85rem; }
.einwilligung__knoepfe { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.fuss__unten button {
  /* wie die Links daneben */
  background: none; border: 0; padding: 0; font: inherit; font-size: 0.88rem;
  color: var(--gelb); text-decoration: underline; cursor: pointer;
}
.fuss__unten button:hover { color: var(--gelb-hover); }

/* ---------- Kartenplatzhalter ---------- */
.karte-platz {
  background: var(--nebelgruen); border: 1px solid var(--sand); border-radius: 8px;
  padding: 1.5rem; display: grid; gap: 0.9rem; align-content: center;
  aspect-ratio: 16 / 10; text-align: left;
}
.karte-platz p { font-size: 0.9rem; margin: 0; }
.karte-platz label { display: flex; gap: 0.5rem; align-items: center; font-size: 0.85rem; color: var(--warmgrau); }
.karte-platz .knopf { justify-self: start; }

/* ---------- Captcha ---------- */
.captcha { margin: 0.5rem 0; min-height: 65px; }
.captcha__hinweis { font-size: 0.82rem; color: var(--warmgrau); margin: 0; }

.formular__status { font-size: 0.95rem; margin: 0.75rem 0 0; }
.formular__status--ok { color: var(--gruen-dunkel); font-weight: 700; }
.formular__status--fehler { color: var(--alarm); font-weight: 700; }

/* ---------- Geräteübersicht ---------- */
.geraete {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1.25rem; list-style: none; padding: 0; margin: 0 0 1.5rem;
}
.geraete figure { margin: 0; }
.geraete img {
  width: 100%; height: auto; border: 1px solid var(--sand);
  border-radius: 8px; background: var(--weiss);
}
.geraete figcaption { margin-top: 0.45rem; font-size: 0.92rem; line-height: 1.4; }
.geraete strong { display: block; }
.geraete span { color: var(--warmgrau); font-size: 0.85rem; }

/* ---------- Vorher-Nachher-Tabelle ---------- */
.vergleich {
  width: 100%; border-collapse: collapse; margin: 0 0 1.5rem;
  font-size: 0.98rem; background: var(--weiss);
  border: 1px solid var(--sand); border-radius: 8px; overflow: hidden;
}
.vergleich th, .vergleich td { padding: 0.75rem 0.9rem; text-align: left; border-bottom: 1px solid var(--sand); }
.vergleich thead th { background: var(--nebelgruen); font-size: 0.88rem; }
.vergleich tbody th { font-weight: 400; color: var(--warmgrau); width: 36%; }
.vergleich tr:last-child th, .vergleich tr:last-child td { border-bottom: 0; }
.vergleich td:last-child { font-weight: 700; }
.vergleich__wrap { overflow-x: auto; }
@media (max-width: 560px) { .vergleich { font-size: 0.9rem; } .vergleich th, .vergleich td { padding: 0.6rem; } }

/* Noch einzutragende Angaben – im Livebetrieb darf keine davon übrig sein */
.offen {
  color: var(--alarm); font-weight: 700; background: #fdeceb;
  padding: 0.05em 0.4em; border-radius: 3px; font-size: 0.9em;
}

.eckdaten { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin: 0 0 2rem; }
.eckdaten div { background: var(--nebelgruen); border-radius: 8px; padding: 1rem; }
.eckdaten dt { font-size: 0.85rem; color: var(--warmgrau); }
.eckdaten dd { margin: 0.2rem 0 0; font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; }

/* ---------- Kostendiagramm ---------- */
.diagramm { width: 100%; height: auto; display: block; margin: 0 0 0.5rem; }
.diagramm__text { font-family: inherit; fill: var(--warmgrau); font-size: 13px; }
.diagramm__text--stark { fill: var(--dunkel); font-weight: 700; }
