*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
}

/* UNSER LUXURIÖSER FARBKASTEN (Beige, Pastell, Gold) */
:root {
    /* Helle Flächen & Hintergründe (Unverändert) */
    --primary-beige: #FAF8F5;
    --soft-beige: #E8E0D5;
    --pastel-rose: #F9ECEC;
    --white: #ffffff;

    /* Akzent-Farben für Linien, Buttons & Dekoration (Unverändert) */
    --dark-beige: #C5A880;
    --gold-accent: #D4AF37;
    
    /* NEU: WCAG-konforme Text-Farben (Bronze & sattes Dunkelgrau) */
    --text-color: #333333; /* Standard-Text: Perfekter Kontrast (8.5:1) */
    --text-dark-beige: #8B6F4E; /* Für beige Überschriften/Texte (Kontrast > 4.5:1) */
    --text-gold-accent: #8A6508; /* Für goldene Highlights im Text (Kontrast > 4.5:1) */
}

body {

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-weight: normal;
    letter-spacing: 0.5px;
}

/* 1. EDLES MILCHGLAS-MENÜ */
header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--soft-beige);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 20px;
    box-shadow: 0 4px 20px rgba(197, 168, 128, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-dark-beige);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: var(--text-dark-beige);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-dark-beige);
    margin-left: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-nav a:hover {
    color: var(--text-gold-accent);
}

/* HINTERGRUND STARTSEITE MIT VIDEO */
.hero {
    position: relative;
    height: 75vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    background-color: var(--primary-beige);
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(250, 248, 245, 0.6);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 20px;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 10px;
    color: var(--text-color);
    font-weight: bold;
}

.hero-content p {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 35px;
    color: var(--text-color);
    letter-spacing: 0.5px;
}

/* DER ACADEMY HEADER */
.academy-hero {
    position: relative;
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-image: url('../images/academy-header.webp');
    background-size: cover;
    background-position: center;
}

.academy-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(250, 248, 245, 0.85);
}

.academy-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.academy-subtitle {
    color: var(--text-dark-beige);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.academy-hero-content h1 {
    font-size: 4rem;
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--text-color);
    font-weight: bold;
}

.academy-hero-content p {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 30px;
}

/* LUXUS BUTTONS */
.cta-button {
    background-color: var(--text-dark-beige);
    color: var(--white);
    padding: 16px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.4s ease;
    display: inline-block;
    border: 1px solid transparent;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    max-width: 100%;
    white-space: normal;
    line-height: 1.4;
}

.cta-button:hover {
    background-color: var(--white);
    color: var(--text-dark-beige);
    border: 1px solid var(--gold-accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.15);
}

/* DESIGN FÜR DAS QUALITÄTS-SIEGEL */
.quality-seal {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 160px;
    height: 160px;
    z-index: 10;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 15px 40px rgba(197, 168, 128, 0.2);
    padding: 5px;
}

/* EDLE TRENNLINIEN FÜR ABSCHNITTE */
.usp-section,
.services,
.gallery-section,
.reviews-section,
.location-section {
    border-top: 1px solid var(--soft-beige);
}

.usp-section {
    padding: 100px 20px;
    background-color: var(--pastel-rose);
}

.highlight-box {
    max-width: 850px;
    margin: 0 auto;
    border: 1px solid rgba(197, 168, 128, 0.3);
    padding: 60px 35px;
    /* QM-Anpassung: Abstand links/rechts verringert */
    background: var(--white);
    box-shadow: 0 15px 40px rgba(197, 168, 128, 0.08);
    text-align: left;
    /* QM-Anpassung: Fließtext linksbündig */
    border-radius: 4px;
    line-height: 1.8;
}

/* QM-Anpassung: Überschrift bleibt mittig */
.highlight-box h1,
.highlight-box h2,
.highlight-box h3 {
    text-align: center;
    margin-bottom: 25px;
}

.services {
    padding: 100px 20px;
    background-color: var(--primary-beige);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 50px auto;
}

.service-item {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--soft-beige);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(197, 168, 128, 0.15);
    border-color: var(--text-gold-accent);
}

.service-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 0;
    transition: background 0.4s;
}

.service-item:hover::before {
    background: rgba(255, 255, 255, 0.4);
}

.service-content {
    position: relative;
    z-index: 1;
    padding: 40px 20px;
    text-align: center;
}

.service-link {
    color: var(--text-dark-beige);
    font-size: 0.9rem;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.service-link:hover {
    color: var(--text-gold-accent);
}

.gallery-section {
    padding: 100px 20px;
    background-color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    /* Optimiert für sehr kleine Smartphone-Displays */
    gap: 20px;
    /* Leicht verringert für ein eleganteres Mobile-Raster */
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid var(--soft-beige);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    cursor: pointer;
    /* UX-Boost: Zeigt Nutzern (Maus-Hand), dass das Bild klickbar ist */
    position: relative;
    -webkit-tap-highlight-color: transparent;
    /* Verhindert das unschöne blaue Flackern beim Tippen auf dem Handy */
}

.gallery-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.news-teaser-section {
    padding: 100px 20px;
    background-color: var(--pastel-rose);
    border-top: 1px solid var(--soft-beige);
}

.news-teaser-container {
    max-width: 850px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 60px 35px;
    /* QM-Anpassung: Abstand links/rechts verringert */
    border-radius: 8px;
    border: 1px solid rgba(197, 168, 128, 0.2);
    box-shadow: 0 15px 40px rgba(197, 168, 128, 0.08);
    text-align: left;
    /* QM-Anpassung: Fließtext linksbündig */
    line-height: 1.8;
}

/* QM-Anpassung: Überschrift bleibt mittig */
.news-teaser-container h1,
.news-teaser-container h2,
.news-teaser-container h3 {
    text-align: center;
    margin-bottom: 25px;
}

.reviews-section {
    padding: 100px 20px;
    background-color: var(--primary-beige);
}

.google-badge-container {
    text-align: center;
    margin-bottom: 50px;
}

.google-badge {
    display: inline-flex;
    align-items: center;
    background-color: var(--white);
    border: 1px solid var(--soft-beige);
    padding: 12px 30px;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
    text-decoration: none;
    transition: all 0.3s ease;
}

.google-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(197, 168, 128, 0.15);
    border-color: var(--text-gold-accent);
}

.google-g {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4285F4;
    margin-right: 15px;
    font-family: Arial, sans-serif;
}

.badge-text {
    font-size: 1.1rem;
    color: var(--text-color);
}

.stars-gold,
.stars {
    color: var(--text-gold-accent);
    letter-spacing: 2px;
}

.stars {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.review-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    border: 1px solid rgba(197, 168, 128, 0.2);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: transform 0.4s;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(197, 168, 128, 0.1);
}

.review-text {
    font-style: italic;
    margin-bottom: 20px;
    color: #555;
    line-height: 1.8;
}

.review-author {
    font-weight: bold;
    color: var(--text-dark-beige);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.location-section {
    padding: 100px 20px;
    background-color: var(--white);
    max-width: 1100px;
    margin: 0 auto;
}

.safe-map-container {
    position: relative;
    border: 1px solid var(--soft-beige);
    border-radius: 8px;
    background-color: var(--primary-beige);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 450px;
}

.safe-map-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    filter: blur(2px);
}

.safe-map-overlay {
    position: relative;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 50px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(197, 168, 128, 0.3);
    box-shadow: 0 10px 30px rgba(197, 168, 128, 0.1);
}

.contact-info {
    background-color: var(--white);
    color: var(--text-color);
    padding: 60px 50px;
    max-width: 850px;
    width: 100%;
    margin: 0 auto 50px auto;
    border: 1px solid rgba(197, 168, 128, 0.3);
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(197, 168, 128, 0.08);
}

.contact-info h2 {
    margin-top: 0;
    color: var(--text-color);
    margin-bottom: 25px;
}

.contact-info p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.contact-buttons {
    display: flex;
    gap: 15px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.btn-whatsapp,
.btn-phone,
.btn-email {
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    color: var(--white);
    font-weight: bold;
    text-align: center;
    transition: all 0.4s ease;
    flex: 1;
    min-width: 150px;
    border: 1px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-whatsapp {
    background-color: #25D366;
}

.btn-whatsapp:hover {
    background-color: var(--white);
    color: #25D366;
    border-color: #25D366;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.2);
}

.btn-phone {
    background-color: var(--text-dark-beige);
}

.btn-phone:hover {
    background-color: var(--white);
    color: var(--text-dark-beige);
    border-color: var(--text-gold-accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.15);
}

.btn-email {
    background-color: var(--text-color);
}

.btn-email:hover {
    background-color: var(--white);
    color: var(--text-color);
    border-color: var(--text-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

footer {
    background: var(--primary-beige);
    border-top: 1px solid var(--soft-beige);
    color: var(--text-color);
    padding: 80px 20px 40px 20px;
    text-align: center;
}

.copyright {
    border-top: 1px solid var(--soft-beige);
    padding-top: 30px;
    font-size: 0.95rem;
    color: #666;
}

.copyright a {
    color: var(--text-color) !important;
    font-weight: 600;
    transition: color 0.3s;
    text-decoration: none;
}

.copyright a:hover {
    color: var(--text-gold-accent) !important;
}

/* HANDY ANSICHT (MOBILE FIRST OPTIMIERUNG) */
@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
    }

    .logo {
        font-size: 16px;
        letter-spacing: 0.5px;
        white-space: normal;
        line-height: 1.2;
        max-width: 80%;
    }

    .hamburger {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        /* Versteckt es rechts außerhalb */
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: rgba(245, 240, 235, 0.85);
        /* HIER IST DIE NEUE TRANSPARENZ */
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        border-left: 1px solid var(--dark-beige);
        /* ELEGANTER RAND */
        display: flex;
        /* Muss auf flex stehen, damit right funktioniert */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.4s ease-in-out;
        /* Die flüssige Animation */
        z-index: 1050;
    }

    .main-nav.active {
        right: 0;
        /* Dies schiebt das Menü jetzt aktiv ins Sichtfeld */
    }

    .main-nav.active a {
        color: #333333 !important;
        /* DUNKLE SCHRIFT WIE GEWÜNSCHT */
        font-weight: 600;
    }

    .main-nav a {
        margin: 15px 0;
        font-size: 1.1rem;
        text-align: center;
        border-left: none !important;
        padding-left: 0 !important;
    }

    /* X ZUM SCHLIESSEN DES MENÜS */
    .close-menu {
        position: absolute;
        top: 20px;
        right: 25px;
        font-size: 40px;
        color: var(--text-dark-beige);
        cursor: pointer;
        line-height: 1;
        transition: color 0.3s;
    }

    .close-menu:hover {
        color: var(--text-gold-accent);
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .hero {
        height: auto;
        min-height: 70vh;
        padding-top: 15px;
        padding-bottom: 80px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .academy-hero {
        height: auto;
        min-height: 50vh;
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .academy-hero-content h1 {
        font-size: 2.5rem;
    }

    .usp-section,
    .services,
    .gallery-section,
    .reviews-section,
    .location-section,
    .news-teaser-section {
        padding: 60px 15px;
    }

    .highlight-box,
    .news-teaser-container {
        padding: 40px 15px;
        /* Noch etwas kompakter auf dem Handy */
    }

    .highlight-box h2,
    .news-teaser-container h2 {
        font-size: 1.8rem;
    }

    .quality-seal {
        width: 120px;
        height: 120px;
        bottom: -20px;
        right: -10px;
    }

    .contact-info {
        padding: 40px 20px;
    }

    .contact-info h2 {
        margin-bottom: 15px;
        font-size: 1.8rem;
    }

    .contact-info p {
        margin-bottom: 5px;
        line-height: 1.5;
        font-size: 1rem;
    }

    .contact-buttons {
        margin: 25px 0 35px 0;
    }

    footer {
        padding: 50px 15px;
    }
}

/* QM-FIX: Verhindert die weiße Wand beim direkten Menü-Sprung */
:target,
:target .reveal {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: none !important;
    animation: none !important;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- MODAL FENSTER (AUSBILDUNG MODULE) --- */
.module-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 9999;
    display: none;
    /* Standardmäßig versteckt */
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Diese Klasse wird vom JavaScript aktiviert */
.module-modal.show {
    display: flex !important;
    opacity: 1;
    visibility: visible;
}

.module-modal-content {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 85vh;
    /* Verhindert, dass das Fenster höher als der Bildschirm wird */
    overflow-y: auto;
    /* Erlaubt das Scrollen im Fenster */
    position: relative;
    border: 1px solid var(--gold-accent);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.module-modal.show .module-modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 35px;
    color: var(--text-dark-beige);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--text-gold-accent);
}

/* --- MENÜ-ORIENTIERUNG (ACTIVE STATES FOR UX) --- */
.main-nav a.active-nav {
    color: var(--text-gold-accent) !important;
    /* Zwingt die Schrift in edles Gold */
    font-weight: 700 !important;
    /* Macht den Text leicht präsenter */
    transition: all 0.3s ease;
}

@media (min-width: 992px) {

    /* Feine, luxuriöse Unterstreichung nur auf dem Desktop */
    .main-nav a.active-nav {
        border-bottom: 2px solid var(--gold-accent);
        padding-bottom: 4px;
    }
}

/* ==========================================================================
   QM-FIX: LESEBARKEIT FÜR TEXT-KACHELN (.about-text & .highlight-box)
   ========================================================================== */
.about-text p,
.highlight-box p {
    text-align: left !important;
}

.about-text h2,
.about-text .highlight-text,
.highlight-box h2,
.highlight-box span {
    text-align: center !important;
    display: block;
}

/* =========================================
   PREMIUM LIGHTBOX (GALERIE OVERLAY)
   ========================================= */
.lightbox {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(30, 25, 24, 0.95) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999 !important;
    justify-content: center !important;
    align-items: center !important;
}

.lightbox-img {
    max-width: 90vw !important;
    max-height: 85vh !important;
    object-fit: contain !important;
    border-radius: 8px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8) !important;
    border: 2px solid var(--gold-accent) !important;
}

.lightbox-close {
    position: absolute !important;
    top: 25px !important;
    right: 35px !important;
    font-size: 55px !important;
    font-family: Arial, sans-serif !important;
    color: var(--text-gold-accent) !important;
    cursor: pointer !important;
    line-height: 1 !important;
    z-index: 10000 !important;
    transition: all 0.3s ease !important;
}

.lightbox-close:hover {
    color: var(--white) !important;
    transform: scale(1.15) !important;
}