﻿/* --- DEINE BASIS (ROOT & RESET) --- */
:root {
    --primary: #d4a5a9;
    --primary-dark: #b8868a;
    --accent: #e9b6c0;
    --text: #3a3a3a;
    --light-text: #757575;
    --light-bg: #fffafa;
    --header-height: 85px;
    --border-radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: #fff;
    overflow-x: hidden;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; width: 100%; }

/* --- REVEAL ANIMATION --- */
.reveal { 
    opacity: 0; 
    transform: translateY(25px); 
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- STICKY CALL BUTTON --- */
.sticky-call-btn {
    display: none; position: fixed; bottom: 0; left: 0; width: 100%;
    background-color: var(--primary); color: white !important; padding: 15px;
    text-align: center; text-decoration: none; font-weight: 600; z-index: 3000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1); justify-content: center; align-items: center; gap: 10px;
}
.sticky-call-btn:active { transform: scale(0.95); }

/* --- NEWS-BAR --- */
.news-bar {
    position: fixed; top: 0; left: 0; width: 100%; background: #fdf2f3;
    color: var(--primary-dark); border-bottom: 2px solid var(--accent);
    padding: 15px 0; z-index: 1200; transform: translateY(-110%); 
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); text-align: center;
}
.news-bar.active { transform: translateY(0); }
.news-flex { display: flex; align-items: center; justify-content: center; gap: 15px; padding: 0 10px; }
.news-close { cursor: pointer; font-weight: bold; padding: 5px 12px; background: var(--accent); color: white; border-radius: 20px; font-size: 0.8rem; }

/* --- HEADER --- */
.main-header {
    background: rgba(255, 255, 255, 0.98); height: var(--header-height);
    position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex; align-items: center;
}
.header-flex { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { height: 50px; margin-right: 15px; }
.brand { display: flex; align-items: center; text-decoration: none; color: inherit; }
.brand-text { display: flex; flex-direction: column; }
.praxis-title { font-weight: 700; font-size: 1rem; color: var(--primary-dark); text-transform: uppercase; }
.praxis-location { font-size: 0.85rem; color: var(--light-text); letter-spacing: 2px; }
.nav-links { display: flex; list-style: none; gap: 20px; }
.nav-links a { text-decoration: none; color: var(--text); font-weight: 500; font-size: 0.9rem; transition: 0.3s; }
.nav-links a:hover { color: var(--primary); }
.menu-toggle { display: none; background: none; border: none; font-size: 1.8rem; cursor: pointer; color: var(--primary-dark); }

/* --- HERO BEREICH --- */
.hero {
    min-height: calc(100vh - 85px); /* Zieht exakt den Header von der Bildschirmhöhe ab */
    background: var(--light-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 20px 20px 20px; /* Drastisch weniger Luft oben */
    box-sizing: border-box;
}

.hero-content {
    flex-grow: 1; /* Nimmt den freien Platz in der Mitte ein */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Zentriert Logo und Text perfekt vertikal */
    align-items: center;
    width: 100%;
}

.hero-logo { max-width: 220px; height: auto; margin-bottom: 25px; }
.hero h1 { font-size: 2.2rem; margin-bottom: 15px; color: var(--primary-dark); text-transform: uppercase; letter-spacing: 1px; line-height: 1.2; }
.hero p { font-size: 1.1rem; max-width: 600px; margin: 0 auto 30px; color: var(--light-text); }
.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px; /* Von 30px auf 20px reduziert */
}

.hero .btn-primary {
    display: inline-block; padding: 14px 28px; font-size: 0.95rem; font-weight: 600;
    border-radius: 50px; text-decoration: none; transition: 0.3s;
    background: var(--primary); color: #fff; border: 2px solid var(--primary);
}
.hero .btn-primary:hover { 
    background: var(--primary-dark); border-color: var(--primary-dark);
    transform: translateY(-2px); box-shadow: 0 5px 15px rgba(212, 165, 169, 0.4); 
}

.hero-info-footer { 
    /* Wenn du margin-top: auto löschst, rückt alles zusammen. 
       Wenn es unten bleiben soll, verringere nur das padding: */
    margin-top: 40px; /* Ersetze 'auto' durch einen festen Wert (z.B. 40px) */
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    width: 100%;
    padding-top: 0; /* Von 20px auf 0 reduziert */
}
.quick-hours-link { color: var(--primary-dark); text-decoration: none; font-size: 0.9rem; margin-bottom: 10px; font-weight: 500; }
.google-rating-box { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 10px; }
.stars { color: #FFD700; font-size: 1.1rem; }
.review-link { color: var(--light-text); text-decoration: none; font-size: 0.9rem; }

/* Der Status-Text im Hero */
.today-status {
    font-size: 0.85rem;
    margin-top: 10px;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

/* Der Highlight-Effekt für die Ziel-Sektion */
#oeffnungszeiten:target {
    animation: highlightSection 2s ease-out;
}

@keyframes highlightSection {
    0% { background-color: rgba(212, 165, 169, 0.2); transform: scale(1); }
    30% { background-color: rgba(212, 165, 169, 0.4); transform: scale(1.02); }
    100% { background-color: transparent; transform: scale(1); }
}

/* Verhindert, dass das Ziel hinter dem Header verschwindet */
#oeffnungszeiten {
    scroll-margin-top: 120px;
    padding: 15px; /* Puffer für die Animation */
    border-radius: var(--border-radius);
}

/* --- SEKTIONEN & BILD-DESIGN --- */
.section-padding { padding: 60px 0; }
.bg-light { background: var(--light-bg); border-top: 1px solid #f0f0f0; border-bottom: 1px solid #f0f0f0; }
h2.section-title { font-size: 1.4rem; text-align: left; margin-bottom: 45px; text-transform: uppercase; font-weight:600; letter-spacing: 0.5px; }

.img-team, .team-card img, .mfa-card img { 
    width: 100%; border-radius: var(--border-radius); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
    border: 1px solid rgba(212, 165, 169, 0.1); 
    transition: transform 0.4s ease;
}
img:hover { transform: scale(1.02); }

/* --- LEISTUNGEN --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 25px; }
.service-card { 
    background:white; padding:40px 30px; border-radius:16px; 
    box-shadow:0 10px 30px rgba(0,0,0,0.06); border:1px solid #f0f0f0; 
    transition:.35s; text-align: center; 
}
.service-icon { 
    width: 100px; height: auto; color: var(--primary); 
    margin: 0 auto 25px; transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}
.service-card:hover .service-icon { transform: scale(1.15) rotate(3deg); color: var(--primary-dark); }

/* --- TEAM & MFA --- */
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.team-card { padding:28px; background:white; border-radius:18px; box-shadow:0 12px 35px rgba(0,0,0,0.06); border:1px solid #f0f0f0; transition:.35s; text-align: center; }
.team-card:hover { transform: translateY(-10px); border-color: var(--primary); }

.mfa-dashboard { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top:30px; border-top: 1px solid #eee; padding-top: 50px; }
.mfa-card { text-align: center; padding: 20px; background: #fff; border-radius: 15px; border: 1px solid #eee; transition: 0.4s ease; }
.mfa-card:hover { transform: translateY(-10px); border-color: var(--primary); }

/* --- KONTAKT & FORMULAR --- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; margin-bottom: 40px; }
.opening-hours li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0; /* Etwas kompakter vertikal */
    border-bottom: 1px solid #f0f0f0;
    font-size: clamp(0.75rem, 3.5vw, 0.95rem); /* Schrumpft auf kleinen Handys automatisch */
    list-style: none;
    white-space: nowrap; /* Verhindert den Zeilenumbruch radikal */
    gap: 10px; /* Mindestabstand zwischen Tag und Zeit */
}

.opening-hours span {
    font-weight: 600;
    color: var(--primary-dark);
    flex-shrink: 0; /* Wochentag darf nicht gequetscht werden */
}

.contact-form { 
    background: #fff; padding: 35px; border-radius: 20px; 
    box-shadow: 0 15px 40px rgba(212, 165, 169, 0.12); border: 1px solid rgba(212, 165, 169, 0.1);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-select, .contact-form input, .contact-form textarea { 
    width: 100%; padding: 14px; margin-bottom: 12px; border: 1px solid #eee; 
    border-radius: 10px; font-family: inherit; background: #fafafa; transition: 0.3s;
}
.contact-form input:focus, .contact-form textarea:focus { 
    border-color: var(--primary); background: #fff; outline: none; box-shadow: 0 0 0 3px rgba(212, 165, 169, 0.1);
}

.btn-submit { 
    background: var(--primary); color: white; border: none; padding: 16px; 
    border-radius: 50px; width: 100%; font-weight: 600; cursor: pointer; transition: 0.3s; 
    box-shadow: 0 4px 15px rgba(212, 165, 169, 0.3);
}
.btn-submit:hover { background: var(--primary-dark); transform: translateY(-2px); }

#oeffnungszeiten {
    scroll-margin-top: 100px; /* Gibt dem Ziel beim Springen oben etwas Luft */
}

/* --- MAP DESIGN --- */
#map-container { 
    border-radius: 20px; overflow: hidden; margin-top: 30px; 
    border: 1px solid #eee; box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    position: relative; background: var(--light-bg);
}

.map-link { display: block; text-decoration: none; line-height: 0; }
.map-link img { 
    width: 100%; height: auto; display: block; transition: all 0.6s ease;
    filter: grayscale(1) sepia(0.4) hue-rotate(310deg) saturate(1.1); 
    mix-blend-mode: multiply; opacity: 0.9;
}
#map-container:hover img { filter: none; mix-blend-mode: normal; opacity: 1; transform: scale(1.01); }

.map-hint {
    position: absolute; bottom: 15px; right: 15px; background: rgba(255, 255, 255, 0.95);
    color: var(--primary-dark); padding: 10px 18px; border-radius: 50px; font-size: 0.8rem;
    font-weight: 600; line-height: 1; box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: 0.3s ease; pointer-events: none;
}
#map-container:hover .map-hint { background: var(--primary); color: white; }

/* --- STICKY & FOOTER --- */
.news-indicator { position: fixed; bottom: 85px; right: 25px; width: 45px; height: 45px; background: var(--accent); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 1500; opacity: 0; visibility: hidden; transition: 0.4s; font-weight: bold; }
.news-indicator.visible { opacity: 1; visibility: visible; }
.news-indicator::after { content: ""; position: absolute; width: 100%; height: 100%; background: var(--accent); border-radius: 50%; z-index: -1; animation: pulse-animation 2s infinite; }
@keyframes pulse-animation { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(1.8); opacity: 0; } }

.main-footer { background:#fafafa; color:#777; padding:35px 0; border-top:1px solid #eee; text-align: center; }
.legal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; font-size: 0.8rem; }
.hidden { display: none !important; }

/* --- MODAL --- */
.modal {
    display: none; position: fixed; z-index: 9999; left: 0; top: 0;
    width: 100%; height: 100%; background-color: rgba(58, 58, 58, 0.6);
    backdrop-filter: blur(8px); align-items: center; justify-content: center;
}
.modal-content {
    background: #fff; padding: 40px; border-radius: 25px; width: 95%; max-width: 550px;
    position: relative; box-shadow: 0 25px 60px rgba(0,0,0,0.2);
}
.modal-header { margin-bottom: 25px; text-align: center; }
.modal-header h3 { color: var(--primary-dark); font-size: 1.6rem; }
.close-modal { position: absolute; top: 20px; right: 25px; font-size: 35px; cursor: pointer; color: var(--light-text); transition: 0.3s; }
.close-modal:hover { color: var(--primary); }
.reveal-modal { animation: modalFade 0.4s ease-out; }
@keyframes modalFade { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }

.legal-modal-content {
    max-width: 700px;
    padding: 40px 30px;
}

.legal-text-container {
    max-height: 65vh; /* Begrenzt die Höhe, damit es nicht vom Bildschirm rutscht */
    overflow-y: auto; /* Erlaubt Scrollen innerhalb des Textes */
    text-align: left;
    padding-right: 15px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text);
}

/* Scrollbar-Styling für den Textbereich */
.legal-text-container::-webkit-scrollbar { width: 6px; }
.legal-text-container::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; }

.legal-text-container h3 { color: var(--primary-dark); margin-bottom: 20px; font-size: 1.3rem; }
.legal-text-container h4 { color: var(--primary-dark); margin-top: 25px; margin-bottom: 10px; font-size: 1rem; border-bottom: 1px solid #eee; }

/* --- MOBILE --- */
@media (max-width: 768px) {
@media (max-width: 400px) {
    /* Speziell für iPhone Mini und kleine Geräte */
    .container {
        padding: 0 15px; /* Weniger Rand links/rechts am Bildschirm */
    }
    
    .hours-block {
        padding: 0; /* Nutzt die volle Breite aus */
    }

    .opening-hours li {
        font-size: 0.78rem; /* Absolute Mindestgröße für Lesbarkeit */
        letter-spacing: -0.2px; /* Zieht Buchstaben minimal zusammen */
    }
}
    .main-header { height: 60px; }
    .logo { height: 35px; }
    .sticky-call-btn { display: flex; }
    body { padding-bottom: 60px; }
    .news-indicator { bottom: 75px; }
    
	/* Mobil optimierter Hero-Bereich */
.hero { 
        min-height: calc(100vh - 60px); 
        padding: 5px 20px 30px 20px !important; /* Die '5px' rücken das Logo extrem nah nach oben */
        display: flex;
        flex-direction: column;
    }

    .hero-content { 
        width: 100%; 
        justify-content: flex-start !important; /* Verhindert, dass das Logo in die Mitte rutscht */
        padding-top: 20px; /* Kleiner Puffer über dem Logo */
        flex-grow: 0 !important; /* Nimmt nur so viel Platz ein wie nötig */
    }

    .hero-logo { 
        max-width: 125px !important; /* Etwas kleiner für weniger Platzverbrauch */
        margin-bottom: 10px !important; 
    }

    .hero h1 { 
        font-size: 1.4rem !important; 
        margin-bottom: 8px !important; 
    }

    .hero p { 
        font-size: 0.9rem; 
        margin-bottom: 15px !important; 
    }

    /* Schließt die Lücke zwischen Online-Anfrage und Öffnungszeiten */
    .hero-info-footer { 
        margin-top: 15px !important; /* Kleiner, fester Abstand statt Riesengap */
        font-size: 0.85rem; 
        padding-top: 0 !important;
    }
    .google-rating-box { transform: scale(0.9); }

    .nav-links { display: none; position: absolute; top: 60px; left: 0; width: 100%; background: white; flex-direction: column; padding: 25px; box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
    .nav-links.show { display: flex; }
    .menu-toggle { display: block; }
    .intro-grid, .team-grid, .contact-layout, .legal-grid, .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: 25px 20px; }
    .mfa-dashboard { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    #map-container { margin-top: 20px; }
    .map-link img { max-height: 65vh; object-fit: cover; }
    .map-hint { bottom: 10px; right: 10px; padding: 7px 14px; font-size: 0.7rem; background: var(--primary); color: white; opacity: 1; }
}