/* ==========================================================================
   Landingpage Bills Agent – Vorführungen (agents/bills/landing-view.php)
   Nur Variablen aus tokens.css und landing.css, Klassenpräfix lpb-.
   ========================================================================== */

/* ---------- Gemeinsames ---------- */
/* Lange Zeilen (nowrap) dürfen das Raster nicht verbreitern: Breite kommt nur von außen */
.lpb-stage-win .lp-win-body, .lpb-hero, .lpb-iban, .lpb-sk, .lpb-pr, .lpb-fc, .lpb-ask { contain: inline-size; }
.lpb-mono { font-family: var(--font-mono); letter-spacing: -0.01em; }
.lpb-say { display: flex; gap: 10px; align-items: flex-start; }
.lpb-say p {
    margin: 0; flex: 1; min-width: 0; padding: 8px 12px; border-radius: 4px 14px 14px 14px;
    background: var(--lp-a-soft); border: 1px solid var(--lp-a-line); color: var(--text);
    font-size: var(--fs-sm); line-height: 1.5;
}
/* Zeiger nur zeigen, während eine Szene ihn braucht */
.lpb-hero .lp-cursor, .lpb-pr .lp-cursor { opacity: 0; transition: transform .7s cubic-bezier(.6, .05, .3, 1), opacity .3s ease; }
.lpb-hero .lp-cursor.is-on, .lpb-pr .lp-cursor.is-on { opacity: 1; }
.lpb-keys kbd, .lpb-mini-keys kbd {
    min-width: 32px; height: 28px; padding: 0 8px; display: inline-grid; place-items: center; border-radius: 8px;
    font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text);
    background: var(--surface); border: 1px solid var(--border-strong); box-shadow: 0 2px 0 var(--border-strong);
}

/* ---------- Hero: Rechnung links, Felder rechts ---------- */
.lpb-hero-win .lp-win-body { min-height: 0; }
.lpb-hero { position: relative; display: flex; flex-direction: column; gap: 12px; }
.lpb-alex { display: flex; gap: 10px; align-items: flex-start; }
.lpb-alex-text {
    margin: 0; flex: 1; min-width: 0; min-height: 2.9em; padding: 8px 12px; border-radius: 4px 14px 14px 14px;
    background: var(--lp-a-soft); border: 1px solid var(--lp-a-line); color: var(--text); font-size: var(--fs-sm); line-height: 1.45;
}

.lpb-files { display: flex; flex-wrap: wrap; gap: 6px; }
.lpb-file {
    display: inline-flex; align-items: center; gap: 6px; height: 28px; max-width: 100%; padding: 0 5px 0 9px; border-radius: 8px;
    background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
    font-family: var(--font-mono); font-size: 11px; font-weight: 600;
    transition: opacity .3s ease, transform .3s ease, border-color .3s ease, background .3s ease, color .3s ease;
}
.lpb-file > .icon { flex: none; color: var(--text-2); }
.lpb-file-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lpb-file-st {
    flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; box-sizing: border-box;
    background: var(--c-success-soft); color: var(--c-success); border: 2px solid transparent;
}
.lpb-file.is-off { opacity: 0; transform: translateY(-6px) scale(.92); }
.lpb-file.is-wait .lpb-file-st { background: transparent; color: transparent; border-color: var(--border-strong); }
.lpb-file.is-active { background: var(--lp-a-soft); border-color: var(--lp-a-line); color: var(--lp-a); }
.lpb-file.is-active > .icon { color: var(--lp-a); }
.lpb-file.is-active .lpb-file-st { background: transparent; color: transparent; border-color: var(--lp-a-line); border-top-color: var(--lp-a); animation: lpb-spin .8s linear infinite; }
@keyframes lpb-spin { to { transform: rotate(360deg); } }

.lpb-read { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 12px; align-items: start; }
.lpb-paper {
    position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 7px; min-height: 290px; padding: 14px 12px 12px;
    border-radius: 6px; background: var(--surface); border: 1px solid var(--border); color: var(--text);
    box-shadow: 0 14px 28px -18px var(--lp-shadow); transform: rotate(-1.2deg);
    transition: opacity .3s ease, transform .3s ease;
}
.lpb-paper::after { content: ""; position: absolute; right: 0; top: 0; width: 22px; height: 22px; background: linear-gradient(225deg, var(--surface-2) 50%, var(--border) 50%, transparent 58%); }
.lpb-paper-top { display: flex; align-items: center; gap: 7px; min-width: 0; padding-right: 16px; }
.lpb-logo { flex: none; width: 18px; height: 18px; border-radius: 5px; background: linear-gradient(135deg, var(--lp-a), var(--lp-a2)); }
.lpb-paper-top strong { min-width: 0; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lpb-paper-title { margin: 8px 0 0; font-size: var(--fs-sm); font-weight: 700; color: var(--lp-ink); }
.lpb-paper-date { margin: 0 0 6px; font-family: var(--font-mono); font-size: 10px; color: var(--text-2); }
.lpb-ln { display: block; width: var(--w); height: 6px; border-radius: 3px; background: var(--surface-2); }
.lpb-paper-sum {
    display: flex; justify-content: space-between; align-items: baseline; gap: 6px; margin-top: auto; padding-top: 8px;
    border-top: 1px dashed var(--border-strong); font-size: 11px; color: var(--text-2);
}
.lpb-paper-sum strong { font-size: var(--fs-sm); color: var(--text); white-space: nowrap; }
.lpb-paper-terms { margin: 0; font-size: 10px; line-height: 1.4; color: var(--text-2); }
.lpb-scan {
    position: absolute; left: 0; right: 0; top: 0; height: 40px; pointer-events: none; opacity: 0;
    background: linear-gradient(180deg, transparent, var(--lp-glow)); border-bottom: 2px solid var(--lp-a);
}
.lpb-paper.is-scan .lpb-scan { opacity: 1; animation: lpb-scan 1.2s ease-in-out infinite alternate; }
@keyframes lpb-scan { from { transform: translateY(-40px); } to { transform: translateY(290px); } }
.lpb-paper.is-blank { opacity: .35; }
.lpb-paper.is-swap { opacity: 0; transform: translateX(-14px) rotate(-4deg); }

.lpb-fields { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
.lpb-field { min-width: 0; padding: 6px 9px; border-radius: 9px; background: var(--surface-2); border: 1px solid transparent; transition: background .3s ease, border-color .3s ease; }
.lpb-field.is-wide { grid-column: 1 / -1; }
.lpb-field dt { font-size: 10px; font-weight: 600; color: var(--text-2); }
.lpb-field dd { margin: 1px 0 0; min-height: 1.45em; line-height: 1.45; font-size: var(--fs-xs); font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lpb-field.is-hl { background: var(--c-success-soft); }
.lpb-field.is-hl dd { color: var(--c-success); }
.lpb-field.is-fill { background: var(--lp-a-soft); border-color: var(--lp-a-line); }

.lpb-drop {
    position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    border-radius: 12px; border: 2px dashed var(--lp-a); background: color-mix(in oklab, var(--lp-a-soft) 90%, transparent); color: var(--lp-a);
    font-size: var(--fs-sm); opacity: 0; pointer-events: none; transition: opacity .3s ease, transform .3s ease;
}
.lpb-drop strong { color: var(--lp-ink); }
.lpb-drop.is-on { opacity: 1; }
.lpb-drop.is-hot { transform: scale(.985); background: var(--lp-a-soft); }

/* ---------- Bühne der Scroll-Erzählung ---------- */
.lpb-stage-win .lp-win-body { min-height: 380px; }
.lpb-dropzone {
    display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 14px; text-align: center;
    border-radius: 12px; border: 2px dashed var(--lp-a-line); background: var(--lp-a-soft); color: var(--lp-a);
}
.lpb-dropzone strong { font-size: var(--fs-sm); color: var(--text); }
.lpb-dropzone span { font-size: var(--fs-xs); color: var(--text-2); }
.lpb-inlist, .lpb-bills, .lpb-pays { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lpb-inlist li, .lpb-bills li, .lpb-pays li {
    display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px;
    background: var(--surface); border: 1px solid var(--border); font-size: var(--fs-sm); min-width: 0;
}
.lpb-inlist li > .icon { flex: none; color: var(--lp-a); }
.lpb-inlist li > span:first-of-type { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: var(--fs-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lpb-inlist li.is-skip { background: var(--surface-2); color: var(--text-2); }
.lpb-inlist li.is-skip > .icon { color: var(--text-2); }
.lpb-inlist li.is-skip > span:first-of-type { text-decoration: line-through; }
.lpb-mini-alex { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--lp-a-soft); border: 1px solid var(--lp-a-line); }
.lpb-mini-alex p { margin: 0; font-size: var(--fs-sm); line-height: 1.5; }
.lpb-bills li b, .lpb-pays li b { flex: none; font-size: var(--fs-sm); white-space: nowrap; }

.lpb-walk-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.lpb-walk-head strong { display: inline-flex; align-items: center; gap: 6px; color: var(--lp-a); }
.lpb-keys { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-xs); color: var(--text-2); }
.lpb-keys b { color: var(--text); }
.lpb-walk-card { padding: 12px; border-radius: 14px; border: 1px solid var(--lp-a-line); background: var(--surface); box-shadow: 0 18px 36px -26px var(--lp-shadow); }
.lpb-walk-top { display: flex; align-items: center; gap: 10px; }
.lpb-kv3 { margin: 12px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lpb-kv3 div { min-width: 0; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.lpb-kv3 dt { font-size: 11px; color: var(--text-2); }
.lpb-kv3 dd { margin: 2px 0 0; font-weight: 600; font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lpb-walk-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.lpb-learned { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; font-size: var(--fs-xs); color: var(--text-2); }
.lpb-learned > span { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.lpb-learned > span .icon { color: var(--lp-a); }
.lpb-learned ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.lpb-learned li { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 99px; background: var(--c-success-soft); color: var(--c-success); font-weight: 600; }

.lpb-pay-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.lpb-pay-head > div { display: flex; flex-direction: column; gap: 2px; }
.lpb-pay-head span { font-size: var(--fs-xs); color: var(--text-2); }
.lpb-pay-head strong { font-size: var(--fs-xl); line-height: 1.1; letter-spacing: -0.02em; color: var(--lp-ink); }
.lpb-pay-head em { font-style: normal; font-size: var(--fs-xs); color: var(--text-2); }
.lpb-pay-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.lpb-pay-note { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: var(--fs-xs); line-height: 1.5; color: var(--text); }
.lpb-pay-note .icon { flex: none; color: var(--lp-a); margin-top: 1px; }

/* Einlauf je Schritt: startet neu, sobald die Szene aktiv wird */
@keyframes lpb-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes lpb-pop { 0% { opacity: 0; transform: scale(.85); } 60% { transform: scale(1.05); } 100% { opacity: 1; transform: none; } }
@keyframes lpb-press { 0%, 100% { transform: none; } 50% { transform: scale(.92); } }
.lp-js [data-step="1"] .lpb-s1 .lpb-inlist li,
.lp-js [data-step="2"] .lpb-s2 .lpb-bills li,
.lp-js [data-step="3"] .lpb-s3 .lpb-learned li,
.lp-js [data-step="4"] .lpb-s4 .lpb-pays li { animation: lpb-in .45s both; animation-delay: calc(var(--d) * 380ms + 250ms); }
.lp-js [data-step="2"] .lpb-s2 .lpb-bills .lp-tag { animation: lpb-pop .45s both; animation-delay: calc(var(--d) * 380ms + 650ms); }
.lp-js [data-step="3"] .lpb-s3 .lpb-learned li { animation-delay: calc(var(--d) * 300ms + 1500ms); }
.lp-js [data-step="3"] .lpb-s3 .lpb-walk-btns .is-accent { animation: lpb-press .4s both 1.1s; }
.lp-js [data-step="4"] .lpb-s4 .lpb-pay-btns,
.lp-js [data-step="4"] .lpb-s4 .lpb-pay-note { animation: lpb-in .45s both 1.1s; }
.lp-js [data-step="4"] .lpb-s4 .lpb-pay-head .lp-tag { animation: lpb-pop .45s both .5s; }

/* ---------- Betrugsschutz: geänderte IBAN ---------- */
.lpb-iban { display: flex; flex-direction: column; gap: 12px; min-height: 300px; }
.lpb-ib-head { display: flex; align-items: center; gap: 10px; }
.lpb-ib-badge { transition: opacity .3s ease, transform .3s ease; }
.lpb-ib-cmp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.lpb-ib-cmp > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid transparent; transition: background .35s ease, border-color .35s ease; }
.lpb-ib-cmp span { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: var(--text-2); }
.lpb-ib-cmp code { padding: 0; background: none; font-family: var(--font-mono); font-size: var(--fs-xs); line-height: 1.5; color: var(--text); overflow-wrap: anywhere; }
.lpb-ib-old span .icon { color: var(--c-success); }
.lpb-ib-new { background: var(--c-danger-soft) !important; border-color: color-mix(in oklab, var(--c-danger) 45%, transparent) !important; }
.lpb-ib-new span, .lpb-ib-new code { color: var(--c-danger); }
.lpb-ib-new code { font-weight: 700; }
.lpb-ib-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.lpb-ib-checks li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-size: var(--fs-sm); color: var(--text); transition: opacity .35s ease, transform .35s ease; }
.lpb-ib-checks li .icon { flex: none; }
.lpb-ib-checks li.is-ok .icon { color: var(--c-success); }
.lpb-ib-checks li.is-bad { background: var(--c-danger-soft); border-color: transparent; font-weight: 600; }
.lpb-ib-checks li.is-bad .icon { color: var(--c-danger); }
.lpb-iban.is-scan .lpb-ib-checks li:not(.is-on) { opacity: 0; transform: translateX(-10px); }
.lpb-iban.is-scan .lpb-ib-badge:not(.is-on) { opacity: 0; transform: scale(.8); }
.lpb-iban.is-scan .lpb-ib-new:not(.is-on) { background: var(--surface-2) !important; border-color: transparent !important; }
.lpb-iban.is-scan .lpb-ib-new:not(.is-on) span,
.lpb-iban.is-scan .lpb-ib-new:not(.is-on) code { color: var(--text-2); font-weight: 400; }

/* ---------- Skonto: Zeitleiste und Schalter ---------- */
.lpb-sk { display: flex; flex-direction: column; gap: 12px; min-height: 300px; }
.lpb-sk-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lpb-sk-head .lp-lines span { white-space: normal; }
.lpb-sk-amt { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.lpb-sk-amt s { font-size: var(--fs-xs); color: var(--text-2); text-decoration-color: var(--c-danger); transition: font-size .3s ease, color .3s ease; }
.lpb-sk-amt strong { font-size: var(--fs-lg); line-height: 1.1; color: var(--c-success); transition: opacity .3s ease, transform .3s ease; }

.lpb-tl { position: relative; padding: 34px 0 36px; }
.lpb-tl-track { position: relative; isolation: isolate; height: 8px; border-radius: 99px; background: var(--surface-2); }
.lpb-tl-disc { position: absolute; left: 0; top: -6px; bottom: -6px; width: 33.3%; border-radius: 8px; background: var(--c-success-soft); z-index: 0; }
.lpb-tl-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 20%; z-index: 1; border-radius: inherit; background: linear-gradient(90deg, var(--lp-a2), var(--lp-a)); transition: width 1s ease; }
.lpb-tl-lead {
    position: absolute; left: 20%; top: -3px; bottom: -3px; width: 10%; z-index: 2; border-radius: 4px; border: 1px solid var(--lp-a);
    background: repeating-linear-gradient(135deg, var(--lp-a-soft) 0 4px, var(--lp-a-line) 4px 8px); transition: width .6s ease, opacity .3s ease;
}
.lpb-tl-marks { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; pointer-events: none; }
.lpb-tl-marks li { position: absolute; left: var(--at); top: 0; bottom: 0; width: 0; }
.lpb-tl-marks li::before {
    content: ""; position: absolute; left: -6px; top: 32px; width: 12px; height: 12px; border-radius: 50%; box-sizing: border-box;
    background: var(--surface); border: 2px solid var(--border-strong);
}
.lpb-tl-marks li.is-today::before { border-color: var(--lp-a); background: var(--lp-a); }
.lpb-tl-marks li.is-disc::before { border-color: var(--c-success); }
.lpb-tl-marks li > b, .lpb-tl-marks li > span { position: absolute; left: 0; transform: translateX(-50%); white-space: nowrap; text-align: center; }
.lpb-tl-marks li > b { bottom: 14px; font-size: 10px; font-weight: 600; color: var(--text-2); }
.lpb-tl-marks li > span { bottom: 0; font-size: var(--fs-xs); font-weight: 700; color: var(--text); }
.lpb-tl-marks li.is-today > b { top: 0; bottom: auto; color: var(--lp-a); }
.lpb-tl-marks li.is-today > span { top: 13px; bottom: auto; }
.lpb-tl-marks li.is-disc > b, .lpb-tl-marks li.is-disc > span { color: var(--c-success); }
.lpb-tl-marks li.is-start > b, .lpb-tl-marks li.is-start > span { transform: none; text-align: left; }
.lpb-tl-marks li.is-end > b, .lpb-tl-marks li.is-end > span { transform: translateX(-100%); text-align: right; }

.lpb-sk-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.lpb-sk-lead { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--text-2); }
.lpb-sk-ok { transition: opacity .3s ease, transform .3s ease; }
.lpb-sk-toggle { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.lpb-sk-toggle strong { font-size: var(--fs-sm); }
.lpb-sk-toggle .lp-tag { margin-left: auto; }
.lpb-switch { position: relative; flex: none; width: 36px; height: 20px; border-radius: 99px; background: var(--c-success); transition: background .25s ease; }
.lpb-switch i { position: absolute; top: 2px; left: 18px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px var(--lp-shadow); transition: left .25s ease; }
.lpb-sk-toggle .lp-tag { transition: opacity .3s ease; }
/* Zwischenstände der Szene (data-st 0–3); ohne Attribut gilt der Endzustand */
.lpb-sk[data-st="0"] .lpb-tl-fill { width: 0; }
.lpb-sk:is([data-st="0"], [data-st="1"]) .lpb-tl-lead { width: 0; opacity: 0; }
.lpb-sk:is([data-st="0"], [data-st="1"], [data-st="2"]) .lpb-sk-ok { opacity: 0; transform: scale(.85); }
.lpb-sk:is([data-st="0"], [data-st="1"], [data-st="2"], [data-st="3"]) .lpb-switch { background: var(--border-strong); }
.lpb-sk:is([data-st="0"], [data-st="1"], [data-st="2"], [data-st="3"]) .lpb-switch i { left: 2px; }
.lpb-sk:is([data-st="0"], [data-st="1"], [data-st="2"], [data-st="3"]) .lpb-sk-toggle .lp-tag { opacity: 0; }
.lpb-sk:is([data-st="0"], [data-st="1"], [data-st="2"], [data-st="3"]) .lpb-sk-amt s { text-decoration: none; font-size: var(--fs-lg); color: var(--text); }
.lpb-sk:is([data-st="0"], [data-st="1"], [data-st="2"], [data-st="3"]) .lpb-sk-amt strong { opacity: 0; transform: translateY(-4px); }

/* ---------- Zahlungslauf ---------- */
.lpb-pr { position: relative; display: flex; flex-direction: column; gap: 12px; min-height: 320px; }
.lpb-pr-inv { display: flex; flex-wrap: wrap; gap: 6px; }
.lpb-pr-chip {
    display: inline-flex; align-items: center; gap: 6px; height: 28px; max-width: 100%; padding: 0 10px; border-radius: 8px;
    background: var(--surface-2); border: 1px solid var(--border); color: var(--text); font-size: 11px; font-weight: 600; white-space: nowrap;
    transition: transform .55s cubic-bezier(.5, 0, .2, 1), opacity .4s ease;
}
.lpb-pr-chip .icon { flex: none; color: var(--lp-a); }
.lpb-pr-chip.is-merge { transform: translateY(34px) scale(.9); opacity: 0; }
.lpb-pr-card {
    overflow: hidden; border-radius: 14px; border: 1px solid var(--lp-a-line); background: var(--surface);
    box-shadow: 0 20px 40px -28px var(--lp-shadow); transition: opacity .45s ease, transform .45s ease;
}
.lpb-pr.is-split .lpb-pr-card { opacity: 0; transform: translateY(12px) scale(.98); }
.lpb-pr-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--lp-a-soft); border-bottom: 1px solid var(--lp-a-line); }
.lpb-pr-amt { flex: none; font-size: var(--fs-md); color: var(--lp-ink); }
.lpb-pr-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 10px 12px 12px; }
.lpb-pr-body.has-qr { grid-template-columns: minmax(0, 1fr) 108px; align-items: start; }
.lpb-pr-fields { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.lpb-pr-f { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; align-items: center; padding: 6px 7px 6px 10px; border-radius: 9px; background: var(--surface-2); }
.lpb-pr-f dt { grid-column: 1; font-size: 10px; font-weight: 600; color: var(--text-2); }
.lpb-pr-f dd { grid-column: 1; margin: 0; min-height: 1.45em; line-height: 1.45; font-size: var(--fs-xs); font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lpb-pr-f.is-ref dd { white-space: normal; }
.lpb-copy {
    grid-column: 2; grid-row: 1 / span 2; display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px; border-radius: 7px;
    font-size: 11px; font-weight: 600; color: var(--lp-a); background: var(--surface); border: 1px solid var(--lp-a-line);
    transition: transform .15s ease, background .2s ease, color .2s ease;
}
.lpb-copy.is-pressed { transform: scale(.92); background: var(--lp-a-soft); }
.lpb-copy.is-done { color: var(--c-success); background: var(--c-success-soft); border-color: transparent; }
.lpb-qr { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.lpb-qr strong { display: block; font-size: var(--fs-xs); }
.lpb-qr small { display: block; margin-top: 2px; font-size: 10px; line-height: 1.35; color: var(--text-2); }
/* QR immer dunkel auf hell, auch im Dunkelmodus */
.lpb-qr-svg { display: block; width: 100%; max-width: 108px; height: auto; border-radius: 8px; border: 1px solid var(--border); }
.lpb-qr-svg rect { fill: light-dark(var(--surface), var(--text)); }
.lpb-qr-svg path { fill: light-dark(var(--text), var(--bg)); }
.lpb-qr-svg.is-mini { width: 64px; flex: none; }

/* ---------- Lieferanten und Ausgaben-Vorschau ---------- */
.lpb-fc { display: flex; flex-direction: column; gap: 12px; min-height: 300px; }
.lpb-fc-head { margin: 0; display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.lpb-fc-bars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: end; padding: 10px 12px 8px; border-radius: 12px; background: var(--surface-2); }
.lpb-fc-bar { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.lpb-fc-bar b { font-size: var(--fs-xs); color: var(--text); white-space: nowrap; transition: opacity .3s ease; transition-delay: calc(var(--d) * 120ms + 500ms); }
.lpb-fc-bar i {
    display: block; width: 100%; max-width: 56px; height: calc(110px * var(--h)); min-height: 6px; border-radius: 8px 8px 3px 3px;
    background: linear-gradient(180deg, var(--lp-a), color-mix(in oklab, var(--lp-a) 55%, var(--lp-a2)));
    transition: height .8s cubic-bezier(.3, .7, .2, 1); transition-delay: calc(var(--d) * 120ms);
}
.lpb-fc-bar span { max-width: 100%; font-size: 10px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lpb-fc.is-zero .lpb-fc-bar i { height: 6px; }
.lpb-fc.is-zero .lpb-fc-bar b { opacity: 0; transition-delay: 0s; }
.lpb-fc-vendor { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); }
.lpb-fc-vendor .lp-lines span { white-space: normal; }
.lpb-fc-miss { flex: none; transition: opacity .3s ease, transform .3s ease; }
.lpb-fc.is-scan .lpb-fc-miss { opacity: 0; transform: scale(.85); }

/* ---------- Frag Alex ---------- */
.lpb-ask { display: flex; flex-direction: column; gap: 12px; min-height: 270px; }
.lpb-ask-input { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 7px 7px 7px 12px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); }
.lpb-ask-input > .icon { flex: none; }
.lpb-ask-q { flex: 1; min-width: 0; font-size: var(--fs-sm); color: var(--text); line-height: 1.4; }
.lpb-ask-send { flex: none; }
.lpb-ask-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.lpb-ask-rows li {
    display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border);
    font-size: var(--fs-sm); transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.lpb-ask-rows li > .icon { flex: none; color: var(--text-2); }
.lpb-ask-rows li > span:first-of-type { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lpb-ask-rows li b { flex: none; white-space: nowrap; }
.lpb-ask-rows li.is-hit { background: var(--lp-a-soft); border-color: var(--lp-a-line); box-shadow: inset 3px 0 0 var(--lp-a); }
.lpb-ask-rows li.is-hit > .icon { color: var(--lp-a); }

/* ---------- Sicherheit: bezahlt wird bei der Bank ---------- */
.lpb-safe-side { align-items: stretch; gap: 16px; }
.lpb-safe-flow { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.lpb-safe-flow li {
    position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px;
    background: var(--surface); border: 1px solid var(--border); font-size: var(--fs-sm); font-weight: 600; color: var(--text);
}
.lpb-safe-flow li > span { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--lp-a-soft); color: var(--lp-a); }
.lpb-safe-flow li + li::before { content: ""; position: absolute; left: 31px; top: -13px; width: 2px; height: 12px; background: var(--lp-a-line); }
.lpb-safe-flow li.is-bank { border-color: var(--lp-a-line); box-shadow: 0 18px 34px -24px var(--lp-glow); }
.lpb-safe-flow li.is-bank > span { background: var(--lp-a); color: var(--lp-on-a); }

/* ---------- Mini-Demos im Raster ---------- */
.lpb-mini-pills { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.lpb-mini-arrow { color: var(--text-2); }
.lpb-mini-keys { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 600; color: var(--text); }
.lpb-mini-qr { display: flex; align-items: center; gap: 12px; }

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 900px) {
    .lpb-stage-win .lp-win-body { min-height: 300px; }
    .lpb-s1 .lpb-dropzone span, .lpb-s4 .lpb-pay-note { display: none; }
    .lpb-s1 .lpb-dropzone { padding: 12px; }
    .lpb-s3 .lpb-learned { display: none; }
}
@media (max-width: 640px) {
    .lpb-read { grid-template-columns: 96px minmax(0, 1fr); gap: 10px; }
    .lpb-paper { min-height: 250px; padding: 10px 8px; gap: 6px; }
    .lpb-paper-title { font-size: var(--fs-xs); margin-top: 4px; }
    .lpb-paper-terms, .lpb-paper::after { display: none; }
    .lpb-paper-sum { flex-direction: column; align-items: flex-start; gap: 2px; }
    @keyframes lpb-scan { from { transform: translateY(-40px); } to { transform: translateY(250px); } }
    .lpb-fields { gap: 5px; }
    .lpb-field { padding: 5px 7px; }
    .lpb-files { gap: 4px; }
    .lpb-file { padding: 0 4px 0 7px; font-size: 10px; }
    .lpb-file > .icon { display: none; }
    .lpb-bills li .lp-tag { display: none; }
    .lpb-kv3 { gap: 6px; margin: 10px 0; }
    .lpb-kv3 div { padding: 6px 8px; }
    .lpb-kv3 dd { font-size: var(--fs-xs); }
    .lpb-walk-btns .lp-pill { padding: 0 9px; }
    .lpb-walk-btns .lp-pill .icon { display: none; }
    .lpb-ib-cmp { grid-template-columns: 1fr; }
    .lpb-pr-body.has-qr { grid-template-columns: 1fr; }
    .lpb-qr { flex-direction: row; text-align: left; align-items: center; }
    .lpb-qr .lpb-qr-svg { width: 72px; flex: none; }
    .lpb-copy span { display: none; }
    .lpb-copy { padding: 0 7px; }
    .lpb-fc-bars { gap: 6px; padding-inline: 8px; }
    .lpb-fc-bar b { font-size: 10px; }
    .lpb-fc-vendor .lpb-fc-miss { display: none; }
    .lpb-ask-rows li .lp-tag { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .lpb-file.is-active .lpb-file-st, .lpb-paper.is-scan .lpb-scan { animation: none !important; }
    .lp-js [data-step] .lpb-s1 *, .lp-js [data-step] .lpb-s2 *, .lp-js [data-step] .lpb-s3 *, .lp-js [data-step] .lpb-s4 * { animation: none !important; }
    .lpb-hero *, .lpb-iban *, .lpb-sk *, .lpb-pr *, .lpb-fc *, .lpb-ask * { transition: none !important; }
}
