@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600&family=Syne:wght@700;800&display=swap');

/* --- RESET & BASIC STYLES --- */
:root {
    --bg-main: #f9f9f9;
    --bg-card: #ffffff;
    --text-color: #333333;
    --text-muted: #666666;
    --border-color: #e0e0e0;
    --header-height: 50px;
    --font-family-base: 'Roboto', sans-serif;
    --font-size-base: 1rem;
    --line-height-base: 1.7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    background-color: var(--bg-main);
    color: var(--text-color);
}

p, li, span, a, label, input, button {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
}

p {
    text-align: justify;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-base);
    font-weight: 700;
    line-height: 1.3;
    margin-top: 0;
    font-size: var(--font-size-base);
}

h1 {margin-bottom: 25px; }
h2 {margin-bottom: 20px; }
h3 {margin-bottom: 15px; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 50px;
}

.theme-btn, #lang-switch {
    background: transparent;
    border: 1px solid #e0e0e0;
    color: var(--text-color);
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
}

.contact-hero p, .contact-hours p, .contact-grid h4, #welcome p, #training p {
    margin-top: 20px;
}

.instruktor-content p {
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .welcome-text,
    .leistungsangebote-text,
    .apparate-text,
    #pilates,
    #instruktor,
    #training {
        width: 92% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* --- FIXED HEADER --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    z-index: 1000;
}

.header-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -20%);
    z-index: 1001;
}

.header-logo img {
    height: 110px;
    width: auto;
    display: block;
    filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.1));
    background-color: #ffffff;
    padding: 8px;     
}

.site-title {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--text-muted);
}

.site-title p {
    margin: 0;
}

#lang-switch {
    background: none;
    border: 1px solid var(--border-color);
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 4px;
}

/* Rechter Header-Bereich (E-Mail + Burger-Button) */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 1001;
}

.header-email {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- BURGER BUTTON (IMMER SICHTBAR) --- */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* --- HEADER ICONS --- */

.header-icon {
    display: none;
    color: var(--text-muted);
    text-decoration: none;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.header-icon i {
    font-size: 1.1rem;
}

.header-icon:hover {
    color: #c66b5d;
}

.header-email-text, .header-phone-text {
    font-size: 0.9rem;
    color: var(--text-color);
    margin: 0;
    text-decoration: none;
}

/* --- MOBILE HEADER --- */

@media (max-width: 768px) {
    #welcome {
        padding: 40px 5% !important;
    }

    .header-phone-text,
    .header-email-text {
        display: none;
    }

    .header-phone-icon,
    .header-email-icon {
        display: flex;
    }

    .site-title {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .header-right {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .header-logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -20%);
        z-index: 1001;
    }

    .header-logo img {
        height: 55px;
        width: auto;
        padding: 4px;
    }

}

/* --- OVERLAY NAVIGATION --- */
.main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 350px;
    height: 100vh;
    background-color:#d8d1d0;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    padding: 100px 40px 40px;
    gap: 20px;
    transition: right 0.3s ease;
    z-index: 999;
}

.main-nav.active {
    right: 0;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    color: #DB2E15;
}

.nav-address {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-color);
    font-size: 0.9rem;
    white-space: nowrap;
}

.nav-address i {
    font-size: 0.9rem;
}

.site-header.nav-open .header-email-text {
    display: none;
}

/* --- HERO SECTION --- */
.hero-img-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;

    background: rgba(255, 255, 255, 0.25);
    border: none;
    color: #ffffff;

    width: 40px;
    height: 60px;

    font-size: 28px;
    font-weight: 300;

    cursor: pointer;
    transition: background 0.3s ease;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.45);
}

.hero-prev {
    left: 20px;
}

.hero-next {
    right: 20px;
}

.hero-section {
    width: 100%;
    height: 80vh;
    margin-top: 0 !important;
    padding: 0;
    overflow: hidden;
    position: relative;
    font-family: 'Syne', sans-serif;
}

.hero-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Inset-Schatten beibehalten */
.hero-img-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0px 0px 30px 10px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

/* Mobil-Anpassung */
@media (max-width: 768px) {
    .hero-section {
        height: 50vh; /* Etwas mehr Höhe auf Mobilgeräten für den Text */
    }
} 


.hero-marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 25s linear infinite;
}

.hero-marquee-content {
    display: flex;
    gap: 60px;
    flex-shrink: 0;
    padding-right: 60px;
}

.hero-marquee-content span {
    flex-shrink: 0;
}

.hero-marquee {
    width: 100%;
    overflow: hidden;
    background: #fff;
    color: #000;
    padding: 14px 0;
    white-space: nowrap;
}

.hero-marquee-track span {
    flex-shrink: 0;
    margin-right: 60px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* --- WELCOME SECTION --- */
#welcome {
    background-color: #ffffff; 
    width: 100%;
    padding: 60px 0;
    box-shadow: 0px 10px 30px -2px #a7353545;
}

.welcome-text {
    max-width: 80%;
    margin: 0 auto;
    padding: 0 5%;
    color: var(--text-color);
}

.youtube-wrapper {
    position: relative;
    width: 100%;
    height: 350px; /* Hier die gewünschte Höhe für Desktop eintragen */
    overflow: hidden;
}

.youtube-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.cookie-consent-placeholder {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    background: #f3f0e8;
    color: var(--text-color);
    text-align: center;
}

.cookie-consent-placeholder p {
    max-width: 36rem;
    text-align: center;
}

.cookie-consent-placeholder[hidden] {
    display: none;
}

.cookie-consent-button {
    border: 0;
    padding: 10px 18px;
    background: #c66b5d;
    color: #ffffff;
    cursor: pointer;
}

.cookie-consent-button:hover {
    background: #a95347;
}

.cookie-consent-button-secondary {
    background: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
}

.cookie-consent-button-secondary:hover {
    background: #ffffff;
}

.footer-cookie-settings {
    display: block;
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-align: left;
    text-decoration: underline;
}

.custom-cookie-banner {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(720px, calc(100% - 40px));
    padding: 20px 24px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.16);
}

.custom-cookie-banner strong {
    display: block;
    margin-bottom: 4px;
}

.custom-cookie-banner p {
    margin: 0;
    text-align: left;
}

.custom-cookie-actions {
    display: flex;
    flex-shrink: 0;
    gap: 10px;
}

@media (max-width: 600px) {
    .custom-cookie-banner {
        right: 10px;
        bottom: 10px;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        width: calc(100% - 20px);
        padding: 18px;
    }

    .custom-cookie-actions {
        flex-direction: column;
    }
}

/* Für Mobilgeräte noch etwas flacher machen */
@media (max-width: 768px) {
    .youtube-wrapper {
        height: 220px; /* Höhe für Smartphones */
    }
}

/* --- PILATES SECTION --- */
#pilates {
    max-width: none;
    padding: 60px 0;
    box-sizing: border-box;
    width: 100%;
    background-color: #f3f0e8;
}

.pilates-content {
    max-width: 80%;
    margin: 0 auto;
    padding: 0 5%;
    color: var(--text-color, #333);
}

#pilates h1 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #DB2E15;
    font-weight: 700;
    text-align: center;
}

@media (max-width: 768px) {
    .pilates-content {
        max-width: 100%;
    }
}
/* =========================================================
   4. INSTRUKTOR SECTION (Bild ganz links, Text vertikal zentriert)
   ========================================================= */

#instruktor {
    width: 100%;
    box-sizing: border-box;
}

/* Flexbox-Container richtet Bild und Textblock mittig zueinander aus */
.instruktor-content {
    display: flex;
    flex-direction: row;
    align-items: center;    /* Vertikale Zentrierung */
    gap: 12%;               /* Steuerbarer Abstand auf Desktop */
    width: 100%;
}

/* Bild klebt ganz links am Bildschirmrand */
#instruktor .img-wrapper {
    flex: 0 0 30%;           /* 30% Bildbreite */
    max-width: 30%;
    margin: 0;
    padding: 0;
    position: relative;      /* <--- 1. WICHTIG: Dient als Bezugspunkt für das 2. Bild */
}

#instruktor .instruktor-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* 2. Bild oben links im Hauptbild anheften */
#instruktor .instruktor-badge-img {
    position: absolute;      /* <--- 2. WICHTIG: absolute statt relative! */
    top: 0px;               /* Abstand von der oberen Kante des Hauptbildes */
    left: 0px;              /* Abstand von der linken Kante des Hauptbildes */
    width: 40%;              /* Nimmt 40% der Breite des Hauptbildes ein */
    height: auto;
    z-index: 10;
}

/* Text- und Überschriften-Container */
.instruktor-text {
    flex: 1;
    padding-right: 20%;        /* Abstand zum rechten Bildschirmrand */
}

.instruktor-text h1 {
    color: #DB2E15;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: left;
}

.instruktor-text p {
    line-height: var(--line-height-base);
    font-size: var(--font-size-base);
    margin: 0 0 20px 0;
    padding-left: 0;
    text-align: justify;
}

/* --- MOBIL-ANPASSUNG FÜR INSTRUKTOR --- */
@media (max-width: 768px) {
    .instruktor-content {
        flex-direction: column;
        gap: 20px;            /* Vertikaler Abstand auf Mobilgeräten */
        width: 90%;
        margin: 0 auto;
    }

    #instruktor .img-wrapper {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .instruktor-text {
        padding-right: 0;
    }

    .instruktor-text h1 {
        text-align: center;
    }

    .instruktor-text p {
        text-align: left;
    }
}

/* =========================================================
   5. FOOTER
   ========================================================= */
.site-footer {
    background-color: var(--footer-bg, #f9f9f9);
    padding: 20px 5%;
    color: var(--panel-color, #080808); 
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 25% !important;
    width: 100%;
    box-sizing: border-box;
    border-top: 2px solid #DB2E15;
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.footer-col h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--panel-color, #080808);
    font-size: 1rem;
}

.footer-col p {
    margin: 3px 0;
    min-width: 0;
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: anywhere;
    color: var(--panel-color, #080808);
    font-size: 0.85rem;
}

.site-footer a {
    color: var(--panel-color, #080808);
    text-decoration: none;
    margin-bottom: 4px;
    transition: color 0.2s ease;
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: anywhere;
    font-size: 0.85rem;
}

.site-footer a:hover {
    color: var(--header-text, #c66b5d);
}

.footer-bottom {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 10px;
    padding-top: 5px;
    box-sizing: border-box;
}

.footer-bottom p {
    margin: 0;
    color: var(--panel-color, #080808);
    font-size: 0.85rem;
    text-align: center !important; /* Verhindert das globale text-align: justify */
}

@media (max-width: 768px) {
    .footer-col h4 {
        margin-top: 10px;
    }
}

/* =========================================================
   6. RESPONSIVE (Mobil-Anpassung)
   ========================================================= */
@media (max-width: 768px) {
    .hero-section {
        height: 40vh;
    }

    #pilates,
    #instruktor {
        flex-direction: column;
        gap: 25px;
        margin: 20px auto;
    }

    #pilates .video-facade,
    #instruktor .image-block {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .site-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
        padding: 40px 20px;
    }

    .footer-col {
        width: 100%;
        align-items: center;
    }
}

/* --- LEISTUNGSANGEBOTE SECTION --- */
/* --- LEISTUNGSANGEBOTE SECTION --- */
#leistungsangebote {
    width: 100%;
    box-sizing: border-box;
}

/* Flexbox-Container: Text links, Bild ganz rechts */
.leistungsangebote-content {
    display: flex;
    flex-direction: row-reverse; /* Kehrt Reihenfolge um: Bild landet rechts */
    align-items: center;    /* Vertikale Zentrierung */
    gap: 8%;                /* Abstand zwischen Text und Bild */
    width: 100%;
}

/* Bild klebt ganz rechts am Bildschirmrand */
#leistungsangebote .img-wrapper {
    flex: 0 0 30%;           /* 30% Bildbreite */
    max-width: 30%;
    margin: 0;
    padding: 0;
    position: relative;      /* WICHTIG: Erlaubt absolute Positionierung für Kinder-Elemente */
}

#leistungsangebote .leistungsangebote-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Text-Container (steht jetzt links) */
.leistungsangebote-text {
    flex: 1;
    padding-left: 10%;       /* Abstand zum LINKEN Bildschirmrand */
    padding-right: 0;
}

.leistungsangebote-text h1 {
    color: #DB2E15;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: left;
}

.leistungsangebote-text p {
    line-height: var(--line-height-base);
    font-size: var(--font-size-base);
    margin: 0 0 20px 0;
    padding-left: 0;
    text-align: justify;
}

/* --- MOBIL-ANPASSUNG FÜR LEISTUNGSANGEBOTE --- */
@media (max-width: 768px) {
    .welcome-text p, .pilates-content p, .apparate-text p, .instruktor-text p, .training-text p, .leistungsangebote-text p, .contact-hero p, .contact-hours p, .contact-grid h4 {
        text-align: left;
    }

    .leistungsangebote-content {
        flex-direction: column;
        gap: 20px;
        width: 90%;
        margin: 0 auto;
    }

    #leistungsangebote .img-wrapper {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .leistungsangebote-text {
        padding-left: 0;
        padding-right: 0;
    }

    .leistungsangebote-text h1 {
        text-align: center;
    }

    .leistungsangebote-text p {
        text-align: left;
    }
}

#leistungsangebote .badge-img {
    position: absolute;
    top: 0px;        /* Abstand vom oberen Rand des Hauptbildes */
    right: 0px;      /* Abstand vom rechten Rand des Hauptbildes */
    width: 35%;      /* Breite des zweiten Bildes */
    height: auto;
    z-index: 10;
    filter: grayscale(100%);
}

/* --- APPARATE SECTION --- */
#apparate {
    background-color: #ffffff; 
    width: 100%;
    padding: 80px 0 60px 0; 
    box-sizing: border-box;
    overflow: hidden; 
}

.apparate-text {
    max-width: 80%;
    margin: 0 auto;
    padding: 0 5%;
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-color);
    text-align: justify;
    margin-bottom: 50px;
    text-align: center;
}

.apparate-text h1 {
    color: #DB2E15;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

/* DESKTOP GALERIE */
.apparate-gallery-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 20px;
    width: 100%; /* Stellt sicher, dass der Container die volle Breite nutzt */
}

.apparate-gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 80%;
    margin: 0 auto; /* Zentriert das 80%-Element waagerecht im Container */
}

.apparate-gallery .image-block {
    flex: 1;
    max-width: 30%; 
    box-sizing: border-box;
    transition: transform 0.3s ease;
}

/* Äußere Bilder sanft nach oben heben */
.apparate-gallery .image-block:nth-child(1),
.apparate-gallery .image-block:nth-child(3) {
    transform: translateY(-20px);
}

.img-apparate-wrapper {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.pilates-apparate {
    width: 100%;
    height: 350px; /* Kompakte Höhe */
    object-fit: cover;
    display: block;
}

/* Mobile Controls auf Desktop ausblenden */
.apparate-controls {
    display: none;
}


/* MOBILE ANSICHT (Unter 768px) */

@media (max-width: 768px) {

    #apparate {
        padding: 40px 0;
    }

    .apparate-text {
        width: 80% !important;
        max-width: 80% !important;
        box-sizing: border-box;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Stellt sicher, dass auch Absätze und Überschriften darin exakt auf 80% begrenzt bleiben */
    .apparate-text p,
    .apparate-text h1,
    .apparate-text h2 {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .apparate-gallery-container {
        flex-direction: column;
        align-items: center;
        width: 100%;
        position: relative;
    }

    .apparate-gallery {
        display: flex;
        overflow-x: auto;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        justify-content: flex-start;
        gap: 0;
        width: 100%;
        margin: 0 auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .apparate-gallery::-webkit-scrollbar {
        display: none;
    }

    .apparate-gallery .image-block {
        min-width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
        scroll-snap-align: center;
        transform: none !important;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .img-apparate-wrapper {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }

    .pilates-apparate {
        height: 250px;
        width: 100%;
        object-fit: cover;
    }

    /* Pfeile wie beim Hero */

    .apparate-controls {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 5;

        background: rgba(255, 255, 255, 0.25);
        border: none;
        color: #979696;

        width: 40px;
        height: 60px;

        font-size: 28px;
        font-weight: 300;
        cursor: pointer;

        transition: background 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .apparate-controls:hover {
        background: rgba(255, 255, 255, 0.45);
    }

    .app-prev {
        left: 20px;
    }

    .app-next {
        right: 20px;
    }
}

/* Das Hintergrundbild */
.about-profile-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(100%);
  z-index: 1; 
}

.content-over-image {
  position: relative;
  z-index: 2;
  color: #ffffff;
  text-align: center;
  padding: 20px;
  max-width: 800px; 
}

/* --- TRAINING SECTION (Text über Bild) --- */
/* =========================================================
   4. INSTRUKTOR SECTION (Bild ganz links, Text vertikal zentriert)
   ========================================================= */

#training {
    width: 100%;
    box-sizing: border-box;
}

/* Flexbox-Container richtet Bild und Textblock mittig zueinander aus */
.training-content {
    display: flex;
    flex-direction: row;
    align-items: center;    /* Vertikale Zentrierung */
    gap: 12%;               /* Steuerbarer Abstand auf Desktop */
    width: 100%;
}

/* Bild klebt ganz links am Bildschirmrand */
#training .img-wrapper {
    flex: 0 0 30%;           /* 30% Bildbreite */
    max-width: 30%;
    margin: 0;
    padding: 0;
    position: relative;      /* <--- 1. WICHTIG: Dient als Bezugspunkt für das 2. Bild */
}

#training .training-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* 2. Bild oben links im Hauptbild anheften */
#training .training-badge-img {
    position: absolute;      /* <--- 2. WICHTIG: absolute statt relative! */
    top: 0px;               /* Abstand von der oberen Kante des Hauptbildes */
    left: 0px;              /* Abstand von der linken Kante des Hauptbildes */
    width: 60%;              /* Nimmt 40% der Breite des Hauptbildes ein */
    height: auto;
    z-index: 10;
}

/* Text- und Überschriften-Container */
.training-text {
    flex: 1;
    padding-right: 20%;        /* Abstand zum rechten Bildschirmrand */
    padding-top: 40px;          /* Abstand nach oben */
}

.training-text h1 {
    color: #DB2E15;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: left;
}

.training-text p {
    line-height: var(--line-height-base);
    font-size: var(--font-size-base);
    margin: 0 0 20px 0;
    padding-left: 0;
    text-align: justify;
}

/* --- MOBIL-ANPASSUNG FÜR INSTRUKTOR --- */
@media (max-width: 768px) {
    .training-content {
        flex-direction: column;
        gap: 20px;            /* Vertikaler Abstand auf Mobilgeräten */
        width: 80%;
        margin: 0 auto;
    }

    #training .img-wrapper {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .training-text {
        padding-right: 0;
    }

    .training-text h1 {
        text-align: center;
    }

    .training-text p {
        text-align: left;
    }
}


/* --- ERFAHRUNGEN SECTION --- */
#erfahrungen {
    padding: 60px 10%;
    max-width: 1100px;
    margin: 0 auto;
}

.highlight-block {
  background-color: #ffffff;
  border-top: 1px solid #e8e4de;
  border-bottom: 1px solid #e8e4de;
}

.testimonials {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding-top: 60px;
  padding-bottom: 60px;
}

.testimonials h1 {
  color: #DB2E15;
  font-weight: 700;
  margin-bottom: 20px;
}

.testimonial {
  display: none;
  animation: fadeIn 0.5s ease forwards;
}

.testimonial.active {
  display: block;
}

.quote {
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: #4a4a4a;
  margin-bottom: 1.5rem;
}

.author {
  font-weight: 600;
  text-transform: uppercase;
  font-size: var(--font-size-base);
  letter-spacing: 1px;
  margin-bottom: 2rem;
  color: #7a6a58;
  margin-bottom: 3rem !important; 
  display: block !important;
}

.testimonial-controls {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.testimonial-controls .btn {
    background-color: transparent;
    border: 1px solid #7a6a58;
    color: #7a6a58;
    font-size: var(--font-size-base);
    width: 48px; 
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding-bottom: 4px; 
}

.testimonial-controls .btn:hover {
    background-color: #7a6a58;
    color: #ffffff;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 12px; 
    margin-top: 1.5rem;
}

.testimonial-dots .dot {
    width: 12px;   
    height: 12px;
    background-color: #e8e4de;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.testimonial-dots .dot:hover {
    background-color: #b5a999;
}

.testimonial-dots .dot.active {
    background-color: #c66b5d;
    transform: scale(1.2); 
}

/* --- STUDIO SECTION --- */
#studio {
    padding: 60px 5%;
    margin: 0 auto;
    background-color: #ffffff; 
    width: 100%;
    box-sizing: border-box;
    max-width: 80%;
    margin: 0 auto;
} 

.contact-hero {
    text-align: center;
    margin-bottom: 40px;
}

.contact-hero h1 {
    color: #DB2E15;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Flexbox Grid für Nebeneinander-Darstellung */
.contact-grid {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.contact-grid h2 {
    color: #DB2E15;
    font-weight: 700;
    margin-bottom: 20px;
}

.contact-info {
    flex: 1; /* Nimmt 50% der Breite ein */
}

.contact-info a {
    color: #000000;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: none;
    color: #c66b5d;
}

.map-section {
    flex: 1; /* Nimmt 50% der Breite ein */
    width: 100%;
    margin: 0; /* Entfernt vorherigen auto-Margin */
}

.map-container {
    width: 100%;
    height: 380px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color, #e0e0e0);
    background-color: var(--bg-card, #ffffff);
    position: relative;
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 100%;
}

.map-container .cookie-consent-placeholder {
    position: absolute;
}

/* Responsive Abfanger für Mobilgeräte */
@media (max-width: 768px) {
    .contact-grid {
        flex-direction: column;
    }
    
    #studio {
        padding: 40px 5%;
        max-width: 90%;
    }
}

/* --- CONTACT FORM --- */
.contact-form-area {
    padding: 60px 10%;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-form label {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: -10px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: inherit;
    color: var(--text-color);
    background-color: #f1a397;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #333333;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Button-Styling & Hover */
.contact-form .btn-primary {
    margin-top: 10px;
    padding: 14px 28px;
    font-size: var(--font-size-base);
    font-weight: 500;
    color: #ffffff;
    background-color: #333333;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.contact-form .btn-primary:hover {
    background-color: #555555;
}

.contact-form .btn-primary:active {
    transform: scale(0.99);
}

/* --- CONTENT SECTIONS --- */
main {
    margin-top: var(--header-height);
}

h1, h2 {
    margin-bottom: 20px;
    font-weight: 400;
    color: #111111;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input, 
.contact-form select, 
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    background-color: #fff;
    border-radius: 4px;
}


/* --- IMPRESSUM SECTION --- */
#impressum {
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.impressum-container {
    max-width: 80%;
    margin: 0 auto;
    background-color: var(--bg-card, #ffffff);
    padding: 80px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.impressum-container h1 {
    font-family: var(--font-family-base);
    font-weight: 700;
    line-height: 1.3;
    margin-top: 0;
    font-size: var(--font-size-base);
    color: #DB2E15;
}

.impressum-block {
    margin-bottom: 25px;
}

.impressum-block h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 12px;
    color: var(--text-color, #111111);
}

.impressum-block h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 18px;
    margin-bottom: 8px;
    color: var(--text-color, #333333);
}

.impressum-block p {
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-color, #333333);
    margin-bottom: 12px;
}

.impressum-block a {
    color: #DB2E15;
    text-decoration: none;
    transition: color 0.2s ease;
}

.impressum-block a:hover {
    text-decoration: underline;
}

.impressum-divider {
    border: none;
    border-top: 1px solid var(--border-color, #e0e0e0);
    margin: 30px 0;
}

/* MOBIL-ANPASSUNG */
@media (max-width: 768px) {
    #impressum {
        padding: 40px 5%;
    }

    .impressum-container {
        padding: 25px 20px;
    }

    .impressum-container h1 {
        font-size: var(--font-size-base);
    }
}

/* --- DATENSCHUTZ SECTION --- */
#datenschutz {
    max-width: 100%;
    box-sizing: border-box;
    margin-bottom: 60px;
    margin-top: 60px;
    margin-left: auto;
    margin-right: auto;
}

.datenschutz-container {
    max-width: 80%;
    margin: 0 auto;
    background-color: var(--bg-card, #ffffff);
    padding: 80px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.datenschutz-container h1 {
    font-family: var(--font-family-base);
    font-weight: 700;
    line-height: 1.3;
    margin-top: 0;
    font-size: var(--font-size-base);
    color: #DB2E15;
}

.datenschutz-block {
    margin-bottom: 25px;
}

.datenschutz-block h2 {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 15px;
    color: var(--text-color, #111111);
}

.datenschutz-block h3 {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin-top: 18px;
    margin-bottom: 8px;
    color: var(--text-color, #333333);
}

.datenschutz-block p {
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-color, #333333);
    margin-bottom: 12px;
}

.datenschutz-block ul {
    margin: 10px 0 15px 20px;
    color: var(--text-color, #333333);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
}

.datenschutz-block a {
    color: #DB2E15;
    text-decoration: none;
    transition: color 0.2s ease;
}

.datenschutz-block a:hover {
    text-decoration: underline;
}

.datenschutz-divider {
    border: none;
    border-top: 1px solid var(--border-color, #e0e0e0);
    margin: 30px 0;
}

/* MOBIL-ANPASSUNG */
@media (max-width: 768px) {
    #datenschutz {
        padding: 40px 5%;
    }

    .datenschutz-container {
        padding: 25px 20px;
    }

    .datenschutz-container h1 {
        font-size: var(--font-size-base);
    }
}

/* =========================================================
   BUCHUNGS-BUTTON
   ========================================================= */

/* Button-Styling für das <a> Tag */
a.btn-primary[data-i18n="booking_h2"],
.btn-primary {
    display: inline-block;
    padding: 12px 28px;
    background-color: #d8d1d0;
    color: #DB2E15;
    text-decoration: none;
    font-family: var(--font-family-base, sans-serif);
    font-size: var(--font-size-base, 1rem);
    font-weight: 500;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s ease, transform 0.1s ease;
    margin-top: 20px;
}

/* Hover & Active Effekte */
a.btn-primary[data-i18n="booking_h2"]:hover,
.btn-primary:hover {
    background-color: #ffffff;
    color: #DB2E15;
    text-decoration: none;
    border: 1px solid #DB2E15;
}

a.btn-primary[data-i18n="booking_h2"]:active,
.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    background-color: #030303;
    color: #ffffff;
    text-decoration: none;
    font-family: var(--font-family-base, sans-serif);
    font-size: var(--font-size-base, 1rem);
    font-weight: 500;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s ease, transform 0.1s ease;
    margin-top: 20px;
}

.btn-secondary:hover {
    background-color: #a39d9d;
    color: #000000;
    text-decoration: none;
}

