:root {
    --primary-white: #FFFFFF;
    --accent-orange: #F58A00;
    --footer-dark: #333333;
    --section-gray: #f0f0f0;
    --h-color: #222222;
    --body-text: #636363;
}

body {
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 26px;
    color: var(--body-text);
    margin: 0;
    background-color: var(--primary-white);
}

/* Typografie */
h1, h2, h3, h4, h5, h6 { font-family: 'Philosopher', sans-serif; font-weight: 400; }

h1 { font-size: 42px; line-height: 70px; color: var(--h-color); }
h2 { font-size: 36px; line-height: 62px; color: var(--h-color); }
h3 { font-size: 26px; line-height: 50px; color: var(--h-color); }
h4 { font-size: 22px; line-height: 42px; color: var(--h-color); }
h5 { font-size: 20px; line-height: 36px; color: var(--accent-orange); }
h6 { font-size: 15px; line-height: 30px; color: var(--h-color); }

/* Header & Menü-Struktur */
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

//* --- BASIS STYLES (Desktop zuerst) --- */
.desktop-only {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
}

.mobile-only { display: none; } /* Versteckt Mobile-Menü auf Desktop */

.nav-group { display: flex; list-style: none; padding: 0; flex: 1; }
.nav-left { justify-content: flex-end; }
.nav-right { justify-content: flex-start; }
.nav-group li { padding: 0 20px; }

.nav-group a {
    font-family: 'Mallanna', sans-serif;
    font-size: 14px;
    color: #5a5a5a !important;
    text-transform: uppercase;
    text-decoration: none !important;
    letter-spacing: 1.5px;
}

.nav-group a:hover, .nav-group a.active { color: var(--accent-orange) !important; }

.logo-container { width: 300px; text-align: center; }


.logo-container img {
    width: 100%;
    height: auto;
    display: block;
}

.bg-gray {
    background-color: var(--section-gray);
    width: 100%;
    overflow: hidden; 
}


footer {
    background-color: var(--footer-dark);
    margin-top: 0 !important; 
    color: #888888; 
    padding: 40px 0;
    width: 100%;
    margin-top: 0px;
    font-size: 14px;
}

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

footer a {
    color: var(--accent-orange); 
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-white);
}

.footer-left, .footer-center, .footer-right {
    flex: 1;
}

.footer-center {
    text-align: center;
    color: #888888;
}

.footer-right {
    text-align: right;
}

/* about me */
/* Flexible Sektionen */
.section-padding {
    padding: clamp(40px, 8vw, 90px) 0;
}

.bg-gray {
    background-color: var(--section-gray);
    width: 100%;
}

.container-1200 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 60px; 
    align-items: flex-start;
}

/* Spalten-ratio */
.col-70 { flex: 7; }
.col-30 { flex: 3; }

.col-70 h3 {
    margin-top: 0; 
}

.col-30 img {
    display: block;
    margin-top: 0; 
}

/* Bilder & Schatten */
.img-fluid {
    width: 100%;
    height: auto;
    display: block;
}

.shadow-black {
    box-shadow: 10px 10px 25px rgba(0,0,0,0.2);
}

.copyright-text {
    font-size: 10px;
    margin-top: 4px;
    text-align: right;
    color: #888;
}

/* Einrückung für den speziellen Text */
.text-indent {
    border-left: 2px solid var(--accent-orange);
    padding-left: 40px;
    margin-left: 50px;
    font-size: 15px;
    line-height: 26px;
}

/* --- Preisseite Spezifisch --- */
.info-block-gray {
    background-color: var(--section-gray);
    padding: 30px;
    margin-bottom: 80px;
    text-align: center; /* Zentriert den Text in der grauen Box */
}


/* my offers settings */

/* Zitat Styling */
.quote-container {
    text-align: center;
    max-width: 800px; /* Zitate lesen sich schmaler besser */
    margin: 0 auto;
}

.quote-mark {
    font-family: 'Philosopher', serif;
    font-size: 250px;
    color: var(--accent-orange);
    line-height: 0.8;
    display: block;
    margin-top: -70px;
    margin-bottom: 20px;
    opacity: 0.6;
}

@media screen and (min-width: 801px) {
    .business-block {
        max-width: 700px;
        margin: 0 auto; /* Zentriert den 700px Block im 1200px Container */
    }
}

.quote-author {
    color: var(--accent-orange);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
}

/* Flex-Grid für 3 und 2 Spalten */
.grid-3 {
    display: flex;
    gap: 60px;
    align-items: stretch;
}

.grid-2 {
    display: flex;
    gap: 60px;
    align-items: stretch;
}

.grid-item {
    flex: 1;
    background-color: var(--section-gray);
    padding: 40px;
    display: flex;
    flex-direction: column;
}

/* Spezielles Bild-Handling */
.img-700 {
    height: 800px;
    width: auto;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.text-center { text-align: center; }
.italic { font-style: italic; }


/* =========================================
   Slider Styling (Korrekt und ohne Flex-Konflikt)
   ========================================= */

.slider-container {
    position: relative;
    max-width: 1200px;
    margin: 40px auto; /* Abstand nach oben/unten und zentriert */
    overflow: hidden;
    display: block !important; /* Verhindert Flex-Probleme */
}

.slide {
    display: none;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* Die Pfeile (Positionierung AUF dem Bild) */
.prev, .next {
    cursor: pointer !important;
    position: absolute;
    top: 50% !important;
    transform: translateY(-50%);
    width: auto;
    padding: 20px;
    color: white !important;
    font-weight: bold;
    font-size: 50px;
    transition: 0.7s ease;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.4);
    text-decoration: none;
    z-index: 999; /* Damit sie garantiert oben liegen */
}

.next {
    right: 0;
    border-radius: 5px 0 0 5px;
}

.prev {
    left: 0;
    border-radius: 0 5px 5px 0;
}

.prev:hover, .next:hover {
    background-color: var(--accent-orange);
}

.fade {
    animation-name: fade;
    animation-duration: 2s;
}

@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}


/* --- Preise Seite Spezifisch --- */

/* Umrahmte H2 */
.bordered-h3-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 30px auto;
    text-align: center;
}

.bordered-h3-container h3 {
    border: 2px solid #000;
    padding: 15px 40px;
    display: inline-block;
    margin: 0 auto;
}

.price-intro {
    font-family: 'Philosopher', sans-serif; /* Gleiche Font wie h1-h6 */
    font-size: 22px;
    margin-bottom: 50px;
    line-height: 1.3; /* Etwas engerer Zeilenabstand für die Optik */
}

/* Die Preistafel (Card) */
.price-card {
    border: 1px solid #e0e0e0;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.price-header {
    background-color: var(--accent-orange);
    padding: 15px 10px; /* Padding leicht angepasst für mehr Platz */
    min-height: 80px;   /* Sorgt dafür, dass alle Header gleich hoch sind, auch wenn einer 2-zeilig ist */
    display: flex;
    align-items: center;
    justify-content: center;
}

.price-header h4 {
    color: white !important;
    margin: 0;
    text-transform: uppercase;
    font-size: 18px;
    letter-spacing: 0.03em;
}

.price-amount {
    background-color: white;
    padding: 20px 20px 5px 20px;
}

.price-amount h1 {
    margin: 0;
    display: inline-block;
}

.currency {
    font-size: 20px; /* entspricht in etwa h6 wirkung im fluss */
    vertical-align: super;
    margin-left: 5px;
}

.price-sub {
    background-color: white;
    font-size: 13px;
    padding-bottom: 20px;
}

.price-info {
    background-color: #f0f0f0; /* Hellgrau */
    padding: 15px;
    border-top: 1px solid #eee;
}

.price-info p {
    margin: 0;
}

.price-info2 {
    background-color: #FFFFFF;
    padding: 15px;
}


.price-footer {
    background-color: white;
    padding-bottom: 40px;
    padding-top: 10px;
}

/* Abstände und Hilfsklassen */
.gap-50 { gap: 50px; }
.margin-top-40 { margin-top: 30px; }

.price-image-separator {
    margin: 60px 0;
    width: 100%;
}

.single-price-container {
    display: flex;
    justify-content: center;
}

.single-price-container .price-card {
    max-width: 700px; /* Vorher 400px - jetzt breiter als die 2er-Pakete */
    width: 100%; 
}

/* Grauer Infoblock unten */
.info-block-gray {
    background-color: var(--section-gray);
    padding: 30px;
    margin-bottom: 50px; 
    text-align: center;  
}

.info-block-gray p {
    margin: 5px 0;
}

/* --- BUCHEN SECTION --- */

.eversports-section {
    width: 100%;
    margin: 0 auto;
    padding: 10px;
    overflow: hidden;
}

/* Review Formular */
.review-form-container {
    max-width: 600px;
    margin: 0 auto 50px auto;
    background: #fff;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.review-form .form-group {
    margin-bottom: 15px;
}

.review-form input, .review-form select, .review-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    font-family: inherit;
    box-sizing: border-box;
}

.btn-submit {
    background-color: var(--accent-orange);
    color: white;
    border: none;
    padding: 12px 30px;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-submit:hover {
    background-color: #d47600;
}

/* Review Grid */
.row {
    width: 100%;
    display: block; /* Erzwingt, dass die Zeile die volle Breite nimmt */
    clear: both;
}

/* Review Grid Desktop */

.full-width {
    width: 100% !important;
    display: block !important;
    flex: 0 0 100%; /* Verhindert, dass Flexbox das Element schrumpft oder daneben schiebt */
}

.review-form-container {
    margin: 0 auto 50px auto; 
    float: none;
    clear: both;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 100%;
}

.review-card {
    background: #fff;
    padding: 25px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.review-card .stars {
    color: var(--accent-orange);
    margin-bottom: 10px;
    font-size: 18px;
}

.review-author {
    display: block;
    margin-top: 15px;
    font-weight: bold;
    font-size: 14px;
    color: var(--h-color);
}

.separator {
    margin: 60px 0;
    border: 0;
    border-top: 1px solid #ddd;
}

/* Der Link-Container */
.app-promo-link {
    display: inline-block !important;
    text-decoration: none;
    transition: transform 0.3s ease;
    line-height: 0;
    width: 100px;
}

.app-promo-link:hover {
    transform: scale(1.05);
}

/* Grundzustand der Bilder */
.promo-icon {
    width: 100px !important;
    height: auto !important;
    border: none;
}

/* --- DAS IST DER ENTSCHEIDENDE TEIL --- */

/* Normalzustand: Nur das normale Bild zeigen */
.promo-icon.normal {
    display: inline-block !important;
}

.promo-icon.hover {
    display: none !important;
}

/* Hover-Zustand: Normales Bild weg, Hover Bild her */
.app-promo-link:hover .promo-icon.normal {
    display: none !important;
}

.app-promo-link:hover .promo-icon.hover {
    display: inline-block !important;
}



/* --- FIND ME --- */

/* --- FIND ME SEITE OPTIMIERUNG --- */

.find-me-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%; 
    gap: 50px; /* Ein bisschen mehr Platz zwischen den Spalten */
}

.find-me-col {
    flex: 1; 
    min-width: 300px; 
}

/* Kontakt-Zeilen Styling */
.contact-item {
    display: flex;
    align-items: center; /* Zentriert Icons und Text vertikal zueinander */
    margin-bottom: 45px;
}

/* Deine Icons auf 100px festlegen */
.contact-item img {
    width: 75px !important; 
    height: auto;
    margin-right: 30px;
}

.contact-item p {
    margin: 0;
    line-height: 1.6; /* Etwas mehr Zeilenabstand im Text selbst schadet auch nicht */
}

.contact-item a {
    color: var(--body-text);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--accent-orange);
}

/* Social Media Icons (Deine Hover-Icons) */
.social-row .promo-icon {
    width: 75px !important;
}

/* Volle Breite für die Karte */
.map-full-width {
    width: 100%;
    line-height: 0;
    margin-top: 20px;
}

.map-full-width iframe {
    width: 100% !important;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.iframe-container {
    padding-top: 30px;
    padding-bottom: 60px;
    background-color: var(--primary-white); /* Damit der Hintergrund sauber bleibt */
}

/* --- NEWS SEITE STYLING --- */

.news-entry {
    display: block;
    width: 100%;
    margin-bottom: 60px;
    text-align: left;
}

.news-header {
    margin-bottom: 20px; /* Abstand zwischen Titel/Datum und dem Text */
}

.news-header h5 {
    margin: 0; /* Entfernt Standard-Abstände der Überschrift */
    text-align: left;
    text-transform: uppercase; 
}

.news-date {
    display: block;
    font-size: 12px;
    color: #999; /* Dezentes Grau für das Datum */
    margin-top: 5px;
    text-transform: uppercase;
}

.news-content {
    margin-bottom: 30px;
    text-align: left;
}

.news-content p {
    line-height: 1.8; /* Sorgt für die gewünschte Luftigkeit im Text */
}

.news-divider {
    border: 0;
    border-top: 1px solid #dddddd; /* Die feine graue Trennlinie */
    margin: 60px 0; 
}

.text-highlight {
    color: var(--accent-orange); 
    font-weight: 700; 
}

.news-container {
    display: block !important; 
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    /* 20px Abstand links und rechts für alle Geräte (besonders wichtig für Mobile) */
    padding-left: 20px !important;  
    padding-right: 20px !important; 
}

/* Spezielle Links für die News */
.news-link {
    color: var(--accent-orange) !important;
    text-decoration: underline;
    font-weight: 700;
    transition: color 0.3s ease;
}

.news-link:hover {
    color: #999999 !important; /* Das gewünschte Grau beim Drüberfahren */
    text-decoration: none;
}

.news-content ul {
    padding-left: 20px;
    margin-top: 10px;
}


/* --- INTRO SEITE (index.php) --- */

.intro-body {
    background-color: #ffffff !important;
    height: 100vh !important;
    margin: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: hidden !important;
}

.intro-wrapper {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 15px !important; /* Etwas enger am Handy */
    width: 100% !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

/* Logo Styling - Trennung zwischen Desktop und Mobile */
.intro-logo {
    width: 100% !important;
    max-width: 600px !important; /* Auf großen Screens darf es wieder präsent sein */
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
}

/* Button-Look erzwingen */
.btn-intro {
    display: inline-block !important;
    padding: 12px 40px !important;
    border: 2px solid var(--accent-orange) !important;
    background-color: #ffffff !important;
    color: var(--accent-orange) !important;
    text-decoration: none !important;
    font-family: 'Nunito', sans-serif !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    transition: all 0.4s ease !important;
    border-radius: 50px !important; /* Abgerundete Ecken */
    margin: 15px 0 !important;
    -webkit-appearance: none; /* Verhindert Standard-iOS Styling */
}

.btn-intro:hover {
    background-color: var(--accent-orange) !important;
    color: #ffffff !important;
}

.intro-text-block {
    width: 100% !important;
    text-align: center !important;
}

.intro-text-block h3 {
    margin: 5px 0 !important;
    color: var(--h-color) !important;
    line-height: 1.2 !important;
    font-size: 20px !important; /* Etwas kleiner für schmale Handys */
}

.intro-text-block h5 {
    margin: 5px 0 !important;
    font-style: italic !important;
    font-size: 16px !important;
}

/* Animationen bleiben gleich, aber wir stellen sicher, dass sie block-level sind */
.fade-in-2s, .fade-in-3s, .fade-in-4s {
    display: block;
}

/* --- ANIMATIONEN (Fade-In) --- */

@keyframes introFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-2s {
    opacity: 0;
    animation: introFade 1s ease-out forwards;
    animation-delay: 0.5s;
}

.fade-in-3s {
    opacity: 0;
    animation: introFade 1s ease-out forwards;
    animation-delay: 1s;
}

.fade-in-4s {
    opacity: 0;
    animation: introFade 1s ease-out forwards;
    animation-delay: 2s;
}


/* --- MOBILE OPTIMIERUNG (Ganz am Ende der Datei!) --- */
@media screen and (max-width: 800px) {

    .intro-logo {
        max-width: 300px !important; /* Verhindert, dass es am Handy den Screen sprengt */
        width: 80% !important;
    }
    
    .intro-text-block h3 {
        font-size: 18px !important; /* Text am Handy leicht anpassen für bessere Proportionen */
    }
    
    .container-1200 {
        flex-direction: column !important;
        display: flex !important;
    }

    .col-70, .col-30 {
        width: 100% !important;
        margin: 0 !important;
        padding: 10px 0 !important;
    }

    .text-indent {
        margin-left: 0 !important;    /* Entfernt die 50px am Handy */
        padding-left: 0 !important;   /* Entfernt die 40px am Handy */
        border-left: none !important;  /* Entfernt den Balken am Handy */
        text-indent: 0 !important;
    }

    .img-fluid {
        width: 100% !important;
        height: auto !important;
    }

    .header-container {
        flex-direction: column;
        padding: 20px;
    }

    /* Hamburger Button Styling */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        margin: 20px auto;
    }

    .menu-toggle span {
        width: 30px;
        height: 3px;
        background-color: var(--accent-orange);
        transition: 0.3s;
    }

    .review-grid {
        grid-template-columns: 1fr;
    }

    /* Menü-Liste mobil */
    .nav-menu {
        display: none; /* Standardmäßig ausblenden */
        flex-direction: column;
        width: 100%;
        text-align: center;
        padding: 0;
        list-style: none;
    }

    .nav-menu.active {
        display: flex; /* Einblenden wenn aktiv */
    }

    .nav-menu li {
        margin: 15px 0;
    }

     .review-grid {
        grid-template-columns: 1fr; /* Eine Spalte am Handy */
    }

    /* Verhindert, dass die alten Nav-Gruppen das Layout stören */
    .nav-group { display: none; } 

    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        padding: 10px;
    }

    .menu-toggle span {
        width: 30px;
        height: 3px;
        background-color: var(--accent-orange);
    }

    .nav-menu {
        display: none; /* Erstmal verstecken */
        flex-direction: column;
        width: 100%;
        text-align: center;
        background-color: #fff;
        padding: 20px 0;
    }

    .nav-menu.active {
        display: flex; /* Zeigen, wenn Hamburger geklickt */
    }

    .nav-menu li {
        margin: 15px 0;
    }
    
    .nav-menu li a {
        font-size: 18px; /* Größer für Finger-Bedienung */
    }

    .desktop-only { display: none !important; } /* Versteckt Desktop-Menü auf Handy */
    .mobile-only { display: block !important; }

    .mobile-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px 10px 20px; /* Rechts auf 10px reduziert, damit er weiter im Eck klebt */
    }

    .menu-toggle {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px; /* Vergrößert die Klickfläche, ohne das Icon zu verschieben */
    margin-right: 5px; 
    }
    .menu-toggle span { 
        width: 30px; 
        height: 3px; 
        background: var(--accent-orange); 
    }

    .mobile-nav-list {
        display: none; /* Geschlossen */
        list-style: none;
        padding: 20px 0;
        margin: 0;
        text-align: center;
        background: #fff;
        border-top: 1px solid #eee;
    }

    .mobile-nav-list.active { display: block !important; }
    .mobile-nav-list li { padding: 15px 0; }
    .mobile-nav-list a { 
        text-decoration: none !important; 
        color: var(--h-color) !important; 
        font-size: 18px; 
        text-transform: uppercase;
    }

    .business-block {
        width: 100% !important;
        box-sizing: border-box; /* WICHTIG: Rechnet Padding in die Breite ein */
        padding: 20px !important;
    }

    /* Wir müssen hier die text-indent Klasse für diesen Block am Handy neutralisieren */
    .business-block .text-indent {
        margin-left: 0 !important;
        padding-left: 15px !important; /* Kleinerer Abstand für die Optik am Handy */
        border-left: 2px solid var(--accent-orange) !important; /* Balken bleibt, aber schmaler */
    }

    .business-block ul {
        padding-left: 20px !important; /* Platz für die Listenpunkte */
        margin-right: 0 !important;
    }

    .eversports-section iframe {
        width: 100% !important;
        height: 600px !important; /* Begrenzte Höhe gegen die "Scroll-Falle" */
        border: 1px solid #eee;
    }
    .iframe-container {
        padding: 10px 15px; /* Weniger Platzverschwendung am Handy */
    }
}


/* Desktop-Ansicht (außerhalb der Media Query) */
@media (min-width: 801px) {
    .menu-toggle { display: none; }
    
    .nav-menu { 
        display: flex; 
        justify-content: space-between; 
        width: 100%; 
        max-width: 1200px; 
        margin: 0 auto; 
        list-style: none; }

    .about-pilates-title {
        margin-left: 30px; 
        margin-bottom: 20px;
    }

    .col-30 { width: 30%; }
    .col-70 { width: 70%; padding-left: 50px; } /* Etwas Abstand zum Formular */

    .eversports-section iframe {
        width: 100% !important;
        height: 1200px !important; /* Hoch genug, damit im Iframe kein Scrollbalken erscheint */
        border: none;
    }
    .iframe-container {
        padding: 40px 0; /* Schöner Abstand auf großen Screens */
    }
}