/* Globale Stile und Variablen */
:root {
    --primary-color: #ff6600; /* Energetisches Orange */
    --secondary-color: #ff8533; /* Helleres Orange für Hover etc. */
    --background-color: #1a1a1a; /* Dunkelgrau statt reinem Schwarz für besseren Kontrast */
    --text-color: #f0f0f0;
    --darker-bg: #111111;
    --font-main: 'Roboto', sans-serif;
    --font-headings: 'Orbitron', sans-serif; /* Technisch anmutende Schrift für Überschriften */
}

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

body {
    font-family: var(--font-main);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    /* Optional: dezente Hintergrundtextur */
    /* background-image: url('../images/bg-texture.png'); */
    /* background-repeat: repeat; */
}

/* Header & Navigation */
header {
    background-color: var(--darker-bg);
    padding: 10px 0;
    text-align: center;
    border-bottom: 3px solid var(--primary-color);
}

.logo-container {
    padding: 20px 0;
}

#teamLogo {
    max-width: 250px; /* Größe des Logos anpassen */
    height: auto;
    margin-bottom: 15px; /* Abstand zur Navbar */
}

/* Alternative Text-Logo Stile
.text-logo {
    font-family: var(--font-headings);
    font-size: 2.8em;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}
*/

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Für kleinere Bildschirme */
}

nav ul li {
    margin: 5px 15px;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9em;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: var(--primary-color);
    color: var(--background-color);
}

/* Main Content Sections */
main {
    padding-top: 20px;
}

.content-section {
    max-width: 960px;
    margin: 40px auto;
    padding: 20px;
    background-color: rgba(0,0,0,0.2); /* Leichter Overlay für Lesbarkeit */
    border-radius: 8px;
}

.content-section h2, .page-content h1 {
    color: var(--primary-color);
    font-family: var(--font-headings);
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.2em;
}
.page-content h1 {
    font-size: 2.5em;
}
.content-section h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 1.5em;
}

.content-section p, .content-section ul li {
    margin-bottom: 15px;
    font-size: 1.1em;
}
.content-section ul {
    list-style-position: inside;
    padding-left: 20px;
}

a {
    color: var(--primary-color);
}

a:hover {
    background-color: var(--secondary-color);
    color: white;
}


/* Karussell Stile */
#hero-carousel {
    max-width: 1000px; /* Maximale Breite des Karussells */
    margin: 0 auto 40px auto; /* Oben kein Margin, da Header schon Padding hat */
    overflow: hidden; /* Wichtig, damit nur ein Bild sichtbar ist */
    position: relative;
    border: 3px solid var(--primary-color);
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(255, 102, 0, 0.3);
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease-in-out; /* Für den Slide-Effekt */
}

.carousel-slide {
    min-width: 100%;
    position: relative; /* Für die Caption Positionierung */
}

.carousel-slide img {
    width: 100%;
    height: auto; /* Bilder responsiv machen */
    max-height: 550px; /* Maximale Höhe für die Bilder */
    object-fit: cover; /* Stellt sicher, dass das Bild den Bereich füllt ohne Verzerrung */
    display: block;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--text-color);
    padding: 10px;
    text-align: center;
    font-size: 1.1em;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--primary-color);
    border: none;
    padding: 10px 15px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.carousel-button:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

/* Call-to-Action Button */
.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--background-color);
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
    margin-top: 10px;
    border: 2px solid var(--primary-color);
}

.cta-button:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* News Section */
.news-item {
    background-color: rgba(255,255,255,0.05);
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid var(--secondary-color);
    border-radius: 0 4px 4px 0;
}

/* Kontaktformular */
#contactForm label {
    display: block;
    margin-bottom: 5px;
    color: var(--secondary-color);
    font-weight: bold;
}
#contactForm input[type="text"],
#contactForm input[type="email"],
#contactForm textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #444;
    border-radius: 4px;
    background-color: #2a2a2a;
    color: var(--text-color);
    font-size: 1em;
}
#contactForm textarea {
    resize: vertical;
}
#contactForm button[type="submit"] {
    /* Verwendet .cta-button Stile, aber als type="submit" */
}
.contact-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #444;
}
.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
}
.contact-info a:hover {
    text-decoration: underline;
}


/* Footer */
footer {
    text-align: center;
    padding: 25px 0;
    margin-top: 40px;
    background-color: var(--darker-bg);
    border-top: 3px solid var(--primary-color);
    font-size: 0.9em;
}
footer a {
    color: var(--secondary-color);
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}

/* Burger Menu Button Styling */
.burger-menu-button {
    display: none; /* Standardmäßig auf Desktops ausgeblendet */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: absolute; /* Positioniert relativ zum Header */
    top: 25px; /* Anpassen nach Bedarf */
    right: 20px; /* Anpassen nach Bedarf */
    z-index: 1001; /* Muss über dem Logo und anderen Header-Inhalten liegen, falls diese überlappen könnten */
}

.burger-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: 0.3s ease-in-out;
}

/* Animation für Burger zu "X" (optional aber schick) */
.burger-menu-button.open .burger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.burger-menu-button.open .burger-bar:nth-child(2) {
    opacity: 0;
}
.burger-menu-button.open .burger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Anpassungen für Mobile Navigation (innerhalb der Media Query) */
@media (max-width: 768px) { /* Dies ist der Breakpoint, an dem das Burger-Menü aktiv wird. Kann angepasst werden. */
    header {
        position: relative; /* Wichtig für die absolute Positionierung des Burger-Buttons */
        padding-bottom: 10px; /* Etwas mehr Platz, falls der Burger-Button den Fluss beeinflusst */
    }

    .logo-container {
        /* Evtl. Logo etwas kleiner machen oder anders positionieren für mobile Geräte */
        /* z.B. padding-bottom: 5px; wenn das Logo sehr groß ist */
    }
    #teamLogo {
        max-width: 150px; /* Kleineres Logo auf Mobile, falls das vorherige zu groß war */
        margin-bottom: 0; /* Entferne den unteren Rand, da die Nav jetzt anders ist */
    }


    nav#mainNav ul {
        /* Normale Navigations-Darstellung für Desktop hier überschreiben */
        display: none; /* Standardmäßig für Mobile ausgeblendet */
        flex-direction: column;
        align-items: center;
        width: 100%; /* Oder eine feste Breite, z.B. 250px für ein seitliches Menü */
        position: fixed; /* Oder absolute, je nach gewünschtem Effekt */
        top: 0; /* Beginnt am oberen Rand des Viewports */
        left: 0; /* Beginnt am linken Rand (für Slide-In von links) oder right: 0 für rechts */
        height: 100vh; /* Nimmt die volle Höhe ein */
        background-color: var(--darker-bg); /* Gleicher Hintergrund wie Header oder leicht transparent */
        padding-top: 80px; /* Platz für Logo/Header-Inhalt oder Schließen-Button */
        z-index: 1000; /* Stellt sicher, dass es über anderem Inhalt liegt */

        /* Slide-In Effekt (Beispiel von rechts) */
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }

    nav#mainNav ul.nav-open { /* Diese Klasse wird per JS hinzugefügt */
        display: flex; /* Wieder sichtbar machen */
        transform: translateX(0%); /* Ins Sichtfeld schieben */
    }

    nav#mainNav ul li {
        margin: 15px 0; /* Größerer vertikaler Abstand für Touch-Freundlichkeit */
        width: 100%;
        text-align: center;
    }

    nav#mainNav ul li a {
        padding: 15px 20px; /* Größere Klickflächen */
        display: block; /* Damit das Padding wirkt und der ganze Bereich klickbar ist */
        width: 100%;
        font-size: 1.1em;
    }

    nav#mainNav ul li a:hover,
    nav#mainNav ul li a.active {
        background-color: var(--primary-color);
        color: var(--background-color);
    }

    .burger-menu-button {
        display: block; /* Burger-Button auf Mobile anzeigen */
    }

    /* Karussell-Anpassungen für Mobile, falls nötig (bereits vorhanden) */
    .carousel-slide img {
        max-height: 300px; /* Evtl. Höhe weiter reduzieren */
    }
}

/* Kleinere Anpassungen für sehr kleine Bildschirme, falls nötig */
@media (max-width: 480px) {
    #teamLogo {
        max-width: 120px;
    }
    .burger-menu-button {
        top: 20px; /* Evtl. Position anpassen */
    }
    nav#mainNav ul {
        padding-top: 70px;
    }
    /* Weitere Anpassungen für Schriftgrößen etc. */
}
