/* Eigenmietwert-Check – sachlich, ruhig, vertrauenswürdig. Keine externen Schriften (nichts verlässt das Gerät). */
:root {
  --grund: #f5f6f3; --karte: #ffffff; --text: #1d2a29; --leise: #55625f; --linie: #d8dedb;
  --teal: #0f766e; --teal-dunkel: #0b5650; --teal-hell: #e3f1ee;
  --gruen: #157f3b; --gruen-hell: #e5f4ea; --rot: #b42318; --rot-hell: #fbeae8; --frist: #a85a07; --frist-hell: #fdf1e1;
  --rund: 10px; --schatten: 0 1px 2px rgba(16, 40, 38, .06), 0 4px 16px rgba(16, 40, 38, .06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--grund); color: var(--text); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--teal-dunkel); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(1.7rem, 4.4vw, 2.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); margin-top: 1.6em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.schmal { max-width: 760px; }
.leise { color: var(--leise); }
.klein { font-size: .9rem; }

/* Kopf und Fuss */
.kopf { background: var(--karte); border-bottom: 1px solid var(--linie); }
.kopf .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.marke { display: inline-flex; align-items: center; font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; white-space: nowrap; }
.marke svg { width: 30px; height: 30px; flex: none; margin-right: 10px; }
.marke span { color: var(--teal); }
.kopf nav a { margin-left: 18px; color: var(--leise); text-decoration: none; font-size: .95rem; }
.kopf nav a:hover { color: var(--teal-dunkel); }
#inhalt > h1 { margin-top: 36px; }
.vorschau-band { background: var(--frist-hell); color: var(--frist); font-size: .85rem; text-align: center; padding: 6px 12px; }
.fuss { margin-top: 64px; padding: 28px 0 40px; border-top: 1px solid var(--linie); color: var(--leise); font-size: .9rem; }
.fuss a { color: var(--leise); margin-right: 16px; }

/* Startbereich */
.held { padding: 48px 0 24px; }
.held .unter { font-size: 1.2rem; color: var(--leise); max-width: 640px; }
.frist-marke { display: inline-block; background: var(--frist-hell); color: var(--frist); font-weight: 600; font-size: .85rem; padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.kacheln { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 28px 0; }
.kachel { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--rund); padding: 18px; }
.kachel strong { display: block; margin-bottom: 4px; }
.vertrauen { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--leise); font-size: .92rem; }
.vertrauen span::before { content: "✓ "; color: var(--teal); font-weight: 700; }

/* Knöpfe und Felder */
.knopf { display: inline-block; background: var(--teal); color: #fff; border: 0; border-radius: 8px; padding: 13px 22px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.knopf:hover { background: var(--teal-dunkel); }
.knopf.zweit { background: transparent; color: var(--teal-dunkel); border: 1.5px solid var(--teal); }
.knopf.zweit:hover { background: var(--teal-hell); }
.knopf.klein { padding: 8px 14px; font-size: .95rem; }
.knopf:disabled { opacity: .5; cursor: default; }
label { display: block; font-weight: 600; margin: 14px 0 6px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 600; margin: 14px 0 6px; padding: 0; }
.hilfe { display: block; font-weight: 400; color: var(--leise); font-size: .9rem; margin-top: 2px; }
input[type=text], input[type=number], input[type=email], select { width: 100%; max-width: 420px; font: inherit; padding: 11px 12px; border: 1.5px solid var(--linie); border-radius: 8px; background: #fff; color: var(--text); }
input:focus, select:focus, .knopf:focus-visible { outline: 3px solid rgba(15, 118, 110, .3); outline-offset: 1px; border-color: var(--teal); }
.wahl { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.wahl label { margin: 0; font-weight: 500; border: 1.5px solid var(--linie); border-radius: 8px; padding: 9px 14px; background: #fff; cursor: pointer; }
.wahl input { margin-right: 6px; accent-color: var(--teal); }
.wahl label:has(input:checked) { border-color: var(--teal); background: var(--teal-hell); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chips button { font: inherit; font-size: .88rem; border: 1px solid var(--linie); background: #fff; border-radius: 999px; padding: 4px 11px; cursor: pointer; color: var(--leise); }
.chips button:hover { border-color: var(--teal); color: var(--teal-dunkel); }
.fehler { color: var(--rot); font-size: .92rem; margin-top: 8px; min-height: 1.2em; }

/* Check (Schritte) */
.check { background: var(--karte); border: 1px solid var(--linie); border-radius: 14px; box-shadow: var(--schatten); padding: 26px; margin: 8px 0 24px; }
.balken { height: 6px; background: var(--teal-hell); border-radius: 99px; overflow: hidden; margin-bottom: 18px; }
.balken div { height: 100%; background: var(--teal); width: 0; transition: width .25s; }
.schritt-nr { color: var(--leise); font-size: .88rem; margin-bottom: 4px; }
.schritt { display: none; }
.schritt.aktiv { display: block; }
.schritt h3 { font-size: 1.25rem; }
.navi { display: flex; gap: 10px; margin-top: 20px; }
.vorschlaege { list-style: none; padding: 0; margin: 6px 0 0; max-width: 420px; border: 1px solid var(--linie); border-radius: 8px; overflow: hidden; background: #fff; }
.vorschlaege:empty { display: none; }
.vorschlaege li button { display: block; width: 100%; text-align: left; font: inherit; border: 0; background: #fff; padding: 9px 12px; cursor: pointer; border-bottom: 1px solid var(--grund); }
.vorschlaege li button:hover, .vorschlaege li button:focus { background: var(--teal-hell); }
.gewaehlt { margin-top: 8px; color: var(--teal-dunkel); font-weight: 600; }

/* Ergebnis */
.ergebnis { display: none; }
.ergebnis.sichtbar { display: block; }
.zahl-gross { font-size: clamp(2.2rem, 7vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 6px 0; }
.gewinn .zahl-gross { color: var(--gruen); }
.verlust .zahl-gross { color: var(--rot); }
.urteil { display: inline-block; font-weight: 700; padding: 3px 10px; border-radius: 6px; }
.gewinn .urteil { background: var(--gruen-hell); color: var(--gruen); }
.verlust .urteil { background: var(--rot-hell); color: var(--rot); }
.vergleich { margin: 18px 0; max-width: 520px; }
.vergleich .zeile { display: grid; grid-template-columns: 150px 1fr 110px; gap: 10px; align-items: center; margin: 6px 0; font-size: .95rem; }
.vergleich .bar { height: 18px; border-radius: 4px; background: #9fb3ae; }
.vergleich .bar.neu { background: var(--teal); }
.vergleich .wert { text-align: right; font-variant-numeric: tabular-nums; }
.hinweise { padding-left: 1.2em; }
.hinweise li { margin-bottom: 8px; }
.angebot { background: var(--teal-hell); border: 1px solid #b9dcd5; border-radius: 14px; padding: 24px; margin: 26px 0; }
.angebot ul { padding-left: 1.2em; }
.preis { font-size: 1.6rem; font-weight: 800; }
.preis small { font-size: .9rem; font-weight: 400; color: var(--leise); }
.stufen { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0 10px; }
.stufe { position: relative; background: var(--karte); border: 1px solid var(--linie); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; }
.stufe.pro { border: 2px solid var(--teal); }
.stufe h4 { margin: 0 0 4px; font-size: 1.1rem; }
.stufe ul { padding-left: 1.1em; margin: 6px 0 16px; font-size: .95rem; flex: 1; }
.stufe li { margin-bottom: 5px; }
.stufe .knopf { text-align: center; }
.band { position: absolute; top: -11px; left: 16px; background: var(--teal); color: #fff; font-size: .75rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.varianten td .knopf { padding: 4px 10px; font-size: .85rem; }
.wecker { background: var(--karte); border: 1px dashed var(--teal); border-radius: 14px; padding: 22px; margin: 22px 0; }
.einwilligung { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .92rem; }
.einwilligung input { margin-top: 5px; accent-color: var(--teal); }
.versteckt { position: absolute; left: -9999px; }

/* Tabellen, Fahrplan */
table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: .95rem; background: var(--karte); }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--linie); vertical-align: top; }
th { font-size: .85rem; color: var(--leise); font-weight: 600; }
td.z, th.z { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.scroll table { min-width: 520px; }
.karte { background: var(--karte); border: 1px solid var(--linie); border-radius: 14px; padding: 22px; margin: 18px 0; box-shadow: var(--schatten); }
.arbeit { display: grid; grid-template-columns: 1.6fr 1fr .7fr 1.3fr auto; gap: 8px; align-items: end; padding: 10px 0; border-bottom: 1px solid var(--grund); }
.arbeit label { margin: 0 0 4px; font-size: .82rem; color: var(--leise); font-weight: 600; }
.arbeit input, .arbeit select { max-width: none; padding: 8px 9px; }
.arbeit .jahre { display: flex; gap: 8px; font-size: .9rem; padding-bottom: 8px; }
.arbeit .jahre label { font-weight: 500; color: var(--text); display: inline-flex; gap: 4px; align-items: center; margin: 0; font-size: .9rem; }
.arbeit .weg { background: none; border: 0; color: var(--leise); font-size: 1.3rem; cursor: pointer; padding: 6px; }
.termine { list-style: none; padding: 0; margin: 0; }
.termine li { display: grid; grid-template-columns: 140px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--linie); }
.termine .wann { font-weight: 700; color: var(--frist); }
.kennzahl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0; }
.kennzahl div { background: var(--grund); border-radius: 10px; padding: 14px; }
.kennzahl strong { display: block; font-size: 1.35rem; }
.gesperrt { position: relative; }
.sperre { background: var(--karte); border: 2px solid var(--teal); border-radius: 14px; padding: 26px; margin: 18px 0; }
details { background: var(--karte); border: 1px solid var(--linie); border-radius: 10px; padding: 12px 16px; margin: 8px 0; }
summary { cursor: pointer; font-weight: 600; }
.quelle { font-size: .85rem; color: var(--leise); }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .kacheln, .kennzahl, .stufen { grid-template-columns: 1fr; }
  .stufen { gap: 22px; }
  .kopf nav a { margin-left: 12px; font-size: .9rem; }
  .kopf nav a[href="/ratgeber.html"], .kopf nav a[href="/#check"] { display: none; }   /* Handy: nur «Fahrplan» im Kopf */
  .marke { font-size: 1.05rem; }
  .vergleich .zeile { grid-template-columns: 110px 1fr 90px; }
  .arbeit { grid-template-columns: 1fr 1fr; }
  .termine li { grid-template-columns: 1fr; gap: 2px; }
  .check, .karte { padding: 18px; }
}
@media print {
  body { background: #fff; font-size: 11pt; }
  .kopf nav, .vorschau-band, .fuss, .nicht-drucken, .knopf, .navi, .sperre { display: none !important; }
  .karte, .check, .angebot { box-shadow: none; border-color: #bbb; break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
  .nur-druck { display: block !important; }
}
.nur-druck { display: none; }

/* Kantonsseiten, Kantonsübersicht und Ratgeber-Artikel (30.10.2026) */
.knopf-zeile { margin: 18px 0 8px; }
.kurz-liste, .stand-liste, .weitere { padding-left: 1.2em; }
.kurz-liste li, .stand-liste li, .weitere li { margin-bottom: 8px; }
td.plus { color: var(--gruen); font-weight: 700; }
td.minus { color: var(--rot); font-weight: 700; }
tr.summe th, tr.summe td { border-top: 2px solid var(--linie); }
.modell th:first-child { width: 42%; }
.kanton-tabelle td:first-child a { font-weight: 600; white-space: nowrap; }
.kanton-tabelle td:last-child { font-size: .88rem; color: var(--leise); min-width: 180px; }
.scroll .kanton-tabelle { min-width: 720px; }
.kantone-links { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .92rem; }
.methode { font-size: .9rem; color: var(--leise); }
.karte h3 { margin-top: 0; }

/* hidden-Attribut immer respektieren (z. B. Zurück-Knopf in Schritt 1) */
[hidden] { display: none !important; }
