/* ============================================================
   Watt-o-mat – Shared Styles v1.0
   ============================================================ */

:root {
  --gruen:        #2D6A4F;
  --gruen-hell:   #40916C;
  --gruen-blass:  #1a3d2b;
  --gruen-mint:   #B7E4C7;
  --akzent:       #F4A261;
  --akzent-dunkel:#E76F51;
  --rot:          #E76F51;
  --gelb:         #F4A261;
  --text:         #E8EDF2;
  --text-hell:    #8A96A3;
  --border:       #2E3740;
  --border-hell:  #3D4750;
  --hg:           #181C20;
  --karte:        #222830;
  --karte-hell:   #2A3038;
  --schatten:     0 4px 24px rgba(0,0,0,0.35);
  --r:            16px;
  --rs:           8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--hg);
  color: var(--text);
  min-height: 100vh;
}

/* ── Header ── */
header {
  background: var(--karte);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gruen-hell);
  text-decoration: none;
}
.logo span { color: var(--akzent); }
.header-sub { font-size: 0.82rem; color: var(--text-hell); }

/* ── Fortschrittsbalken ── */
.fp-bar {
  background: var(--karte);
  border-bottom: 1px solid var(--border);
  padding: 0.875rem 2rem;
}
.fp-inner {
  display: flex;
  gap: 0.4rem;
  max-width: 640px;
  margin: 0 auto;
}
.fp {
  flex: 1; height: 3px;
  background: var(--border-hell);
  border-radius: 2px;
  transition: background 0.3s;
}
.fp.aktiv  { background: var(--gruen-hell); }
.fp.fertig { background: var(--gruen); }

/* ── Main ── */
main {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
}

/* ── Karten ── */
.karte {
  background: var(--karte);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--schatten);
  padding: 2.25rem;
  animation: rein 0.3s ease;
  margin-bottom: 1.25rem;
}
@keyframes rein {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Wizard-Typografie ── */
.snr {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gruen-hell);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.6rem;
}
.frage {
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}
.hint {
  font-size: 0.875rem;
  color: var(--text-hell);
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

/* ── Auswahlkarten ── */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 0.75rem; margin-bottom: 1.75rem; }
.g2   { grid-template-columns: repeat(2,1fr); }
.g3   { grid-template-columns: repeat(3,1fr); }

.wahl {
  border: 1.5px solid var(--border-hell);
  border-radius: var(--r);
  padding: 1.1rem 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  background: var(--karte-hell);
}
.wahl:hover { border-color: var(--gruen-hell); background: var(--gruen-blass); }
.wahl.ok    { border-color: var(--gruen-hell); background: var(--gruen-blass); box-shadow: 0 0 0 3px rgba(64,145,108,0.2); }
.wt { font-weight: 600; font-size: 0.88rem; }
.ws { font-size: 0.75rem; color: var(--text-hell); margin-top: 0.2rem; }

/* Mehrfachauswahl */
.mwahl {
  border: 1.5px solid var(--border-hell);
  border-radius: var(--rs);
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--karte-hell);
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 0.625rem;
}
.mwahl:hover { border-color: var(--gruen-hell); }
.mwahl.ok    { border-color: var(--gruen-hell); background: var(--gruen-blass); }
.cb {
  width: 20px; height: 20px;
  border: 1.5px solid var(--border-hell);
  border-radius: 4px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.mwahl.ok .cb { background: var(--gruen-hell); border-color: var(--gruen-hell); }
.cb::after {
  content: ''; display: none;
  width: 5px; height: 9px;
  border: 2px solid white;
  border-top: none; border-left: none;
  transform: rotate(45deg) translateY(-1px);
}
.mwahl.ok .cb::after { display: block; }
.mwt .t { font-weight: 600; font-size: 0.88rem; }
.mwt .s { font-size: 0.75rem; color: var(--text-hell); margin-top: 0.15rem; }

/* Zeitraum-Buttons */
.ztg { margin: 0.5rem 0 1rem 2.375rem; display: none; flex-wrap: wrap; gap: 0.5rem; }
.ztg.v { display: flex; }
.zbtn {
  padding: 0.35rem 0.875rem;
  border: 1.5px solid var(--border-hell);
  border-radius: 999px;
  font-size: 0.78rem;
  cursor: pointer;
  background: var(--karte-hell);
  color: var(--text-hell);
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
}
.zbtn:hover { border-color: var(--gruen-hell); color: var(--gruen-hell); }
.zbtn.ok    { background: var(--gruen-hell); border-color: var(--gruen-hell); color: white; font-weight: 600; }

/* ── Slider ── */
.sv { margin-bottom: 1.75rem; }
.sval {
  font-family: 'Fraunces', serif;
  font-size: 3rem;
  font-weight: 600;
  color: var(--gruen-hell);
  text-align: center;
  line-height: 1;
}
.sunit { text-align: center; color: var(--text-hell); font-size: 0.875rem; margin: 0.25rem 0 1.5rem; }
input[type=range] {
  width: 100%; height: 5px;
  border-radius: 3px;
  background: var(--border-hell);
  outline: none; cursor: pointer;
  -webkit-appearance: none;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gruen-hell);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(64,145,108,0.4);
}
.sends { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-hell); margin-top: 0.5rem; }

/* ── Eingabe ── */
.elabel { display: block; font-size: 0.83rem; font-weight: 600; margin-bottom: 0.5rem; }
.ewrap  { position: relative; margin-bottom: 1.5rem; }
.einput {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--border-hell);
  border-radius: var(--rs);
  font-size: 1rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--karte-hell);
  outline: none;
  transition: border-color 0.2s;
}
.einput:focus { border-color: var(--gruen-hell); }
.einput option { background: var(--karte); }
.esuffix {
  position: absolute; right: 1rem; top: 50%;
  transform: translateY(-50%);
  color: var(--text-hell); font-size: 0.875rem;
  pointer-events: none;
}
.enote { font-size: 0.78rem; color: var(--text-hell); margin-top: 0.4rem; }

/* ── Buttons ── */
.nav { display: flex; gap: 0.75rem; margin-top: 1rem; }
.btn {
  padding: 0.875rem 1.5rem;
  border-radius: var(--rs);
  font-size: 0.95rem; font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer; transition: all 0.2s; border: none;
}
.bp { background: var(--gruen); color: white; flex: 1; }
.bp:hover { background: var(--gruen-hell); }
.bp:disabled { background: var(--border); color: var(--text-hell); cursor: not-allowed; }
.bs { background: transparent; color: var(--text-hell); border: 1.5px solid var(--border-hell); }
.bs:hover { border-color: var(--gruen-hell); color: var(--gruen-hell); }
.bgross {
  width: 100%; padding: 1.1rem; font-size: 1.05rem;
  background: var(--gruen); color: white;
  border-radius: var(--rs); border: none;
  font-family: 'DM Sans', sans-serif; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.bgross:hover { background: var(--gruen-hell); }
.lbtn {
  background: none; border: none;
  color: var(--text-hell); font-size: 0.875rem;
  cursor: pointer; text-decoration: underline;
  font-family: 'DM Sans', sans-serif;
}
.lbtn:hover { color: var(--gruen-hell); }

/* ── Laden ── */
.laden { text-align: center; padding: 3.5rem 2rem; }
.kreis {
  width: 44px; height: 44px;
  border: 3px solid var(--border-hell);
  border-top-color: var(--gruen-hell);
  border-radius: 50%;
  animation: dreh 0.8s linear infinite;
  margin: 0 auto 1.25rem;
}
@keyframes dreh { to { transform: rotate(360deg); } }

/* ── Ergebnis-Kennzahlen ── */
.kgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1rem; }
.kgrid3 { grid-template-columns: repeat(3,1fr); }
.kenn {
  background: var(--karte-hell); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.25rem; text-align: center;
}
.klabel { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-hell); margin-bottom: 0.5rem; }
.kval   { font-family: 'Fraunces', serif; font-size: 2.25rem; font-weight: 700; color: var(--gruen-hell); line-height: 1; }
.kunit  { font-size: 0.8rem; color: var(--text-hell); margin-top: 0.3rem; }
.ekbadge { display: inline-flex; align-items: center; padding: 0.4rem 1.25rem; border-radius: 999px; font-weight: 700; font-size: 1.6rem; margin-top: 0.2rem; }

/* ── Info-Boxen ── */
.ibox {
  background: var(--karte-hell); border: 1px solid var(--border);
  border-radius: var(--rs); padding: 0.875rem 1rem;
  font-size: 0.875rem; color: var(--text-hell);
  margin-top: 0.75rem; line-height: 1.5;
}
.ibox strong { color: var(--gruen-mint); }
.ibox-gruen { border-color: rgba(64,145,108,0.3); background: rgba(64,145,108,0.08); color: var(--gruen-mint); }
.ibox-gelb  { border-color: rgba(244,162,97,0.3); background: rgba(244,162,97,0.08); color: var(--akzent); }
.ibox-rot   { border-color: rgba(231,111,81,0.3); background: rgba(231,111,81,0.08); color: var(--rot); }
.ibox-warn  { border-color: rgba(244,162,97,0.3); background: rgba(244,162,97,0.1); color: var(--akzent); margin-top: 0.75rem; padding: 0.625rem 0.875rem; font-size: 0.78rem; border-radius: var(--rs); }

/* ── Diagramm ── */
.dwrap {
  background: var(--karte-hell); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.5rem; margin-bottom: 1.25rem;
}
.stitel {
  font-family: 'Fraunces', serif; font-size: 1rem; font-weight: 600;
  margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border);
}

/* ── Maßnahmen-Karten ── */
.mkarte {
  background: var(--karte-hell); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.5rem 1.5rem 1.5rem 1.875rem;
  margin-bottom: 0.875rem; position: relative; overflow: hidden;
}
.mrand { position: absolute; top: 0; left: 0; width: 3px; height: 100%; }
.r1 { background: var(--akzent); }
.r2 { background: var(--gruen-hell); }
.r3 { background: #74B9A0; }
.r-grau { background: var(--border-hell); }

.mhead { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.mtitel { font-weight: 600; font-size: 0.95rem; }
.msub   { font-size: 0.8rem; color: var(--text-hell); margin-top: 0.2rem; line-height: 1.4; }

/* Badges */
.badge { font-size: 0.72rem; font-weight: 600; padding: 0.25rem 0.75rem; border-radius: 999px; white-space: nowrap; margin-left: 0.75rem; flex-shrink: 0; }
.bg    { background: rgba(45,106,79,0.25); color: var(--gruen-mint); }
.bm    { background: rgba(244,162,97,0.2); color: var(--akzent); }
.bl    { background: rgba(231,111,81,0.2); color: #E88068; }
.b-empfohlen   { background: rgba(45,106,79,0.25); color: var(--gruen-mint); }
.b-bedingt     { background: rgba(244,162,97,0.2); color: var(--akzent); }
.b-nicht       { background: rgba(231,111,81,0.2); color: #E88068; }

.mzahlen { display: grid; grid-template-columns: repeat(3,1fr); gap: 0.5rem; }
.zitem   { text-align: center; }
.zval    { font-family: 'Fraunces', serif; font-size: 1.2rem; font-weight: 600; color: var(--gruen-mint); }
.zlabel  { font-size: 0.7rem; color: var(--text-hell); margin-top: 0.15rem; }

.mfoerd {
  margin-top: 1rem; padding-top: 0.875rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem; color: var(--text-hell);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
}
.mfbetrag { font-weight: 600; color: var(--gruen-mint); font-size: 0.82rem; }

/* PV-Karte */
.pv-vergleich {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.75rem; margin-top: 1rem;
}
.pv-option {
  background: var(--karte); border: 1px solid var(--border);
  border-radius: var(--rs); padding: 0.875rem; text-align: center;
}
.pv-option.empfohlen { border-color: var(--gruen-hell); }
.pv-label  { font-size: 0.72rem; font-weight: 600; color: var(--text-hell); margin-bottom: 0.5rem; text-transform: uppercase; }
.pv-preis  { font-family: 'Fraunces', serif; font-size: 1.4rem; font-weight: 700; color: var(--gruen-hell); }
.pv-amort  { font-size: 0.78rem; color: var(--text-hell); margin-top: 0.25rem; }
.pv-emp-badge { font-size: 0.7rem; color: var(--gruen-mint); margin-top: 0.25rem; font-weight: 600; }

/* ── Paywall ── */
.paywall {
  background: linear-gradient(135deg, #1a3d2b 0%, #1f4a35 100%);
  border: 1px solid var(--gruen); border-radius: var(--r);
  padding: 2rem; text-align: center; margin-bottom: 1rem;
}
.pwtitel { font-family: 'Fraunces', serif; font-size: 1.3rem; font-weight: 700; margin-bottom: 0.5rem; }
.pwsub   { font-size: 0.875rem; color: var(--text-hell); margin-bottom: 1.5rem; line-height: 1.5; }
.pwgrid  { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1rem; }
.pwopt   { background: rgba(255,255,255,0.06); border: 1px solid rgba(64,145,108,0.3); border-radius: var(--rs); padding: 1rem; cursor: pointer; transition: all 0.2s; }
.pwopt:hover { background: rgba(255,255,255,0.1); border-color: var(--gruen-hell); }
.pwpreis { font-family: 'Fraunces', serif; font-size: 1.5rem; font-weight: 700; }
.pwtyp   { font-size: 0.76rem; color: var(--text-hell); margin-top: 0.2rem; }

/* ── Fehler ── */
.fbox {
  background: rgba(231,111,81,0.15); border: 1px solid rgba(231,111,81,0.3);
  border-radius: var(--rs); padding: 1rem; font-size: 0.875rem;
  color: #E88068; margin-bottom: 1rem;
}

/* ── Kaufempfehlung ── */
.empfehlung-karte {
  border-radius: var(--r); padding: 1.5rem; margin-bottom: 1rem; text-align: center;
}
.emp-kaufen   { background: rgba(45,106,79,0.15); border: 1px solid rgba(45,106,79,0.4); }
.emp-plan     { background: rgba(244,162,97,0.1); border: 1px solid rgba(244,162,97,0.3); }
.emp-abschlag { background: rgba(244,162,97,0.15); border: 1px solid rgba(244,162,97,0.4); }
.emp-vorsicht { background: rgba(231,111,81,0.15); border: 1px solid rgba(231,111,81,0.4); }
.emp-titel { font-family: 'Fraunces', serif; font-size: 1.4rem; font-weight: 700; margin-bottom: 0.5rem; }
.emp-text  { font-size: 0.875rem; color: var(--text-hell); line-height: 1.5; }

/* ── Mieter-Maßnahmen ── */
.mieter-karte {
  background: var(--karte-hell); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.25rem 1.25rem 1.25rem 1.75rem;
  margin-bottom: 0.75rem; position: relative; overflow: hidden;
}
.mieter-rand-gruen  { position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: var(--gruen-hell); }
.mieter-rand-orange { position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: var(--akzent); }
.mieter-titel { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.25rem; }
.mieter-beschr { font-size: 0.8rem; color: var(--text-hell); line-height: 1.4; margin-bottom: 0.75rem; }
.mieter-meta { display: flex; gap: 1rem; flex-wrap: wrap; }
.mieter-chip { font-size: 0.75rem; color: var(--text-hell); }
.mieter-chip strong { color: var(--gruen-mint); }
.mieter-tipp { margin-top: 0.625rem; font-size: 0.78rem; color: var(--akzent); font-style: italic; }
.vorlage-box {
  margin-top: 0.875rem; padding: 0.75rem;
  background: var(--karte); border: 1px solid var(--border);
  border-radius: var(--rs); font-size: 0.78rem; color: var(--text-hell);
  font-style: italic; line-height: 1.5;
}

/* ── Genauigkeitshinweis ── */
.genauigkeit {
  text-align: center; font-size: 0.78rem; color: var(--text-hell);
  margin-top: 1.5rem; padding: 0 1rem; line-height: 1.5;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .kgrid   { grid-template-columns: 1fr; }
  .kgrid3  { grid-template-columns: repeat(2,1fr); }
  .pwgrid  { grid-template-columns: 1fr; }
  .frage   { font-size: 1.35rem; }
  .karte   { padding: 1.5rem 1.25rem; }
  .g3      { grid-template-columns: repeat(2,1fr); }
  .pv-vergleich { grid-template-columns: 1fr; }
  .mzahlen { grid-template-columns: repeat(3,1fr); }
}

/* ── Footer ── */
.footer {
  background: var(--karte);
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-hell);
  margin-top: 3rem;
}
.footer a {
  color: var(--text-hell);
  text-decoration: none;
  margin: 0 0.75rem;
}
.footer a:hover { color: var(--gruen-hell); }
.footer-sep { margin: 0 0.25rem; }

/* ── Interesse-Banner (ersetzt Paywall) ── */
.interesse-banner {
  background: linear-gradient(135deg, #1a3d2b 0%, #1f4a35 100%);
  border: 1px solid var(--gruen);
  border-radius: var(--r);
  padding: 2rem;
  text-align: center;
  margin-bottom: 1rem;
}
.interesse-titel {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.interesse-sub {
  font-size: 0.875rem;
  color: var(--text-hell);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.interesse-btn {
  display: inline-block;
  background: var(--gruen-hell);
  color: white;
  padding: 0.875rem 2rem;
  border-radius: var(--rs);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
  border: none;
  cursor: pointer;
}
.interesse-btn:hover { background: var(--gruen); }