/* Wärmepumpen-Check – HSS Haustechnik. Farbschema: Blau/Weiß, neutral. */
:root {
  --blue: #2f6496; --blue-dark: #1d4166; --blue-light: #eaf1f8; /* aus dem Logo-Blau abgeleitet */
  --text: #1f2933; --muted: #5f6b7a; --border: #d5dde6; --bg: #f4f7fa;
  --green: #2e9e4f; --yellow: #f0b429; --red: #d64545; --radius: 12px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--text); background: var(--bg); line-height: 1.5; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }
a { color: var(--blue); }

/* Kopfzeile: weiß, damit das Logo-Badge gut zur Geltung kommt */
.site-header { background: #fff; border-bottom: 4px solid var(--blue); box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 80px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--blue-dark); }
.brand img { display: block; width: 64px; height: 64px; }
.brand-text { font-weight: 700; font-size: 1.05rem; }
.header-tel { color: #fff; background: var(--blue); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 14px; border-radius: 999px; white-space: nowrap; }

/* Karte & Schritte */
.card { background: #fff; border-radius: var(--radius); box-shadow: 0 4px 20px rgba(11,94,168,.08); padding: 28px 24px; margin: 24px 0; }
.step { display: none; border: 0; margin: 0; padding: 0; }
.step.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; } }
h1 { color: var(--blue-dark); margin: 0 0 12px; font-size: 1.9rem; }
h2 { color: var(--blue-dark); margin-top: 0; }
h3 { margin: 20px 0 8px; font-size: 1.05rem; }
legend { font-size: 1.3rem; font-weight: 700; color: var(--blue-dark); margin-bottom: 16px; padding: 0; }
.lead { font-size: 1.08rem; color: var(--muted); }
.perks { list-style: none; padding: 0; margin: 16px 0 24px; }
.perks li { margin: 6px 0; }
.hint { color: var(--muted); margin-top: -8px; font-size: .92rem; }

/* Antwortoptionen als Kacheln */
.opt { display: block; margin: 10px 0; cursor: pointer; }
.opt input { position: absolute; opacity: 0; }
.opt span { display: block; border: 2px solid var(--border); border-radius: 10px; padding: 14px 16px; font-weight: 600; transition: border-color .15s, background .15s; }
.opt small { display: block; font-weight: 400; color: var(--muted); font-size: .88rem; }
.opt:hover span { border-color: var(--blue); }
.opt input:checked + span { border-color: var(--blue); background: var(--blue-light); }
.opt input:focus-visible + span { outline: 3px solid rgba(11,94,168,.35); }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; color: var(--muted); }

/* Dämm-Checkliste: Unteroptionen */
.measure { margin: 10px 0; }
.measure .opt { margin: 0; }
.sub { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 14px; margin-top: -4px; background: var(--blue-light); border: 2px solid var(--blue); border-top: 0; border-radius: 0 0 10px 10px; }
.measure:has(.sub:not([hidden])) .opt span { border-radius: 10px 10px 0 0; }
.sub label { font-size: .85rem; color: var(--muted); font-weight: 600; }
.sub select { display: block; width: 100%; margin-top: 4px; padding: 10px; font-size: 1rem; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text); }
.opt.none { margin-top: 18px; }
@media (max-width: 520px) { .sub { grid-template-columns: 1fr; } }
.range-row { display: flex; align-items: center; gap: 16px; }
.range-row input { flex: 1; accent-color: var(--blue); height: 32px; }
/* Wohnfläche: eintippbares Zahlenfeld im Look der früheren Anzeige */
.area-field { display: flex; align-items: baseline; gap: 4px; font-size: 1.4rem; font-weight: 700; color: var(--blue); cursor: text; }
.area-field input { width: 3.6em; font: inherit; color: inherit; text-align: right; border: 0; border-bottom: 2px dashed var(--blue); background: transparent; padding: 2px 2px; -moz-appearance: textfield; appearance: textfield; }
.area-field input::-webkit-outer-spin-button, .area-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.area-field input:focus { outline: none; border-bottom-style: solid; background: var(--blue-light); border-radius: 4px 4px 0 0; }
.area-field input.invalid { color: var(--red); border-bottom-color: var(--red); }

/* Fortschritt */
.progress { position: relative; height: 8px; background: var(--blue-light); border-radius: 4px; margin-bottom: 28px; }
.progress-bar { height: 100%; background: var(--blue); border-radius: 4px; width: 0; transition: width .3s; }
.progress-text { position: absolute; right: 0; top: 12px; font-size: .8rem; color: var(--muted); }

/* Buttons */
.btn { display: inline-block; border: 0; border-radius: 10px; padding: 14px 22px; font-size: 1rem; font-weight: 700; cursor: pointer; text-decoration: none; text-align: center; }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-dark); }
.btn.secondary { background: #fff; color: var(--blue); border: 2px solid var(--blue); }
.btn.ghost { background: transparent; color: var(--muted); }
.btn.small { font-size: .9rem; padding: 10px 0; margin-top: 12px; }
.nav { display: flex; justify-content: space-between; margin-top: 24px; }
.error { color: var(--red); font-weight: 600; }

/* Ergebnis: Ampel */
.ampel { display: flex; gap: 18px; align-items: center; padding: 18px; border-radius: 10px; background: var(--bg); }
.lights { background: #2b2f36; border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.lights i { width: 22px; height: 22px; border-radius: 50%; background: #555; opacity: .35; }
.ampel.gruen .green { background: var(--green); opacity: 1; box-shadow: 0 0 10px var(--green); }
.ampel.gelb .yellow { background: var(--yellow); opacity: 1; box-shadow: 0 0 10px var(--yellow); }
.ampel.rot .red { background: var(--red); opacity: 1; box-shadow: 0 0 10px var(--red); }
.ampel strong { font-size: 1.3rem; }
.ampel.gruen strong { color: var(--green); } .ampel.gelb strong { color: #b7791f; } .ampel.rot strong { color: var(--red); }
.ampel p { margin: 4px 0 0; color: var(--muted); }
.reasons { padding-left: 20px; } .reasons li { margin: 6px 0; }
.figures { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0 8px; }
.figure { background: var(--blue-light); border-radius: 10px; padding: 14px; }
.figure span { display: block; font-size: .85rem; color: var(--muted); }
.figure strong { font-size: 1.35rem; color: var(--blue-dark); }
.disclaimer { font-size: .8rem; color: var(--muted); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.cta .btn { flex: 1 1 220px; }

.site-footer { text-align: center; font-size: .85rem; color: var(--muted); padding-bottom: 32px; }

@media (max-width: 520px) {
  .card { padding: 22px 16px; margin: 12px 0; }
  h1 { font-size: 1.55rem; }
  .figures { grid-template-columns: 1fr; }
  .header-tel { font-size: .85rem; padding: 7px 11px; }
  .brand-text { display: none; }
  .brand img { width: 56px; height: 56px; }
}

/* Förderung: Fragen als kompakte Kacheln */
.qlabel { font-weight: 700; margin: 18px 0 4px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills .opt { margin: 4px 0; flex: 1 1 auto; }
.pills .opt span { padding: 10px 14px; text-align: center; }
.figure small { display: block; font-size: .8rem; color: var(--muted); margin-top: 2px; }
.figure.highlight { background: var(--blue); }
.figure.highlight span, .figure.highlight strong { color: #fff; }
.notes { font-size: .9rem; padding-left: 20px; color: var(--text); }
.notes li { margin: 4px 0; }
.foerder-info { font-size: .85rem; color: var(--muted); background: var(--bg); border-radius: 10px; padding: 10px 14px; margin-top: 10px; }
.foerder-info summary { cursor: pointer; font-weight: 700; color: var(--blue-dark); }
.foerder-info ul { padding-left: 18px; }
.sources a { word-break: break-word; }

/* Datenschutz-Hinweis */
.privacy { background: #eaf6ee; border: 2px solid var(--green); color: #1d5e31; border-radius: 10px; padding: 12px 14px; margin: 16px 0 20px; font-size: .95rem; }

/* Jahresverbrauch */
.verbrauch-row { display: flex; gap: 10px; margin-top: 6px; }
.verbrauch-row input, .verbrauch-row select, .price-inputs input { padding: 12px; font-size: 1.05rem; border: 2px solid var(--border); border-radius: 10px; background: #fff; color: var(--text); }
.verbrauch-row input { flex: 1; min-width: 0; }
.verbrauch-row input:focus, .price-inputs input:focus { outline: none; border-color: var(--blue); }
label.qlabel { display: block; }
.method { font-size: .9rem; background: var(--bg); border-left: 4px solid var(--blue); padding: 8px 12px; border-radius: 0 8px 8px 0; }

/* Laufende Kosten */
.running { margin-top: 22px; }
.tag { font-size: .7rem; font-weight: 700; text-transform: uppercase; background: var(--blue-light); color: var(--blue-dark); padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
.price-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.price-inputs label { font-size: .85rem; font-weight: 600; color: var(--muted); }
.price-inputs input { display: block; width: 100%; margin-top: 4px; border-style: dashed; }
.run-table { width: 100%; border-collapse: collapse; font-size: .95rem; margin-top: 6px; }
.run-table td { padding: 8px 4px; border-bottom: 1px solid var(--border); vertical-align: top; }
.run-table td:last-child { text-align: right; font-weight: 700; white-space: nowrap; }
.run-table tr.total td { border-bottom: 0; color: var(--green); font-size: 1.05rem; }
.run-table tr.total.neg td { color: var(--red); }

/* Angaben, So rechnen wir */
.answers, .how { font-size: .88rem; background: var(--bg); border-radius: 10px; padding: 10px 14px; margin-top: 12px; }
.answers summary, .how summary { cursor: pointer; font-weight: 700; color: var(--blue-dark); }
.how h4 { margin: 12px 0 4px; font-size: .9rem; color: var(--text); }
.how ul { padding-left: 18px; margin: 4px 0; color: var(--muted); }

/* Nächste Schritte */
.next-steps { margin-top: 24px; }
.steps-bar { list-style: none; counter-reset: s; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.steps-bar li { counter-increment: s; background: var(--blue-light); border-radius: 10px; padding: 12px 10px; font-size: .85rem; position: relative; }
.steps-bar li::before { content: counter(s); display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; align-items: center; justify-content: center; margin-bottom: 6px; }
.steps-bar strong { display: block; color: var(--blue-dark); }
.steps-bar span { color: var(--muted); font-size: .8rem; }
.deadline { border: 2px solid var(--yellow); background: #fff8e6; border-radius: 10px; padding: 12px 14px; margin-top: 14px; font-size: .9rem; }
.deadline ul { padding-left: 18px; margin: 6px 0; }
.special li { margin: 6px 0; }
.red-hint { background: #fdecec; border-left: 4px solid var(--red); padding: 10px 12px; border-radius: 0 8px 8px 0; font-size: .92rem; }

/* Über uns */
.trust h2 { font-size: 1.25rem; }
.trust ul { padding-left: 20px; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; font-size: .9rem; }
.trust-grid p { margin: 0; background: var(--bg); border-radius: 10px; padding: 10px 12px; }

@media (max-width: 520px) {
  .price-inputs, .trust-grid { grid-template-columns: 1fr; }
  .steps-bar { grid-template-columns: 1fr 1fr; }
}

/* ---- Druck / PDF ------------------------------------------------------- */
@media print {
  @page { margin: 14mm; }
  body { background: #fff; font-size: 10.5pt; }
  .header-tel, .progress, .nav, #checkForm, .cta, [data-action="restart"], .error, .trust, .result-privacy, .tag { display: none !important; }
  .site-header { border-bottom: 2px solid var(--blue); box-shadow: none; }
  .site-header .brand-text { display: inline !important; }
  .card { box-shadow: none; margin: 0; padding: 0; }
  .wrap { max-width: none; padding: 0; }
  details > summary { list-style: none; }
  .figure, .figure.highlight, .steps-bar li, .deadline, .ampel, .method, .answers, .how { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .figures { grid-template-columns: repeat(4, 1fr); }
  .steps-bar { grid-template-columns: repeat(4, 1fr); }
  .price-inputs input { border: 1px solid var(--border); }
  h3, .figures, .run-table, .steps-bar, .deadline { break-inside: avoid; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; color: var(--muted); word-break: break-all; }
  .site-footer { padding-top: 10px; border-top: 1px solid var(--border); }
}

/* Ergänzung neue Seite: größere Klickflächen im Footer */
.site-footer p { line-height: 2.6; }
.site-footer a { display: inline-block; min-height: 24px; padding: 2px 4px; line-height: 20px; }
.trust-grid p a { display: inline-block; padding: 3px 0; }
.entwurf-hinweis{background:#3a4650;color:#fff;font:600 12px/1.4 sans-serif;text-align:center;padding:5px 12px}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
