:root, [data-bs-theme="light"] {
    --flr-red: #E82C2A;
    --flr-red-h: #DB3532;
    --bk-red: #E82C2A;
    --bk-red-h: #F52F2C;
    --bk-red-a: #FF3633;
    --bk-secondary: #6c757d;
    --bk-secondary-h: #76818A;
    --bk-secondary-a: #7D8891;
    --bk-green: #1C9945;
    --bk-green-h: #1FA64C;
    --bk-green-a: #22B352;
    --bk-cookieBg: rgba(33, 37, 41, 0.95);
    --bk-cookieText: #FFFFFF;
    --bk-lightgray: #dee2e6;
    --bk-gray: #F2F2F2;
    /* Höhe der verkleinerten Kopfleiste beim Scrollen, für Abstände von fixierten Elementen */
    --flr-navbar-compact-h: 50px;
}

/* Sprungziele (Anker, scrollIntoView) nicht unter der fixierten Kopfleiste verstecken.
   Gescrollt wird in main (Blazor.Bootstrap: height 100vh, overflow-x hidden), nicht im Fenster */
main {
    scroll-padding-top: calc(var(--flr-navbar-compact-h) + 8px);
}

[data-bs-theme="dark"] {
    --bk-secondary: #6c757d;
    --bk-cookieBg: rgba(255, 255, 255, 0.95);
    --bk-cookieText: #212529;
    --bk-green: #13B958;
    --bk-lightgray: #dee2e6;
}
.text-orange{
    color: #FF8000 !important;
}

.fs-7 {
    font-size: 0.75rem !important
}

.flr-section {
    background: #ffffff;
    border-radius: var(--bs-border-radius);
    border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
    padding: 14px;
    overflow: hidden;
}
.flr-badge {
    font-weight: 500;
    font-size: 12px;
    background-color: var(--bk-lightgray);
    color: var(--bs-boy-color);
    padding: 3px 6px;
    text-align: center;
    border-radius: var(--bs-border-radius);
}
.flr-badge-sm {
    font-weight: 500;
    font-size: 12px;
    background-color: var(--bk-lightgray);
    color: var(--bs-boy-color);
    padding: 1px 4px;
    text-align: center;
    border-radius: var(--bs-border-radius);

}


.flr-btn {
    background: var(--bk-red);
    color: white;
    border: none;
    padding: 6px 15px;
    border-radius: var(--bs-border-radius);
    transition: all 0.1s ease;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
    text-align: center !important;
    cursor: pointer;
}
    .flr-btn:hover {
        background: var(--bk-red-h);
    }
    .flr-btn:active {
        background: var(--bk-red-a);
    }
    .flr-btn:disabled {
        pointer-events: none;
        background-color: var(--bs-gray-200);
        color: var(--bs-gray-600);
        user-select: none;
    }

.flr-btn-secondary {
    background: var(--bk-secondary);
    color: white;
    border: none;
    padding: 6px 15px;
    border-radius: var(--bs-border-radius);
    transition: all 0.1s ease;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
    text-align: center !important;
    cursor: pointer;
}

    .flr-btn-secondary:hover {
        background: var(--bk-secondary-h);
    }
    .flr-btn-secondary:active {
        background: var(--bk-secondary-a);
    }
    .flr-btn-secondary:disabled {
        pointer-events: none;
        background-color: var(--bs-gray-200);
        color: var(--bs-gray-600);
        user-select: none;
    }

.flr-btn-green {
    background: var(--bk-green);
    color: white;
    border: none;
    padding: 6px 15px;
    border-radius: var(--bs-border-radius);
    transition: all 0.1s ease;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
    text-align: center !important;
    cursor: pointer;
}

    .flr-btn-green:hover {
        background: var(--bk-green-h);
    }
    .flr-btn-green:active {
        background: var(--bk-green-a);
    }
    .flr-btn-green:disabled {
        pointer-events: none;
        background-color: var(--bs-gray-200);
        color: var(--bs-gray-600);
        user-select: none;
    }


.flr-bg-red {
    background: var(--flr-red) !important;
    background-color: var(--flr-red) !important;
    color: white !important;
}

.theme-red {
    background: var(--flr-red);
    color: white;
}


.theme-red .navbar-brand {
    color: white;

}

.theme-red .nav-item .nav-link {
    color: white;
    opacity: 0.65;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
}

.theme-red .nav-item .nav-link:is(:hover, :focus, :active) {
    color: white;
    opacity: 1;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
}


.theme-red .nav-item .nav-link.active {
    opacity: 1;
    color: white
}




.theme-red .navbar-brand:is(:hover, :focus, :active) {
    color: white;
    opacity: 1;
}

.dropdown-menu li:hover {
    cursor: pointer;
}


.flr-badge-btn {
    font-weight: 500;
    font-size: 14px;
    background-color: var(--bk-lightgray);
    color: var(--bs-boy-color);
    padding: 5px 10px;
    text-align: center;
    border-radius: var(--bs-border-radius);
    border: none;
    transition: all 0.2s ease;
}

.flr-badge-btn-sm {
    font-weight: 500;
    font-size: 12px;
    background-color: var(--bk-lightgray);
    color: var(--bs-boy-color);
    padding: 4px 8px;
    text-align: center;
    border-radius: var(--bs-border-radius);
    border: none;
    transition: all 0.2s ease;
}

.flr-badge-btn-active {
    background-color: var(--flr-red);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
    color: white;
    transform: scale(1.03);
}

.flr-badge-btn:hover:active {
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
    transform: scale(1.03);
}

.invalid {
    border-color: var(--bs-form-invalid-border-color) !important;
}


.flr-table-width-small {
    width: 30px;
}

.col-id-min {
    width: 1%;
    white-space: nowrap;
    font-size: 12px;
    text-align: center;
}
/* QuickGrid füllt bei Pagination jede Seite mit Leerzeilen (nur leere <td>) auf ItemsPerPage auf – diese ausblenden */
table tbody tr:not(:has(> td:not(:empty))) {
    display: none;
}

/* FocusOnNavigate (Routes.razor) setzt nach jeder Navigation den Fokus auf den Seitenkopf (für Screenreader).
   Nach einer Tastatureingabe zeigt der Browser dafür einen Fokusrahmen – der Kopf ist kein Bedienelement, daher ausblenden */
#page-header:focus {
    outline: none;
}
