/* --- CSS Variablen für modernes & konsistentes Design --- */
:root {
    --bg-dark: #0f172a;        /* Edles, tiefes Dunkelblau-Grau */
    --bg-card: #1e293b;        /* Etwas hellerer Ton für Karten */
    --accent: #d4fc34;         /* Giftiges Tennis-Limettengelb */
    --accent-hover: #bde01c;
    --text-light: #f8fafc;     /* Fast Weiß */
    --text-muted: #94a3b8;     /* Grauton für sekundäre Texte */
    --radius: 12px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    padding-top: 80px; /* Platz für fixierte Navigationsleiste */
}

/* --- Navigation --- */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
}

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

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-light);
    text-decoration: none;
    letter-spacing: -1px;
}

.accent {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

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

/* --- Buttons --- */
.btn-nav, .btn-primary, .btn-secondary, .btn-logout {
    cursor: pointer;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-nav {
    background-color: var(--accent);
    color: var(--bg-dark);
    padding: 10px 20px;
}

.btn-nav:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--accent);
    color: var(--bg-dark);
    padding: 14px 28px;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    border-radius: var(--radius);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 252, 52, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 12px 26px;
    font-size: 16px;
    border-radius: var(--radius);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
}

/* --- Hero Section --- */
.hero {
    min-height: calc(80vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    background: radial-gradient(circle at top right, rgba(212, 252, 52, 0.05), transparent 40%);
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.text-stroke {
    color: var(--bg-dark); /* Gleiche Farbe wie dein Hintergrund */
    -webkit-text-stroke: 2px var(--text-light);
    /* Der magische Fix für saubere Buchstaben-Innenräume: */
    paint-order: stroke fill;
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

/* --- Layout & Sections --- */
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 60px;
    text-align: center;
    letter-spacing: -1px;
}

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

/* --- Cards --- */
.card, .course-card {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.02);
    transition: var(--transition);
}

.card:hover, .course-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 252, 52, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.icon {
    width: 40px;
    height: 40px;
    color: var(--accent);
    margin-bottom: 24px;
}

.card h3, .course-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
}

.card p, .course-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

.course-card {
    position: relative;
    overflow: hidden;
}

.course-badge {
    position: absolute;
    top: 15px;
    right: -30px;
    background-color: var(--accent);
    color: var(--bg-dark);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 30px;
    transform: rotate(45deg);
}

/* Anpassung für Flex-Preiskarten auf Smartphones */
@media (max-width: 992px) {
    #preise .grid-3 {
        flex-direction: column !important;
    }
}

/* --- Dashboard / Kalender Bereich --- */
.dashboard-box {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(212, 252, 52, 0.2);
    border-radius: var(--radius);
    padding: 40px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.btn-logout {
    background-color: #ef4444;
    color: white;
    padding: 8px 16px;
}

.btn-logout:hover {
    background-color: #dc2626;
}

.dashboard-intro {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 40px; }
}

.calendar-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.time-slot {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.time-slot:hover {
    background-color: rgba(212, 252, 52, 0.1);
    border-color: var(--accent);
    transform: scale(1.03);
}

.booking-list {
    list-style: none;
    margin-top: 15px;
}

.booking-list li {
    background-color: rgba(212, 252, 52, 0.08);
    border-left: 4px solid var(--accent);
    padding: 12px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 10px;
    font-size: 14px;
}

.booking-list li.empty-state {
    background-color: rgba(255, 255, 255, 0.02);
    border-left: 4px solid var(--text-muted);
    color: var(--text-muted);
}

/* --- Native Animation Keyframes & Scroll Klassen --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Reveal Klasse für JS-gesteuertes On-Scroll Fade-In (KORRIGIERT: Opacity auf 0 für echten Effekt) */
.reveal {
    opacity: 1;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Trainer Sektion Styles --- */
.trainer-card {
    background-color: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden; /* Damit der Bild-Placeholder oben sauber abschließt */
    border: 1px solid rgba(255, 255, 255, 0.02);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.trainer-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 252, 52, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.trainer-image-placeholder {
    width: 100%;
    height: 240px;
    background: linear-gradient(45deg, #1e293b, #334155);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 3px solid var(--accent);
}

.trainer-dummy-icon {
    width: 80px;
    height: 80px;
    color: rgba(255, 255, 255, 0.15);
}

.trainer-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.trainer-role {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 5px;
}

.trainer-card h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 4px;
}

.trainer-licence {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 15px;
    opacity: 0.9;
}

.trainer-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.trainer-socials {
    margin-top: auto; /* Schiebt die Socials immer ganz nach unten, falls Texte unterschiedlich lang sind */
    display: flex;
    gap: 15px;
}

.trainer-socials a {
    color: var(--text-muted);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.trainer-socials a:hover {
    color: var(--bg-dark);
    background-color: var(--accent);
    transform: scale(1.1);
}

/* --- Footer --- */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}