/* ==========================================================================
   PFOTENBALANCE - HAUPT-STYLESHEET (Aufgeräumt & Aktualisiert)
   ========================================================================== */

/* --- DEINE FARBEN --- */
:root {
    --color-primary: #547C66;    /* Salbeigrün */
    --color-accent: #C86B53;     /* Terrakotta */
    --color-accent-hover: #A05542; /* Etwas dunkleres Terrakotta für Hover */
    --color-bg-light: #FAF8F5;   /* Cremeweiß */
    --color-text: #2D322E;       /* Dunkles Anthrazit */
}

/* --- GLOBALE EINSTELLUNGEN --- */
html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, #FAF8F5 0%, #EAE4D9 100%);
    color: var(--color-text);
    font-family: 'Outfit', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* ==========================================================================
   1. NAVIGATION & BRANDING (Rettungsringe entfernt!)
   ========================================================================== */
.logo-wrapper {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

/* Logo in der Navigation (Icon) – vergrößert & freigestellt */
.nav-icon {
    width: 70px; /* Schön groß */
    height: 70px;
    color: var(--color-primary); 
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin-bottom: -15px; /* Optimiert die vertikale Ausrichtung */
}

.nav-brand-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--color-primary);
    font-size: 1.1rem;
    line-height: 1;
}

.nav-brand-text span {
    display: block;
    font-weight: 300;
    font-size: 0.85rem;
    color: var(--color-text);
}

/* --- DIE FEHLENDE NAVBAR --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links li {
    display: inline-block;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 600;
    font-size: 1.05rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-accent); /* Hover-Effekt in Terrakotta */
}

/* ==========================================================================
   2. HERO-SECTION (Startbereich)
   ========================================================================== */
.hero {
    padding: 80px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text {
    flex: 1;
    background: rgba(255, 255, 255, 0.6);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.hero-text h1 {
    color: var(--color-primary);
    font-size: 3.5rem;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-text p {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 40px;
    color: #4A4F4B;
    font-weight: 300;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    height: 500px;
    object-fit: cover;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    box-shadow: 0 20px 50px rgba(84, 124, 102, 0.2);
    animation: morph 8s ease-in-out infinite; 
}

@keyframes morph {
    0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    50% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
}

/* ==========================================================================
   3. GLOBALE BUTTONS
   ========================================================================== */
.btn-primary {
    background-color: var(--color-accent);
    color: white;
    padding: 18px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 10px 20px rgba(200, 107, 83, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(200, 107, 83, 0.4);
}

/* ==========================================================================
   4. ANGEBOTE (Yu-Gi-Oh Style Flip Cards)
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.flip-card {
    background-color: transparent;
    height: 450px;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden; 
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.flip-card-front {
    background-color: white;
    color: var(--color-text);
    border: 1px solid #eee;
    padding: 0 !important;
    overflow: hidden;
    justify-content: flex-start;
}

.card-image-full {
    width: 100%;
    height: 275px;
    object-fit: cover;
    -webkit-mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
}

.card-content {
    padding: 15px 25px 25px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-grow: 1;
}

.card-content h3 {
    color: var(--color-primary);
    font-size: 1.6rem;
    margin: 0;
}

.card-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.flip-card-back {
    background-color: var(--color-primary);
    color: white;
    transform: rotateY(180deg);
    padding: 40px 25px;
    justify-content: center;
    align-items: center;
}

.flip-card-back h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.flip-card-back p {
    margin-bottom: 25px;
    opacity: 0.9;
}

.card-price-tag {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 1px;
    display: inline-block;
}

.btn-fake {
    margin-top: auto;
    color: var(--color-accent);
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   5. ÜBER MICH & PHILOSOPHIE (Mit Wasserzeichen!)
   ========================================================================== */
.about {
    position: relative; /* WICHTIG: Erlaubt das Wasserzeichen im Hintergrund */
    overflow: hidden;    /* Verhindert, dass das Wasserzeichen übersteht */
}

/* --- DAS LOGO-WASSERZEICHEN --- */
.about::before {
    content: "";
    position: absolute;
    top: 50%;
    right: -250px; /* Leicht nach rechts aus dem Bild geschoben */
    transform: translateY(-50%);
    width: 700px;
    height: 700px;
    /* Nutzt dein großes SVG-Logo als Hintergrund */
    background-image: url("logo.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    /* Super-niedrige Deckkraft (Wasserzeichen!) */
    opacity: 0.03; 
    z-index: 1;    /* Unter dem Text */
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative; /* Zwingt den Inhalt über das Wasserzeichen */
    z-index: 2;         /* Über dem Wasserzeichen */
}

.about-text {
    flex: 1;
}

.about-text h2 {
    color: var(--color-primary);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.about-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 20px;
}

.quote {
    margin-top: 40px;
    padding-left: 25px;
    border-left: 4px solid var(--color-accent);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--color-primary);
    font-weight: 600;
}

.about-image {
    flex: 1;
    position: relative;
    text-align: center;
}

.about-image img {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 200px 200px 30px 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
}

.image-backdrop {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-40%);
    width: 100%;
    max-width: 450px;
    height: 95%;
    background-color: #E2DDD3;
    border-radius: 200px 200px 30px 30px;
    z-index: 1;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    line-height: 1.5;
}

.feature-list .check {
    color: white;
    background-color: var(--color-accent);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    margin-right: 15px;
    flex-shrink: 0; 
    margin-top: 2px;
}

/* ==========================================================================
   6. FOOTER (Fußzeile)
   ========================================================================== */
.footer {
    background-color: var(--color-text);
    color: #EAE4D9;
    padding: 60px 20px 20px 20px;
    margin-top: 80px;
}

.footer-logo {
    width: 180px; 
    height: auto;
    display: block;             /* Macht das Bild zu einem freistehenden Block */
    margin: 0 auto 20px auto;   /* Zentriert das Logo (oben 0, links/rechts auto, unten 20px) */
    color: var(--color-accent); 
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 40px;
}

.footer-col h3 {
    color: var(--color-bg-light);
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-col p {
    line-height: 1.6;
    color: #b0b5b1;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #b0b5b1;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    color: #888;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0;
}

.agency-branding a:hover {
    color: #C86B53 !important;
}

/* ==========================================================================
   7. MODALS & POP-UPS (Service, Sam, Quiz)
   ========================================================================== */
.modal {
    display: none; 
    position: fixed;
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8); 
    backdrop-filter: blur(8px); 
    overflow-y: auto; 
}

.modal-content {
    background-color: #FAF8F5;
    margin: 5% auto 5% auto; 
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    animation: fadeIn 0.6s ease-out; 
}

.modal-content img {
    max-height: 40vh;
    object-fit: cover;
}

.close-modal {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #C86B53;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Spezifisches Service Modal Styling */
.service-detail-card {
    text-align: left !important;
    max-width: 700px !important;
    padding: 40px !important;
}

.service-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 30px 0;
    text-align: center;
}

.info-box {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 10px;
    background: #faf8f5;
}

.info-box strong {
    color: var(--color-primary);
    font-size: 1.2rem;
}

.service-section-title {
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--color-accent);
    margin-top: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* --- SPEZIELLES STYLING FÜR DAS MEETERGO BUCHUNGS-MODAL --- */
#booking-modal .modal-content {
    background-color: #FAF8F5; /* Unser Pfotenbalance-Creme */
    padding: 0 !important; /* Kein Padding, damit der Iframe bis zum Rand geht */
    border-radius: 20px;
    overflow: hidden; /* Verhindert hässliche Ränder */
    height: 85vh; /* Schön groß, aber nicht bildschirmfüllend */
    max-height: 800px;
    max-width: 900px;
    box-shadow: 0 25px 50px rgba(84, 124, 102, 0.15); /* Sanfter, grüner Schatten */
    position: relative; /* Wichtig für den Close-Button */
}

/* Der Iframe selbst */
#booking-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 20px;
    background-color: transparent; /* Verhindert weiße Blitzer beim Laden */
}

/* Der Schließen-Button im Buchungs-Modal braucht einen Hintergrund, 
   da er sonst über dem Meetergo-Kalender unsichtbar sein könnte */
#booking-modal .close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 1001; /* Muss ÜBER dem Iframe liegen */
    color: #4A3B32; /* Dunkles Braun */
    background-color: #FAF8F5; /* Creme-Hintergrund */
    width: 36px;
    height: 36px;
    border-radius: 50%; /* Schön rund */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* Leichter Schatten, damit er sich abhebt */
    transition: all 0.3s ease;
}

#booking-modal .close-modal:hover {
    color: white;
    background-color: #C86B53; /* Terrakotta beim Drüberfahren */
    transform: scale(1.1);
}

.floating-whatsapp {
    position: fixed;
    bottom: 100px; /* über dem Quiz-Button */
    right: 20px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform 0.3s;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}

.floating-instagram {
    position: fixed;
    bottom: 175px;
    right: 20px;
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform 0.3s;
}

.floating-instagram:hover {
    transform: scale(1.1);
}

/* Floating Quiz Button & Modal */
.floating-quiz-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--color-accent);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(200, 107, 83, 0.4);
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    z-index: 999;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.floating-quiz-btn:hover {
    transform: translateY(-5px) scale(1.05);
    background-color: #b55a42;
}

.quiz-card {
    max-width: 600px !important;
    text-align: center !important;
    padding: 40px !important;
}

.progress-bar-container {
    background: #eee;
    height: 8px;
    border-radius: 5px;
    margin: 25px 0;
    overflow: hidden;
}

.progress-bar {
    background: var(--color-accent);
    height: 100%;
    width: 0%;
    transition: width 0.4s ease-out;
}

.quiz-question {
    font-size: 1.4rem;
    color: var(--color-text);
    margin-bottom: 30px;
    font-weight: 600;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quiz-btn {
    background: white;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    padding: 18px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.quiz-btn:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Die Animation für das Wackeln */
@keyframes sanftes-wackeln {
    0%, 85% { transform: translateY(0) rotate(0deg); } /* 85% der Zeit passiert gar nichts (Pause) */
    88% { transform: translateY(-4px) rotate(-3deg); } /* Kurzes Hüpfen nach links */
    91% { transform: translateY(0) rotate(3deg); }     /* Kurzes Wackeln nach rechts */
    94% { transform: translateY(-2px) rotate(-1deg); } /* Leichtes Nachfedern */
    97% { transform: translateY(0) rotate(1deg); }     /* Leichtes Nachfedern */
    100% { transform: translateY(0) rotate(0deg); }    /* Zurück in Ausgangsposition */
}

/* Den Effekt an den Button heften */
.floating-quiz-btn {
    animation: sanftes-wackeln 6s infinite; /* 6 Sekunden Durchlaufzeit, wiederholt sich unendlich */
}

/* ==========================================================================
   8. SMARTPHONE OPTIMIERUNG
   ========================================================================== */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 15px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .hero {
        flex-direction: column;
        padding: 40px 20px;
        gap: 40px;
    }

    .hero-text {
        padding: 30px 20px;
    }

    .hero-text h1 {
        font-size: 2.2rem;
        text-align: center;
    }
    
    .hero-text p {
        text-align: center;
    }
    
    .btn-primary {
        display: block;
        width: max-content;
        margin: 0 auto;
    }

    .hero-image img {
        height: 350px;
    }

    .about-container {
        flex-direction: column;
        gap: 50px;
        text-align: center;
    }

    .about-text h2 {
        font-size: 2.2rem;
    }

    .quote {
        text-align: left;
        font-size: 1.1rem;
    }

    .image-backdrop {
        transform: translateX(-45%);
    }

    .footer-container {
        text-align: center;
        gap: 30px;
    }

    .details-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* --- FIX FÜR HORIZONTALES SCROLLEN IN MODALS --- */
    .modal-content, .quiz-card, .service-detail-card {
        width: 90% !important;
        padding: 25px 15px !important; /* Weniger Padding an den Seiten für Handys */
        box-sizing: border-box !important; /* Verhindert das Ausbrechen über den Rand */
    }

    .quiz-btn {
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 15px !important;
    }

    /* Bonus-Fix: Setzt Dauer, Preis und Ort im Pop-up auf Handys untereinander statt nebeneinander */
    .service-info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}