/* ========================
   GLOBAL STYLES & RESET
========================= */
html {
    height: 100% !important;
    margin: 0 !important;
    overflow-x: initial !important; /* Instead of hidden */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: font-size 0.2s ease-in-out;
}


    body.contrast-mode {
        background-color: white !important;
        color: black !important;
    }


        /* ========================
   CONTRAST MODE OVERRIDES
========================= */

        /* Breadcrumb in contrast mode: make it readable on white bg */
        body.contrast-mode .breadcrumb .breadcrumb-item,
        body.contrast-mode .breadcrumb .breadcrumb-item a,
        body.contrast-mode .breadcrumb .breadcrumb-item.active,
        body.contrast-mode .breadcrumb .breadcrumb-item + .breadcrumb-item::before,
        body.contrast-mode .breadcrumb .text-muted {
            color: #000 !important; /* black text/divider */
        }

        body.contrast-mode .breadcrumb a:hover {
            color: #3acc59 !important; /* your green accent on hover */
            text-decoration: underline;
        }


        body.contrast-mode .navbar,
        body.contrast-mode .fancy-card-header,
        body.contrast-mode .btn,
        body.contrast-mode .filter-dropdown-button,
        body.contrast-mode .btn-success,
        body.contrast-mode .btn-back,
        body.contrast-mode .tag-badge,
        body.contrast-mode .btn-outline-primary,
        body.contrast-mode .toggle-link,
        body.contrast-mode .accordion-button:not(.collapsed),
        body.contrast-mode .accordion-header,
        body.contrast-mode .read-more,
        body.contrast-mode .read-less,
        body.contrast-mode .footer,
        body.contrast-mode .accordion-icon,
        body.contrast-mode .card-title::after {
            background-color: #323232 !important;
            color: white !important;
            border-color: black !important;
        }

        body.contrast-mode .admin-dropdown {
            background:black;
        }
.filter-dropdown-button.active-filter {
    background-color: #90bc14;
    color: white;
    border-color: #90bc14;
}

#clearFiltersBtn.highlighted {
    background-color: #dc3545;
    color: white;
    border-color: #dc3545;
}

body.contrast-mode .kontrast-btn {
    background-color: white !important;
    color: black !important;
    text-decoration: underline !important;
    border: none !important;
}

        body.contrast-mode .leichteSprache-btn {
            background-color: white !important;
            color: black !important;
            border: none !important;
        }

        body.contrast-mode .header {
            background: black !important;
            color: white !important;
        }

        body.contrast-mode .thickSubheader {
            background: black !important;
            color: black !important;
        }

        body.contrast-mode .btn-outline-primary:hover {
            background-color: #222 !important;
        }

        body.contrast-mode .accordion-button,
        body.contrast-mode a {
            color: white !important;
        }

        body.contrast-mode .fancy-card-footer {
            background-color: #eee !important;
        }

        body.contrast-mode .contact-item {
            background: black;
            color: white;
        }

            body.contrast-mode .contact-item h5,
            body.contrast-mode .contact-item p {
                color: white;
            }

    body.contrast-mode-on video {
        filter: grayscale(100%) contrast(150%);
    }

/* ========================
   TYPOGRAPHY & BUTTONS
========================= */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus,
.form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* ========================
   NAVBAR (glass pill – see _Layout.cshtml)
========================= */

/* ========================
   SUBHEADER
========================= */
.thickSubheader {
    text-decoration: none !important;
    color: black;
}

    .thickSubheader:hover {
        color: black;
    }

.headerSubdomains {
    background-color: #f1f1f1;
    padding: 0.25rem 0;
}

    .headerSubdomains p {
        padding-left: 30px !important;
        font-size: 1.2rem;
        text-align: center;
    }

    .headerSubdomains img {
        max-height: 30px;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }

@media (max-width: 480px) {
    .headerSubdomains p {
        font-size: 1rem;
    }

    .headerSubdomains img {
        max-height: 25px;
    }
}

/* ========================
   FOOTER (styled in _Layout.cshtml)
========================= */

/* ========================
   LAYOUT ELEMENTS
========================= */
.container {
    padding-bottom: 4rem;
}

    .container.text-center {
        padding: 5px 0 !important;
    }

.card-body {
    padding: 2rem !important;
}

    .card-body h2 {
        font-size: 2rem !important;
        margin-bottom: 0.5rem !important;
    }

.cardBackground {
    background: #f3f3f3 !important;
}

.video-player {
    max-width: 800px !important;
    margin: 0 auto !important;
}

.table td,
.table th {
    vertical-align: middle !important;
}

.section {
    max-width: 1500px !important;
    width: 90% !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
}

@media (max-width: 768px) {
    .section {
        width: 100% !important;
    }

    .row.position-relative {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}



