/* /Components/AiChatPanel.razor.rz.scp.css */
/* Wiederverwendbare Chat-Komponente (Issue #277). Folgt dem App-Theme (Light/Dark)
   über die --xi-Tokens: User-Blase in Primärfarbe, Bot-Blase als Theme-Oberfläche. */

.ai-chat-panel[b-tpk9h1wltu] {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 0;
    background: var(--xi-bg);
}

/* Geräte-Kontext-Chip (StartContext) — aufgeräumte Pille statt blasser Mut-Text. */
.ai-chat-context[b-tpk9h1wltu] {
    flex: 0 0 auto;
    margin: .65rem .8rem .15rem;
    padding: .4rem .7rem;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    align-self: flex-start;
    max-width: calc(100% - 1.6rem);
    background: var(--xi-accent-100);
    color: var(--xi-primary);
    border: 1px solid rgba(var(--xi-accent-rgb), 0.22);
    border-radius: var(--xi-radius-pill);
    font-size: .78rem;
    font-weight: 500;
    line-height: 1.3;
}
.ai-chat-context .bi[b-tpk9h1wltu] { color: var(--xi-accent); font-size: .85rem; flex: 0 0 auto; }
.ai-chat-context span[b-tpk9h1wltu] { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.xi-dark .ai-chat-context[b-tpk9h1wltu] {
    background: rgba(var(--xi-accent-rgb), 0.16);
    color: var(--xi-text);
    border-color: rgba(var(--xi-accent-rgb), 0.30);
}
html.xi-dark .ai-chat-context .bi[b-tpk9h1wltu] { color: #7fb0f5; }

.ai-chat-messages[b-tpk9h1wltu] {
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
    padding: .85rem .8rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .55rem;
    scrollbar-width: thin;
    scrollbar-color: var(--xi-border-strong) transparent;
}
/* Dünne, themenechte Scrollleiste. */
.ai-chat-messages[b-tpk9h1wltu]::-webkit-scrollbar { width: 8px; }
.ai-chat-messages[b-tpk9h1wltu]::-webkit-scrollbar-track { background: transparent; }
.ai-chat-messages[b-tpk9h1wltu]::-webkit-scrollbar-thumb {
    background: var(--xi-border-strong);
    border-radius: var(--xi-radius-pill);
    border: 2px solid transparent;
    background-clip: padding-box;
}
.ai-chat-messages[b-tpk9h1wltu]::-webkit-scrollbar-thumb:hover {
    background: var(--xi-text-muted);
    background-clip: padding-box;
}

/* Eine Nachrichtenzeile (Avatar + Blase). */
.ai-chat-row[b-tpk9h1wltu] {
    display: flex;
    align-items: flex-end;
    gap: .5rem;
    max-width: 100%;
    animation: ai-msg-in-b-tpk9h1wltu .28s cubic-bezier(.16, .84, .44, 1) both;
}
.ai-chat-row-user[b-tpk9h1wltu] { flex-direction: row-reverse; }
@keyframes ai-msg-in-b-tpk9h1wltu {
    from { opacity: 0; transform: translateY(7px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Kleiner Bot-Avatar links neben Bot-Blasen, bündig mit der Blasen-Unterkante. */
.ai-chat-msg-avatar[b-tpk9h1wltu] {
    width: 1.6rem;
    height: 1.6rem;
    flex: 0 0 auto;
    margin-bottom: 1rem;
    border-radius: var(--xi-radius-pill);
    background: var(--xi-accent-100);
    color: var(--xi-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
}
html.xi-dark .ai-chat-msg-avatar[b-tpk9h1wltu] {
    background: rgba(var(--xi-accent-rgb), 0.18);
    color: #7fb0f5;
}

.ai-chat-bubble-wrap[b-tpk9h1wltu] { display: flex; flex-direction: column; max-width: 78%; min-width: 0; }
.ai-chat-row-user .ai-chat-bubble-wrap[b-tpk9h1wltu] { align-items: flex-end; }

.ai-chat-bubble[b-tpk9h1wltu] {
    padding: .6rem .85rem;
    border-radius: var(--xi-radius-lg);
    word-break: break-word;
    line-height: 1.45;
    font-size: .9rem;
}
.ai-chat-bubble-bot[b-tpk9h1wltu] {
    background: var(--xi-surface);
    color: var(--xi-text);
    border: 1px solid var(--xi-border);
    border-bottom-left-radius: var(--xi-radius-sm);
    box-shadow: var(--xi-shadow-1);
}
html.xi-dark .ai-chat-bubble-bot[b-tpk9h1wltu] { background: var(--xi-surface-2); }
.ai-chat-bubble-user[b-tpk9h1wltu] {
    background: var(--xi-primary);
    color: var(--xi-text-on-primary);
    border-bottom-right-radius: var(--xi-radius-sm);
    box-shadow: var(--xi-shadow-1);
}

.ai-chat-text[b-tpk9h1wltu] { white-space: pre-wrap; }

.ai-chat-time[b-tpk9h1wltu] {
    font-size: .68rem;
    color: var(--xi-text-muted);
    margin-top: .2rem;
    padding: 0 .15rem;
}
.ai-chat-row-user .ai-chat-time[b-tpk9h1wltu] { text-align: right; }

/* Bot-Antworten werden als Markdown (über Markdig) zu HTML gerendert. Der Inhalt
   trägt kein CSS-Isolation-Attribut — Block-Elemente deshalb per ::deep ansprechen. */
.ai-chat-md[b-tpk9h1wltu] { white-space: normal; }
.ai-chat-md[b-tpk9h1wltu]  > :first-child { margin-top: 0; }
.ai-chat-md[b-tpk9h1wltu]  > :last-child { margin-bottom: 0; }
.ai-chat-md[b-tpk9h1wltu]  p { margin: 0 0 .5rem; }
.ai-chat-md[b-tpk9h1wltu]  ul,
.ai-chat-md[b-tpk9h1wltu]  ol { margin: .35rem 0 .5rem; padding-left: 1.15rem; }
.ai-chat-md[b-tpk9h1wltu]  li { margin-bottom: .2rem; }
.ai-chat-md[b-tpk9h1wltu]  li::marker { color: var(--xi-accent); }
.ai-chat-md[b-tpk9h1wltu]  strong { font-weight: 600; color: var(--xi-text); }
.ai-chat-md[b-tpk9h1wltu]  a { color: var(--xi-accent); text-decoration: underline; text-underline-offset: 2px; }
.ai-chat-md[b-tpk9h1wltu]  a:hover { color: var(--xi-accent-600); }
.ai-chat-md[b-tpk9h1wltu]  code {
    background: var(--xi-accent-100);
    color: var(--xi-primary);
    padding: .05rem .3rem;
    border-radius: var(--xi-radius-sm);
    font-size: .85em;
}
html.xi-dark .ai-chat-md[b-tpk9h1wltu]  code { background: rgba(var(--xi-accent-rgb), 0.18); color: #cfe0fb; }
.ai-chat-md[b-tpk9h1wltu]  pre {
    background: var(--xi-surface-2);
    border: 1px solid var(--xi-border);
    padding: .5rem .6rem;
    border-radius: var(--xi-radius-md);
    overflow-x: auto;
    margin: 0 0 .5rem;
}
.ai-chat-md[b-tpk9h1wltu]  pre code { background: transparent; padding: 0; }
.ai-chat-md[b-tpk9h1wltu]  h1,
.ai-chat-md[b-tpk9h1wltu]  h2,
.ai-chat-md[b-tpk9h1wltu]  h3,
.ai-chat-md[b-tpk9h1wltu]  h4 {
    font-size: .95rem; font-weight: 600; margin: .35rem 0 .25rem; color: var(--xi-text);
}

/* Leerzustand: weicher Akzentkreis + freundliche Zeile + Vorschlags-Chips. */
.ai-chat-empty[b-tpk9h1wltu] {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.25rem 1rem;
    gap: .35rem;
    animation: ai-msg-in-b-tpk9h1wltu .3s ease both;
}
.ai-chat-empty-icon[b-tpk9h1wltu] {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--xi-radius-pill);
    background: var(--xi-accent-100);
    color: var(--xi-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: .35rem;
}
html.xi-dark .ai-chat-empty-icon[b-tpk9h1wltu] { background: rgba(var(--xi-accent-rgb), 0.16); color: #7fb0f5; }
.ai-chat-empty-title[b-tpk9h1wltu] { font-weight: 600; color: var(--xi-text); font-size: 1rem; }
.ai-chat-empty-sub[b-tpk9h1wltu] { color: var(--xi-text-muted); font-size: .82rem; margin-bottom: .6rem; }

/* Tipp-Indikator: Blase mit drei animierten Punkten. */
.ai-chat-typing[b-tpk9h1wltu] {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .7rem .85rem;
}
.ai-chat-typing span[b-tpk9h1wltu] {
    width: .42rem;
    height: .42rem;
    border-radius: 50%;
    background: var(--xi-text-muted);
    opacity: .5;
    animation: ai-typing-b-tpk9h1wltu 1.25s infinite ease-in-out;
}
.ai-chat-typing span:nth-child(2)[b-tpk9h1wltu] { animation-delay: .18s; }
.ai-chat-typing span:nth-child(3)[b-tpk9h1wltu] { animation-delay: .36s; }
@keyframes ai-typing-b-tpk9h1wltu {
    0%, 60%, 100% { transform: translateY(0); opacity: .45; }
    30% { transform: translateY(-.28rem); opacity: 1; }
}

/* Composer: Pillen-Container + runder Senden-Knopf. */
.ai-chat-input[b-tpk9h1wltu] {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem .7rem;
    background: var(--xi-surface);
    border-top: 1px solid var(--xi-border);
    box-shadow: 0 -6px 14px rgba(15, 23, 42, 0.05); /* dezente Erhebung */
}
html.xi-dark .ai-chat-input[b-tpk9h1wltu] { box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.22); }

.ai-chat-input-pill[b-tpk9h1wltu] {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    background: var(--xi-surface-2);
    border: 1px solid var(--xi-border-strong);
    border-radius: var(--xi-radius-pill);
    padding: .15rem .35rem .15rem .9rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.ai-chat-input-pill:focus-within[b-tpk9h1wltu] {
    border-color: var(--xi-accent);
    box-shadow: 0 0 0 .18rem rgba(var(--xi-accent-rgb), 0.22);
}
/* Eingabefeld randlos in der Pille (Bootstrap-.form-control-Rahmen entfernen). */
.ai-chat-input-pill .form-control[b-tpk9h1wltu],
.ai-chat-input-pill input[b-tpk9h1wltu] {
    flex: 1 1 auto;
    border: none;
    background: transparent;
    outline: none;
    box-shadow: none;
    color: var(--xi-text);
    font-family: inherit;
    font-size: .9rem;
    padding: .42rem 0;
    min-width: 0;
}
.ai-chat-input-pill .form-control:focus[b-tpk9h1wltu] { box-shadow: none; border: none; }
.ai-chat-input-pill input[b-tpk9h1wltu]::placeholder { color: var(--xi-text-muted); }

.ai-chat-send[b-tpk9h1wltu] {
    flex: 0 0 auto;
    width: 2.4rem;
    height: 2.4rem;
    border: none;
    border-radius: var(--xi-radius-pill);
    background: var(--xi-primary);
    color: #fff;
    font-size: .95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .12s ease, background-color .15s ease, box-shadow .15s ease;
}
.ai-chat-send:hover:not(:disabled)[b-tpk9h1wltu] { background: var(--xi-primary-600); box-shadow: var(--xi-shadow-1); }
.ai-chat-send:active:not(:disabled)[b-tpk9h1wltu] { transform: scale(.92); }
.ai-chat-send:focus-visible[b-tpk9h1wltu] { outline: none; box-shadow: 0 0 0 .2rem rgba(var(--xi-accent-rgb), 0.4); }
.ai-chat-send:disabled[b-tpk9h1wltu] { opacity: .45; cursor: default; }
/* /Components/AiChatSheet.razor.rz.scp.css */
/* Chat-Overlay/Sheet (Issue #277/#278/#279). Helles Fenster, unten rechts (Desktop)
   bzw. als Bottom-Sheet (Mobile). z-index über dem Bootstrap-Modal-Backdrop. */

.ai-chat-sheet-backdrop[b-txi16xa578] {
    position: fixed;
    inset: 0;
    background: rgba(3, 23, 61, 0.18);
    backdrop-filter: blur(1.5px);
    z-index: 1040;
    animation: ai-backdrop-in-b-txi16xa578 .2s ease both;
}
@keyframes ai-backdrop-in-b-txi16xa578 { from { opacity: 0; } to { opacity: 1; } }

.ai-chat-sheet[b-txi16xa578] {
    position: fixed;
    z-index: 1045;
    right: 1.5rem;
    bottom: 1.5rem;
    width: min(24rem, calc(100vw - 2rem));
    height: min(34rem, calc(100vh - 3rem));
    background: var(--xi-surface);
    border: 1px solid var(--xi-border);
    border-radius: var(--xi-radius-lg);
    box-shadow: var(--xi-shadow-4);
    overflow: hidden;
    transform-origin: bottom right;
    animation: ai-sheet-in-b-txi16xa578 .26s cubic-bezier(.16, .84, .44, 1) both;
}
@keyframes ai-sheet-in-b-txi16xa578 {
    from { opacity: 0; transform: translateY(14px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Kopfzeile: helle Oberfläche mit Identität (Avatar + Titel + Status), kein dunkles Band. */
.ai-chat-sheet-header[b-txi16xa578] {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .7rem .85rem .7rem .8rem;
    background: var(--xi-surface);
    border-bottom: 1px solid var(--xi-border);
    flex: 0 0 auto;
}
.ai-chat-avatar[b-txi16xa578] {
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 auto;
    border-radius: var(--xi-radius-pill);
    background: var(--xi-accent-100);
    color: var(--xi-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
html.xi-dark .ai-chat-avatar[b-txi16xa578] { background: rgba(var(--xi-accent-rgb), 0.18); color: #7fb0f5; }

.ai-chat-headings[b-txi16xa578] { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.ai-chat-title[b-txi16xa578] { font-weight: 600; font-size: .98rem; color: var(--xi-text); letter-spacing: -.01em; }
.ai-chat-close[b-txi16xa578] {
    margin-left: auto;
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: var(--xi-radius-sm);
    background: transparent;
    color: var(--xi-text-muted);
    font-size: .95rem;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
.ai-chat-close:hover[b-txi16xa578] { background: var(--xi-surface-2); color: var(--xi-text); }
.ai-chat-close:focus-visible[b-txi16xa578] { outline: none; box-shadow: 0 0 0 .18rem rgba(var(--xi-accent-rgb), 0.4); }

.ai-chat-sheet-body[b-txi16xa578] {
    min-height: 0;
    flex: 1 1 auto;
    overflow: hidden;
    display: flex;
}

/* Mobiler Griff (nur Bottom-Sheet) — standardmäßig versteckt. */
.ai-chat-grip[b-txi16xa578] { display: none; }

@media (max-width: 576px) {
    .ai-chat-sheet[b-txi16xa578] {
        right: 0;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 88vh;
        border-radius: var(--xi-radius-lg) var(--xi-radius-lg) 0 0;
        transform-origin: bottom center;
        animation: ai-sheet-up-b-txi16xa578 .28s cubic-bezier(.16, .84, .44, 1) both;
    }
    @keyframes ai-sheet-up-b-txi16xa578 {
        from { opacity: 0; transform: translateY(40px); }
        to   { opacity: 1; transform: translateY(0); }
    }
    .ai-chat-grip[b-txi16xa578] {
        display: block;
        width: 2.5rem;
        height: .28rem;
        margin: .5rem auto -.15rem;
        border-radius: var(--xi-radius-pill);
        background: var(--xi-border-strong);
        flex: 0 0 auto;
    }
}
/* /Components/ClientFormComponent.razor.rz.scp.css */
.section-toggle[b-czvawr64il] {
    cursor: pointer;
    user-select: none;
}

.section-toggle:hover[b-czvawr64il] {
    background-color: rgba(0, 0, 0, 0.04);
}

.collapse-icon[b-czvawr64il] {
    font-size: 0.75rem;
    opacity: 0.6;
}   
/* /Components/LoginComponent.razor.rz.scp.css */
.login-wrapper[b-b7wcp1q8x9] {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--xi-bg);
    padding: env(safe-area-inset-top) 1rem env(safe-area-inset-bottom);
}

.login-card[b-b7wcp1q8x9] {
    background: var(--xi-surface);
    border: 1px solid var(--xi-border);
    border-radius: var(--xi-radius-lg);
    box-shadow: var(--xi-shadow-3);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 400px;
}

.login-logo[b-b7wcp1q8x9] {
    text-align: center;
    margin-bottom: 1.75rem;
}

.login-title[b-b7wcp1q8x9] {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--xi-primary);
    letter-spacing: 0.5px;
}
/* /Layout/MainLayout.razor.rz.scp.css */
.page[b-t7o0x3jik4] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-t7o0x3jik4] {
    flex: 1;
    min-width: 0;
}

.top-row-username[b-t7o0x3jik4] {
    margin-right: auto;
    color: var(--xi-text-muted);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}
.sidebar[b-t7o0x3jik4] {
    background-image: linear-gradient(180deg, var(--xi-primary) 0%, var(--xi-primary-500) 100%);
}

.top-row[b-t7o0x3jik4] {
    background-color: var(--xi-surface);
    border-bottom: 1px solid var(--xi-border);
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-t7o0x3jik4]  a, .top-row[b-t7o0x3jik4]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
        color: var(--xi-accent);
        font-size: 0.875rem;
    }

    .top-row[b-t7o0x3jik4]  a:hover, .top-row[b-t7o0x3jik4]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-t7o0x3jik4]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-t7o0x3jik4] {
        justify-content: space-between;
    }

    .top-row[b-t7o0x3jik4]  a, .top-row[b-t7o0x3jik4]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-t7o0x3jik4] {
        flex-direction: row;
    }

    .sidebar[b-t7o0x3jik4] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-t7o0x3jik4] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-t7o0x3jik4]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-t7o0x3jik4], article[b-t7o0x3jik4] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}
/* /Layout/NavMenu.razor.rz.scp.css */
/* Mobile-Topbar (Hamburger) – nur auf schmalen Screens sichtbar */
.top-row[b-r5jovu2uyc] {
    height: 3.5rem;
    background-color: var(--xi-primary-600);
    padding-top: env(safe-area-inset-top);
}

.navbar-toggler[b-r5jovu2uyc] {
    background-color: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--xi-radius-sm);
}

.navbar-toggler:focus[b-r5jovu2uyc] {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.navbar-brand[b-r5jovu2uyc] {
    display: flex;
    align-items: center;
}

/* Marken-/Logo-Bereich oben in der Sidebar (Desktop) */
.logo[b-r5jovu2uyc] {
    display: none;
    justify-content: center;
    padding: 1.25rem 1rem 0.75rem;
}

/* Eigentliche Sidebar */
.nav-sidebar[b-r5jovu2uyc] {
    display: flex;
    flex-direction: column;
}

/* Auf schmalen Screens ist die Sidebar standardmäßig eingeklappt (versteckt)
   und wird nur über die .open-Klasse (Hamburger) eingeblendet. */
@media (max-width: 640.98px) {
    .nav-sidebar[b-r5jovu2uyc] {
        display: none;
    }

    .nav-sidebar.open[b-r5jovu2uyc] {
        display: flex;
    }
}

.nav-scrollable[b-r5jovu2uyc] {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.nav-item[b-r5jovu2uyc] {
    font-size: 0.95rem;
    padding-bottom: 0.35rem;
}

    .nav-item:first-of-type[b-r5jovu2uyc] {
        padding-top: 0.75rem;
    }

    .nav-item:last-of-type[b-r5jovu2uyc] {
        padding-bottom: 0.75rem;
    }

    .nav-item[b-r5jovu2uyc]  a {
        color: rgba(255, 255, 255, 0.82);
        border-radius: var(--xi-radius-sm);
        min-height: 2.75rem;
        display: flex;
        align-items: center;
        gap: 0.25rem;
        padding: 0 0.85rem;
        line-height: 1.2;
        transition: background-color 0.15s ease, color 0.15s ease;
    }

    .nav-item[b-r5jovu2uyc]  a .bi {
        font-size: 1.05rem;
        width: 1.4rem;
        text-align: center;
        margin-right: 0.4rem;
        opacity: 0.95;
    }

    .nav-item[b-r5jovu2uyc]  a img {
        margin-right: 0.4rem;
    }

.nav-item[b-r5jovu2uyc]  a.active {
    background-color: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--xi-accent);
}

.nav-item[b-r5jovu2uyc]  a:hover {
    background-color: rgba(255, 255, 255, 0.10);
    color: #fff;
}

.nav-item[b-r5jovu2uyc]  a:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: -2px;
}

/* Sidebar-Footer mit Benutzerinfo + Logout */
.nav-footer[b-r5jovu2uyc] {
    margin-top: auto;
    padding: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
}

.nav-user[b-r5jovu2uyc] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.25rem 0.35rem 0.6rem;
    color: #fff;
    min-width: 0;
}

.nav-user-avatar[b-r5jovu2uyc] {
    flex-shrink: 0;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
}

.nav-user-meta[b-r5jovu2uyc] {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.nav-user-name[b-r5jovu2uyc] {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-user-role[b-r5jovu2uyc] {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.6);
}

.nav-logout[b-r5jovu2uyc] {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--xi-radius-sm);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-logout:hover[b-r5jovu2uyc] {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.nav-logout:focus-visible[b-r5jovu2uyc] {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
}

/* Theme-Umschalter */
.nav-theme-toggle[b-r5jovu2uyc] {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.5rem;
    margin-bottom: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--xi-radius-sm);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-theme-toggle:hover[b-r5jovu2uyc] {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.nav-theme-toggle:focus-visible[b-r5jovu2uyc] {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
}

/* Auf schmalen Screens das Logo in der eingeklappten Sidebar ausblenden */
@media (max-width: 640.98px) {
    .logo[b-r5jovu2uyc] {
        display: none !important;
    }
}

@media (min-width: 641px) {
    .navbar-toggler[b-r5jovu2uyc] {
        display: none;
    }

    /* Mobile-Topbar auf Desktop komplett ausblenden (sonst doppeltes Logo) */
    .top-row[b-r5jovu2uyc] {
        display: none;
    }

    .logo[b-r5jovu2uyc] {
        display: flex;
    }

    /* Sidebar auf breiten Screens immer sichtbar, egal ob ein-/ausgeklappt. */
    .nav-sidebar[b-r5jovu2uyc],
    .nav-sidebar.open[b-r5jovu2uyc] {
        display: flex;
        height: 100vh;
    }

    .nav-scrollable[b-r5jovu2uyc] {
        flex: 1;
    }
}
/* /Pages/Home.razor.rz.scp.css */
/* Schwebende Chat-Bubble (FAB) unten rechts (Issue #278).
   Bleibt beim Scrollen sichtbar (fixed); liegt unter dem Chat-Sheet (z-index < 1040). */

.ai-fab[b-5xoxbxo8tc] {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    border: none;
    border-radius: var(--xi-radius-pill);
    background: var(--xi-primary);
    color: #fff;
    box-shadow: 0 8px 22px rgba(var(--xi-primary-rgb), 0.34);
    z-index: 1030;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.ai-fab:hover[b-5xoxbxo8tc] {
    transform: translateY(-2px);
    background: var(--xi-primary-600);
    box-shadow: 0 12px 28px rgba(var(--xi-primary-rgb), 0.42);
}
.ai-fab:active[b-5xoxbxo8tc] { transform: translateY(0) scale(.96); }
.ai-fab:focus-visible[b-5xoxbxo8tc] {
    outline: none;
    box-shadow: 0 0 0 .22rem rgba(var(--xi-accent-rgb), 0.45), 0 8px 22px rgba(var(--xi-primary-rgb), 0.34);
}
