/*
 * Zahlungen (Eddy, 2026-11-13, Klick-Entwurf „Bereich A + Zahlungsfenster“): Seite Zahlungen (Insel admin-payments) und das Zahlungsfenster
 * (Baustein PaymentWindow, auf jeder Seite, die eine Zahlung öffnet). Eigene Datei statt admin.css; Klassen hhs-zp-*.
 * Abstände nach „Das Design muss atmen“: Gruppen 16–20 px, Knöpfe nebeneinander mind. 8 px, Karten innen mind. 16 px.
 */

/* ---------- Seite ---------- */
.hhs-inhalt:has(.hhs-zp-seite) > .hhs-aktionsleiste { display: none; } /* der Schiefer-Kopf trägt den Titel */
.hhs-zp-seite { display: grid; gap: 20px; }
.hhs-zp-seite > .hhs-dk { margin-bottom: 0; gap: 20px; padding: 26px 28px; }
.hhs-zp-titel { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-start; justify-content: space-between; }
.hhs-zp-titel h1 { margin: 0; font: 600 26px Montserrat, sans-serif; color: #fff; line-height: 1.2; }
.hhs-zp-titel p { margin: 4px 0 0; color: #f8eadc; opacity: .82; font-size: 14px; }
.hhs-zp-kopfakt { display: flex; flex-wrap: wrap; gap: 10px; }
.hhs-zp-kopfakt .kurz { display: none; }
.hhs-dk .hhs-btn.hhs-zp-hell { display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 18px; border: 0; border-radius: 999px; background: #fff; color: var(--schiefer); font: 600 14px Heebo, sans-serif; white-space: nowrap; box-shadow: none; cursor: pointer; }
.hhs-dk .hhs-btn.hhs-zp-hell.ol { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); }
.hhs-dk .hhs-btn.hhs-zp-hell:hover { filter: brightness(1.06); }
.hhs-dk .hhs-btn.hhs-zp-hell.ol:hover { background: rgba(255,255,255,.1); }
.hhs-zp-hell .hhs-sync-badge { background: #fff; color: var(--schiefer); }
.hhs-zp-ampel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hhs-zp-ampel .hhs-mk { padding: 14px 16px; gap: 3px; }
.hhs-zp-ampel .hhs-mk b { font-size: 22px; }
.hhs-zp-ampel .hhs-mk:hover { transform: none; }
.hhs-zp-head .hhs-dk-reiter a { white-space: nowrap; }

/* Zu tun: eine Karte, Gruppen mit Überschrift, Zeilen in Spalten wie die Admin-Listen */
.hhs-zp-karte { background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 14px 34px -26px rgba(54,48,44,.35); }
.hhs-zp-karte { --lv-pad: 22px; --lv-linie: #f1e6da; --lv-kopf: #fcf8f3; }
.hhs-zp-karte > .hhs-li-kopfzeile { margin: 0; border-radius: 0; border-top: 0; }
@media (max-width: 640px) { .hhs-zp-karte { --lv-pad: 16px; } }
.hhs-zp-gruppe { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 22px 8px; border-top: 1px solid #f1e6da; background: #fcf8f3; font: 600 12px Montserrat, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #6b655f; }
.hhs-zp-karte > .hhs-zp-gruppe:first-child { border-top: 0; }
.hhs-zp-zahl { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 99px; background: #f6efe7; font: 600 12px Heebo, sans-serif; color: var(--schiefer); letter-spacing: 0; box-sizing: border-box; }
.hhs-zp-zahl.rot { background: #fbe2dc; color: #b3402e; }
.hhs-zp-gruppe.hhs-zp-ok { justify-content: flex-start; gap: 8px; padding: 16px 22px; text-transform: none; letter-spacing: 0; font: 500 13.5px Montserrat, sans-serif; color: #2f7d55; background: #fff; }
.hhs-zp-row { display: grid; grid-template-columns: 24px minmax(0, 1.5fr) 120px 210px 300px; gap: 16px; align-items: center; padding: 16px 22px; border-top: 1px solid #f1e6da; cursor: pointer; }
.hhs-zp-row:hover { background: #fcf8f3; }
.hhs-zp-row.sel { background: #f3f5f9; }
.hhs-zp-row:focus { outline: none; }
.hhs-zp-row:focus-visible { outline: 2px solid var(--schiefer); outline-offset: -2px; }
.hhs-zp-wer { min-width: 0; }
.hhs-zp-wer b { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--espresso); }
.hhs-zp-wer small, .hhs-zp-wann small { display: block; margin-top: 3px; color: #6b655f; font-size: 13px; line-height: 1.45; }
.hhs-zp-betrag { font: 600 16px Montserrat, sans-serif; color: var(--espresso); white-space: nowrap; }
.hhs-zp-wann { font-size: 15px; color: var(--espresso); }
.hhs-zp-wann.rot { color: #b3402e; }
.hhs-zp-wann.rot small { color: #6b655f; }
.hhs-zp-akt2 { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.hhs-zp-bank { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; margin: 14px 22px; padding: 16px 20px; border-radius: 20px; background: #e8edf4; }
.hhs-zp-bank-tx { flex: 1 1 260px; min-width: 0; }
.hhs-zp-bank-tx b { display: block; font-size: 15px; color: var(--espresso); }
.hhs-zp-bank-tx small { display: block; margin-top: 3px; color: #4a5068; font-size: 13px; line-height: 1.5; }
.hhs-zp-bank .hhs-zp-ic { width: 44px; height: 44px; border-radius: 14px; }

/* ---------- Knöpfe, Chips ---------- */
.hhs-zp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border: 1.5px solid var(--schiefer); border-radius: 12px; background: var(--schiefer); color: #fff; font: 600 14px Heebo, sans-serif; white-space: nowrap; text-decoration: none; cursor: pointer; box-sizing: border-box; }
.hhs-zp-btn:hover { filter: brightness(1.08); color: #fff; }
.hhs-zp-btn.ol { background: #fff; color: var(--schiefer); border-color: #d9cbbd; }
.hhs-zp-btn.ol:hover { border-color: #8fa3be; color: var(--schiefer); filter: none; }
.hhs-zp-btn.gruen { background: #2f7d55; border-color: #2f7d55; }
.hhs-zp-btn.rot { background: #8c3529; border-color: #8c3529; }
.hhs-zp-btn.klein { height: 36px; padding: 0 14px; border-radius: 99px; font: 500 13px Heebo, sans-serif; }
.hhs-zp-btn[disabled] { opacity: .6; cursor: default; filter: none; }
.hhs-zp-btn.laedt svg { animation: hhs-zp-dreh .9s linear infinite; }
@keyframes hhs-zp-dreh { to { transform: rotate(360deg); } }
.hhs-zp-btn:focus, .hhs-zp-dots:focus, .hhs-zp-x:focus, .hhs-zp-liste button:focus, .hhs-zp-seg button:focus, .hhs-zp-treffer:focus { outline: none; }
.hhs-zp-btn:focus-visible, .hhs-zp-dots:focus-visible, .hhs-zp-x:focus-visible, .hhs-zp-liste button:focus-visible, .hhs-zp-seg button:focus-visible { outline: 2px solid var(--schiefer); outline-offset: 2px; }
.hhs-zp-dots { display: inline-grid; place-items: center; width: 36px; height: 34px; padding: 0; border: 0; border-radius: 10px; background: none; color: var(--schiefer); cursor: pointer; }
.hhs-zp-dots:hover { background: #f3ede6; }
.hhs-zp-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 99px; font: 600 12px Heebo, sans-serif; vertical-align: middle; white-space: nowrap; background: #f1ebe4; color: #6b655f; }
.hhs-zp-chip.rot { background: #fbe2dc; color: #b3402e; }
.hhs-zp-chip.ocker { background: #fbead3; color: #a35a12; }
.hhs-zp-chip.gruen { background: #e3f1e8; color: #2f7d55; }
.hhs-zp-ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: #fff; color: var(--schiefer); }

/* ---------- Fenster ---------- */
body.hhs-zp-offen { overflow: hidden; }
.hhs-zp-dlg { width: min(1100px, calc(100vw - 48px)); max-width: none; max-height: calc(100vh - 48px); margin: auto; padding: 0; border: 0; border-radius: 24px; background: #fff; color: var(--espresso); box-shadow: 0 30px 70px -30px rgba(0,0,0,.55); overflow: hidden; }
.hhs-zp-dlg.klein { width: min(760px, calc(100vw - 48px)); }
.hhs-zp-dlg::backdrop { background: rgba(40,38,40,.5); }
.hhs-zp-fenster { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; max-height: calc(100vh - 48px); }
.hhs-zp-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px 26px 18px; }
.hhs-zp-kopf h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; font: 600 20px Montserrat, sans-serif; color: var(--espresso); }
.hhs-zp-kopf p { margin: 4px 0 0; color: #6b655f; font-size: 13.5px; }
.hhs-zp-kopfr { display: flex; align-items: center; gap: 10px; flex: none; }
.hhs-zp-oben { display: flex; align-items: center; gap: 10px; }
.hhs-zp-x { display: grid; place-items: center; flex: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 12px; background: #f6efe7; color: var(--schiefer); cursor: pointer; }
.hhs-zp-x:hover { background: #efe5da; }
.hhs-zp-body { display: grid; gap: 18px; align-content: start; overflow: auto; margin-right: 6px; padding: 0 20px 22px 26px; }
.hhs-zp-top { display: grid; }
.hhs-zp-2 { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.hhs-zp-links { display: grid; gap: 18px; min-width: 0; }
.hhs-zp-box { display: grid; gap: 12px; padding: 18px 20px; border-radius: 18px; background: #fbf4ec; min-width: 0; }
.hhs-zp-box h3 { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0; font: 600 12px Montserrat, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #6b655f; }
.hhs-zp-h3r { font: 500 12.5px Montserrat, sans-serif; letter-spacing: 0; text-transform: none; color: #6b655f; }
.hhs-zp-note { display: block; margin-top: -4px; color: #6b655f; font-size: 13px; }
.hhs-zp-verlauf { position: sticky; top: 0; }
.hhs-zp-gross { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font: 600 30px Montserrat, sans-serif; color: var(--espresso); }
.hhs-zp-gross small { font: 500 14px Montserrat, sans-serif; color: #6b655f; }
.hhs-zp-stand.ok .hhs-zp-gross { align-items: center; color: #2f7d55; }
.hhs-zp-bar { height: 10px; border-radius: 99px; background: #eadbcc; overflow: hidden; }
.hhs-zp-bar i { display: block; height: 100%; border-radius: 99px; background: #2f7d55; }
.hhs-zp-werte { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hhs-zp-werte > div { min-width: 0; padding: 10px 12px; border-radius: 12px; background: #fff; }
.hhs-zp-werte small { display: block; color: #6b655f; font-size: 12px; }
.hhs-zp-werte b { font: 600 15px Montserrat, sans-serif; overflow-wrap: anywhere; }
.hhs-zp-werte b.rot { color: #b3402e; }
.hhs-zp-werte b.ocker { color: #a35a12; }
.hhs-zp-reihe { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hhs-zp-zeile { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid #f1e6da; }
.hhs-zp-box h3 + .hhs-zp-zeile, .hhs-zp-box .hhs-zp-note + .hhs-zp-zeile { border-top: 0; }
.hhs-zp-zeile b { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14.5px; }
.hhs-zp-zeile small { color: #6b655f; font-size: 13px; }
.hhs-zp-fehlt .hhs-zp-ic { background: #fbead3; color: #a35a12; }
.hhs-zp-raten { display: grid; }
.hhs-zp-rate { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto 36px; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid #f1e6da; }
.hhs-zp-rate:first-child { border-top: 0; }
.hhs-zp-rate b { display: block; font-size: 14.5px; }
.hhs-zp-rate small { color: #6b655f; font-size: 13px; }
.hhs-zp-punkt { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #8fa3be; box-sizing: border-box; }
.hhs-zp-rate.paid .hhs-zp-punkt { background: #2f7d55; border-color: #2f7d55; }
.hhs-zp-rate.late .hhs-zp-punkt { background: #b3402e; border-color: #b3402e; }
.hhs-zp-rate.part .hhs-zp-punkt { background: linear-gradient(90deg, #c48a3a 50%, #fff 50%); border-color: #c48a3a; }
.hhs-zp-rate.edit { grid-template-columns: minmax(0, 1fr) 190px auto; margin: 6px 0; padding: 12px 14px; border: 1.5px solid #eadccd; border-radius: 14px; background: #fff; }
.hhs-zp-rate.edit .hhs-zp-hinweis { grid-column: 1 / -1; }
.hhs-zp-mm { position: relative; justify-self: end; }
.hhs-zp-verlaufliste { display: grid; margin: 0; padding: 0; list-style: none; }
.hhs-zp-verlaufliste li { position: relative; display: grid; grid-template-columns: 18px 1fr; gap: 12px; padding: 0 0 14px; }
.hhs-zp-verlaufliste li::before { content: ""; position: absolute; left: 8px; top: 14px; bottom: 0; width: 2px; background: #eadbcc; }
.hhs-zp-verlaufliste li:last-child::before { display: none; }
.hhs-zp-verlaufliste i { z-index: 1; width: 12px; height: 12px; margin-top: 4px; border: 2px solid #8fa3be; border-radius: 50%; background: #fff; box-sizing: border-box; }
.hhs-zp-verlaufliste li.ok i { background: #2f7d55; border-color: #2f7d55; }
.hhs-zp-verlaufliste li.neu i { box-shadow: 0 0 0 4px #e3f1e8; }
.hhs-zp-verlaufliste b { display: block; font-size: 14px; font-weight: 500; }
.hhs-zp-verlaufliste li.neu b { font-weight: 600; }
.hhs-zp-verlaufliste small { color: #6b655f; font-size: 12.5px; }
.hhs-zp-fuss { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding: 16px 26px; border-top: 1px solid #f1e6da; background: #fcf8f3; }
.hhs-zp-menue { position: relative; }
.hhs-zp-liste { position: absolute; left: 0; bottom: 52px; z-index: 5; display: grid; min-width: 260px; padding: 6px; border-radius: 14px; background: #fff; box-shadow: 0 18px 40px -16px rgba(54,48,44,.45); }
.hhs-zp-liste.unten { left: auto; right: 0; bottom: auto; top: 38px; min-width: 200px; }
.hhs-zp-liste button { display: flex; align-items: center; gap: 12px; width: 100%; height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--espresso); font: 500 14px Montserrat, sans-serif; text-align: left; cursor: pointer; }
.hhs-zp-liste button:hover { background: #f6efe7; }
.hhs-zp-liste button.rot { color: #b3402e; }
.hhs-zp-liste hr { margin: 4px 6px; border: 0; border-top: 1px solid #f1e6da; }

/* Aktionen klappen im Fenster auf */
.hhs-zp-panel { display: grid; gap: 16px; padding: 18px 20px; border: 1.5px solid #c9d3e1; border-radius: 18px; background: #fff; box-shadow: 0 14px 30px -24px rgba(63,68,88,.6); }
.hhs-zp-panel.innen { box-shadow: none; border-color: #eadccd; }
.hhs-zp-panel.rot { border-color: #e7b9b0; }
.hhs-zp-ph { display: grid; gap: 4px; }
.hhs-zp-ph > .hhs-zp-chip { justify-self: start; margin-bottom: 6px; }
.hhs-zp-ph b { display: flex; align-items: center; gap: 8px; font: 600 16px Montserrat, sans-serif; }
.hhs-zp-ph small { color: #6b655f; font-size: 13.5px; line-height: 1.5; }
.hhs-zp-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hhs-zp-form.zwei { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hhs-zp-feld { display: grid; gap: 6px; min-width: 0; font: 500 12.5px Montserrat, sans-serif; color: #6b655f; }
.hhs-zp-feld.voll { grid-column: 1 / -1; }
.hhs-zp-feld input, .hhs-zp-feld select, .hhs-zp-suchfeld input { box-sizing: border-box; width: 100%; height: 44px; padding: 0 12px; border: 1.5px solid #e0d4c7; border-radius: 12px; background: #fff; color: var(--espresso); font: 500 14.5px Montserrat, sans-serif; outline: 0; box-shadow: none; }
.hhs-zp-feld input:hover, .hhs-zp-feld select:hover { border-color: #8fa3be; }
.hhs-zp-feld input:focus, .hhs-zp-feld select:focus { border-color: var(--schiefer); box-shadow: 0 0 0 3px rgba(143,163,190,.35); outline: 0; }
.hhs-zp-feld textarea { box-sizing: border-box; width: 100%; min-height: 64px; padding: 10px 12px; border: 1.5px solid #e0d4c7; border-radius: 12px; background: #fff; color: var(--espresso); font: 500 14.5px/1.45 Montserrat, sans-serif; resize: vertical; outline: 0; box-shadow: none; } /* Anschrift beim Aufteilen */
.hhs-zp-feld textarea:hover { border-color: #8fa3be; }
.hhs-zp-feld textarea:focus { border-color: var(--schiefer); box-shadow: 0 0 0 3px rgba(143,163,190,.35); }
.hhs-zp-in { position: relative; display: block; }
.hhs-zp-in i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-style: normal; color: #6b655f; }
.hhs-zp-feld select { min-height: 44px; padding: 0 40px 0 12px; background-color: #fff; cursor: pointer; } /* Pfeil: allgemeine Regel der Auswahlfelder (admin.css, bereich.css) */
.hhs-zp-unten { align-self: end; }
.hhs-zp-hinweis { grid-column: 1 / -1; padding: 12px 14px; border-radius: 12px; background: #e8edf4; color: var(--schiefer); font-size: 13.5px; line-height: 1.5; }
.hhs-zp-hinweis.warn { background: #fbead3; color: #7a4510; }
.hhs-zp-hinweis.ok { background: #e3f1e8; color: #235e40; }
.hhs-zp-switch { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; color: var(--espresso); font: 600 14px Montserrat, sans-serif; cursor: pointer; }
.hhs-zp-switch input { position: absolute; width: 0; height: 0; opacity: 0; }
.hhs-zp-switch i { position: relative; flex: none; width: 44px; height: 26px; border-radius: 99px; background: #d9cfc4; transition: background .15s; }
.hhs-zp-switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .15s; }
.hhs-zp-switch input:checked + i { background: #2f7d55; }
.hhs-zp-switch input:checked + i::after { transform: translateX(18px); }
.hhs-zp-switch input:focus-visible + i { box-shadow: 0 0 0 3px rgba(143,163,190,.5); }
.hhs-zp-akt { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
.hhs-zp-mail { display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; background: #fbf4ec; }
.hhs-zp-mail small { margin-top: 6px; color: #6b655f; font-size: 12px; }
.hhs-zp-mail small:first-child { margin-top: 0; }
.hhs-zp-mail span { font-size: 13.5px; line-height: 1.5; }
.hhs-zp-fund { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; background: #e3f1e8; }
.hhs-zp-fund .hhs-zp-ic { color: #2f7d55; }
.hhs-zp-fund > span:nth-child(2) { flex: 1 1 220px; min-width: 0; }
.hhs-zp-fund b { display: block; font-size: 14.5px; }
.hhs-zp-fund small { color: #235e40; font-size: 13px; }
.hhs-zp-feld-knopf { display: flex; align-items: flex-end; } /* „Suchen“ neben der Rechnungsnummer (Aus Lexware ersetzen), unten bündig mit dem Feld */
.hhs-zp-oder { color: #8f8780; font-size: 12.5px; text-align: center; text-transform: uppercase; letter-spacing: .08em; }
.hhs-zp-drop { position: relative; display: grid; justify-items: center; gap: 6px; padding: 22px; border: 2px dashed #d9cbbd; border-radius: 16px; background: #fcf8f3; color: var(--schiefer); text-align: center; cursor: pointer; }
.hhs-zp-drop:hover, .hhs-zp-drop:focus-within { border-color: #8fa3be; }
.hhs-zp-drop.gewaehlt { border-style: solid; border-color: #2f7d55; background: #f3faf5; }
.hhs-zp-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.hhs-zp-drop b { color: var(--espresso); }
.hhs-zp-drop small { color: #6b655f; }
.hhs-zp-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; background: #f3ede6; justify-self: start; }
.hhs-zp-seg button { height: 38px; padding: 0 14px; border: 0; border-radius: 10px; background: none; color: var(--schiefer); font: 600 14px Heebo, sans-serif; cursor: pointer; }
.hhs-zp-seg button.on { background: var(--schiefer); color: #fff; }
.hhs-zp-vorschau { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.hhs-zp-vorschau > div { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: #fbf4ec; }
.hhs-zp-vorschau span, .hhs-zp-vorschau small { color: #6b655f; font-size: 12.5px; }
.hhs-zp-vorschau b { font: 600 17px Montserrat, sans-serif; }

/* Suche „Zahlung eintragen“ / „Andere Zahlung“ */
.hhs-zp-suchfeld { display: flex; align-items: center; gap: 10px; height: 48px; margin-top: 4px; padding: 0 14px; border: 1.5px solid #e0d4c7; border-radius: 14px; color: #6b655f; }
.hhs-zp-suchfeld:focus-within { border-color: var(--schiefer); box-shadow: 0 0 0 3px rgba(143,163,190,.35); }
.hhs-zp-suchfeld input { flex: 1; min-width: 0; height: auto; padding: 0; border: 0; box-shadow: none; background: none; font-size: 15px; }
.hhs-zp-suchfeld input:focus { box-shadow: none; }
.hhs-zp-treffer-liste { display: grid; gap: 8px; }
.hhs-zp-treffer { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: center; padding: 14px 16px; border: 1.5px solid transparent; border-radius: 14px; background: #fbf4ec; color: var(--espresso); font-family: inherit; text-align: left; cursor: pointer; }
.hhs-zp-treffer:hover, .hhs-zp-treffer:focus-visible { border-color: #8fa3be; outline: 0; }
.hhs-zp-treffer > span:first-child { flex: 1 1 260px; min-width: 0; }
.hhs-zp-treffer b { display: block; font-size: 15px; }
.hhs-zp-treffer small { color: #6b655f; font-size: 13px; }
.hhs-zp-tr { display: flex; align-items: center; gap: 8px; font: 600 14px Montserrat, sans-serif; white-space: nowrap; }
.hhs-zp-leer { padding: 20px 4px; color: #6b655f; }

/* ---------- schmaler ---------- */
@media (max-width: 1100px) {
	.hhs-zp-ampel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hhs-zp-row { grid-template-columns: 24px minmax(0, 1fr) auto; }
	.hhs-zp-row .hhs-zp-wann { grid-column: 2; }
	.hhs-zp-row .hhs-zp-akt2 { grid-column: 2 / -1; justify-content: flex-start; flex-wrap: wrap; }
}
@media (max-width: 900px) {
	.hhs-zp-2 { grid-template-columns: 1fr; }
	.hhs-zp-verlauf { position: static; }
}
@media (max-width: 640px) {
	.hhs-zp-seite > .hhs-dk { padding: 22px 18px; gap: 16px; }
	.hhs-zp-titel h1 { font-size: 23px; }
	.hhs-zp-kopfakt { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
	.hhs-dk .hhs-btn.hhs-zp-hell { flex-direction: column; justify-content: center; gap: 4px; height: auto; min-height: 0; padding: 10px 6px; border-radius: 14px; font-size: 12.5px; }
	.hhs-zp-kopfakt .lang { display: none; }
	.hhs-zp-kopfakt .kurz { display: block; }
	.hhs-zp-ampel .hhs-mk { padding: 12px 14px; }
	.hhs-zp-ampel .hhs-mk b { font-size: 19px; }
	.hhs-zp-head .hhs-dk-reiter { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; }
	.hhs-zp-row { padding: 14px 16px; gap: 10px 12px; }
	.hhs-zp-row .hhs-zp-betrag { grid-column: 2; }
	.hhs-zp-row .hhs-zp-akt2 .hhs-zp-btn { flex: 1 1 auto; }
	.hhs-zp-gruppe { padding-left: 16px; padding-right: 16px; }
	.hhs-zp-bank { margin: 12px 16px; }
	.hhs-zp-bank .hhs-zp-btn { flex: 1 1 100%; }
	.hhs-zp-dlg, .hhs-zp-dlg.klein { width: 100%; max-height: 94vh; margin: auto 0 0; border-radius: 20px 20px 0 0; }
	.hhs-zp-fenster { max-height: 94vh; }
	.hhs-zp-kopf { padding: 18px 16px 14px; }
	.hhs-zp-body { padding: 0 12px 18px 16px; margin-right: 2px; }
	.hhs-zp-form, .hhs-zp-form.zwei, .hhs-zp-werte { grid-template-columns: 1fr; }
	.hhs-zp-akt .hhs-zp-btn { flex: 1 1 100%; }
	.hhs-zp-rate.edit { grid-template-columns: 1fr; }
	.hhs-zp-zeile { grid-template-columns: 40px minmax(0, 1fr) auto; }
	.hhs-zp-zeile > .hhs-zp-reihe { grid-column: 1 / -1; }
	.hhs-zp-zeile > .hhs-zp-reihe .hhs-zp-btn { flex: 1 1 auto; }
	.hhs-zp-fuss { flex-direction: column-reverse; align-items: stretch; padding: 14px 16px; }
	.hhs-zp-fuss .hhs-zp-reihe { display: grid; grid-template-columns: 1fr; }
	.hhs-zp-fuss .hhs-zp-btn, .hhs-zp-menue, .hhs-zp-menue > .hhs-zp-btn { width: 100%; }
	.hhs-zp-liste { left: 0; right: 0; }
}

/* Hinweis in „Zu tun“ auf den Reiter „Bank“ (Eddy, 2026-11-13): eine ruhige Zeile statt aller Eingänge über der Liste */
.hhs-zp-bankhinweis { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; width: calc(100% - 44px); margin: 16px 22px 4px; padding: 14px 18px; border: 0; border-radius: 18px; background: #e8edf4; color: #3f4458; font: inherit; text-align: left; cursor: pointer; box-sizing: border-box; }
.hhs-zp-bankhinweis:hover { background: #dfe6f0; }
.hhs-zp-bankhinweis:focus:not(:focus-visible) { outline: none; }
.hhs-zp-bankhinweis:focus-visible { outline: 2px solid #3f4458; outline-offset: 2px; }
.hhs-zp-bankhinweis b { display: block; font-size: 15px; }
.hhs-zp-bankhinweis small { display: block; font-size: 13px; color: #4a5068; margin-top: 2px; }
@media (max-width: 640px) { .hhs-zp-bankhinweis { width: calc(100% - 32px); margin: 12px 16px 4px; } }
.hhs-zp-bank.erledigt { background: #f6f2ec; }
.hhs-zp-bank.erledigt .hhs-zp-ic { color: #2f7d55; }

/* Schon als bezahlt erfasst: zugeklappt unter „Zuletzt erledigt“ */
.hhs-zp-schon { margin-top: 20px; border-top: 1px solid rgba(63,68,88,.1); padding-top: 16px; }
.hhs-zp-schon > summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; font-weight: 600; color: #3f4458; padding: 8px 4px; border-radius: 12px; }
.hhs-zp-schon > summary::-webkit-details-marker { display: none; }
.hhs-zp-schon > summary:focus-visible { outline: 2px solid #3f4458; outline-offset: 2px; }
.hhs-zp-schon > summary svg { color: #2f7d4f; flex: none; }
.hhs-zp-schon[open] > summary { margin-bottom: 12px; }
/* ---------- Blatt von unten im Trainer-Hub (Klick-Entwurf, Eddy 2026-11-13): PaymentWindow/PaymentSearch mit `sheet`, bei jeder Breite ---------- */
.hhs-zp-dlg.blatt { --schiefer: #3f4458; --espresso: #36302c; width: min(560px, 100%); max-width: 560px; max-height: 92vh; margin: auto auto 0; border-radius: 24px 24px 0 0; font-family: Montserrat, "Helvetica Neue", Arial, sans-serif; }
.hhs-zp-dlg.blatt .hhs-zp-fenster { max-height: 92vh; grid-template-rows: auto auto minmax(0, 1fr) auto; } /* Griff, Kopf, Inhalt, Fuß */
.hhs-zp-griff { display: block; width: 40px; height: 4px; margin: 10px auto 0; border-radius: 99px; background: #d9cfc4; }
.hhs-zp-dlg.blatt .hhs-zp-kopf { padding: 12px 16px 14px; }
.hhs-zp-dlg.blatt .hhs-zp-kopf h2 { font-size: 17px; }
.hhs-zp-dlg.blatt .hhs-zp-body { padding: 4px 16px 18px; margin-right: 0; }
.hhs-zp-dlg.blatt .hhs-zp-2, .hhs-zp-dlg.blatt .hhs-zp-form, .hhs-zp-dlg.blatt .hhs-zp-form.zwei, .hhs-zp-dlg.blatt .hhs-zp-werte, .hhs-zp-dlg.blatt .hhs-zp-rate.edit { grid-template-columns: 1fr; }
.hhs-zp-dlg.blatt .hhs-zp-verlauf { position: static; }
.hhs-zp-dlg.blatt .hhs-zp-box { padding: 16px; }
.hhs-zp-dlg.blatt .hhs-zp-akt .hhs-zp-btn { flex: 1 1 100%; }
.hhs-zp-dlg.blatt .hhs-zp-fuss { display: flex; flex-direction: column-reverse; align-items: stretch; gap: 10px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px)); }
.hhs-zp-dlg.blatt .hhs-zp-fuss .hhs-zp-reihe { display: flex; flex-direction: column-reverse; gap: 10px; }
.hhs-zp-dlg.blatt .hhs-zp-fuss .hhs-zp-btn, .hhs-zp-dlg.blatt .hhs-zp-menue, .hhs-zp-dlg.blatt .hhs-zp-menue > .hhs-zp-btn { width: 100%; height: 48px; border-radius: 14px; font-size: 15px; }
.hhs-zp-dlg.blatt .hhs-zp-liste { left: 0; right: 0; }
.hhs-zp-dlg.blatt .screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
/* Bank-Eingang im Hub: Blatt mit Betrag, „Passt zu“ und Zuordnen / Andere Zahlung / Ignorieren */
.hhs-zp-dlg.blatt .hhs-zp-bank-blatt { display: grid; gap: 16px; }
.hhs-zp-passt { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: 14px; }
.hhs-zp-passt i { width: 10px; height: 10px; border-radius: 50%; background: #b3402e; }
.hhs-zp-passt small { display: block; color: #6b655f; font-size: 12.5px; }
.hhs-zp-dlg.blatt .hhs-zp-fuss .hhs-zp-paar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Rückfrage im Bank-Blatt des Hubs */
.hhs-zp-frage { background: #fbf4ec; }
.hhs-zp-frage p { margin: 0; line-height: 1.55; font-size: 14.5px; color: #36302c; }

/* Zeile mit mehreren Knöpfen (Entwurf in Lexware): Knöpfe unter dem Text */
.hhs-zp-zeile.stapel { grid-template-columns: 40px minmax(0, 1fr); align-items: start; }
.hhs-zp-zeile.stapel > .hhs-zp-reihe { grid-column: 2 / -1; }
.hhs-zp-zeile.stapel small { display: block; margin-top: 4px; line-height: 1.5; }
@media (max-width: 640px) { .hhs-zp-zeile.stapel > .hhs-zp-reihe { grid-column: 1 / -1; } }

/* Rechnung in Lexware gefunden: Zeile hellgrün, grüner Chip, Knopf „Übernehmen“ (Eddy, 2026-11-14) */
.hhs-zp-row.gefunden { background: #eef6f0; }
.hhs-zp-row.gefunden:hover { background: #e4f1e8; }
.hhs-zp-fund-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; background: #2f7d4f; color: #fff; font: 600 12.5px Heebo, sans-serif; white-space: nowrap; }

/* Mehrere Rechnungen je Zahlung und Kasten „Lexware“ (Eddy, 2026-11-15, Klick-Entwurf „Lexware im Zahlungsfenster“) */
.hhs-zp-rechts { display: grid; gap: 18px; align-content: start; min-width: 0; }
.hhs-zp-rechts .hhs-zp-verlauf { position: static; }
.hhs-zp-re { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid #eadccd; }
.hhs-zp-box h3 + .hhs-zp-re, .hhs-zp-box .hhs-zp-note + .hhs-zp-re { border-top: 0; padding-top: 2px; }
.hhs-zp-re > span:first-child { min-width: 0; flex: 1 1 220px; }
.hhs-zp-re b { display: block; font-size: 15px; }
.hhs-zp-re small { display: block; margin-top: 2px; color: #6b655f; font-size: 12.5px; line-height: 1.5; }
.hhs-zp-re-knoepfe, .hhs-zp-lx-knoepfe { gap: 8px; margin-top: 4px; }
.hhs-zp-hinweis svg { vertical-align: -2px; margin-right: 6px; }
.hhs-zp-lx-liste { display: grid; gap: 8px; }
.hhs-zp-lx-re { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: #fff; }
.hhs-zp-lx-re b { display: block; font-size: 14.5px; }
.hhs-zp-lx-re small { display: block; color: #6b655f; font-size: 12.5px; }
.hhs-zp-lx-ok, .hhs-zp-lx-warn { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; font-size: 13px; line-height: 1.5; }
.hhs-zp-lx-ok { background: #e3f0e8; color: #24563c; }
.hhs-zp-lx-warn { background: #f8ead3; color: #6e4a12; }
.hhs-zp-lx-ok svg, .hhs-zp-lx-warn svg { flex: none; margin-top: 2px; }
.hhs-zp-lx-note { margin-top: 0; line-height: 1.5; }
.hhs-zp-lx-suche { display: flex; gap: 8px; }
.hhs-zp-lx-suche input { flex: 1; min-width: 0; height: 40px; border: 1.5px solid #eadccd; border-radius: 10px; padding: 0 12px; font: 500 14px Montserrat, sans-serif; background: #fff; }
.hhs-zp-lx-suche input:focus-visible { outline: none; border-color: #8fa3be; box-shadow: 0 0 0 3px rgba(143, 163, 190, .25); }
.hhs-zp-lx-treffer { display: grid; gap: 8px; }
.hhs-zp-lx-treffer button { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid #eadccd; border-radius: 12px; background: #fff; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.hhs-zp-lx-treffer button:hover { border-color: #3f4458; }
.hhs-zp-lx-treffer button:focus-visible { outline: none; border-color: #3f4458; box-shadow: 0 0 0 3px rgba(143, 163, 190, .25); }
.hhs-zp-lx-treffer b { display: block; font-size: 14px; }
.hhs-zp-lx-treffer small { display: block; color: #6b655f; font-size: 12.5px; }
@media (max-width: 640px) {
	.hhs-zp-re > .hhs-zp-reihe { flex: 1 1 100%; }
	.hhs-zp-re-knoepfe .hhs-zp-btn, .hhs-zp-lx-knoepfe .hhs-zp-btn, .hhs-zp-re .hhs-zp-btn.klein { flex: 1 1 auto; justify-content: center; }
	.hhs-zp-lx-knoepfe { display: grid; grid-template-columns: 1fr; }
}

/* „Rechnung in Lexware erzeugen“ in der Karte Rechnung (Eddy, 16.11., Klick-Entwurf): An, Positionen, Schlusstext, Schalter Entwurf */
.hhs-zp-neu { display: grid; gap: 18px; }
.hhs-zp-wahl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hhs-zp-wahl label { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1.5px solid #e6d7c7; border-radius: 14px; background: #fff; cursor: pointer; }
.hhs-zp-wahl label:hover { border-color: #8fa3be; }
.hhs-zp-wahl label.on { border-color: var(--schiefer); box-shadow: 0 0 0 1px var(--schiefer); }
.hhs-zp-wahl input { position: absolute; width: 0; height: 0; opacity: 0; }
.hhs-zp-wahl i { flex: none; width: 20px; height: 20px; margin-top: 1px; border: 2px solid #b8aea4; border-radius: 50%; box-sizing: border-box; background: #fff; }
.hhs-zp-wahl label.on i { border: 6px solid var(--schiefer); }
.hhs-zp-wahl input:focus-visible + i { box-shadow: 0 0 0 3px rgba(143, 163, 190, .5); }
.hhs-zp-wahl b { display: block; font: 700 14px Montserrat, sans-serif; color: var(--espresso); }
.hhs-zp-wahl small { display: block; margin-top: 2px; font: 500 12.5px/1.45 Montserrat, sans-serif; color: #6b655f; }
.hhs-zp-pos { overflow-x: auto; padding: 4px 14px; border-radius: 14px; background: #fff; }
.hhs-zp-pos table { width: 100%; border-collapse: collapse; font: 500 13.5px Montserrat, sans-serif; color: var(--espresso); }
.hhs-zp-pos td { padding: 10px 6px; border-bottom: 1px solid #f0e6db; vertical-align: top; }
.hhs-zp-pos tfoot td { border-bottom: 0; }
.hhs-zp-pos .n { width: 20px; color: #6b655f; }
.hhs-zp-pos .r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hhs-zp-pos .d { margin-top: 4px; font-size: 12.5px; line-height: 1.45; color: #555; white-space: pre-line; }
.hhs-zp-schluss { margin: 0; padding: 12px 16px; border-radius: 14px; background: #fff; font: 500 13.5px/1.55 Montserrat, sans-serif; color: var(--espresso); white-space: pre-line; }
.hhs-zp-schalter { display: grid; gap: 6px; }
.hhs-zp-schalter > small { padding-left: 56px; font: 500 12.5px/1.45 Montserrat, sans-serif; color: #6b655f; }
.hhs-zp-entwurf b .hhs-zp-chip { margin-left: 6px; vertical-align: 1px; }
@media (max-width: 640px) {
	.hhs-zp-wahl { grid-template-columns: 1fr; }
	.hhs-zp-schalter > small { padding-left: 0; }
	.hhs-zp-pos { padding: 4px 8px; }
}

/* Lexware nur nach Bestätigung (Eddy, 2026-11-17): Satz mit Häkchen in Rückfragen, offene Lexware-Aufgaben, neuer Kontakt in der Vorschau */
.hhs-zp-lexfrage { grid-column: 1 / -1; display: grid; gap: 12px; padding: 14px 16px; border-radius: 14px; background: #fff; }
.hhs-zp-lexfrage > p { margin: 0; font: 500 13.5px/1.5 Montserrat, sans-serif; color: var(--espresso); }
.hhs-zp-lexaufgabe { display: grid; gap: 12px; }
.hhs-zp-lexaufgabe + .hhs-zp-lexaufgabe { margin-top: 4px; padding-top: 16px; border-top: 1px solid #f0e6db; }
.hhs-zp-kontakt { display: grid; gap: 2px; margin-top: 6px; font: 500 12.5px/1.45 Montserrat, sans-serif; color: #6b655f; }
