:root {
  --bg: #f4f4f8; --karte: #fff; --text: #1b1b22; --grau: #8a8a93; --linie: #ececf1;
  --kopf: #ff4d2e; --kopf-text: #fff; --ak: #ff4d2e;
  --bar: 64px;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); overflow-x: clip; }
body { font-family: -apple-system, "SF Pro Display", system-ui, sans-serif; font-size: 16px; line-height: 1.35; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
svg.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.zahl { font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

#app { max-width: 480px; margin: 0 auto; min-height: 100vh; position: relative; }
.seite { padding-bottom: calc(var(--bar) + var(--sab) + 110px); }

/* Kopfbereich */
.kopf { background: var(--kopf); color: var(--kopf-text); border-radius: 0 0 32px 32px; padding: calc(var(--sat) + 12px) 20px 28px; min-height: 300px; position: relative; }
.kopf.hoch { min-height: 340px; }
.kopfzeile { display: flex; justify-content: space-between; align-items: center; }
.ikn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: inherit; margin: 0 -8px; }
.kopf .mitte { text-align: center; }
.pill { display: inline-flex; align-items: center; gap: 4px; background: rgba(255,255,255,.22); color: var(--kopf-ak, #fff); border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 15px; min-height: 36px; }
.kopf.hell .pill { background: rgba(255,255,255,.55); }
.kopf .pill svg { width: 16px; height: 16px; stroke-width: 2.4; }
.gross { font-size: 44px; line-height: 1.1; margin-top: 10px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; word-break: break-word; }
.mittel { font-size: 34px; line-height: 1.1; margin-top: 8px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; word-break: break-word; }
.kopf .abstand { margin-top: 18px; }
.kopf .hinweis { margin-top: 14px; font-size: 15px; opacity: .85; font-weight: 600; }

.diagramm { margin-top: 14px; }
.diagramm svg { width: 100%; height: auto; display: block; }
.legende { margin-top: 6px; font-size: 14px; font-weight: 600; }
.legende div { display: flex; justify-content: space-between; padding: 2px 0; }
.legende .zahl { font-size: 15px; }
.legende .vj { opacity: .7; }

/* Helle Leiste und Karten */
.leiste { margin: 16px 16px 0; background: var(--karte); border-radius: 20px; padding: 14px 8px; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; box-shadow: 0 1px 2px rgba(20,20,40,.05); }
.leiste .titel { grid-column: 1 / -1; text-align: left; padding: 0 12px 8px; font-size: 13px; color: var(--grau); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.leiste small { display: block; color: var(--grau); font-size: 12px; font-weight: 600; }
.leiste .zahl { font-size: 17px; }
.pos { color: #1f8a3a; } .neg { color: #c4302b; }

.karte { margin: 12px 16px 0; background: var(--karte); border-radius: 20px; padding: 16px; box-shadow: 0 1px 2px rgba(20,20,40,.05); }
.karte.knopf { display: flex; align-items: center; gap: 12px; width: calc(100% - 32px); text-align: left; min-height: 56px; }
.karte h3 { margin: 0 0 4px; font-size: 16px; }
.karte p { margin: 0; color: var(--grau); font-size: 14px; }
.karte .sym { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #ffe9e0; color: #e8431c; flex: none; }
.karte .sym.warn { background: #fff1d6; color: #b27300; }
.chev { margin-left: auto; color: var(--grau); }

/* Liste */
.listenkopf { display: flex; align-items: center; gap: 10px; margin: 22px 20px 10px; font-size: 18px; font-weight: 800; }
.zaehler { background: var(--ak); color: #fff; border-radius: 999px; min-width: 28px; height: 28px; padding: 0 9px; display: inline-grid; place-items: center; font-size: 14px; font-weight: 800; }
.liste { margin: 0 16px; background: var(--karte); border-radius: 20px; box-shadow: 0 1px 2px rgba(20,20,40,.05); overflow: hidden; }
.zeile { display: flex; align-items: center; gap: 12px; padding: 12px 14px; width: 100%; text-align: left; min-height: 64px; border-bottom: 1px solid var(--linie); }
.zeile:last-child { border-bottom: 0; }
.zeile .sym { width: 44px; height: 44px; border-radius: 14px; background: var(--ak-hell, #ffe9e0); color: var(--ak); display: grid; place-items: center; flex: none; }
.zeile .mitte { flex: 1; min-width: 0; }
.zeile .name { font-weight: 700; display: flex; align-items: center; gap: 6px; }
.zeile .name span.t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zeile .sub { color: var(--grau); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zeile .rechts { text-align: right; flex: none; max-width: 48%; }
.zeile .betrag { font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.pillchen { display: inline-block; border-radius: 999px; padding: 2px 9px; font-size: 11px; font-weight: 700; margin-top: 3px; margin-left: 3px; white-space: nowrap; }
.p-bezahlt { background: #d9f3cc; color: #1f6a12; } .p-offen { background: #fdf0b8; color: #7a5b00; }
.p-bar { background: #dfeee6; color: #2f5d44; margin: 0; }
.p-beleg { background: #e8e8ee; color: #5c5c66; } .p-rc { background: #ffe0d4; color: #a8340f; margin: 0; }
.leer { padding: 32px 20px; text-align: center; color: var(--grau); }
.suche { padding: 10px 14px; border-bottom: 1px solid var(--linie); }
.suche input { width: 100%; border: 0; background: var(--bg); border-radius: 12px; padding: 12px 14px; min-height: 44px; outline: none; }

/* Untere Leiste */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; max-width: 480px; margin: 0 auto; background: #fff; border-top: 1px solid #e4e4ea; display: grid; grid-template-columns: repeat(5, 1fr); padding-bottom: var(--sab); z-index: 20; }
.tab { height: var(--bar); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #8a8a93; font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; text-decoration: none; }
.tab.aktiv { color: var(--tabfarbe); }

/* FAB */
.fab { position: fixed; right: max(16px, calc(50% - 240px + 16px)); bottom: calc(var(--bar) + var(--sab) + 16px); width: 64px; height: 64px; border-radius: 50%; background: #fff; border: 2px solid var(--ak); color: var(--ak); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(30,20,60,.18); z-index: 15; }
.fab svg { width: 30px; height: 30px; stroke-width: 2.4; }

/* Overlay-Menü */
.overlay { position: fixed; inset: 0; z-index: 40; background: rgba(255,255,255,.45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-end; padding: 20px 20px calc(var(--sab) + 24px); gap: 14px; }
.aktion { display: flex; align-items: center; gap: 12px; min-height: 56px; }
.aktion .txt { background: #fff; border-radius: 12px; padding: 10px 14px; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.aktion .rund { width: 56px; height: 56px; border-radius: 50%; background: var(--ak); color: #fff; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.zurueck { width: 56px; height: 56px; border-radius: 50%; background: #fff; border: 2px solid var(--ak); color: var(--ak); display: grid; place-items: center; }

.popover { position: absolute; z-index: 30; left: 50%; transform: translateX(-50%); top: calc(var(--sat) + 112px); background: #fff; color: var(--text); border-radius: 18px; padding: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.2); min-width: 160px; }
.popover button { display: block; width: 100%; padding: 12px 18px; min-height: 44px; text-align: center; font-weight: 700; border-radius: 12px; }
.popover button.an { background: var(--ak-hell, #ffe9e0); color: var(--ak); }

/* Toast */
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--bar) + var(--sab) + 92px); background: #1b1b22; color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 600; z-index: 60; max-width: calc(100% - 32px); text-align: center; box-shadow: 0 6px 20px rgba(0,0,0,.25); }

/* Formular */
.sheet { position: fixed; inset: 0; z-index: 50; background: var(--bg); overflow-y: auto; -webkit-overflow-scrolling: touch; animation: hoch .22s ease-out; }
@keyframes hoch { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-innen { max-width: 480px; margin: 0 auto; padding: calc(var(--sat) + 8px) 16px calc(var(--sab) + 100px); }
.sheet-kopf { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sheet-kopf h1 { margin: 0; font-size: 20px; }
.feld { margin-top: 16px; }
.feld > label, .feld > .lbl { display: block; font-size: 13px; font-weight: 700; color: var(--grau); margin: 0 4px 6px; text-transform: uppercase; letter-spacing: .04em; }
.eingabe { width: 100%; background: #fff; border: 1.5px solid transparent; border-radius: 14px; padding: 12px 14px; min-height: 48px; outline: none; }
.eingabe:focus { border-color: var(--ak); }
.betragfeld { text-align: center; font-size: 40px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; padding: 16px; }
.live { text-align: center; color: var(--grau); font-weight: 700; margin-top: 8px; font-variant-numeric: tabular-nums; }
.seg { display: flex; background: #e6e6ec; border-radius: 14px; padding: 3px; gap: 2px; }
.seg button { flex: 1; min-height: 44px; border-radius: 11px; font-weight: 700; font-size: 13px; padding: 4px 6px; line-height: 1.15; }
.seg button.an { background: #fff; color: var(--ak); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1.5px solid transparent; border-radius: 999px; padding: 8px 12px 8px 10px; min-height: 44px; font-weight: 600; font-size: 14px; }
.chip svg { width: 20px; height: 20px; }
.chip.an { border-color: var(--ak); color: var(--ak); background: var(--ak-hell, #ffe9e0); }
.zeile2 { display: flex; align-items: center; justify-content: space-between; background: #fff; border-radius: 14px; padding: 8px 14px; min-height: 52px; }
.zeile2 + .zeile2 { margin-top: 8px; }
.schalter { position: relative; width: 52px; height: 32px; border-radius: 16px; background: #d4d4dc; flex: none; transition: background .15s; }
.schalter::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.schalter.an { background: var(--ak); } .schalter.an::after { transform: translateX(20px); }
.speichern-leiste { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(var(--sab) + 12px); background: linear-gradient(to top, var(--bg) 70%, transparent); z-index: 55; max-width: 480px; margin: 0 auto; }
.gross-knopf { display: block; width: 100%; min-height: 54px; border-radius: 16px; background: #111; color: #fff; font-weight: 800; font-size: 17px; }
.rot-knopf { display: block; width: 100%; min-height: 48px; border-radius: 14px; color: #c4302b; background: #fdecec; font-weight: 700; margin-top: 24px; }
.hilfe { color: var(--grau); font-size: 13px; margin: 6px 4px 0; }

/* Einstellungen / Login */
.einst-kopf { padding: calc(var(--sat) + 8px) 16px 0; display: flex; align-items: center; gap: 4px; }
.einst-kopf h1 { margin: 0; font-size: 24px; }
.gruppe { margin: 20px 16px 0; }
.gruppe h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--grau); margin: 0 4px 8px; }
.gruppe .eingabe { margin-bottom: 8px; }
.login { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 24px; background: #ff4d2e; color: #fff; text-align: center; }
.login h1 { font-size: 34px; margin: 12px 0 4px; font-weight: 800; }
.login p { margin: 0 0 24px; opacity: .85; }
.login form { width: 100%; max-width: 320px; }
.login input { width: 100%; text-align: center; font-size: 30px; letter-spacing: .4em; padding: 14px; border-radius: 16px; border: 0; background: rgba(255,255,255,.95); color: #4a1606; font-weight: 800; outline: none; }
.login button.gross-knopf { margin-top: 14px; background: #4a1606; }
.login .fehler { color: #ffd6d6; min-height: 22px; margin: 12px 0 0; font-weight: 600; }
.login img { width: 84px; height: 84px; border-radius: 22px; }

.zeile .name { display: flex; } .zeile .sub { display: block; }
.zeile .rechts { display: flex; flex-direction: column; align-items: flex-end; }
.zeile .pills { display: flex; flex-direction: column; align-items: flex-end; }
.zeile .pillchen { margin-left: 0; }

/* Belege */
.klammer { display: inline-flex; color: var(--grau); flex: none; }
.klammer svg { width: 15px; height: 15px; }
.popover.links { left: 12px; transform: none; top: calc(var(--sat) + 60px); min-width: 210px; }
.popover.links button { text-align: left; display: flex; align-items: center; gap: 10px; }
.popover.links svg { width: 20px; height: 20px; }
.overlay.oben { z-index: 65; }
.belegvorschau { display: block; background: #fff; border-radius: 14px; padding: 8px; text-align: center; text-decoration: none; color: inherit; }
.belegvorschau img { height: 120px; max-width: 100%; object-fit: contain; border-radius: 8px; display: block; margin: 0 auto; }
.pdfsym { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 72px; color: var(--ak); font-size: 14px; }
.pdfsym svg { width: 36px; height: 36px; }
.pdfsym b { color: var(--text); word-break: break-all; text-align: left; }
.pdfsym.gross { flex-direction: column; gap: 4px; min-height: 0; }
.band { margin-top: 8px; background: #e4eefb; color: #1f3d6b; border-radius: 12px; padding: 10px 12px; font-size: 14px; font-weight: 600; }
.band.gelb { background: #fff1d6; color: #7a5200; }
.band-knopf { display: inline-block; margin-top: 6px; background: #fff; border-radius: 999px; padding: 6px 12px; font-weight: 700; color: #7a5200; }
.testhinweis { margin-top: 6px; font-size: 12px; color: var(--grau); text-align: center; }
.knopf-hell { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; border-radius: 14px; background: #fff; color: var(--ak); font-weight: 700; border: 1.5px dashed var(--ak); }
.knopf-hell svg { width: 20px; height: 20px; }

.lader { position: fixed; inset: 0; z-index: 70; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.lader-bild { width: 200px; height: 240px; background: #fff; border-radius: 16px; display: grid; place-items: center; overflow: hidden; box-shadow: 0 6px 24px rgba(0,0,0,.12); color: var(--ak); }
.lader-bild img { width: 100%; height: 100%; object-fit: contain; }
.lader h2 { margin: 24px 0 4px; font-size: 20px; }
.lader p { margin: 0; color: var(--grau); }
.balken { width: 220px; height: 6px; background: #e0e0e8; border-radius: 3px; margin-top: 22px; overflow: hidden; }
.balken i { display: block; height: 100%; width: 40%; background: var(--ak); border-radius: 3px; animation: lauf 1.1s ease-in-out infinite; }
@keyframes lauf { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

.kamera { position: fixed; inset: 0; z-index: 80; background: #111; }
.kamera video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rahmen { position: absolute; inset: calc(var(--sat) + 40px) 7% 150px; pointer-events: none; }
.rahmen i { position: absolute; width: 36px; height: 36px; border: 0 solid rgba(255,255,255,.9); }
.rahmen .e1 { top: 0; left: 0; border-top-width: 4px; border-left-width: 4px; border-top-left-radius: 12px; }
.rahmen .e2 { top: 0; right: 0; border-top-width: 4px; border-right-width: 4px; border-top-right-radius: 12px; }
.rahmen .e3 { bottom: 0; left: 0; border-bottom-width: 4px; border-left-width: 4px; border-bottom-left-radius: 12px; }
.rahmen .e4 { bottom: 0; right: 0; border-bottom-width: 4px; border-right-width: 4px; border-bottom-right-radius: 12px; }
.kam-leiste { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 28px calc(var(--sab) + 28px); display: flex; align-items: center; justify-content: space-between; background: linear-gradient(to top, rgba(0,0,0,.6), transparent); }
.kam-knopf { width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.2); color: #fff; display: grid; place-items: center; }
.ausloeser { width: 76px; height: 76px; border-radius: 50%; background: #fff; border: 5px solid rgba(255,255,255,.5); background-clip: padding-box; }
.ausloeser:active { transform: scale(.94); }
.kamera.ersatz { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 28px; color: #fff; text-align: center; }
.kamera.ersatz p { margin: 0; max-width: 320px; }
.kamera.ersatz .gross-knopf { max-width: 320px; display: grid; place-items: center; }
.gross-knopf.hell { background: #fff; color: #111; }
.textknopf { color: #fff; opacity: .8; padding: 12px; font-weight: 700; }

.belegraster { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 16px; }
.belegkarte { background: #fff; border-radius: 16px; overflow: hidden; text-align: left; box-shadow: 0 1px 2px rgba(20,20,40,.05); display: flex; flex-direction: column; }
.bk-bild { height: 130px; background: #ececf1; display: grid; place-items: center; overflow: hidden; }
.bk-bild img { width: 100%; height: 100%; object-fit: cover; }
.bk-text { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bk-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-text small { color: var(--grau); }

/* Navigation auf Unterseiten */
.einst-kopf { position: sticky; top: 0; z-index: 12; background: var(--bg); padding-bottom: 8px; }
.pop-zu { position: absolute; top: 4px; right: 4px; width: 36px !important; min-height: 36px !important; padding: 0 !important; display: grid !important; place-items: center; color: var(--grau); }
.popover.links { padding-top: 40px; }
.lader-zu { position: absolute; top: calc(var(--sat) + 8px); right: 12px; }
.belegvorschau { width: 100%; }
.voll { position: fixed; inset: 0; z-index: 75; background: #111; display: flex; flex-direction: column; }
.voll-kopf { display: flex; align-items: center; gap: 8px; padding: calc(var(--sat) + 8px) 12px 8px; color: #fff; }
.voll-kopf span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.voll-neu { color: #fff; opacity: .8; font-weight: 700; padding: 10px; text-decoration: none; }
.voll iframe { flex: 1; border: 0; background: #fff; width: 100%; }
.voll-bild { flex: 1; overflow: auto; display: grid; place-items: center; padding-bottom: var(--sab); }
.voll-bild img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Rechnungen (Phase 3) */
.p-ueber { background: #fbd9d6; color: #a3231c; }
.p-storno { background: #e8e8ee; color: #5c5c66; }
.p-entwurf { background: #e4eefb; color: #1f3d6b; }
.listenkopf.klein { font-size: 15px; margin-top: 18px; }
.listenkopf.klein .zaehler { min-width: 24px; height: 24px; font-size: 13px; }
.kopf .offen-zeile { margin-top: 10px; font-size: 14px; }
textarea.eingabe { resize: vertical; min-height: 72px; line-height: 1.35; }
select.eingabe { appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238a8a93' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center; padding-right: 30px; }
.re-innen { padding-bottom: calc(var(--sab) + 170px); }
.mini { display: block; font-size: 12px; font-weight: 700; color: var(--grau); margin: 0 4px 4px; }
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.drei { display: grid; grid-template-columns: .8fr 1.1fr 1.3fr; gap: 8px; margin-top: 8px; }
.drei label { display: block; font-size: 11px; font-weight: 700; color: var(--grau); margin: 0 2px 4px; text-transform: uppercase; letter-spacing: .03em; }
.drei .eingabe { padding: 10px 10px; min-height: 46px; }
.poskarte { background: #fff; border-radius: 18px; padding: 12px; margin-bottom: 10px; box-shadow: 0 1px 2px rgba(20,20,40,.05); }
.poskarte .eingabe { background: var(--bg); }
.pos-kopf { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.pos-summe { display: flex; justify-content: space-between; margin-top: 10px; color: var(--grau); font-weight: 600; font-size: 14px; }
.pos-summe b { color: var(--text); font-variant-numeric: tabular-nums; }
.seg.satz { margin-top: 10px; }
.textlink { color: var(--ak); font-weight: 700; padding: 8px; margin: -8px; min-height: 44px; }
.textlink.rot { color: #c4302b; }
.kundenkarte { background: #fff; border-radius: 16px; padding: 12px; display: flex; align-items: center; gap: 12px; }
.kundenkarte.neu { display: block; }
.kundenkarte .sym { width: 44px; height: 44px; border-radius: 14px; background: var(--ak-hell); color: var(--ak); display: grid; place-items: center; flex: none; }
.kundenkarte .mitte { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.kundenkarte .mitte small { color: var(--grau); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aufklapp { display: flex; align-items: center; justify-content: space-between; width: 100%; background: #fff; border-radius: 14px; min-height: 48px; padding: 8px 14px; font-weight: 700; }
.aufklapp svg { width: 20px; height: 20px; color: var(--grau); }
.re-leiste { background: linear-gradient(to top, var(--bg) 82%, transparent); padding-top: 10px; }
.re-summe { display: grid; grid-template-columns: 1fr 1fr 1.2fr; text-align: center; background: #fff; border-radius: 14px; padding: 8px 6px; margin-bottom: 8px; font-size: 11px; color: var(--grau); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; box-shadow: 0 1px 4px rgba(20,20,40,.08); }
.re-summe span { display: flex; flex-direction: column; }
.re-summe b { color: var(--text); font-variant-numeric: tabular-nums; font-size: 15px; text-transform: none; letter-spacing: -0.01em; white-space: nowrap; }
.re-summe .gesamt b { font-size: 17px; font-weight: 800; color: var(--ak); }
.re-knoepfe { display: grid; grid-template-columns: 1fr 1.3fr 1.2fr; gap: 8px; }
.re-k { min-height: 50px; border-radius: 14px; background: #fff; font-weight: 700; font-size: 14px; line-height: 1.15; padding: 4px 6px; box-shadow: 0 1px 3px rgba(20,20,40,.1); }
.re-k.prim { background: #111; color: #fff; }
.re-kopf { text-align: center; padding: 20px 16px; }
.re-zeile { display: flex; align-items: center; justify-content: center; gap: 10px; }
.re-nr { font-weight: 700; color: var(--grau); }
.re-betrag { font-size: 38px; font-weight: 800; letter-spacing: -0.02em; margin-top: 10px; font-variant-numeric: tabular-nums; }
.re-kunde { font-weight: 700; margin-top: 4px; }
.re-faellig { color: var(--grau); font-size: 14px; margin-top: 6px; }
.re-faellig a { color: var(--ak); font-weight: 700; }
.rot-text { color: #c4302b; font-weight: 800; }
.re-pdf { width: 100%; height: 480px; border: 0; border-radius: 12px; background: #fff; display: block; }
.re-aktionen > * { margin-bottom: 10px; }
.re-aktionen .rot-knopf { margin-top: 18px; }
a.knopf-hell { text-decoration: none; }
.bez-panel { background: #fff; border-radius: 14px; padding: 12px; }
.bez-panel label { display: block; font-size: 13px; font-weight: 700; color: var(--grau); margin: 0 4px 6px; }
.bez-panel .eingabe { background: var(--bg); }
.kundenkarte.neu .eingabe { background: var(--bg); }
.re-knoepfe.zwei-k { grid-template-columns: 1fr 1fr; }

/* Abos & E-Mail-Eingang (Phase 4) */
.p-abo { background: #e4eefb; color: #1f3d6b; }
.herkunft { margin: 8px 0 0; }
.herkunft .band { margin-top: 6px; }
.jahrleiste { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 10px; font-size: 18px; }
.abos-liste { margin: 14px 16px 0; display: flex; flex-direction: column; gap: 10px; }
.abokarte { display: block; width: 100%; text-align: left; background: #fff; border-radius: 18px; padding: 14px; box-shadow: 0 1px 2px rgba(20,20,40,.05); }
.abokarte.beendet { opacity: .6; }
.ab-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ab-kopf b { font-size: 17px; }
.ab-betrag { color: var(--grau); font-size: 13px; text-align: right; }
.abobalken { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; margin-top: 10px; }
.abobalken i, .abo-legende i { display: block; height: 12px; border-radius: 4px; background: #dcdce4; }
.abobalken i.s-da, .abo-legende i.s-da { background: #3aa655; }
.abobalken i.s-fehlt, .abo-legende i.s-fehlt { background: #e03a32; }
.abobalken i.s-offen, .abobalken i.s-zukunft, .abo-legende i.s-offen { background: #dcdce4; }
.abobalken i.s-leer { background: transparent; border: 1px dashed #dcdce4; }
.ab-monate { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; margin-top: 3px; font-size: 10px; color: var(--grau); text-align: center; }
.ab-info { display: block; margin-top: 8px; font-size: 13px; color: var(--grau); font-weight: 600; }
.ab-info.rot { color: #c4302b; }
.abo-legende { display: flex; gap: 16px; justify-content: center; margin: 14px 16px 0; font-size: 12px; color: var(--grau); }
.abo-legende span { display: flex; align-items: center; gap: 6px; }
.abo-legende i { width: 14px; height: 10px; }

/* Steuern (Phase 4) */
.st-grenz { margin-top: 14px; font-size: 14px; font-weight: 700; opacity: .85; text-decoration: underline; text-underline-offset: 3px; min-height: 36px; padding: 0 8px; }
.st-next { border: 2px solid transparent; }
.st-next.rot { border-color: #f1b3a6; }
.st-label { font-size: 13px; color: var(--grau); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.st-next h3 { font-size: 19px; }
.st-next-zeile { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 6px; font-weight: 600; }
.st-tage { font-weight: 800; color: #1f6a12; }
.st-tage.rot { color: #c4302b; }
.st-next-betrag { margin-top: 6px; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.qk-liste { margin: 0 16px; display: flex; flex-direction: column; gap: 10px; }
.qk { background: var(--karte); border-radius: 20px; box-shadow: 0 1px 2px rgba(20,20,40,.05); overflow: hidden; }
.qk summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 14px 16px; min-height: 56px; cursor: pointer; }
.qk summary::-webkit-details-marker { display: none; }
.qk-t { font-weight: 800; font-size: 17px; flex: 1; }
.qk-i { color: var(--grau); font-size: 13px; font-weight: 600; }
.qk-i.rot { color: #c4302b; }
.qk-pf { color: var(--grau); display: grid; transition: transform .15s; }
.qk[open] .qk-pf { transform: rotate(180deg); }
.qk-innen { padding: 0 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.fz { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-top: 1px solid var(--linie); min-height: 52px; }
.fz-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fz-text small { color: var(--grau); }
.fz-datum { font-size: 14px; font-weight: 600; color: var(--grau); white-space: nowrap; }
.fz.erl .fz-text, .fz.erl .fz-datum { text-decoration: line-through; color: #a8a8b0; }
.hk { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #c8c8d0; display: grid; place-items: center; flex: none; margin: -4px; padding: 0; position: relative; }
.hk::before { content: ""; position: absolute; inset: -8px; }
.hk.an { background: #3aa655; border-color: #3aa655; color: #fff; }
.hk svg { width: 18px; height: 18px; stroke-width: 3; }
.va { background: var(--ak-hell, #ffe3d4); border-radius: 16px; padding: 12px; }
.va.erl { opacity: .65; }
.va-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.va-kopf b { display: block; }
.va-kopf small { color: #7a4a3a; }
.va-zahl { margin-top: 8px; font-size: 15px; font-weight: 600; }
.va-zahl b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.va-zahl.gross b { font-size: 36px; }
.va-zahl.gross { text-align: center; margin: 8px 0 14px; }
.va-zahl.gruen b { color: #1f8a3a; }
.va-info { margin-top: 8px; font-weight: 700; color: #7a4a3a; }
.va-warn { margin-top: 6px; font-size: 13px; font-weight: 700; color: #7a5200; }
.st-knopf { display: grid; place-items: center; width: 100%; min-height: 48px; margin-top: 10px; border-radius: 14px; background: #fff; color: var(--ak); font-weight: 800; border: 1.5px solid var(--ak); text-decoration: none; padding: 6px 10px; text-align: center; }
.ja-zeile { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; margin: 4px 0 8px; }
.ja-zeile b { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.ja-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.ja-knoepfe .st-knopf:nth-child(n+3) { grid-column: 1 / -1; }
.kz-tabelle { background: #fff; border-radius: 16px; padding: 4px 10px; overflow: hidden; }
.kz-kopf, .kz-zeile { display: grid; grid-template-columns: 38px 1fr auto 40px; gap: 8px; align-items: center; }
.kz-kopf { font-size: 11px; font-weight: 700; color: var(--grau); text-transform: uppercase; padding: 8px 0 4px; }
.kz-zeile { padding: 10px 0; border-top: 1px solid var(--linie); }
.kz-nr { font-size: 17px; color: var(--ak); }
.kz-text { font-size: 13px; line-height: 1.25; }
.kz-text small { display: block; color: var(--grau); margin-top: 2px; }
.kz-wert { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kz-kopie { width: 40px; height: 40px; border-radius: 12px; background: var(--bg); display: grid; place-items: center; color: var(--ak); }
.kz-kopie.ok { background: #d9f3cc; color: #1f6a12; }
.kz-kopie svg { width: 20px; height: 20px; }
.kz-summe { background: var(--bg); margin: 0 -10px; padding: 10px; border-radius: 0 0 14px 14px; }
.st-h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--grau); margin: 18px 4px 8px; }
.ez-liste { background: #fff; border-radius: 16px; padding: 2px 14px; margin-top: 8px; }
.ez { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-top: 1px solid var(--linie); }
.ez:first-child { border-top: 0; }
.ez span small { display: block; color: var(--grau); font-size: 12px; }
.ez b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ez.summe { font-weight: 800; }
.ez.gewinn b { font-size: 20px; }
.ez.grau { color: var(--grau); }
.st-sheet .band { line-height: 1.35; }
.fz-text b { overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; }
.fz-datum { font-size: 13px; }
.karte p.rot-text { color: #c4302b; }

/* ---------- Bereiche ---------- */
.bpunkt { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; }
.bpill { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 1px 7px 1px 6px; font-size: 10.5px; font-weight: 800; background: #f0f0f4; color: #55555e; letter-spacing: .02em; flex: none; line-height: 1.5; }
.bpill .bpunkt { width: 7px; height: 7px; }
.kopf-rechts { display: flex; align-items: center; }
.kopf-rechts .ikn { margin: 0 -4px; }
.etikett-zeile { margin-top: 8px; }
.etikett { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 3px 12px; border-radius: 999px; background: rgba(255,255,255,.24); color: inherit; font-size: 13px; font-weight: 700; }
.kopf.hell .etikett { background: rgba(255,255,255,.5); }
.etikett .bpunkt { box-shadow: 0 0 0 1.5px rgba(255,255,255,.85); }
.popover .bseg { margin: 2px 2px 8px; background: #ececf1; }
.popover.links .bseg button { display: flex; align-items: center; justify-content: center; gap: 5px; text-align: center; min-height: 40px; padding: 4px 8px; font-size: 13px; background: transparent; color: var(--text); width: auto; }
.popover.links .bseg button.an { background: #fff; color: var(--ak); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.popover.links { min-width: min(330px, calc(100vw - 24px)); }
.chip .bpunkt { width: 11px; height: 11px; }
.farben { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 4px; }
.farbe { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1.5px #d4d4dc; }
.farbe.an { box-shadow: 0 0 0 3px #111; }
.va-davon, .davon-kopf { font-size: 12.5px; font-weight: 600; color: #7a4a3a; margin-top: 4px; }
.davon-kopf { color: inherit; opacity: .8; margin-top: 6px; font-size: 14px; font-weight: 600; text-align: center; }
.st-gesamt { margin: 14px 16px 0; padding: 10px 14px; border-radius: 14px; background: var(--ak-hell, #ffe3d4); color: #7a4a3a; font-size: 13.5px; font-weight: 600; }

/* ---------- Dashboard ---------- */
.dkopf { min-height: 0; padding-bottom: 22px; }
.dkopf .kopfzeile { align-items: center; }
.dtitel { font-weight: 800; font-size: 17px; }
.dkopf .pill { margin: 0; }
.dseg { margin-top: 14px; background: rgba(255,255,255,.28); }
.dseg button { color: #fff; }
.dseg button.an { background: #fff; color: var(--dc); }
.dkopf .gross { font-size: 40px; margin-top: 16px; }
.dunter { font-size: 13px; opacity: .85; font-weight: 600; margin-top: 2px; }
.dchart { padding: 14px 12px 10px; }
.dchart svg { width: 100%; height: auto; display: block; overflow: visible; }
.dhit { cursor: pointer; }
.dlegende { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin-top: 8px; font-size: 12.5px; font-weight: 600; color: var(--grau); }
.dlegende span { display: inline-flex; align-items: center; gap: 6px; }
.dhinweis { text-align: center; color: var(--grau); font-size: 13.5px; margin: 14px 24px 0; }
.dmonat { font-size: 15px; line-height: 1.4; }
.dprozent.pos { color: #1f8a3a; font-weight: 800; } .dprozent.neg { color: #c4302b; font-weight: 800; }
.dkacheln { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 16px 0; }
.dkachel { background: var(--karte); border-radius: 18px; padding: 14px; box-shadow: 0 1px 2px rgba(20,20,40,.05); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dkachel small { color: var(--grau); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.dkachel b { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.dkachel span { color: var(--grau); font-size: 12.5px; }
.dkachel b.pos { color: #1f8a3a; } .dkachel b.neg { color: #c4302b; }

/* Kategorie-Dropdown */
.katfeld { display: flex; align-items: center; gap: 10px; }
.kat-sym { width: 52px; height: 52px; flex: none; border-radius: 16px; background: var(--ak-hell, #ffe9e0); color: var(--ak); display: grid; place-items: center; }
.kat-sym svg { width: 26px; height: 26px; }
.katwahl { height: 52px; font-size: 16px; font-weight: 600; flex: 1; min-width: 0; }
.fz-ic { display: inline-flex; vertical-align: -3px; margin-right: 5px; color: var(--ak); }
.fz-ic svg { width: 16px; height: 16px; }
.fz-weg { width: 32px; height: 32px; display: grid; place-items: center; color: var(--grau); flex: none; }
.fz-weg svg { width: 16px; height: 16px; }

/* ---------- SteuMeuAI-Knopf auf Home (schwebend) ---------- */
.ki-fab { position: fixed; right: max(16px, calc(50% - 240px + 16px)); bottom: calc(var(--bar) + var(--sab) + 16px); width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(145deg, #ff6a3d, #ff4d2e); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(255,77,46,.45); z-index: 15; }
.ki-fab svg { width: 30px; height: 30px; fill: #fff; stroke: #fff; stroke-width: 1.2; }

/* ---------- SteuMeuAI-Chat ---------- */
.kichat { position: fixed; inset: 0; display: flex; flex-direction: column; background: var(--bg); max-width: 480px; margin: 0 auto; height: 100dvh; z-index: 5; }
.ki-kopf { display: flex; align-items: center; gap: 2px; background: #fff; padding: calc(var(--sat) + 6px) 10px 8px; border-bottom: 1px solid var(--linie); flex: none; }
.ki-kopf h1 { margin: 0 0 0 4px; font-size: 18px; flex: 1; display: flex; align-items: center; gap: 4px; min-width: 0; white-space: nowrap; }
.ki-funke { color: #ff4d2e; display: inline-flex; } .ki-funke svg { width: 16px; height: 16px; fill: #ff4d2e; stroke: #ff4d2e; }
.ki-neu { display: inline-flex; align-items: center; gap: 4px; color: #ff4d2e; font-weight: 700; font-size: 14px; padding: 8px 10px; border-radius: 999px; background: #ffe9e0; min-height: 36px; white-space: nowrap; }
.ki-neu svg { width: 16px; height: 16px; stroke-width: 2.4; }
.ki-liste { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 14px 14px 10px; display: flex; flex-direction: column; gap: 10px; }
.km { display: flex; flex-direction: column; max-width: 88%; gap: 6px; }
.km.nutzer { align-self: flex-end; align-items: flex-end; }
.km.ki { align-self: flex-start; }
.blase { padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.km.nutzer .blase { background: linear-gradient(145deg, #ff6a3d, #ff4d2e); color: #fff; border-bottom-right-radius: 6px; }
.km.ki .blase { background: #fff; color: var(--text); border-bottom-left-radius: 6px; box-shadow: 0 1px 2px rgba(20,20,40,.06); }
.blase.fehlerblase { background: #ffe9e9; color: #a11; }
.blase.md p { margin: 0 0 8px; } .blase.md p:last-child, .blase.md ul:last-child, .blase.md ol:last-child { margin-bottom: 0; }
.blase.md ul, .blase.md ol { margin: 0 0 8px; padding-left: 20px; } .blase.md li { margin: 2px 0; }
.ki-anh { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--grau); font-weight: 600; } .ki-anh svg { width: 14px; height: 14px; }
.blase.tipp { display: flex; gap: 5px; padding: 14px 16px; }
.blase.tipp i { width: 8px; height: 8px; border-radius: 50%; background: #c4c4cc; animation: tipp 1.1s infinite ease-in-out; }
.blase.tipp i:nth-child(2) { animation-delay: .18s; } .blase.tipp i:nth-child(3) { animation-delay: .36s; }
@keyframes tipp { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-5px); opacity: 1; } }
.akarte { background: #fff; border: 1.5px solid #ffd2c2; border-radius: 16px; padding: 10px 12px; font-size: 14px; }
.akarte.aus { border-color: var(--linie); color: var(--grau); }
.akarte .ak-text { line-height: 1.35; overflow-wrap: anywhere; }
.ak-knoepfe { display: flex; gap: 8px; margin-top: 8px; }
.ak-knoepfe button { flex: 1; min-height: 38px; border-radius: 12px; background: #ffe9e0; color: #e8431c; font-weight: 700; font-size: 14px; }
.ak-knoepfe button + button { background: #f1f1f5; color: var(--text); }
.ki-leer { margin: auto 0; text-align: center; padding: 10px 6px; }
.ki-gross { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; background: linear-gradient(145deg, #ff6a3d, #ff4d2e); display: grid; place-items: center; box-shadow: 0 6px 16px rgba(255,77,46,.35); }
.ki-gross svg { width: 32px; height: 32px; fill: #fff; stroke: #fff; stroke-width: 1.2; }
.ki-leer h2 { margin: 0 0 6px; font-size: 20px; } .ki-leer p { margin: 0 12px 16px; color: var(--grau); font-size: 15px; }
.ki-chips { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.ki-chip { background: #fff; border: 1.5px solid #ffd2c2; color: var(--text); border-radius: 16px; padding: 11px 14px; font-weight: 600; font-size: 14.5px; text-align: left; min-height: 44px; }
.ki-eingabe { flex: none; background: #fff; border-top: 1px solid var(--linie); padding: 8px 10px calc(var(--sab) + 8px); }
.ki-anhang { display: flex; gap: 8px; padding: 0 2px 8px; flex-wrap: wrap; }
.ki-vorschau { display: inline-flex; align-items: center; gap: 8px; background: var(--bg); border-radius: 12px; padding: 4px 4px 4px 6px; max-width: 100%; font-size: 13px; font-weight: 600; }
.ki-vorschau img { width: 38px; height: 38px; object-fit: cover; border-radius: 8px; }
.ki-vorschau > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 190px; }
.ki-vorschau button { width: 30px; height: 30px; display: grid; place-items: center; color: var(--grau); } .ki-vorschau svg { width: 16px; height: 16px; }
.ki-zeile { display: flex; align-items: flex-end; gap: 6px; }
.ki-zeile textarea { flex: 1; min-width: 0; resize: none; border: 1.5px solid var(--linie); background: var(--bg); border-radius: 22px; padding: 11px 14px; font: inherit; font-size: 16px; line-height: 1.35; max-height: 104px; outline: none; }
.ki-zeile textarea:focus { border-color: #ff4d2e; }
.ki-klammer, .ki-senden { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.ki-klammer { color: var(--grau); } .ki-klammer svg { width: 24px; height: 24px; }
.ki-senden { background: linear-gradient(145deg, #ff6a3d, #ff4d2e); color: #fff; } .ki-senden svg { width: 22px; height: 22px; stroke-width: 2; }
.ki-senden:disabled { background: #e4e4ea; color: #fff; }
.spin { width: 16px; height: 16px; border: 2.5px solid #ffd2c2; border-top-color: #ff4d2e; border-radius: 50%; display: inline-block; animation: dreh .8s linear infinite; flex: none; }
.gross-knopf .spin { border-color: rgba(255,255,255,.4); border-top-color: #fff; margin-right: 8px; }
@keyframes dreh { to { transform: rotate(360deg); } }
.kisheet { z-index: 60; }
.kichat-zeile { padding: 0; } .kichat-zeile.an { background: #fff6f2; }
.kc-main { flex: 1; text-align: left; padding: 12px 14px; display: flex; flex-direction: column; min-width: 0; }
.kc-main .sub { color: var(--grau); font-size: 13px; }
.kc-weg { color: var(--grau); margin-right: 4px; }

/* ---------- Dateien ---------- */
.dat-suche { display: flex; align-items: center; gap: 8px; margin: 12px 16px 0; background: #fff; border-radius: 14px; padding: 0 12px; color: var(--grau); }
.dat-suche input { flex: 1; border: 0; background: none; outline: none; min-height: 48px; font-size: 16px; min-width: 0; }
.ordner-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 16px 0; }
.ordner-kachel { background: #fff; border-radius: 18px; padding: 14px; text-align: left; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 1px 2px rgba(20,20,40,.05); min-height: 104px; }
.ordner-kachel .o-sym { width: 40px; height: 40px; border-radius: 12px; background: var(--ak-hell, #ffe3d4); color: var(--ak); display: grid; place-items: center; margin-bottom: 6px; }
.ordner-kachel b { font-size: 15px; line-height: 1.2; } .ordner-kachel small { color: var(--grau); font-size: 13px; }
.ordner-kachel.neu { background: transparent; border: 1.5px dashed var(--ak); box-shadow: none; } .ordner-kachel.neu .o-sym { background: transparent; }
.dat-archiv { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--grau); padding: 4px; }
.dat-archiv input { width: 20px; height: 20px; accent-color: var(--ak); }
.zeile.archiviert { opacity: .6; }
.dat-vorschau { display: block; width: 100%; position: relative; background: #fff; border-radius: 16px; overflow: hidden; min-height: 120px; box-shadow: 0 1px 3px rgba(20,20,40,.08); }
.dat-vorschau img { display: block; width: 100%; max-height: 300px; object-fit: contain; background: #f1f1f5; }
.dat-vorschau iframe { display: block; width: 100%; height: 300px; border: 0; pointer-events: none; }
.dat-voll-hinweis { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.ki-erkl { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; }
.ki-erkl svg { width: 20px; height: 20px; fill: #fff; stroke: #fff; stroke-width: 1.2; }
.erklaerung .st-label { display: flex; align-items: center; gap: 6px; color: #e8431c; } .erklaerung .st-label svg { width: 16px; height: 16px; fill: #e8431c; stroke: #e8431c; }
.erklaerung .md p { margin: 0 0 8px; font-size: 14.5px; color: var(--text); } .erklaerung .md ul { margin: 0 0 8px; padding-left: 20px; font-size: 14.5px; }
.dat-knoepfe { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.dat-knoepfe .knopf-hell { height: auto; padding: 10px 14px; text-align: left; justify-content: flex-start; }
.dsheet { z-index: 50; }

/* Bank */
.kopf.bank-kopf { min-height: 0; padding-bottom: 26px; }
.kopf.bank-kopf .mittel { font-size: 30px; margin-top: 4px; }
.bsteps { margin: 8px 0 0; padding-left: 20px; color: var(--text); font-size: 15px; line-height: 1.5; }
.bsteps li { margin-bottom: 4px; }
.karte.bsoon { opacity: .75; }
.bleiste { display: flex; align-items: center; gap: 8px; margin: 18px 16px 10px; }
.bsegment { flex: 1; }
.bimp { width: 48px; height: 48px; margin: 0; background: #fff; color: var(--ak); border: 1.5px solid var(--ak); flex: none; }
.bdatum { margin: 16px 20px 6px; font-size: 13px; font-weight: 800; color: var(--grau); text-transform: uppercase; letter-spacing: .04em; }
.brow { border-bottom: 1px solid var(--linie); }
.brow:last-child { border-bottom: 0; }
.brow .zeile { border-bottom: 0; }
.bzeile .name .t { display: block; }
.betrag.bpos, .bgross.bpos { color: #1f8a1f; }
.bgross { text-align: center; font-size: 40px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; margin: 8px 0 6px; }
.bchip-zeile { display: flex; gap: 8px; padding: 0 14px 12px; }
.bchip { flex: 1; min-width: 0; text-align: left; background: #e6eefa; color: #1f3d6b; border-radius: 12px; padding: 8px 12px; font-weight: 600; font-size: 13px; min-height: 40px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.25; }
.bhaken { width: 44px; min-height: 40px; flex: none; border-radius: 12px; background: #3d74b8; color: #fff; font-weight: 800; font-size: 18px; display: grid; place-items: center; }
.bhaken:disabled { opacity: .5; }
.bvor { display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.bvor .mitte { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bvor small { color: var(--grau); }
.bvor b { overflow: hidden; text-overflow: ellipsis; }
.bdaten { background: #fff; border-radius: 16px; margin-top: 10px; padding: 4px 14px; }
.bkv { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--linie); font-size: 14px; }
.bkv:last-child { border-bottom: 0; }
.bkv span { color: var(--grau); flex: none; }
.bkv b { text-align: right; font-weight: 600; word-break: break-word; }
.bduo { display: flex; gap: 8px; margin-top: 8px; }
.bduo .knopf-hell { flex: 1; }
.bselraster { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.bsel { margin-top: 8px; }
.bsel label { font-size: 12px !important; margin-bottom: 3px !important; }
.bsel .eingabe { min-height: 42px; padding: 8px 10px; font-size: 14px; }
.bmehr { margin-top: 10px; }
.bmehr summary { font-weight: 700; color: var(--ak); padding: 8px 4px; cursor: pointer; }
.gross-knopf:disabled { opacity: .45; }
.bsel .eingabe { padding-right: 26px; text-overflow: ellipsis; }
