/* Grundlegende Einstellungen */
:root {
    --primary-color: #333; 
    --accent-color: #c9302c; 
    --bg-light: #f5f5f5;
    --text-color: #444;
}

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

body {
    /* Moderne System-Schriftarten (sieht auf jedem Gerät nativ und gut aus) */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.6;
    color: var(--text-color);
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

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

/* --- HEADER & NAVIGATION --- */
.main-header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 2000; /* Sehr hoch, damit es immer oben bleibt */
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo a {
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    color: #000;
}

/* Desktop Menu Basis */
.main-nav > ul { 
    display: flex; 
    gap: 20px; 
    margin: 0;
    padding: 0;
}

.main-nav li {
    position: relative; /* Wichtig für Dropdown Positionierung */
}

.main-nav a { 
    font-weight: 500; 
    font-size: 0.9rem; 
    text-transform: uppercase; 
    display: block;
    padding: 25px 0; /* Vergrößert die Klickfläche vertikal */
}

.main-nav a:hover { color: var(--accent-color); }

/* --- DROPDOWN MENÜ (Allgemein) --- */
.main-nav .dropdown {
    display: none; /* Standardmäßig unsichtbar */
    background: #fff;
    min-width: 200px;
    flex-direction: column;
    padding: 10px 0;
    z-index: 1000;
}

.dropdown li { width: 100%; }
.dropdown li a { 
    display: block; 
    padding: 10px 15px; 
    text-transform: none; 
    border-bottom: 1px solid #eee;
}
.dropdown li:last-child a { border-bottom: none; }

/* --- NUR DESKTOP (Maus-Steuerung) --- */
@media (min-width: 769px) {
    .dropdown {
        position: absolute; /* Schwebt über dem Inhalt */
        top: 100%;
        left: 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        border-top: 3px solid var(--accent-color);
    }

    /* Menü zeigen, wenn man mit der Maus drüber fährt */
    .has-dropdown:hover .dropdown { 
        display: flex; 
    }
}

/* --- MOBILE MENU BUTTON --- */
.menu-toggle { 
    display: none; 
    background: none; 
    border: none; 
    font-size: 1.5rem; 
    cursor: pointer; 
}

/* --- HERO SEKTION --- */
.hero {
    /* Dein Bildpfad wurde hier beibehalten */
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('assets/img/Header_Verein.jpg');
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero h1 { font-size: 2.5rem; margin-bottom: 10px; }
.btn {
    background: var(--accent-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 3px;
    display: inline-block;
    margin-top: 20px;
    transition: background 0.3s;
}
.btn:hover { background: #a02622; }

/* --- CONTENT SEKTIONEN --- */
.section-welcome { padding: 60px 20px; text-align: center; }
.section-welcome h2 { margin-bottom: 20px; font-size: 2rem; }

.section-features { background: var(--bg-light); padding: 60px 0; }
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.feature-card {
    background: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: center;
}
.feature-card h3 { margin-bottom: 15px; }
.read-more { color: var(--accent-color); font-weight: bold; display: inline-block; margin-top: 10px; }

/* --- FOOTER --- */
.main-footer { background: #222; color: #ccc; padding: 40px 0 20px; margin-top: auto; }
.footer-widgets { display: flex; justify-content: space-between; flex-wrap: wrap; margin-bottom: 30px; }
.widget h3 { color: #fff; margin-bottom: 15px; }
.copyright { text-align: center; border-top: 1px solid #444; padding-top: 20px; font-size: 0.85rem; }

/* --- RESPONSIVE / MOBILE ANPASSUNGEN --- */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    
    .main-nav {
        display: none; /* Wird per JS auf .active geschaltet */
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 0;
        /* Schönerer Schatten, damit es über dem Inhalt schwebt */
        box-shadow: 0 15px 30px rgba(0,0,0,0.15); 
        z-index: 2000;
        /* Scrollbar, falls das Menü auf kleinen Handys zu lang wird */
        max-height: 80vh; 
        overflow-y: auto;
    }

    .main-nav.active { display: block; }

    .main-nav > ul { 
        flex-direction: column; 
        width: 100%; 
        gap: 0;
    }

    /* HAUPTMENÜ PUNKTE */
    .main-nav li {
        border-bottom: 1px solid #ddd; /* Klare Trennlinie */
    }

    .main-nav a {
        /* Viel größere Klickfläche für Finger (Touch-Friendly) */
        padding: 20px 25px; 
        font-size: 1.1rem;
        font-weight: 600; /* Hauptpunkte fett */
        display: block;
        color: #222;
    }

    /* DROPDOWN (UNTERMENÜ) DESIGN */
    .main-nav .dropdown { 
        position: static; 
        box-shadow: none; 
        border-top: none;
        
        /* UX-Verbesserung: Dunklerer Hintergrund für Kontrast */
        background: #f0f0f0; 
        
        /* Roter Balken links zur Orientierung */
        border-left: 6px solid var(--accent-color); 
        
        display: none; 
        padding: 0;
    }
    
    /* UNTERPUNKTE */
    .main-nav .dropdown li {
        border-bottom: 1px solid #e0e0e0; /* Zartere Linie als oben */
    }
    
    .main-nav .dropdown li a {
        /* Starke Einrückung (40px) damit man sofort sieht: Das ist ein Unterpunkt */
        padding: 15px 20px 15px 40px; 
        font-size: 1rem;
        font-weight: 400; /* Normale Schriftstärke */
        color: #555; /* Etwas helleres Schwarz */
    }

    /* Letzten Strich entfernen */
    .main-nav .dropdown li:last-child {
        border-bottom: none;
    }

    /* Toggle-Klasse für JS */
    .dropdown.show {
        display: block;
    }
    
    /* BUTTON Optimierung für Handy */
    .btn {
        display: block;
        text-align: center;
        margin: 20px;
        padding: 15px;
    }
}