:root {
    --primary: #31a933;
    --primary-dark: #258527;
    --secondary: #b6d8a7;
    --secondary-light: #e8f5e5;
    --dark: #1a1a1a;
    --light: #f8f9fa;
    --white: #ffffff;
    --gray: #6c757d;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--dark);
    margin: 5px;
    transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: var(--white);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(49, 169, 51, 0.8), rgba(0, 0, 0, 0.6));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 35px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--primary);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(49, 169, 51, 0.4);
}

.btn:hover {
    background-color: transparent;
    color: var(--primary);
    transform: translateY(-3px);
    background-color: var(--white);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--white);
    box-shadow: none;
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary);
}

/* --- Sections General --- */
.section {
    padding: 80px 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--secondary);
    margin: 10px auto 0;
}

/* --- Features / Grid --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
    border-bottom: 4px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--primary);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 15px;
}

/* --- Interactive Course Section --- */
.interactive-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.interactive-image {
    height: 100%;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.interactive-content {
    padding: 40px;
}

.tab-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 15px 20px;
    background: var(--light);
    border: 2px solid transparent;
    border-radius: 10px;
    text-align: left;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tab-btn:hover {
    background: var(--secondary-light);
    color: var(--primary);
}

.tab-btn.active {
    background: var(--white);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Process Timeline --- */
.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--secondary-light);
    z-index: 0;
}

.step {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 25%;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--white);
    border: 4px solid var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
}

.step:hover .step-icon {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

.step h4 {
    margin-bottom: 10px;
}

.step p {
    font-size: 0.9rem;
    color: var(--gray);
    padding: 0 10px;
}

/* --- Stats Counter --- */
.stats-section {
    background: var(--primary);
    color: var(--white);
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-item h3 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: 800;
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* --- Academy Table --- */
.filter-container {
    max-width: 800px;
    margin: 0 auto 40px;
    position: relative;
}

.filter-input {
    width: 100%;
    padding: 15px 25px;
    border-radius: 50px;
    border: 2px solid var(--secondary);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.filter-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(49, 169, 51, 0.2);
}

.table-responsive {
    overflow-x: auto;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.academy-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.academy-table th, 
.academy-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--secondary-light);
}

.academy-table th {
    background-color: var(--primary);
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.academy-table tr {
    transition: var(--transition);
}

.academy-table tr:hover {
    background-color: var(--secondary-light);
}

.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-confirmed {
    background-color: #d4edda;
    color: #155724;
}

.status-full {
    background-color: #f8d7da;
    color: #721c24;
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* --- Detail Page --- */
.course-header {
    background-color: var(--primary);
    color: var(--white);
    padding: 60px 5%;
    border-radius: 0 0 50px 0;
    margin-bottom: 40px;
}

.course-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    padding: 0 5% 60px;
}

.course-sidebar {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.sidebar-item:last-child {
    border: none;
}

.sidebar-label {
    font-size: 0.85rem;
    color: var(--gray);
    text-transform: uppercase;
    margin-bottom: 5px;
    display: block;
}

.sidebar-value {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--dark);
}

.course-content h3 {
    color: var(--primary);
    margin: 30px 0 15px;
    font-size: 1.5rem;
}

.course-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.course-content li {
    margin-bottom: 10px;
}

/* --- Contact --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    box-shadow: var(--shadow);
    border-radius: 20px;
    overflow: hidden;
}

.contact-info {
    background: var(--primary);
    color: var(--white);
    padding: 60px;
}

.contact-form {
    background: var(--white);
    padding: 60px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
}

/* --- Footer --- */
footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 60px 5% 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--primary);
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.9rem;
    color: var(--gray);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0;
        height: 92vh;
        top: 8vh;
        background-color: var(--white);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        padding-top: 50px;
    }
    
    .nav-links.nav-active {
        transform: translateX(0%);
    }
    
    .burger {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .course-layout {
        grid-template-columns: 1fr;
    }
    
    .course-sidebar {
        position: relative;
        top: 0;
        order: -1;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .interactive-container {
        grid-template-columns: 1fr;
    }

    .interactive-image {
        min-height: 300px;
    }

    .process-steps {
        flex-direction: column;
        gap: 30px;
    }
    
    .process-steps::before {
        width: 4px;
        height: 100%;
        left: 50%;
        top: 0;
        transform: translateX(-50%);
    }

    .step {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: 90px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 0 5%;
    display: grid;
    /* 3 Spalten: Logo (flex), Mitte (auto), Rechts (flex) */
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.logo { display: flex; align-items: center; }

/* Die Links exakt in der Mitte */
.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0; padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    transition: 0.3s;
}

.nav-links a:hover { color: #28a745; }

/* Container rechts, damit der Button am Rand klebt */
.nav-right {
    display: flex;
    justify-content: flex-end;
}

/* --- DER GEILE BUTTON STYLE --- */
.btn-lehrgang {
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    padding: 10px 25px;
    border-radius: 50px; /* Runde "Pillen"-Form */
    
    /* Der Look im Normalzustand: Transparent mit grünem Rand */
    border: 2px solid #28a745;
    color: #28a745;
    background: transparent;
    
    transition: all 0.3s ease-in-out;
}

/* --- DER HOVER EFFEKT --- */
.btn-lehrgang:hover {
    /* Füllt sich grün */
    background-color: #28a745;
    color: #fff;
    /* Kleiner Schatten für 3D Effekt */
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
    transform: translateY(-2px);
}

/* Mobile Anpassung (Standard Burger Logik beibehalten) */
@media screen and (max-width: 1024px) {
    .navbar { display: flex; justify-content: space-between; }
    .nav-links, .nav-right { display: none; }
    .burger { display: block; cursor: pointer; }
}








* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* WICHTIG: Verhindert seitliches Scrollen auf dem Handy */
html, body {
    width: 100%;
    overflow-x: hidden;
    position: relative;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px; /* Feste Höhe */
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.logo {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding: 5px 0;
    color: var(--dark);
    text-transform: uppercase;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
}

/* Button "zum Lehrgang" Style */
.btn-lehrgang {
    font-weight: 700;
    text-transform: uppercase;
    padding: 10px 25px;
    border-radius: 50px;
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    transition: var(--transition);
}

.btn-lehrgang:hover {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(49, 169, 51, 0.3);
    transform: translateY(-2px);
}

/* Burger Menu Icon */
.burger {
    display: none;
    cursor: pointer;
    z-index: 1001; /* Muss über dem Menü liegen */
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--dark);
    margin: 5px;
    transition: var(--transition);
}

/* Burger Animation zu X */
.burger.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.burger.toggle .line2 {
    opacity: 0;
}
.burger.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: var(--white);
    margin-top: 0; 
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(49, 169, 51, 0.8), rgba(0, 0, 0, 0.6));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 35px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--primary);
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* --- Sections General --- */
.section {
    padding: 80px 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--primary);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

/* --- Interactive Tabs --- */
.interactive-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.interactive-image {
    min-height: 400px;
    background-size: cover;
    background-position: center;
}

.interactive-content {
    padding: 40px;
}

.tab-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 15px;
    background: var(--light);
    border: 2px solid transparent;
    border-radius: 10px;
    text-align: left;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.tab-btn.active, .tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--white);
}

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.5s ease; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* --- Process Steps --- */
.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.step {
    text-align: center;
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.step-icon {
    width: 70px;
    height: 70px;
    background: var(--white);
    border: 3px solid var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--primary);
    font-size: 1.5rem;
}

/* --- Footer --- */
footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 60px 5% 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-col h4 {
    color: var(--primary);
    margin-bottom: 20px;
}

.footer-col ul li { margin-bottom: 10px; }
.copyright {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    margin-top: 40px;
    color: var(--gray);
}

/* =========================================
   MOBILE / RESPONSIVE (HIER WAR DER FEHLER)
   ========================================= */
@media screen and (max-width: 960px) {
    /* 1. Burger anzeigen */
    .burger {
        display: block;
    }

    /* 2. Normale Navigation verstecken & für Mobile stylen */
    .nav-links {
        position: fixed; /* Fixed damit es über allem liegt */
        right: 0px;
        top: 0px;
        height: 100vh;
        width: 70%; /* Oder 100% wenn es ganz voll sein soll */
        max-width: 300px;
        background-color: var(--white);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding-top: 60px;
        
        /* Das Menü nach rechts rausschieben */
        transform: translateX(100%); 
        transition: transform 0.4s ease-in-out;
        
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 999; /* Unter dem Burger (1001), aber über dem Rest */
    }

    /* 3. Klasse für Javascript: Menü reinschieben */
    .nav-links.nav-active {
        transform: translateX(0%);
    }

    /* Links im Mobile Menü */
    .nav-links li {
        margin: 20px 0;
        opacity: 0; /* Für die Fade-In Animation */
    }

    /* Navigation Rechts (Button) verstecken auf Handy, oder ins Menü integrieren */
    .nav-right {
        display: none; 
    }
    
    /* Hero Text kleiner */
    .hero h1 { font-size: 2rem; }
    
    /* Interactive Bereich untereinander */
    .interactive-container { grid-template-columns: 1fr; }
    .interactive-image { min-height: 250px; }
}

/* Animation für die Links */
@keyframes navLinkFade {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}