/* =====================================================================
   TVH OnlineServices – Design
   Farben angelehnt an www.tvheide.de bzw. das TVH-Logo (Blau/Grün).
   Es werden ausschließlich System-Schriftarten verwendet (keine Webfonts).
   ===================================================================== */

:root {
    /* Markenfarben */
    --tvh-blau: #104f9f;
    --tvh-blau-dunkel: #0b3b78;
    --tvh-blau-hell: #95c4eb;
    --tvh-blau-zart: #eaf2fb;
    --tvh-gruen: #00925a;
    --tvh-gruen-dunkel: #007748;
    --tvh-gruen-zart: #e6f5ee;

    /* Neutrale Farben */
    --tvh-text: #26303d;
    --tvh-text-gedaempft: #5f6b7a;
    --tvh-hintergrund: #f3f6fa;
    --tvh-flaeche: #ffffff;
    --tvh-rahmen: #dde4ec;
    --tvh-rahmen-hell: #edf1f5;

    --tvh-radius: 0.6rem;
    --tvh-schatten: 0 1px 2px rgba(16, 40, 72, 0.06), 0 2px 8px rgba(16, 40, 72, 0.05);
    --tvh-schatten-hover: 0 4px 16px rgba(16, 40, 72, 0.10);
    --tvh-topbar-hoehe: 4rem;
    --tvh-sidebar-breite: 250px;

    --tvh-schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;

    /* Bootstrap-Variablen auf die TVH-Farben umstellen */
    --bs-primary: var(--tvh-blau);
    --bs-primary-rgb: 16, 79, 159;
    --bs-success: var(--tvh-gruen);
    --bs-success-rgb: 0, 146, 90;
    --bs-body-font-family: var(--tvh-schrift);
    --bs-body-color: var(--tvh-text);
    --bs-body-bg: var(--tvh-hintergrund);
    --bs-secondary-color: var(--tvh-text-gedaempft);
    --bs-border-color: var(--tvh-rahmen);
    --bs-border-radius: 0.45rem;
    --bs-border-radius-sm: 0.35rem;
    --bs-border-radius-lg: 0.6rem;
    --bs-link-color: var(--tvh-blau);
    --bs-link-color-rgb: 16, 79, 159;
    --bs-link-hover-color: var(--tvh-blau-dunkel);
    --bs-link-hover-color-rgb: 11, 59, 120;
    --bs-light: var(--tvh-flaeche);
    --bs-light-rgb: 255, 255, 255;
    --bs-focus-ring-color: rgba(16, 79, 159, 0.25);
}

html, body {
    font-family: var(--tvh-schrift);
    color: var(--tvh-text);
    background-color: var(--tvh-hintergrund);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .fs-4, .fs-5 {
    color: var(--tvh-blau-dunkel);
    letter-spacing: -0.01em;
}

a {
    text-underline-offset: 2px;
}

a:not(.btn):not(.nav-link) {
    text-decoration: none;
}

    a:not(.btn):not(.nav-link):hover {
        text-decoration: underline;
    }

::selection {
    background-color: var(--tvh-blau-hell);
}

/* ---------------------------------------------------------------------
   Fehleranzeige
   --------------------------------------------------------------------- */

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

#blazor-error-ui {
    color-scheme: light only;
    background: #fff8db;
    border-top: 3px solid #e0a800;
    bottom: 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.7rem 1.25rem 0.8rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

/* ---------------------------------------------------------------------
   Grundlayout: Seitenleiste + Hauptbereich
   --------------------------------------------------------------------- */

.page {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    min-width: 0;
}

.sidebar {
    background-color: var(--tvh-flaeche);
    border-right: 1px solid var(--tvh-rahmen);
}

.top-row {
    background-color: var(--tvh-flaeche);
    border-bottom: 1px solid var(--tvh-rahmen);
    justify-content: space-between;
    height: var(--tvh-topbar-hoehe);
    display: flex;
    align-items: center;
}

.sidebar .top-row {
    padding: 0 1.25rem;
}

.sidebar .navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    text-decoration: none;
}

    .sidebar .navbar-brand img {
        max-height: 34px;
        width: auto;
    }

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    border-left: 1px solid var(--tvh-rahmen);
    padding-left: 0.75rem;
}

    .brand-text .brand-titel {
        font-weight: 600;
        font-size: 0.95rem;
        color: var(--tvh-blau-dunkel);
    }

    .brand-text .brand-untertitel {
        font-size: 0.7rem;
        color: var(--tvh-text-gedaempft);
        letter-spacing: 0.02em;
    }

/* Kopfzeile im Hauptbereich */
.app-header {
    padding: 0 1.5rem;
    box-shadow: 0 1px 0 var(--tvh-rahmen), 0 2px 12px rgba(16, 40, 72, 0.04);
    border-bottom: 0;
    gap: 1rem;
}

    .app-header .app-header-titel {
        font-weight: 500;
        color: var(--tvh-text-gedaempft);
        font-size: 0.9rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .app-header .btn-abmelden {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        white-space: nowrap;
        color: var(--tvh-text-gedaempft);
        font-size: 0.875rem;
        padding: 0.4rem 0.8rem;
        border-radius: var(--bs-border-radius);
        border: 1px solid var(--tvh-rahmen);
        text-decoration: none;
        transition: all 0.15s ease;
    }

        .app-header .btn-abmelden:hover {
            color: var(--tvh-blau);
            border-color: var(--tvh-blau-hell);
            background-color: var(--tvh-blau-zart);
            text-decoration: none;
        }

.app-content {
    padding: 1.5rem 1.5rem 0 1.5rem;
    max-width: 1600px;
}

@media (max-width: 640.98px) {
    .app-header {
        display: none !important;
    }

    .app-content {
        padding: 1rem 0.75rem 0 0.75rem;
    }

    .sidebar .top-row {
        height: 3.5rem;
    }
}

@media (min-width: 641px) {
    .page {
        flex-direction: row;
    }

    .sidebar {
        width: var(--tvh-sidebar-breite);
        flex-shrink: 0;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    /* Der Hauptbereich ist der Scroll-Container (wird von saveScrollPosition/restoreScrollPosition vorausgesetzt) */
    main {
        height: 100vh;
        overflow-y: auto;
    }

    .top-row {
        position: sticky;
        top: 0;
        z-index: 10;
    }
}

/* ---------------------------------------------------------------------
   Navigation
   --------------------------------------------------------------------- */

.navbar-toggler {
    appearance: none;
    cursor: pointer;
    width: 2.75rem;
    height: 2.25rem;
    position: absolute;
    top: 0.625rem;
    right: 1rem;
    border: 1px solid var(--tvh-rahmen);
    border-radius: var(--bs-border-radius);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23104f9f' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.4rem var(--tvh-flaeche);
}

    .navbar-toggler:checked {
        background-color: var(--tvh-blau-zart);
        border-color: var(--tvh-blau-hell);
    }

.nav-scrollable {
    display: none;
    padding: 0.75rem 0.75rem 1.5rem 0.75rem;
}

.navbar-toggler:checked ~ .nav-scrollable {
    display: block;
}

@media (min-width: 641px) {
    .navbar-toggler {
        display: none;
    }

    .nav-scrollable {
        /* Never collapse the sidebar for wide screens */
        display: block;
        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - var(--tvh-topbar-hoehe));
        overflow-y: auto;
    }
}

.nav-gruppe {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8a96a6;
    padding: 1rem 0.75rem 0.35rem 0.75rem;
}

    .nav-gruppe:first-child {
        padding-top: 0.25rem;
    }

.nav-item {
    font-size: 0.9rem;
    padding: 0 0 2px 0;
}

    .nav-item .nav-link {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 2.35rem;
        padding: 0.4rem 0.75rem;
        border: 0;
        border-radius: var(--bs-border-radius);
        background: none;
        color: var(--tvh-text);
        text-align: left;
        transition: background-color 0.12s ease, color 0.12s ease;
    }

        .nav-item .nav-link .bi {
            font-size: 1.05rem;
            width: 1.25rem;
            color: var(--tvh-text-gedaempft);
            transition: color 0.12s ease;
        }

        .nav-item .nav-link:hover {
            background-color: var(--tvh-hintergrund);
            color: var(--tvh-blau);
        }

            .nav-item .nav-link:hover .bi {
                color: var(--tvh-blau);
            }

    .nav-item a.active {
        background-color: var(--tvh-blau-zart);
        color: var(--tvh-blau);
        font-weight: 600;
        box-shadow: inset 3px 0 0 var(--tvh-gruen);
    }

        .nav-item a.active .bi {
            color: var(--tvh-blau);
        }

.nav-trenner {
    border-top: 1px solid var(--tvh-rahmen);
    margin: 0.75rem 0.5rem;
}

.nav-benutzer .nav-link {
    font-weight: 500;
}

.nav-item .nav-link .bi.benutzer-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    flex-shrink: 0;
    top: 0;
    border-radius: 50%;
    background-color: var(--tvh-gruen-zart);
    color: var(--tvh-gruen-dunkel);
    font-size: 0.95rem;
    margin: 0 0.6rem 0 -0.25rem !important;
}

.nav-benutzer .benutzer-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bi {
    display: inline-block;
    position: relative;
    margin-right: 2px;
    top: -1px;
    line-height: 1;
    vertical-align: middle;
}

/* ---------------------------------------------------------------------
   Inhaltsflächen ("Karten")
   Die Seiten verwenden durchgängig .bg-light-Container als Abschnitte.
   Diese werden im Hauptbereich als weiße Karten dargestellt.
   --------------------------------------------------------------------- */

/* Kein umlaufender Rahmen: .border-success o. Ä. würde sonst alle Seiten einfärben. Die Kontur kommt aus dem Schatten. */
.app-content .bg-light,
.login-seite .bg-light {
    background-color: var(--tvh-flaeche) !important;
    border-radius: var(--tvh-radius) !important;
    box-shadow: 0 0 0 1px rgba(16, 40, 72, 0.06), var(--tvh-schatten);
}

/* Kopf-Karte einer Seite (farbige Akzentlinie oben, Farbe über .border-success/.border-warning) */
.app-content .bg-light.border-top.border-2 {
    border-top-width: 3px !important;
    border-top-style: solid !important;
}

/* Aufeinanderfolgende Karten etwas absetzen */
.app-content .bg-light.mt-1,
.app-content .row + .row > .col > .bg-light.rounded-bottom {
    margin-top: 0.75rem !important;
}

.app-content .bg-light .fs-4 {
    font-size: 1.35rem !important;
    font-weight: 650 !important;
    margin-bottom: 0.25rem;
}

    .app-content .bg-light .fs-4 > span > .bi:first-child,
    .app-content .bg-light .fs-5 > span > .bi:first-child {
        color: var(--tvh-gruen);
        margin-right: 0.4rem;
    }

.app-content .bg-light .fs-5 {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
}

/* ---------------------------------------------------------------------
   Breadcrumb
   --------------------------------------------------------------------- */

.app-breadcrumb {
    color: var(--tvh-text-gedaempft);
    font-size: 0.8rem;
    align-items: center;
}

    .app-breadcrumb a {
        color: var(--tvh-text-gedaempft);
    }

        .app-breadcrumb a:hover {
            color: var(--tvh-blau);
        }

    .app-breadcrumb .breadcrumb-trenner {
        color: #a9b3c0;
        font-size: 0.7rem;
    }

    .app-breadcrumb .breadcrumb-aktuell {
        color: var(--tvh-text);
        font-weight: 600;
    }

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */

.btn {
    font-weight: 500;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

    .btn .bi {
        margin-right: 0.3rem;
    }

.btn-sm {
    --bs-btn-padding-y: 0.3rem;
    --bs-btn-padding-x: 0.75rem;
}

.btn-primary {
    --bs-btn-bg: var(--tvh-blau);
    --bs-btn-border-color: var(--tvh-blau);
    --bs-btn-hover-bg: var(--tvh-blau-dunkel);
    --bs-btn-hover-border-color: var(--tvh-blau-dunkel);
    --bs-btn-active-bg: var(--tvh-blau-dunkel);
    --bs-btn-active-border-color: var(--tvh-blau-dunkel);
    --bs-btn-disabled-bg: var(--tvh-blau);
    --bs-btn-disabled-border-color: var(--tvh-blau);
    --bs-btn-focus-shadow-rgb: 16, 79, 159;
}

.btn-outline-primary {
    --bs-btn-color: var(--tvh-blau);
    --bs-btn-border-color: var(--tvh-rahmen);
    --bs-btn-hover-color: var(--tvh-blau);
    --bs-btn-hover-bg: var(--tvh-blau-zart);
    --bs-btn-hover-border-color: var(--tvh-blau-hell);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--tvh-blau);
    --bs-btn-active-border-color: var(--tvh-blau);
    --bs-btn-disabled-color: #a9b3c0;
    --bs-btn-disabled-border-color: var(--tvh-rahmen);
    --bs-btn-focus-shadow-rgb: 16, 79, 159;
    background-color: var(--tvh-flaeche);
}

/* Sekundäre Aktionen: ruhig, mit Rahmen */
.btn-secondary {
    --bs-btn-color: var(--tvh-blau);
    --bs-btn-bg: var(--tvh-flaeche);
    --bs-btn-border-color: var(--tvh-rahmen);
    --bs-btn-hover-color: var(--tvh-blau);
    --bs-btn-hover-bg: var(--tvh-blau-zart);
    --bs-btn-hover-border-color: var(--tvh-blau-hell);
    --bs-btn-active-color: var(--tvh-blau-dunkel);
    --bs-btn-active-bg: #dbe8f7;
    --bs-btn-active-border-color: var(--tvh-blau-hell);
    --bs-btn-disabled-color: #a9b3c0;
    --bs-btn-disabled-bg: var(--tvh-flaeche);
    --bs-btn-disabled-border-color: var(--tvh-rahmen);
    --bs-btn-focus-shadow-rgb: 16, 79, 159;
}

/* "Feld leeren"/Zurücksetzen u. Ä.: dezente Text-Aktion */
.btn-info {
    --bs-btn-color: var(--tvh-text-gedaempft);
    --bs-btn-bg: transparent;
    --bs-btn-border-color: transparent;
    --bs-btn-hover-color: var(--tvh-blau);
    --bs-btn-hover-bg: var(--tvh-blau-zart);
    --bs-btn-hover-border-color: transparent;
    --bs-btn-active-color: var(--tvh-blau);
    --bs-btn-active-bg: #dbe8f7;
    --bs-btn-active-border-color: transparent;
    --bs-btn-disabled-color: #a9b3c0;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: transparent;
    --bs-btn-focus-shadow-rgb: 16, 79, 159;
}

.btn-success {
    --bs-btn-bg: var(--tvh-gruen);
    --bs-btn-border-color: var(--tvh-gruen);
    --bs-btn-hover-bg: var(--tvh-gruen-dunkel);
    --bs-btn-hover-border-color: var(--tvh-gruen-dunkel);
    --bs-btn-active-bg: var(--tvh-gruen-dunkel);
    --bs-btn-active-border-color: var(--tvh-gruen-dunkel);
    --bs-btn-disabled-bg: var(--tvh-gruen);
    --bs-btn-disabled-border-color: var(--tvh-gruen);
}

.btn-group > .btn-outline-primary {
    min-width: 2.25rem;
}

/* ---------------------------------------------------------------------
   Formulare
   --------------------------------------------------------------------- */

.form-control, .form-select {
    border-color: #cfd8e3;
    background-color: var(--tvh-flaeche);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

    .form-control:focus, .form-select:focus {
        border-color: var(--tvh-blau);
        box-shadow: 0 0 0 0.2rem rgba(16, 79, 159, 0.15);
    }

.form-check-input:checked {
    background-color: var(--tvh-blau);
    border-color: var(--tvh-blau);
}

.form-check-input:focus {
    border-color: var(--tvh-blau);
    box-shadow: 0 0 0 0.2rem rgba(16, 79, 159, 0.15);
}

.col-form-label.fw-bolder, .form-label.fw-bolder {
    font-weight: 600 !important;
    color: var(--tvh-text);
    font-size: 0.875rem;
}

/*AutoFill-Style auf Inputs anpassen*/

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    border: 1px solid var(--tvh-blau-hell);
    -webkit-text-fill-color: var(--tvh-text);
    -webkit-box-shadow: 0 0 0px 1000px white inset;
    transition: none;
    background-color: white;
    font-size: 1rem;
}

/* ---------------------------------------------------------------------
   Tabellen
   --------------------------------------------------------------------- */

.table {
    --bs-table-striped-bg: #f7f9fc;
    --bs-table-hover-bg: var(--tvh-blau-zart);
    --bs-table-border-color: var(--tvh-rahmen-hell);
    margin-bottom: 0.5rem;
}

    .table > thead > tr > th {
        background-color: #f5f8fb;
        color: var(--tvh-text-gedaempft);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        font-size: 0.7rem !important;
        border-bottom: 1px solid var(--tvh-rahmen);
        padding-top: 0.55rem;
        padding-bottom: 0.55rem;
        vertical-align: middle;
    }

        .table > thead > tr > th[style*="cursor:pointer"]:hover {
            color: var(--tvh-blau);
        }

        .table > thead > tr > th .bi {
            color: var(--tvh-blau);
        }

    .table > tbody > tr > td {
        vertical-align: middle;
    }

    .table.border-top {
        border-top: 0 !important;
    }

.table-sm > :not(caption) > * > * {
    padding: 0.4rem 0.5rem;
}

.table-responsive {
    border: 1px solid var(--tvh-rahmen-hell);
    border-radius: 0.45rem;
}

    .table-responsive > .table {
        margin-bottom: 0;
    }

table.bb-table tfoot tr td,
.table tfoot tr td {
    font-weight: bold;
    font-style: italic
}

.tableHiglight {
    font-weight: bolder !important;
    background-color: #fff6d6 !important
}

.tableHiglight1 {
    font-weight: bold !important;
    background-color: #ffd9c9 !important
}

.tableHiglight2 {
    background-color: #e3f4f7 !important
}

.printTable {
    border: 1px solid black !important;
    border-collapse: collapse;
    padding: 4px
}

.smallerGridFont {
    /*font-size: 12px;*/
}

.columnWidthFit {
    width: 1%;
    white-space: nowrap;
}

/* Tabellen-Zeilen ohne Inhalt werden nicht dargestellt - wird für Quickgrid benötigt. Quickgrid zeigt leere Zeilen beim Paging an */
.quickGridTable tbody tr:not([aria-rowindex]) {
    display: none;
}

/* ---------------------------------------------------------------------
   Hinweise, Badges, Tabs
   --------------------------------------------------------------------- */

.alert {
    border-radius: var(--tvh-radius);
    border-width: 0 0 0 4px;
    box-shadow: var(--tvh-schatten);
}

.alert-danger {
    border-left-color: #c53030;
}

.alert-warning {
    border-left-color: #e0a800;
}

.alert-info {
    --bs-alert-bg: var(--tvh-blau-zart);
    --bs-alert-color: var(--tvh-blau-dunkel);
    border-left-color: var(--tvh-blau);
}

.alert-success {
    --bs-alert-bg: var(--tvh-gruen-zart);
    --bs-alert-color: var(--tvh-gruen-dunkel);
    border-left-color: var(--tvh-gruen);
}

.badge {
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 999px;
    padding: 0.35em 0.65em;
}

.nav-tabs {
    --bs-nav-tabs-border-color: var(--tvh-rahmen);
    --bs-nav-tabs-link-active-color: var(--tvh-blau);
    --bs-nav-tabs-link-active-border-color: var(--tvh-rahmen) var(--tvh-rahmen) var(--tvh-flaeche);
}

    .nav-tabs .nav-link {
        color: var(--tvh-text-gedaempft);
    }

        .nav-tabs .nav-link.active {
            font-weight: 600;
            box-shadow: inset 0 3px 0 var(--tvh-gruen);
        }

.text-primary {
    color: var(--tvh-blau) !important;
}

.text-success {
    color: var(--tvh-gruen) !important;
}

.bg-primary {
    background-color: var(--tvh-blau) !important;
}

.bg-success {
    background-color: var(--tvh-gruen) !important;
}

.border-success {
    border-color: var(--tvh-gruen) !important;
}

.border-primary {
    border-color: var(--tvh-blau) !important;
}

/* ---------------------------------------------------------------------
   Startseite
   --------------------------------------------------------------------- */

.willkommen {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    margin-bottom: 1.25rem;
}

    .willkommen h1 {
        font-size: 1.6rem;
        font-weight: 650;
        margin: 0;
    }

    .willkommen .willkommen-untertitel {
        color: var(--tvh-text-gedaempft);
        margin: 0.2rem 0 0 0;
    }

    .willkommen .letzter-login {
        color: var(--tvh-text-gedaempft);
        font-size: 0.8rem;
        background-color: var(--tvh-flaeche);
        border: 1px solid var(--tvh-rahmen-hell);
        border-radius: 999px;
        padding: 0.3rem 0.85rem;
        white-space: nowrap;
    }

        .willkommen .letzter-login .bi {
            color: var(--tvh-gruen);
        }

.dashboard-karte {
    background-color: var(--tvh-flaeche);
    border: 1px solid var(--tvh-rahmen-hell);
    border-radius: var(--tvh-radius);
    box-shadow: var(--tvh-schatten);
    padding: 1.25rem 1.35rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .dashboard-karte .karte-kopf {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .dashboard-karte .karte-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.4rem;
        height: 2.4rem;
        border-radius: 0.6rem;
        background-color: var(--tvh-blau-zart);
        color: var(--tvh-blau);
        font-size: 1.15rem;
        flex-shrink: 0;
    }

        .dashboard-karte .karte-icon .bi {
            margin: 0;
            top: 0;
        }

        .dashboard-karte .karte-icon.gruen {
            background-color: var(--tvh-gruen-zart);
            color: var(--tvh-gruen);
        }

    .dashboard-karte .karte-titel {
        font-size: 1.05rem;
        font-weight: 600;
        margin: 0;
        color: var(--tvh-blau-dunkel);
    }

    .dashboard-karte .karte-untertitel {
        font-size: 0.8rem;
        color: var(--tvh-text-gedaempft);
        margin: 0;
    }

    .dashboard-karte .karte-aktionen {
        margin-top: auto;
        padding-top: 1rem;
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

.schnellsuche {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

    .schnellsuche .schnellsuche-feld {
        position: relative;
        flex: 1 1 220px;
        max-width: 520px;
    }

        .schnellsuche .schnellsuche-feld .bi {
            position: absolute;
            left: 0.85rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--tvh-text-gedaempft);
        }

        .schnellsuche .schnellsuche-feld .form-control {
            padding-left: 2.4rem;
        }

.mitteilungen-liste {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .mitteilungen-liste li {
        border-top: 1px solid var(--tvh-rahmen-hell);
    }

        .mitteilungen-liste li:first-child {
            border-top: 0;
        }

    .mitteilungen-liste a {
        display: flex;
        align-items: baseline;
        gap: 0.85rem;
        padding: 0.55rem 0.5rem;
        margin: 0 -0.5rem;
        border-radius: 0.4rem;
        color: var(--tvh-text);
    }

        .mitteilungen-liste a:hover {
            background-color: var(--tvh-blau-zart);
            color: var(--tvh-blau);
            text-decoration: none !important;
        }

    .mitteilungen-liste .mitteilung-datum {
        font-size: 0.8rem;
        color: var(--tvh-text-gedaempft);
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
        min-width: 5.5rem;
    }

    .mitteilungen-liste .mitteilung-betreff {
        font-weight: 500;
    }

.zaehler-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    background-color: var(--tvh-gruen);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.4rem;
}

    .zaehler-badge.leer {
        background-color: var(--tvh-rahmen);
        color: var(--tvh-text-gedaempft);
    }

.leer-hinweis {
    color: var(--tvh-text-gedaempft);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

    .leer-hinweis .bi {
        color: var(--tvh-gruen);
        font-size: 1.1rem;
    }

.systemmeldung {
    display: flex;
    gap: 0.85rem;
    background-color: #fffaf0;
    border: 1px solid #f6e2b3;
    border-left: 4px solid #e0a800;
    border-radius: var(--tvh-radius);
    padding: 1rem 1.15rem;
    margin-top: 1rem;
    font-size: 0.9rem;
}

    .systemmeldung > .bi {
        color: #c98a00;
        font-size: 1.35rem;
    }

/* ---------------------------------------------------------------------
   Fußzeile
   --------------------------------------------------------------------- */

.app-footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    border-top: 1px solid var(--tvh-rahmen);
    margin: 3rem 0 0 0;
    padding: 1rem 0 1.5rem 0;
    font-size: 0.72rem;
    color: #8a96a6;
}

/* ---------------------------------------------------------------------
   Anmeldung / Konto-Seiten
   --------------------------------------------------------------------- */

.login-seite {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 1rem;
    background:
        radial-gradient(1200px 600px at 100% 0%, rgba(149, 196, 235, 0.35), transparent 60%),
        radial-gradient(900px 500px at 0% 100%, rgba(0, 146, 90, 0.10), transparent 60%),
        var(--tvh-hintergrund);
}

    .login-seite .login-karte {
        background-color: var(--tvh-flaeche);
        border: 1px solid var(--tvh-rahmen-hell);
        border-top: 4px solid var(--tvh-gruen);
        border-radius: 0.85rem;
        box-shadow: 0 10px 40px rgba(16, 40, 72, 0.10);
        padding: 2.25rem 2rem 1.75rem 2rem;
        max-width: 440px;
        width: 100%;
    }

    .login-seite .content {
        width: 100%;
        max-width: 1400px;
        margin: 0 auto;
    }

    .login-seite .row.mt-5 {
        margin-top: 0 !important;
    }

.login-logo {
    width: 110px;
    height: auto;
    margin-bottom: 0.75rem;
}

.login-titel {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--tvh-blau-dunkel);
    letter-spacing: 0.01em;
    margin-bottom: 1.5rem;
}

.login-seite .form-floating > .form-control {
    height: calc(3.4rem + 2px);
}

.form-floating > .form-control:focus ~ label::after,
.form-floating > .form-control:not(:placeholder-shown) ~ label::after {
    background-color: var(--tvh-flaeche);
}

.login-seite .btn-lg {
    font-size: 1rem;
    padding: 0.7rem 1rem;
}

/* ---------------------------------------------------------------------
   Druck
   --------------------------------------------------------------------- */

@media print {
    .noprint {
        display: none !important;
    }

    main {
        height: auto !important;
        overflow: visible !important;
    }

    .app-content {
        padding: 0 !important;
        max-width: none;
    }

    .app-content .bg-light {
        box-shadow: none;
        border: 0;
    }
}

@page {
    size: landscape;
    margin: 0.5cm;
}
