/* Schriften der Website (Funnel Display / Funnel Sans, SIL OFL) – lokal eingebunden, kein Abruf bei Google */
@font-face { font-family: "Funnel Display"; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/funnel-display-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Funnel Display"; font-weight: 800; font-style: normal; font-display: swap; src: url(/fonts/funnel-display-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Funnel Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/funnel-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Funnel Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/funnel-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Funnel Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/funnel-sans-latin-700-normal.woff2) format("woff2"); }
:root {
  /* appgedeckt-Grundfarben; je Makler überschreibt app.js --violet/--head (Hauptfarbe) und --lime (Akzent) */
  --violet: #1f4e8c; --violet-d: #173c6c; --lime: #dfe4ea; --lime-d: #c9d1da; --green: #4f9a6b; --link: #1f5fa8;
  --head: var(--violet);
  --bg: #f7f7f7; --card: #fff; --text: #212529; --muted: #6a6f75; --line: #e4e4e4;
  --danger: #b3261e; --ok: #2e7d32; --radius: 16px;
  --font-head: "Funnel Display", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Funnel Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
}
:root[data-theme="dark"] { color-scheme: dark; --bg: #12161c; --card: #1c222b; --text: #eef1f5; --muted: #9ea8b5; --line: #2e3744; --head: #9cc0ef; --link: #9cc0ef; }
:root[data-theme="light"] { color-scheme: light; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { color-scheme: dark; --bg: #12161c; --card: #1c222b; --text: #eef1f5; --muted: #9ea8b5; --line: #2e3744; --head: #9cc0ef; --link: #9cc0ef; }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.5 var(--font-body); }
body { min-height: 100vh; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, .brand b { font-family: var(--font-head); color: var(--head); }
h1 { font-size: 1.6rem; font-weight: 600; margin: 0 0 .25rem; line-height: 1.2; }
h2 { font-size: 1.15rem; font-weight: 600; margin: 1.4rem 0 .5rem; }
.muted { color: var(--muted); font-size: .9rem; }
.hidden { display: none !important; }

/* Login / Auth */
.auth { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: calc(24px + var(--safe-t)) 16px calc(24px + var(--safe-b)); max-width: 420px; margin: 0 auto; } /* iPhone: nicht unter Statusleiste/Kamera */
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.brand img { width: 56px; height: 56px; }
.brand b { display: block; font-size: 1.15rem; font-weight: 600; }
.brand span { color: var(--muted); font-size: .85rem; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
label { display: block; font-size: .85rem; color: var(--muted); margin: 14px 0 4px; }
input, select, textarea { width: 100%; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid var(--lime); outline-offset: 1px; }
textarea { min-height: 120px; resize: vertical; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 24px;
  border: 0; border-radius: 50px; background: var(--lime); color: var(--violet-d); font: 700 1rem var(--font-body); cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--lime-d); }
.btn.block { width: 100%; margin-top: 18px; }
.btn.lime { background: var(--lime); color: var(--violet-d); }
.btn.dark { background: var(--violet); color: #fff; }
.btn.dark:hover { background: var(--violet-d); }
.btn.ghost { background: transparent; color: var(--head); border: 2px solid var(--line); }
.btn.ghost:hover { background: transparent; border-color: var(--lime); }
.btn.small { min-height: 38px; padding: 0 16px; font-size: .92rem; }
.btn[disabled] { opacity: .6; cursor: wait; }
.error { color: var(--danger); margin: 12px 0 0; font-size: .92rem; min-height: 1.2em; }
.qr { display: block; margin: 12px auto; width: 200px; height: 200px; background: #fff; padding: 6px; border-radius: 8px; }
/* Hilfe bei der Code-Eingabe (09.11.2026) */
.code-hinweis { margin: 8px 0; padding: 10px 12px; border-left: 4px solid var(--lime); background: var(--bg); border-radius: 8px; font-size: .92rem; }
.code-hilfe { margin-top: 14px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 10px; font-size: .92rem; }
.code-hilfe p { margin: 0 0 6px; }
.code-hilfe ul { margin: 0 0 8px; padding-left: 18px; }
.code-hilfe li { margin: 3px 0; }
.hilfe-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
/* Passkeys (10.11.2026) */
.oder { text-align: center; margin: 18px 0 -8px; font-size: .92rem; }
.passkey-wahl { margin: 14px 0 20px; padding: 14px 16px; border: 2px solid var(--lime); border-radius: 12px; }
.passkey-wahl h2 { margin: 0 0 6px; font-size: 1.05rem; }
.passkey-wahl p { margin: 0 0 4px; }
.passkey-wahl .btn.block { margin-top: 12px; }
.passkey-karte { border-left: 4px solid var(--lime); }
.passkey-karte p { margin: 4px 0 0; }
.passkey-liste { list-style: none; margin: 0; padding: 0; }
.passkey-liste li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.passkey-liste li:last-child { border-bottom: 0; }
.passkey-liste span { display: block; font-size: .88rem; }
code.secret { display: block; text-align: center; word-break: break-all; letter-spacing: .08em; padding: 8px; background: var(--bg); border-radius: 8px; user-select: all; }
input.code { text-align: center; font-size: 1.6rem; letter-spacing: .4em; }

/* App-Rahmen */
.top { position: sticky; top: 0; z-index: 5; background: var(--violet); color: #fff; padding: calc(10px + var(--safe-t)) 16px 10px;
  display: flex; align-items: center; gap: 12px; }
.top img { width: 46px; height: auto; }
.top .who { flex: 1; min-width: 0; line-height: 1.2; }
.top .who b { font-family: var(--font-head); font-weight: 600; color: #fff; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .who small { opacity: .8; display: block; overflow-wrap: anywhere; hyphens: auto; }
.top button { background: transparent; border: 1px solid rgba(255,255,255,.45); color: #fff; border-radius: 50px; padding: 6px 16px; font: 600 .9rem var(--font-body); cursor: pointer; }
/* Schließen-X: läuft beim Scrollen oben rechts unter der Kopfleiste mit (z. B. „Vertrag hinzufügen“ aus dem Score) */
.schliessen-x { position: fixed; z-index: 6; top: calc(var(--safe-t) + 78px); right: max(12px, calc((100vw - 760px) / 2 + 12px));
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--violet); background: var(--card); color: var(--text);
  font: 700 1.2rem/1 var(--font-body); cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.18); display: flex; align-items: center; justify-content: center; }
.schliessen-x:hover { border-color: var(--lime); }
:root[data-theme="dark"] .schliessen-x { border-color: var(--lime); }
.schliessen-x + h1 { padding-right: 56px; }
main { max-width: 760px; margin: 0 auto; padding: 16px 16px calc(90px + var(--safe-b)); }
.tabs { position: fixed; left: 0; right: 0; bottom: 0; background: var(--card); border-top: 1px solid var(--line);
  display: flex; padding-bottom: var(--safe-b); z-index: 5; }
.tabs button { flex: 1; background: none; border: 0; padding: 10px 4px 8px; color: var(--muted); cursor: pointer; font-size: .78rem; position: relative; }
.tabs button svg { display: block; margin: 0 auto 2px; width: 24px; height: 24px; }
.tabs button[aria-selected="true"] { color: var(--head); font-weight: 700; }
.tabs button[aria-selected="true"]::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; background: var(--lime); border-radius: 0 0 3px 3px; height: 4px; }
.badge { position: absolute; top: 4px; left: calc(50% + 6px); background: var(--danger); color: #fff; border-radius: 10px; min-width: 18px; padding: 0 5px; font-size: .7rem; line-height: 18px; }

/* Karten & Listen */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 10px 0; }
.card.click { cursor: pointer; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.row .t { font-weight: 600; }
.pill { display: inline-block; padding: 1px 9px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
.pill.lime { background: #f3f7c9; border-color: #d9e56a; color: #4a5200; }
.pill.warn { background: #fff0d6; border-color: #f0cf8c; color: #7a4d00; }
.umfang-pills { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 6px; } /* Kfz-Deckungsumfang an der Vertragskarte */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 10px 0 0; font-size: .92rem; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; text-align: right; word-break: break-word; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; }
.chips button { white-space: nowrap; border: 1px solid var(--line); background: var(--card); border-radius: 99px; padding: 6px 14px; cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--lime); color: var(--violet-d); border-color: var(--lime); font-weight: 700; }
.msg.unread { border-left: 6px solid var(--lime); }
.msg .body { white-space: pre-wrap; margin: 8px 0 0; }
.empty { text-align: center; color: var(--muted); padding: 32px 8px; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 8px; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(80px + var(--safe-b)); background: var(--text); color: var(--bg);
  padding: 10px 16px; border-radius: 10px; z-index: 20; max-width: 90%; }
.hint { background: #fffbe0; border: 1px solid #ece08a; color: #5f4a00; border-radius: 10px; padding: 10px 12px; font-size: .9rem; margin: 12px 0; }
:root[data-theme="dark"] .hint { background: #3a3114; border-color: #6d5d1f; color: #f1e3a6; } :root[data-theme="dark"] .pill.lime { background: #323a0c; border-color: #6b7a14; color: #e1ec7a; } :root[data-theme="dark"] .pill.warn { background: #3d2c0b; border-color: #6d5019; color: #f2cf8a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hint { background: #3a3114; border-color: #6d5d1f; color: #f1e3a6; } :root:not([data-theme="light"]) .pill.lime { background: #323a0c; border-color: #6b7a14; color: #e1ec7a; } :root:not([data-theme="light"]) .pill.warn { background: #3d2c0b; border-color: #6d5019; color: #f2cf8a; } }
a { color: var(--link); font-weight: 600; }
.btn, .tabs button { font-family: var(--font-body); }

/* Chat */
.chat-list { display: flex; flex-direction: column; gap: 6px; padding-bottom: 8px; }
.chat-day { align-self: center; font-size: .78rem; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 99px; padding: 2px 12px; margin: 10px 0 4px; }
.bubble { max-width: 82%; padding: 8px 12px 6px; border-radius: 16px; word-break: break-word; }
.bubble p { margin: 0; white-space: pre-wrap; }
.bubble time { display: block; text-align: right; font-size: .7rem; opacity: .7; margin-top: 2px; }
.bubble .subj { display: block; margin-bottom: 2px; }
.bubble .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.bubble.mine { align-self: flex-end; background: var(--violet); color: #fff; border-bottom-right-radius: 4px; }
.bubble.theirs { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
:root[data-theme="dark"] .bubble.mine { background: #4a3fa3; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bubble.mine { background: #4a3fa3; } }
.composer { position: sticky; bottom: calc(66px + var(--safe-b)); background: var(--bg); padding: 8px 0 4px; border-top: 1px solid var(--line); }
.composer .row { display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { min-height: 44px; max-height: 160px; resize: none; flex: 1; border-radius: 22px; padding: 11px 16px; }
.composer .send { border-radius: 22px; padding: 11px 20px; }
.composer .opts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; font-size: .9rem; }
.composer .opts select { width: auto; flex: 1; min-width: 160px; padding: 6px 10px; }
.composer .chk { display: flex; align-items: center; gap: 6px; margin: 0; cursor: pointer; }
.composer .chk input { width: auto; }
.composer .error { margin: 4px 0 0; }
/* Nachrichten: Suche, Reaktionen, Antworten mit Zitat */
.chat-suche { display: flex; gap: 10px; align-items: center; margin-bottom: 4px; }
.chat-suche input { flex: 1; padding: 8px 14px; border-radius: 22px; }
.chat-treffer { font-size: .85rem; white-space: nowrap; }
.bubble mark { background: var(--lime); color: var(--violet-d); border-radius: 3px; padding: 0 1px; }
.bubble-fuss { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.bubble-fuss time { margin: 0 0 0 auto; }
.reakt { display: flex; gap: 4px; }
/* Antworten mit Zitat */
.antworten-btn { border: 0; background: none; color: inherit; opacity: .6; font-size: .78rem; padding: 2px 4px; cursor: pointer; }
.antworten-btn:hover { opacity: 1; text-decoration: underline; }
.zitat { display: block; width: 100%; text-align: left; border: 0; border-left: 3px solid var(--lime); background: rgba(127,127,127,.12); color: inherit; border-radius: 6px; padding: 4px 8px; margin: 0 0 6px; font: inherit; font-size: .85rem; cursor: pointer; }
.zitat b { display: block; font-size: .78rem; }
.zitat span { display: block; opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zitat:hover { background: rgba(127,127,127,.2); }
.antwort-box { display: flex; gap: 8px; align-items: center; border-left: 3px solid var(--lime); background: var(--card); border-radius: 8px; padding: 6px 10px; margin-bottom: 8px; font-size: .88rem; }
.antwort-box[hidden] { display: none; }
.antwort-box .grow { flex: 1; min-width: 0; }
.antwort-box b { display: block; font-size: .8rem; }
.antwort-box span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.antwort-weg { border: 0; background: none; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--muted); padding: 0 4px; }
@keyframes aufleuchten { 0%, 60% { box-shadow: 0 0 0 4px var(--lime); } 100% { box-shadow: 0 0 0 0 transparent; } }
.bubble.aufleuchten { animation: aufleuchten 2s ease-out; }
.reakt-btn { border: 1px solid var(--line); background: transparent; border-radius: 99px; padding: 1px 8px; font-size: .9rem; line-height: 1.4; cursor: pointer; opacity: .75; filter: grayscale(.8); }
.reakt-btn:hover { opacity: .9; filter: none; }
.reakt-btn[aria-pressed="true"] { opacity: 1; filter: none; border-color: var(--lime); background: color-mix(in srgb, var(--lime) 25%, transparent); }
.reakt-erhalten { font-size: .95rem; background: rgba(255,255,255,.18); border-radius: 99px; padding: 0 6px; }
.pushbar { margin: 0 0 10px; font-size: .88rem; }
.pushbar p { margin: 0; }
button.link { background: none; border: 0; padding: 0; color: var(--link); font-weight: 600; text-decoration: underline; cursor: pointer; }
.pwbox { position: relative; }
.pwbox input { padding-right: 104px; }
.pwbox .eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: 8px 10px; color: var(--link); font-weight: 600; cursor: pointer; border-radius: 8px; }

.row .right { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.doccount { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--lime); color: var(--violet-d); font-size: .78rem; font-weight: 700; }
.doclist { border-top: 1px solid var(--line); margin-top: 6px; }
.docrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.docrow .t { font-weight: 600; font-size: .95rem; }

.top .theme { width: 36px; height: 36px; padding: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; line-height: 1; }

select.assign { width: 100%; margin-top: 8px; }

/* Rechtliche Seiten (Impressum, Datenschutz) und Fußzeile */
.legal { max-width: 720px; margin: 0 auto; padding: 20px 16px 40px; line-height: 1.55; }
.legal h1 { font-size: 1.5rem; color: var(--head); }
.legal h2 { font-size: 1.05rem; margin: 22px 0 6px; color: var(--head); }
.legal a, .legal-links a { color: var(--link); }
.legal-links { text-align: center; font-size: .82rem; color: var(--muted); margin: 14px 0 4px; }
.legal-nav { margin-top: 28px; }

.ended .card { opacity: .72; }

/* Startseite: eigene Daten und Kacheln */
.profil { margin: 14px 0 16px; }
.profil .row { align-items: center; }
.profil h2 { margin: 0; }
.profil .kv { margin-top: 12px; }
.tiles { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
/* Direkt-Kontakt unter den Kacheln: WhatsApp, Anrufen, Instagram */
.direkt { margin-top: 16px; }
.direkt h2 { margin: 0 0 12px; }
.direkt-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; }
.direkt-knoepfe .btn svg { width: 20px; height: 20px; flex: none; }
.direkt .muted { margin: 12px 0 0; }
.tile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; min-height: 128px; }
.tile:hover { border-color: var(--lime); }
.tile { position: relative; }
/* rotes „!“: passende Versicherung fehlt bzw. BU-Rente zu niedrig (Grund im Tooltip) */
.tile-warn { position: absolute; top: 12px; right: 12px; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--danger); color: #fff; font-weight: 800; font-family: var(--font-head); font-size: .95rem; line-height: 1; }
.tile.mit-warn { padding-right: 46px; }
.tile b { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; color: var(--head); }
.tile .muted { line-height: 1.35; }
.tile-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--lime); color: var(--violet-d); margin-bottom: 6px; }
.tile-icon svg { width: 24px; height: 24px; }
@media (max-width: 599px) { /* auf dem Handy kompakt: Symbol links, Text rechts */
  .tile { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; row-gap: 2px; align-items: center; min-height: 0; }
  .tile-icon, .tile .tile-score { grid-row: span 2; margin: 0; }
}
/* Ihr Score: grün / gelb / rot */
:root { --s-gruen: #2e7d32; --s-gelb: #e0a800; --s-rot: #c62828; }
.tile-score, .score-big { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; font-weight: 800; font-family: var(--font-head); }
.tile-score { width: 44px; height: 44px; font-size: .95rem; margin-bottom: 6px; }
.s-gruen { background: var(--s-gruen); } .s-gelb { background: var(--s-gelb); color: #2b2100; } .s-rot { background: var(--s-rot); }
.score-head { display: flex; align-items: center; gap: 18px; }
.score-head h2 { margin: 0 0 2px; }
.score-head p { margin: 0; }
.score-big { flex: none; width: 88px; height: 88px; }
.score-big b { font-size: 2.2rem; line-height: 1; } .score-big small { font-size: 1rem; opacity: .85; margin-top: .7rem; }
.score-row { display: flex; gap: 14px; align-items: flex-start; }
.score-row .btn { margin-top: 8px; }
.score-mark { flex: none; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; background: #fff0d6; color: #7a4d00; }
.score-row.ok .score-mark { background: #e3f1e4; color: var(--s-gruen); }
:root[data-theme="dark"] .score-mark { background: #3d2c0b; color: #f2cf8a; } :root[data-theme="dark"] .score-row.ok .score-mark { background: #1d3a20; color: #8fd694; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .score-mark { background: #3d2c0b; color: #f2cf8a; } :root:not([data-theme="light"]) .score-row.ok .score-mark { background: #1d3a20; color: #8fd694; } }
main section.panel + section.panel { margin-top: 14px; }
section.panel h2 { margin-top: 0; }

/* Testzugang, Registrierung, Interessenten */
.demobar { background: #f3f7c9; color: #3d4300; border-bottom: 1px solid #d9e56a; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; padding: 6px 16px; font-size: .85rem; line-height: 1.35; text-align: center; }
.demobar .btn { min-height: 32px; padding: 0 14px; font-size: .85rem; background: var(--violet); color: #fff; }
.demobar .btn:hover { background: var(--violet-d); }
.auth .panel + .panel { margin-top: 14px; }
.panel.neu h2 { margin-top: 0; }
.panel.neu .btn.block { margin-top: 10px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
label.chk { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 0; color: var(--text); font-size: .9rem; line-height: 1.4; cursor: pointer; }
label.chk input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.panel.onboarding h2 { margin-top: 0; }
ol.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
ol.steps li { display: flex; gap: 12px; align-items: flex-start; }
.step { flex: none; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--line); color: var(--head); font-weight: 700; }
ol.steps li.done .step { background: var(--lime); border-color: var(--lime); color: var(--violet-d); }
.panel.onboarding { margin-bottom: 12px; }

/* Fremdverträge und Erstinformation */
.pill.fremd { background: #ece9fb; border-color: #c9c2f0; color: var(--violet); }
:root[data-theme="dark"] .pill.fremd { background: #2e2862; border-color: #4a4290; color: #e3e0ff; }
.erstinfo { margin-top: 18px; padding: 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.erstinfo b { font-family: var(--font-head); color: var(--head); }
.erstinfo p { margin: 4px 0 10px; }
.erstinfo label.chk { margin-top: 12px; }
.knoepfe { gap: 0 10px; }
.knoepfe .btn.block { margin-top: 14px; padding: 0 12px; }
.score-row .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.score-row.nicht-noetig { opacity: .6; } /* abgewählter Extra-Baustein, z. B. „Ich habe kein Haustier“ */
/* Score-Stufen und nächster Schritt (03.11.2026) */
.stufen, .naechster { margin-top: 14px; }
.stufen h2, .naechster h2 { margin-top: 0; }
.stufen-leiste { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0; margin: 0 0 6px; }
.stufen-leiste li { text-align: center; padding: 6px 4px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); font-size: .85rem; font-weight: 600; }
.stufen-leiste li.erreicht { background: color-mix(in srgb, var(--lime) 30%, transparent); border-color: var(--lime); color: var(--text); }
.stufen-leiste li.aktuell { background: var(--lime); border-color: var(--lime); color: var(--violet-d); font-weight: 800; }
.naechster { border: 2px solid var(--lime); }

/* Freunde einladen */
.fortschritt { margin: 12px 0; }
.fortschritt .row { display: flex; justify-content: space-between; gap: 8px; font-size: .95rem; margin-bottom: 4px; }
.fortschritt .bar { height: 12px; border-radius: 99px; background: var(--line); overflow: hidden; }
.fortschritt .bar > span { display: block; height: 100%; background: var(--lime); border-radius: 99px; transition: width .4s; }
.erfolg { padding: 10px 12px; border-radius: 10px; background: #eef6d4; color: #36460a; font-weight: 600; }
:root[data-theme="dark"] .erfolg { background: #323a0c; color: #e1ec7a; }
.muted.small { font-size: .85rem; }
/* ausgeblendete Formularteile (z. B. Leistung im Fremdvertrag) auch bei display:grid verstecken */
form [hidden] { display: none !important; }
.zugang-loeschen { margin: 12px 0 0; font-size: 13px; text-align: right; }

/* Beratungsnotiz (Martin 11.11.2026): Hinweis aus dem Beratungsgespräch, vom Makler geschrieben, Kunde liest */
.beratung { border-left: 4px solid var(--lime); background: rgba(198, 213, 34, .12); padding: 8px 12px; border-radius: 8px; margin: 10px 0; }
.beratung .kopf { font-size: .82rem; font-weight: 600; color: var(--muted); }
.beratung p { white-space: pre-wrap; margin: 4px 0 0; }
.beratung .actions { margin-top: 6px; }

/* appgedeckt */
.makler-wechsel { margin-top: -8px; margin-bottom: 14px; }
.top img { border-radius: 8px; background: #fff; }
