/* TAPAXSURE App: Grundlage. TAPAX-Stil wie die Vorschauseite (live/assets/sure.css):
   weiss, ruhig, Systemschrift, Pillenknöpfe, Tiefblau. Kein Dunkelmodus. */
:root {
  color-scheme: light;
  --akzent: #22507e;
  --akzent-dunkel: #1a4066;
  --akzent-hauch: rgba(34, 80, 126, 0.08);
  --text: #1d1d1f;
  --text-leise: #636368;
  --flaeche: #f5f5f7;
  --haarlinie: #e8e8ed;
  --haarlinie-stark: #d2d2d7;
  --fehler: #b42318;
  --fehler-hauch: #fef3f2;
  --schrift: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--schrift); color: var(--text); background: var(--flaeche); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; min-height: 100vh; }
::selection { background: rgba(34, 80, 126, 0.18); }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 3px; border-radius: 8px; }

.rahmen { max-width: 460px; margin: 0 auto; padding: max(28px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom)); }
.marke { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-bottom: 20px; }
.marke-zeichen { height: 23px; width: auto; }
.marke-wort { height: 7.5px; width: auto; }

.laden { color: var(--text-leise); padding: 40px 0; text-align: center; }

.karte { background: #fff; border-radius: 20px; padding: 26px 22px; margin-bottom: 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 0 0 1px var(--haarlinie); display: flex; flex-direction: column; gap: 14px; }
h1 { font-size: 30px; line-height: 1.12; letter-spacing: -0.03em; font-weight: 650; }
h2 { font-size: 19px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 620; }
.leise { color: var(--text-leise); }
.klein { font-size: 14.5px; }

form { display: flex; flex-direction: column; gap: 8px; }
label { font-size: 14px; font-weight: 550; color: var(--text); margin-top: 4px; }
input { font: inherit; font-size: 17px; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--haarlinie-stark);
  background: #fff; color: var(--text); width: 100%; }
input:focus { outline: none; border-color: var(--akzent); box-shadow: 0 0 0 3px var(--akzent-hauch); }
.code-feld { font-family: var(--mono); font-size: 24px; letter-spacing: 0.3em; text-align: center; }
form .knopf { margin-top: 10px; }

.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 0; background: var(--akzent); color: #fff; font: inherit; font-size: 16px; font-weight: 580;
  cursor: pointer; width: 100%; transition: background-color .15s ease, transform .1s ease; -webkit-tap-highlight-color: transparent; }
.knopf:hover { background: var(--akzent-dunkel); }
.knopf:active { transform: scale(0.98); }
.knopf[disabled] { opacity: .6; cursor: progress; }
.knopf-rand { background: #fff; color: var(--text); box-shadow: inset 0 0 0 1px var(--haarlinie-stark); }
.knopf-rand:hover { background: var(--flaeche); }
.knopf-klein { width: auto; min-height: 44px; font-size: 14.5px; padding: 0 16px; }
.textknopf { background: none; border: 0; color: var(--akzent); font: inherit; font-size: 15px; min-height: 44px;
  cursor: pointer; align-self: center; display: inline-flex; align-items: center; }
.textknopf:hover { text-decoration: underline; text-underline-offset: 4px; }

.trenner { display: flex; align-items: center; gap: 12px; color: var(--text-leise); font-size: 14px; }
.trenner::before, .trenner::after { content: ""; flex: 1; height: 1px; background: var(--haarlinie); }

.meldung { background: var(--fehler-hauch); color: var(--fehler); border-radius: 12px; padding: 12px 14px; font-size: 15px; }
.meldung.gut { background: var(--akzent-hauch); color: var(--akzent-dunkel); }

.schritte { padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.schluessel { display: block; font-family: var(--mono); font-size: 16px; background: var(--flaeche); border-radius: 10px;
  padding: 10px 12px; margin-top: 8px; word-break: break-all; user-select: all; -webkit-user-select: all; }

.kopfzeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.leer h2 { font-size: 21px; }

.liste { display: flex; flex-direction: column; }
.liste > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--haarlinie); }
.liste > div:last-child { border-bottom: 0; }
.liste dt { color: var(--text-leise); }
.liste dd { text-align: right; }

.ereignisse { list-style: none; display: flex; flex-direction: column; }
.ereignisse li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--haarlinie); font-size: 15px; }
.ereignisse li:last-child { border-bottom: 0; }
.ereignisse .wann { color: var(--text-leise); white-space: nowrap; }
.ereignisse .warn { color: var(--fehler); }

.fuss { display: flex; justify-content: center; gap: 22px; padding-top: 18px; font-size: 13.5px; }
.fuss a { color: var(--text-leise); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.fuss a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  .knopf { transition: none; }
  .knopf:active { transform: none; }
}

/* ---------------- Angemeldet: Kopf und Reiter ---------------- */
:root { --gut: #1f7a4a; --gut-grund: #e7f4ec; --warn: #a3520c; --warn-grund: #fcf0e2; --blau-hell: #e8eff7; }
body.breit .rahmen { max-width: 1240px; }
.app-kopf { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; margin-bottom: 18px; }
.app-kopf .marke { margin: 0; }
.reiter { display: flex; gap: 2px; padding: 3px; background: #e9ebf0; border-radius: 12px; }
.reiter button { font: inherit; font-size: 14px; font-weight: 560; color: var(--text-leise); background: none; border: 0;
  border-radius: 9px; padding: 0 16px; min-height: 44px; cursor: pointer; }
.reiter button.an { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 0 0 0.5px rgba(0,0,0,0.05); }
select, textarea { font: inherit; font-size: 17px; border-radius: 12px; border: 1px solid var(--haarlinie-stark); background: #fff;
  color: var(--text); width: 100%; padding: 10px 12px; }
select { min-height: 48px; }
textarea { resize: vertical; min-height: 80px; line-height: 1.4; }
select:focus, textarea:focus { outline: none; border-color: var(--akzent); box-shadow: 0 0 0 3px var(--akzent-hauch); }

/* ---------------- Kunden: Liste und Akte ---------------- */
.kunden { display: grid; grid-template-columns: minmax(300px, 420px) 1fr; gap: 18px; align-items: start; }
.kunden > * { min-width: 0; }
.spalte-liste, .akte, .akte-leer { background: #fff; border-radius: 20px; box-shadow: 0 0 0 1px var(--haarlinie); }
.spalte-liste { overflow: hidden; }
.liste-kopf { padding: 18px 18px 12px; display: flex; flex-direction: column; gap: 10px; }
.liste-titel { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.liste-titel h1 { font-size: 24px; }
.liste-titel h1 span { color: #a0a5ad; font-weight: 600; }
.filter { display: flex; gap: 6px; flex-wrap: wrap; }
.filter button { font: inherit; font-size: 13.5px; font-weight: 560; padding: 0 14px; min-height: 44px; border-radius: 999px;
  background: var(--flaeche); color: #4c535d; border: 0; cursor: pointer; }
.filter button.an { background: var(--text); color: #fff; }
.spalte-liste .meldung { margin: 0 18px 12px; }
.kunden-liste { list-style: none; }
.zeile { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 18px; min-height: 60px; border: 0;
  border-top: 1px solid var(--haarlinie); background: #fff; font: inherit; text-align: left; cursor: pointer; color: var(--text); }
.zeile:hover { background: var(--flaeche); }
.zeile.an { background: #f2f6fb; }
.kreis { width: 38px; height: 38px; border-radius: 50%; background: #eef0f3; color: #4c535d; font-size: 12.5px; font-weight: 650;
  display: flex; align-items: center; justify-content: center; flex: none; }
.zeile.an .kreis, .kreis.gross { background: var(--akzent); color: #fff; }
.kreis.gross { width: 56px; height: 56px; font-size: 18px; }
.wer { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.wer small { display: block; font-weight: 400; color: var(--text-leise); font-size: 13px; }
.anzahl { color: var(--text-leise); font-size: 13px; white-space: nowrap; }
.leer-zustand { padding: 22px 18px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.leer-zustand.klein { padding: 4px 0; }
.leer-zustand .knopf { width: auto; }
.kein-treffer { padding: 14px 18px; }

.akte-leer { padding: 60px 24px; text-align: center; }
.akte { padding: 24px 26px; display: flex; flex-direction: column; gap: 24px; }
.akte-kopf { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.akte-titel { flex: 1; min-width: 180px; }
.akte-titel h2 { font-size: 26px; letter-spacing: -0.025em; font-weight: 700; line-height: 1.15; }
.akte .knoepfe { display: flex; gap: 8px; flex-wrap: wrap; }
.akte h3 { font-size: 13px; font-weight: 650; color: var(--text-leise); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 10px; }
.zurueck { align-self: flex-start; background: none; border: 0; color: var(--akzent); font: inherit; font-size: 16px; min-height: 44px; cursor: pointer; padding: 0; }

/* Policen als Karten wie im Wallet (Entwurf) */
.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.karte-sach, .karte-fahrzeug, .karte-haftpflicht, .karte-recht, .karte-reise, .karte-person, .karte-andere { box-shadow: none; }
.karten .karte { position: relative; border: 0; border-radius: 16px; color: #fff; padding: 14px 14px 12px; min-height: 118px; text-align: left;
  font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 2px; overflow: hidden;
  box-shadow: 0 1px 1px rgba(0,0,0,0.06), 0 12px 26px -18px rgba(10,24,44,0.55); margin: 0; }
.karten .karte:hover { filter: brightness(1.06); }
.karte-sach { background: linear-gradient(140deg, #2d64a0 0%, #1d4673 100%); }
.karte-fahrzeug { background: linear-gradient(140deg, #3c4b5e 0%, #252f3c 100%); }
.karte-haftpflicht { background: linear-gradient(140deg, #2f6f73 0%, #1f5154 100%); }
.karte-recht { background: linear-gradient(140deg, #8a6a3f 0%, #6b5030 100%); }
.karte-reise { background: linear-gradient(140deg, #5b5f97 0%, #42457a 100%); }
.karte-person { background: linear-gradient(140deg, #6b7686 0%, #4f5866 100%); }
.karte-andere { background: linear-gradient(140deg, #55606e 0%, #3d4651 100%); }
.karte .art { font-size: 11px; font-weight: 600; letter-spacing: .03em; opacity: .82; }
.karte .name { font-size: 15.5px; font-weight: 650; margin-top: 4px; line-height: 1.25; }
.karte .versicherer { font-size: 12.5px; opacity: .8; }
.karte .werte { display: flex; gap: 16px; margin-top: auto; padding-top: 12px; }
.karte .werte small { display: block; font-size: 11px; opacity: .72; }
.karte .werte b { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }

.fristen { list-style: none; border-radius: 16px; box-shadow: 0 0 0 1px var(--haarlinie); }
.frist { display: flex; align-items: center; gap: 14px; padding: 12px 16px; font-size: 15px; }
.frist + .frist { border-top: 1px solid var(--haarlinie); }
.frist .datum { width: 92px; font-weight: 600; font-variant-numeric: tabular-nums; flex: none; }
.frist .was { flex: 1; min-width: 0; }
.frist .was small { color: var(--text-leise); font-size: 13px; display: block; }
.marke-klein { font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.marke-klein.blau { background: var(--blau-hell); color: var(--akzent); }
.marke-klein.grau { background: #eef0f3; color: #4c535d; }

/* Plus unten rechts am Telefon (Regel 3 und 8) */
.plus { position: fixed; right: 18px; bottom: max(18px, env(safe-area-inset-bottom)); width: 56px; height: 56px; border-radius: 50%;
  border: 0; background: var(--akzent); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; z-index: 20;
  box-shadow: 0 10px 24px -10px rgba(10,24,44,0.6); }
.nur-schmal { display: none; }

/* ---------------- Blätter (Formulare) ---------------- */
dialog.blatt { border: 0; border-radius: 22px; padding: 0; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 40px);
  margin: auto; color: var(--text); box-shadow: 0 30px 80px -30px rgba(10,24,44,0.45); }
dialog.blatt::backdrop { background: rgba(20, 24, 30, 0.38); }
dialog.blatt form, dialog.frage { padding: 24px 22px 20px; }
dialog.blatt form { display: flex; flex-direction: column; gap: 6px; }
dialog.blatt h2 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 8px; }
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.zwei > div { display: flex; flex-direction: column; gap: 6px; }
.plz-ort { grid-template-columns: 110px 1fr; }
.nur-privat:not(.zwei), .nur-geschaeft { display: flex; flex-direction: column; gap: 6px; }
.umschalter { display: flex; gap: 4px; padding: 3px; background: #e9ebf0; border-radius: 12px; margin-bottom: 6px; }
.umschalter label { flex: 1; margin: 0; }
.umschalter input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.umschalter label { text-align: center; min-height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 9px;
  font-weight: 560; color: var(--text-leise); cursor: pointer; }
.umschalter label:has(input:checked) { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
.umschalter label:has(input:disabled) { cursor: default; }
.umschalter label:has(input:focus-visible) { outline: 2px solid var(--akzent); outline-offset: 2px; }
.haken { display: flex; align-items: center; gap: 10px; font-weight: 450; font-size: 15px; min-height: 44px; margin-top: 6px; }
.haken input { width: 20px; height: 20px; min-height: 0; accent-color: var(--akzent); }
.blatt-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.blatt-knoepfe .knopf { margin: 0; }
.textknopf.gefahr { color: var(--fehler); }
.knopf-gefahr { background: var(--fehler); }
.knopf-gefahr:hover { background: #912018; }
dialog.frage { width: min(420px, calc(100vw - 32px)); }

@media (max-width: 860px) {
  .kunden { grid-template-columns: 1fr; }
  .nur-breit { display: none; }
  .nur-schmal { display: inline-flex; align-items: center; justify-content: center; }
  .kunden .spalte-akte { display: none; }
  .kunden.akte-offen .spalte-liste { display: none; }
  .kunden.akte-offen .spalte-akte { display: block; }
  .kunden.akte-offen .plus { display: none; }
  .akte-leer { display: none; }
  .akte { padding: 18px 16px; }
  .frist { flex-wrap: wrap; gap: 4px 12px; }
  .frist .datum { width: auto; }
  .frist .marke-klein { margin-left: auto; }
  .frist .was { flex-basis: 100%; order: 3; }
  .karten { grid-template-columns: 1fr; }
  .app-kopf .marke-wort { display: none; }
  .zwei:not(.plz-ort) { grid-template-columns: 1fr; }
  dialog.blatt { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0 0; border-radius: 22px 22px 0 0; }
  .spalte-liste { padding-bottom: 80px; }
}

/* ---------------- Kundenportal und Einladung (S3) ---------------- */
body.portal-breit .rahmen { max-width: 760px; }
.portal-akte { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.portal-akte h3 { font-size: 13px; font-weight: 650; color: var(--text-leise); letter-spacing: .04em; text-transform: uppercase; margin-top: 12px; }
.berater-kopf { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 20px; padding: 18px; box-shadow: 0 0 0 1px var(--haarlinie); }
.berater-kopf > div:nth-child(2) { flex: 1; min-width: 0; }
.berater-kopf h2 { font-size: 21px; line-height: 1.2; }
.berater-kopf .knopf { width: auto; }
.portal .fristen, .portal .ereignisse { background: #fff; }
.portal .ereignisse { border-radius: 16px; box-shadow: 0 0 0 1px var(--haarlinie); padding: 0 16px; }
.punkte { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.portal-stand { display: flex; flex-direction: column; gap: 10px; }
.portal-stand .knoepfe .knopf { width: auto; }
.einladung-link { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.einladung-link input { font-size: 14px; font-family: var(--mono); }
.einladung-link .knopf { width: auto; align-self: flex-start; }
.gefahr-rand { color: var(--fehler); }
.marke-klein.gut { background: var(--gut-grund); color: var(--gut); }
.marke-klein.warn { background: var(--warn-grund); color: var(--warn); }
.blatt-innen { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.blatt-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kreuz { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--flaeche); font-size: 24px; line-height: 1; cursor: pointer; color: var(--text); }
@media (max-width: 860px) { .zeile .marke-klein { display: none; } }
a.knopf { text-decoration: none; }

/* ---------------- Dokumente (S4) ---------------- */
.dokumente { list-style: none; display: flex; flex-direction: column; }
.dokument { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--haarlinie); }
.dokument:last-child { border-bottom: 0; }
.dok-name { color: var(--akzent); font-weight: 560; text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; word-break: break-word; }
.dok-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.dok-knoepfe { margin-left: auto; display: flex; gap: 6px; }
.dok-knoepfe .textknopf { font-size: 14px; }
.hochladen { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--haarlinie); }
.hochladen .knopf { width: auto; align-self: flex-start; }
input[type=file] { padding: 10px 12px; min-height: 48px; }
.portal .dokumente { background: #fff; border-radius: 16px; box-shadow: 0 0 0 1px var(--haarlinie); padding: 0 16px; }

/* ---------------- Meldungen (S5) ---------------- */
.meldungen { display: flex; flex-direction: column; gap: 12px; }
.meldung-karte { border-radius: 16px; padding: 14px 16px; background: var(--warn-grund); display: flex; flex-direction: column; gap: 10px; }
.meldung-karte.frage { background: #f2f6fb; }
.meldung-karte.nachricht { background: var(--flaeche); }
.meldung-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-weight: 620; }
.meldung-kopf .leise { font-weight: 400; font-size: 13.5px; }
.verlauf { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.verlauf li { background: #fff; border-radius: 12px; padding: 10px 12px; font-size: 15px; white-space: pre-wrap; word-break: break-word; }
.verlauf li.berater { border-left: 3px solid var(--akzent); }
.verlauf small { display: block; color: var(--text-leise); font-size: 12.5px; margin-bottom: 2px; }
.fotos { display: flex; flex-wrap: wrap; gap: 8px; }
.antwort { display: flex; flex-direction: column; gap: 8px; }
.antwort .knopf, .stand-wahl .knopf { width: auto; align-self: flex-start; }
.stand-wahl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.stand-wahl select { width: auto; min-height: 44px; }
.police-aktionen { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.marke-klein.warn { background: var(--warn-grund); color: var(--warn); }

/* ---------------- Bestand über alle Kunden (S6) ---------------- */
.bestand { display: flex; flex-direction: column; gap: 18px; }
.bestand-kopf h1 { font-size: 28px; }
.zahlen { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.zahl { background: #fff; border: 0; border-radius: 18px; box-shadow: 0 0 0 1px var(--haarlinie); padding: 14px 16px;
  display: flex; flex-direction: column; gap: 2px; text-align: left; font: inherit; color: var(--text); min-height: 96px; }
button.zahl { cursor: pointer; }
button.zahl:hover { box-shadow: 0 0 0 1px var(--haarlinie-stark); background: #fbfbfd; }
.zahl b { font-size: 26px; font-weight: 680; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.zahl span { font-size: 14.5px; font-weight: 560; }
.zahl small { font-size: 13px; color: var(--text-leise); }
.bestand-spalten { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
/* Zwei Spalten erst, wenn links neben Datum und Marken genug Platz für den Text bleibt (Prüfbefund S6: bei 900px brach er Wort für Wort). */
@media (min-width: 1100px) { .bestand-spalten { grid-template-columns: minmax(0, 1fr) minmax(280px, 400px); } }
.tafel { background: #fff; border-radius: 20px; box-shadow: 0 0 0 1px var(--haarlinie); padding: 20px 22px;
  display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tafel-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tafel-kopf select { width: auto; min-height: 44px; }
.fristen.tippbar { overflow: hidden; }
.fristen.tippbar > li + li { border-top: 1px solid var(--haarlinie); }
.fristen.tippbar .frist { width: 100%; border: 0; background: none; font: inherit; font-size: 15px; color: inherit;
  text-align: left; cursor: pointer; min-height: 56px; }
.fristen.tippbar .frist:hover { background: var(--flaeche); }
.fristen.tippbar .frist:focus-visible { outline-offset: -3px; }
.frist .marken { display: flex; gap: 6px; flex: none; }
.kunden .liste-kopf select { min-height: 44px; }

@media (max-width: 860px) {
  .zahlen { grid-template-columns: 1fr 1fr; }
  .tafel { padding: 16px; }
  .frist .marken { margin-left: auto; }
}
/* Schmale Spalte «Nachführen»: Datum und Marke oben, Text darunter. */
.fristen.eng .frist { flex-wrap: wrap; gap: 4px 12px; }
.fristen.eng .frist .datum { width: auto; }
.fristen.eng .frist .marke-klein { margin-left: auto; }
.fristen.eng .frist .was { flex-basis: 100%; order: 3; }

/* ---------------- Hinweise und Kontakt (Stand 6) ---------------- */
.berater-kopf { flex-wrap: wrap; }
.berater-knoepfe { flex-basis: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.berater-knoepfe .knopf { width: 100%; }
.rueckruf-stand { flex-basis: 100%; font-size: 14.5px; color: var(--akzent-dunkel); background: var(--blau-hell); border-radius: 12px; padding: 10px 12px; }
img.kreis.foto { object-fit: cover; background: #eef0f3; padding: 0; }
img.kreis:not(.gross) { width: 38px; height: 38px; }
.karten .karte { padding-right: 14px; }
.karten-hinweis { align-self: flex-start; font-size: 11.5px; font-weight: 650; padding: 3px 9px; border-radius: 999px; margin-top: 6px; }
.karten-hinweis.warn { background: var(--warn-grund); color: var(--warn); }
.karten-hinweis.blau { background: var(--blau-hell); color: var(--akzent); }
.karten-hinweis.neu::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: 1px; }
.hinweis-block { border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #f2f6fb; }
.hinweis-block.warn { background: var(--warn-grund); }
.hinweis-kopf { display: flex; align-items: center; gap: 10px; }
.hinweis-titel { font-size: 17px; font-weight: 650; }
.hinweis-text { background: #fff; border-radius: 12px; padding: 12px; font-size: 15.5px; white-space: pre-wrap; word-break: break-word; }
.hinweis-knoepfe { display: flex; flex-direction: column; gap: 8px; }
.hinweis-knoepfe .textknopf { align-self: center; }
a.knopf.knopf-rand { color: var(--text); }
/* Berater: Hinweis im Blatt der Police, Rückrufe, Profil */
.hinweis-wahl { border: 0; border-top: 1px solid var(--haarlinie); margin-top: 10px; padding-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.hinweis-wahl legend { font-size: 14px; font-weight: 550; padding: 0 0 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips label { margin: 0; position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
  background: var(--flaeche); color: #4c535d; font-size: 14px; font-weight: 560; cursor: pointer; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips label:has(input:checked) { background: var(--text); color: #fff; }
.chips label:has(input:focus-visible) { outline: 2px solid var(--akzent); outline-offset: 2px; }
.ereignisse li.rueckruf { flex-wrap: wrap; align-items: center; }
.ereignisse li.rueckruf small { display: block; color: var(--text-leise); font-size: 13px; }
.profil-foto { display: flex; align-items: center; gap: 16px; }
.profil-foto-knoepfe { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.profil-foto-knoepfe .textknopf { align-self: flex-start; }

/* ---------------- Courtagen, Haushalt, Archiv (Stand 7) ---------------- */
.kopf-mit-wahl { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.kopf-mit-wahl select { width: auto; min-width: 110px; }
.spalte-rechts { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.tafel-unter { font-size: 13px; font-weight: 650; color: var(--text-leise); letter-spacing: .04em; text-transform: uppercase; margin-top: 6px; }
.zahl b.geld { overflow-wrap: anywhere; }
.frist .betrag { flex: none; min-width: 84px; text-align: right; font-weight: 620; font-variant-numeric: tabular-nums; white-space: nowrap; }
.courtage-liste .frist .marke-klein { flex: none; }
/* Zahlmonate: zwölf Haken als Pillen, 44 px hoch */
.monate { border: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.monate legend { font-size: 14px; font-weight: 550; padding: 0 0 6px; }
.monate label { margin: 0; position: relative; display: flex; align-items: center; justify-content: center; min-height: 44px;
  border-radius: 999px; background: var(--flaeche); color: #4c535d; font-size: 14px; font-weight: 560; cursor: pointer; }
.monate input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.monate label:has(input:checked) { background: var(--text); color: #fff; }
.monate label:has(input:focus-visible) { outline: 2px solid var(--akzent); outline-offset: 2px; }
#form-zahlmonate .knopf { align-self: flex-start; }
/* Rechnung des Nutzungsentgelts */
.rechnung { display: flex; flex-direction: column; border-radius: 16px; box-shadow: 0 0 0 1px var(--haarlinie); overflow: hidden; }
.rechnung > div { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 12px 16px; }
.rechnung > div + div { border-top: 1px solid var(--haarlinie); }
.rechnung dt { font-weight: 560; min-width: 0; }
.rechnung dt .marke-klein { display: inline-block; margin-left: 2px; vertical-align: 1px; }
#courtagen-versicherer dd { white-space: nowrap; font-variant-numeric: tabular-nums; }
#anteil-art { margin-top: 8px; }
.rechnung dt small { display: block; font-weight: 400; color: var(--text-leise); font-size: 13.5px; }
.rechnung dd { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 560; }
.rechnung .massgebend { background: #f2f6fb; }
.rechnung .ergebnis { background: var(--flaeche); }
.rechnung .ergebnis dt, .rechnung .ergebnis dd { font-weight: 680; font-size: 18px; }
.rechnung .ergebnis dt small { font-size: 13.5px; }
.schaetzung, .bestaetigt { border-radius: 14px; padding: 12px 14px; font-size: 15px; display: flex; flex-direction: column; gap: 4px; }
.schaetzung { background: var(--blau-hell); color: var(--akzent-dunkel); }
.bestaetigt { background: var(--gut-grund); color: var(--gut); }
#knopf-jahr-bestaetigen { align-self: flex-start; }
.zaehlt { border-top: 1px solid var(--haarlinie); padding-top: 6px; }
.zaehlt summary { min-height: 44px; display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; list-style: none; }
.zaehlt summary::-webkit-details-marker { display: none; }
.zaehlt summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--text-leise); border-bottom: 2px solid var(--text-leise);
  transform: rotate(-45deg); transition: transform .15s ease; flex: none; }
.zaehlt[open] summary::before { transform: rotate(45deg); }
.zaehlt > p { margin: 2px 0 12px; }
@media (prefers-reduced-motion: reduce) { .zaehlt summary::before { transition: none; } }
/* Akte: Vergütung, Haushalt, Archiv */
.verguetung { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.verguetung .textknopf { align-self: flex-start; flex: none; }
.haushalt { display: flex; flex-direction: column; gap: 8px; }
.haushalt .ereignisse li { align-items: center; }
.haushalt-zeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.haushalt-wahl { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.haushalt-wahl select { width: auto; flex: 1; min-width: 200px; }
.textknopf.eingebettet { display: inline; min-height: 0; padding: 0; font-size: inherit; align-self: auto; vertical-align: baseline;
  text-decoration: underline; text-underline-offset: 3px; }
.haushalt .ereignisse .textknopf.eingebettet { min-height: 44px; display: inline-flex; text-decoration: none; }
.archiv-band { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--flaeche);
  border-radius: 16px; padding: 12px 14px; font-size: 15px; }
.archiv-band p { flex: 1; min-width: 200px; }
.archiv-band .knopf { flex: none; }
#akte-archiv-bereich { display: flex; flex-direction: column; gap: 8px; }
#akte-archiv-bereich h3 { margin-bottom: 2px; }
#akte-archiv-bereich .knopf { align-self: flex-start; }
.zeile.archiviert .wer { color: var(--text-leise); font-weight: 560; }
.zeile.archiviert .kreis { background: #f3f4f6; color: #9aa0a8; }
/* Police: Anteile */
.anteile-bereich { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--haarlinie); padding-top: 8px; margin-top: 4px; }
.anteile-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; }
.anteile-kopf .textknopf { align-self: auto; }
.ereignisse.anteile li { align-items: center; }
.nur-vermittler { display: flex; flex-direction: column; gap: 6px; }
#anteil-police { margin-top: -4px; }

@media (min-width: 1100px) { .courtagen .bestand-spalten { grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); } }
@media (max-width: 860px) {
  .zahl b.geld { font-size: 21px; }
  .courtage-liste .frist .marke-klein { margin-left: auto; }
  .rechnung > div { padding: 12px 14px; }
}
@media (max-width: 520px) {
  .monate { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .reiter button { padding: 0 10px; font-size: 13.5px; }
  .app-kopf { gap: 10px; }
}
.fristen.tippbar div.frist { cursor: default; }
.fristen.tippbar div.frist:hover { background: none; }
