﻿/* ==========================================================================
   1. GLOBALE STYLES & DYNAMISCHE FARBEN (PROFI-STADION-LOOK)
   ========================================================================== */
:root {
    --color-bg-dark: #0f1115;      /* Ultra-Deep Black/Carbon */
    --color-card-bg: rgba(30, 35, 45, 0.75); /* Anthrazit mit leichter Transparenz */
    --color-text-light: #f5f6f8;   /* Knackiges Off-White für beste Lesbarkeit */
    --color-text-muted: #a0a5b5;   /* Dezentes Grau für Nebeninfos */
    --color-glad-green: #00b058;   /* Leuchtendes Grün */
    --color-pure-white: #ffffff;
    --color-pure-black: #000000;
}

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

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================================================
   2. HEADER & NAVIGATION (NUR DESKTOP: ab 769px)
   ========================================================================== */
@media (min-width: 769px) {
    .header {
        background-color: rgba(15, 17, 21, 0.95);
        backdrop-filter: blur(10px);
        position: sticky;
        top: 0;
        z-index: 1000;
        border-bottom: 3px solid var(--color-glad-green);
        height: 105px; /* Genug Platz für das Logo */
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
        transition: height 0.3s ease;
    }

    .nav-container {
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 25px;
        height: 100%;
        position: relative;
    }

    .logo-area {
        position: relative;
        z-index: 1010;
        width: 130px;
    }

    /* Startzustand: Riesiges, rundes Logo auf Desktop (Bild-Link) */
    .logo-link {
        background: linear-gradient(135deg, var(--color-pure-white) 0%, #e0e0e0 100%);
        width: 160px;
        height: 160px;
        border: 5px solid var(--color-glad-green);
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        position: absolute;
        top: -45px; /* Perfekt platziert, ohne oben abgeschnitten zu werden */
        box-shadow: 0 10px 25px rgba(0, 176, 88, 0.3);
        transition: all 0.3s ease;
        overflow: hidden;
        z-index: 1015;
    }

    /* Das Logo-Bild selbst */
    .logo-img {
        width: 85%;
        height: 85%;
        object-fit: contain;
        transition: all 0.3s ease;
    }

    /* --- EFFEKT BEIM SCROLLEN (NUR DESKTOP) --- */
    .header.scrolled {
        height: 65px; /* Header schrumpft beim Scrollen */
    }

    /* Logo-Link wird beim Herunterscrollen fliessend kleiner */
    .header.scrolled .logo-link {
        width: 75px !important;
        height: 75px !important;
        top: -30px !important;
        border-width: 3px !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4) !important;
    }

    .nav-menu {
        display: flex;
        gap: 15px;
        align-items: center;
    }

    .nav-menu a, .dropdown-toggle {
        color: var(--color-text-light);
        text-decoration: none;
        font-weight: 700;
        text-transform: uppercase;
        font-size: 13px;
        letter-spacing: 1px;
        transition: all 0.2s ease;
        padding: 10px 16px;
        background: none;
        border: none;
        cursor: pointer;
        font-family: inherit;
        border-radius: 4px;
    }

    .nav-menu a:hover, .dropdown-toggle:hover {
        color: var(--color-pure-black);
        background-color: var(--color-glad-green);
        box-shadow: 0 0 15px rgba(0, 176, 88, 0.4);
    }

    .dropdown {
        position: relative;
    }

    .dropdown-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: rgba(15, 17, 21, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-top: 3px solid var(--color-glad-green);
        min-width: 220px;
        box-shadow: 0 15px 30px rgba(0,0,0,0.5);
        padding: 8px 0;
        border-radius: 0 0 6px 6px;
    }

    .dropdown-menu a {
        display: block;
        padding: 12px 20px;
        text-transform: none;
        font-size: 14px;
        font-weight: 500;
        color: var(--color-text-muted);
    }

    .dropdown-menu a:hover {
        color: var(--color-pure-white);
        background-color: rgba(0, 176, 88, 0.2);
    }

    .dropdown:hover .dropdown-menu {
        display: block;
    }

    .menu-toggle {
        display: none;
    }
}

/* ==========================================================================
   3. HERO / STADION BANNER BEREICH (MIT HINTERGRUNDBILD)
   ========================================================================== */
.hero {
    /* Einbindung des Hintergrundbildes mit einem dunklen Farbverlauf-Overlay für optimale Lesbarkeit */
    background: linear-gradient(180deg, rgba(15, 17, 21, 0.7) 0%, rgba(15, 17, 21, 0.95) 100%), 
                url('images/banner_neu.jpg') no-repeat center center;
    background-size: cover;          /* Bild skaliert sich immer vollflächig */
    background-attachment: fixed;    /* Parallax-Effekt: Bild bleibt beim Scrollen fixiert (nur Desktop) */
    text-align: center;
    padding: 100px 20px 80px 20px;  /* Mehr Innenabstand für eine stärkere Bildwirkung */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 -50px 50px -50px rgba(0,0,0,0.8); /* Weicher Schatten nach unten */
}

.hero h1 {
    font-size: 3.5rem;               /* Vergrößert für monumentale Wirkung */
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--color-pure-white);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9); /* Starker Schatten, damit sich Text vom Bild abhebt */
}

.hero p {
    font-size: 1.4rem;
    color: var(--color-glad-green);
    margin-top: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

/* ==========================================================================
   4. KACHEL-LAYOUT (GRID-SYSTEM MIT GLASSMORPHISMUS)
   ========================================================================== */
.main-container {
    max-width: 1200px;
    margin: 20px auto 60px auto;
    padding: 0 25px;
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Basis-Kachel (Bleibt auf Unterseiten komplett still) */
.card {
    background-color: var(--color-card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 35px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    /* Transition bleibt aktiv, falls sich andere Elemente (wie der grüne Streifen) verändern */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Asymmetrischer, grüner Streifen links an jeder Kachel */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background-color: var(--color-glad-green);
    transition: width 0.2s ease;
}

/* --- ÄNDERUNG HIER: Hover-Effekt NUR bei Kacheln mit zusätzlicher .animated-card Klasse --- */
.card.animated-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(0, 176, 88, 0.3);
    box-shadow: 0 15px 30px rgba(0, 176, 88, 0.15);
}

/* Der grüne Streifen wird beim Hovern breiter - ebenfalls nur bei animierten Kacheln */
.card.animated-card:hover::before {
    width: 10px;
}

/* Erste Kachel erzwingt die volle Breite über alle Spalten */
.card-full-width {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(30,35,45,0.9) 0%, rgba(15,17,21,0.9) 100%);
    border: 1px solid rgba(0, 176, 88, 0.2);
}

.card h2 {
    font-size: 1.6rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--color-pure-white);
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

/* --- LINKS INNERHALB DER KACHELN --- */
.card a {
    color: var(--color-pure-white);
    text-decoration: none; /* Unterstreichung standardmäßig entfernen */
    font-weight: 600;
    transition: color 0.2s ease;
}

.card a:hover {
    color: var(--color-glad-green); /* Text wird beim Hovern grün */
    background: transparent;        /* Verhindert farbige Hintergründe */
}

.divider {
    border: none;
    height: 4px;
    background-color: var(--color-glad-green);
    width: 45px;
    margin-bottom: 25px;
    border-radius: 2px;
}

.card p {
    color: var(--color-text-muted);
    font-size: 15px;
}

/* Neue Regeln: Text-Links innerhalb von Kacheln verhalten sich wie im Footer */
.card a {
    color: var(--color-text-light); /* Oder deine gewünschte Variable */
}

/* Falls innerhalb einer Kachel einen auffälliger Button wie im Footer */
.card .btn-card-action {
    color: var(--color-pure-black) !important;
    background-color: var(--color-glad-green);
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 700;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(0, 176, 88, 0.2);
    border-bottom: none !important;
}

.card .btn-card-action:hover {
    color: var(--color-pure-white) !important;
    background-color: #008040;
}
.schedule-list {
    list-style: none;
}

.schedule-list li {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.schedule-list li:last-child {
    border-bottom: none;
}

.schedule-list .date {
    font-weight: 800;
    color: var(--color-glad-green);
    background-color: rgba(0, 176, 88, 0.1);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 13px;
    margin-right: 15px;
    min-width: 60px;
    text-align: center;
}

.schedule-list .event {
    color: var(--color-text-light);
    font-size: 14px;
}

.board-member {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 15px;
    color: var(--color-text-light);
}

.board-member strong {
    color: var(--color-glad-green);
}

.board-member:last-child {
    border-bottom: none;
}

/* Automatische Bildanpassung für Kacheln */
.card-img {
    width: 100%;          /* Nutzt die volle Breite der Kachel aus */
    max-width: 100%;      /* Verhindert, dass das Bild über die Kachel hinausragt */
    height: auto;         /* Behät das originale SeitenverhÃ¤ltnis bei (keine Verzerrung) */
    display: block;       /* Entfernt unschöne Abstände unterhalb des Bildes */
    margin-bottom: 15px;  /* Erzeugt einen sauberen Abstand zum nachfolgenden Text */
    border-radius: 4px;   /* Optional: Rundet die Ecken des Bildes leicht ab */
}

/* ==========================================================================
   5. FOOTER
   ========================================================================== */
.footer {
    background-color: #08090c;
    color: var(--color-text-light);
    margin-top: 80px;
    padding: 50px 0 25px 0;
    border-top: 4px solid var(--color-glad-green);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-section {
    flex: 1;
    min-width: 260px;
}

.footer-section h3 {
    color: var(--color-pure-white);
    text-transform: uppercase;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 20px;
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-glad-green);
}

.footer-section p {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--color-glad-green);
}

.footer-links .btn-download {
    color: var(--color-pure-black);
    background-color: var(--color-glad-green);
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 700;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(0, 176, 88, 0.2);
}

.footer-links .btn-download:hover {
    color: var(--color-pure-white);
    background-color: #008040;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0 auto;
    padding: 25px 25px 0 25px;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    font-size: 13px;
    color: #555a65;
}

/* ==========================================================================
   6. RESPONSIVE MEDIA QUERIES (TABLET & SMARTPHONE)
   ========================================================================== */

@media (max-width: 992px) {
    .grid-layout {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* SMARTPHONE-MODUS (STRENG ABGEGRENZT) */
@media (max-width: 768px) {
    .header {
        background-color: #0f1115;
        position: sticky;
        top: 0;
        z-index: 1000;
        border-bottom: 3px solid var(--color-glad-green);
        height: 70px;
    }

    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px;
        height: 100%;
        position: relative;
    }

    .logo-area {
        position: relative;
        z-index: 1010;
        width: 90px;
    }

    /* Auf Smartphones bleibt das Logo stabil und verkleinert sich beim Scrollen NICHT */
    .logo-link {
        background: linear-gradient(135deg, var(--color-pure-white) 0%, #e0e0e0 100%);
        width: 90px;
        height: 90px;
        top: -30px;
        border: 4px solid var(--color-glad-green);
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        position: absolute;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    }

    .logo-img {
        width: 85%;
        height: 85%;
        object-fit: contain;
    }

    .hero {
        padding: 110px 20px 60px 20px;
        background-attachment: scroll; /* Deaktiviert Parallax auf Handys aus Performancegründen */
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .grid-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card {
        padding: 25px;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 28px;
        height: 20px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1020;
    }

    .menu-toggle span {
        width: 100%;
        height: 3px;
        background-color: var(--color-text-light);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #0f1115;
        border-bottom: 3px solid var(--color-glad-green);
        padding: 20px;
        gap: 8px;
        box-shadow: 0 15px 25px rgba(0,0,0,0.5);
        align-items: stretch;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a, .dropdown-toggle {
        color: var(--color-text-light);
        text-decoration: none;
        font-weight: 700;
        text-transform: uppercase;
        font-size: 14px;
        width: 100%;
        text-align: center;
        padding: 14px 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        display: block;
        background: none;
        border-top: none;
        border-left: none;
        border-right: none;
    }
    
    .nav-menu a:hover, .dropdown-toggle:hover {
        background-color: rgba(0, 176, 88, 0.1);
        color: var(--color-glad-green);
    }

    .dropdown {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        background-color: #090a0d;
        padding: 0;
    }

    .dropdown-menu.show {
        display: block;
    }

    .dropdown-menu a {
        padding: 12px 0;
        text-align: center;
        color: var(--color-text-muted);
    }
}
