/* =========================================
   1. GRUNDLAGEN & VARIABLEN
   ========================================= */
:root {
    --accent-color: #d7e95e;
    --primary-color: #333333;
    --text-color: #555555;
    --light-bg: #fdfdfd;
    --white: #ffffff;
    
    --border-radius: 8px;
    --shadow: 0 4px 15px rgba(0,0,0,0.05);
    --transition: all 0.3s ease;
}

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

html { scroll-behavior: smooth; }
body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* Utility Classes */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 5rem 0; }
.bg-light { background-color: var(--light-bg); }
.bg-highlight { background: #fff; border: 2px solid var(--accent-color); }
.text-center { text-align: center; }


/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */
.main-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    position: sticky; top: 0; z-index: 1000;
    border-bottom: 3px solid var(--accent-color);
    height: 90px;
    display: flex; align-items: center;
}
.header-content { 
    display: flex; justify-content: space-between; align-items: center; 
    width: 100%; height: 100%;
}
.logo { display: flex; align-items: center; gap: 12px; z-index: 1002; position: relative; }

/* Navigation Desktop */
.nav-list { display: flex; align-items: center; gap: 25px; }
.nav-list > li { position: relative; padding: 15px 0; }
.nav-list > li > a { font-weight: 500; display: flex; align-items: center; gap: 5px; color: var(--primary-color); font-size: 0.95rem; }
.nav-list > li > a:hover { color: #99a838; }

/* Hamburger Icon */
.hamburger { display: none; cursor: pointer; z-index: 1002; padding: 10px; }
.hamburger span { display: block; width: 25px; height: 3px; background: var(--primary-color); margin: 5px; transition: 0.3s; }

/* Dropdowns Desktop */
.dropdown-menu {
    position: absolute; top: 100%; left: 0; width: 240px;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    padding: 10px 0; opacity: 0; visibility: hidden;
    transform: translateY(15px); transition: all 0.3s ease;
    z-index: 999; border-top: 2px solid var(--accent-color);
}
.dropdown-menu > li { position: relative; }
.dropdown-menu a { display: block; padding: 12px 25px; font-size: 0.9rem; border-bottom: 1px solid #f5f5f5; }
.dropdown-menu a:hover { background-color: #fafafa; color: #99a838; padding-left: 30px; }

/* Submenü Desktop */
.submenu {
    position: absolute; left: 100%; top: 0; width: 200px;
    background: var(--white); box-shadow: 2px 2px 15px rgba(0,0,0,0.1);
    border-radius: var(--border-radius); padding: 10px 0;
    opacity: 0; visibility: hidden; transform: translateX(-10px);
    transition: all 0.3s ease; border-left: 3px solid var(--accent-color); z-index: 1000;
}
.submenu a { font-size: 0.9rem; padding: 10px 20px; display: block; border-bottom: 1px solid #f5f5f5; color: var(--text-color); }
.submenu a:hover { background-color: #fafafa; color: #99a838; }

/* Desktop Hover-Logik */
@media (min-width: 993px) {
    .nav-list li:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
    .has-submenu:hover > .submenu { opacity: 1; visibility: visible; transform: translateX(0); }
}

.fa-angle-down { font-size: 0.7rem; opacity: 0.5; transition: transform 0.3s; }

/* CTA Button */
.btn-cta {
    background-color: var(--accent-color); color: #333 !important;
    padding: 12px 25px; border-radius: 50px; font-weight: 700 !important;
    box-shadow: 0 4px 10px rgba(215, 233, 94, 0.4);
}
.btn-cta:hover { background-color: #cddf52; transform: translateY(-2px); }


/* =========================================
   3. HERO & PAGE HEADER
   ========================================= */
.hero {
    height: 85vh; min-height: 550px;
    background: url('/Media/header-bg.jpg') no-repeat center center/cover;
    position: relative; display: flex; align-items: center; color: var(--white);
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(20,20,20,0.9), rgba(20,20,20,0.3)); }
.hero-content { position: relative; z-index: 2; max-width: 650px; }
.hero h1 { font-size: 3.5rem; color: var(--white); margin-bottom: 1.5rem; line-height: 1.1; }
.hero p { font-size: 1.3rem; margin-bottom: 2.5rem; opacity: 0.9; font-weight: 300; }

.btn { display: inline-block; padding: 15px 35px; border-radius: 50px; font-weight: 700; text-align: center; }
.btn-primary { background: var(--accent-color); color: #333; margin-right: 15px; box-shadow: 0 4px 15px rgba(215, 233, 94, 0.4); }
.btn-secondary { background: transparent; border: 2px solid var(--white); color: var(--white); }
.btn-primary:hover { background: #fff; color: #333; }
.btn-secondary:hover { background: var(--white); color: #333; border-color: var(--white); }
.hero-buttons .btn { white-space: normal; text-align: center; max-width: 100%; margin-bottom: 10px; }

.emergency-note { margin-top: 3rem; font-size: 0.9rem; background: rgba(255,255,255,0.1); backdrop-filter: blur(5px); display: inline-block; padding: 8px 20px; border-radius: 30px; border: 1px solid rgba(255,255,255,0.2); }
.emergency-note a { color: var(--accent-color); font-weight: bold; text-decoration: underline; }

.page-header {
    background: linear-gradient(rgba(30, 30, 30, 0.9), rgba(30, 30, 30, 0.9)), url('/Media/header-bg.jpg');
    background-size: cover; 
    background-position: center; 
    padding: 2rem 0 1.5rem 0; /* HIER DEUTLICH SCHMALER */
    text-align: center; 
    color: var(--white); 
    margin-bottom: 3rem;
}
.page-header h1 { color: var(--accent-color); font-size: 3rem; font-weight: 700; letter-spacing: 1px; margin-bottom: 0.5rem; }
.page-header p { color: var(--white); font-size: 1.2rem; opacity: 0.9; }


/* =========================================
   4. INHALT & GRID SYSTEM
   ========================================= */
.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.feature-list li { margin-bottom: 1rem; display: flex; align-items: center; gap: 15px; font-size: 1.05rem; }
.feature-list i { color: var(--accent-color); background: rgba(215, 233, 94, 0.2); width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 0.8rem; flex-shrink: 0; }

.services-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2.5rem; margin-top: 3rem; }
.service-card { 
    background: var(--white); padding: 3rem 2rem; border-radius: var(--border-radius); box-shadow: var(--shadow); text-align: center; border-bottom: 4px solid transparent; transition: var(--transition); 
    flex: 1 1 300px; max-width: 350px; width: 100%;
}
.service-card:hover { transform: translateY(-10px); border-bottom-color: var(--accent-color); }
.service-card i { font-size: 3rem; color: #ccc; margin-bottom: 1.5rem; transition: var(--transition); }
.service-card:hover i { color: var(--accent-color); }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.contact-box { background: var(--light-bg); padding: 2.5rem; border-radius: var(--border-radius); border: 1px solid #eee; }
.contact-box.bg-highlight { background: #fff; border: 2px solid var(--accent-color); }
.hours-list li { display: flex; justify-content: space-between; border-bottom: 1px solid #eee; margin-bottom: 0.8rem; padding-bottom: 0.3rem; }

.zoom-container { overflow: hidden; border-radius: var(--border-radius); box-shadow: var(--shadow); cursor: pointer; }
.zoom-container img { transition: transform 0.5s ease; width: 100%; display: block; }
.zoom-container:hover img { transform: scale(1.1); }

/* Modal */
.modal { display: none; position: fixed; z-index: 2000; padding-top: 50px; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0, 0, 0, 0.9); backdrop-filter: blur(5px); }
.modal-content { margin: auto; display: block; width: 80%; max-width: 1000px; max-height: 85vh; object-fit: contain; border-radius: var(--border-radius); animation: zoomIn 0.4s; }
.close { position: absolute; top: 20px; right: 35px; color: #f1f1f1; font-size: 50px; font-weight: bold; transition: 0.3s; cursor: pointer; z-index: 2001; line-height: 1; }
.close:hover { color: var(--accent-color); }
@keyframes zoomIn { from {transform:scale(0.8); opacity: 0;} to {transform:scale(1); opacity: 1;} }


/* =========================================
   5. FOOTER & EXTRAS
   ========================================= */
.main-footer { background: #1a1a1a; color: #888; padding: 3rem 0; text-align: center; margin-top: 4rem; border-top: 5px solid var(--accent-color); }
.footer-content { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 3rem; text-align: left; }
.footer-col { flex: 1; min-width: 250px; }
.footer-col h4 { color: var(--accent-color); margin-bottom: 1.2rem; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-col p, .footer-col li { color: #bbb; font-size: 0.95rem; margin-bottom: 0.8rem; line-height: 1.6; }
.footer-col a:hover { color: var(--accent-color); text-decoration: underline; }
.footer-nav a { margin-bottom: 5px; display: block; color: #bbb; transition: 0.3s; }

.time-table { width: 100%; font-size: 0.9rem; color: #bbb; }
.time-table td { padding-bottom: 5px; vertical-align: top; }
.time-table td:first-child { width: 50px; font-weight: bold; color: #fff; }

.alert-box { background-color: #fff3cd; border-left: 5px solid #ffc107; color: #856404; padding: 1.5rem; margin: 2rem 0; border-radius: 4px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.alert-box h3 { color: #856404; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }
.alert-box strong { font-weight: 700; }

.vita-section { margin-top: 2rem; }
.vita-row { display: flex; gap: 20px; margin-bottom: 0.8rem; line-height: 1.5; }
.vita-year { font-weight: 700; color: var(--accent-color); min-width: 100px; flex-shrink: 0; }
.vita-text { color: var(--text-color); }

.page-navigation { display: flex; justify-content: space-between; align-items: center; margin-top: 4rem; padding-top: 2rem; border-top: 1px solid #eee; }
.nav-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--primary-color); transition: var(--transition); font-size: 0.95rem; }
.nav-link:hover { color: var(--accent-color); }

.link-item { display: flex; align-items: center; gap: 15px; padding: 15px; background: #fff; border: 1px solid #eee; border-radius: 8px; transition: all 0.3s ease; font-weight: 500; line-height: 1.4; }
.link-item:hover { background: #f9f9f9; border-color: var(--accent-color); color: #333; transform: translateX(5px); box-shadow: 0 2px 10px rgba(0,0,0,0.05); }


/* =========================================
   6. MOBILE OPTIMIERUNG (VOLLBILD MENÜ)
   ========================================= */
@media (max-width: 992px) {
    /* Header & Navigation */
    .header-content { height: 70px; padding: 0 15px; } 
    .hamburger { display: block; }
    .logo img { max-height: 45px !important; }

    /* VOLLBILD MENÜ STYLES */
    .nav-list { 
        position: fixed; 
        top: 0; 
        left: 0; /* Links starten */
        width: 100%; /* VOLLBILD */
        height: 100dvh; /* Volle Höhe */
        
        background: var(--white);
        flex-direction: column; 
        align-items: center; /* Zentrierte Items */
        
        padding-top: 90px; /* Platz für Header lassen */
        padding-bottom: 100px; /* Platz unten */
        
        transition: opacity 0.3s ease, visibility 0.3s;
        
        /* Standardmäßig ausgeblendet (über Opacity/Visibility für Fade-In Effekt) */
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        
        overflow-y: auto; /* Scrollen erlauben */
        z-index: 1001;
    }
    
    /* Einblenden bei Active */
    .nav-list.active { 
        opacity: 1; 
        visibility: visible; 
        pointer-events: all;
    }
    
    .nav-list > li { 
        width: 100%; 
        border-bottom: 1px solid #f5f5f5; 
        padding: 20px 0; 
        text-align: center; /* Text zentrieren */
    }

    .nav-list > li > a {
        justify-content: center; /* Flexbox zentrieren */
        font-size: 1.2rem; /* Größere Schrift */
    }
    
    /* Dropdowns auf Mobile */
    .dropdown-menu { 
        position: static; 
        box-shadow: none; width: 100%; 
        opacity: 1; visibility: visible; transform: none; 
        display: none; 
        background-color: transparent; /* Transparent im Vollbild */
        padding-left: 0;
        border-top: none; margin-top: 10px;
    }
    .dropdown-menu.show { display: block; }
    .dropdown-menu a { 
        text-align: center; 
        padding: 15px; 
        color: #777;
    }
    
    .submenu {
        position: static; box-shadow: none; width: 100%;
        opacity: 1; visibility: visible; transform: none;
        display: none; 
        background-color: #f9f9f9; border-left: none; padding-left: 0;
    }
    .submenu.show { display: block; }
    .submenu a { text-align: center; }

    .fa-angle-down { display: none; } /* Pfeile im zentrierten Menü oft störend, ausblenden */

    /* --- Layout Anpassungen --- */
    .section-padding { padding: 3rem 0; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1.1rem; }
    
    .grid-2-col { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-content { flex-direction: column; gap: 2rem; }
    .main-footer { text-align: left; }
    .vita-row { flex-direction: column; gap: 2px; }
    .modal-content { width: 95%; margin-top: 40%; }
    .close { top: 10px; right: 10px; font-size: 40px; }
    .hero-buttons .btn { width: 100%; margin-right: 0; margin-bottom: 10px; }
    .page-navigation { flex-direction: column; gap: 15px; text-align: center; }
}

/* =========================================
   10. HINWEIS-BANNER (Patienteninformation)
   =========================================
   Sitzt unten rechts, auf schmalen Schirmen als Leiste ueber die
   volle Breite. z-index bewusst unter dem Vollbild-Menue (1001) und
   unter der Lightbox (2000), damit beide es zudecken statt umgekehrt. */
.hinweis-banner {
    position: fixed;
    right: 20px; bottom: 20px;
    z-index: 900;
    width: min(340px, calc(100vw - 40px));
    background: var(--white);
    border: 1px solid #e6e8dd;
    border-left: 4px solid var(--accent-color);
    border-radius: var(--border-radius);
    box-shadow: 0 12px 34px rgba(0,0,0,0.14);
    padding: 1.15rem 2.5rem 1.15rem 1.25rem;
    opacity: 0; transform: translateY(14px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.hinweis-banner[hidden] { display: none; }
/* Solange es nicht eingeblendet ist, faengt es keine Klicks ab -- sonst
   laege bei einem haengenden Einblenden eine unsichtbare Flaeche ueber
   der Seite. */
.hinweis-banner:not(.ist-da) { pointer-events: none; }
.hinweis-banner.ist-da { opacity: 1; transform: translateY(0); pointer-events: auto; }
/* Sobald der Fussbereich in Sicht kommt, gleitet das Banner weg: dort
   stehen Impressum und Datenschutz, die nicht verdeckt werden duerfen. */
.hinweis-banner.weicht-aus {
    opacity: 0; transform: translateY(130%); pointer-events: none;
}

.hinweis-banner-marke {
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: #8a8d80; margin-bottom: 0.3rem;
}
.hinweis-banner-titel {
    font-family: 'Poppins', sans-serif; font-weight: 600;
    font-size: 1.08rem; color: var(--primary-color);
    line-height: 1.25; margin-bottom: 0.4rem;
}
.hinweis-banner-text {
    font-size: 0.88rem; line-height: 1.45; margin-bottom: 0.85rem;
}
.hinweis-banner-link {
    display: inline-flex; align-items: center; gap: 0.45rem;
    font-weight: 700; font-size: 0.9rem; color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color); padding-bottom: 2px;
}
.hinweis-banner-link:hover { color: #000; border-bottom-color: var(--primary-color); }
.hinweis-banner-link i { font-size: 0.78rem; transition: transform 0.25s ease; }
.hinweis-banner-link:hover i { transform: translateX(3px); }

/* Schliessen: 44x44 Trefferflaeche fuer Finger */
.hinweis-banner-zu {
    position: absolute; top: 6px; right: 6px;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: none; border: none; cursor: pointer;
    color: #8a8d80; font-size: 1rem; border-radius: 50%;
    transition: var(--transition);
}
.hinweis-banner-zu:hover { background: #f4f5ef; color: var(--primary-color); }
.hinweis-banner-zu:focus-visible,
.hinweis-banner-link:focus-visible {
    outline: 3px solid var(--primary-color); outline-offset: 2px;
}

@media (max-width: 600px) {
    .hinweis-banner {
        right: 10px; left: 10px; bottom: 10px;
        width: auto;
        padding: 0.85rem 2.5rem 0.85rem 1.1rem;
    }
    /* Auf dem Handy laeuft das Banner ueber die volle Breite und verdeckte
       mit dem Fliesstext ueber die Haelfte der darunterliegenden Kachel.
       Ohne ihn bleibt es eine flache Leiste; Marke, Titel und Link tragen
       die Botschaft, alles Weitere steht eine Antippbewegung entfernt. */
    .hinweis-banner-text { display: none; }
    .hinweis-banner-titel { font-size: 1rem; margin-bottom: 0.5rem; }
    .hinweis-banner-marke { font-size: 0.64rem; }
}

@media (prefers-reduced-motion: reduce) {
    .hinweis-banner { transition: none; transform: none; }
    .hinweis-banner.ist-da { transform: none; }
    .hinweis-banner-link i { transition: none; }
    .hinweis-banner-link:hover i { transform: none; }
}
