/* Grundlegende Variablen für ein konsistentes Farbschema */
:root {
    --primary-color: #a0522d; /* Sienna - ein warmer Braunton */
    --secondary-color: #cbbba6; /* Angepasst an Amalfibeige */
    --background-light: #e4d6c3; /* Elegantes Amalfibeige */
    --text-color: #5c4033; /* Dunkelbraun */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
    color: var(--text-color);
    line-height: 1.6;
    scroll-behavior: smooth; /* Weiches Scrollen bei Klick auf die Navigation */
    background: linear-gradient(-45deg, var(--background-light), #eee4d4, #d8c7b0, var(--background-light));
    /* animation: gradientBG 15s ease infinite; -> Deaktiviert, da Vollbild-Repaints das Scrollen extrem ausbremsen! */
    overflow-x: hidden; /* Verhindert seitliches Wackeln/Scrollen auf dem Handy */
}

/* --- Scrollbar Styling --- */
/* Für Firefox */
html {
    scrollbar-color: var(--primary-color) var(--background-light);
    scrollbar-width: thin;
}

/* Für Webkit-Browser (Chrome, Edge, Safari) */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--background-light);
}

::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 6px;
    border: 3px solid var(--background-light); /* Sorgt für einen schönen Rand um den Balken */
}

::-webkit-scrollbar-thumb:hover {
    background-color: #8b4513; /* Etwas dunkleres Braun beim Hovern */
}

/* Navigation */
header {
    background-color: rgba(228, 214, 195, 0.75); /* Amalfibeige und zu 75% sichtbar */
    backdrop-filter: blur(12px); /* Milchglas-Effekt */
    -webkit-backdrop-filter: blur(12px); /* Für Safari */
    border-bottom: 1px solid rgba(255, 255, 255, 0.5); /* Zarter Rand unten */
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky; /* Die Navigation bleibt beim Scrollen oben stehen */
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color); /* Geändert, da der Hintergrund nun hell ist */
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--text-color); /* Dunkle Schrift für gute Lesbarkeit */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Hamburger Icon (auf Desktop versteckt) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--primary-color);
    cursor: pointer;
}

nav a:hover {
    color: var(--primary-color);
}

.nav-socials {
    display: flex;
    gap: 1rem;
    align-items: center;
    border-left: 1px solid rgba(160, 82, 45, 0.3); /* Dezente Trennlinie */
    padding-left: 1rem;
}

/* Studio Vorstellung */
.intro-section {
    padding: 8rem 5% 6rem;
    min-height: 85vh; /* Füllt den Bildschirm besser aus */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

.intro-content {
    text-align: center;
    order: 2; /* Auf Mobilgeräten nach dem Bild anzeigen */
}

.intro-content h1 {
    font-size: 2.8rem; /* Etwas kleiner, damit sie auf Laptops nicht über drei Zeilen geht */
    line-height: 1.1; /* Engerer Zeilenabstand für modernen Look */
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.intro-content p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
    justify-content: center;
    flex-wrap: wrap; /* Bricht auf schmalen Handys sauber in zwei Zeilen um */
}

.cta-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--primary-color);
    color: var(--background-light);
    text-decoration: none;
    border-radius: 50px; /* Schicke Pillenform */
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px rgba(160, 82, 45, 0.2);
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background-color: #8b4513;
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(160, 82, 45, 0.3);
}

.cta-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: none;
}

.cta-secondary:hover {
    background-color: var(--primary-color);
    color: var(--background-light);
}

.intro-image img {
    width: 100%;
    max-width: 500px; /* Leicht verkleinert, gibt dem Text mehr Raum */
    aspect-ratio: 1 / 1; /* Hält das Bild quadratisch für den Effekt */
    object-fit: cover;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; /* Organische Blob-Form */
    box-shadow: 0 25px 50px rgba(160, 82, 45, 0.2);
}

/* Trainerinnen Portfolio */
.trainer-section {
    padding: 5rem 5%;
}

.trainer-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}


.trainer-container {
    display: flex;
    flex-direction: column; /* Sorgt dafür, dass die Trainerinnen untereinander stehen */
    gap: 3rem; /* Abstand zwischen den beiden Profilen */
    max-width: 900px;
    margin: 0 auto;
}

/* Einzelne Trainerin-Karte */
.trainer-card {
    display: flex;
    flex-direction: column;
    background: transparent; /* Entfernt die weiße Box */
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}

.trainer-card:hover {
    transform: translateY(-5px);
}

.trainer-image {
    padding: 1rem;
    position: relative; /* Wichtig, damit das kleine Action-Bild hier andocken kann */
    max-width: 100%; /* Verhindert, dass der Container den Bildschirm sprengt */
}

.trainer-image .main-shot {
    width: 280px;
    max-width: 100%; /* Macht das Bild flexibel für kleine Handys */
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    object-position: top; /* Richtet das Bild am oberen Rand aus, damit Köpfe nicht abgeschnitten werden */
    border-radius: 50%; /* Macht das Bild kreisrund */
    box-shadow: 0 15px 35px rgba(160, 82, 45, 0.15); /* Sanfter Schatten in Braun */
    position: relative;
    z-index: 1;
}

.trainer-image .action-shot {
    position: absolute;
    bottom: 5px;
    right: -5%; /* Prozentualer Wert, bricht nicht aus dem Layout aus */
    width: 130px; /* Schön klein, überlädt die Seite nicht */
    max-width: 45%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(160, 82, 45, 0.25);
    z-index: 2;
    mix-blend-mode: normal; /* Verhindert das Durchscheinen des Hintergrunds/Profilbilds */
}

/* Bei der zweiten Trainerin das Action-Bild nach links setzen für mehr Symmetrie */
.trainer-card:nth-of-type(even) .action-shot {
    right: auto;
    left: -5%;
}

.trainer-info {
    padding: 2.5rem;
}

.trainer-info h3 {
    color: var(--secondary-color);
    margin-bottom: 0.3rem; /* Weniger Abstand, um Platz für den Untertitel zu machen */
    font-size: 1.5rem;
}

.trainer-role {
    color: var(--primary-color);
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Kontakt Sektion */
.contact-section {
    padding: 5rem 5%;
}

.contact-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.contact-card {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.35); /* Viel weicherer Hintergrund, nimmt den harten Kontrast zum S/W Bild */
    border: 1px solid rgba(255, 255, 255, 0.5); /* Zarter, edler Rand */
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05); /* Sehr dezenter Schatten */
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Schneidet das Bild an den Ecken passend ab */
}

.contact-image {
    width: 100%;
    min-height: 250px;
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-form {
    padding: 2.5rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border: 1px solid rgba(160, 82, 45, 0.15); /* Sehr dezent */
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.6); /* Leicht transparentes Weiß, wirkt viel weicher */
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #ffffff; /* Wird beim Tippen ganz weiß */
    box-shadow: 0 0 0 3px rgba(160, 82, 45, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: var(--background-light);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.submit-btn:hover {
    background-color: #8b4513; /* Etwas dunkleres Braun */
    transform: translateY(-2px);
}

/* Deaktivierter Zustand für den Senden-Button während des Ladevorgangs */
.submit-btn:disabled {
    background-color: var(--secondary-color);
    cursor: not-allowed;
    transform: none;
}

/* Status-Nachricht für das Kontaktformular */
.form-status {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: none; /* Standardmäßig ausgeblendet */
    transition: all 0.3s ease;
}

.form-status.show {
    display: block;
}

.form-status.success {
    background-color: rgba(40, 167, 69, 0.15);
    color: #155724;
}

.form-status.error {
    background-color: rgba(220, 53, 69, 0.15);
    color: #721c24;
}

/* Impressum Sektion */
.impressum-section {
    padding: 3rem 5%; /* Deutlich weniger Abstand nach oben und unten */
}

.impressum-section h2 {
    text-align: center;
    font-size: 1.5rem; /* Kleinere Überschrift */
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.impressum-content {
    max-width: 600px; /* Kasten schmaler gemacht */
    margin: 0 auto;
    text-align: center;
    font-size: 0.9rem; /* Kleinere Schriftgröße für rechtliche/zusätzliche Infos */
}

.impressum-content p {
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--background-light);
    text-align: center;
    padding: 3rem 2rem 2rem; /* Etwas mehr Platz nach oben */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.social-media {
    display: flex;
    gap: 1.5rem;
}

.social-media a {
    color: var(--background-light);
    font-size: 1.8rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-media a:hover {
    color: var(--secondary-color); /* Wechselt zum helleren Sandton */
    transform: translateY(-5px) scale(1.1); /* Die Icons "springen" leicht entgegen */
}

.footer-links {
    display: flex;
    gap: 0.5rem; /* Reduzierter Abstand für eine saubere Trennlinie */
    justify-content: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--background-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    padding: 0 0.5rem;
    position: relative;
}

/* Trennlinie zwischen den Links */
.footer-links a:not(:last-child)::after {
    content: '|';
    position: absolute;
    right: -0.25rem;
    color: var(--secondary-color);
    opacity: 0.4;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: var(--background-light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(160, 82, 45, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background-color: #8b4513;
}

/* Umkehrung der Farben, wenn der Button über dem Footer liegt */
.back-to-top.invert {
    background-color: var(--background-light);
    color: var(--primary-color);
}

.back-to-top.invert:hover {
    background-color: var(--secondary-color);
}

/* Responsive Design für Smartphones (Bildschirme kleiner als 768px) */
@media (max-width: 767px) {
    header {
        flex-direction: row; /* Logo und Button nebeneinander */
        flex-wrap: wrap; /* Menü darf in die nächste Zeile rutschen */
        justify-content: space-between;
    }
    
    .logo {
        font-size: 1.1rem; /* Etwas kleiner für schmale Handy-Displays */
        max-width: calc(100% - 60px); /* Garantiert, dass rechts immer Platz für den Button bleibt */
        line-height: 1.2; /* Falls der Text umbricht, sieht es trotzdem ordentlich aus */
    }
    
    .menu-toggle {
        display: block; /* Hamburger Icon auf dem Handy anzeigen */
    }
    
    nav {
        width: 100%; /* Nav-Container füllt die gesamte Breite aus */
    }
    
    nav ul {
        display: none; /* Versteckt die Links standardmäßig */
        flex-direction: column;
        width: 100%;
        text-align: center;
        padding-top: 1rem;
        gap: 1rem;
    }
    
    nav ul.active {
        display: flex; /* Zeigt das Menü, wenn die "active"-Klasse gesetzt wird */
    }

    .contact-form {
        padding: 1.5rem; /* Weniger innerer Abstand rettet Platz auf schmalen Handys */
    }

    .hero-buttons {
        flex-direction: column; /* Buttons sauber untereinander statt nebeneinander */
        align-items: stretch;
    }
    
    .hero-buttons .cta-btn {
        text-align: center; /* Zentriert den Text im gestreckten Button */
    }

    .nav-socials {
        border-left: none; /* Trennlinie auf dem Handy ausblenden */
        padding-left: 0;
        justify-content: center;
    }

    .intro-content h1 {
        font-size: 2rem; /* Passend zur neuen Desktop-Größe auch hier etwas reduziert */
    }
    
    .trainer-section h2 {
        font-size: 1.75rem;
    }
}

/* Responsive Design für Desktop: Bild links, Text rechts für ein eleganteres Layout */
@media (min-width: 768px) {
    .intro-section {
        flex-direction: row; /* Bild und Text nebeneinander */
        text-align: left;
    }
    
    .intro-content {
        flex: 1;
        text-align: left;
        order: initial; /* Reihenfolge für Desktop zurücksetzen */
    }
    
    .hero-buttons {
        justify-content: flex-start; /* Auf großen Bildschirmen linksbündig */
    }
    
    .intro-image {
        flex: 1;
        order: initial; /* Reihenfolge für Desktop zurücksetzen */
    }

    .trainer-card {
        flex-direction: row; /* Ändert das Layout innerhalb der Karte */
        align-items: center;
        text-align: left;
        gap: 3rem;
    }
    
    .trainer-card:nth-of-type(even) {
        flex-direction: row-reverse; /* Bild bei der zweiten Trainerin nach rechts setzen */
        text-align: right;
    }
    
    .trainer-image {
        flex: 0 0 auto;
    }
    
    .trainer-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .contact-card {
        flex-direction: row; /* Bild und Formular auf Desktop nebeneinander */
        align-items: stretch;
    }
    
    .contact-image,
    .contact-form {
        flex: 1; /* Beide nehmen exakt 50% der Breite ein */
    }
    
    .contact-image {
        min-height: auto; /* Höhe wird vom Formular bestimmt */
    }
}
