/* Sicherstellen, dass der Hauptbereich nach dem Fullscreen-Header korrekt startet */
main {
    width: 100%;
    display: block;
}

:root {
    --brand-green: #779c92;
    --light-bg: #e9f0ee;
    --text-color: #333;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    color: var(--text-color);
    line-height: 1.7;
    font-weight: 300; /* Etwas lesbarer als 200 */
    -webkit-font-smoothing: antialiased;
}

/* roboto-200 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 200;
  src: url('fonts/roboto-v51-latin-200.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  src: url('fonts/roboto-v51-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/roboto-v51-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  src: url('fonts/roboto-v51-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/roboto-v51-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/roboto-v51-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* Überschriften */
h1, h2, h3 {
    color: var(--brand-green);
    text-align: center;
    font-weight: 400;
    margin-bottom: 25px;
    margin-top: 0;
}

h1 {
    font-size: 1.9rem;
    font-weight: 500;
    line-height: 1.2;
    padding: 0 20px;
}

/* Sticky Booking Button */
.sticky-booking {
    position: fixed;
    right: 0;
    top: 70%;
    transform: translateY(-50%);
    background-color: var(--brand-green);
    color: white;
    padding: 20px 20px;
    text-decoration: none;
    border-radius: 20px 0 0 20px;
    z-index: 1000;
    font-size: 1.4rem;
/* NEU: Standardmäßig unsichtbar und weicher Übergang */
    opacity: 0;
    pointer-events: none; /* Nicht klickbar, wenn unsichtbar */
    transition: opacity 0.4s ease-in-out;
}

/* Diese Klasse wird per JavaScript hinzugefügt */
.sticky-booking.is-visible {
    opacity: 1;
    pointer-events: auto;
}

/* Styling für die Modal-Buttons */
.btn-primary {
    background-color: var(--brand-green)!important;
    color: white !important;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s;
}

.btn-secondary {
    background-color: #f1f1f1 !important;
    color: #666 !important;
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: normal;
}

.btn-primary:hover {
    transform: scale(1.05);
}

.btn-secondary:hover {
    background-color: #e5e5e5 !important;
}

/* Modal-Inhalt Animation */
#recruitingModal .modal-content {
    animation: popIn 0.4s ease-out;
    max-width: 500px; /* Kompakteres Fenster */
}

/* Recruiting Modal mit Hintergrundbild */
.modal-content.recruiting-bg {
    background-image: url('Background-Tooth.png');
    background-size: contain; /* Bild passt sich an, ohne abgeschnitten zu werden */
    background-position: left;
    background-repeat: no-repeat;
    padding: 60px 30px; /* Etwas mehr Platz nach oben, da das Foto fehlt */
}

/* Header-Struktur */
.fullscreen-header {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Die weiße Bar abrunden und schmaler machen */
.logo-bar {
    height: 15vh !important;
    background-color: #fff;
    display: flex;
    justify-content: center; /* Horizontale Zentrierung für Flex-Inhalt */
    align-items: center;
    position: relative;
    z-index: 1000;
    top: 0px; 
    width: 100%;
    margin: 0 auto;
}

/* Das Logo exakt mittig ausrichten und überragen lassen */
.logo-bar img {
    height: 90% !important; /* Überragt die 10vh Bar */
    width: auto;
    position: absolute;
    padding: 5px;

    
    /* Der Trick für echte horizontale Zentrierung bei absolute: */
    left: 50%;
    transform: translateX(-50%); 
    z-index: 1001;
    transition: all 0.3s ease;
}

/* Hero-Bereich Container */
.hero-full {
    height: 85vh !important; /* 100vh minus 10vh Header = 90vh */
    min-height: 85vh !important;
    background-image: url('hauptbild.jpg');
    background-size: cover;
    background-position: right bottom;
    background-repeat: no-repeat;
    display: flex;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.hero-text-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center; /* Vertikale Zentrierung im Desktop-Modus */
    justify-content: flex-start; /* Stellt sicher, dass der Inhalt links beginnt */
}

.hero-text-box {
    /* Mindestens 50% der horizontalen Breite ausfüllen */
    width: 60%; 
    min-width: 50%;
    padding: 0 5% 0 8%; /* Linker Abstand für optische Ruhe */
    box-sizing: border-box;
    text-align: left; /* Linksbündiger Text */
}

/* Dynamische Schriftgröße für H1 */
.hero-text-box h1 {
    font-family: "Tw Cen MT", "Twentieth Century", "Century Gothic", "Avant Garde", sans-serif !important;
    color: #ffffff;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.1;
    font-weight: 500;
    /* WICHTIG: Margin und Padding auf 0 setzen, um Versatz zu eliminieren */
    margin: 0 0 0 0; 
    padding: 0;
    width: 100%;
    text-align: left; /* Linksbündiger Text */
}

/* Untertitel und Bullets ebenfalls linksbündig */
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    text-align: left;
    margin-bottom: 25px;
    color: #ffffff;
    max-width: 90%; /* Verhindert zu lange Zeilen */
}

.hero-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 35px 0;
}

.hero-bullets li {
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    text-align: left;
    margin-bottom: 10px;
    padding-left: 30px;
    position: relative;
    color: #ffffff;
}

.hero-bullets li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--brand-green);
    font-weight: bold;
}

/* Der Button */
.hero-btn {
    display: inline-block;
    background-color: var(--brand-green);
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 20px; /* Abgerundeter Look wie im Bild */
    font-weight: 500;
    font-size: clamp(1rem, 2vw, 1.5rem);
    transition: background 0.3s ease;
}

.hero-btn:hover {
    background-color: var(--brand-green-hover);
}

.opening-badge {
    display: inline-block;
    background-color: rgba(0, 132, 129, 0.15); /* Etwas kräftiger für bessere Sichtbarkeit */
    color: #fff;
    padding: 15px 35px;
    border-radius: 20px;
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 40px;
    border: 1px solid var(--brand-green);
    
    /* Animation: Kombiniert Einblenden und Pulsieren */
    animation: badge-pulse 3s infinite ease-in-out;
    box-shadow: 0 0 0 0 #fff; /* Startwert für den Leuchteffekt */
}

/* Die kombinierte Animation */
@keyframes badge-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 132, 129, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(0, 132, 129, 0); /* Erzeugt einen "Wellen"-Effekt nach außen */
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 132, 129, 0);
    }
}

/* Sicherstellen, dass der Hauptbereich nach dem Fullscreen-Header korrekt startet */
main {
    width: 100%;
    display: block;
}

.welcome {
    margin-top: 0 !important;
    padding: 100px 10%;
    position: relative;
    z-index: 1;
      
    /* Etwas dunklere Basis-Farbe, damit das weiße Muster besser rauskommt */
    background-color: #f2f2f2; 
    
    /* Sanfter Schatten nach innen für mehr Tiefe */
    box-shadow: inset 0 0 50px rgba(0,0,0,0.02);
    
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.welcome-container {
    margin: 0 auto;
    display: flex;
    align-items: center; /* Vertikale Zentrierung */
    gap: 30px;
    position: relative;
    z-index: 2;
}

/* Bild-Seite mit Design-Akzent */
.welcome-image-side {
    flex: 1;
    position: relative;
}

.doctor-photo-frame {
    position: relative;
    z-index: 2;
}

.doctor-photo {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 20px 20px 60px rgba(0,0,0,0.08);
}

/* Text-Seite */
.welcome-text-side {
    flex: 1.2;
    font-family: "Tw Cen MT", "Twentieth Century", "Century Gothic", "Avant Garde", sans-serif !important;
}

.welcome-text-side h2 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 20px;
    text-align: left;
    color: var(--brand-green);
}

.highlight-text {
    font-size: 1.2rem;
    font-weight: 300;
    color: #555;
    margin-bottom: 20px;
}

.signature-block {
    margin-top: 40px;
    border-left: 3px solid var(--brand-green);
    padding-left: 20px;
}

.doctor-name {
    font-style: italic;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--brand-green);
    margin: 0;
}

/* Entferne mögliche Abstände von Elementen innerhalb der Sektionen */
.hero-full *:last-child {
    margin-bottom: 0 !important;
}

.welcome *:first-child {
    margin-top: 0 !important;
}

/* Desktop-Bild standardmäßig zeigen, mobiles Bild verstecken */
.doctor-photo-mobile {
    display: none;
}

.services {
    background-color: var(--light-bg);
    padding: 100px 10%;
}

.services-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important; /* Hier liegt der Fehler, falls es auf 2 steht */
    gap: 40px;
}

.service-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    text-align: center;
    width: 100% !important;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.service-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* Sorgt für einheitliche Bildgrößen */
    overflow: hidden;
}

.service-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Verhindert Verzerrungen */
    transition: transform 0.5s ease;
}

.service-card:hover img {
    transform: scale(1.1);
}

.service-card h3 {
    padding: 20px 15px;
    margin: 0;
    font-size: 1.1rem;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Das "Mehr erfahren" Overlay */
.service-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 132, 129, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.service-overlay span {
    background: #fff;
    color: #008481;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Icons & Items */
.service-item {
    flex: 0 1 calc(25% - 30px); /* Desktop: 4 Spalten */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
}

.icon-box {
    background: white;
    width: 160px;
    height: 160px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.icon-box img {
    max-width: 80%; /* Etwas Luft zum Rand der weißen Box */
    max-height: 80%;
    object-fit: contain;
}

/* Footer */
.main-footer {
    background-color: #f4f7f6; /* Sehr helles Marken-Grau/Grün */
    padding: 100px 10%;
    color: #444;
}

/* Generelle Link-Eigenschaften im Footer */
.main-footer a {
    color: var(--brand-green); /* Deine Markenfarbe */
    text-decoration: none;      /* Entfernt den Unterstrich */
    font-weight: 700;           /* Fettschrift */
    transition: color 0.3s ease;
}

/* Hover-Effekt für die Links */
.main-footer a:hover {
    color: #5f8a7d; /* Ein etwas dunklerer Ton beim Drüberfahren */
    text-decoration: none; /* Stellt sicher, dass auch beim Hover kein Strich erscheint */
}

.footer-container {
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.footer-column {
    flex: 1;
    text-align: center;
    background: #ffffff;
    padding: 40px 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    line-height: 1.3;
}

.footer-column:hover {
    transform: translateY(-5px);
}

.footer-icon-circle {
    width: 60px;
    height: 60px;
    background-color: var(--brand-green); /* Dein KFO-Grün */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -70px auto 20px; /* Schiebt das Icon halb aus der Box */
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--brand-green); /* Deine Markenfarbe */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-column p, .opening-hours {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.opening-hours {
    list-style: none;
    line-height: 1.8;
    padding: 0;
    margin: 0;
    text-align: center; /* Zentriert den gesamten Block in der Karte */
}

.opening-hours li {
    display: block;
    font-size: 0.95rem;
    line-height: 1.2;
    margin-bottom: 8px;
    white-space: nowrap; /* Verhindert hässliche Umbrüche */
}

.opening-hours .day {
    display: inline-block;
    font-weight: bold;
    width: 35px;        /* Fixe Breite sorgt dafür, dass die Doppelpunkte untereinander stehen */
    text-align: left;   /* Die Kürzel selbst stehen links in ihrem 35px-Feld */
    margin-right: 5px;  /* Abstand zur Uhrzeit */
}

/* Spezifische Anpassung für den "Ihr Weg zu uns"-Button */
.footer-link-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 25px;
    border: 2px solid var(--brand-green);
    border-radius: 50px;
    background-color: transparent;
    /* Font-Eigenschaften werden oben vererbt, hier zur Sicherheit: */
    font-weight: 700;
}

.footer-link-btn:hover {
    background-color: var(--brand-green);
    color: #ffffff !important; /* Text wird weiß, wenn der Button gefüllt ist */
}

.footer-bottom {
    /* Abstand der Linie nach oben zu den 3 Spalten */
    margin-top: 60px; 
    
    /* Die Linie selbst */
    border-top: 1px solid #ddd; 
    
    /* Abstand VON der Linie nach unten zum Text */
    padding-top: 30px; 

}

.footer-bottom p {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 15px; /* Dies steuert den exakt gleichen Abstand zu allen Seiten der Linie */
    font-size: 0.9rem;
    color: #888;
    margin: 0;
}

.footer-bottom .separator {
    color: #ddd; /* Farbe der Trennlinie dezent halten */
    font-weight: normal;
    user-select: none; /* Verhindert das versehentliche Markieren der Linie */
}

.footer-bottom a {
    text-decoration: none;
    font-weight: 700;
    color: var(--brand-green);
    margin: 0; /* Wichtig: Alle individuellen Margins auf 0 setzen */
}

.footer-bottom a:hover {
    color: var(--light-bg);
}

.social-links {
    display: flex;
    justify-content: center; /* Zentriert die Icons horizontal */
    gap: 20px;               /* Abstand zwischen Facebook und Instagram */
    margin-top: 20px;        /* Abstand nach oben zum Kontaktblock */
    width: 100%;             /* Nutzt die volle Breite der Spalte */
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #f1f1f1; /* Heller Hintergrund */
    color: #555; /* Neutrales Grau */
    border-radius: 50%; /* Rundes Design */
    text-decoration: none;
    font-size: 24px;
    transition: all 0.3s ease;
}

/* Hover-Effekt: Icons werden grün und heben sich leicht ab */
.social-links a:hover {
    background-color: var(--brand-green);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 132, 129, 0.2);
}

/* Responsive */
@media (max-width: 900px) {
    .footer-container {
        flex-direction: column;
        gap: 60px;
    }
    .footer-column {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Standardmäßig ausblenden (Desktop) */
.mobile-action-bar {
    display: none;
}

/* RESPONSIVE DESIGN */

/* --- RESPONSIVE LOGIK (Ab 1:1 Seitenverhältnis oder Handy) --- */

@media (max-aspect-ratio: 1/1), (max-width: 768px) {
/* Der gesamte Bereich (Logo + Hero) soll 100% des sichtbaren Bereichs füllen */
.opening-badge {
        font-size: 1rem;
        padding: 6px 15px;
        margin-bottom: 15px;
    }
.mobile-action-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 65px;
        background: #ffffff;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 9999;
        justify-content: space-around;
        align-items: center;
        padding-bottom: env(safe-area-inset-bottom); /* Fix für iPhone-Home-Bar */
    }

    .action-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #555;
        font-size: 10px; /* Kleiner Text unter dem Icon für die Klarheit */
        flex: 1;
    }

    .action-item i {
        font-size: 20px;
        margin-bottom: 4px;
        color: var(--brand-green); /* Deine Markenfarbe */
    }

    /* Der mittlere Button (Termin) wird optisch hervorgehoben */
    .action-item.main-action i {
        background: var(--brand-green);
        color: white;
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        margin-top: -30px; /* Schwebe-Effekt */
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }
    
    .action-item.main-action span {
        margin-top: 5px;
    }

    /* Damit der Footer nicht von der Bar verdeckt wird */
    body {
        padding-bottom: 70px !important;
    }
    
   .logo-bar {
        height: 13vh !important;
    }
    
    .logo-bar img {
        height: 90% !important;
        top: 0px;
    }

    .hero-full {
        /* Wir nehmen die tatsächliche sichtbare Höhe minus die 15% des Logos */
        height: 87vh !important; 
        min-height: 87vh !important;
        
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow: hidden;
    }
        /* Hero Überschrift komprimieren */
    .hero-full h1 {
        font-size: 1.8rem !important; /* Schriftgröße verringern */
        line-height: 1.1 !important;  /* Zeilenabstand verengen */
        margin-bottom: 10px !important; 
    }

    /* Einleitungstext unter der H1 */
    .hero-full p {
        font-size: 1rem !important;
        line-height: 1.2 !important;
        margin-bottom: 15px !important;
    }

    /* Checkliste (Häkchen-Texte) kompakter machen */
    .hero-full ul {
        margin-bottom: 15px !important;
    }
    
    .hero-full ul li {
        font-size: 0.9rem !important;
        margin-bottom: 5px !important; /* Abstand zwischen den Punkten minimieren */
    }
    .hero-full {
        flex-direction: column;
        background-position: right bottom !important; /* Verankerung fixiert */
    }

    .hero-text-container {
        align-items: flex-start;
        padding-top: 30px;
    }

    .hero-text-box {
        width: 100%;
        text-align: left; /* Linksbündig für bessere Lesbarkeit der Bullets */
        background: transparent; /* Hintergrund komplett entfernt */
        padding: 20px 10%;
    }

    .hero-text-box h1 {
        font-size: 1.8rem;
        text-align: left; /* Übereinstimmung mit Bullets */
    }

    .hero-subtitle {
        text-align: left;
        font-size: 1.1rem;
    }

    /* Bullets mobil sichtbar halten */
    .hero-bullets li {
        text-align: left;
        display: block; /* Sicherstellen, dass sie untereinander stehen */
        font-size: 1rem;
    }

    .hero-bullets li::before {
        display: inline-block; /* Häkchen explizit anzeigen */
        margin-right: 10px;
    }

   /* Button verkleinern */
    .hero-btn {
        padding: 10px 20px !important; /* Kleinerer Innenabstand */
        font-size: 0.9rem !important;   /* Kleinere Schrift im Button */
        max-width: 200px;               /* Maximale Breite begrenzen */
        margin-top: 5px !important;
    }

    .feature-icon {
        width: 90px; /* Auf Handy etwas dezenter, aber immer noch groß */
        margin-bottom: 20px;
    }

    .welcome-container {
        flex-direction: column; /* Bild oben, Text unten */
        gap: 30px;
        padding: 0 20px;
    }


/* Desktop-Bild-Spalte ausblenden */
    .welcome-image-side.desktop-only {
        display: none;
    }

    /* Mobiles Bild direkt über dem Namen einblenden */
    .doctor-photo-mobile {
        display: block;
        width: 100%;
        text-align: center; /* Oder center, falls gewünscht */
        margin-bottom: 15px;
        margin-top: 30px;
    }

    .doctor-photo-mobile .doctor-photo {
        width: 80%; /* Kompakt über dem Namen */
        border-radius: 20px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    }

    .welcome-text-side {
        align-items: flex-start; /* Alles bleibt linksbündig */
    }

    .signature-block {
        margin-top: 5px; /* Kleinerer Abstand zum Bild darüber */
    }

    .footer-bottom {
        margin-top: 40px;
        padding-top: 25px;
    }
}

/* Modal Hintergrund */
.modal {
    display: none; 
    position: fixed; 
    z-index: 10000; 
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
}

/* Modal Inhalt Box */
.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 20px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
}
.modal-content a {
    text-decoration: none;
    font-weight: 700;
    color: var(--brand-green);
    margin: 0; /* Wichtig: Alle individuellen Margins auf 0 setzen */
}

.modal-content a:hover {
    color: var(--light-bg);
}

.close-modal {
    position: sticky;
    top: 0;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: var(--brand-green);
}

.modal h2 { color: var(--brand-green); margin-top: 0; }
.modal h3 { color: #555; margin-top: 20px; }

/* --- MOBILE ANPASSUNG --- */
@media (max-width: 900px) {
    .sticky-booking {
    display: none;
}
    .features-container {
        flex-direction: column;
        align-items: center;
        gap: 50px;
    }

    .feature-item {
        max-width: 100%;
    }

    .feature-item:not(:last-child)::after {
        display: none; /* Linien weg, wenn untereinander */
    }
    
    .welcome {
        padding: 30px 15px !important; /* Minimaler Abstand für Mobilgeräte */
    }
    
    .welcome-container {
        flex-direction: column;
        text-align: center;
    }

    .signature-block {
        border-left: none;
        padding-left: 0;
    }

    .welcome-text-side h2 {
    text-align: center;
    }

    .services {
        padding: 40px 0 !important;
        width: 100% !important;
        overflow: hidden; /* Verhindert horizontales Scrollen */
    }

    .services-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important; /* Exakt 2 Spalten */
        gap: 20px !important; /* Gleichmäßiger Abstand zwischen den Karten */
        width: 90% !important; /* Lässt links und rechts 4% Platz */
        margin: 0 auto !important; /* Zentriert das gesamte Grid im Container */
        padding: 0 !important;
    }

    .service-card {
        width: 100% !important; /* Nutzt den vollen Platz der Grid-Zelle */
        margin: 0 !important; /* Entfernt alte Außenabstände, die asymmetrisch sein könnten */
        display: flex;
        flex-direction: column;
    }
    
   .service-card h3 {
        font-size: 0.85rem !important;
        padding: 12px 5px !important;
        min-height: 50px; /* Sorgt dafür, dass alle Titel gleich hoch wirken */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        gap: 80px; /* Mehr Platz für die Floating Icons */
        padding: 0 20px; /* Sicherer Abstand zum Bildschirmrand */
    }

    .footer-column {
        /* Breite auf Mobilgeräten optimieren */
        width: 100%; 
        max-width: 500px; /* Erlaubt eine angenehme Breite auf Tablets */
        padding: 40px 25px;
        box-sizing: border-box; /* Wichtig, damit Padding die Breite nicht sprengt */
    }

    .footer-icon-circle {
        /* Icons auf Mobilgeräten etwas kleiner, damit sie harmonischer wirken */
        width: 50px;
        height: 50px;
        margin: -65px auto 20px;
        font-size: 1.2rem;
    }
    
    .footer-column h3 {
        font-size: 1.2rem;
    }
}

/* Handy: 2 nebeneinander */
@media (max-width: 600px) {
    .footer-grid { gap: 30px; }
    
    .icon-box {
        width: 130px;
        height: 130px;
    }
    
    h1 { font-size: 1.5rem; }
}

/* Speziell für sehr kleine Handys (iPhone SE etc.) */
@media (max-width: 480px) {
    .footer-column {
        padding: 35px 15px;
    }
    
    .opening-hours li {
        font-size: 0.9rem;
    }

    .footer-bottom p {
        gap: 8px; /* Etwas engerer, aber immer noch symmetrischer Abstand auf Handys */
        font-size: 0.7rem;
    }
}

/* Sehr kleine Handys (unter 360px) */
@media (max-width: 360px) {
    .services-grid {
        gap: 10px;
    }
    .service-card h3 {
        font-size: 0.8rem;
    }
}

/* Sehr große Monitore */
@media (min-width: 1600px) {
    .services-grid {
        gap: 80px;
    }
    .footer-container {
        gap: 80px;
    }
    .doctor-photo {
      max-width: 400px;
    }
}

/* Sehr große Monitore */
@media (min-width: 2000px) {
    .services-grid {
        gap: 120px;
    }
    .footer-container {
        gap: 120px;
    }
    .doctor-photo {
      max-width: 500px;
    }
}