:root {
    --brand-green: #92bc2c; /* Das Grün aus deinem Logo */
    --dark: #222;
    --white: #ffffff;
    --grey: #f9f9f9;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; color: #333; line-height: 1.6; }

/* .navbar { display: flex; justify-content: space-between; align-items: center; padding: 15px 5%; background: #fff; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.logo img { height: 60px; }
.nav-links { display: flex; list-style: none; }
.nav-links li { margin-left: 25px; }
.nav-links a { text-decoration: none; color: var(--dark); font-weight: 600; transition: 0.3s; }
.nav-links a:hover { color: var(--brand-green); }
*/

/* Das Menü-Band oben in Logo-Grün */
.navbar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 10px 5%; 
    background: var(--brand-green); /* Hier wird es grün */
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); /* Etwas stärkerer Schatten für Tiefe */
}

/* Da das Band jetzt grün ist, machen wir die Schrift weiß */
.nav-links a { 
    text-decoration: none; 
    color: white; /* Weißer Text auf grünem Grund */
    font-weight: bold; 
    font-size: 1.1rem;
    transition: 0.3s; 
    padding: 8px 15px;
    border-radius: 5px;
}

/* Hover-Effekt: Wenn man mit der Maus drüberfährt, wird das Grün etwas dunkler */
.nav-links a:hover { 
    background: rgba(0, 0, 0, 0.1); /* Sanfter Abdunklungseffekt */
    color: white;
}

/* Das Logo im grünen Band */
.logo img { 
    height: 65px; 
    /* Falls das Logo einen weißen Hintergrund hat, kann man ihn hier transparent wirken lassen: */
    filter: drop-shadow(0px 0px 2px rgba(255,255,255,0.5)); 
}


.hero { height: 80vh; display: flex; align-items: center; justify-content: center; text-align: center; color: white; background-size: cover; background-position: center; }
.hero h1 { font-size: 3.5rem; margin-bottom: 1rem; }


* Hero Text Bereich Optimierung */
.hero-text {
    max-width: 800px;
    padding: 20px;
}

.hero-text p {
    font-size: 1.4rem;
    margin-bottom: 30px; /* Erzeugt den nötigen Abstand nach unten */
}

/* Der Button bekommt mehr Abstand nach oben */
.btn-main {
    display: inline-block; /* Wichtig für das Margin */
    margin-top: 20px;      /* Schiebt den Button tiefer */
    background: var(--brand-green);
    color: white;
    padding: 18px 35px;    /* Etwas größer für bessere Lesbarkeit */
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.btn-main:hover {
    transform: scale(1.05); /* Kleiner Effekt beim Drüberfahren */
    background: #82a828;
}


.container { padding: 80px 10% 80px 10%; }
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.content-grid.reverse { direction: rtl; }
.content-grid.reverse .text { direction: ltr; }

.image-box img { width: 100%; border-radius: 15px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

.dark-section { background: var(--dark); color: white; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.gallery-grid img { width: 100%; height: 250px; object-fit: cover; border-radius: 8px; }

footer { background: #111; color: #ccc; padding: 50px 10%; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; }
.footer-links a { display: block; color: #999; text-decoration: none; margin-top: 10px; }

/* Cookie Banner Styles */
.cookie-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(34, 34, 34, 0.95);
    color: white;
    padding: 20px 5%;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 15px;
}

.cookie-content p {
    font-size: 0.9rem;
    margin: 0;
    flex: 1;
}

.btn-cookie {
    background: var(--brand-green);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.btn-cookie:hover {
    background: #7ca525;
}

.btn-link {
    color: #ccc;
    text-decoration: underline;
    font-size: 0.8rem;
    margin-left: 10px;
}

/* Responsive Anpassung für Handys */
@media (max-width: 768px) {
    .cookie-content { flex-direction: column; text-align: center; }
}

.contact-wrapper {
    max-width: 600px;
    margin: 40px auto;
    background: var(--grey);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--dark);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus {
    border-color: var(--brand-green);
    outline: none;
}

.form-checkbox {
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    font-size: 0.9rem;
}

.form-checkbox input {
    margin-right: 10px;
    margin-top: 4px;
}

.contact-form .btn-main {
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

* Akzentfarbe für alle großen Überschriften */
h2 {
    color: var(--dark);
    border-bottom: 3px solid var(--brand-green);
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

/* Icons in der Reha-Sektion grün färben */
.info-section ul li i {
    color: var(--brand-green);
    margin-right: 10px;
}

/* Die Reha-Sektion bekommt einen ganz leichten Grünstich im Hintergrund */
#rehasport {
    background-color: rgba(146, 188, 44, 0.05); /* Sehr dezentes Logo-Grün */
}

/* Die Kickbox-Sektion (Dunkel) bekommt eine grüne Trennlinie oben */
.dark-section {
    border-top: 5px solid var(--brand-green);
    background: #1a1a1a; /* Etwas tieferes Schwarz für mehr Kontrast */
}

gallery-grid img {
    border: 2px solid transparent;
    transition: 0.3s ease;
}

.gallery-grid img:hover {
    border-color: var(--brand-green);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(146, 188, 44, 0.2);
}

.timetable-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.day-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.day-card h3 {
    background: var(--brand-green);
    color: white;
    margin: 0;
    padding: 15px;
    text-align: center;
    font-size: 1.2rem;
}

.course-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.course-item:last-child {
    border-bottom: none;
}

.course-item .time {
    font-weight: bold;
    color: var(--brand-green);
    font-size: 0.9rem;
}

.course-item .course {
    font-size: 1rem;
    color: var(--dark);
}

/* Spezial-Style für Kickboxen */
.course-item.highlight {
    background: #fdf2f2; /* Ganz leichter Rotschimmer oder Anthrazit */
    border-left: 4px solid #e30613; /* Akzentfarbe von fit180 */
}

.course-item.highlight .time {
    color: #e30613;
}

.info-highlight-box {
    background: #fff;
    border: 2px solid var(--brand-green);
    border-radius: 15px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow: 0 10px 30px rgba(146, 188, 44, 0.15);
    margin-top: -20px; /* Rückt etwas näher an den Kursplan */
}

.info-icon {
    font-size: 3rem;
    color: var(--brand-green);
}

.info-text h3 {
    margin: 0 0 10px 0;
    color: var(--dark);
    border-bottom: none; /* Hier brauchen wir keine Linie */
}

.info-text p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Für Mobilgeräte untereinander stapeln */
@media (max-width: 600px) {
    .info-highlight-box {
        flex-direction: column;
        text-align: center;
    }
}

/* --- Mobile Optimierung (iPhone & Co.) --- */
@media (max-width: 768px) {
    
    /* 1. Menü anpassen */
    .navbar {
        flex-direction: column; /* Logo oben, Links darunter */
        padding: 15px;
    }

    .nav-links {
        margin-top: 15px;
        padding: 0;
        flex-wrap: wrap; /* Erlaubt Umbruch der Menüpunkte */
        justify-content: center;
    }

    .nav-links li {
        margin: 5px 10px; /* Mehr Platz zwischen den Buttons */
    }

    .nav-links a {
        font-size: 0.9rem;
        padding: 5px 10px;
    }

    /* 2. Hero-Bereich (Titelbild) */
    .hero h1 {
        font-size: 2rem; /* Schrift verkleinern, damit sie nicht bricht */
    }

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

    /* 3. Spalten untereinander stapeln */
    .content-grid, .content-grid.reverse {
        display: block; /* Statt Grid einfach untereinander */
        direction: ltr; /* Umdrehung für Mobile aufheben */
    }

    .image-box {
        margin-top: 20px;
    }

    /* 4. Kursplan für schmale Bildschirme */
    .timetable-grid {
        grid-template-columns: 1fr; /* Nur eine Spalte */
    }

    /* 5. Infobox (Kostenübernahme) */
    .info-highlight-box {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .info-icon {
        margin-bottom: 10px;
    }
}