/* BalkonWatt – Design System
   Sauber, schnell, mobil-first. Keine externen Fonts/Frameworks. */

:root {
  --gruen: #1f8a4c;
  --gruen-dunkel: #14663a;
  --gruen-hell: #eaf7ef;
  --sonne: #f5b301;
  --text: #1c2321;
  --text-leise: #5a6660;
  --linie: #e2e8e4;
  --bg: #ffffff;
  --bg-alt: #f6f9f7;
  --schatten: 0 1px 3px rgba(0, 0, 0, 0.06), 0 6px 20px rgba(0, 0, 0, 0.05);
  --radius: 14px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

a { color: var(--gruen-dunkel); }

h1, h2, h3 { line-height: 1.25; color: var(--text); }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 2em 0 .6em; }
h3 { font-size: 1.2rem; margin: 1.6em 0 .4em; }

/* Header */
header.site {
  border-bottom: 1px solid var(--linie);
  position: sticky; top: 0; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(8px); z-index: 50;
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.logo { font-weight: 800; font-size: 1.25rem; color: var(--gruen-dunkel); text-decoration: none; letter-spacing: -.02em; }
.logo span { color: var(--sonne); }
header nav a { margin-left: 20px; text-decoration: none; color: var(--text-leise); font-weight: 600; font-size: .95rem; }
header nav a:hover { color: var(--gruen-dunkel); }
.nav-toggle { display: none; }

/* Hero */
.hero { background: linear-gradient(160deg, var(--gruen-hell), #fff); padding: 48px 0 8px; }
.hero p.lead { font-size: 1.2rem; color: var(--text-leise); max-width: 640px; margin: 0 0 1em; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.badge { background: #fff; border: 1px solid var(--linie); border-radius: 999px; padding: 6px 14px; font-size: .85rem; font-weight: 600; color: var(--gruen-dunkel); }

/* Rechner */
.rechner {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px;
  background: #fff; border: 1px solid var(--linie); border-radius: var(--radius);
  box-shadow: var(--schatten); padding: 28px; margin: 28px 0;
}
.rechner h2 { margin-top: 0; }
.feld { margin-bottom: 16px; }
.feld label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.feld .hint { font-weight: 400; color: var(--text-leise); font-size: .82rem; }
.feld input[type="number"], .feld select, .feld input[type="text"] {
  width: 100%; padding: 11px 12px; border: 1px solid var(--linie); border-radius: 10px;
  font-size: 1rem; background: #fff; color: var(--text);
}
.feld input:focus, .feld select:focus { outline: 2px solid var(--gruen); border-color: var(--gruen); }
input[type="range"] { width: 100%; accent-color: var(--gruen); }
.btn {
  display: inline-block; background: var(--gruen); color: #fff; border: 0; border-radius: 10px;
  padding: 13px 22px; font-size: 1.02rem; font-weight: 700; cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--gruen-dunkel); }
.btn-block { width: 100%; }

/* Ergebnis-Panel */
.ergebnis { background: var(--bg-alt); border-radius: var(--radius); padding: 22px; align-self: start; }
.ergebnis .kpi { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--linie); }
.ergebnis .kpi:last-of-type { border-bottom: 0; }
.ergebnis .kpi .label { color: var(--text-leise); font-size: .92rem; }
.ergebnis .kpi .val { font-weight: 800; font-size: 1.25rem; color: var(--gruen-dunkel); }
.ergebnis .haupt .val { font-size: 1.7rem; color: var(--gruen); }
.ergebnis .hinweis { margin-top: 14px; font-size: .85rem; color: var(--text-leise); background: #fff; border: 1px solid var(--linie); padding: 10px 12px; border-radius: 8px; min-height: 1px; }
.ergebnis .hinweis:empty { display: none; }

/* Content */
main section { padding: 8px 0; }
.prose { max-width: 760px; }
.prose p, .prose li { color: #24302b; }
.prose ul { padding-left: 1.2em; }

/* Karten / Vergleich */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin: 20px 0; }
.card { border: 1px solid var(--linie); border-radius: var(--radius); padding: 20px; background: #fff; box-shadow: var(--schatten); display: flex; flex-direction: column; }
.card h3 { margin-top: 0; }
.card .preis { font-size: 1.4rem; font-weight: 800; color: var(--gruen-dunkel); }
.card ul { padding-left: 1.1em; font-size: .92rem; color: var(--text-leise); flex-grow: 1; }
.card .btn { margin-top: 12px; text-align: center; }
.empfehlung { border-color: var(--gruen); border-width: 2px; position: relative; }
.empfehlung::before { content: "Empfehlung"; position: absolute; top: -12px; left: 20px; background: var(--gruen); color: #fff; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }

/* Tabelle */
table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--linie); }
th { background: var(--bg-alt); font-weight: 700; }

/* FAQ */
details { border: 1px solid var(--linie); border-radius: 10px; padding: 4px 16px; margin: 10px 0; background: #fff; }
details summary { font-weight: 700; cursor: pointer; padding: 12px 0; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; float: right; color: var(--gruen); font-weight: 800; }
details[open] summary::after { content: "–"; }
details .antwort { padding-bottom: 14px; color: #24302b; }

/* Info / Disclosure Box */
.hinweisbox { background: var(--gruen-hell); border-radius: var(--radius); padding: 16px 20px; font-size: .9rem; color: var(--gruen-dunkel); margin: 20px 0; }
.affiliate-hinweis { font-size: .82rem; color: var(--text-leise); background: var(--bg-alt); padding: 12px 16px; border-radius: 10px; margin: 16px 0; }

/* Footer */
footer.site { background: var(--gruen-dunkel); color: #d9efe4; margin-top: 48px; padding: 36px 0; font-size: .92rem; }
footer.site .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
footer.site a { color: #ffffff; text-decoration: none; opacity: .9; display: block; padding: 3px 0; }
footer.site a:hover { opacity: 1; text-decoration: underline; }
footer.site h4 { color: #fff; margin: 0 0 8px; font-size: .95rem; }
footer .copy { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.2); padding-top: 16px; margin-top: 8px; opacity: .8; font-size: .85rem; }

/* Utility */
.center { text-align: center; }
.mt0 { margin-top: 0; }
.small { font-size: .85rem; color: var(--text-leise); }
.quelle { font-size: .8rem; color: var(--text-leise); }
.quelle a { color: var(--text-leise); }

/* Responsive */
@media (max-width: 820px) {
  .rechner { grid-template-columns: 1fr; padding: 20px; }
  footer.site .wrap { grid-template-columns: 1fr 1fr; }
  header nav { display: none; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  footer.site .wrap { grid-template-columns: 1fr; }
}
