/* Modul-CSS Abrechnung — Präfix .abr-; nur Tokens aus app.css. */

/* ---------- allgemein ---------- */
.abr-ziffer { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 24px; padding: 0 6px;
  border-radius: 6px; background: var(--primaer-weich); color: var(--primaer); font-weight: 700; font-size: 12.5px;
  font-variant-numeric: tabular-nums; white-space: nowrap; flex-shrink: 0; }
.abr-gefahr-text { color: var(--gefahr) !important; }
.abr-warn-text { color: var(--warn) !important; }
.abr-link-knopf { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 13px; color: var(--primaer); cursor: pointer; text-align: left; }
.abr-link-knopf:hover { text-decoration: underline; }
.abr-scroll-x { max-width: 100%; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.abr-scroll-x::-webkit-scrollbar { display: none; }
.abr-scroll-x .schalter-gruppe { flex-wrap: nowrap; }
.abr-scroll-x .schalter-gruppe button { white-space: nowrap; min-height: 32px; }
.abr-kacheln { margin-bottom: 18px; }
.abr-karten-raster > .karte + .karte, .raster-seite > .karte + .karte, .raster-seite > .stapel > .karte + .karte { margin-top: 0; }
.abr-kacheln .kachel .wert { font-size: 1.45rem; }
.abr-werkzeug { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.abr-datum { width: auto; height: 36px; padding: 0 8px; font-size: 14px; }
.abr-rahmen { border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden; }
.abr-kompakt { padding: 9px 16px; gap: 10px; }
.abr-karte-fuss { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--linie); background: var(--flaeche-2); border-radius: 0 0 var(--radius-gross) var(--radius-gross); flex-wrap: wrap; }
.abr-summenzeile { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; color: var(--text-2); padding: 0 2px; }
.abr-punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); display: inline-block; flex-shrink: 0; }
.abr-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.abr-speichern-leiste { justify-content: flex-end; position: sticky; bottom: 12px; }
@media (max-width: 860px) { .abr-speichern-leiste { bottom: calc(78px + env(safe-area-inset-bottom)); } }
.kuerzen-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Betragseingabe mit €-Zeichen */
.abr-betrag-eingabe { position: relative; display: flex; align-items: center; }
.abr-betrag-eingabe .eingabe { text-align: right; padding-right: 26px; font-variant-numeric: tabular-nums; }
.abr-betrag-eingabe span { position: absolute; right: 10px; color: var(--text-3); pointer-events: none; font-size: 14px; }

/* ---------- Katalogsuche ---------- */
.abr-suche { position: relative; }
.abr-suche-feld { position: relative; display: flex; align-items: center; }
.abr-suche-feld > svg { position: absolute; left: 11px; color: var(--text-3); pointer-events: none; }
.abr-suche-feld .eingabe { padding-left: 34px; }
.abr-suche-liste { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 60; background: var(--flaeche);
  border: 1px solid var(--linie-stark); border-radius: var(--radius); box-shadow: var(--schatten-2); max-height: 340px; overflow-y: auto; padding: 4px; min-width: 280px; }
.abr-treffer { display: flex; align-items: flex-start; gap: 10px; width: 100%; border: 0; background: none; font: inherit; color: inherit;
  text-align: left; padding: 8px 8px; border-radius: var(--radius-klein); cursor: pointer; min-height: 40px; }
.abr-treffer.aktiv, .abr-treffer:hover { background: var(--primaer-weich); }
.abr-treffer .wachsen { display: flex; flex-direction: column; gap: 1px; }
.abr-treffer-text { font-size: 14px; line-height: 1.3; }
.abr-treffer-unter { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.abr-treffer .zahl { font-size: 13.5px; font-weight: 600; white-space: nowrap; display: flex; flex-direction: column; align-items: flex-end; }
.abr-hb { font-weight: 400; font-size: 11.5px; }

/* ---------- Leistungen-Panel (Sitzung) ---------- */
.abr-panel { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius-gross); box-shadow: var(--schatten-1);
  display: flex; flex-direction: column; min-width: 0; }
.dialog .abr-panel { border: 0; box-shadow: none; }
.dialog .abr-panel .abr-panel-kopf { padding-left: 0; padding-right: 0; }
.abr-panel-kopf { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--linie); }
.abr-panel-kopf h3 { font-size: 15px; }
.abr-panel-summe { font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.abr-panel-leer { padding: 14px; color: var(--text-3); font-size: 13.5px; }
.abr-warnstreifen { display: flex; gap: 8px; align-items: flex-start; margin: 10px 12px 0; padding: 8px 10px; border-radius: var(--radius);
  font-size: 13px; font-weight: 600; background: var(--warn-weich); color: var(--warn); }
.abr-warnstreifen.gefahr { background: var(--gefahr-weich); color: var(--gefahr); }
.abr-warnstreifen svg { flex-shrink: 0; margin-top: 1px; }
.abr-lliste { display: flex; flex-direction: column; }
.abr-lzeile { border-bottom: 1px solid var(--linie); }
.abr-lzeile:last-child { border-bottom: 0; }
.abr-lzeile-kopf { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 48px; padding: 8px 12px; border: 0; background: none;
  font: inherit; color: inherit; text-align: left; cursor: pointer; }
.abr-lzeile-kopf:hover, .abr-lzeile.offen .abr-lzeile-kopf { background: var(--flaeche-2); }
.abr-lzeile-text { display: flex; flex-direction: column; gap: 1px; font-size: 13.5px; line-height: 1.3; min-width: 0; }
.abr-lzeile-text .klein { font-size: 12px; }
.abr-lzeile-betrag { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 14px; }
.abr-lzeile.gesperrt .abr-ziffer { background: var(--flaeche-3); color: var(--text-2); }
.abr-lzeile-edit { padding: 6px 12px 12px; display: flex; flex-direction: column; gap: 10px; background: var(--flaeche-2); }
.abr-edit-raster { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; }
.abr-stepper { display: inline-flex; align-items: center; border: 1px solid var(--linie-stark); border-radius: var(--radius); background: var(--flaeche); height: 40px; }
.abr-stepper button { width: 38px; height: 38px; border: 0; background: none; color: var(--text-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.abr-stepper button:disabled { opacity: .35; cursor: default; }
.abr-stepper span { min-width: 30px; text-align: center; font-weight: 650; font-variant-numeric: tabular-nums; }
.abr-stepper-klein { height: 32px; }
.abr-stepper-klein button { width: 30px; height: 30px; }
.abr-hinweise { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 0; }
.abr-hinweis { display: flex; gap: 7px; align-items: flex-start; font-size: 12.5px; line-height: 1.4; color: var(--text-2); padding: 7px 9px;
  border-radius: var(--radius-klein); background: var(--info-weich); }
.abr-hinweis.warn { background: var(--warn-weich); }
.abr-hinweis.gefahr { background: var(--gefahr-weich); color: var(--gefahr); }
.abr-hinweis svg { flex-shrink: 0; margin-top: 1px; }
.abr-hinweis.warn svg { color: var(--warn); }
.abr-hinweis.info svg { color: var(--info); }
.abr-erfassen { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-top: 1px solid var(--linie); margin-top: 10px; }
.abr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.abr-chip { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; min-height: 34px; padding: 4px 10px; border-radius: 99px;
  border: 1px solid var(--linie-stark); background: var(--flaeche); color: var(--text); font: inherit; font-size: 13px; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -webkit-tap-highlight-color: transparent; }
.abr-chip b { color: var(--primaer); }
.abr-chip:hover:not(:disabled) { border-color: var(--primaer); background: var(--primaer-weich); }
.abr-chip:active:not(:disabled) { transform: scale(.97); }
.abr-chip:disabled { opacity: .55; }
.abr-chip-kette { background: var(--primaer-weich); border-color: transparent; color: var(--primaer); font-weight: 600; }
.abr-chip-kette:hover:not(:disabled) { background: var(--primaer); color: var(--primaer-text); }
.abr-chip-klein { min-height: 24px; padding: 1px 8px; font-size: 12px; cursor: default; }
.abr-panel-fuss { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--linie); flex-wrap: wrap; background: var(--flaeche-2);
  border-radius: 0 0 var(--radius-gross) var(--radius-gross); }
.abr-panel-fuss .knopf-primaer { flex: 1; }
.abr-sofort { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .abr-sofort { grid-template-columns: 1fr; } }

/* ---------- Offene Leistungen ---------- */
.abr-gruppe { border-bottom: 1px solid var(--linie); }
.abr-gruppe:last-child { border-bottom: 0; }
.abr-gruppe-kopf { border-bottom: 0; padding: 10px 14px 10px 8px; }
.abr-aufklapp { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; padding: 4px 6px; border-radius: var(--radius-klein); }
.abr-aufklapp:hover { background: var(--flaeche-2); }
.abr-aufklapp > svg { color: var(--text-3); flex-shrink: 0; }
.abr-gruppe-info { text-align: right; min-width: 150px; }
.abr-gruppe-summe { min-width: 84px; }
.abr-details { padding: 4px 16px 14px 44px; }
.abr-detail-zeile { display: flex; align-items: center; gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--linie); }
.abr-detail-datum { width: 82px; flex-shrink: 0; }
@media (max-width: 860px) { .abr-details { padding-left: 14px; } .abr-detail-datum { width: 70px; } .abr-gruppe-summe { min-width: 0; } }

/* ---------- Offene Posten ---------- */
.abr-posten { align-items: flex-start; }
.abr-posten-rechts { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.abr-posten-knoepfe { gap: 6px; flex-wrap: nowrap; }

/* ---------- Auswertung: Säulen ---------- */
.abr-chart { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: 220px auto; column-gap: 8px; user-select: none; }
.abr-chart-achse { display: flex; flex-direction: column; justify-content: space-between; height: 220px; }
.abr-chart-achse div { height: 0; position: relative; }
.abr-chart-achse span { position: absolute; right: 0; transform: translateY(-50%); font-size: 11.5px; color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.abr-chart-flaeche { position: relative; height: 220px; }
.abr-chart-linie { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--linie); }
.abr-chart-linie:last-of-type { border-top-color: var(--linie-stark); }
.abr-chart-saeulen { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 2px; }
.abr-chart-spalte { flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; position: relative; cursor: pointer; }
.abr-chart-saeule { width: min(70%, 34px); background: var(--primaer); border-radius: 4px 4px 0 0; transition: filter .12s; }
.abr-chart-spalte:hover .abr-chart-saeule, .abr-chart-spalte.aktiv .abr-chart-saeule { filter: brightness(1.15); }
.abr-chart-spalte.aktiv { background: var(--flaeche-2); border-radius: 6px 6px 0 0; }
.abr-chart-tipp { position: absolute; left: 50%; transform: translate(-50%, -8px); background: var(--text); color: var(--bg); border-radius: var(--radius-klein);
  padding: 5px 9px; font-size: 12px; white-space: nowrap; display: flex; flex-direction: column; align-items: center; z-index: 5; box-shadow: var(--schatten-2); pointer-events: none; }
.abr-chart-tipp b { font-size: 13.5px; font-variant-numeric: tabular-nums; }
.abr-chart-monate { display: flex; gap: 2px; padding-top: 6px; }
.abr-chart-monate span { flex: 1; text-align: center; font-size: 11.5px; color: var(--text-3); display: flex; flex-direction: column; line-height: 1.2; }
.abr-chart-monate span.aktiv { color: var(--text); font-weight: 650; }
.abr-chart-monate small { font-size: 10px; opacity: .8; }
@media (max-width: 860px) { .abr-chart { grid-template-columns: 44px 1fr; } .abr-chart-monate span { font-size: 10px; } }
.abr-anteil { height: 6px; background: var(--flaeche-3); border-radius: 3px; overflow: hidden; margin-bottom: 2px; }
.abr-anteil span { display: block; height: 100%; background: var(--primaer); border-radius: 3px; }
.abr-ziffertabelle td { padding-top: 8px; padding-bottom: 8px; }

/* ---------- Rechnung ---------- */
.abr-kopf-aktionen { gap: 8px; }
.abr-kopf-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 860px) { .abr-kopf-raster { grid-template-columns: 1fr; } }
.abr-anschrift { margin-top: 6px; line-height: 1.45; }
.abr-anschrift-feld { min-height: 104px; margin-top: 6px; }
.abr-eckdaten, .abr-betraege { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; margin: 0; font-size: 14px; }
.abr-eckdaten dt, .abr-betraege dt { color: var(--text-3); }
.abr-eckdaten dd, .abr-betraege dd { margin: 0; font-weight: 600; }
.abr-betraege dd { text-align: right; font-variant-numeric: tabular-nums; }
.abr-postabelle td { vertical-align: top; }
.abr-postabelle tr.abr-neuer-tag td { border-top: 1px solid var(--linie-stark); }
.abr-pos-mobil { align-items: flex-start; gap: 10px; }
.abr-summe-zeile { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 18px; border-top: 2px solid var(--text); margin: 0 0 0; font-size: 15px; }
.abr-summe-zeile b { font-size: 18px; font-variant-numeric: tabular-nums; }
.abr-pos-neu { display: flex; flex-direction: column; gap: 10px; padding: 12px 18px 16px; border-top: 1px solid var(--linie); background: var(--flaeche-2);
  border-radius: 0 0 var(--radius-gross) var(--radius-gross); }
.abr-diagnosen { line-height: 1.6; }
.abr-verlauf { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--text-2); display: flex; flex-direction: column; gap: 4px; }

/* ---------- Einstellungen: Preise ---------- */
.abr-preisliste { display: flex; flex-direction: column; }
.abr-preis-kopf, .abr-preis-zeile { display: grid; grid-template-columns: 38px 56px minmax(0, 1fr) 100px 150px; gap: 10px; align-items: start; padding: 8px 14px; }
.abr-preis-kopf { font-size: 12px; font-weight: 650; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; background: var(--flaeche-2);
  border-bottom: 1px solid var(--linie); border-radius: var(--radius-gross) var(--radius-gross) 0 0; }
.abr-preis-gruppe { padding: 12px 14px 6px; font-weight: 650; font-size: 13px; color: var(--text-2); background: var(--flaeche-2); border-bottom: 1px solid var(--linie); }
.abr-preis-zeile { border-bottom: 1px solid var(--linie); }
.abr-preis-zeile .abr-ziffer { margin-top: 7px; }
.abr-preis-zeile.favorit { background: color-mix(in srgb, var(--primaer-weich) 35%, transparent); }
.abr-stern { width: 38px; height: 38px; border: 0; background: none; color: var(--linie-stark); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-klein); }
.abr-stern:hover { background: var(--flaeche-3); }
.abr-stern.an { color: var(--warn); }
.abr-stern.an svg { fill: currentColor; }
.abr-preis-text { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.abr-preis-leistung { border: 0; background: none; padding: 7px 0 0; font: inherit; font-size: 14px; color: var(--text); text-align: left; cursor: pointer; line-height: 1.35; }
.abr-kurz { height: 32px; font-size: 13px; }
.abr-preis-zeile .abr-hb { padding-top: 9px; font-size: 13.5px; }
.abr-preis-eingabe { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.abr-preis-eingabe .abr-betrag-eingabe { width: 120px; }
.abr-ketten-pos { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.abr-naechste { display: flex; flex-direction: column; gap: 2px; justify-content: center; min-height: 40px; }
.abr-naechste b { font-size: 17px; }
@media (max-width: 860px) {
  .abr-preis-zeile { grid-template-columns: 38px 50px minmax(0, 1fr); grid-template-areas: "stern ziffer text" "hb hb preis"; row-gap: 4px; padding: 8px 10px; }
  .abr-preis-zeile .abr-stern { grid-area: stern; }
  .abr-preis-zeile .abr-ziffer { grid-area: ziffer; min-width: 0; }
  .abr-preis-zeile .abr-preis-text { grid-area: text; }
  .abr-preis-zeile .abr-hb { grid-area: hb; text-align: left; padding-top: 10px; white-space: nowrap; }
  .abr-preis-zeile .abr-preis-eingabe { grid-area: preis; flex-direction: row; align-items: center; justify-content: flex-end; gap: 8px; }
  .abr-preis-zeile .abr-hb::before { content: "HB "; }
}

/* ---------- schmale Bildschirme ---------- */
.abr-rechnung > *, .abr-min0 > * { min-width: 0; }
.abr-chart-karte .karte-kopf { flex-wrap: wrap; }
.abr-chart-karte .karte-kopf h2 { min-width: 150px; }
@media (max-width: 860px) {
  .abr-posten { flex-wrap: wrap; }
  .abr-posten-rechts { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; }
  .abr-gruppe-kopf { flex-wrap: wrap; row-gap: 4px; }
  .abr-aufklapp { flex-basis: 100%; }
  .abr-gruppe-summe { margin-left: auto; }
  .abr-kopf-aktionen { width: 100%; }
}
@media (max-width: 860px) {
  .abr-klient .abr-kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 4px; }
  .abr-klient .abr-kacheln > :nth-child(3) { display: none; }
  .abr-kacheln .kachel { padding: 12px 14px; }
  .abr-kacheln .kachel .wert { font-size: 1.25rem; }
}
@media (max-width: 860px) {
  .abr-ziffertabelle th, .abr-ziffertabelle td { padding-left: 6px; padding-right: 6px; }
  .abr-ziffertabelle th { font-size: 11px; letter-spacing: 0; }
}

/* ---------- Runde 2: Rechnungskopf am Handy in einer Zeile ---------- */
.abr-kopf-aktionen .knopf { flex-shrink: 0; }
@media (max-width: 860px) {
  .seitenkopf .aktionen:has(.abr-kopf-aktionen) { width: 100%; }
  .abr-kopf-aktionen { flex-wrap: nowrap; gap: 6px; }
  .abr-kopf-aktionen > .knopf-primaer { flex: 1 1 auto; min-width: 0; }
  .abr-kopf-aktionen > div:last-child { margin-left: auto; }
}
@media (max-width: 560px) {
  /* Nebenknöpfe (Vorschau, PDF, E-Mail) nur mit Symbol; Name bleibt im title */
  .abr-kopf-aktionen .abr-ktext { display: none; }
  .abr-kopf-aktionen > .knopf:not(.knopf-primaer) { width: 42px; padding: 0; }
  .abr-kopf-aktionen > .knopf-primaer { padding: 0 12px; }
}

/* ---------- Guthaben, Gutschrift, Erstattung ---------- */
.abr-guthaben-wahl { display: flex; flex-direction: column; gap: 9px; padding: 12px 14px; border-radius: var(--radius); background: var(--warn-weich); }
.abr-guthaben-wahl .kontrolle { align-items: flex-start; font-size: 14px; line-height: 1.35; }
.abr-guthaben-wahl .kontrolle input { flex-shrink: 0; margin-top: 1px; }
.abr-hinweis-knoepfe { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: 6px; vertical-align: middle; }
.abr-gs-zeile { gap: 9px; }
.abr-gs-zeile > input[type=checkbox] { width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--primaer); }
.abr-ok-text { color: var(--ok); }

/* ---------- Läufe (Mahnlauf, Rechnungslauf) ---------- */
.abr-lauf-leiste { padding: 10px 14px; border: 1px solid var(--linie); border-radius: var(--radius-gross); background: var(--flaeche); }
.abr-lauf-zeile { align-items: flex-start; gap: 10px; padding: 10px 12px; }
.abr-lauf-zeile.aus > :not(.abr-check) { opacity: .5; }
.abr-check { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; accent-color: var(--primaer); }
.abr-lauf-rechts { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.abr-versand { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; white-space: nowrap; cursor: pointer; min-height: 28px; }
.abr-versand input { width: 16px; height: 16px; accent-color: var(--primaer); }
.abr-fuss-info { margin-right: auto; align-self: center; }
@media (max-width: 560px) {
  .abr-fuss-info { flex-basis: 100%; }
  .abr-lauf-dialog .dialog-fuss .knopf, .dialog-fuss:has(.abr-fuss-info) .knopf { flex: 1 1 auto; }
}

/* ---------- Barzahlungen ---------- */
.abr-tagessumme { font-size: 13.5px; color: var(--text-2); white-space: nowrap; margin-left: auto; }
.abr-tagessumme b { color: var(--text); font-variant-numeric: tabular-nums; }
.abr-kasse-zeit { width: 40px; flex-shrink: 0; font-variant-numeric: tabular-nums; }

/* ---------- Export ---------- */
.abr-abschnitt { font-size: 15px; margin: 8px 0 -4px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.abr-export-text { min-height: 62px; }
.abr-datev { gap: 12px; }
.abr-datev-var { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--flaeche-2); }
.abr-datev-var .knopf { align-self: flex-start; margin-top: 4px; }
.abr-datev-pruefen { display: flex; gap: 7px; align-items: flex-start; margin-top: 10px; color: var(--text-2); }
.abr-datev-pruefen svg { flex-shrink: 0; margin-top: 1px; color: var(--info); }

/* ---------- Einstellungen: DATEV-Konten ---------- */
.abr-konten { display: flex; flex-direction: column; gap: 8px; }
.abr-konto { display: grid; grid-template-columns: minmax(0, 1fr) 110px minmax(0, 170px); gap: 10px; align-items: center; }
.abr-konto label { font-size: 14px; }
.abr-konto .eingabe { height: 36px; text-align: right; }
@media (max-width: 560px) {
  .abr-konto { grid-template-columns: minmax(0, 1fr) 96px; row-gap: 2px; }
  .abr-konto > span { grid-column: 1 / -1; }
}

/* ---------- Runde 2: Feinschliff Handy ---------- */
.abr-nowrap { white-space: nowrap; }
.abr-abschnitt .leise { font-weight: 400; }
@media (max-width: 860px) {
  .abr-kacheln-kompakt { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .abr-kacheln-kompakt .kachel { padding: 10px 11px; }
  .abr-kacheln-kompakt .kachel .bez { font-size: 12px; line-height: 1.25; }
  .abr-kacheln-kompakt .kachel .wert { font-size: 1.05rem; }
  .abr-kacheln-kompakt .kachel .fuss { font-size: 11.5px; }
  .abr-kacheln-kompakt .kachel .zeile-zw .leise { display: none; }
}
@media (max-width: 560px) {
  .abr-lauf-leiste { flex-direction: column; align-items: stretch; gap: 8px; }
  .abr-lauf-leiste .knopf { width: 100%; }
}

/* ---------- Stufe 1 therasoft: eigene Leistungen, Pakete, Umsatzsteuer, Empfänger ---------- */
.abr-honorar-chips { gap: 8px; }
.abr-chip-honorar { min-height: 40px; padding: 6px 12px; font-size: 14px; }
.abr-chip-honorar .kuerzen { min-width: 0; }
.abr-chip-honorar.vorschlag { border-color: var(--primaer); background: var(--primaer-weich); color: var(--primaer); font-weight: 600; }
.abr-chip-honorar.vorschlag svg { color: var(--primaer); flex-shrink: 0; }
.abr-chip-honorar.paket svg { color: var(--text-3); flex-shrink: 0; }
.abr-pakete-wahl { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 0; }
.abr-paket-knopf { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 8px 12px; border: 1px dashed var(--primaer);
  border-radius: var(--radius); background: var(--primaer-weich); color: var(--text); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.abr-paket-knopf svg { color: var(--primaer); flex-shrink: 0; }
.abr-paket-knopf b { display: block; color: var(--primaer); }
.abr-paket-knopf:hover:not(:disabled) { border-style: solid; }
.abr-paket-knopf:disabled { opacity: .6; }
.abr-paket-buchung { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--linie);
  background: color-mix(in srgb, var(--primaer-weich) 45%, transparent); font-size: 14px; }
.abr-paket-buchung svg { color: var(--primaer); flex-shrink: 0; }
.abr-paket-eintrag + .abr-paket-eintrag { border-top: 1px solid var(--linie); }
.abr-paket-eintrag > button.listen-eintrag { width: 100%; border: 0; background: none; font: inherit; color: inherit; border-bottom: 0; }
.abr-paket-abb { display: flex; flex-direction: column; gap: 4px; padding: 2px 18px 12px 46px; font-size: 14px; }
.abr-abb-zeile { display: flex; align-items: center; gap: 8px; min-height: 34px; border-bottom: 1px dashed var(--linie); }
.abr-abb-zeile:last-child { border-bottom: 0; }
.abr-abb-zeile.zurueck { color: var(--text-3); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--text-3) 60%, transparent); }
.abr-ust-zeilen { display: flex; flex-direction: column; gap: 2px; padding: 6px 18px; font-size: 14px; color: var(--text-2); }
.abr-ust-zeilen > div { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.abr-honorar-zeile { align-items: center; }
.abr-honorar-zeile .klickbar { cursor: pointer; }
.abr-leistungen-kopf { align-items: flex-start; gap: 12px; }
@media (max-width: 560px) {
  .abr-paket-abb { padding-left: 14px; padding-right: 14px; }
  .abr-leistungen-kopf { flex-direction: column; align-items: stretch; }
  .abr-chip-honorar { max-width: 100%; }
}
.abr-chip-honorar { white-space: normal; text-align: left; line-height: 1.25; }
.abr-chip-honorar .kuerzen { white-space: normal; overflow: visible; text-overflow: clip; }
.abr-chip-honorar b { white-space: nowrap; margin-left: auto; padding-left: 4px; }
