/* ========================
   GLOBAL STYLES & RESET
========================= */
html, body {
    height: 100% !important;
    margin: 0 !important;
    overflow-x: hidden !important;
    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
========================= */
        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: black !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;
}

.nav-item {
    font-family: "Verdana", "Arial", sans-serif;
    font-size: 18px !important;
    font-weight: bold !important;

}

.navbar-nav .nav-link {
    font-weight: 500 !important; /* Normal weight */
    transition: font-weight 0.2s ease; /* Only transition the font-weight */
}

    .navbar-nav .nav-link:hover {
        color: ghostwhite;
        font-size:19px;
    }

/* For browsers that don't support decimal font-weights (fallback) */

/* ========================
   NAVBAR
========================= */
.navbar,
.navbar-default,
.navbar-light,
.navbar-dark {
    background-color: #89ba17 !important;
    height: 140px !important;
    width: 100% !important;
}

    .navbar-light .navbar-nav .nav-link,
    .navbar-light .navbar-brand,
    .navbar-light .dropdown-toggle {
        color: white !important;
    }

    .navbar-light .dropdown-item:hover,
    .navbar-dark .dropdown-item:hover,
    .navbar-light .dropdown-item:focus,
    .navbar-dark .dropdown-item:focus,
    .navbar-light .dropdown-item:active,
    .navbar-dark .dropdown-item:active,
    .dropdown-item.active {
        background-color: #89ba17 !important;
        color: white !important;
    }

.img-fluid {
    margin-left: 30%;
}

.navbar-collapse {
    margin-left: 6%;
    s: 12px;
}

/* Responsive navbar logo and toggler fix */
@media (max-width: 992px) {
    .navbar {
        height: auto !important;
    }

    .navbar-toggler {
        margin-left: auto !important;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1000;
    }

    .navbar-brand {
        margin-right: auto !important;
        display: flex;
        align-items: center;
    }

        .navbar-brand img {
            max-height: 45px !important;
            margin-left: 12px !important;
        }

    .navbar-nav {
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .navbar-collapse {
        background-color: #89ba17 !important;
        text-align: center !important;
    }

    .nav-link {
        width: 100% !important;
        text-align: center !important;
        padding: 10px 0 !important;
    }
}

/* ========================
   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
========================= */
footer,
.footer {
    padding: 1rem !important;
    background-color: #89ba17 !important;
    color: white !important;
    font-size: 14px !important;
    line-height: 1.8 !important;
    text-align: center !important;
    border-top: 2px solid #ddd;
    margin-top: auto !important;
    position: relative !important;
    bottom: 0 !important;
    width: 100% !important;
}

    .footer a {
        text-decoration: none !important;
        margin: 0 10px !important;
        font-weight: bold !important;
    }

/* ========================
   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;
    }
}
