/* Dein erstes Objekt — Stufe 1. Mobil zuerst, eine Akzentfarbe, Ampeln. */
:root {
  --akzent: #1b3a6b;
  --akzent-hell: #e8eef7;
  --akzent-text: #ffffff;
  --gruen: #2e8b57;
  --gruen-hell: #e3f3ea;
  --gelb: #d99a1c;
  --gelb-hell: #fbf1dc;
  --rot: #c4382f;
  --rot-hell: #f9e3e1;
  --text: #1f2327;
  --text-2: #5b636b;
  --text-3: #8a9199;
  --linie: #e3e6ea;
  --flaeche: #ffffff;
  --hintergrund: #f3f4f6;
  --radius: 14px;
  --radius-klein: 9px;
  --schatten: 0 1px 2px rgba(0,0,0,.05);
  --leiste-hoehe: 64px;
  --breite: 480px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px; line-height: 1.45; color: var(--text);
  background: var(--hintergrund);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -0.01em; }
h1 { font-size: 24px; }
h2 { font-size: 18px; }
h3 { font-size: 15px; }
p { margin: 0; }
a { color: var(--akzent); text-decoration: none; }
button { font: inherit; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

/* ---------- Rahmen ---------- */
.app {
  position: relative;
  max-width: var(--breite);
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--hintergrund);
  display: flex; flex-direction: column;
}
@media (min-width: 560px) {
  body { background: #e6e8ec; }
  .app { border-left: 1px solid var(--linie); border-right: 1px solid var(--linie); box-shadow: 0 0 40px rgba(0,0,0,.06); }
}
.inhalt {
  flex: 1;
  padding: 16px 16px calc(var(--leiste-hoehe) + 88px);
}
.inhalt.ohne-leiste { padding-bottom: 40px; }

/* Kopf einer Seite */
.kopf { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; min-height: 36px; }
.kopf h1 { flex: 1; }
.kopf .zurueck {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--linie); background: var(--flaeche);
  display: inline-flex; align-items: center; justify-content: center; font-size: 20px; cursor: pointer; flex: none;
}
.untertitel { color: var(--text-2); font-size: 14px; margin-top: 2px; }
.abschnitt { margin-top: 22px; }
.abschnitt-titel { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.abschnitt-titel h2 { font-size: 16px; }
.abschnitt-titel a, .abschnitt-titel button.link { font-size: 14px; }

/* ---------- Karten ---------- */
.karte {
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 14px; box-shadow: var(--schatten); margin-bottom: 10px;
}
.karte.klickbar { cursor: pointer; transition: transform .08s; }
.karte.klickbar:active { transform: scale(.99); }
.karte.akzent { background: var(--akzent); color: var(--akzent-text); border-color: var(--akzent); }
.karte.akzent .leise { color: rgba(255,255,255,.75); }
.karte.leer { text-align: center; color: var(--text-2); padding: 24px 16px; }
.karte.leer p { margin-bottom: 12px; }
.karte-kopf { display: flex; align-items: center; gap: 10px; }
.karte-kopf .titel { flex: 1; font-weight: 600; }
.karte-zeile { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 6px 0; border-top: 1px solid var(--linie); font-size: 14px; }
.karte-zeile:first-child { border-top: 0; }
.karte-zeile .wert { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.leise { color: var(--text-2); font-size: 14px; }
.ganz-leise { color: var(--text-3); font-size: 13px; }
.klein { font-size: 13px; }

/* Große Zahl */
.grosse-zahl { font-size: 38px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.grosse-zahl.mittel { font-size: 28px; }
.kacheln { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kacheln.drei { grid-template-columns: 1fr 1fr 1fr; }
.kacheln.vier { grid-template-columns: repeat(4, 1fr); }
.kachel { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 12px; }
.kachel .zahl { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.15; }
.kachel .zahl.klein { font-size: 18px; }
.kachel .label { color: var(--text-2); font-size: 13px; margin-top: 2px; }
.kachel.rot { border-color: var(--rot); } .kachel.gelb { border-color: var(--gelb); } .kachel.gruen { border-color: var(--gruen); }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 18px; border-radius: 12px; border: 1px solid var(--akzent);
  background: var(--akzent); color: var(--akzent-text); font-weight: 600; font-size: 16px; cursor: pointer;
  text-align: center; -webkit-tap-highlight-color: transparent;
}
.knopf:active { filter: brightness(.92); }
.knopf:disabled { opacity: .5; cursor: default; }
.knopf.breit { width: 100%; }
.knopf.zweit { background: var(--flaeche); color: var(--akzent); border-color: var(--linie); }
.knopf.leise { background: transparent; border-color: transparent; color: var(--akzent); min-height: 40px; padding: 6px 10px; }
.knopf.klein { min-height: 38px; padding: 6px 14px; font-size: 14px; border-radius: 10px; }
.knopf.rot { background: var(--rot); border-color: var(--rot); color: #fff; }
.knopf.rot.zweit { background: var(--flaeche); color: var(--rot); border-color: var(--linie); }
.knopf.gruen { background: var(--gruen); border-color: var(--gruen); }
button.link { background: none; border: 0; padding: 0; color: var(--akzent); cursor: pointer; font-weight: 500; }
.knopf-reihe { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.knopf-reihe .knopf { flex: 1; }

/* Chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--linie);
  background: var(--flaeche); font-size: 14px; cursor: pointer; white-space: nowrap; min-height: 36px;
}
.chip.aktiv { background: var(--akzent); color: #fff; border-color: var(--akzent); }
.chip .zahl { background: rgba(0,0,0,.08); border-radius: 999px; padding: 0 7px; font-size: 12px; font-weight: 600; }
.chip.aktiv .zahl { background: rgba(255,255,255,.25); }

/* Pills und Ampeln */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--akzent-hell); color: var(--akzent); white-space: nowrap; }
.pill.grau { background: #eceef1; color: var(--text-2); }
.pill.gruen { background: var(--gruen-hell); color: var(--gruen); }
.pill.gelb { background: var(--gelb-hell); color: #8a5e05; }
.pill.rot { background: var(--rot-hell); color: var(--rot); }
.ampel { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: #cfd3d8; flex: none; }
.ampel.gruen { background: var(--gruen); } .ampel.gelb { background: var(--gelb); } .ampel.rot { background: var(--rot); }
.ampel.gross { width: 56px; height: 56px; box-shadow: 0 0 0 8px rgba(0,0,0,.04); }
.ampel-text.gruen { color: var(--gruen); } .ampel-text.gelb { color: #8a5e05; } .ampel-text.rot { color: var(--rot); }

/* ---------- Formulare ---------- */
.feld { margin-bottom: 14px; }
.feld label { display: block; font-size: 14px; color: var(--text-2); margin-bottom: 5px; }
.feld input[type=text], .feld input[type=number], .feld input[type=email], .feld input[type=date], .feld input[type=tel], .feld select, .feld textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; border-radius: var(--radius-klein); border: 1px solid var(--linie);
  background: var(--flaeche); font-size: 16px; outline: none;
}
.feld textarea { min-height: 90px; resize: vertical; }
.feld input:focus, .feld select:focus, .feld textarea:focus { border-color: var(--akzent); box-shadow: 0 0 0 3px var(--akzent-hell); }
.feld .einheit { position: relative; }
.feld .einheit input { padding-right: 56px; }
.feld .einheit span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-size: 14px; pointer-events: none; }
.feld .hinweis { font-size: 13px; color: var(--text-3); margin-top: 4px; }
.feld-reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auswahl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.auswahl .knopf { min-height: 52px; }
.auswahl .knopf.zweit.aktiv { border-color: var(--akzent); background: var(--akzent-hell); }
.regler { width: 100%; margin: 8px 0 0; accent-color: var(--akzent); }
.fehler { background: var(--rot-hell); color: var(--rot); padding: 10px 12px; border-radius: var(--radius-klein); margin: 10px 0; font-size: 14px; }
.hinweis-box { background: var(--akzent-hell); color: var(--akzent); padding: 10px 12px; border-radius: var(--radius-klein); font-size: 14px; }
.erfolg { background: var(--gruen-hell); color: var(--gruen); padding: 10px 12px; border-radius: var(--radius-klein); font-size: 14px; }
details.aufklapp { border: 1px solid var(--linie); border-radius: var(--radius); background: var(--flaeche); margin-bottom: 10px; }
details.aufklapp summary { padding: 12px 14px; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.aufklapp summary::-webkit-details-marker { display: none; }
details.aufklapp summary::after { content: "+"; color: var(--text-3); font-size: 20px; }
details.aufklapp[open] summary::after { content: "–"; }
details.aufklapp .innen { padding: 0 14px 14px; }

/* ---------- Tabellen ---------- */
.tabelle { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden; }
.tabelle th, .tabelle td { padding: 9px 10px; text-align: left; border-top: 1px solid var(--linie); vertical-align: middle; }
.tabelle th { font-weight: 600; color: var(--text-2); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; border-top: 0; background: #fafbfc; }
.tabelle td.zahl, .tabelle th.zahl { text-align: right; font-variant-numeric: tabular-nums; }
.tabelle tr.klickbar { cursor: pointer; }
.tabelle tr.klickbar:hover { background: #fafbfc; }
.tabelle-rahmen { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
.zahlen-tabelle { width: 100%; font-size: 14px; }
.zahlen-tabelle td { padding: 6px 0; border-top: 1px solid var(--linie); }
.zahlen-tabelle td:last-child { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.zahlen-tabelle tr:first-child td { border-top: 0; }

/* ---------- Listen ---------- */
.liste { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden; margin-bottom: 10px; }
.liste-zeile { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--linie); cursor: pointer; min-height: 56px; }
.liste-zeile:first-child { border-top: 0; }
.liste-zeile .mitte { flex: 1; min-width: 0; }
.liste-zeile .mitte .titel { font-weight: 600; }
.liste-zeile .rechts { text-align: right; flex: none; }
.liste-zeile .pfeil { color: var(--text-3); font-size: 18px; flex: none; }
.symbol { width: 38px; height: 38px; border-radius: 10px; background: var(--akzent-hell); color: var(--akzent); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex: none; }

/* ---------- Balken ---------- */
.balken-zeile { display: grid; grid-template-columns: 110px 1fr 70px; align-items: center; gap: 10px; padding: 7px 0; font-size: 14px; }
.balken-zeile .wert { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.balken { height: 10px; background: #e9ebee; border-radius: 999px; overflow: hidden; }
.balken > i { display: block; height: 100%; background: var(--akzent); border-radius: 999px; transition: width .3s; }
.balken > i.voll { background: var(--gruen); }
.verlauf { display: flex; align-items: flex-end; gap: 4px; height: 70px; padding-top: 6px; }
.verlauf .saeule { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.verlauf .saeule i { display: block; width: 100%; background: #cfd5dd; border-radius: 4px 4px 0 0; min-height: 3px; }
.verlauf .saeule i.erfuellt { background: var(--gruen); }
.verlauf .saeule i.laufend { background: var(--akzent); opacity: .5; }
.verlauf .saeule small { font-size: 10px; color: var(--text-3); }
.tage { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.tage .tag { text-align: center; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 10px; padding: 8px 2px; }
.tage .tag.heute { border-color: var(--akzent); }
.tage .tag .n { font-size: 18px; font-weight: 700; color: var(--text-3); }
.tage .tag .n.aktiv { color: var(--akzent); }
.tage .tag small { font-size: 11px; color: var(--text-2); }
.punkte-reihe { display: flex; gap: 3px; justify-content: center; margin-top: 3px; min-height: 6px; }
.punkte-reihe i { width: 5px; height: 5px; border-radius: 50%; background: var(--akzent); display: block; }

/* Zug */
.zug { display: flex; gap: 12px; align-items: flex-start; }
.zug .nr { width: 28px; height: 28px; border-radius: 50%; background: var(--akzent); color: #fff; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; flex: none; margin-top: 1px; }
.zug .text { font-weight: 600; }
.zug .grund { color: var(--text-2); font-size: 14px; margin-top: 2px; }
.zug .aktionen { display: flex; gap: 8px; margin-top: 10px; }

/* ---------- Untere Leiste ---------- */
.leiste {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--breite); height: calc(var(--leiste-hoehe) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--flaeche); border-top: 1px solid var(--linie);
  display: flex; z-index: 20;
}
.leiste a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--text-3); font-size: 12px; font-weight: 500; text-decoration: none; -webkit-tap-highlight-color: transparent;
}
.leiste a .ikon { font-size: 22px; line-height: 1; }
.leiste a.aktiv { color: var(--akzent); }
.leiste a .punkt { position: absolute; margin-left: 26px; margin-top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--rot); }

/* Ich hänge */
.haenge {
  position: fixed; bottom: calc(var(--leiste-hoehe) + 14px + env(safe-area-inset-bottom)); z-index: 21;
  left: 50%; transform: translateX(calc(var(--breite) / 2 - 100%  - 14px));
  background: var(--flaeche); color: var(--akzent); border: 1px solid var(--linie); border-radius: 999px;
  padding: 10px 16px; font-weight: 600; font-size: 14px; box-shadow: 0 4px 16px rgba(0,0,0,.12); cursor: pointer;
}
@media (max-width: 559px) { .haenge { left: auto; right: 14px; transform: none; } }

/* ---------- Bottom-Sheet / Overlay ---------- */
.schleier { position: fixed; inset: 0; background: rgba(20,24,30,.45); z-index: 30; display: flex; align-items: flex-end; justify-content: center; }
.blatt {
  width: 100%; max-width: var(--breite); max-height: 92dvh; overflow-y: auto; background: var(--flaeche);
  border-radius: 18px 18px 0 0; padding: 10px 16px calc(20px + env(safe-area-inset-bottom));
  animation: hoch .18s ease-out;
}
@keyframes hoch { from { transform: translateY(30px); opacity: .6; } to { transform: none; opacity: 1; } }
.blatt .griff { width: 40px; height: 4px; border-radius: 2px; background: var(--linie); margin: 0 auto 12px; }
.blatt h2 { margin-bottom: 12px; }
.blatt .aktionen { display: flex; gap: 8px; margin-top: 8px; }
.blatt .aktionen .knopf { flex: 1; }

/* Meldung */
.meldung { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 40; background: var(--text); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.2); max-width: 90%; }
.meldung.gruen { background: var(--gruen); }

/* Laden */
.laden { color: var(--text-3); text-align: center; padding: 30px 0; font-size: 14px; }
.spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid var(--linie); border-top-color: var(--akzent); border-radius: 50%; animation: dreh .8s linear infinite; vertical-align: middle; margin-right: 8px; }
@keyframes dreh { to { transform: rotate(360deg); } }

/* Login */
.login { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: 32px 24px; }
.login .marke { font-size: 13px; color: var(--text-2); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.login h1 { font-size: 28px; margin-bottom: 6px; }

/* Rang-Kopf */
.rang-kopf { display: flex; align-items: center; gap: 14px; }
.rang-kopf .wappen { width: 52px; height: 52px; border-radius: 14px; background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; flex: none; }
.rang-kopf .name { font-size: 20px; font-weight: 700; }
.fortschritt { height: 6px; background: rgba(255,255,255,.2); border-radius: 999px; overflow: hidden; margin-top: 10px; }
.fortschritt i { display: block; height: 100%; background: #fff; border-radius: 999px; }
.serie-kacheln { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 12px; }
.serie-kacheln div { background: rgba(255,255,255,.1); border-radius: 10px; padding: 8px 10px; }
.serie-kacheln b { display: block; font-size: 17px; line-height: 1.2; }
.serie-kacheln small { font-size: 12px; opacity: .8; }

/* Stufen-Schritte */
.stufen { display: flex; gap: 4px; margin: 10px 0; }
.stufen i { flex: 1; height: 5px; border-radius: 3px; background: #e3e6ea; }
.stufen i.fertig { background: var(--akzent); }
.stufen i.aktiv { background: var(--akzent); opacity: .5; }

/* Coach */
.coach-leiste { display: flex; gap: 6px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; padding: 4px; margin-bottom: 14px; }
.coach-leiste a { flex: 1; text-align: center; padding: 8px 4px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--text-2); }
.coach-leiste a.aktiv { background: var(--akzent); color: #fff; }
.mini-pipeline { font-variant-numeric: tabular-nums; color: var(--text-2); font-size: 13px; white-space: nowrap; }
.profil-chips .chip { cursor: default; font-size: 13px; }
.timeline { font-size: 14px; }
.timeline .eintrag { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--linie); }
.timeline .eintrag:first-child { border-top: 0; }
.timeline .eintrag .datum { color: var(--text-3); flex: none; width: 58px; font-size: 13px; }
.umbruch { white-space: pre-wrap; }
.hr { height: 1px; background: var(--linie); margin: 16px 0; }
.rechts { text-align: right; }
.zeile { display: flex; align-items: center; gap: 8px; }
.zeile .dehn { flex: 1; }
.mt { margin-top: 12px; } .mt-klein { margin-top: 6px; } .mb { margin-bottom: 12px; }
.attrappe-hinweis { position: fixed; top: 0; left: 50%; transform: translateX(-50%); z-index: 50; background: var(--gelb); color: #3b2800; font-size: 11px; padding: 1px 10px; border-radius: 0 0 8px 8px; font-weight: 600; }

/* ======================= Stufe 2 ======================= */
/* Rahmenfarben für Ergebnis-Karten */
.karte.rand-gruen { border-color: var(--gruen); } .karte.rand-gelb { border-color: var(--gelb); } .karte.rand-rot { border-color: var(--rot); }
.symbol.grau { background: #eceef1; color: var(--text-3); }
.chip.aktiv.gruen { background: var(--gruen); border-color: var(--gruen); } .chip.aktiv.gelb { background: var(--gelb); border-color: var(--gelb); color: #3b2800; } .chip.aktiv.rot { background: var(--rot); border-color: var(--rot); }
.chip.gruen:not(.aktiv) { border-color: var(--gruen); color: var(--gruen); } .chip.rot:not(.aktiv) { border-color: var(--rot); color: var(--rot); }

/* Der Weg: senkrechter Pfad */
.weg { position: relative; padding-left: 4px; }
.weg::before { content: ""; position: absolute; left: 21px; top: 18px; bottom: 18px; width: 3px; background: var(--linie); border-radius: 2px; }
.weg-schritt { position: relative; display: flex; gap: 14px; align-items: flex-start; margin-bottom: 10px; cursor: pointer; }
.weg-kreis {
  position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; flex: none; margin-top: 10px;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
  background: var(--flaeche); border: 3px solid var(--linie); color: var(--text-3);
}
.weg-schritt.offen .weg-kreis { border-color: var(--akzent); color: var(--akzent); }
.weg-schritt.erledigt .weg-kreis { background: var(--gruen); border-color: var(--gruen); color: #fff; }
.weg-schritt.gesperrt .weg-kreis { font-size: 13px; }
.weg-karte { flex: 1; min-width: 0; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--schatten); }
.weg-schritt.offen .weg-karte { border-color: var(--akzent); }
.weg-schritt.gesperrt .weg-karte { background: #f7f8fa; color: var(--text-3); box-shadow: none; }
.weg-schritt.gesperrt .weg-name { color: var(--text-2); }
.weg-schritt.parallel { margin-left: 22px; }
.weg-schritt.parallel::before { content: ""; position: absolute; left: -22px; top: 27px; width: 20px; height: 3px; background: var(--linie); }
.weg-schritt.parallel .weg-karte { border-style: dashed; }
.weg-name { font-weight: 650; font-size: 16px; }
.grundstein { font-size: 20px; flex: none; }
.weg.kompakt .weg-kreis { width: 28px; height: 28px; font-size: 12px; margin-top: 8px; }
.weg.kompakt::before { left: 17px; }
.weg.kompakt .weg-karte { padding: 8px 12px; }
.weg.kompakt .weg-schritt.parallel::before { top: 21px; }
.weg-hinweis { border-color: var(--akzent); }
.haenger { background: var(--akzent-hell); color: var(--akzent); padding: 8px 12px; border-radius: var(--radius-klein); font-size: 14px; }

/* Kartenstapel */
.stapel { margin-top: 4px; }
.stapel-karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); margin-bottom: 10px; box-shadow: var(--schatten); overflow: hidden; }
.stapel-karte.offen { border-color: var(--akzent); }
.stapel-karte.erledigt { background: #fafbfc; }
.stapel-kopf { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; min-height: 56px; }
.stapel-status { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--linie); color: var(--text-3); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex: none; }
.stapel-karte.erledigt .stapel-status { background: var(--gruen); border-color: var(--gruen); color: #fff; }
.stapel-karte:not(.erledigt) .stapel-status:has(span:not(:empty)) { border-color: var(--gelb); color: #8a5e05; }
.stapel-titel { font-weight: 600; }
.stapel-karte.erledigt .stapel-titel { color: var(--text-2); }
.stapel-pfeil { color: var(--text-3); font-size: 20px; flex: none; width: 20px; text-align: center; }
.stapel-innen { padding: 0 14px 14px; border-top: 1px solid var(--linie); }
.stapel-innen .md { padding-top: 12px; }

/* Markdown-Text */
.md p { margin: 0 0 10px; font-size: 15px; line-height: 1.5; }
.md p:last-child { margin-bottom: 0; }
.md ul, .md ol { margin: 0 0 10px; padding-left: 22px; font-size: 15px; }
.md li { margin-bottom: 4px; }
.md h2, .md h3, .md h4 { margin: 12px 0 6px; font-size: 15px; }
.md blockquote { margin: 0 0 10px; padding: 8px 12px; border-left: 3px solid var(--akzent); background: var(--akzent-hell); border-radius: 0 var(--radius-klein) var(--radius-klein) 0; font-size: 15px; font-style: italic; }
.md code { background: #eceef1; padding: 1px 5px; border-radius: 4px; font-size: 13px; }
.md b { font-weight: 650; }

/* Clip-Zeile */
.clip-zeile { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; background: #f7f8fa; border: 1px solid var(--linie); border-radius: var(--radius-klein); font-size: 14px; flex-wrap: wrap; }
.clip-ikon { width: 28px; height: 28px; border-radius: 50%; background: var(--akzent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; flex: none; }

/* Aufgabe */
.aufgabe { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--linie); }
.aufgabe-titel { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); font-weight: 600; margin-bottom: 6px; }
.haken-liste { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.haken-zeile { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; background: #f7f8fa; border-radius: var(--radius-klein); cursor: pointer; font-size: 15px; }
.haken-zeile input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--gruen); flex: none; }
.haken-zeile.aus { opacity: .75; cursor: default; }
.baum-frage { font-size: 17px; font-weight: 650; margin-top: 6px; }
.baum-alt { padding: 2px 0; }
.urteil .expose { background: #fffdf7; }

/* Sanierungs-Schätzer */
.san-liste { display: flex; flex-direction: column; gap: 8px; }
.san-zeile { padding: 10px 12px; background: #f7f8fa; border-radius: var(--radius-klein); }
.san-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.san-name { font-weight: 600; font-size: 15px; }
.san-name .link { font-size: 13px; width: 20px; height: 20px; border-radius: 50%; background: var(--akzent-hell); display: inline-flex; align-items: center; justify-content: center; margin-left: 4px; }
.san-betrag { font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 600; }
.san-betrag small { font-weight: 400; color: var(--text-3); }
.san-wahl { display: flex; gap: 6px; margin-top: 8px; }
.san-wahl .chip { flex: 1; justify-content: center; min-height: 34px; padding: 4px 8px; font-size: 13px; }

/* Drei Kacheln nebeneinander: Beträge auf 390 px einzeilig */
.kacheln.drei .kachel .zahl.klein { font-size: 15px; }
@media (min-width: 420px) { .kacheln.drei .kachel .zahl.klein { font-size: 17px; } }
.kacheln.drei .kachel .zahl.klein { white-space: nowrap; }
@media (max-width: 419px) { .kacheln.drei .kachel { padding: 8px 6px; } .kacheln.drei .kachel .zahl.klein { font-size: 14px; } }
