/* ===========================
   Reset & Base Styles
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Farben wie Homepage index.html - elegant & leicht */
    --bg-main: #f4f1ee;
    --bg-secondary: #ede7e1;
    --text-main: #3c3633;
    --text-muted-new: #5c544e;
    --text-light: #8a817c;
    --accent-taupe: #a69080;
    --border-color: #ede7e1;
    
    /* Mapping auf bestehende Variablen */
    --primary: #a69080;        /* accent-taupe */
    --primary-dark: #8a7a6a;   /* Dunkler Taupe */
    --primary-light: #c4b8a9;  /* Helles Taupe */
    --accent: #a69080;         /* accent-taupe */
    
    /* Warme Hintergrundfarben */
    --white: #ffffff;          /* Reines Weiß für Glass-Cards */
    --beige: #f4f1ee;          /* bg-main */
    --cream: #ede7e1;          /* bg-secondary */
    --gray-50: #faf8f5;        /* Sehr hell */
    --gray-100: #f5f0eb;       /* Hell */
    --gray-200: #ede7e1;       /* border-color */
    --gray-300: #ddd5cc;       /* Steinbeige */
    --gray-400: #c4b8a9;       /* Helles Taupe */
    --gray-500: #a69080;       /* accent-taupe */
    --gray-600: #8a7a6a;       /* Dunkles Warmgrau */
    --gray-700: #5c544e;       /* text-muted */
    --gray-800: #3c3633;       /* text-main */
    --gray-900: #2a2522;       /* Dunkelbraun */
    
    /* Semantische Farben */
    --text-heading: #3c3633;   /* text-main */
    --text-body: #5c544e;      /* text-muted */
    --text-muted: #8a817c;     /* text-light */
    --bg-card: #ffffff;        /* Karten-Hintergrund */
    --bg-section: #ede7e1;     /* Sections-Hintergrund */
    
    /* Spacing */
    --spacing-xs: 0.375rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 0.9375rem;
    --font-size-lg: 1rem;
    --font-size-xl: 1.125rem;
    --font-size-2xl: 1.25rem;
    --font-size-3xl: 1.5rem;
    --font-size-4xl: 1.875rem;
    --font-size-5xl: 2.25rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 2px 4px 0 rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 8px 0 rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 8px 16px 0 rgba(0, 0, 0, 0.12);
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.625rem;
    --radius-xl: 0.75rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.75;
    color: var(--text-body);
    background: var(--bg-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
    padding-top: 56px;
}

/* ===========================
   Homepage Navbar - Fixed Glass Header
   (Nur auf der Homepage aktiv)
   =========================== */
body.homepage {
    /* Platz für fixed Navbar, damit Hero nicht überdeckt wird */
    padding-top: 76px;
}

@media (max-width: 768px) {
    body.homepage {
        padding-top: 68px;
    }

    body.homepage .navbar .container {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
}

body.homepage .navbar {
    top: 0;
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
    background: rgba(255, 254, 249, 0.6);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 28px rgba(61, 53, 48, 0.08);
}

body.homepage .navbar.scrolled {
    background: rgba(255, 254, 249, 0.82);
    box-shadow: 0 10px 34px rgba(61, 53, 48, 0.12);
}

body.homepage .navbar .container {
    padding: 1rem var(--spacing-md);
}

body.homepage .navbar.scrolled .container {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

body.homepage .nav-brand {
    font-size: inherit;
}

body.homepage .nav-brand-link--stacked {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    line-height: 1.05;
}

body.homepage .nav-brand-title {
    /* gleiche Schrift wie Untertitel (Inter / System Sans) */
    font-family: var(--font-family);
    font-weight: 800;
    font-size: 1.05rem;
    color: #2d241e;
    letter-spacing: -0.01em;
    transition: var(--transition);
}

body.homepage .nav-brand-subtitle {
    font-size: 0.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.32em;
    color: #d4a373;
}

/* Desktop Navigation Links im React-Header-Stil */
@media (min-width: 769px) {
    body.homepage .nav-menu .nav-link {
        background: transparent;
        border-radius: 0;
        padding: 0.25rem 0.25rem;
        font-size: 0.625rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.2em;
        color: #8a7a6c;
        position: relative;
    }

    body.homepage .nav-menu .nav-link::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -0.25rem;
        width: 0;
        height: 1px;
        background: #d4a373;
        transition: width 0.3s ease;
    }

    body.homepage .nav-menu .nav-link:hover,
    body.homepage .nav-menu .nav-link.active {
        color: #2d241e;
        background: transparent;
    }

    body.homepage .nav-menu .nav-link:hover::after,
    body.homepage .nav-menu .nav-link.active::after {
        width: 100%;
    }

    /* Header Buttons im Pill-Style (Desktop) */
    body.homepage .btn-portal-nav {
        border-radius: 9999px !important;
        padding: 0.55rem 1.15rem !important;
        font-size: 0.5625rem !important; /* ~9px */
        font-weight: 800 !important;
        text-transform: uppercase;
        letter-spacing: 0.18em;
    }

    /* Patienten Portal (dunkel) */
    body.homepage .btn-patient-portal {
        background: #2d241e !important;
        color: #ffffff !important;
        box-shadow: 0 6px 18px rgba(45, 36, 30, 0.18) !important;
    }

    body.homepage .btn-patient-portal:hover {
        background: #d4a373 !important;
        color: #2d241e !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 10px 26px rgba(212, 163, 115, 0.28) !important;
    }

    /* Mitarbeiter Button (outlined) */
    body.homepage .btn-staff-portal {
        background: rgba(255, 255, 255, 0.55) !important;
        color: #2d241e !important;
        border: 1px solid rgba(45, 36, 30, 0.25) !important;
        box-shadow: 0 6px 18px rgba(61, 53, 48, 0.06) !important;
    }

    body.homepage .btn-staff-portal:hover {
        background: rgba(212, 163, 115, 0.18) !important;
        border-color: rgba(212, 163, 115, 0.55) !important;
        color: #2d241e !important;
        transform: translateY(-1px) !important;
    }

    /* Notfall Button optisch harmonisieren (Desktop) */
    body.homepage .emergency-btn,
    body.homepage .emergency-btn-mobile {
        border-radius: 9999px;
        font-size: 0.5625rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.18em;
    }

    body.homepage .emergency-btn {
        padding: 0.55rem 1.05rem;
    }

    body.homepage .emergency-btn-mobile {
        padding: 0.55rem 0.95rem;
    }
}

/* Mobile: keine Desktop-Underline-Animation im Fullscreen-Menü */
@media (max-width: 768px) {
    body.homepage .nav-menu .nav-link::after {
        content: none;
    }
}

/* ===========================
   Toast Notifications (Global)
   =========================== */
.toast-container {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10000;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--white);
    color: var(--text-body);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    min-width: 260px;
    box-shadow: var(--shadow-xl);
    transition: transform 0.26s ease, opacity 0.26s ease;
    animation: toastIn 0.2s ease-out;
}

.toast-success { border-color: #10B981; }
.toast-error { border-color: #EF4444; }
.toast-title { font-weight: 700; margin-right: 0.25rem; }
.toast-message { color: var(--text-muted); }

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===========================
   Animated Background Pattern - Homepage
   =========================== */
.bg-pattern-homepage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.bg-pattern-homepage::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 50%, rgba(156, 139, 122, 0.06) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(156, 139, 122, 0.04) 0%, transparent 40%),
                radial-gradient(circle at 40% 80%, rgba(156, 139, 122, 0.03) 0%, transparent 30%);
    animation: floatBg 25s ease-in-out infinite;
}

@keyframes floatBg {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(2%, 2%) rotate(0.5deg); }
    50% { transform: translate(-1%, 3%) rotate(-0.5deg); }
    75% { transform: translate(3%, -1%) rotate(0.25deg); }
}

.floating-icon-hp {
    position: absolute;
    opacity: 0.04;
    color: var(--primary);
    animation: floatIconHp 18s ease-in-out infinite;
}

.floating-icon-hp:nth-child(1) { top: 8%; left: 4%; animation-delay: 0s; }
.floating-icon-hp:nth-child(2) { top: 55%; left: 8%; animation-delay: -4s; }
.floating-icon-hp:nth-child(3) { top: 25%; left: 88%; animation-delay: -8s; }
.floating-icon-hp:nth-child(4) { top: 70%; left: 82%; animation-delay: -6s; }
.floating-icon-hp:nth-child(5) { top: 18%; left: 50%; animation-delay: -2s; }

@keyframes floatIconHp {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
}

/* ===========================
   Navigation - Warmes Helles Beige Theme
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(253, 248, 243, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(156, 139, 122, 0.15);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(253, 248, 243, 0.98);
    box-shadow: 0 4px 24px rgba(92, 79, 66, 0.1);
}

.navbar.scrolled .mobile-menu-toggle span {
    background: #5C4F42;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem var(--spacing-md);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 700;
    font-size: var(--font-size-lg);
    color: #3D3530;
}

.nav-brand-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
    color: #3D3530;
    transition: var(--transition);
}

.nav-brand-link:hover {
    opacity: 0.85;
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.75rem;
    z-index: 1002;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.mobile-menu-toggle span {
    width: 22px;
    height: 2px;
    background: #5C4F42;
    transition: all 0.3s ease;
    border-radius: 2px;
    display: block;
    transform-origin: center;
}

.mobile-menu-toggle.active span {
    background: #FFFEF9;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-sm);
    align-items: center;
}

.btn-primary-nav {
    background: linear-gradient(135deg, #9C8B7A 0%, #7A6B5A 100%);
    color: #FFFEF9;
    padding: 0.5rem 1.125rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s;
    border: none;
    box-shadow: 0 2px 8px rgba(156, 139, 122, 0.3);
}

.btn-primary-nav:hover {
    background: linear-gradient(135deg, #7A6B5A 0%, #5C4F42 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(156, 139, 122, 0.4);
}

/* Portal Navigation Buttons */
.nav-menu .btn-portal-nav,
.btn-portal-nav {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.nav-menu .btn-portal-nav svg,
.btn-portal-nav svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

/* Patienten Portal Button - Primary Style mit Glow */
.nav-menu .btn-patient-portal,
.btn-patient-portal {
    background: linear-gradient(135deg, #9C8B7A 0%, #7A6B5A 100%) !important;
    color: #FFFEF9 !important;
    box-shadow: 0 2px 8px rgba(156, 139, 122, 0.35), 
                0 1px 3px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

.nav-menu .btn-patient-portal:hover,
.btn-patient-portal:hover {
    background: linear-gradient(135deg, #8A7A6A 0%, #6A5B4A 100%) !important;
    color: #FFFEF9 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(156, 139, 122, 0.4), 
                0 3px 8px rgba(0, 0, 0, 0.12),
                inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.nav-menu .btn-patient-portal:active,
.btn-patient-portal:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 6px rgba(156, 139, 122, 0.3) !important;
}

/* Mitarbeiter Portal Button - Elegant Outlined Style */
.nav-menu .btn-staff-portal,
.btn-staff-portal {
    background: rgba(255, 254, 249, 0.9) !important;
    color: #5C4F42 !important;
    border: 1.5px solid rgba(156, 139, 122, 0.4) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06) !important;
}

.nav-menu .btn-staff-portal:hover,
.btn-staff-portal:hover {
    background: rgba(156, 139, 122, 0.12) !important;
    color: #3D3530 !important;
    border-color: rgba(156, 139, 122, 0.6) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(156, 139, 122, 0.2) !important;
}

.nav-menu .btn-staff-portal:active,
.btn-staff-portal:active {
    transform: translateY(0) !important;
    background: rgba(156, 139, 122, 0.18) !important;
}

/* Portal Buttons Container Spacing */
.nav-menu li:has(.btn-portal-nav) {
    margin-left: 0.25rem;
}

/* Emergency Button in Navigation */
.nav-emergency-item {
    margin-left: 0.5rem;
}

.emergency-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.emergency-btn:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.emergency-btn svg {
    animation: pulse-emergency 2s ease-in-out infinite;
}

@keyframes pulse-emergency {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Mobile Emergency Button */
.nav-right-mobile {
    display: none;
    align-items: center;
    gap: 0.75rem;
}

/* Visibility helpers */
.mobile-only {
    display: none !important;
}

.emergency-btn-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 0.875rem;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: inherit;
}

.emergency-btn-mobile:hover,
.emergency-btn-mobile:active {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    transform: scale(1.02);
}

.emergency-btn-mobile svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    animation: pulse-emergency 2s ease-in-out infinite;
}

/* Emergency Popup Overlay */
.emergency-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

.emergency-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Emergency Popup */
.emergency-popup {
    background: linear-gradient(145deg, #292524 0%, #1C1917 100%);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
    position: relative;
    border: 1px solid rgba(220, 38, 38, 0.3);
    box-shadow: 
        0 24px 48px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(220, 38, 38, 0.15);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.emergency-popup-overlay.active .emergency-popup {
    transform: scale(1) translateY(0);
}

.emergency-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #D1D1D1;
    transition: all 0.2s ease;
}

.emergency-popup-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.emergency-popup-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.4);
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% { 
        box-shadow: 0 8px 24px rgba(220, 38, 38, 0.4);
    }
    50% { 
        box-shadow: 0 8px 32px rgba(220, 38, 38, 0.6), 0 0 40px rgba(220, 38, 38, 0.3);
    }
}

.emergency-popup h2 {
    color: white;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.emergency-popup > p {
    color: #D1D1D1;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.emergency-popup-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.emergency-call-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    padding: 1.25rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.125rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.4);
}

.emergency-call-btn:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.5);
}

.emergency-call-btn .emergency-number {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.emergency-cancel-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #D1D1D1;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
}

.emergency-cancel-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.emergency-hint {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: #f87171;
    font-weight: 500;
}

.btn-secondary-nav {
    background: rgba(156, 139, 122, 0.1);
    color: #5C4F42;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s;
    border: 1px solid rgba(156, 139, 122, 0.25);
    backdrop-filter: blur(10px);
}

.btn-secondary-nav:hover {
    background: rgba(156, 139, 122, 0.15);
    border-color: rgba(156, 139, 122, 0.4);
    transform: translateY(-1px);
}

.nav-link {
    text-decoration: none;
    color: #7A6B5A;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    letter-spacing: 0;
}

.nav-link:hover,
.nav-link.active {
    color: #3D3530;
    background: rgba(156, 139, 122, 0.1);
}

/* ===========================
   Hero Section - Warmes Helles Beige Theme
   =========================== */
.hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F8F4EF 0%, #FDF8F3 100%);
    overflow: hidden;
    padding: 6rem 0 3rem;
    border-bottom: 1px solid rgba(156, 139, 122, 0.1);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C8B7A' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

.hero-overlay {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #3D3530;
    padding: 0;
    max-width: 760px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(156, 139, 122, 0.12);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(156, 139, 122, 0.2);
    color: #7A6B5A;
    letter-spacing: 0.02em;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: #9C8B7A;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.pulse-dot.open {
    background: #22c55e;
    animation: pulse-green 2s ease-in-out infinite;
}

.pulse-dot.closed {
    background: #ef4444;
    animation: pulse-red 2s ease-in-out infinite;
}

@keyframes pulse-green {
    0%, 100% { 
        opacity: 1; 
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    50% { 
        opacity: 0.8; 
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
    }
}

@keyframes pulse-red {
    0%, 100% { 
        opacity: 1; 
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    50% { 
        opacity: 0.8; 
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
}

.hero-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
    font-family: var(--font-family);
    color: #3D3530;
}

.gradient-text {
    font-weight: 700;
    background: linear-gradient(135deg, #9C8B7A 0%, #7A6B5A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    max-width: 520px;
    margin: 0 auto 2.5rem;
    color: #5C4F42;
    line-height: 1.7;
    font-weight: 400;
    letter-spacing: 0;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
    padding: 1.5rem 2.5rem;
    background: rgba(255, 254, 249, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(156, 139, 122, 0.15);
    box-shadow: 0 4px 20px rgba(92, 79, 66, 0.08);
}

.hero-stat {
    text-align: center;
}

.hero-stat .stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: #3D3530;
    letter-spacing: -0.02em;
}

.hero-stat .stat-label {
    font-size: 0.8125rem;
    color: #9C8B7A;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(156, 139, 122, 0.2);
}

/* Hero Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #9C8B7A;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: fadeInUp 1s ease 0.5s backwards;
    z-index: 10;
}

@media (max-width: 768px) {
    .hero-scroll-indicator {
        display: none;
    }
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(156, 139, 122, 0.3);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: #9C8B7A;
    border-radius: 2px;
    animation: scrollWheel 2s ease infinite;
}

@keyframes scrollWheel {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.3; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0 3rem;
}

/* ===========================
   Portal Login Section
   =========================== */
.portal-login-section {
    padding: 2.25rem 0 1.25rem;
    background: linear-gradient(135deg, #FDF8F3 0%, #F8F4EF 100%);
}

.portal-login-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.5rem;
    border-radius: 18px;
    background: rgba(255, 254, 249, 0.78);
    border: 1px solid rgba(156, 139, 122, 0.16);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(92, 79, 66, 0.08);
}

.portal-login-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.portal-login-text h2 {
    font-size: 1.35rem;
    line-height: 1.2;
    color: var(--text-heading);
    margin-bottom: 0.35rem;
}

.portal-login-text p {
    color: var(--text-body);
    font-size: 0.95rem;
    margin: 0;
}

.portal-login-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .portal-login-card {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .portal-login-actions {
        justify-content: center;
    }
}

.btn-erezept {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #9C8B7A 0%, #7A6B5A 100%);
    color: #FFFEF9;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(156, 139, 122, 0.35);
    letter-spacing: 0;
    position: relative;
    overflow: hidden;
}

.btn-erezept::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 254, 249, 0.2) 0%, rgba(255, 254, 249, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-erezept:hover {
    background: linear-gradient(135deg, #7A6B5A 0%, #5C4F42 100%);
    box-shadow: 0 8px 28px rgba(156, 139, 122, 0.45);
    transform: translateY(-3px);
}

.btn-erezept:active {
    transform: translateY(0);
    box-shadow: 0 4px 16px rgba(156, 139, 122, 0.3);
}

.btn-erezept svg {
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease;
}

.btn-erezept:hover svg {
    transform: scale(1.1);
}

.hero-icon-deco {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9375rem;
    letter-spacing: 0;
}

.btn-primary {
    background: linear-gradient(135deg, #9C8B7A 0%, #7A6B5A 100%);
    color: #FFFEF9;
    box-shadow: 0 4px 12px rgba(156, 139, 122, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #7A6B5A 0%, #5C4F42 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(156, 139, 122, 0.4);
}

.btn-secondary {
    background: rgba(156, 139, 122, 0.1);
    color: #5C4F42;
    border: 1px solid rgba(156, 139, 122, 0.25);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: rgba(156, 139, 122, 0.4);
    background: rgba(168, 162, 158, 0.2);
}

.scroll-indicator {
    display: none;
}

/* ===========================
   Notice Banner - Warmes Helles Beige Theme
   =========================== */
.notice-banner {
    padding: 2rem 0;
    background: linear-gradient(135deg, #FDF8F3 0%, #F8F4EF 100%);
}

.notice-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 254, 249, 0.9);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    border: 1px solid rgba(156, 139, 122, 0.15);
    box-shadow: 0 4px 24px rgba(92, 79, 66, 0.08);
}

.notice-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #9C8B7A 0%, #7A6B5A 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFEF9;
    box-shadow: 0 6px 16px rgba(156, 139, 122, 0.35);
}

.notice-text {
    color: #5C4F42;
    font-size: 1rem;
    line-height: 1.5;
}

.notice-text strong {
    color: #3D3530;
    font-weight: 600;
}

/* ===========================
   Sections - Warmes Helles Beige Theme
   =========================== */
.services,
.opening-hours,
.about,
.location,
.emergency,
.contact {
    padding: 4.5rem 0;
    background: linear-gradient(135deg, #FDF8F3 0%, #F8F4EF 100%);
    position: relative;
    overflow: hidden;
}

.services::before,
.opening-hours::before,
.about::before,
.emergency::before,
.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C8B7A' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

.services .container,
.opening-hours .container,
.about .container,
.emergency .container,
.contact .container {
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #9C8B7A 0%, #7A6B5A 100%);
    color: #FFFEF9;
    padding: 0.375rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 12px rgba(156, 139, 122, 0.3);
}

.section-badge svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.section-badge.danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.section-title {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 700;
    color: #3D3530;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 0.9375rem;
    color: #7A6B5A;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===========================
   Services - Warmes Helles Theme
   =========================== */
.services {
    background: linear-gradient(135deg, #F8F4EF 0%, #FDF8F3 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: var(--spacing-xl);
}

.service-card {
    background: rgba(255, 254, 249, 0.95);
    backdrop-filter: blur(10px);
    padding: 2.25rem;
    border-radius: 20px;
    border: 1px solid rgba(156, 139, 122, 0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(92, 79, 66, 0.06);
}

.service-card:hover {
    border-color: rgba(156, 139, 122, 0.25);
    box-shadow: 0 12px 40px rgba(92, 79, 66, 0.1);
    transform: translateY(-6px);
    background: rgba(255, 254, 249, 1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #9C8B7A 0%, #7A6B5A 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFEF9;
    margin-bottom: 1.25rem;
    border: none;
    box-shadow: 0 6px 16px rgba(156, 139, 122, 0.35);
}

.service-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #3D3530;
    margin-bottom: 0.625rem;
    letter-spacing: -0.01em;
}

.service-card > p {
    color: #5C4F42;
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.service-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.service-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    color: #5C4F42;
    font-size: 0.9375rem;
}

.service-list li::before {
    content: '✓';
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: rgba(156, 139, 122, 0.15);
    color: #9C8B7A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    line-height: 1;
}

/* ===========================
   Opening Hours - Warmes Helles Theme
   =========================== */
.opening-hours {
    background: linear-gradient(135deg, #FAF8F5 0%, #F8F4EF 100%);
    padding: 4rem 0;
}

.hours-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 800px) {
    .hours-grid {
        grid-template-columns: 1fr;
    }
}

.hours-card {
    background: rgba(255, 254, 249, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(156, 139, 122, 0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(92, 79, 66, 0.06);
}

.hours-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(92, 79, 66, 0.1);
    border-color: rgba(156, 139, 122, 0.25);
    background: rgba(255, 254, 249, 1);
}

.hours-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(156, 139, 122, 0.15);
}

.hours-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #9C8B7A 0%, #7A6B5A 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFEF9;
    flex-shrink: 0;
    border: none;
    box-shadow: 0 6px 16px rgba(156, 139, 122, 0.35);
}

.hours-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #3D3530;
}

.hours-schedule {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(156, 139, 122, 0.1);
}

.hours-row:last-child {
    border-bottom: none;
}

.hours-row .day {
    font-weight: 600;
    color: #3D3530;
    font-size: 0.9375rem;
}

.hours-row .times {
    color: #7A6B5A;
    text-align: right;
    font-size: 0.875rem;
}

.hours-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 2px solid rgba(156, 139, 122, 0.1);
    color: #9C8B7A;
    font-size: var(--font-size-sm);
    font-style: italic;
}

.hours-note svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.appointment-badge {
    display: inline-block;
    background: linear-gradient(135deg, #9C8B7A 0%, #7A6B5A 100%);
    color: #FFFEF9;
    padding: 0.25rem 0.625rem;
    border-radius: 50px;
    font-size: 0.6875rem;
    font-weight: 700;
    margin-left: auto;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 8px rgba(156, 139, 122, 0.3);
}

/* ===========================
   About Section - Warmes Helles Theme
   =========================== */
.about {
    background: linear-gradient(135deg, #F8F4EF 0%, #FDF8F3 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.about-content {
    text-align: left;
}

.about-content .section-badge {
    margin-bottom: var(--spacing-md);
}

.about-content .section-title {
    text-align: left;
    margin-bottom: var(--spacing-lg);
    color: #3D3530;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.about-text p {
    color: #5C4F42;
    line-height: 1.8;
    font-size: var(--font-size-lg);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
    padding: 1.25rem 1rem;
    background: rgba(255, 254, 249, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(156, 139, 122, 0.15);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(92, 79, 66, 0.06);
}

.stat:hover {
    background: rgba(255, 254, 249, 1);
    border-color: rgba(156, 139, 122, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(92, 79, 66, 0.1);
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: #9C8B7A;
    margin-bottom: 0.375rem;
    letter-spacing: -0.02em;
}

.stat-label {
    color: #7A6B5A;
    font-size: 0.8125rem;
}

.about-image {
    position: relative;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: rgba(156, 139, 122, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9C8B7A;
    border: 1px solid rgba(156, 139, 122, 0.15);
}

/* ===========================
   Location - Warmes Helles Theme
   =========================== */
.location {
    background: linear-gradient(135deg, #FAF8F5 0%, #F8F4EF 100%);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.location-info .section-badge {
    margin-bottom: var(--spacing-md);
}

.location-info .section-title {
    text-align: left;
    margin-bottom: var(--spacing-xl);
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.location-item {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.location-icon {
    width: 48px;
    height: 48px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-700);
    flex-shrink: 0;
    border: 1.5px solid var(--gray-200);
}

.location-item strong {
    display: block;
    font-size: var(--font-size-lg);
    color: var(--gray-900);
    margin-bottom: var(--spacing-xs);
}

.location-item p {
    color: var(--gray-700);
    line-height: 1.6;
}

.map-container {
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    height: 450px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
}

/* ===========================
   Emergency - Helles Theme (Kompakt)
   =========================== */
.emergency {
    background: linear-gradient(135deg, #FDF8F3 0%, #F8F4EF 100%);
    padding: 2.5rem 0;
}

.emergency .section-header {
    margin-bottom: 1.25rem;
}

.emergency .section-title {
    font-size: 1.375rem;
}

.emergency .section-subtitle {
    font-size: 0.875rem;
}

.emergency-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media (max-width: 900px) {
    .emergency-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .emergency-grid {
        grid-template-columns: 1fr;
    }
}

.emergency-card {
    background: rgba(255, 254, 249, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(156, 139, 122, 0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(92, 79, 66, 0.06);
}

.emergency-card:hover {
    border-color: rgba(156, 139, 122, 0.25);
    box-shadow: 0 12px 40px rgba(92, 79, 66, 0.1);
    transform: translateY(-6px);
    background: rgba(255, 254, 249, 1);
}

.emergency-card.urgent {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.3);
}

.emergency-card.urgent:hover {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.6);
}

.emergency-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #9C8B7A 0%, #7A6B5A 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 auto 1rem;
    border: none;
    box-shadow: 0 6px 16px rgba(156, 139, 122, 0.35);
}

.emergency-icon svg {
    width: 24px;
    height: 24px;
}

.emergency-card.urgent .emergency-icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.emergency-card h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #3D3530;
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.emergency-desc {
    font-size: 0.8125rem;
    color: #7A6B5A;
    margin: 0 0 0.75rem;
}

.emergency-card.urgent .emergency-desc {
    color: #fca5a5;
    opacity: 0.8;
}

.emergency-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 700;
    color: #5C4F42;
    text-decoration: none;
    margin-top: 0.25rem;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    background: rgba(156, 139, 122, 0.1);
    letter-spacing: -0.02em;
    transition: all 0.3s ease;
}

.emergency-number:hover {
    color: white;
    background: linear-gradient(135deg, #9C8B7A 0%, #7A6B5A 100%);
    box-shadow: 0 6px 16px rgba(156, 139, 122, 0.35);
}

.emergency-card.urgent .emergency-number {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.15);
}

.emergency-card.urgent .emergency-number:hover {
    color: white;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

/* ===========================
   Contact - Warmes Helles Theme
   =========================== */
.contact {
    background: linear-gradient(135deg, #FAF8F5 0%, #F8F4EF 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--spacing-2xl);
}

.contact-info .section-badge {
    margin-bottom: var(--spacing-md);
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: var(--spacing-md);
    color: #3D3530;
}

.contact-info > p {
    color: #5C4F42;
    margin-bottom: var(--spacing-xl);
    line-height: 1.7;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.contact-method {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.contact-method-icon {
    width: 48px;
    height: 48px;
    background: rgba(156, 139, 122, 0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9C8B7A;
    flex-shrink: 0;
    border: none;
}

.contact-method strong {
    display: block;
    font-size: var(--font-size-base);
    color: #3D3530;
    margin-bottom: 4px;
}

.contact-method p {
    color: #5C4F42;
}

.contact-method a {
    color: #9C8B7A;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.contact-method a:hover {
    color: #D1D1D1;
    text-decoration: underline;
}

.practice-info {
    background: rgba(156, 139, 122, 0.08);
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(156, 139, 122, 0.2);
}

.practice-info h4 {
    font-size: var(--font-size-base);
    font-weight: 700;
    color: #3D3530;
    margin-bottom: var(--spacing-sm);
}

.practice-info p {
    color: #5C4F42;
    font-size: var(--font-size-sm);
    margin: var(--spacing-xs) 0;
}

/* ===========================
   Contact Form - Modernes elegantes Theme
   =========================== */
.contact-form-wrapper {
    background: linear-gradient(145deg, rgba(255, 254, 249, 0.98) 0%, rgba(248, 244, 239, 0.95) 100%);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(156, 139, 122, 0.12);
    box-shadow: 0 8px 40px rgba(61, 53, 48, 0.08);
    position: relative;
    overflow: hidden;
}

/* Brauner Balken entfernt - Clean Premium Design */

.contact-form h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #3D3530;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.contact-form h3 + p,
.contact-form-subtitle {
    font-size: 0.9375rem;
    color: #7A6B5A;
    margin-bottom: 1.75rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #3D3530;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1.125rem;
    border: 2px solid rgba(156, 139, 122, 0.2);
    border-radius: 12px;
    font-family: var(--font-family);
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    background: rgba(255, 254, 249, 0.9);
    color: #3D3530;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9C8B7A;
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: rgba(156, 139, 122, 0.4);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #9C8B7A;
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(156, 139, 122, 0.12);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-form .btn-primary {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
    background: linear-gradient(135deg, #9C8B7A 0%, #7A6B5A 100%);
    color: white;
    border: none;
    padding: 1rem 1.75rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 6px 20px rgba(156, 139, 122, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-form .btn-primary:hover {
    background: linear-gradient(135deg, #7A6B5A 0%, #5C4F42 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(156, 139, 122, 0.45);
}

/* ===========================
   Footer - Warmes Elegantes Theme
   =========================== */
.footer {
    background: linear-gradient(135deg, #3D3530 0%, #2A2522 100%);
    color: #DDD5CC;
    padding: 3rem 0 1.5rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C4B8A9' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    padding-right: 1rem;
}

.footer-logo {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #9C8B7A 0%, #7A6B5A 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFEF9;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(156, 139, 122, 0.3);
}

.footer-col h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #FFFEF9;
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.footer-col h4 svg {
    color: #C4B8A9;
    flex-shrink: 0;
}

.footer-tagline {
    color: #B8A898;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.footer-address {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: var(--spacing-sm);
    line-height: 1.7;
    color: #D1D1D1;
    font-size: 0.875rem;
}

.footer-address svg {
    flex-shrink: 0;
    color: #8B8589;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-links li {
    font-size: 0.875rem;
    color: #A8A29E;
}

.footer-links a {
    color: #D1D1D1;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #8B8589;
    transition: width 0.2s ease;
}

.footer-links a:hover {
    color: #8B8589;
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.8125rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-credit {
    color: #A8A29E;
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .footer {
        padding: 2.5rem 0 1.5rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
    }
    .footer-logo {
        margin: 0 auto 1rem;
    }
    .footer-brand-name {
        font-size: 1rem;
    }
    .footer-tagline {
        font-size: 0.8125rem;
    }
    .footer-col h4 {
        justify-content: center;
        font-size: 0.875rem;
        margin-bottom: 0.75rem;
    }
    .footer-col h4 svg {
        display: none;
    }
    .footer-address {
        justify-content: center;
        text-align: center;
        font-size: 0.8125rem;
    }
    .footer-address svg {
        display: none;
    }
    .footer-links {
        align-items: center;
        gap: 0.5rem;
    }
    .footer-links a {
        font-size: 0.8125rem;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        padding-top: 1.25rem;
    }
    .footer-bottom p {
        font-size: 0.75rem;
    }
    .footer-credit {
        font-size: 0.6875rem;
    }
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 1024px) {
    .services-grid,
    .hours-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid,
    .location-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .location-grid {
        grid-template-columns: 1fr;
    }
    
    .location-grid .map-container {
        order: -1;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-2xl: 2rem;
        --spacing-xl: 1.5rem;
    }
    
    .hero {
        min-height: 50vh;
        padding: 4rem 0 2rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-right-mobile {
        display: flex;
    }

    .mobile-hide {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    li.mobile-only {
        display: list-item !important;
    }

    .nav-right-mobile .mobile-portal-btn {
        padding: 0.5rem 0.75rem !important;
        border-radius: 8px !important;
        font-size: 0.8125rem !important;
        gap: 0.4rem !important;
        box-shadow: 0 2px 8px rgba(156, 139, 122, 0.25) !important;
    }
    
    .nav-emergency-item {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-emergency-item .emergency-btn {
        width: 100%;
        justify-content: center;
        padding: 1rem;
        font-size: 1rem;
    }
    
    /* ===== MOBILE NAVIGATION - Redesign ===== */
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: #FFFEF9;
        flex-direction: column;
        padding: 5rem 1.5rem 2rem;
        padding-top: calc(5rem + env(safe-area-inset-top));
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
        z-index: 1000;
        gap: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    
    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .nav-menu li {
        position: relative;
        border-bottom: 1px solid rgba(156, 139, 122, 0.12);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu .nav-link {
        display: flex;
        align-items: center;
        padding: 1.125rem 0.5rem;
        font-size: 1.0625rem;
        font-weight: 500;
        color: #3D3530;
        border-radius: 0;
        transition: all 0.2s ease;
        border: none;
        background: transparent;
        letter-spacing: -0.01em;
    }
    
    .nav-menu .nav-link:hover {
        color: #7A6B5A;
        padding-left: 1rem;
    }
    
    .nav-menu .nav-link.active {
        color: #7A6B5A;
        font-weight: 600;
        background: transparent;
    }
    
    /* Portal Buttons - Eigene Sektion */
    .nav-menu li:has(.btn-portal-nav) {
        border-bottom: none;
        margin-top: 0.5rem;
    }
    
    .nav-menu li:has(.btn-portal-nav):first-of-type {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(156, 139, 122, 0.15);
    }
    
    .nav-menu .btn-portal-nav {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
        font-weight: 600;
        width: 100%;
        border-radius: 12px;
        transition: all 0.3s ease;
    }
    
    .nav-menu .btn-patient-portal {
        background: linear-gradient(135deg, #9C8B7A 0%, #7A6B5A 100%);
        color: #FFFEF9;
        box-shadow: 0 4px 12px rgba(156, 139, 122, 0.25);
    }
    
    .nav-menu .btn-staff-portal {
        background: rgba(156, 139, 122, 0.1);
        color: #5C4F42;
        border: 1px solid rgba(156, 139, 122, 0.3);
    }
    
    .nav-menu .btn-portal-nav:hover {
        transform: translateY(-2px);
    }
    
    /* Notfall Button im Menü */
    .nav-menu .nav-emergency-item {
        margin-top: 1rem;
        border-bottom: none;
    }
    
    .nav-menu .nav-emergency-item .emergency-btn {
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
        border-radius: 12px;
        padding: 0.875rem 1.5rem;
    }
    
    .mobile-menu-toggle {
        z-index: 1001;
    }
    
    .mobile-menu-toggle.active span {
        background: #3D3530;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: var(--font-size-base);
    }
    
    .hero-buttons,
    .hero-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-erezept {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem 1.5rem;
    }
    
    .hero-stat-divider {
        width: 60%;
        height: 1px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .emergency-grid {
        grid-template-columns: 1fr;
    }
    
    .notice-content {
        flex-direction: column;
        text-align: center;
    }
    
    /* Mobile Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-brand {
        text-align: center;
    }
    
    .footer-links h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* ===========================
   Form Section (E-Rezept)
   =========================== */
.form-section {
    padding: 4rem var(--spacing-md);
    background: var(--white);
}

.form-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--gray-900);
    letter-spacing: 0;
}

.form-input {
    padding: 0.75rem 0.875rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-family: var(--font-family);
    font-size: 0.9375rem;
    color: var(--gray-900);
    transition: var(--transition);
    background: var(--white);
}

.form-input:focus {
    outline: none;
    border-color: var(--gray-800);
    box-shadow: 0 0 0 3px rgba(33, 33, 33, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
    font-family: var(--font-family);
}

.form-checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.75rem;
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--gray-900);
}

.checkbox-label {
    font-size: 0.9375rem;
    color: var(--gray-700);
    cursor: pointer;
    line-height: 1.5;
}

.checkbox-label a {
    color: var(--gray-900);
    text-decoration: underline;
}

.checkbox-label a:hover {
    color: var(--gray-700);
}

.btn-submit {
    padding: 0.875rem 1.5rem;
    background: var(--gray-900);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-submit:hover {
    background: var(--gray-800);
}

.form-note {
    font-size: 0.8125rem;
    color: var(--gray-600);
    margin-top: 0.5rem;
}

.form-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
}

.info-icon {
    width: 48px;
    height: 48px;
    background: var(--white);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.info-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.info-card p {
    font-size: 0.9375rem;
    color: var(--gray-700);
    line-height: 1.6;
}

.info-card a {
    color: var(--gray-900);
    text-decoration: none;
}

.info-card a:hover {
    text-decoration: underline;
}

/* Notification styles */
.notification {
    position: fixed;
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: min(520px, calc(100vw - 2rem));
    padding: 10px 14px 10px 10px;
    border-radius: calc(var(--radius) + 6px);
    font-weight: 650;
    text-align: left;
    background: var(--glass-bg-strong, rgba(255,255,255,0.9));
    border: 1px solid var(--glass-border, rgba(0,0,0,0.08));
    color: var(--taupe-dark, var(--gray-900));
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 20px 50px -12px rgba(0,0,0,0.18);
    pointer-events: none;
    opacity: 1;
    animation: notifPopIn 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Badge/Markup (optional – wenn von showNotification genutzt) */
.notification-badge {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.35);
    border: 1px solid var(--glass-border, rgba(0,0,0,0.08));
    color: var(--notif-accent, var(--primary));
    flex-shrink: 0;
}

.notification-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.notification-text {
    display: block;
    min-width: 0;
    line-height: 1.25;
}

/* Typen (unterstützt beide Varianten: .notification-success und .notification.success) */
.notification-success,
.notification.success { --notif-accent: var(--success); }

.notification-error,
.notification.error { --notif-accent: var(--danger); }

.notification-info,
.notification.info { --notif-accent: var(--info); }

.notification-warning,
.notification.warning { --notif-accent: var(--warning); }

@keyframes notifPopIn {
    from { transform: translate(-50%, -50%) scale(0.96); opacity: 0; }
    to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

@keyframes notifPopOut {
    from { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    to { transform: translate(-50%, -50%) scale(0.98); opacity: 0; }
}

/* Responsive styles for form section */
@media (max-width: 768px) {
    .form-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-section {
        padding: 2rem var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .nav-brand span {
        display: none;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: var(--font-size-base);
    }
}

/* ===========================
   Login Section
   =========================== */
.login-section {
    min-height: calc(100vh - 56px);
    display: flex;
    align-items: center;
    padding: 4rem var(--spacing-md);
    background: var(--gray-50);
}

.login-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: start;
}

.login-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-icon {
    width: 80px;
    height: 80px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--gray-900);
}

.login-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.login-header p {
    font-size: 0.9375rem;
    color: var(--gray-600);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.password-input-wrapper {
    position: relative;
}

.password-input-wrapper .form-input {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: var(--gray-900);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--gray-900);
    cursor: pointer;
}

.forgot-password {
    color: var(--gray-600);
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-password:hover {
    color: var(--gray-900);
    text-decoration: underline;
}

.btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--gray-900);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 0.5rem;
}

.btn-login:hover {
    background: var(--gray-800);
    transform: translateY(-1px);
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
    font-size: 0.9375rem;
    color: var(--gray-600);
}

.login-footer a {
    color: var(--gray-900);
    font-weight: 500;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

.login-info {
    padding: 2rem;
}

.login-info h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.login-info > p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: var(--gray-700);
}

.info-list li svg {
    color: var(--gray-900);
    flex-shrink: 0;
}

.security-note {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--gray-100);
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--gray-700);
}

.security-note svg {
    flex-shrink: 0;
    color: var(--gray-900);
}

.notification-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* ===========================
   Scroll-Reveal Animationen
   =========================== */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Spezielle Animationen für Cards */
.service-card.scroll-animate,
.hours-card.scroll-animate,
.emergency-card.scroll-animate {
    transform: translateY(40px) scale(0.98);
}

.service-card.scroll-animate-visible,
.hours-card.scroll-animate-visible,
.emergency-card.scroll-animate-visible {
    transform: translateY(0) scale(1);
}

/* Stagger-Effekt für Grids */
.benefit-card:nth-child(1) { transition-delay: 0s; }
.benefit-card:nth-child(2) { transition-delay: 0.1s; }
.benefit-card:nth-child(3) { transition-delay: 0.2s; }

.registration-feature:nth-child(1) { transition-delay: 0s; }
.registration-feature:nth-child(2) { transition-delay: 0.05s; }
.registration-feature:nth-child(3) { transition-delay: 0.1s; }

.security-badge:nth-child(1) { transition-delay: 0s; }
.security-badge:nth-child(2) { transition-delay: 0.05s; }
.security-badge:nth-child(3) { transition-delay: 0.1s; }
.security-badge:nth-child(4) { transition-delay: 0.15s; }
.security-badge:nth-child(5) { transition-delay: 0.2s; }

.emergency-card:nth-child(1) { transition-delay: 0s; }
.emergency-card:nth-child(2) { transition-delay: 0.1s; }
.emergency-card:nth-child(3) { transition-delay: 0.2s; }
.emergency-card:nth-child(4) { transition-delay: 0.3s; }

/* Reduced Motion - Respektiert Benutzereinstellungen */
@media (prefers-reduced-motion: reduce) {
    .scroll-animate {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (max-width: 768px) {
    .login-wrapper {
        grid-template-columns: 1fr;
    }

    .login-section {
        padding: 2rem var(--spacing-md);
    }

    .login-card {
        padding: 1.5rem;
    }

    .login-info {
        padding: 1.5rem;
        background: var(--white);
        border-radius: var(--radius-lg);
        border: 1px solid var(--gray-200);
    }
}

/* ===========================
   NEU Badge & Login-Hint
   =========================== */
.badge-new {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 0.25rem 0.625rem;
    border-radius: 50px;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-left: 0.5rem;
    animation: pulse-badge 2s ease-in-out infinite;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.login-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.6875rem;
    font-weight: 500;
    margin-left: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ===========================
   Features List (Patientenportal)
   =========================== */
.features-list-wrapper {
    position: relative;
    overflow: visible;
    border-radius: 16px;
    margin: 0 -0.5rem;
    padding: 0 0.5rem;
}

.features-list-wrapper.expanded {
    max-height: none;
}

.features-list-container {
    background: linear-gradient(145deg, rgba(156, 139, 122, 0.08) 0%, rgba(156, 139, 122, 0.04) 100%);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    border: 1px solid rgba(156, 139, 122, 0.2);
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 254, 249, 0.05);
}

.features-fade-overlay {
    display: none;
}

.features-expand-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(107, 114, 128, 0.15);
    border: 2px solid rgba(107, 114, 128, 0.4);
    color: #8B8589;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    margin: 1.25rem auto 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
}

.features-expand-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #8B8589 0%, #6B6766 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.features-expand-btn:hover {
    background: rgba(107, 114, 128, 0.2);
    border-color: #8B8589;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 114, 128, 0.25);
}

.features-expand-btn:hover::before {
    opacity: 1;
}

.features-expand-btn span,
.features-expand-btn svg {
    position: relative;
    z-index: 1;
}

.features-expand-btn:hover {
    color: white;
}

.features-expand-btn svg {
    transition: transform 0.3s ease;
}

.features-expand-btn.expanded svg {
    transform: rotate(180deg);
}

.features-expand-btn .collapse-text {
    display: none;
}

.features-expand-btn.expanded .expand-text {
    display: none;
}

.features-expand-btn.expanded .collapse-text {
    display: inline;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.75rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #3D3530;
    font-size: 0.9375rem;
    padding: 0.5rem 0;
}

.features-list li::before {
    content: '';
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #9C8B7A 0%, #7A6B5A 100%);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(156, 139, 122, 0.5);
}

@media (max-width: 768px) {
    .features-list-wrapper {
        margin: 0;
        padding: 0;
    }
    
    .features-list-container {
        padding: 1rem 1.25rem;
    }
    
    .features-list {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .features-list li {
        font-size: 0.875rem;
        padding: 0.625rem 0;
    }
    
    .features-list li span {
        line-height: 1.4;
    }
}

/* ===========================
   Location Grid Modern
   =========================== */
.location-grid-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.location-map-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 320px;
}

.location-map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 320px;
    border: none;
    filter: grayscale(20%) brightness(0.9);
}

.location-map-overlay-btn {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #8B8589 0%, #6B6766 100%);
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(107, 114, 128, 0.4);
    transition: all 0.3s ease;
}

.location-map-overlay-btn:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 114, 128, 0.5);
}

.location-info-modern {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.location-address-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.location-address-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #8B8589 0%, #6B6766 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.location-address-text h3 {
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.location-address-text p {
    color: white;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.location-address-card a {
    color: #8B8589;
    text-decoration: none;
    transition: color 0.3s ease;
}

.location-address-card a:hover {
    color: #D1D1D1;
}

.location-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.location-feature {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.location-feature:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(107, 114, 128, 0.3);
}

.location-feature-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.location-feature-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.2) 0%, rgba(107, 114, 128, 0.1) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8B8589;
    flex-shrink: 0;
}

.location-feature strong {
    display: block;
    color: white;
    font-size: 0.9375rem;
    font-weight: 600;
}

.location-feature span {
    color: #e2e8f0;
    font-size: 0.8125rem;
}

.location-feature-text {
    color: white;
    font-size: 0.8125rem;
    font-weight: 500;
}

/* Location Distances Compact */
.location-distances-compact {
    max-width: 1100px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.location-distances-compact .location-distances-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    padding: 1rem;
    color: #D1D1D1;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.location-distances-compact .location-distances-toggle:hover {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.03);
}

.location-distances-compact .location-distances-toggle .accordion-arrow {
    transition: transform 0.3s ease;
}

.location-distances-compact .location-distances-toggle.active .accordion-arrow {
    transform: rotate(180deg);
}

.location-distances-compact .location-distances-content {
    display: none;
    padding: 0 1.5rem 1.5rem;
}

.location-distances-compact .location-distances-content.active {
    display: block;
}

.distance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.5rem;
}

.distance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    color: #D1D1D1;
    font-size: 0.8125rem;
}

.distance-item span:first-child {
    color: #e2e8f0;
    font-weight: 500;
}

@media (max-width: 900px) {
    .location-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .location-map-container {
        min-height: 250px;
        position: relative;
    }
    
    .location-map-container iframe {
        min-height: 250px;
    }
    
    .location-map-overlay-btn {
        left: 50% !important;
        transform: translateX(-50%) !important;
        right: auto !important;
    }
}

@media (max-width: 600px) {
    .location-features-grid {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   Additional Mobile Optimizations
   =========================== */
@media (max-width: 480px) {
    body {
        padding-top: 52px;
    }
    
    .navbar .container {
        padding: 0.75rem 1rem;
    }
    
    .nav-brand span {
        font-size: 0.875rem;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
    }
    
    .hero {
        min-height: 45vh;
        padding: 3rem 0 1.5rem;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9375rem;
        margin-bottom: 1.5rem;
    }
    
    .btn-erezept {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.875rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .benefit-card {
        padding: 1.25rem;
    }
    
    .benefit-icon {
        width: 44px;
        height: 44px;
    }
    
    .benefit-content h4 {
        font-size: 0.9375rem;
    }
    
    .benefit-content p {
        font-size: 0.8125rem;
    }
    
    .hours-card {
        padding: 1.25rem;
    }
    
    .hours-icon {
        width: 44px;
        height: 44px;
    }
    
    .hours-header h3 {
        font-size: 1.0625rem;
    }
    
    .service-card {
        padding: 1.25rem;
    }
    
    .service-icon {
        width: 44px;
        height: 44px;
    }
    
    .service-card h3 {
        font-size: 1rem;
    }
    
    .security-badge {
        padding: 0.75rem 1rem;
    }
    
    .badge-icon {
        width: 36px;
        height: 36px;
    }
    
    .footer {
        padding: 2.5rem 0 1.5rem;
    }
    
    .footer-brand-name {
        font-size: 1rem;
    }
}

/* ===== Mobile Features Expand/Collapse - wird per JavaScript gesteuert ===== */
/* Styles sind jetzt inline in index.html definiert */
