/* ==========================================================================
   1. RESET & GLOBALE VARIABLEN
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #1A1A1A;      /* Tiefschwarz für Header & Footer */
    --red: #D32F2F;        /* Dynamisches Vereinsrot */
    --white: #FFFFFF;      /* Reines Weiß */
    --light-bg: #F8F9FA;   /* Hellgrau für den Seitenhintergrund */
    --text-dark: #2B2B2B;  /* Gut lesbarer dunkler Text */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
}

.container {
    width: 92%;
    max-width: 1100px;
    margin: 0 auto;
}

/* ==========================================================================
   2. HEADER & BURGER-NAVIGATION
   ========================================================================== */
.main-header {
    background-color: var(--black);
    color: var(--white);
    padding: 1rem 0;
    border-bottom: 4px solid var(--red);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Runde Kapsel für den traditionellen Vereinsstander */
.flag-wrapper {
    background-color: var(--white);
    padding: 6px;
    border-radius: 50%;
    border: 2px solid var(--red);
    width: 75px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.club-flag {
    width: 110%;
    height: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.club-name {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--white);
}

.highlight-red {
    color: var(--red);
}

.est-year {
    font-size: 0.85rem;
    color: #A0AEC0;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 2px;
}

/* Navigation Haupt-Container */
.main-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Die 3 immer sichtbaren Links */
.visible-menu {
    display: flex;
    list-style: none;
    font-weight: 600;
}

.visible-menu a {
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.visible-menu a:hover,
.visible-menu a.active {
    color: var(--red);
}

/* Burger-Menü Container */
.burger-menu-container {
    position: relative;
    display: flex;
    align-items: center;
}

.burger-checkbox {
    display: none;
}

.burger-button {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    padding: 1px;
}

.burger-bar {
    width: 100%;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger-button:hover .burger-bar {
    background-color: var(--red);
}

/* Das versteckte Dropdown-Menü */
.dropdown-menu {
    position: absolute;
    top: 35px;
    right: 0;
    background-color: var(--black);
    border: 2px solid var(--red);
    border-radius: 4px;
    list-style: none;
    width: 180px;
    padding: 0.5rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 200;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    color: var(--white);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    transition: all 0.2s;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
    background-color: var(--red);
    color: var(--white);
}

.burger-checkbox:checked ~ .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.burger-checkbox:checked ~ .burger-button .burger-bar:nth-child(1),
.burger-checkbox:checked ~ .burger-button .burger-bar:nth-child(3) {
    background-color: var(--red);
}

/* ==========================================================================
   3. STARTSEITE (WELCOME-SECTION)
   ========================================================================== */
.content-area {
    padding: 4rem 0;
    min-height: calc(100vh - 180px);
}

.welcome-section {
    background: linear-gradient(rgba(255, 255, 255, 0.60), rgba(255, 255, 255, 0.60)), url('Bilder/Hintergrund-1.jpg');
    background-size: cover;
    background-position: center;
    padding: 3.5rem 3.5rem 6rem 3.5rem;
    min-height: 550px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--black);
}

.welcome-section h1 {
    font-size: 2.5rem;
    color: var(--black);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.lead-text {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    color: #444;
}

.quick-facts {
    display: flex;
    gap: 1.5rem;
}

.fact-card {
    flex: 1;
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 4px;
    border-left: 4px solid var(--red);
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   4. UNTERSEITEN (Text- & Info-Sektionen)
   ========================================================================== */
.info-section {
    background: linear-gradient(rgba(255, 255, 255, 0.60), rgba(255, 255, 255, 0.60)), url('Bilder/seddinsee-karte.png');
    background-size: cover;
    background-position: center;
    padding: 3.5rem;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--red);
}

.info-section h1 {
    font-size: 2.5rem;
    color: var(--black);
    margin-bottom: 2rem;
    font-weight: 700;
}

.info-section p {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    text-align: justify;
}

.map-license {
    font-size: 0.8rem !important;
    color: #444 !important;
    margin-top: 3rem !important;
    text-align: right !important;
    font-style: italic;
}

.map-license a {
    color: var(--red);
    text-decoration: underline;
    font-weight: 600;
}

/* ==========================================================================
   5. VORSTANDS-GRID
   ========================================================================== */
.board-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.board-card {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 4px;
    border-left: 4px solid var(--black);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 20px;
}

.board-card.main-leader {
    border-left: 4px solid var(--red);
    background-color: #FFF5F5;
}

.board-icon {
    font-size: 2rem;
}

.board-card h2 {
    font-size: 1.4rem;
    color: var(--black);
    margin: 0;
}

.board-card .role {
    font-size: 1.1rem;
    color: #555;
    margin: 0;
    font-style: italic;
}

/* ==========================================================================
   6. KONTAKT-GRID (Hier war der Abbruchfehler behoben)
   ========================================================================== */
.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-card {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 4px;
    border-left: 4px solid var(--black);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.contact-card.external-queries {
    border-left: 4px solid var(--red);
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.contact-card h2 {
    font-size: 1.3rem;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.contact-card p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1rem !important;
    text-align: left !important;
}

.contact-link {
    display: inline-block;
    font-size: 1.2rem;
    color: var(--red);
    text-decoration: none;
    font-weight: 700;
}

.contact-link:hover {
    text-decoration: underline;
}

.phone-notice {
    display: block;
    font-size: 0.85rem;
    color: #777;
    margin-top: 0.8rem;
    font-style: italic;
    line-height: 1.4;
}

.address-text {
    line-height: 1.5;
    font-weight: 600;
    color: var(--text-dark) !important;
}

/* ==========================================================================
   7. RECHTLICHE TEXTE & FORMATE
   ========================================================================== */
.legal-texts h2 {
    font-size: 1.3rem;
    color: var(--black);
    margin: 2rem 0 0.5rem 0;
    border-bottom: 1px solid #E2E8F0;
    padding-bottom: 0.3rem;
}

.legal-texts h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin: 1.5rem 0 0.5rem 0;
}

.legal-divider {
    border: 0;
    height: 1px;
    background: #CBD5E0;
    margin: 3rem 0;
}

.social-note {
    font-style: italic;
    color: #555;
    background: #EDF2F7;
    padding: 1rem;
    border-radius: 4px;
}

/* ==========================================================================
   8. FOOTER
   ========================================================================== */
.main-footer {
    background-color: var(--black);
    color: #888;
    text-align: center;
    padding: 2rem 0;
    font-size: 0.85rem;
    border-top: 1px solid #333;
}

.main-footer a {
    color: var(--red);
    text-decoration: none;
}

.main-footer a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   9. RESPONSIVE ANPASSUNGEN (Grid-Raster für Tablets & PCs)
   ========================================================================== */
@media (min-width: 768px) {
    .board-grid,
    .contact-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        gap: 1.2rem;
    }
    .logo-area {
        flex-direction: column;
        text-align: center;
    }
    .quick-facts {
        flex-direction: column;
    }
    .welcome-section,
    .info-section {
        padding: 2rem;
    }
}

/* ==========================================================================
   10. HORIZONTALES UNTERMENÜ (SUB-NAV – Schwarz unterlegt)
   ========================================================================== */
.sub-nav {
    background-color: var(--black);
    margin: -3.5rem -3.5rem 2.5rem -3.5rem;
    padding: 0.8rem 2rem;
    border-bottom: 3px solid var(--red);
    border-radius: 4px 4px 0 0;
}

.sub-nav ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    list-style: none;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.sub-nav li {
    display: flex;
    align-items: center;
}

.sub-nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.4rem 0.8rem;
    transition: all 0.2s ease;
}

.sub-nav a:hover,
.sub-nav a.sub-active {
    color: var(--red);
}

@media (max-width: 600px) {
    .sub-nav ul {
        justify-content: center;
    }
    .sub-nav a {
        font-size: 0.9rem;
        padding: 0.3rem 0.5rem;
    }
}

/* ==========================================================================
   11. UNIVERSELLES DOWNLOAD- & BUTTON-STYLING
   ========================================================================== */
.title-download-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #E2E8F0;
    padding-bottom: 1rem;
}

/* Dieser Button funktioniert ab jetzt für ALLE Downloads auf der ganzen Seite */
.pdf-download-btn {
    display: inline-block !important;
    background-color: var(--red) !important;
    color: var(--white) !important;
    text-decoration: none !important;
    padding: 0.6rem 1.2rem !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
    font-size: 0.95rem !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    transition: background-color 0.2s ease, transform 0.1s ease !important;
}

.pdf-download-btn:hover {
    background-color: #B71C1C !important;
    transform: translateY(-1px);
}
