/* 
   ================================================================
   1. VARIABLES & RESET
   ================================================================
*/
:root {
    --primary-blue: #06398D;
    --primary-dark: #052c6d;
    --text-dark: #333;
    --text-light: #fff;
    
    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 8px 32px 0 rgba(6, 57, 141, 0.15);
    
    --font-main: 'Eurostile', 'Exo 2', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden; /* Wichtig: Auf beiden Elementen setzen */
    width: 100%;
    position: relative;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: #f4f7fc;
    line-height: 1.6;
    /* overflow-x: hidden; -> Das haben wir jetzt oben im Kombi-Block */
}

/* --- Typography --- */
h1, h2, h3 {
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; line-height: 1.2; }
h2 { font-size: 2.2rem; text-align: center; margin-bottom: 3rem; }
h3 { font-size: 1.3rem; }

/* --- Utility Classes --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 16px;
}

.content-section {
    padding: 100px 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Buttons */
.cta-button {
    display: inline-block;
    background: var(--primary-blue);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(6, 57, 141, 0.3);
}

.secondary-button {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
}

/* 
   ================================================================
   2. NAVIGATION
   ================================================================
*/
.glass-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2000; /* Über allem */
    border-radius: 50px;
    
    /* Glass Style für Nav */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

/* Logo Bild Anpassung */
.logo {
    display: flex;
    align-items: center;
    white-space: nowrap; /* Auch hier: Kein Umbruch */
    flex-shrink: 0;      /* Logo bleibt immer stabil */
}

.logo img {
    max-height: 50px; /* Begrenzt die Höhe */
    width: auto;
    display: block;
    border-radius: 4px;
}

/* Links (Desktop) */
.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

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

.nav-links a:hover { opacity: 0.7; }

/* Rechte Seite: Telefon & Burger Container */
.nav-right-elements {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0; /* Der ganze Container darf nicht schrumpfen */
}

/* Telefon Button (Immer sichtbar) */
.nav-phone-btn {
    background: var(--primary-blue);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(6, 57, 141, 0.2);
    white-space: nowrap; /* WICHTIG: Verbietet Zeilenumbruch */
    flex-shrink: 0;      /* WICHTIG: Verbietet das "Zusammenquetschen" bei Platzmangel */
}

.nav-btn {
    background: var(--primary-blue);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(6, 57, 141, 0.2);
    white-space: nowrap; /* WICHTIG: Verbietet Zeilenumbruch */
    flex-shrink: 0;      /* WICHTIG: Verbietet das "Zusammenquetschen" bei Platzmangel */
}

.nav-phone-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Burger Menu Icon (Desktop: Hidden) */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--primary-blue);
    margin: 5px;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* 
   ================================================================
   3. HERO SECTION (HEADER)
   ================================================================
*/
.parallax-section {
    position: relative;
    height: 100vh; /* Volle Bildschirmhöhe */
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    z-index: -1;
    /* JS steuert den Parallax Effekt */
}

.hero-content {
    margin: 0 auto;
    text-align: center;
    max-width: 850px;
    padding: 3rem;
    position: relative;
}

.hero-subtext {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Trennlinie */
.glass-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(6, 57, 141, 0.3), transparent);
    margin: 2rem 0;
}

/* Unterer Bereich: Button & Zeiten */
.hero-bottom-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

/* Integrierte Öffnungszeiten */
.integrated-hours {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.status-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: var(--primary-blue);
    font-weight: bold;
}

.status-indicator {
    width: 12px;
    height: 12px;
    display: inline-block;
    border-radius: 50%;
    background-color: #ccc; /* JS setzt Farbe */
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.status-label {
    font-weight: normal;
    color: #555;
    font-size: 1rem;
    text-transform: uppercase;
}

/* Dropdown für alle Zeiten */
.hours-dropdown-wrapper {
    position: relative;
    cursor: pointer;
}

.small-link {
    font-size: 0.85rem;
    margin-left: 22px; /* Einrücken unter den Text */
    opacity: 0.7;
    text-decoration: underline;
    color: var(--primary-blue);
}

.hours-popup {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 0;
    width: 280px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.98);
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    margin-top: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 10px;
}

.hours-dropdown-wrapper:hover .hours-popup,
.hours-dropdown-wrapper.active .hours-popup {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.hours-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(6, 57, 141, 0.1);
    font-size: 0.9rem;
}

.hours-row:last-child { border-bottom: none; }
.hours-row span:first-child { font-weight: bold; color: var(--primary-blue); width: 60px; }


/* 
   ================================================================
   4. LEISTUNGEN (GRID & MODALS)
   ================================================================
*/
.service-card {
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
    padding: 2rem;
}

.service-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.9);
}

.teaser {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.fake-link {
    color: var(--primary-blue);
    font-weight: bold;
    font-size: 0.9rem;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 57, 141, 0.4); /* Blauer Schleier */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 3000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-glass-card {
    background: #fff;
    width: 90%;
    max-width: 700px;
    padding: 3rem;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-glass-card {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.5rem;
    background: none;
    border: none;
    color: var(--primary-blue);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

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

/* Modal Content Styling */
#modal-body-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid rgba(6, 57, 141, 0.1);
    padding-bottom: 10px;
    padding-right: 50px; /* Platz für Schließen-Button */
}

#modal-body-content p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.7;
}


/* 
   ================================================================
   5. TEAM SECTION
   ================================================================
*/
.alt-bg {
    background: linear-gradient(135deg, #f4f7fc 0%, #dce6f7 100%);
    position: relative;
}

.team-card {
    padding: 2rem;
    text-align: center;
}

.img-wrapper {
    width: 180px;
    height: 180px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid rgba(255,255,255,0.6);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card .title {
    display: block;
    color: #666;
    font-size: 0.95rem;
    margin-top: 0.5rem;
    font-weight: bold;
}


/* 
   ================================================================
   6. KONTAKT & MAP
   ================================================================
*/
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    overflow: hidden; /* Für runde Ecken der Map */
}

.contact-details {
    flex: 1;
    min-width: 300px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-actions {
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.text-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    transition: opacity 0.2s;
}

.text-link:hover { opacity: 0.7; }

.small-note {
    font-size: 0.9rem;
    color: #666;
    margin-top: 1rem;
}

/* Map Container */
.map-container {
    flex: 1;
    min-width: 300px;
    min-height: 400px;
    position: relative;
    background: #eee;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    display: block;
    /* Schwarz-Weiß Filter */
    filter: grayscale(100%) opacity(0.85);
    transition: all 0.5s ease;
}

.map-container:hover iframe {
    filter: grayscale(0%) opacity(1);
}


/* 
   ================================================================
   7. FOOTER & COOKIE BANNER
   ================================================================
*/
footer {
    background: var(--primary-blue);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-links a:hover { opacity: 1; text-decoration: underline; }

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 500px;
    padding: 1.5rem;
    z-index: 4000;
    display: none;
    animation: slideUp 0.5s ease-out;
    background: rgba(255, 255, 255, 0.95);
}

.cookie-buttons {
    margin-top: 1rem;
    display: flex;
    gap: 10px;
}

.small { padding: 8px 20px; font-size: 0.85rem; }

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


/* 
   ================================================================
   8. MEDIA QUERIES (RESPONSIVE)
   ================================================================
*/

/* Tablet & Mobile Navigation */
@media (max-width: 900px) {
    
    /* Burger sichtbar machen */
    .burger {
        display: block;
        z-index: 2001;
    }

    /* Links verstecken & als Overlay stylen */
    .nav-links {
    position: fixed;
    right: 0;
    left: 0;          /* NEU: Zwingt das Menü ganz nach links */
    top: 0;
    height: 100vh;
    width: 100vw;     /* NEU: Nimmt die volle Bildschirmbreite (Viewport Width) statt % */
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
    margin: 0;
    padding: 0;
    z-index: 1999;
}

    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .nav-links li {
        margin: 25px 0;
        opacity: 0;
    }
    
    .nav-links a {
        font-size: 1.8rem;
    }

    /* Hero Anpassungen */
    .hero-content { padding: 2rem; }
    h1 { font-size: 2.2rem; }
    
    .hero-bottom-row {
        flex-direction: column;
        gap: 30px;
    }
    
    .integrated-hours { align-items: center; }
    .small-link { margin-left: 0; }
    
     /* Der Wrapper muss wissen, dass er der Bezugspunkt ist */
    .hours-dropdown-wrapper {
        position: relative;
        display: inline-block;
    }

    .hours-popup {
        /* 1. Vertikale Positionierung umkehren */
        top: auto;          /* Nicht mehr nach unten ausrichten */
        bottom: 100%;       /* Sondern am unteren Rand des Textes verankern -> geht nach oben */
        margin-bottom: 15px; /* Etwas Abstand zum Finger/Text */
        margin-top: 0;

        /* 2. Horizontale Zentrierung */
        left: 50%; 
        right: auto;
        width: 280px;
        max-width: 90vw;   /* Nicht breiter als der Bildschirm */
        
        /* 3. Animation Start-Status */
        /* Wir schieben es horizontal mittig (-50%) und vertikal etwas nach unten (+10px), 
           damit es beim Einblenden nach oben "slidet" */
        transform: translate(-50%, 10px); 
        
        /* Sicherstellen, dass es über allem anderen liegt */
        z-index: 1000;
    }

    /* Hover/Touch Status */
    .hours-dropdown-wrapper:hover .hours-popup,
    .hours-dropdown-wrapper.active .hours-popup {
        visibility: visible;
        opacity: 1;
        /* End-Status: Perfekt platziert */
        transform: translate(-50%, 0);
    }
    
    /* Optional: Kleiner Pfeil unten am Popup, der auf den Text zeigt */
    .hours-popup::after {
        content: '';
        position: absolute;
        bottom: -5px; /* Unten raus */
        left: 50%;
        transform: translateX(-50%) rotate(45deg);
        width: 10px;
        height: 10px;
        background: white;
        /* Nur nötig, wenn du es ganz schick willst */
    }
}

/* Mobile Phones */
@media (max-width: 600px) {
    .glass-nav {
        padding: 0.5rem 1rem;
        width: 95%;
        top: 10px;
    }

    .logo img { max-height: 40px; }

    .nav-phone-btn {
        padding: 8px 12px;
    }
    
    .phone-text {
        display: none; /* Nur Hörer Icon auf kleinen Handys */
    }
    
    .contact-wrapper {
        flex-direction: column;
    }
    
    .map-container {
        height: 300px;
        min-height: auto;
    }

    /* --- Styling für den Google Maps Platzhalter --- */
.map-placeholder {
    width: 100%;
    height: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    text-align: center;
    padding: 2rem;
}

.map-placeholder p {
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    font-weight: bold;
}
    
    .contact-details {
        padding: 2rem;
    }
    
    .modal-glass-card {
        padding: 1.5rem;
        width: 95%;
    }
}

@media (max-width: 480px) { /* Wert leicht erhöht auf 480px */
    .phone-text {
        display: none; /* Text weg, nur Icon bleibt */
    }
    
    .nav-phone-btn {
        padding: 10px;     /* Button wird quadratisch/rund */
        border-radius: 50%;
        width: 40px;
        height: 40px;
        justify-content: center;
    }
    
    .nav-phone-btn .icon {
        margin: 0; /* Icon zentrieren */
    }
}

/* Animation für Burger Menu Links */
@keyframes navLinkFade {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Animation für Burger Icon */
.toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
.toggle .line2 { opacity: 0; }
.toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }
