/*
Theme Name: Frauenarzt Gladbach
Theme URI: https://www.frauenaerztin-moenchengladbach.de
Author: Gynäkologische Praxis Kornelia Andresen
Author URI: https://www.frauenaerztin-moenchengladbach.de
Description: Ein maßgeschneidertes WordPress-Theme für die Gynäkologische Praxis Kornelia Andresen in Mönchengladbach-Rheindahlen. DSGVO-konform, barrierefrei (EU-Accessibility), SEO/GEO/AEO optimiert, vollständig responsiv. Alle Inhalte sind im Customizer und inline editierbar.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: frauenarzt-gladbach
Tags: one-column, custom-colors, custom-logo, custom-menu, featured-images, theme-options, translation-ready, accessibility-ready
*/

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    --green-primary: #84B467;
    --green-dark: #6a9a50;
    --green-light: #a8cf8e;
    --green-pale: #e8f3de;
    --green-glass: rgba(132, 180, 103, 0.08);
    --slate-dark: #284053;
    --slate: #3a5a70;
    --text-dark: #2c2c2c;
    --text-body: #4a4a4a;
    --text-muted: #777;
    --white: #ffffff;
    --off-white: #f8faf6;
    --warm-gray: #f2f0ed;
    --border-light: #e4e8e0;
    --red-emergency: #d92828;
    --shadow-sm: 0 2px 8px rgba(40,64,83,0.06);
    --shadow-md: 0 8px 30px rgba(40,64,83,0.10);
    --shadow-lg: 0 20px 60px rgba(40,64,83,0.12);
    --shadow-card: 0 4px 20px rgba(132,180,103,0.10);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 40px;
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; font-size: 16px; }
body {
    font-family: var(--font-body);
    color: var(--text-body);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-dark); }

/* ===== ACCESSIBILITY ===== */
.sr-only,
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--green-primary);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    z-index: 100000;
    font-weight: 700;
    transition: top 0.3s;
}
.skip-link:focus {
    top: 0;
    color: var(--white);
    outline: 3px solid var(--slate-dark);
    outline-offset: 2px;
}
/* Focus visible for keyboard nav (EU Accessibility) */
:focus-visible {
    outline: 3px solid var(--green-primary);
    outline-offset: 2px;
}
a:focus-visible, button:focus-visible {
    outline: 3px solid var(--green-primary);
    outline-offset: 2px;
}

/* ===== UTILITY ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--green-primary);
    margin-bottom: 1rem;
}
.section-label::before {
    content: '';
    width: 28px;
    height: 2px;
    background: var(--green-primary);
    border-radius: 2px;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    color: var(--slate-dark);
    line-height: 1.2;
    margin-bottom: 1.2rem;
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.8;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes floatSoft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
/* Prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
}

/* ===== HEADER / NAV ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(132,180,103,0.1);
    transition: box-shadow var(--transition), background var(--transition);
}
.site-header.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255,255,255,0.97);
}
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
    .admin-bar .site-header { top: 46px; }
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: 1rem;
}
.logo-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}
.logo-group img {
    width: 44px;
    height: auto;
    transition: transform var(--transition);
}
.logo-group:hover img { transform: rotate(-8deg) scale(1.05); }
.logo-text {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--slate-dark);
    line-height: 1.3;
}
.logo-text small {
    display: block;
    font-family: var(--font-body);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* Desktop nav */
.main-nav { display: flex; align-items: center; gap: 0; }
.main-nav a {
    position: relative;
    display: inline-block;
    padding: 0.5rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-body);
    text-transform: uppercase;
    transition: color var(--transition);
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--green-primary);
    border-radius: 2px;
    transition: width var(--transition), left var(--transition);
}
.main-nav a:hover, .main-nav a.active { color: var(--green-primary); }
.main-nav a:hover::after, .main-nav a.active::after { width: 60%; left: 20%; }

.cta-header {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.4rem;
    background: var(--green-primary);
    color: var(--white) !important;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    flex-shrink: 0;
}
.cta-header:hover {
    background: var(--green-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(132,180,103,0.35);
    color: var(--white) !important;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}
.hamburger span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--slate-dark);
    border-radius: 2px;
    transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* Mobile nav overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(30px);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}
.mobile-nav-overlay.open { display: flex; }
.mobile-nav-overlay a {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--slate-dark);
    padding: 0.5rem 1rem;
    transition: color var(--transition);
}
.mobile-nav-overlay a:hover { color: var(--green-primary); }

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--slate-dark);
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
    filter: brightness(0.85);
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(40,64,83,0.6) 0%, rgba(40,64,83,0.2) 40%, rgba(40,64,83,0.35) 70%, rgba(40,64,83,0.85) 100%);
}
.hero-content {
    position: relative;
    z-index: 1;
    padding: 0;
    max-width: 640px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}
.hero-inner {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 8rem 0 8rem;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    padding: 0.35rem 1rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1.8rem;
    animation: fadeInUp 0.8s ease forwards;
}
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 5.5vw, 4rem);
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1.2rem;
    animation: fadeInUp 0.8s 0.12s ease both;
    letter-spacing: -0.01em;
}
.hero h1 em {
    font-style: italic;
    color: var(--green-light);
}
.hero-text {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.65);
    max-width: 460px;
    margin-bottom: 2.2rem;
    line-height: 1.75;
    animation: fadeInUp 0.8s 0.24s ease both;
    font-weight: 300;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    animation: fadeInUp 0.8s 0.36s ease both;
}
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.8rem;
    background: var(--green-primary);
    color: var(--white);
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: 0.02em;
}
.btn-primary:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(132,180,103,0.35);
    color: var(--white);
}
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.8rem;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all var(--transition);
}
.btn-outline:hover {
    border-color: rgba(255,255,255,0.5);
    color: var(--white);
    background: rgba(255,255,255,0.1);
}

/* Hero bottom info strip */
.hero-strip {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    background: rgba(0,0,0,0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,0.06);
}
.hero-strip-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}
.hero-strip-item {
    padding: 1rem 1.5rem;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    font-weight: 300;
}
.hero-strip-item + .hero-strip-item {
    border-left: 1px solid rgba(255,255,255,0.06);
}
.hero-strip-item strong {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255,255,255,0.75);
    margin-bottom: 0.15rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ===== ANNOUNCEMENT BANNER ===== */
.announcement-banner {
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--slate-dark), var(--slate));
    color: var(--white);
}
.announcement-banner--vacation {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
}
.announcement-banner--warning {
    background: linear-gradient(135deg, #d35400, #e67e22);
}
.announcement-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
}
.announcement-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(132,180,103,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.announcement-banner--vacation .announcement-icon,
.announcement-banner--warning .announcement-icon {
    background: rgba(255,255,255,0.2);
}
.announcement-banner h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
}
.announcement-banner p {
    opacity: 0.85;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== ANNOUNCEMENT MODAL POPUP ===== */
.ann-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(40,64,83,0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.ann-modal-overlay.visible {
    opacity: 1;
}
.ann-modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 80px rgba(40,64,83,0.25);
    max-width: 480px;
    width: 100%;
    padding: 2.5rem 2.5rem 2rem;
    position: relative;
    text-align: center;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-top: 4px solid var(--ann-accent, var(--slate-dark));
}
.ann-modal-overlay.visible .ann-modal {
    transform: translateY(0) scale(1);
}
.ann-modal-close {
    position: absolute;
    top: 0.8rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 0.3rem;
    transition: color var(--transition);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.ann-modal-close:hover {
    color: var(--slate-dark);
    background: var(--off-white);
}
.ann-modal-icon {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    line-height: 1;
}
.ann-modal-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--slate-dark);
    margin-bottom: 0.8rem;
    line-height: 1.3;
}
.ann-modal-body {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 1.8rem;
}
.ann-modal-body p {
    margin-bottom: 0.6rem;
}
.ann-modal-body p:last-child {
    margin-bottom: 0;
}
.ann-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: center;
}
.ann-modal-actions .btn-primary {
    width: 100%;
    justify-content: center;
}
.ann-modal-dismiss {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: all var(--transition);
}
.ann-modal-dismiss:hover {
    color: var(--slate-dark);
    background: var(--off-white);
}
@media (max-width: 480px) {
    .ann-modal {
        padding: 2rem 1.5rem 1.5rem;
        border-radius: var(--radius-md);
    }
    .ann-modal-icon { font-size: 2.2rem; }
    .ann-modal-title { font-size: 1.25rem; }
}

/* ===== WILLKOMMEN / ABOUT ===== */
.welcome {
    padding: clamp(4rem, 8vw, 7rem) 0;
    background: var(--off-white);
}
.welcome-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}
.welcome-image-wrap {
    position: relative;
}
.welcome-image-wrap img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
}
.welcome-image-accent {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--green-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-card);
    animation: floatSoft 4s infinite;
}
.welcome-image-accent img { width: 45px; }
.welcome-body p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}
.signature {
    margin-top: 2rem;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.3rem;
    color: var(--slate-dark);
}

/* ===== E-REZEPT ===== */
.erezept {
    padding: 3.5rem 0;
    background: linear-gradient(135deg, var(--green-pale), #f0f7ea);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}
.erezept-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.erezept-icon {
    width: 64px;
    height: 64px;
    background: var(--green-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}
.erezept h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--slate-dark);
    margin-bottom: 0.4rem;
}
.erezept p {
    color: var(--text-body);
    font-size: 0.95rem;
}

/* ===== NEWS / AKTUELLES ===== */
.news {
    padding: clamp(4rem, 8vw, 7rem) 0;
    background: var(--white);
}
.news-header { text-align: center; margin-bottom: 3.5rem; }
.news-header .section-subtitle { margin: 0 auto; }
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
/* If only 1 post, make it full width */
.news-grid > article:only-child {
    grid-column: 1 / -1;
    max-width: 700px;
    margin: 0 auto;
}
/* If 3 posts, last one spans full width */
.news-grid > article:nth-child(3):last-child {
    grid-column: 1 / -1;
    max-width: 700px;
    margin: 0 auto;
}
.news-card {
    background: var(--off-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: transform var(--transition), box-shadow var(--transition);
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}
.news-card-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}
.news-card-images.single { grid-template-columns: 1fr; }
.news-card-images.triple { grid-template-columns: 1fr 1fr 1fr; }
.news-card-images img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}
.news-card-body {
    padding: 1.8rem;
}
.news-card-date {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--green-primary);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}
.news-card-body h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--slate-dark);
    margin-bottom: 0.6rem;
    line-height: 1.35;
}
.news-card-body h3 a {
    color: var(--slate-dark);
    transition: color var(--transition);
}
.news-card-body h3 a:hover {
    color: var(--green-primary);
}
.news-card-body p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.7;
}
/* Placeholder teaser for posts without images */
.news-card-placeholder {
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green-pale);
}
.news-card-placeholder svg {
    width: 100%;
    height: 100%;
}

/* ===== TEAM ===== */
.team {
    padding: clamp(4rem, 8vw, 7rem) 0;
    background: var(--white);
}
.team-header { text-align: center; margin-bottom: 3.5rem; }
.team-header .section-subtitle { margin: 0 auto; }
.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}
.team-card {
    background: var(--off-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid var(--border-light);
}
.team-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.team-card-img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: top center;
}
.team-card-body {
    padding: 2rem;
}
.team-card-body h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--slate-dark);
    margin-bottom: 0.3rem;
}
.team-card-body .role {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--green-primary);
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}
.team-card-body p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Familiensache banner */
.family-banner {
    margin-top: 3rem;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.family-banner img {
    width: 100%;
    aspect-ratio: 2.2/1;
    object-fit: cover;
    object-position: center 60%;
}
.family-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(40,64,83,0.92) 0%, rgba(40,64,83,0.75) 35%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 2.5rem 3rem;
}
.family-banner-text {
    max-width: 550px;
    color: var(--white);
}
.family-banner-text h3 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: 1rem;
}
.family-banner-text p {
    opacity: 0.85;
    line-height: 1.7;
}

/* ===== LEISTUNGEN ===== */
.services {
    padding: clamp(4rem, 8vw, 7rem) 0;
    background: var(--off-white);
}
.services-header {
    text-align: center;
    margin-bottom: 3.5rem;
}
.services-header .section-subtitle { margin: 0 auto; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.service-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2.2rem;
    border: 1px solid var(--border-light);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--green-primary);
    border-radius: 0 4px 4px 0;
    transition: height var(--transition);
}
.service-card:hover { box-shadow: var(--shadow-card); border-color: var(--green-primary); }
.service-card:hover::before { height: 100%; }
.service-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: var(--green-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
}
.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--slate-dark);
    margin-bottom: 0.6rem;
}
.service-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===== SCHWANGERSCHAFT ===== */
.pregnancy {
    padding: clamp(4rem, 8vw, 7rem) 0;
    background: var(--white);
}
.pregnancy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}
.pregnancy-body .section-title { margin-bottom: 1.5rem; }
.pregnancy-body p { font-size: 1.05rem; margin-bottom: 1rem; }
.pregnancy-motto {
    background: var(--green-pale);
    border-left: 4px solid var(--green-primary);
    padding: 1.3rem 1.6rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--slate-dark);
    margin: 1.5rem 0;
}
.app-preview {
    position: relative;
}
.app-preview img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    aspect-ratio: 1;
    object-fit: cover;
}

/* ===== PRAXIS / GALERIE ===== */
.praxis {
    padding: clamp(4rem, 8vw, 7rem) 0;
    background: var(--white);
}
.praxis-header { text-align: center; margin-bottom: 3rem; }
.praxis-header .section-subtitle { margin: 0 auto; }
.praxis-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.praxis-gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}
.praxis-gallery-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.praxis-gallery-item:hover img { transform: scale(1.06); }
.praxis-gallery-item .gallery-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(40,64,83,0.8));
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    transform: translateY(100%);
    transition: transform var(--transition);
}
.praxis-gallery-item:hover .gallery-label { transform: translateY(0); }

/* ===== NOTFALL ===== */
.emergency {
    padding: clamp(3rem, 5vw, 4rem) 0;
    background: #fdf5f5;
    border-top: 3px solid var(--red-emergency);
}
.emergency-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: start;
}
.emergency-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--red-emergency);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.emergency h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--red-emergency);
    margin-bottom: 0.8rem;
}
.emergency p { font-size: 0.92rem; line-height: 1.8; }
.emergency-number {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--red-emergency);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* ===== KONTAKT / MAP ===== */
.contact {
    padding: clamp(4rem, 8vw, 7rem) 0;
    background: var(--off-white);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
.contact-info h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--slate-dark);
    margin-bottom: 1.5rem;
}
.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}
.contact-item-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--green-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.contact-item strong {
    display: block;
    color: var(--slate-dark);
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}
.contact-item span, .contact-item a {
    font-size: 0.92rem;
    color: var(--text-muted);
}
.hours-table {
    width: 100%;
    margin-top: 1.5rem;
    border-collapse: collapse;
}
.hours-table td {
    padding: 0.6rem 0;
    font-size: 0.92rem;
    border-bottom: 1px solid var(--border-light);
}
.hours-table td:first-child { font-weight: 600; color: var(--slate-dark); }
.hours-table td:last-child { text-align: right; color: var(--text-muted); }

/* GDPR-compliant map placeholder */
.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 1;
    min-height: 380px;
}
.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
.map-consent {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 380px;
    background: var(--warm-gray);
    padding: 2rem;
    text-align: center;
}
.map-consent p {
    margin-bottom: 1rem;
    font-size: 0.92rem;
    color: var(--text-muted);
    max-width: 300px;
}
.map-consent button {
    padding: 0.8rem 1.5rem;
    background: var(--green-primary);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition);
}
.map-consent button:hover { background: var(--green-dark); }

/* ===== FOOTER ===== */
.site-footer {
    background: var(--slate-dark);
    color: rgba(255,255,255,0.7);
    padding: 4rem 0 1.5rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-brand .logo-group img { filter: none; }
.footer-brand .logo-text { color: var(--white); }
.footer-brand .logo-text small { color: rgba(255,255,255,0.5); }
.footer-brand p { margin-top: 1rem; font-size: 0.88rem; line-height: 1.7; }
.footer-heading {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--green-light);
    margin-bottom: 1.2rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.6);
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--green-light); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
}
.footer-legal a {
    color: rgba(255,255,255,0.5);
    margin-left: 1.5rem;
}
.footer-legal a:hover { color: var(--green-light); }

/* ===== COOKIE BANNER (GDPR) ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--white);
    box-shadow: 0 -4px 30px rgba(0,0,0,0.15);
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.5s ease;
    border-top: 3px solid var(--green-primary);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.cookie-text {
    flex: 1;
    min-width: 280px;
    font-size: 0.88rem;
    color: var(--text-body);
    line-height: 1.6;
}
.cookie-text a { font-weight: 600; text-decoration: underline; }
.cookie-actions { display: flex; gap: 0.8rem; flex-shrink: 0; }
.cookie-btn {
    padding: 0.65rem 1.4rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
}
.cookie-btn-accept {
    background: var(--green-primary);
    color: var(--white);
}
.cookie-btn-accept:hover { background: var(--green-dark); }
.cookie-btn-decline {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-light);
}
.cookie-btn-decline:hover { border-color: var(--text-muted); }

/* ===== Doctolib Fixed Bottom Bar ===== */
.doctolib-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 257px;
    height: 40px;
    background-color: #0596DE;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    overflow: hidden;
    box-shadow: 0 -2px 12px rgba(5,150,222,0.3);
    transition: opacity 0.3s ease;
}
.doctolib-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    height: 100%;
    color: #ffffff !important;
    font-size: 14px;
    font-family: var(--font-body);
    text-decoration: none;
    line-height: 40px;
}
.doctolib-bar a:hover { opacity: 0.9; }
.doctolib-brand {
    font-weight: 700;
    font-style: italic;
    letter-spacing: -0.02em;
    opacity: 0.9;
}

/* ===== LEGAL PAGES (Impressum/Datenschutz) ===== */
.page-header-legal {
    background: var(--slate-dark);
    padding: 8rem 1.5rem 3rem;
    text-align: center;
}
.page-header-legal h1 {
    font-family: var(--font-display);
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.page-header-legal .back-link {
    color: var(--green-light);
    font-size: 0.9rem;
}
.page-header-legal .back-link:hover { color: var(--white); }
.content-wrap-legal {
    max-width: 800px;
    margin: -2rem auto 4rem;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: clamp(2rem, 5vw, 3.5rem);
}
.content-wrap-legal h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--slate-dark);
    margin: 2.2rem 0 0.8rem;
}
.content-wrap-legal h2:first-child { margin-top: 0; }
.content-wrap-legal p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
.content-wrap-legal ul { margin: 0 0 1rem 1.5rem; }
.content-wrap-legal li { margin-bottom: 0.4rem; font-size: 0.95rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .main-nav { display: none; }
    .cta-header { display: none; }
    .hamburger { display: flex; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .hero-inner { padding: 7rem 0 6rem; min-height: auto; }
    .hero-strip-inner { grid-template-columns: 1fr; }
    .hero-strip-item { padding: 0.6rem; }
    .hero-strip-item + .hero-strip-item { border-left: 0; border-top: 1px solid rgba(255,255,255,0.06); }
    .welcome-grid,
    .pregnancy-grid,
    .contact-grid { grid-template-columns: 1fr; }
    .welcome-image-wrap { order: -1; }
    .team-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .praxis-gallery { grid-template-columns: repeat(2, 1fr); }
    .announcement-inner { grid-template-columns: 1fr; text-align: center; }
    .announcement-icon { margin: 0 auto; }
    .emergency-inner { grid-template-columns: 1fr; text-align: center; }
    .emergency-icon { margin: 0 auto; }
    .emergency-number { margin-top: 1rem; }
    .family-banner-overlay { padding: 1.5rem; }
    .family-banner img { aspect-ratio: 1/1; object-position: center 60%; }
    .erezept-inner { flex-direction: column; text-align: center; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-legal a { margin-left: 0; margin-right: 1rem; }
    .cookie-banner { bottom: 44px; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 2.2rem; }
    .hero-actions { flex-direction: column; }
    .btn-primary, .btn-outline { width: 100%; justify-content: center; }
}
