/*
  Wärmerix – Erscheinungsbild „Haustechnik“
  Gehäuseweiß, Lichtgrau (RAL 7035), Anthrazit (RAL 7016).
  Rot = Vorlauf, Blau = Rücklauf: beide Farben nur paarweise oder mit dieser Bedeutung einsetzen.
  Die Farben der Energieausweis-Skala kommen ausschließlich in der Skala vor.
*/
@font-face {
  font-family: "Saira";
  src: url("/assets/fonts/saira-latin.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 50% 125%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Saira";
  src: url("/assets/fonts/saira-latin-ext.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 50% 125%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --weiss: #ffffff;
  --licht: #e8ebea;
  --licht-2: #f3f5f4;
  --anthrazit: #2f3539;
  --grau: #5b6469;
  --linie: #c9cfcd;
  --vorlauf: #c8302c;
  --vorlauf-tief: #a72420;
  --ruecklauf: #1e5aa8;
  --ruecklauf-tief: #17488a;
  --gut: #1f7a4a;
  --mass: 72rem;
  --rand: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
  margin: 0; background: var(--weiss); color: var(--anthrazit);
  font-family: "Saira", "Segoe UI", system-ui, sans-serif; font-stretch: 100%;
  font-size: 1.0625rem; line-height: 1.6; font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--ruecklauf); text-underline-offset: .18em; }
a:hover { color: var(--ruecklauf-tief); }
:focus-visible { outline: 3px solid var(--ruecklauf); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

h1, h2, h3 { font-stretch: 80%; font-weight: 680; line-height: 1.08; letter-spacing: -.005em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 1.6rem + 3.4vw, 4rem); }
h2 { font-size: clamp(1.75rem, 1.35rem + 1.8vw, 2.6rem); }
h3 { font-size: 1.3rem; font-stretch: 85%; }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--anthrazit); max-width: 40rem; }
.klein { font-size: .9rem; color: var(--grau); }
.offen { background: #fff2b3; color: #5a4a00; padding: 0 .25em; font-weight: 600; }

.huelle { max-width: var(--mass); margin: 0 auto; padding: 0 var(--rand); }
.sprung { position: absolute; left: -999px; top: .5rem; background: var(--anthrazit); color: #fff; padding: .5rem 1rem; z-index: 99; }
.sprung:focus { left: .5rem; }

/* ---------- Kopf ---------- */
.kopf { position: sticky; top: 0; z-index: 20; background: var(--weiss); border-bottom: 1px solid var(--linie); }
.kopf .huelle { display: flex; align-items: center; gap: 1.5rem; min-height: 4.25rem; }
.marke img { height: 34px; width: auto; }
.nav { display: flex; gap: 1.5rem; margin-left: auto; }
.nav a { color: var(--anthrazit); text-decoration: none; font-weight: 520; font-size: .98rem; padding: .25rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--vorlauf); }
.kopf .knopf { padding: .6rem 1rem; font-size: .95rem; }
.menue { display: none; margin-left: auto; background: none; border: 1px solid var(--linie); padding: .45rem .7rem; font: inherit; font-weight: 600; color: var(--anthrazit); border-radius: 3px; }
@media (max-width: 880px) {
  .menue { display: block; }
  .kopf .knopf { display: none; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--weiss); flex-direction: column; gap: 0; border-bottom: 1px solid var(--linie); padding: .5rem var(--rand) 1rem; }
  .nav.offen-nav { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--licht); }
}

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--vorlauf); color: #fff; border: 0; border-radius: 3px;
  font: inherit; font-weight: 640; font-stretch: 90%; font-size: 1.05rem; letter-spacing: .01em;
  padding: .85rem 1.4rem; text-decoration: none; cursor: pointer; min-height: 48px;
}
.knopf:hover { background: var(--vorlauf-tief); color: #fff; }
.knopf.zweit { background: transparent; color: var(--anthrazit); border: 1.5px solid var(--anthrazit); }
.knopf.zweit:hover { background: var(--anthrazit); color: #fff; }
.knopf[disabled] { opacity: .6; cursor: progress; }

/* ---------- Rohrpaar (Vorlauf/Rücklauf) als Trenner ---------- */
.rohre { height: 14px; background:
  linear-gradient(var(--vorlauf), var(--vorlauf)) 0 0 / 100% 4px no-repeat,
  linear-gradient(var(--ruecklauf), var(--ruecklauf)) 0 10px / 100% 4px no-repeat; }

/* ---------- Hero ---------- */
.hero { padding: clamp(2rem, 5vw, 4.5rem) 0 clamp(2.5rem, 5vw, 4.5rem); background: var(--licht-2); border-bottom: 1px solid var(--linie); }
.hero .huelle { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.hero h1 { max-width: 12em; margin-top: .2em; }
.hero .lead { margin-bottom: 1.5rem; }
.zusagen { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .6rem; }
.zusagen li { display: grid; grid-template-columns: 28px 1fr; gap: .6rem; align-items: start; font-weight: 520; }
.zusagen li::before { content: ""; width: 22px; height: 12px; margin-top: .45em;
  background: linear-gradient(var(--vorlauf), var(--vorlauf)) 0 0 / 100% 4px no-repeat, linear-gradient(var(--ruecklauf), var(--ruecklauf)) 0 8px / 100% 4px no-repeat; }
.hero .ruf { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; color: var(--grau); }
@media (max-width: 920px) {
  .hero .huelle { grid-template-columns: 1fr; }
}

/* ---------- Typenschild (Heizungs-Check) ---------- */
.schild { background: var(--weiss); border: 2px solid var(--anthrazit); border-radius: 4px; box-shadow: 6px 6px 0 var(--licht); }
.schild-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; background: var(--anthrazit); color: #fff; padding: .75rem 1.1rem; }
.schild-kopf h2 { font-size: 1.35rem; margin: 0; font-stretch: 85%; }
.schild-kopf .schritt { font-size: .92rem; opacity: .85; white-space: nowrap; }
.fortschritt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; background: var(--anthrazit); padding: 0 1.1rem 0; }
.fortschritt span { height: 5px; background: #4a5257; }
.fortschritt span.an { background: var(--vorlauf); }
.schild form { margin: 0; }
.stufe { border: 0; margin: 0; padding: 0; min-width: 0; }
.stufe[hidden] { display: none; }
.stufe legend { padding: 1rem 1.1rem .25rem; font-weight: 640; font-stretch: 88%; font-size: 1.12rem; }
.zeile { display: grid; grid-template-columns: 9.5rem 1fr; gap: .75rem; align-items: center; padding: .7rem 1.1rem; border-top: 1px solid var(--licht); }
.zeile:first-of-type { border-top: 0; }
.zeile > label, .zeile > .feldname { font-size: .95rem; color: var(--grau); font-weight: 520; line-height: 1.25; }
.zeile.voll { grid-template-columns: 1fr; gap: .4rem; }
@media (max-width: 480px) { .zeile { grid-template-columns: 1fr; gap: .35rem; } }
.pflicht::after { content: " *"; color: var(--vorlauf); }
input[type=text], input[type=tel], input[type=email], input[type=number], select, textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--anthrazit); background: var(--licht-2);
  border: 1px solid var(--linie); border-bottom: 2px solid var(--anthrazit); border-radius: 2px; padding: .6rem .7rem; min-height: 46px;
}
textarea { min-height: 5.5rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-bottom-color: var(--ruecklauf); background: #fff; box-shadow: 0 0 0 3px rgba(30, 90, 168, .18); }
input[aria-invalid=true], select[aria-invalid=true] { border-bottom-color: var(--vorlauf); background: #fdf1f0; }
.mit-einheit { display: grid; grid-template-columns: 1fr auto; }
.mit-einheit input { border-right: 0; }
.mit-einheit .einheit { display: flex; align-items: center; padding: 0 .7rem; background: var(--licht); border: 1px solid var(--linie); border-bottom: 2px solid var(--anthrazit); font-weight: 600; font-size: .95rem; min-width: 3.5rem; justify-content: center; }
.wahl { display: flex; flex-wrap: wrap; gap: .5rem; }
.wahl label { position: relative; }
.wahl input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.wahl span { display: inline-flex; align-items: center; min-height: 44px; padding: .45rem .95rem; border: 1.5px solid var(--linie); border-radius: 3px; font-weight: 560; background: #fff; }
.wahl input:checked + span { border-color: var(--anthrazit); background: var(--anthrazit); color: #fff; }
.wahl input[aria-invalid=true] + span { border-color: var(--vorlauf); background: #fdf1f0; }
.wahl input:focus-visible + span { outline: 3px solid var(--ruecklauf); outline-offset: 2px; }
.wahl.gross span { min-width: 6.5rem; justify-content: center; font-size: 1.05rem; }
.zustimmung { display: grid; grid-template-columns: 24px 1fr; gap: .6rem; align-items: start; font-size: .92rem; color: var(--grau); }
.zustimmung input { width: 22px; height: 22px; margin: .15rem 0 0; accent-color: var(--anthrazit); }
.honig { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.schild-fuss { display: flex; gap: .75rem; justify-content: space-between; align-items: center; padding: .9rem 1.1rem 1.1rem; border-top: 1px solid var(--licht); flex-wrap: wrap; }
.schild-fuss .knopf { flex: 1 1 auto; }
.schild-fuss .zurueck { flex: 0 0 auto; }
.meldung { margin: 0 1.1rem 1rem; padding: .75rem .9rem; border-left: 4px solid var(--vorlauf); background: #fdf1f0; font-size: .95rem; }
.meldung[hidden] { display: none; }
.danke { padding: 1.5rem 1.1rem 1.6rem; }
.danke h3 { font-size: 1.5rem; }
.danke ol { padding-left: 1.2rem; margin: 0 0 1rem; }

/* ---------- Abschnitte ---------- */
.abschnitt { padding: clamp(3rem, 7vw, 6rem) 0; }
.abschnitt.grau { background: var(--licht-2); }
.abschnitt-kopf { max-width: 44rem; margin-bottom: clamp(1.75rem, 4vw, 3rem); }

/* ---------- Effizienzskala ---------- */
.skala-raster { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 860px) { .skala-raster { grid-template-columns: 1fr; } }
.skala-eingabe { display: grid; gap: 1rem; }
.skala-eingabe label { display: block; font-weight: 560; margin-bottom: .3rem; }
.skala { position: relative; padding: 3.3rem 0 3.6rem; }
.skala-band { display: grid; grid-template-columns: repeat(9, 1fr); height: 3.25rem; }
.skala-band span { display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-stretch: 80%; font-size: 1.15rem; text-shadow: 0 1px 1px rgba(0,0,0,.25); }
.skala-band span:nth-child(1) { background: #00843d; }
.skala-band span:nth-child(2) { background: #2fa339; }
.skala-band span:nth-child(3) { background: #8cbf26; }
.skala-band span:nth-child(4) { background: #c8d400; color: #2f3539; text-shadow: none; }
.skala-band span:nth-child(5) { background: #ffed00; color: #2f3539; text-shadow: none; }
.skala-band span:nth-child(6) { background: #fbba00; color: #2f3539; text-shadow: none; }
.skala-band span:nth-child(7) { background: #f39200; }
.skala-band span:nth-child(8) { background: #e6511d; }
.skala-band span:nth-child(9) { background: #d0021b; }
.skala-achse { display: grid; grid-template-columns: repeat(9, 1fr); font-size: .78rem; color: var(--grau); margin-top: .35rem; }
.skala-achse span { text-align: left; }
.zeiger { --p: 50; position: absolute; left: 0; transform: translateX(calc(var(--p) * -1%)); transition: left .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); text-align: center; white-space: nowrap; }
.zeiger[hidden] { display: none; }
.zeiger b { display: block; font-size: .9rem; font-weight: 640; line-height: 1.2; }
.zeiger small { display: block; font-size: .8rem; color: var(--grau); }
.zeiger.ist { top: 0; }
.zeiger.ist::after { content: ""; display: block; width: 0; height: 0; margin: .2rem 0 0 calc(var(--p) * 1% - 8px); border: 8px solid transparent; border-top: 10px solid var(--anthrazit); border-bottom: 0; }
.zeiger.neu { bottom: 0; }
.zeiger.neu::before { content: ""; display: block; width: 0; height: 0; margin: 0 0 .2rem calc(var(--p) * 1% - 8px); border: 8px solid transparent; border-bottom: 10px solid var(--ruecklauf); border-top: 0; }
.zeiger.neu b { color: var(--ruecklauf); }
.skala-ergebnis { margin-top: .5rem; font-size: 1.05rem; }
.skala-ergebnis[hidden] { display: none; }

/* ---------- Leistungen: Schema + Liste ---------- */
.schema-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .schema-raster { grid-template-columns: 1fr; } }
.schema { border: 1px solid var(--linie); background: var(--weiss); padding: 1rem; }
.schema figcaption { font-size: .9rem; color: var(--grau); margin-top: .5rem; }
.leistungen { margin: 0; }
.leistungen > div { display: grid; grid-template-columns: 2.25rem 1fr; gap: .25rem 1rem; padding: 1.25rem 0; border-top: 1px solid var(--linie); }
.leistungen > div:last-child { border-bottom: 1px solid var(--linie); }
.leistungen dt { grid-column: 2; font-weight: 660; font-stretch: 85%; font-size: 1.25rem; line-height: 1.2; }
.leistungen dd { grid-column: 2; margin: 0; color: var(--anthrazit); }
.leistungen .nr { grid-row: 1 / span 2; grid-column: 1; width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 2px solid var(--anthrazit); display: grid; place-items: center; font-weight: 700; font-size: .9rem; }

/* ---------- Ablauf am Rohrstrang ---------- */
.ablauf { list-style: none; margin: 0; padding: 0; position: relative; counter-reset: s; }
.ablauf::before, .ablauf::after { content: ""; position: absolute; top: .9rem; bottom: .9rem; width: 4px; }
.ablauf::before { left: 15px; background: var(--vorlauf); }
.ablauf::after { left: 23px; background: var(--ruecklauf); }
.ablauf li { position: relative; display: grid; align-content: start; grid-template-columns: 42px 1fr; gap: 1.25rem; padding: 0 0 2rem; counter-increment: s; }
.ablauf li:last-child { padding-bottom: 0; }
.ablauf li::before { content: counter(s); position: relative; z-index: 1; width: 42px; height: 42px; border-radius: 50%; background: var(--weiss); border: 2px solid var(--anthrazit); display: grid; place-items: center; font-weight: 700; font-size: 1.05rem; }
.abschnitt.grau .ablauf li::before { background: var(--licht-2); }
.ablauf h3 { margin: .45rem 0 .3rem; }
.ablauf p { margin: 0; }
.ablauf .wer { display: inline-block; margin-top: .4rem; font-size: .88rem; color: var(--grau); }
@media (min-width: 960px) {
  .ablauf { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
  .ablauf::before, .ablauf::after { top: 15px; bottom: auto; left: 21px; right: 21px; width: auto; height: 4px; }
  .ablauf::after { top: 23px; }
  .ablauf li { grid-template-columns: 1fr; gap: .75rem; padding: 0; }
}

/* ---------- Tabellen ---------- */
.tabelle { width: 100%; border-collapse: collapse; font-size: 1rem; }
.tabelle caption { text-align: left; font-size: .9rem; color: var(--grau); padding-bottom: .5rem; }
.tabelle th, .tabelle td { text-align: left; vertical-align: top; padding: .8rem .75rem .8rem 0; border-bottom: 1px solid var(--linie); }
.tabelle thead th { font-size: .9rem; color: var(--grau); font-weight: 560; border-bottom: 2px solid var(--anthrazit); }
.tabelle td.wert { font-weight: 680; font-stretch: 85%; font-size: 1.25rem; white-space: nowrap; }
.tabelle-huelle { overflow-x: auto; }
@media (max-width: 640px) {
  .tabelle.stapel thead { display: none; }
  .tabelle.stapel tr { display: grid; grid-template-columns: 1fr auto; padding: .75rem 0; border-bottom: 1px solid var(--linie); }
  .tabelle.stapel td, .tabelle.stapel th { border: 0; padding: .1rem 0; }
  .tabelle.stapel td:last-child { grid-column: 1 / -1; color: var(--grau); font-size: .95rem; }
}
.stand { display: inline-block; font-size: .9rem; color: var(--grau); border-left: 3px solid var(--ruecklauf); padding-left: .6rem; margin-bottom: 1.25rem; }

/* ---------- Fragen ---------- */
.fragen { max-width: 52rem; border-top: 2px solid var(--anthrazit); }
.fragen details { border-bottom: 1px solid var(--linie); }
.fragen summary { list-style: none; cursor: pointer; padding: 1.1rem 2.5rem 1.1rem 0; position: relative; font-weight: 620; font-stretch: 90%; font-size: 1.15rem; }
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: "+"; position: absolute; right: .25rem; top: .85rem; font-size: 1.6rem; line-height: 1; font-weight: 400; color: var(--vorlauf); }
.fragen details[open] summary::after { content: "–"; }
.fragen .antwort { padding: 0 0 1.2rem; }

/* ---------- Kontaktstreifen ---------- */
.kontakt { background: var(--anthrazit); color: #fff; }
.kontakt a { color: #fff; }
.kontakt .huelle { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem; align-items: end; }
.kontakt h2 { margin-bottom: .3em; }
.kontakt p { color: #d9dedc; }
.kontakt dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.25rem; font-size: 1.1rem; }
.kontakt dt { color: #b9c1be; }
.kontakt dd { margin: 0; font-weight: 600; }
.kontakt .offen { background: #fff2b3; color: #5a4a00; }
@media (max-width: 760px) { .kontakt .huelle { grid-template-columns: 1fr; } }

/* ---------- Fuß ---------- */
.fuss { background: #252a2d; color: #c4cbc8; font-size: .92rem; padding: 2.5rem 0 2rem; }
.fuss .huelle { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; justify-content: space-between; align-items: flex-start; }
.fuss img { height: 28px; width: auto; margin-bottom: .6rem; }
.fuss nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.fuss a { color: #e3e8e6; }

/* ---------- Textseiten ---------- */
.text { max-width: 46rem; }
.text h2 { font-size: 1.6rem; margin-top: 2.2rem; }
.text h3 { margin-top: 1.5rem; }
.text ul, .text ol { padding-left: 1.2rem; max-width: 66ch; }
.text li { margin-bottom: .35rem; }
.seitenkopf { background: var(--licht-2); padding: clamp(2rem, 5vw, 3.5rem) 0; border-bottom: 1px solid var(--linie); }
.seitenkopf h1 { font-size: clamp(2rem, 1.5rem + 2.5vw, 3.2rem); max-width: 20ch; }
.zwei-spalten { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .zwei-spalten { grid-template-columns: 1fr; } }
.schritte { padding-left: 1.3rem; }
.schritte li { margin-bottom: .75rem; padding-left: .25rem; }
.hinweis { border-left: 4px solid var(--ruecklauf); background: var(--licht-2); padding: .9rem 1.1rem; margin: 1.5rem 0; max-width: 46rem; }
