/* =====================================================================
   TickTackTrace Web – Design-System (Redesign 2026-07)
   Bootstrap bleibt als Basis geladen; alles Eigene trägt das Präfix
   "ttt-", damit es nicht mit Bootstrap-Klassen (.btn, .nav-link, …)
   kollidiert. Farben als Tokens, dunkles Schema über prefers-color-scheme.
   ===================================================================== */

:root {
    --bg: #e9eef5;
    --surface: #ffffff;
    --surface-2: #f4f7fb;
    --border: #d8e1ee;
    --text: #16202e;
    --muted: #5d6a80;
    --accent: #2f6fb0;
    --accent-strong: #235891;
    --accent-contrast: #ffffff;
    --brand-bar: #13304e;
    --brand-bar-text: #d5e2f2;
    --brand-bar-muted: #8ba3c0;
    --good: #268a5f;
    --good-soft: #e3f3ec;
    --warn: #a96f14;
    --warn-soft: #f9eed8;
    --bad: #b33838;
    --bad-soft: #f9e3e3;
    --info-soft: #e7eff9;
    --shadow: 0 1px 2px rgba(19,48,78,.06), 0 6px 18px rgba(19,48,78,.06);
    --shadow-lg: 0 8px 40px rgba(12,26,45,.28);
    --radius: 14px;
    --radius-sm: 9px;
    --tap: 44px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0c131d;
        --surface: #161f2c;
        --surface-2: #1b2534;
        --border: #293546;
        --text: #e7edf5;
        --muted: #94a2b7;
        --accent: #5b9bd8;
        --accent-strong: #78b0e2;
        --accent-contrast: #0c131d;
        --brand-bar: #0a111c;
        --brand-bar-text: #cedbec;
        --brand-bar-muted: #6f83a0;
        --good: #46b184;
        --good-soft: #12352a;
        --warn: #d59b45;
        --warn-soft: #3a2f16;
        --bad: #e07f7f;
        --bad-soft: #3a1c1c;
        --info-soft: #1b2941;
        --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 18px rgba(0,0,0,.3);
        --shadow-lg: 0 10px 46px rgba(0,0,0,.6);
    }
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1:focus {
    outline: none;
}

.tnum {
    font-variant-numeric: tabular-nums;
}

.ttt-label {
    font-size: 11px;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
}

/* ---------- App-Shell: Topbar, Sidebar (Desktop), Tab-Bar (Mobil) ---------- */

.ttt-app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.ttt-topbar {
    background: var(--brand-bar);
    color: var(--brand-bar-text);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    height: 56px;
    position: sticky;
    top: 0;
    z-index: 20;
}

.ttt-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: -.01em;
    font-size: 17px;
    color: inherit;
    text-decoration: none;
}

.ttt-brand:hover {
    color: inherit;
}

.ttt-brand .mark {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    flex: none;
    background: linear-gradient(135deg, var(--accent) 0%, #7fc0f0 100%);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
}

.ttt-topbar .spacer,
.ttt-toolbar .spacer {
    flex: 1;
}

.ttt-user {
    font-size: 13.5px;
    color: var(--brand-bar-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.ttt-user .uname {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ttt-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    flex: none;
    background: rgba(255,255,255,.12);
    color: var(--brand-bar-text);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 12px;
}

.ttt-ghost-btn {
    background: rgba(255,255,255,.08);
    color: var(--brand-bar-text);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.ttt-ghost-btn:hover {
    background: rgba(255,255,255,.16);
    color: var(--brand-bar-text);
}

.ttt-body {
    flex: 1;
    display: flex;
}

.ttt-sidebar {
    display: none;
}

.ttt-navgroup {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ttt-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--muted);
    font-weight: 500;
    font-size: 14.5px;
    padding: 11px 14px;
    border-radius: 10px;
    cursor: pointer;
    min-height: var(--tap);
}

.ttt-nav-link .ico {
    width: 20px;
    height: 20px;
    flex: none;
    opacity: .8;
}

.ttt-nav-link:hover {
    background: var(--surface-2);
    color: var(--text);
}

.ttt-nav-link.active {
    background: var(--info-soft);
    color: var(--accent-strong);
    font-weight: 650;
}

.ttt-nav-link.active .ico {
    opacity: 1;
}

.ttt-content {
    flex: 1;
    padding: 20px 16px 96px;
    max-width: 920px;
    margin: 0 auto;
    width: 100%;
    min-width: 0;
}

.ttt-tabbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 30;
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: flex;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
}

.ttt-tab {
    flex: 1;
    background: none;
    border: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 7px 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    border-radius: 10px;
    min-height: var(--tap);
    text-decoration: none;
}

.ttt-tab .ico {
    width: 22px;
    height: 22px;
}

.ttt-tab.active {
    color: var(--accent);
}

.ttt-tab.active .ico {
    transform: translateY(-1px);
}

/* ---------- Seitenkopf ---------- */

.ttt-page-head {
    margin: 4px 0 18px;
}

.ttt-page-head h1 {
    font-size: 24px;
    letter-spacing: -.02em;
    margin: 0 0 3px;
    text-wrap: balance;
    font-weight: 700;
}

.ttt-page-head p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

/* ---------- Stat-Kacheln (Start) ---------- */

.ttt-tiles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.ttt-tile {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 15px 16px;
    box-shadow: var(--shadow);
}

.ttt-tile .ttt-label {
    display: block;
    margin-bottom: 7px;
}

.ttt-tile .val {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.ttt-tile .val.sm {
    font-size: 18px;
}

.ttt-tile.accent {
    position: relative;
    overflow: hidden;
}

.ttt-tile.accent::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent);
}

.ttt-tile .delta {
    font-size: 12.5px;
    font-weight: 600;
    margin-top: 3px;
}

.delta.pos {
    color: var(--good);
}

.delta.neg {
    color: var(--warn);
}

/* ---------- Buttons ---------- */

.ttt-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.ttt-btn {
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 11px 18px;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    min-height: var(--tap);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.ttt-btn.primary {
    background: var(--accent);
    color: var(--accent-contrast);
}

.ttt-btn.primary:hover {
    background: var(--accent-strong);
    color: var(--accent-contrast);
}

.ttt-btn.ghost {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
}

.ttt-btn.ghost:hover {
    background: var(--surface-2);
    color: var(--text);
}

.ttt-btn.success {
    background: var(--good);
    color: #fff;
}

.ttt-btn:disabled {
    background: var(--surface-2);
    color: var(--muted);
    border-color: var(--border);
    cursor: not-allowed;
}

/* ---------- Toolbar mit Stepper (Kalender/Monatsübersicht) ---------- */

.ttt-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.ttt-stepper {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 3px;
}

.ttt-stepper button {
    width: 34px;
    height: 34px;
    border: 0;
    background: none;
    border-radius: 7px;
    cursor: pointer;
    color: var(--text);
    font-size: 16px;
}

.ttt-stepper button:hover {
    background: var(--surface-2);
}

.ttt-stepper .cur {
    padding: 0 12px;
    font-weight: 650;
    font-size: 15px;
    min-width: 118px;
    text-align: center;
}

/* ---------- Meldungen ---------- */

.ttt-alert {
    border-radius: 10px;
    padding: 10px 13px;
    font-size: 14px;
    margin-bottom: 14px;
}

.ttt-alert.success {
    background: var(--good-soft);
    color: var(--good);
}

.ttt-alert.error {
    background: var(--bad-soft);
    color: var(--bad);
}

.ttt-alert.warn {
    background: var(--warn-soft);
    color: var(--warn);
}

/* ---------- Tages-Karten (Kalender, mobil) ---------- */

.ttt-daylist {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.ttt-daycard {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 46px 1fr auto;
    align-items: center;
    gap: 13px;
    padding: 13px 14px;
    position: relative;
    overflow: hidden;
}

.ttt-daycard .stripe {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: transparent;
}

.ttt-daycard.open .stripe {
    background: var(--warn);
}

.ttt-daycard.locked,
.ttt-daycard.weekend {
    background: var(--surface-2);
    box-shadow: none;
}

.ttt-daycard .date {
    text-align: center;
}

.ttt-daycard .date .d {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1;
}

.ttt-daycard .date .wd {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-top: 3px;
}

.ttt-daycard .dcenter {
    min-width: 0;
}

.ttt-daycard .dtimes {
    color: var(--muted);
    font-size: 13px;
    margin-top: 4px;
}

.ttt-daycard .dtimes.none {
    font-style: italic;
    opacity: .8;
}

.ttt-daycard .dright {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.ttt-worked {
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -.01em;
}

.ttt-worked.dash {
    color: var(--muted);
    font-weight: 500;
}

/* ---------- Chips (Arbeitsart / Status) ---------- */

.ttt-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 999px;
    white-space: nowrap;
}

.ttt-chip::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: .9;
}

.ttt-chip.work {
    color: var(--accent-strong);
    background: var(--info-soft);
}

.ttt-chip.vac {
    color: #7a5cc0;
    background: color-mix(in srgb, #7a5cc0 14%, transparent);
}

.ttt-chip.sick {
    color: #c05c5c;
    background: color-mix(in srgb, #c05c5c 14%, transparent);
}

.ttt-chip.holi {
    color: var(--muted);
    background: var(--surface-2);
}

.ttt-chip.school {
    color: #3a8f8f;
    background: color-mix(in srgb, #3a8f8f 15%, transparent);
}

.ttt-chip.badge-warn {
    color: var(--warn);
    background: var(--warn-soft);
}

.ttt-chip.badge-done {
    color: var(--good);
    background: var(--good-soft);
}

.ttt-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    display: grid;
    place-items: center;
    color: var(--accent);
}

.ttt-icon-btn:hover {
    background: var(--info-soft);
}

.ttt-lockmark {
    color: var(--muted);
    font-size: 15px;
}

/* ---------- Tabellen (Desktop) ---------- */

.ttt-table-wrap {
    display: none;
}

/* ---------- Monatskarten (Monatsübersicht, mobil) ---------- */

.ttt-monthlist {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.ttt-monthcard {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 13px 15px;
}

.ttt-monthcard .mtop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.ttt-monthcard .mname {
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -.01em;
}

.ttt-mgrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 8px;
}

.ttt-mgrid .cell .ttt-label {
    display: block;
    margin-bottom: 2px;
}

.ttt-mgrid .cell .v {
    font-weight: 650;
    font-size: 14.5px;
}

/* Abschnittsüberschriften (Admin-Panel) */
.ttt-section-head {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.01em;
    margin: 26px 0 12px;
}

/* Kartenliste, die auf allen Breakpoints sichtbar bleibt (z. B. offene Monate) */
.ttt-cardlist {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.ttt-openmonths {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Klickbare Monatskarte: springt in den Kalender des Monats. */
.ttt-monthcard.link {
    cursor: pointer;
}

.ttt-monthcard.link:hover,
.ttt-monthcard.link:focus-visible {
    border-color: var(--accent);
}

.ttt-monthcard .golink {
    color: var(--muted);
    flex: none;
}

.ttt-monthcard.link:hover .golink {
    color: var(--accent);
}

.ttt-monthcard.selected {
    border-color: var(--accent);
    background: var(--info-soft);
}

.ttt-bar {
    height: 5px;
    border-radius: 3px;
    background: var(--surface-2);
    overflow: hidden;
    margin-top: 11px;
}

.ttt-bar > i {
    display: block;
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
}

/* ---------- Bottom-Sheet (Tag bearbeiten) ---------- */

.ttt-scrim {
    position: fixed;
    inset: 0;
    background: rgba(10,20,35,.5);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 50;
}

.ttt-sheet {
    background: var(--surface);
    width: 100%;
    max-width: 460px;
    border-radius: 18px 18px 0 0;
    box-shadow: var(--shadow-lg);
    padding: 8px 18px calc(20px + env(safe-area-inset-bottom));
    max-height: 92vh;
    overflow-y: auto;
    animation: ttt-rise .22s cubic-bezier(.2,.8,.2,1);
}

@keyframes ttt-rise {
    from { transform: translateY(24px); opacity: .6; }
    to { transform: none; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .ttt-sheet {
        animation: none;
    }
}

.ttt-sheet .grabber {
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: var(--border);
    margin: 6px auto 12px;
}

.ttt-sheet h3 {
    margin: 0 0 3px;
    font-size: 18px;
    letter-spacing: -.01em;
    font-weight: 700;
}

.ttt-sheet .sub {
    color: var(--muted);
    font-size: 13px;
    margin: 0 0 16px;
}

.ttt-field {
    margin-bottom: 14px;
}

.ttt-field > .ttt-label {
    display: block;
    margin-bottom: 6px;
}

.ttt-field select,
.ttt-field input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--text);
    font-size: 15px;
    min-height: var(--tap);
    color-scheme: light dark;
}

.ttt-field select:focus,
.ttt-field input:focus {
    outline: 2px solid var(--accent);
    outline-offset: 0;
    border-color: var(--accent);
}

.ttt-field-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.ttt-field.summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 11px 13px;
}

.ttt-field.summary .ttt-label {
    margin: 0;
}

.ttt-sheet-actions {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

.ttt-sheet-actions .ttt-btn {
    flex: 1;
    justify-content: center;
}

.ttt-hint {
    background: var(--info-soft);
    color: var(--accent-strong);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.45;
}

.ttt-hint.bridge {
    background: var(--warn-soft);
    color: var(--warn);
}

/* ---------- Registrierungs-Wizard ---------- */

.ttt-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
    max-width: 560px;
}

.ttt-panel .ttt-bar {
    margin: 0 0 18px;
}

.ttt-choices {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.ttt-choice {
    text-align: left;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 15px 16px;
    cursor: pointer;
    color: var(--text);
    font: inherit;
}

.ttt-choice:hover {
    border-color: var(--accent);
    background: var(--info-soft);
}

.ttt-choice .t {
    font-weight: 700;
    font-size: 15.5px;
}

.ttt-choice .s {
    color: var(--muted);
    font-size: 13px;
    margin-top: 3px;
}

.ttt-wizard-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.ttt-wizard-actions .spacer {
    flex: 1;
}

.ttt-summary-list {
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ttt-summary-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}

.ttt-summary-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.ttt-summary-list .k {
    color: var(--muted);
}

.ttt-summary-list .v {
    font-weight: 650;
    text-align: right;
}

/* ---------- Desktop (ab 768px) ---------- */

@media (min-width: 768px) {
    .ttt-body {
        max-width: 1160px;
        margin: 0 auto;
        width: 100%;
    }

    .ttt-sidebar {
        display: block;
        width: 232px;
        flex: none;
        padding: 18px 12px;
        border-right: 1px solid var(--border);
        background: var(--surface);
        position: sticky;
        top: 56px;
        height: calc(100vh - 56px);
    }

    .ttt-tabbar {
        display: none;
    }

    .ttt-content {
        padding: 26px 30px 40px;
    }

    .ttt-tiles {
        grid-template-columns: repeat(4, 1fr);
    }

    .ttt-page-head h1 {
        font-size: 27px;
    }

    /* Kalender/Monat: Tabelle statt Karten */
    .ttt-daylist,
    .ttt-monthlist {
        display: none;
    }

    .ttt-table-wrap {
        display: block;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        overflow: hidden;
    }

    .ttt-table-wrap table {
        width: 100%;
        border-collapse: collapse;
        margin: 0;
        font-variant-numeric: tabular-nums;
    }

    .ttt-table-wrap thead th {
        text-align: left;
        font-size: 11px;
        letter-spacing: .06em;
        text-transform: uppercase;
        color: var(--muted);
        font-weight: 600;
        padding: 12px 16px;
        border-bottom: 1px solid var(--border);
    }

    .ttt-table-wrap thead th.num,
    .ttt-table-wrap tbody td.num {
        text-align: right;
    }

    .ttt-table-wrap tbody td {
        padding: 9px 16px;
        border-bottom: 1px solid var(--border);
        font-size: 14px;
        color: var(--text);
    }

    .ttt-table-wrap tbody tr:last-child td {
        border-bottom: 0;
    }

    .ttt-table-wrap tbody tr.open td:first-child {
        box-shadow: inset 3px 0 0 var(--warn);
    }

    .ttt-table-wrap tbody tr.locked,
    .ttt-table-wrap tbody tr.weekend {
        background: var(--surface-2);
        color: var(--muted);
    }

    .ttt-table-wrap tbody tr:hover:not(.locked):not(.weekend) {
        background: var(--surface-2);
    }

    /* Klickbare Zeile (Monatsübersicht → Kalender, Admin → Auswertung) */
    .ttt-table-wrap tbody tr.link {
        cursor: pointer;
    }

    .ttt-table-wrap tbody tr.selected,
    .ttt-table-wrap tbody tr.selected:hover {
        background: var(--info-soft);
    }

    .ttt-table-wrap .td-day .d {
        font-weight: 650;
    }

    .ttt-table-wrap .td-day .wd {
        color: var(--muted);
        font-size: 12px;
        margin-left: 6px;
    }

    /* Sheet auf großen Screens mittig als Dialog */
    .ttt-scrim {
        align-items: center;
        padding: 24px;
    }

    .ttt-sheet {
        border-radius: 18px;
        padding-bottom: 20px;
    }

    .ttt-sheet .grabber {
        display: none;
    }
}

/* =====================================================================
   Blazor-Pflichtteile (Fehlerleiste, Ladeanzeige, Validierung)
   ===================================================================== */

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    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 {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
    border-radius: var(--radius-sm);
}

    .blazor-error-boundary::after {
        content: "Es ist ein Fehler aufgetreten."
    }

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 auto;
}

    .loading-progress circle {
        fill: none;
        stroke: var(--border);
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: var(--accent);
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
    color: var(--muted);
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Lade…");
    }
