/* =========================================================
   AUSSEHEN DER WEBSITE
   Farben ändern: die Werte unter :root anpassen.
   Es werden nur Schriften genutzt, die auf jedem Gerät
   vorhanden sind. Nichts wird von Google oder anderen
   Anbietern geladen.
   ========================================================= */

:root {
  --hintergrund: #F7F7F5;
  --weiss: #FFFFFF;
  --text: #1C1F23;
  --text-grau: #3D434A;
  --linie: #E4E4E0;
  --akzent: #0F5C63;
  --akzent-dunkel: #0A4247;
  --akzent-hell: #E7F0F0;
  --dunkel: #1C1F23;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--hintergrund);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--akzent); }
a:hover { color: var(--akzent-dunkel); }

h1, h2, h3 { line-height: 1.2; margin-top: 0; }
h1 { font-size: clamp(36px, 6vw, 52px); line-height: 1.08; margin-bottom: 20px; }
h2 { font-size: clamp(26px, 4vw, 34px); margin-bottom: 12px; }
h3 { font-size: 19px; margin-bottom: 8px; }

.innen { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.abschnitt { padding: 80px 0; }
.weiss { background: var(--weiss); }
.grau { color: var(--text-grau); }
.einleitung { color: var(--text-grau); max-width: 720px; margin: 0 0 40px; }

/* ---------- Kopfzeile ---------- */
.kopf { background: var(--weiss); border-bottom: 1px solid var(--linie); }
.kopf .innen {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px;
}
.logo { font-weight: 700; font-size: 20px; color: var(--text); text-decoration: none; }
.kopf nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: 15px; }
.kopf nav a { color: var(--text-grau); text-decoration: none; }
.kopf nav a:hover { color: var(--akzent); }

/* ---------- Buttons ---------- */
.knopfreihe { display: flex; flex-wrap: wrap; gap: 12px; }
.knopf {
  display: inline-block; padding: 14px 24px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.knopf-voll { background: var(--akzent); color: var(--weiss); }
.knopf-voll:hover { background: var(--akzent-dunkel); color: var(--weiss); }
.knopf-rand { border: 1px solid #C9CCC8; color: var(--text); }
.knopf-rand:hover { border-color: var(--akzent); color: var(--akzent); }

/* ---------- Startbereich ---------- */
.start .innen { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 72px; padding-bottom: 80px; }
.start-text { flex: 999 1 480px; min-width: 0; }
.start-bild { flex: 1 1 260px; max-width: 320px; }
.start-bild img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; display: block; }
.kicker {
  margin: 0 0 16px; font-size: 14px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--akzent);
}
.unterzeile { font-size: 20px; color: var(--text-grau); max-width: 560px; margin: 0 0 32px; }

/* ---------- Karten ---------- */
.raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.karte { background: var(--weiss); border: 1px solid var(--linie); border-radius: 12px; padding: 28px; }
.karte p { margin: 0; }
.rechnung { margin-top: 32px; background: var(--akzent-hell); border-radius: 12px; padding: 32px; }
.rechnung p { margin: 0; max-width: 820px; }
.rechnung .titel { font-size: 22px; font-weight: 600; margin-bottom: 8px; }

/* ---------- Vier Prozesse ---------- */
.prozess { border-top: 3px solid var(--akzent); padding-top: 16px; }
.prozess p { margin: 0; color: var(--text-grau); font-size: 16px; }

/* ---------- Ablauf ---------- */
.nummer { font-size: 40px; font-weight: 700; color: var(--akzent); margin: 0 0 8px; line-height: 1; }
.dauer { font-size: 14px; font-weight: 600; color: var(--akzent); margin: 0 0 12px !important; }

/* ---------- Preis ---------- */
.preis { background: var(--dunkel); color: var(--weiss); }
.preis .innen { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.preis-links { flex: 1 1 300px; }
.preis-rechts { flex: 999 1 420px; min-width: 0; }
.preis-zahl { font-size: 64px; font-weight: 700; line-height: 1.1; margin: 0 0 4px; }
.preis .hell { color: #E4E4E0; }
.preis .klein { color: #C9CCC8; font-size: 15px; margin: 0; }

/* ---------- Über mich ---------- */
.ueber .innen { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.ueber-bild { flex: 1 1 180px; max-width: 220px; }
.ueber-bild img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: top; border-radius: 50%; display: block; }
.ueber-text { flex: 999 1 480px; min-width: 0; }

/* ---------- Kontakt ---------- */
.kontakt { text-align: center; }
.kontakt .einleitung { margin-left: auto; margin-right: auto; }
.kontakt .knopfreihe { justify-content: center; }

/* ---------- Kontaktformular ---------- */
.formular { max-width: 720px; margin: 0 auto; text-align: left; background: var(--weiss); border: 1px solid var(--linie); border-radius: 12px; padding: 32px; }
.formular-reihe { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 20px; }
.formular-feld { margin-bottom: 20px; }
.formular-feld label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.formular input[type="text"], .formular input[type="email"], .formular input[type="tel"], .formular textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--text);
  border: 1px solid #C9CCC8; border-radius: 8px; background: var(--weiss);
}
.formular input:focus, .formular textarea:focus { outline: 2px solid var(--akzent); outline-offset: 1px; border-color: var(--akzent); }
.formular textarea { resize: vertical; min-height: 120px; }
.formular-hinweis { font-size: 14px; color: #5B6168; margin: 0 0 20px; }
.formular button { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.versteckt { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.direkt { margin: 24px 0 0; color: var(--text-grau); font-size: 15px; }

/* ---------- Anfrage-Optimierung ---------- */
.kopf-telefon { font-weight: 600; color: var(--akzent) !important; }
.vertrauen { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; color: var(--text-grau); }
.vertrauen li::before { content: "✓ "; color: var(--akzent); font-weight: 700; }
.knopf-hell { background: var(--weiss); color: var(--dunkel); }
.knopf-hell:hover { background: #E4E4E0; color: var(--dunkel); }
.fragen { max-width: 820px; }
.fragen details { background: var(--weiss); border: 1px solid var(--linie); border-radius: 12px; margin-bottom: 12px; }
.fragen summary { cursor: pointer; padding: 20px 24px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: "+"; color: var(--akzent); font-size: 22px; line-height: 1; }
.fragen details[open] summary::after { content: "–"; }
.fragen details p { margin: 0; padding: 0 24px 20px; color: var(--text-grau); }
.danach { max-width: 720px; margin: 0 auto 32px; padding: 0; list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; text-align: left; }
.danach li { counter-increment: s; font-size: 15px; color: var(--text-grau); }
.danach li::before { content: counter(s); display: inline-flex; width: 28px; height: 28px; border-radius: 50%; background: var(--akzent); color: var(--weiss); font-weight: 700; align-items: center; justify-content: center; margin-bottom: 8px; }
.danach strong { display: block; color: var(--text); }
.haken { display: flex !important; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.haken input { width: 20px; height: 20px; accent-color: var(--akzent); }
.handy-leiste { display: none; }
@media (max-width: 700px) {
  .handy-leiste { display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 12px; background: var(--weiss); border-top: 1px solid var(--linie); z-index: 10; box-shadow: 0 -4px 16px rgba(0,0,0,.06); }
  .handy-leiste a { text-align: center; padding: 13px 8px; border-radius: 8px; font-weight: 600; text-decoration: none; border: 1px solid #C9CCC8; color: var(--text); }
  .handy-leiste a.voll { background: var(--akzent); border-color: var(--akzent); color: var(--weiss); }
  body { padding-bottom: 76px; }
  .kopf nav a:not(.kopf-telefon) { display: none; }
  .kopf .innen { flex-wrap: nowrap; }
}

/* ---------- O2C-Reifegrad-Check ---------- */
.check { max-width: 860px; }
.frage { border: 1px solid var(--linie); border-radius: 12px; padding: 20px 24px; margin: 0 0 12px; background: var(--hintergrund); }
.frage legend { padding: 0; font-weight: 600; float: left; width: 100%; margin-bottom: 14px; display: flex; gap: 12px; align-items: baseline; }
.frage-nr { flex: 0 0 auto; display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: var(--akzent); color: var(--weiss); font-size: 14px; align-items: center; justify-content: center; }
.antworten { clear: both; display: flex; flex-wrap: wrap; gap: 8px; }
.antworten label { position: relative; cursor: pointer; }
.antworten input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.antworten label { display: inline-block; padding: 10px 16px; border: 1px solid #C9CCC8; border-radius: 999px; background: var(--weiss); font-size: 15px; min-height: 44px; }
.antworten label:has(input:checked) { background: var(--akzent); border-color: var(--akzent); color: var(--weiss); }
.antworten label:has(input:focus-visible) { outline: 2px solid var(--akzent); outline-offset: 2px; }
.check-fuss { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.check-fuss button { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.check-stand { margin: 0; color: var(--text-grau); font-size: 15px; }
.check-stand.fehlt { color: #A3361F; font-weight: 600; }
.check-ergebnis { margin-top: 32px; background: var(--akzent-hell); border-radius: 12px; padding: 32px; outline: none; }
.check-ergebnis h3 { font-size: 26px; margin-bottom: 16px; }
.check-ergebnis .ergebnis-label { color: var(--akzent); font-weight: 600; margin: 0 0 8px; }
.balken { height: 12px; background: var(--weiss); border-radius: 999px; overflow: hidden; margin-bottom: 8px; }
#balken-fuellung { height: 100%; width: 0; background: var(--akzent); border-radius: 999px; transition: width .8s ease; }
.check-ergebnis ul { margin: 0 0 24px; padding-left: 20px; }
.check-ergebnis button { cursor: pointer; font: inherit; font-weight: 600; background: transparent; }
@media (prefers-reduced-motion: reduce) { #balken-fuellung { transition: none; } }

/* ---------- Fußzeile ---------- */
.fuss { border-top: 1px solid var(--linie); background: var(--weiss); font-size: 14px; color: #5B6168; }
.fuss .innen { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 24px; }
.fuss p { margin: 0; }
.fuss nav { display: flex; gap: 20px; }
.fuss a { color: var(--text-grau); }

/* ---------- Zahlenband (zählt beim Scrollen hoch) ---------- */
.zahlenband { background: var(--weiss); border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.zahlenband .innen { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; padding-top: 48px; padding-bottom: 48px; }
.zahl { font-size: clamp(40px, 6vw, 56px); font-weight: 700; color: var(--akzent); line-height: 1; margin: 0 0 8px; font-variant-numeric: tabular-nums; }
.zahl-text { margin: 0; color: var(--text-grau); font-size: 16px; max-width: 300px; }

/* ---------- Problem und Lösung ---------- */
.paar { background: var(--weiss); border: 1px solid var(--linie); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.paar .problem { margin: 0; font-weight: 600; }
.paar .loesung { margin: 0; color: var(--text-grau); padding-top: 16px; border-top: 1px dashed var(--linie); }
.paar .loesung::before { content: "→ "; color: var(--akzent); font-weight: 700; }

/* ---------- Einsparrechner ---------- */
.rechner { background: var(--dunkel); color: var(--weiss); }
.rechner .innen { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.rechner-eingaben { flex: 999 1 420px; min-width: 0; }
.rechner-ergebnis { flex: 1 1 300px; background: #262A2F; border-radius: 16px; padding: 32px; text-align: center; }
.rechner h2 { color: var(--weiss); }
.rechner .einleitung { color: #C9CCC8; margin-bottom: 32px; }
.regler { margin-bottom: 28px; }
.regler label { display: flex; justify-content: space-between; gap: 16px; font-weight: 600; margin-bottom: 10px; }
.regler output { color: #7FD1D8; font-variant-numeric: tabular-nums; white-space: nowrap; }
.regler input[type="range"] { width: 100%; accent-color: #3FA7B0; height: 28px; cursor: pointer; }
.ergebnis-label { margin: 0 0 8px; color: #C9CCC8; font-size: 15px; }
.ergebnis-zahl { margin: 0 0 8px; white-space: nowrap; font-size: clamp(34px, 4.5vw, 48px); font-weight: 700; line-height: 1.1; color: var(--weiss); font-variant-numeric: tabular-nums; }
.ergebnis-text { margin: 0 0 24px; color: #C9CCC8; font-size: 15px; }
.rechner .hinweis { margin: 16px 0 0; font-size: 13px; color: #9AA0A6; }

/* ---------- Sanftes Einblenden beim Scrollen ---------- */
.einblenden { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.einblenden.sichtbar { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .einblenden { opacity: 1; transform: none; transition: none; }
}

/* ---------- Rechtsseiten (Impressum, Datenschutz) ---------- */
.recht { max-width: 760px; margin: 0 auto; padding: 64px 24px 80px; }
.recht h1 { font-size: 40px; }
.recht h2 { font-size: 22px; margin-top: 40px; }
.recht p, .recht li { color: var(--text-grau); }
.zurueck { display: inline-block; margin-bottom: 32px; }
