/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-zpk0f61o0i] {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main[b-zpk0f61o0i] {
    flex: 1;
    /* Ohne das laufen breite Tabellen und Karten auf dem Handy aus dem Bildschirm heraus: ein
       Flex-Kind darf von sich aus nicht schmaler werden als sein breitester Inhalt (min-width:auto),
       und dann schiebt eine einzige breite Tabelle die ganze Seite zur Seite. */
    min-width: 0;
}

/* --- SEITENLEISTE ------------------------------------------------------------------------
   Unter 900px eine Schublade: sie liegt ueber dem Inhalt, steht standardmaessig links neben
   dem Bildschirm und faehrt nur ueber den Drei-Striche-Knopf der Kopfleiste herein.

   Vorher war sie auch auf dem Handy ein ganz normaler Block im Seitenfluss - bei gut zwanzig
   Menuepunkten hiess das: der erste Bildschirm bestand komplett aus Navigation, der eigentliche
   Inhalt fing irgendwo darunter an. Grenze bis 17.11.2026 641px; mit der 248px breiten Leiste des
   Redesigns blieb zwischen 641 und 900px zu wenig Platz fuer Tabellen und Kennzahlen. */
.sidebar[b-zpk0f61o0i] {
    background-color: var(--nm-sidebar, #16232e);
    color: var(--nm-sidebar-text, #c9d2d9);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(86vw, 280px);
    /* Unter den Dialogen der Seiten (die liegen auf 1050), ueber allem anderen. */
    z-index: 1045;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.2s ease-out;
    /* Duenne dunkle Bildlaufleiste (17.11.2026): die Standardleiste des Browsers war hellgrau und stand als Streifen neben
       der dunklen Seitenleiste. Gilt auch fuer den inneren Bereich (.nav-scrollable in NavMenu.razor.css). */
    scrollbar-width: thin;
    scrollbar-color: #2a3946 transparent;
}

.sidebar[b-zpk0f61o0i]::-webkit-scrollbar {
    width: 8px;
}

.sidebar[b-zpk0f61o0i]::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar[b-zpk0f61o0i]::-webkit-scrollbar-thumb {
    background: #2a3946;
    border-radius: 4px;
}

.sidebar.offen[b-zpk0f61o0i] {
    transform: translateX(0);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.45);
}

.menue-hintergrund[b-zpk0f61o0i] {
    position: fixed;
    inset: 0;
    background: rgba(10, 16, 20, 0.5);
    z-index: 1040;
}

.menue-knopf[b-zpk0f61o0i] {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 1.35rem;
    line-height: 1;
    color: var(--ff-ink, #17232c);
    background: var(--ff-paper-raised, #fff);
    border: 1px solid var(--ff-line-strong, #dedad0);
    border-radius: var(--nm-radius-feld, 10px);
}

    .menue-knopf:active[b-zpk0f61o0i] {
        background-color: rgba(22, 35, 42, 0.07);
    }

.menue-schliessen[b-zpk0f61o0i] {
    position: absolute;
    top: 0.9rem;
    right: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
    border: 0;
    border-radius: 0.5rem;
    z-index: 2;
}

/* Wer Bewegung im Betriebssystem abgeschaltet hat, bekommt die Schublade ohne Fahrt. */
@media (prefers-reduced-motion: reduce) {
    .sidebar[b-zpk0f61o0i] {
        transition: none;
    }
}

/* --- BAND DER SUPPORT-ANSICHT ---
   Klebt ueber der oberen Leiste und laesst sich nicht wegscrollen. Die feste Hoehe ist kein
   Selbstzweck: die Leiste darunter ist ebenfalls sticky und bekommt genau diesen Wert als
   Versatz (siehe .support-band ~ .top-row), sonst wuerden beide uebereinanderliegen. */
.support-band[b-zpk0f61o0i] {
    position: sticky;
    top: 0;
    z-index: 1036;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: 2.5rem;
    padding: 0 0.9rem;
    background: #7a2417;
    color: #fff;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

    .support-band[b-zpk0f61o0i]  strong {
        color: #ffe9a8;
    }

/* --- KOPFLEISTE (17.11.2026) ---------------------------------------------------------------
   Im Inhaltsbereich, nicht ueber der Seitenleiste. Klasse .top-row bleibt (Versatz unter dem Support-Band).
   Auch auf dem Handy stehenbleiben: der Drei-Striche-Knopf ist der einzige Weg zur Navigation.
   Die Leiste selbst (Hintergrund, Linie, Sticky) ist so breit wie der Inhaltsbereich; der Inhalt der Leiste steckt in
   .top-row-innen (= .page-container), damit er dieselben Kanten hat wie der Seiteninhalt. */
.top-row[b-zpk0f61o0i] {
    position: sticky;
    top: 0;
    z-index: 1030;
    padding: 12px 0;
    background-color: var(--ff-paper, #f4f3ee);
    border-bottom: 1px solid var(--nm-topbar-rand, #e2dfd6);
    font-size: 14px;
}

/* Ausserhalb der Startseite (17.11.2026, Nutzerentscheidung): nur der Drei-Striche-Knopf, schmaler als die volle Leiste.
   Ab 900px ganz weg (siehe unten), dort fuehrt die feste Seitenleiste. */
.top-row.nur-menue[b-zpk0f61o0i] {
    padding: 8px 0;
}

.top-row-innen[b-zpk0f61o0i] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
}

/* Gemeinsamer Container fuer Kopfleiste und Seiteninhalt (17.11.2026, Nutzervorgabe): mittig, hoechstens 1600px,
   seitlicher Rand 16px (Telefon) bis 48px (breite Bildschirme). Vorher: Inhalt 32px Rand ohne Obergrenze, die Startseite
   begrenzte sich selbst auf 1240px - dadurch klebte der Inhalt links und liess rechts viel Platz leer. */
.page-container[b-zpk0f61o0i] {
    width: 100%;
    max-width: 1600px;
    margin-inline: auto;
    padding-inline: clamp(16px, 3vw, 48px);
    box-sizing: border-box;
}

    /* Steht das Support-Band darueber, rutscht die Leiste um dessen Hoehe nach unten. */
    .support-band ~ .top-row[b-zpk0f61o0i] {
        top: 2.5rem;
    }

.kopf-links[b-zpk0f61o0i] {
    display: flex;
    flex: 1 1 260px;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.kopf-suche[b-zpk0f61o0i] {
    display: flex;
    flex: 0 1 380px;
    align-items: center;
    gap: 8px;
    min-width: 0;
    height: 44px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid var(--ff-line-strong, #dedad0);
    border-radius: var(--nm-radius-feld, 10px);
    background: var(--ff-paper-raised, #fff);
    color: var(--ff-placeholder, #66717a);
}

    .kopf-suche input[b-zpk0f61o0i] {
        height: 100%;
        flex: 1;
        min-width: 0;
        border: 0;
        background: transparent;
        color: var(--ff-ink, #17232c);
        font-size: 14px;
    }

        .kopf-suche input[b-zpk0f61o0i]::placeholder {
            color: var(--ff-placeholder, #66717a);
            opacity: 1;
        }

        /* Der Rahmen sitzt am ganzen Feld (focus-within), nicht am inneren Eingabefeld. */
        .kopf-suche input:focus-visible[b-zpk0f61o0i] {
            outline: none !important;
        }

    .kopf-suche:focus-within[b-zpk0f61o0i] {
        outline: 3px solid var(--ff-accent-strong, #1e6b4a);
        outline-offset: 2px;
    }

.kopf-rechts[b-zpk0f61o0i] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    /* Bricht die Gruppe auf schmalem Fenster (ca. 900-1100px neben der Seitenleiste) in eine zweite Zeile um, bleibt sie
       rechtsbuendig statt unter dem Suchfeld links zu haengen (space-between wirkt nur auf Zeilen mit mehreren Kindern). */
    margin-left: auto;
}

.kopf-knopf[b-zpk0f61o0i],
.kopf-jahr[b-zpk0f61o0i] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--ff-line-strong, #dedad0);
    border-radius: var(--nm-radius-feld, 10px);
    background: var(--ff-paper-raised, #fff);
    color: var(--ff-ink, #17232c);
    font-weight: 500;
    font-size: 14px;
}

.kopf-jahr[b-zpk0f61o0i] {
    padding-right: 10px;
    font-weight: 600;
    cursor: pointer;
}

    .kopf-knopf:hover[b-zpk0f61o0i],
    .kopf-jahr:hover[b-zpk0f61o0i] {
        border-color: #c9c4b8;
    }

.kopf-neu[b-zpk0f61o0i] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 16px;
    border-radius: var(--nm-radius-feld, 10px);
    font-size: 14px;
}

@media (max-width: 640.98px) {
    /* Im Support-Band bleiben auf dem Telefon nur die drei Angaben, auf die es ankommt:
       dass es eine Support-Ansicht ist, wessen Bestand, und der Ausstieg. */
    .support-band-detail[b-zpk0f61o0i] {
        display: none;
    }

    /* Auf dem Telefon nur Symbole - Name steht im aria-label bzw. im versteckten Text. */
    .kopf-knopf-text[b-zpk0f61o0i] {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}

@media (min-width: 900px) {
    .page[b-zpk0f61o0i] {
        flex-direction: row;
    }

    /* Ab hier die feste Leiste: im Seitenfluss, immer sichtbar.
       ".offen" steht ausdruecklich mit dabei: wird das Fenster bei offener Schublade breiter, bliebe
       sonst der Schlagschatten der Schublade an der festen Leiste haengen. */
    .sidebar[b-zpk0f61o0i], .sidebar.offen[b-zpk0f61o0i] {
        position: sticky;
        top: 0;
        bottom: auto;
        flex: 0 0 248px;
        width: 248px;
        height: 100vh;
        transform: none;
        box-shadow: none;
        z-index: auto;
    }

    .menue-knopf[b-zpk0f61o0i], .menue-schliessen[b-zpk0f61o0i], .menue-hintergrund[b-zpk0f61o0i] {
        display: none;
    }

    /* Ohne den Knopf waere die Leiste ausserhalb der Startseite leer - keine leere Flaeche und keine Linie stehen lassen. */
    .top-row.nur-menue[b-zpk0f61o0i] {
        display: none;
    }
}

#blazor-error-ui[b-zpk0f61o0i] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-zpk0f61o0i] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* Seitenleiste nach Entwurf "Variante A" (17.11.2026). Aufklappen auf schmalen Bildschirmen (Schublade, Burger in der
   Kopfleiste) steckt in MainLayout.razor.css. Farben aus app.css (--nm-*); die Leiste ist in jedem Farbschema dunkel.
   Kontraste: #c9d2d9 auf #16232e 11,5:1, Gruppenlabel #8a9aa6 auf #16232e 5,9:1, Gold #e0b36a mit Text #16232e 8,1:1. */

.nav-scrollable[b-s8ksc08ukt] {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 100%;
    padding: 20px 14px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.5;
    /* Duenne dunkle Bildlaufleiste, siehe .sidebar in MainLayout.razor.css (17.11.2026). */
    scrollbar-width: thin;
    scrollbar-color: #2a3946 transparent;
}

.nav-scrollable[b-s8ksc08ukt]::-webkit-scrollbar {
    width: 8px;
}

.nav-scrollable[b-s8ksc08ukt]::-webkit-scrollbar-track {
    background: transparent;
}

.nav-scrollable[b-s8ksc08ukt]::-webkit-scrollbar-thumb {
    background: #2a3946;
    border-radius: 4px;
}

/* --- Marke ---------------------------------------------------------------------------- */
.marke[b-s8ksc08ukt] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 8px;
}

.marke-link[b-s8ksc08ukt] {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
}

.marke-n[b-s8ksc08ukt] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--nm-gold, #e0b36a);
    color: var(--nm-gold-text, #16232e);
    /* Der Ersatzwert greift nur, falls app.css nicht geladen wurde - er nennt deshalb dieselbe Schrift wie die Variable. */
    font-family: var(--ff-font-serif, 'Source Serif 4', Georgia, serif);
    font-weight: 700;
    font-size: 19px;
}

.marke-name[b-s8ksc08ukt] {
    font-family: var(--ff-font-serif, 'Source Serif 4', Georgia, serif);
    font-weight: 700;
    font-size: 21px;
    color: #fff;
}

.beta-badge[b-s8ksc08ukt] {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.4;
    padding: 2px 6px;
    border-radius: 5px;
    border: 1px solid #4a5b68;
    color: var(--nm-sidebar-text, #c9d2d9);
}

/* --- Neu erstellen -------------------------------------------------------------------- */
.neu[b-s8ksc08ukt] {
    position: relative;
}

.neu-knopf[b-s8ksc08ukt] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 44px;
    border: 0;
    border-radius: var(--nm-radius-feld, 10px);
    background: var(--nm-gold, #e0b36a);
    color: var(--nm-gold-text, #16232e);
    font-weight: 600;
    font-size: 14px;
}

    .neu-knopf:hover[b-s8ksc08ukt] {
        background: #e8c385;
    }

.neu-menue[b-s8ksc08ukt] {
    list-style: none;
    margin: 6px 0 0;
    padding: 6px;
    border-radius: var(--nm-radius-feld, 10px);
    background: #1d2d3a;
    border: 1px solid var(--nm-sidebar-trenner, #2a3946);
}

    .neu-menue a[b-s8ksc08ukt] {
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 40px;
        padding: 0 10px;
        border-radius: var(--nm-radius-nav, 8px);
        color: #fff;
        text-decoration: none;
        font-weight: 500;
    }

        .neu-menue a:hover[b-s8ksc08ukt] {
            background: rgba(255, 255, 255, 0.08);
        }

/* --- Navigation ----------------------------------------------------------------------- */
.hauptnav[b-s8ksc08ukt] {
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex: 1;
}

.gruppe[b-s8ksc08ukt] {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gruppe-titel[b-s8ksc08ukt] {
    padding: 0 10px 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--nm-sidebar-label, #8a9aa6);
}

/* Gruppentitel als Knopf (Gruppe "Betrieb" klappt auf): sieht aus wie die anderen Titel, plus Pfeil rechts. */
.gruppe-knopf[b-s8ksc08ukt] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 32px;
    padding-top: 4px;
    border: 0;
    border-radius: var(--nm-radius-nav, 8px);
    background: none;
    text-align: left;
    cursor: pointer;
}

    .gruppe-knopf:hover[b-s8ksc08ukt] {
        color: #fff;
    }

/* Eintraege: ganze Zeile klickbar, 38px hoch (Entwurf: 36-38px). ::deep, weil NavLink das <a> rendert. */
.nav-scrollable[b-s8ksc08ukt]  .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 38px;
    padding: 0 10px;
    border: 0;
    border-radius: var(--nm-radius-nav, 8px);
    background: none;
    color: var(--nm-sidebar-text, #c9d2d9);
    font-weight: 500;
    font-size: 14px;
    text-align: left;
    text-decoration: none;
    transition: background-color 0.12s ease, color 0.12s ease;
}

    .nav-scrollable[b-s8ksc08ukt]  .nav-link .bi {
        width: 18px;
        font-size: 16px;
        line-height: 1;
        text-align: center;
        flex-shrink: 0;
    }

    .nav-scrollable[b-s8ksc08ukt]  .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.06);
        color: #fff;
    }

    .nav-scrollable[b-s8ksc08ukt]  .nav-link.active {
        background-color: var(--nm-sidebar-aktiv, rgba(255, 255, 255, 0.09));
        color: #fff;
        font-weight: 600;
    }

        .nav-scrollable[b-s8ksc08ukt]  .nav-link.active > .bi:first-child {
            color: var(--nm-gold, #e0b36a);
        }

/* Zahlen an den Eintraegen. Rechnungen: dunkel (#e8edf1 auf #2c3d4a 10:1), Bank: Gold (Hinweis, Text #16232e). */
.nav-zahl[b-s8ksc08ukt] {
    margin-left: auto;
    padding: 0 7px;
    border-radius: 999px;
    background: #2c3d4a;
    color: #e8edf1;
    font-size: 12px;
    font-weight: 600;
    line-height: 20px;
    white-space: nowrap;
}

    .nav-zahl.gold[b-s8ksc08ukt] {
        background: var(--nm-gold, #e0b36a);
        color: var(--nm-gold-text, #16232e);
        font-weight: 700;
    }

/* Neue Online-Entscheidungen am Eintrag "Angebote" (Runde 72) - wie die Bank-Plakette in Gold, weil sie etwas zu tun meldet. */
.zahl-plakette[b-s8ksc08ukt] {
    margin-left: auto;
    min-width: 20px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--nm-gold, #e0b36a);
    color: var(--nm-gold-text, #16232e);
    font-size: 12px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    white-space: nowrap;
}

/* --- Unten: Einstellungen, Hilfe, Nutzerbox --------------------------------------------- */
.unten[b-s8ksc08ukt] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 14px;
    border-top: 1px solid var(--nm-sidebar-trenner, #2a3946);
}

.hilfe-menue[b-s8ksc08ukt] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 18px;
}

.nutzer[b-s8ksc08ukt] {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 10px;
    border-radius: var(--nm-radius-feld, 10px);
    background: #1d2d3a;
}

.nutzer-bild[b-s8ksc08ukt] {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #2e4252;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
}

.nutzer-text[b-s8ksc08ukt] {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    line-height: 1.3;
}

    .nutzer-text strong[b-s8ksc08ukt] {
        overflow: hidden;
        color: #fff;
        font-size: 13px;
        font-weight: 600;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .nutzer-text span[b-s8ksc08ukt] {
        color: #9dacb7;
        font-size: 12px;
    }

.nutzer-sperren[b-s8ksc08ukt] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: var(--nm-radius-nav, 8px);
    background: transparent;
    color: var(--nm-sidebar-text, #c9d2d9);
    font-size: 17px;
}

    .nutzer-sperren:hover[b-s8ksc08ukt] {
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
    }

.rechtliches[b-s8ksc08ukt] {
    padding: 10px 10px 0;
    color: var(--nm-sidebar-label, #8a9aa6);
    font-size: 12px;
}

    .rechtliches a[b-s8ksc08ukt] {
        color: var(--nm-sidebar-label, #8a9aa6);
        text-decoration: none;
    }

        .rechtliches a:hover[b-s8ksc08ukt] {
            color: #fff;
            text-decoration: underline;
        }

/* Systemstatus (Admin) steht ueber den unteren Eintraegen; sein eigener Rand oben waere doppelt. */
.unten[b-s8ksc08ukt]  .border-top.border-secondary {
    border-top: 0 !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-h2z60hvh5x],
.components-reconnect-repeated-attempt-visible[b-h2z60hvh5x],
.components-reconnect-failed-visible[b-h2z60hvh5x],
.components-pause-visible[b-h2z60hvh5x],
.components-resume-failed-visible[b-h2z60hvh5x],
.components-rejoining-animation[b-h2z60hvh5x] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-h2z60hvh5x],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-h2z60hvh5x],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-h2z60hvh5x],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-h2z60hvh5x],
#components-reconnect-modal.components-reconnect-retrying[b-h2z60hvh5x],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-h2z60hvh5x],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-h2z60hvh5x],
#components-reconnect-modal.components-reconnect-failed[b-h2z60hvh5x],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-h2z60hvh5x] {
    display: block;
}


#components-reconnect-modal[b-h2z60hvh5x] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-h2z60hvh5x 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-h2z60hvh5x 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-h2z60hvh5x 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-h2z60hvh5x]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-h2z60hvh5x 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-h2z60hvh5x {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-h2z60hvh5x {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-h2z60hvh5x {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-h2z60hvh5x] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-h2z60hvh5x] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-h2z60hvh5x] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-h2z60hvh5x] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-h2z60hvh5x] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-h2z60hvh5x] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-h2z60hvh5x] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-h2z60hvh5x 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-h2z60hvh5x] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-h2z60hvh5x {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}

/* Auf dem Telefon ist dieser Dialog der haeufigste Gast ueberhaupt - ein Blazor-Server-Circuit
   reisst im Mobilfunk regelmaessig kurz ab. Mit den festen 20rem plus 2rem Innenabstand ragte er
   auf einem 360px-Bildschirm rechts aus dem Bild heraus, samt "Erneut versuchen"-Knopf. */
@media (max-width: 640.98px) {
    #components-reconnect-modal[b-h2z60hvh5x] {
        width: auto;
        max-width: calc(100vw - 2rem);
        margin: 15vh 1rem;
        padding: 1.25rem;
    }
}
/* /Components/Pages/Home.razor.rz.scp.css */
/* Startseite nach Entwurf "Variante A" (17.11.2026). Vorher Inline-<style> in Home.razor. Farben aus app.css (--ff-*, --nm-*).
   Kontraste (WCAG AA): Text #17232c auf Weiss 15:1, sekundaer #55616a 6,2:1, Gruen #1b5e3f auf #e3f1e9 6,9:1,
   Braun #7a4b0e auf #fbefd9 7,4:1, Rot #a63d33 auf Weiss 6,3:1. */

.dash[b-zpuxktwclu] {
    display: flex;
    flex-direction: column;
    gap: 24px;
    /* Kein eigenes max-width (17.11.2026): die Breite kommt vom gemeinsamen Seitencontainer des Layouts. */
    min-width: 0;
    padding: 32px 0;
    color: var(--ff-ink);
    font-size: 14px;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
}

.dash-kopf[b-zpuxktwclu] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .dash-kopf h1[b-zpuxktwclu] {
        margin: 0;
        font-family: var(--ff-font-serif);
        font-weight: 700;
        font-size: 32px;
        line-height: 1.2;
        letter-spacing: -0.01em;
    }

    .dash-kopf p[b-zpuxktwclu] {
        margin: 0;
        color: var(--ff-muted);
    }

.beta-hinweis[b-zpuxktwclu] {
    background-color: var(--ff-warn-bg);
    border-left: 4px solid var(--ff-accent-decor) !important;
    border-radius: var(--nm-radius-karte);
    color: var(--ff-ink);
}

.beta-hinweis-icon[b-zpuxktwclu] {
    color: var(--ff-accent-decor);
}

/* --- Karten ---------------------------------------------------------------------------- */
.karte[b-zpuxktwclu] {
    min-width: 0;
    padding: 20px 24px;
    border: 1px solid var(--ff-line);
    border-radius: var(--nm-radius-karte);
    background: var(--ff-paper-raised);
}

    .karte h2[b-zpuxktwclu] {
        margin: 0;
        font-family: var(--ff-font-sans);
        font-size: 16px;
        font-weight: 600;
        letter-spacing: 0;
    }

.karte-kopf[b-zpuxktwclu] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* Zeilen als Raster statt fester Breiten (Nutzervorgabe 17.11.2026). stretch: die Karte "Zu erledigen" ist so hoch wie das
   Diagramm daneben. minmax(0, ...) damit breite Inhalte (Tabelle, Diagramm) die Spalte nicht aufblaehen. */
.row-2-1[b-zpuxktwclu] {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
    align-items: stretch;
    gap: 16px;
}

.breit[b-zpuxktwclu],
.schmal[b-zpuxktwclu] {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (max-width: 1099.98px) {
    .row-2-1[b-zpuxktwclu] {
        grid-template-columns: 1fr;
    }
}

/* Warnhinweis fehlender Pflichtangaben (Entwurf 17.11.2026). Braun #7a4b0e auf #fbefd9 = 7,4:1. */
.warnhinweis[b-zpuxktwclu] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    padding: 14px 18px;
    border: 1px solid #f0ddb5;
    border-radius: 14px;
    background: #fbefd9;
    color: #7a4b0e;
}

.warnhinweis-text[b-zpuxktwclu] {
    flex: 1 1 280px;
    min-width: 0;
}

.warnhinweis-knopf[b-zpuxktwclu] {
    padding: 6px 14px;
    border: 1px solid #7a4b0e;
    border-radius: 10px;
    background: transparent;
    color: #7a4b0e;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

    .warnhinweis-knopf:hover[b-zpuxktwclu] {
        background: #f5e2bd;
    }

.leer[b-zpuxktwclu] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 24px 0 8px;
    color: var(--ff-muted);
}

    .leer p[b-zpuxktwclu] {
        margin: 0;
    }

.leer-text[b-zpuxktwclu] {
    margin: 0;
    color: var(--ff-muted);
}

.alle[b-zpuxktwclu] {
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
}

/* --- Kennzahlen ------------------------------------------------------------------------ */
.kennzahlen[b-zpuxktwclu] {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 1099.98px) {
    .kennzahlen[b-zpuxktwclu] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 599.98px) {
    .kennzahlen[b-zpuxktwclu] {
        grid-template-columns: 1fr;
    }
}

.kennzahl[b-zpuxktwclu] {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    border: 1px solid var(--ff-line);
    border-radius: var(--nm-radius-karte);
    background: var(--ff-paper-raised);
    color: var(--ff-ink);
    text-decoration: none;
    transition: border-color 0.12s ease;
}

    .kennzahl:hover[b-zpuxktwclu] {
        border-color: var(--nm-nulllinie);
        color: var(--ff-ink);
    }

.kennzahl-titel[b-zpuxktwclu] {
    color: var(--ff-muted);
    font-size: 13px;
    font-weight: 600;
}

.kennzahl-wert[b-zpuxktwclu] {
    font-family: var(--ff-font-serif, 'Source Serif 4', Georgia, serif);
    font-weight: 700;
    font-size: 30px;
    line-height: 1.1;
    font-variant-numeric: tabular-nums lining-nums;
    overflow-wrap: anywhere;
}

/* Fliesstext statt Flex: Betraege (<Betrag>) und Text brechen dann wie ein Satz um, das Symbol bleibt vorn. */
.kennzahl-unter[b-zpuxktwclu] {
    display: block;
    color: var(--ff-muted);
    font-size: 13px;
}

    .kennzahl-unter .bi[b-zpuxktwclu] {
        margin-right: 6px;
    }

.offen-ton[b-zpuxktwclu] {
    color: var(--ff-warn);
}

.gut-ton[b-zpuxktwclu] {
    color: var(--ff-good);
    font-weight: 500;
}

.schlecht-ton[b-zpuxktwclu] {
    color: var(--ff-bad);
}

.kennzahl-unter.schlecht-ton[b-zpuxktwclu] {
    font-weight: 500;
}

/* Vierte Kennzahl "Frei verfuegbar": dunkle Karte #16232E, ganze Karte ein Knopf (oeffnet den Dialog "Was bleibt nach Steuern?"). */
.kennzahl.frei[b-zpuxktwclu] {
    width: 100%;
    border: 0;
    background: #16232e;
    color: #fff;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

    .kennzahl.frei:hover[b-zpuxktwclu] {
        background: #1d2f3d;
        color: #fff;
    }

    .kennzahl.frei:focus-visible[b-zpuxktwclu] {
        outline: 3px solid #e0b36a;
        outline-offset: 2px;
    }

    .kennzahl.frei .kennzahl-titel[b-zpuxktwclu],
    .kennzahl.frei .kennzahl-unter[b-zpuxktwclu] {
        color: #c9d2d9;
    }

    .kennzahl.frei .kennzahl-wert[b-zpuxktwclu] {
        color: #fff;
    }

/* Betraege in Unterzeilen nie mitten in der Zahl umbrechen (Fund Fix-Runde 1: "... Steuern 0 / EUR"). */
.nowrap[b-zpuxktwclu] {
    white-space: nowrap;
}

/* --- Diagramm -------------------------------------------------------------------------- */
.legende[b-zpuxktwclu] {
    display: flex;
    gap: 16px;
    color: #3b4750;
    font-size: 13px;
}

    .legende > span[b-zpuxktwclu] {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

/* inline-block: ein leeres <span> hat sonst keine Abmessung. Farben mit Rueckfallwert, falls die Variablen fehlen. */
.farbe[b-zpuxktwclu] {
    display: inline-block;
    flex: 0 0 10px;
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

    .farbe.ein[b-zpuxktwclu] {
        background: var(--nm-einnahmen, #1e7a52);
    }

    .farbe.aus[b-zpuxktwclu] {
        background: var(--nm-ausgaben, #c9772a);
    }

/* 64px oben fuer den Tooltip der hoechsten Saeule. */
.diagramm[b-zpuxktwclu] {
    display: flex;
    gap: 8px;
    padding-top: 64px;
}

.achse[b-zpuxktwclu] {
    position: relative;
    flex: 0 0 64px;
    height: 200px;
    color: var(--ff-placeholder);
    font-size: 12px;
    text-align: right;
}

    .achse span[b-zpuxktwclu] {
        position: absolute;
        right: 0;
        transform: translateY(50%);
        white-space: nowrap;
    }

.plot[b-zpuxktwclu] {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.flaeche[b-zpuxktwclu] {
    position: relative;
    height: 200px;
}

.linie[b-zpuxktwclu] {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--nm-hilfslinie, #eeebe4);
}

    .linie.null[b-zpuxktwclu] {
        bottom: 0;
        background: var(--nm-nulllinie, #cfcac0);
    }

.monate[b-zpuxktwclu] {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 4px;
}

.monat[b-zpuxktwclu] {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    cursor: default;
}

    .monat:hover[b-zpuxktwclu],
    .monat:focus[b-zpuxktwclu],
    .monat:focus-within[b-zpuxktwclu] {
        background: var(--ff-paper, #f4f3ee);
    }

/* Zwei Balken je Monat, je 14px, 3px Abstand (Gap der Spalte). Die Hoehe kommt als ganze Pixel aus dem Markup. */
.balken[b-zpuxktwclu] {
    display: block;
    flex: 0 1 14px;
    width: 14px;
    border-radius: 4px 4px 0 0;
}

    .balken.ein[b-zpuxktwclu] {
        background: var(--nm-einnahmen, #1e7a52);
    }

    .balken.aus[b-zpuxktwclu] {
        background: var(--nm-ausgaben, #c9772a);
    }

.tip[b-zpuxktwclu] {
    position: absolute;
    bottom: 100%;
    left: 50%;
    z-index: 2;
    display: none;
    flex-direction: column;
    margin-bottom: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--nm-tooltip, #16232e);
    color: #fff;
    font-size: 12px;
    line-height: 1.5;
    text-align: left;
    white-space: nowrap;
    transform: translateX(-50%);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

    .tip > span[b-zpuxktwclu] {
        display: flex;
        align-items: center;
        gap: 6px;
    }

.monat:hover .tip[b-zpuxktwclu],
.monat:focus .tip[b-zpuxktwclu],
.monat:focus-within .tip[b-zpuxktwclu] {
    display: flex;
}

/* Randmonate: Tooltip nicht ueber den Kartenrand hinaus. */
.monat.links .tip[b-zpuxktwclu] {
    left: 0;
    transform: none;
}

.monat.rechts .tip[b-zpuxktwclu] {
    left: auto;
    right: 0;
    transform: none;
}

/* Farbmuster im Tooltip heller als die Balken - auf dem dunklen Grund (#16232e) sonst zu wenig Kontrast. */
.punkt[b-zpuxktwclu] {
    width: 8px;
    height: 8px;
    border-radius: 2px;
}

    .punkt.ein[b-zpuxktwclu] {
        background: #4fb487;
    }

    .punkt.aus[b-zpuxktwclu] {
        background: #e39a55;
    }

.monatsnamen[b-zpuxktwclu] {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 4px;
    color: var(--ff-muted);
    font-size: 12px;
    text-align: center;
}

/* Summenzeile unter dem Diagramm: dünne Linie darueber, drei kleine Werte. */
.summen[b-zpuxktwclu] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 32px;
    margin: 4px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--ff-divider, #eeebe4);
}

    .summen > div[b-zpuxktwclu] {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .summen dt[b-zpuxktwclu] {
        color: var(--ff-muted);
        font-size: 12px;
        font-weight: 500;
    }

    .summen dd[b-zpuxktwclu] {
        margin: 0;
        font-size: 15px;
        font-weight: 600;
    }

.hinweis[b-zpuxktwclu] {
    margin: 0;
    color: #66717a;
    font-size: 12px;
}

/* --- Zu erledigen ---------------------------------------------------------------------- */
.aufgaben[b-zpuxktwclu] {
    margin: 0;
    padding: 0;
    list-style: none;
}

    .aufgaben li[b-zpuxktwclu] {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        padding: 12px 0;
        border-bottom: 1px solid var(--ff-divider);
    }

        .aufgaben li:last-child[b-zpuxktwclu] {
            border-bottom: 0;
        }

        .aufgaben li > a[b-zpuxktwclu] {
            padding: 6px 0;
            font-weight: 600;
            font-size: 13px;
            text-decoration: none;
            white-space: nowrap;
        }

.aufgabe-icon[b-zpuxktwclu] {
    display: flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    height: 34px;
    border-radius: var(--nm-radius-feld);
    font-size: 16px;
}

    .aufgabe-icon.warn[b-zpuxktwclu] {
        background: var(--ff-warn-bg);
        color: var(--ff-warn);
    }

    .aufgabe-icon.info[b-zpuxktwclu] {
        background: #e6eef3;
        color: #2b4a5e;
    }

    .aufgabe-icon.gut[b-zpuxktwclu] {
        background: var(--ff-good-bg);
        color: var(--ff-good);
    }

    .aufgabe-icon.schlecht[b-zpuxktwclu] {
        background: var(--ff-bad-bg);
        color: var(--ff-bad);
    }

.aufgabe-text[b-zpuxktwclu] {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

    .aufgabe-text strong[b-zpuxktwclu] {
        font-weight: 600;
    }

    .aufgabe-text > span[b-zpuxktwclu] {
        color: var(--ff-muted);
        font-size: 13px;
    }

.rest-erledigt[b-zpuxktwclu] {
    margin: 4px 0 0;
    color: #55616a;
    font-size: 13px;
}

    .rest-erledigt .bi[b-zpuxktwclu] {
        color: var(--ff-good);
    }

.alles-erledigt[b-zpuxktwclu] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--ff-good);
    font-weight: 500;
}

/* --- Letzte Rechnungen ----------------------------------------------------------------- */
.tabelle-rahmen[b-zpuxktwclu] {
    overflow-x: auto;
}

.tabelle[b-zpuxktwclu] {
    width: 100%;
    min-width: 480px;
    border-collapse: collapse;
    font-size: 14px;
}

    .tabelle th[b-zpuxktwclu] {
        padding: 8px;
        border-bottom: 1px solid var(--ff-line);
        color: var(--ff-muted);
        font-size: 12px;
        font-weight: 600;
        text-align: left;
    }

    .tabelle td[b-zpuxktwclu] {
        padding: 12px 8px;
        border-bottom: 1px solid var(--nm-tabelle-zeile);
    }

    .tabelle th:first-child[b-zpuxktwclu],
    .tabelle td:first-child[b-zpuxktwclu] {
        padding-left: 0;
    }

    .tabelle .rechts[b-zpuxktwclu] {
        text-align: right;
        white-space: nowrap;
    }

    .tabelle .status-spalte[b-zpuxktwclu] {
        padding-left: 16px;
        padding-right: 0;
    }

    .tabelle .nr a[b-zpuxktwclu] {
        font-weight: 600;
        text-decoration: none;
    }

        .tabelle .nr a:hover[b-zpuxktwclu] {
            text-decoration: underline;
        }

.grau[b-zpuxktwclu] {
    color: var(--ff-muted);
    white-space: nowrap;
}

.stark[b-zpuxktwclu] {
    font-weight: 600;
}

.pille[b-zpuxktwclu] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

    .pille.gut[b-zpuxktwclu] {
        background: var(--ff-good-bg);
        color: var(--ff-good);
    }

    .pille.offen[b-zpuxktwclu] {
        background: var(--ff-warn-bg);
        color: var(--ff-warn);
    }

    .pille.schlecht[b-zpuxktwclu] {
        background: var(--ff-bad-bg);
        color: var(--ff-bad);
    }

    /* Wie badge-unvollstaendig der Rechnungsliste: gestrichelt, damit es sich auch ohne Farbe von "Ueberfaellig" abhebt. */
    .pille.unvollstaendig[b-zpuxktwclu] {
        background: var(--ff-bad-bg);
        color: var(--ff-bad);
        border: 1px dashed var(--ff-bad);
    }

    .pille.storniert[b-zpuxktwclu] {
        background: var(--ff-divider);
        color: var(--ff-muted);
    }

/* --- Umsatz nach Kunde ----------------------------------------------------------------- */
.kunden[b-zpuxktwclu] {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .kunden li[b-zpuxktwclu] {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

.kunde-zeile[b-zpuxktwclu] {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.kunde-name[b-zpuxktwclu] {
    overflow: hidden;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.spur[b-zpuxktwclu] {
    display: block;
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--nm-hilfslinie);
}

.fuellung[b-zpuxktwclu] {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: #2b4a5e;
}

@media (max-width: 640.98px) {
    .dash[b-zpuxktwclu] {
        padding-top: 20px;
    }

        .dash-kopf h1[b-zpuxktwclu] {
            font-size: 26px;
        }

    .karte[b-zpuxktwclu] {
        padding: 16px;
    }

    .achse[b-zpuxktwclu] {
        flex-basis: 48px;
    }

    .balken[b-zpuxktwclu] {
        width: 6px;
    }
}
/* /Components/Pages/Rechnungen.razor.rz.scp.css */
/* Auf den Erstellungsdialog begrenzt: bestehende Listen, PDF-Designs und andere Seiten bleiben unberuehrt.
   Redesign 16./17.11.2026: zwei Spalten (Formular | Vorschau), Klickflaechen ab 44px, Zahlen tabellarisch. */
.invoice-composer[b-sbrh643fca] {
    --invoice-line: #e9e2d8;
    /* Hilfstexte (16.11.2026): #776e62 trug auf dem Vorschau-Grund #f1ede6 nur 4,3:1. #6b6257 traegt auf Weiss 6,0:1,
       auf #faf8f4 5,6:1, auf #f1ede6 5,1:1 (WCAG AA verlangt 4,5:1). Kleinste Hilfstextgroesse: 13px = .8125rem. */
    --invoice-muted: #6b6257;
    --invoice-help: .8125rem;
    --invoice-text: #3c342b;
    --invoice-ziel: 44px;
    /* 17.11.2026 (Dashboard-Redesign): App-Schrift Inter statt fest "Segoe UI" - nur die Familie, Groessen unveraendert. */
    font-family: var(--ff-font-sans, "Segoe UI", system-ui, sans-serif);
    padding: 20px;
}
.invoice-dialog[b-sbrh643fca] { width: 100%; max-width: 1840px; margin: 0 auto; height: calc(100dvh - 40px); }
.invoice-shell[b-sbrh643fca] { height: 100%; overflow: hidden; border: 1px solid var(--invoice-line); border-radius: 18px; background: #faf8f4; box-shadow: var(--shadow-2); }

/* Kopf: Titel, Badge, Hinweis zu Nummer und Datum */
.invoice-header[b-sbrh643fca] { flex-shrink: 0; align-items: flex-start; padding: 18px 28px; background: #fff; border-bottom: 1px solid var(--invoice-line); }
.invoice-title-row[b-sbrh643fca] { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.invoice-header .modal-title[b-sbrh643fca] { font-family: inherit; font-size: 1.5rem; letter-spacing: -.035em; color: #3b3025; }
.invoice-badge[b-sbrh643fca] { display: inline-flex; align-items: center; min-height: 26px; padding: 2px 10px; border-radius: 999px; background: #f3ead9; color: #674619; font-size: var(--invoice-help); font-weight: 600; }
.invoice-header-hint[b-sbrh643fca] { margin: 4px 0 0; color: var(--invoice-muted); font-size: var(--invoice-help); }
.invoice-header .btn-close[b-sbrh643fca] { filter: none; width: var(--invoice-ziel); height: var(--invoice-ziel); padding: 0; margin: -6px -10px 0 auto; }

/* container-type: die Vorschau braucht die sichtbare Hoehe dieses Scrollbereichs (100cqh), siehe .invoice-preview.
   Die Hoehe kommt vom Dialog (flex), nicht vom Inhalt - size-Containment aendert sie nicht. */
.invoice-body[b-sbrh643fca] { padding: 0; min-height: 0; overflow-y: auto; scrollbar-gutter: stable; container-type: size; }
.invoice-workspace[b-sbrh643fca] { --invoice-gap: 24px; display: grid; grid-template-columns: minmax(600px, 1.35fr) minmax(340px, 1fr); align-items: start; gap: 22px; padding: var(--invoice-gap); }
.invoice-form[b-sbrh643fca] { min-width: 0; background: #fff; border: 1px solid var(--invoice-line); border-radius: 14px; box-shadow: 0 3px 14px #49351a05; }
.invoice-section[b-sbrh643fca] { padding: 22px; }
.invoice-section + .invoice-section[b-sbrh643fca] { border-top: 1px solid var(--invoice-line); }
.invoice-section-heading[b-sbrh643fca] { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.invoice-section-heading h6[b-sbrh643fca] { color: #433628; font-size: .94rem; margin: 0; letter-spacing: -.015em; }
.invoice-section-heading > span[b-sbrh643fca] { color: var(--invoice-muted); font-size: var(--invoice-help); }
.invoice-error[b-sbrh643fca] { margin: 16px 24px 0; }

/* Gemeinsame Bausteine */
.invoice-composer[b-sbrh643fca]  .form-control, .invoice-composer[b-sbrh643fca]  .form-select { min-height: var(--invoice-ziel); border-color: #dfd7ca; border-radius: 7px; font-size: .875rem; color: var(--invoice-text); }
.invoice-composer[b-sbrh643fca]  textarea.form-control { min-height: 66px; }
.invoice-composer[b-sbrh643fca]  .form-control:focus, .invoice-composer[b-sbrh643fca]  .form-select:focus { border-color: var(--ff-accent); box-shadow: var(--focus-ring); }
.invoice-composer[b-sbrh643fca]  .form-label, .invoice-composer .form-check-label[b-sbrh643fca] { font-size: var(--invoice-help); color: var(--invoice-text); font-weight: 600; }
.invoice-composer[b-sbrh643fca]  .invalid-feedback { font-size: var(--invoice-help); }
.invoice-composer .text-muted[b-sbrh643fca], .invoice-composer[b-sbrh643fca]  .text-muted { color: var(--invoice-muted) !important; }
.invoice-help[b-sbrh643fca] { font-size: var(--invoice-help); line-height: 1.5; color: var(--invoice-muted); }
.invoice-warn[b-sbrh643fca] { color: #7a4600; }
.invoice-btn[b-sbrh643fca] { min-height: var(--invoice-ziel); font-size: .875rem; }
.invoice-icon-btn[b-sbrh643fca] { display: inline-flex; align-items: center; justify-content: center; width: var(--invoice-ziel); height: var(--invoice-ziel); padding: 0; border: 0; border-radius: 8px; color: var(--invoice-muted); background: transparent; }
.invoice-icon-btn:hover[b-sbrh643fca] { background: #f0ebe2; color: #433628; }
.num[b-sbrh643fca], .invoice-composer[b-sbrh643fca]  .num { font-variant-numeric: tabular-nums; text-align: right; }
.invoice-check[b-sbrh643fca] { min-height: var(--invoice-ziel); display: flex; align-items: center; gap: 8px; }

/* Kunde */
.invoice-customer-search[b-sbrh643fca] { position: relative; }
/* Ein Rahmen statt zwei: das Feld selbst traegt weder Rand noch Ring, den Tastaturfokus zeigt die Huelle. */
.invoice-search[b-sbrh643fca] { display: flex; align-items: center; gap: 8px; min-height: var(--invoice-ziel); padding: 0 6px 0 12px; border: 1px solid #dfd7ca; border-radius: 8px; background: #fff; color: var(--invoice-muted); }
.invoice-search input[b-sbrh643fca] { flex: 1; min-width: 0; min-height: 40px; padding: 0; border: 0; background: transparent; font-size: .875rem; color: var(--invoice-text); }
.invoice-search input:focus[b-sbrh643fca], .invoice-search input:focus-visible[b-sbrh643fca] { outline: 0 !important; box-shadow: none; }
.invoice-search:focus-within[b-sbrh643fca] { border-color: var(--ff-accent-strong); outline: 3px solid var(--ff-accent-strong); outline-offset: 2px; }
.invoice-customer-dropdown[b-sbrh643fca] { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); max-height: 320px; overflow-y: auto; padding: 6px; background: #fff; border: 1px solid var(--invoice-line); border-radius: 10px; box-shadow: 0 10px 30px #3b302526; }
.invoice-dropdown-heading[b-sbrh643fca] { padding: 6px 10px 4px; font-size: var(--invoice-help); font-weight: 600; color: var(--invoice-muted); }
.invoice-dropdown-item[b-sbrh643fca] { display: flex; flex-direction: column; align-items: flex-start; width: 100%; min-height: var(--invoice-ziel); padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; text-align: left; color: var(--invoice-text); font-size: .875rem; }
.invoice-dropdown-item small[b-sbrh643fca] { font-size: var(--invoice-help); color: var(--invoice-muted); font-variant-numeric: tabular-nums; }
.invoice-dropdown-item:hover[b-sbrh643fca], .invoice-dropdown-item.aktiv[b-sbrh643fca] { background: #f3ead9; }
.invoice-dropdown-new[b-sbrh643fca] { flex-direction: row; align-items: center; gap: 8px; margin-top: 4px; border-top: 1px solid var(--invoice-line); border-radius: 0 0 8px 8px; color: #674619; font-weight: 600; }
.invoice-dropdown-empty[b-sbrh643fca] { padding: 8px 10px; font-size: var(--invoice-help); color: var(--invoice-muted); }
.invoice-customer-card[b-sbrh643fca] { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1px solid var(--invoice-line); border-radius: 10px; background: #faf8f4; font-size: var(--invoice-help); color: var(--invoice-muted); overflow-wrap: anywhere; }
.invoice-customer-main[b-sbrh643fca] { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.invoice-customer-card strong[b-sbrh643fca] { font-size: .95rem; color: #3b3025; }
.invoice-customer-card address[b-sbrh643fca] { margin: 6px 0 0; font-style: normal; line-height: 1.45; color: var(--invoice-text); }
.invoice-customer-warning[b-sbrh643fca] { margin-top: 6px; color: #7a4600; }
.invoice-zusatz:not(:empty)[b-sbrh643fca] { margin-top: 14px; }

/* Positionen */
.invoice-lines[b-sbrh643fca] { overflow-x: auto; border: 1px solid var(--invoice-line); border-radius: 10px; }
.invoice-lines.is-muted[b-sbrh643fca] { opacity: .55; }
.invoice-lines-table[b-sbrh643fca] { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .875rem; color: var(--invoice-text); }
.invoice-lines-table thead th[b-sbrh643fca] { position: sticky; top: 0; background: #faf8f4; color: var(--invoice-muted); font-size: var(--invoice-help); font-weight: 600; padding: 10px 6px; white-space: nowrap; border-bottom: 1px solid var(--invoice-line); }
.invoice-lines-table td[b-sbrh643fca] { padding: 4px; vertical-align: top; }
.invoice-lines-table tbody + tbody[b-sbrh643fca] { border-top: 1px solid #f0ebe3; }
.invoice-lines-table .col-text[b-sbrh643fca] { width: auto; min-width: 180px; }
.invoice-lines-table .col-menge[b-sbrh643fca] { width: 84px; }
.invoice-lines-table .col-einheit[b-sbrh643fca] { width: 124px; }
.invoice-composer[b-sbrh643fca]  select.invoice-cell { padding-right: 1.6rem; background-position: right .45rem center; }
.invoice-lines-table .col-preis[b-sbrh643fca] { width: 112px; }
.invoice-lines-table .col-ust[b-sbrh643fca] { width: 60px; }
.invoice-lines-table .col-summe[b-sbrh643fca] { width: 108px; }
.invoice-lines-table .col-menu[b-sbrh643fca] { width: 52px; text-align: right; }
.invoice-lines-table td.col-ust[b-sbrh643fca], .invoice-lines-table td.col-summe[b-sbrh643fca] { padding-top: 15px; white-space: nowrap; }
.invoice-lines-table td.col-summe[b-sbrh643fca] { font-weight: 600; }
.invoice-lines-table thead .num[b-sbrh643fca] { text-align: right; }
/* Zellenfelder ohne eigenen Rahmen, bis man hineinklickt - die Tabelle liest sich wie ein Beleg. */
.invoice-composer[b-sbrh643fca]  .invoice-cell { border-color: transparent; background-color: transparent; padding-left: 8px; padding-right: 8px; }
.invoice-composer[b-sbrh643fca]  .invoice-cell:hover { border-color: #e6dfd3; }
.invoice-composer[b-sbrh643fca]  .invoice-cell:focus { background-color: #fff; }
.invoice-composer[b-sbrh643fca]  .invoice-cell.is-invalid { border-color: var(--bs-form-invalid-border-color); }
.invoice-line-leer .invoice-cell[b-sbrh643fca], .invoice-composer[b-sbrh643fca]  .invoice-line-leer .invoice-cell { background-color: #fbfaf7; border: 1px dashed #dfd7ca; }
.invoice-subrow td[b-sbrh643fca] { padding-top: 0; }
.invoice-subtext[b-sbrh643fca] { min-height: var(--invoice-ziel) !important; border-color: transparent !important; background: transparent; color: var(--invoice-muted) !important; font-size: var(--invoice-help) !important; resize: vertical; }
.invoice-subtext:hover[b-sbrh643fca] { border-color: #e6dfd3 !important; }
.invoice-rabatt[b-sbrh643fca] { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding-left: 8px; font-size: var(--invoice-help); color: var(--invoice-muted); }
.invoice-rabatt label[b-sbrh643fca] { font-weight: 600; color: var(--invoice-text); }
.invoice-rabatt[b-sbrh643fca]  .form-control { width: 84px; }
.invoice-subtle[b-sbrh643fca] { color: var(--invoice-muted); font-size: var(--invoice-help); }
.invoice-line-fehler td[b-sbrh643fca] { padding: 0 12px 10px; color: var(--bs-danger-text-emphasis, #842029); font-size: var(--invoice-help); }
.invoice-row-actions[b-sbrh643fca] { position: relative; display: inline-block; }
.invoice-row-menu[b-sbrh643fca] { position: absolute; z-index: 15; right: 0; top: calc(100% + 4px); min-width: 190px; padding: 6px; background: #fff; border: 1px solid var(--invoice-line); border-radius: 10px; box-shadow: 0 10px 30px #3b302526; text-align: left; }
.invoice-row-menu button[b-sbrh643fca] { display: flex; align-items: center; gap: 10px; width: 100%; min-height: var(--invoice-ziel); padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--invoice-text); font-size: .875rem; text-align: left; }
.invoice-row-menu button:hover:not(:disabled)[b-sbrh643fca] { background: #f3ead9; }
.invoice-row-menu button:disabled[b-sbrh643fca] { color: #a39a8e; }
.invoice-row-menu .invoice-menu-danger[b-sbrh643fca] { color: #a52a1f; }
.invoice-lines-footer[b-sbrh643fca] { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-top: 16px; }
.invoice-lines-tools[b-sbrh643fca] { display: flex; flex-direction: column; gap: 8px; max-width: 320px; }
.invoice-totals[b-sbrh643fca] { width: 300px; flex-shrink: 0; }
.invoice-totals-satz[b-sbrh643fca] { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.invoice-totals-satz label[b-sbrh643fca] { font-size: var(--invoice-help); font-weight: 600; color: var(--invoice-text); }
.invoice-totals-satz .form-select[b-sbrh643fca] { width: 170px; }
.invoice-totals-list[b-sbrh643fca] { margin: 12px 0 0; }
.invoice-totals-list > div[b-sbrh643fca] { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: .875rem; }
.invoice-totals-list dt[b-sbrh643fca] { font-weight: 400; color: var(--invoice-muted); }
.invoice-totals-list dd[b-sbrh643fca] { margin: 0; font-variant-numeric: tabular-nums; color: var(--invoice-text); white-space: nowrap; }
.invoice-totals-list .invoice-totals-sum[b-sbrh643fca] { margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--invoice-line); }
.invoice-totals-sum dt[b-sbrh643fca], .invoice-totals-sum dd[b-sbrh643fca] { font-weight: 700; color: #3b3025; font-size: 1rem; }

/* Datum und Zahlung */
/* Untereinander: die Schnellwahl braucht die Breite (nebeneinander brach "Zeitraum" bei 1600 px in eine zweite Zeile). */
.invoice-date-grid[b-sbrh643fca] { display: grid; grid-template-columns: 1fr; gap: 18px; }
.invoice-field[b-sbrh643fca] { min-width: 0; margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 8px; }
.invoice-field legend[b-sbrh643fca] { float: none; width: auto; margin: 0 0 2px; font-size: var(--invoice-help); font-weight: 600; color: var(--invoice-text); }
.invoice-segmented[b-sbrh643fca] { display: flex; flex-wrap: wrap; gap: 6px; }
.invoice-seg[b-sbrh643fca] { display: inline-flex; align-items: center; min-height: var(--invoice-ziel); padding: 0 14px; border: 1px solid #dfd7ca; border-radius: 8px; background: #fff; color: var(--invoice-text); font-size: .875rem; cursor: pointer; user-select: none; }
.invoice-seg:hover[b-sbrh643fca] { background: #f7f2e9; }
.btn-check:checked + .invoice-seg[b-sbrh643fca] { background: #f3ead9; border-color: var(--ff-accent); color: #674619; font-weight: 600; box-shadow: inset 0 0 0 1px var(--ff-accent); }
.btn-check:focus-visible + .invoice-seg[b-sbrh643fca] { outline: 3px solid var(--ff-accent-strong); outline-offset: 2px; }
.invoice-date-pair[b-sbrh643fca] { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.invoice-date-pair[b-sbrh643fca]  input { width: 170px; flex: 0 1 auto; }
.invoice-composer[b-sbrh643fca]  .invoice-date-single { width: 190px; }

/* Zusaetze als Chips */
.invoice-chips[b-sbrh643fca] { display: flex; flex-wrap: wrap; gap: 8px; }
.invoice-chip[b-sbrh643fca] { display: inline-flex; align-items: stretch; border: 1px dashed #cfc4b2; border-radius: 999px; background: #fff; color: var(--invoice-text); }
.invoice-chip-main[b-sbrh643fca] { display: inline-flex; align-items: center; gap: 8px; min-height: var(--invoice-ziel); padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: inherit; font-size: .875rem; }
.invoice-chip-main:hover[b-sbrh643fca] { color: #674619; }
.invoice-chip.aktiv[b-sbrh643fca] { border-style: solid; border-color: #d9c39b; background: #f3ead9; color: #4f3712; }
.invoice-chip.aktiv .invoice-chip-main[b-sbrh643fca] { padding-right: 6px; font-weight: 600; }
.invoice-chip.offen[b-sbrh643fca] { box-shadow: 0 0 0 2px var(--ff-accent); }
.invoice-chip.fehler[b-sbrh643fca] { border-color: #b02a37; background: #fdf0f1; color: #842029; }
.invoice-chip-wert[b-sbrh643fca] { font-weight: 400; font-variant-numeric: tabular-nums; }
.invoice-chip-wert[b-sbrh643fca]::before { content: "·"; margin-right: 6px; }
.invoice-chip-x[b-sbrh643fca] { display: inline-flex; align-items: center; justify-content: center; width: var(--invoice-ziel); min-height: var(--invoice-ziel); border: 0; border-radius: 999px; background: transparent; color: inherit; }
.invoice-chip-x:hover[b-sbrh643fca] { background: #00000010; }
.invoice-option-panel[b-sbrh643fca] { margin-top: 14px; padding: 16px; border: 1px solid var(--invoice-line); border-radius: 10px; background: #faf8f4; display: flex; flex-direction: column; gap: 8px; }
.invoice-option-title[b-sbrh643fca] { font-size: var(--invoice-help); font-weight: 600; color: var(--invoice-text); }
.invoice-inline[b-sbrh643fca] { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.invoice-composer[b-sbrh643fca]  .invoice-narrow { width: 110px; }
.invoice-files[b-sbrh643fca] { list-style: none; margin: 0; padding: 0; border: 1px solid var(--invoice-line); border-radius: 8px; background: #fff; }
.invoice-files li[b-sbrh643fca] { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-left: 12px; font-size: var(--invoice-help); }
.invoice-files li + li[b-sbrh643fca] { border-top: 1px solid #f0ebe3; }

/* Vorschau immer ganz im Bild: genau so hoch wie der sichtbare Scrollbereich abzueglich der Raender (100cqh = Hoehe
   von .invoice-body), die Buehne darin fuellt den Rest (RechnungsEntwurfsVorschau.razor.css). Erste Zeile = Rueckfall
   fuer Browser ohne Container-Einheiten. */
.invoice-preview[b-sbrh643fca] { min-width: 0; position: sticky; top: var(--invoice-gap); height: calc(100dvh - 280px); height: calc(100cqh - 2 * var(--invoice-gap)); }

/* Fussleiste: ausserhalb des Scrollbereichs, immer sichtbar */
.invoice-footer[b-sbrh643fca] { flex-shrink: 0; flex-wrap: nowrap; justify-content: flex-start; gap: 14px; padding: 12px 24px; background: #fff; border-top: 1px solid var(--invoice-line); box-shadow: 0 -4px 16px #49351a04; }
.invoice-footer > *[b-sbrh643fca] { margin: 0; }
.invoice-footer-total[b-sbrh643fca] { display: flex; flex-direction: column; line-height: 1.15; margin-right: auto !important; }
.invoice-footer-label[b-sbrh643fca] { font-size: var(--invoice-help); color: var(--invoice-muted); }
.invoice-footer-amount[b-sbrh643fca] { font-size: 1.6rem; letter-spacing: -.03em; color: #3b3025; font-variant-numeric: tabular-nums; white-space: nowrap; }
.invoice-footer-detail[b-sbrh643fca] { font-size: var(--invoice-help); color: var(--invoice-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.invoice-footer-missing[b-sbrh643fca] { font-size: var(--invoice-help); color: #7a4600; text-align: right; }
.invoice-footer-actions[b-sbrh643fca] { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.invoice-footer .btn-outline-primary:disabled[b-sbrh643fca] { color: var(--invoice-muted); border-color: #dfd7ca; background: transparent; opacity: 1; }
.invoice-cancel[b-sbrh643fca] { min-height: var(--invoice-ziel); color: var(--invoice-text); text-decoration: none; font-size: .875rem; }
.invoice-cancel:hover[b-sbrh643fca] { text-decoration: underline; }

@media (max-width: 1399px) {
    .invoice-workspace[b-sbrh643fca] { --invoice-gap: 18px; grid-template-columns: minmax(540px, 1.4fr) minmax(300px, 1fr); gap: 16px; }
    .invoice-section[b-sbrh643fca] { padding: 18px; }
}
@media (max-width: 1100px) {
    .invoice-workspace[b-sbrh643fca] { grid-template-columns: minmax(0, 1fr); }
    /* Vorschau steht unter dem Formular: feste Buehnenhoehe statt Bildschirmhoehe. */
    .invoice-preview[b-sbrh643fca] { position: static; height: auto; }
    .invoice-lines-footer[b-sbrh643fca] { flex-direction: column; align-items: stretch; }
    .invoice-totals[b-sbrh643fca] { width: 100%; }
}
@media (max-width: 760px) {
    .invoice-composer[b-sbrh643fca] { padding: 0; }
    .invoice-dialog[b-sbrh643fca] { height: 100dvh; max-width: 100%; }
    .invoice-shell[b-sbrh643fca] { border-radius: 0; }
    .invoice-header[b-sbrh643fca] { padding: 14px 16px; }
    .invoice-header .modal-title[b-sbrh643fca] { font-size: 1.25rem; }
    .invoice-workspace[b-sbrh643fca] { --invoice-gap: 12px; }
    .invoice-section[b-sbrh643fca] { padding: 16px; }
    .invoice-footer[b-sbrh643fca] { flex-wrap: wrap; padding: 10px 14px; }
    .invoice-footer-total[b-sbrh643fca] { flex: 1 0 100%; }
    .invoice-footer-missing[b-sbrh643fca] { flex: 1 0 100%; text-align: left; }
    .invoice-footer-actions[b-sbrh643fca] { flex: 1 0 100%; justify-content: flex-end; flex-wrap: wrap; }
    .invoice-error[b-sbrh643fca] { margin: 12px 14px 0; }
}
/* /Components/RechnungsEntwurfsVorschau.razor.rz.scp.css */
/* Hoehe kommt vom Rechnungsdialog (.invoice-preview, Rechnungen.razor.css): Kopf und Fuss fest, die Buehne fuellt den
   Rest - so ist die Vorschau beim Scrollen immer ganz zu sehen. Hilfstexte mind. 13px (.8125rem), #6b6257 traegt
   auf #f1ede6 5,1:1 (vorher #776e62: 4,3:1). */
.draft-preview[b-vv6nuj2cnz] { display: flex; flex-direction: column; height: 100%; border: 1px solid #e9e2d8; border-radius: 14px; background: #f1ede6; overflow: hidden; font-family: var(--ff-font-sans, "Segoe UI", system-ui, sans-serif); }
.draft-preview-heading[b-vv6nuj2cnz] { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 16px; background: #faf8f4; border-bottom: 1px solid #e9e2d8; }
.draft-preview-heading h6[b-vv6nuj2cnz] { font-size: .85rem; margin: 0; color: #433628; }
.draft-preview-status[b-vv6nuj2cnz] { font-size: .8125rem; color: #725321; background: #eee3d0; border-radius: 20px; padding: 4px 10px; text-align: center; }
.draft-preview-stage[b-vv6nuj2cnz] { position: relative; flex: 1 1 auto; min-height: 0; margin: 16px; overflow: auto; background: white; box-shadow: 0 4px 18px #49351a12; }
/* absolut: eine Prozenthoehe am iframe loest sich in einer flexiblen Buehne nicht in jedem Browser auf. */
.draft-preview-stage iframe[b-vv6nuj2cnz] { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.draft-preview-message[b-vv6nuj2cnz] { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 28px; height: 100%; }
.draft-preview-message > i[b-vv6nuj2cnz] { font-size: 2.4rem; color: #b89a6f; }
.draft-preview-message strong[b-vv6nuj2cnz] { font-size: .85rem; color: #574a38; }
.draft-preview-message p[b-vv6nuj2cnz] { font-size: .8125rem; color: #6b6257; line-height: 1.6; margin: 0; }
.draft-preview-footer[b-vv6nuj2cnz] { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 0 16px 16px; color: #6b6257; font-size: .8125rem; }
.draft-preview-footer .btn[b-vv6nuj2cnz] { display: flex; gap: 6px; align-items: center; font-size: .8125rem; white-space: nowrap; }
@media (max-width: 1100px) {
    /* Vorschau unter dem Formular (kein sticky): feste Hoehe. */
    .draft-preview-stage[b-vv6nuj2cnz] { flex: none; height: 650px; max-height: 75dvh; }
}
