/* =================================== */
/*      GLOBAL & ROOT VARIABLES        */
/* =================================== */
:root {
    --primary-color: #c0392b;
    --secondary-color: #f1c40f;
    --accent-green: #82b440;
    --text-color: #34495e;
    --background-light: #ffffff;
    --background-grey: #f8f9f9;
    --header-height: 90px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 5px;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--text-color);
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--background-light);
    border-color: var(--background-light);
}

.btn-secondary:hover {
    background-color: var(--background-light);
    color: var(--text-color);
}

.section {
    padding: 80px 0;
}

.section-grey {
    background-color: var(--background-grey);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}


/* =================================== */
/*        HEADER & NAVIGATION          */
/* =================================== */
.main-header {
    background-color: var(--background-light);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-text {
    font-size: 0.7rem;
    line-height: 1.4;
    color: var(--text-color);
    font-weight: 500;
    text-transform: uppercase;
}

.logo-text span {
    display: block;
}

.logo-text .kjas {
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo-graphic {
    width: 70px;
    height: auto;
}

.nav-right {
    display: flex;
    align-items: center;
}

.nav-menu {
    list-style: none;
    display: flex;
}

.nav-menu li {
    margin-left: 35px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
    padding-bottom: 5px;
    border-bottom: 3px solid transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.lang-switcher {
    margin-left: 30px;
    font-weight: 600;
}

.lang-switcher button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    padding: 5px;
    transition: color 0.3s ease;
}

.lang-switcher button:hover,
.lang-switcher button.active {
    color: var(--primary-color);
    text-decoration: underline;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 2rem;
    color: var(--text-color);
}

.lang-switcher-mobile {
    display: none;
}


/* =================================== */
/*          HERO SECTION (HOME)        */
/* =================================== */
#home {
    height: calc(100vh - var(--header-height));
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--background-light);

    /* --- CRITICAL RULES FOR BACKGROUND IMAGE --- */
    position: relative; /* This allows the ::before pseudo-element to be positioned correctly */
    overflow: hidden;   /* Prevents the background from spilling out */
    background-color: var(--text-color); /* Fallback color if image fails */
}

/* The hero content (text, buttons) needs a higher z-index to appear ON TOP of the background image */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem; /* Add some padding for better spacing */
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 40px;
}


/* =================================== */
/*          CONTENT SECTIONS           */
/* =================================== */

/* Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.benefit-card {
    background: var(--background-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.benefit-card .icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.benefit-card h3 {
    color: var(--text-color);
    margin-bottom: 10px;
}

/* Forms (Membership & Contact) */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
}

/* Statutes Section */
.statutes-content {
    max-width: 800px;
    margin: 0 auto;
}

.statutes-content h3 {
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.statutes-content p {
    margin-bottom: 15px;
}

.statutes-content ul {
    list-style-position: inside;
    padding-left: 20px;
    margin-bottom: 15px;
}

.statutes-link-wrapper {
    text-align: center;
    margin-top: 40px;
}

/* Board Section */
.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.board-card {
    background: var(--background-light);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    text-align: center;
    padding: 30px;
}

.board-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid var(--secondary-color);
}

.board-card h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.board-card .title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: flex-start;
}

.contact-info {
    background: var(--background-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}


/* =================================== */
/*              FOOTER                 */
/* =================================== */
.main-footer {
    background-color: var(--primary-color);
    color: var(--background-light);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul a {
    text-decoration: none;
    color: var(--background-light);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-column ul a:hover {
    opacity: 1;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0;
    opacity: 0.7;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}


/* =================================== */
/*         RESPONSIVE DESIGN           */
/* =================================== */
@media (max-width: 992px) {
    .hamburger {
        display: block;
    }

    .nav-menu {
        display: none; /* Hide by default */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: var(--header-height);
        left: 0;
        background-color: var(--background-light);
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }

    /* CORRECTED: Show menu when it has the 'active' class */
    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        margin: 0;
        width: 100%;
        text-align: center;
    }

    .nav-menu a {
        display: block;
        padding: 20px;
        border-bottom: 1px solid var(--background-grey);
    }

    .nav-right .lang-switcher { /* Hide the desktop switcher */
        display: none;
    }

    /* ===== START: VERBESSERTE REGELN FÜR MOBILEN SPRACHUMSCHALTER ===== */
    .lang-switcher-mobile {
        display: block; /* Macht das Listenelement sichtbar */
        border-bottom: 1px solid var(--background-grey);
    }

    .lang-switcher-mobile .lang-switcher {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 15px; /* Ausreichend Innenabstand */
        color: var(--text-color); /* Stellt sicher, dass die Trennstriche sichtbar sind */
    }

    .lang-switcher-mobile .lang-switcher button {
        margin: 0 10px; /* Abstand zwischen den Buttons */
    }
    /* ===== ENDE: VERBESSERTE REGELN ===== */

    #home {
        height: auto;
        padding: 120px 20px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .footer-legal-links a {
        margin: 5px 10px;
    }
}
/* ===== Cookie Consent Banner Styles ===== */
#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #1f2937; /* Dunkler Hintergrund */
    color: #ffffff;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: none; /* Wird per JS auf 'flex' gesetzt */
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

#cookie-consent-banner p {
    margin: 0;
    flex-grow: 1;
    font-size: 14px;
    line-height: 1.5;
}

#cookie-consent-banner a {
    color: #60a5fa; /* Helle Linkfarbe */
    text-decoration: underline;
}

#cookie-consent-banner .cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

#cookie-consent-banner button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

#cookie-accept-btn {
    background-color: #2563eb; /* Blauer Akzeptieren-Button */
    color: white;
}
#cookie-accept-btn:hover {
    background-color: #1d4ed8;
}

#cookie-decline-btn {
    background-color: #4b5563; /* Grauer Ablehnen-Button */
    color: white;
}
#cookie-decline-btn:hover {
    background-color: #374151;
}

/* Responsive Anpassung für schmale Bildschirme */
@media (max-width: 768px) {
    #cookie-consent-banner {
        flex-direction: column;
        text-align: center;
    }
}