/* =====================================================
   Modern Theme CSS - Kinderarztpraxis Holtorff
   ===================================================== */

/* CSS Custom Properties (Variables) for Theming */
:root {
    /* Primary Colors */
    --primary-color: #0c374b;
    --primary-light: #1a5a7a;
    --primary-dark: #082533;
    
    /* Accent Colors */
    --accent-color: #4eb8dd;
    --accent-light: #7ccce8;
    --accent-dark: #2a9dc5;
    
    /* Alert/Urgent Colors */
    --alert-color: #c41818;
    --alert-light: #e63939;
    --alert-dark: #911818;
    
    /* Background Colors */
    --bg-primary: #f8fafc;
    --bg-secondary: #e8f4f8;
    --bg-header: linear-gradient(135deg, #c4e6f1 0%, #a8d8ea 100%);
    --bg-card: #ffffff;
    --bg-footer: #f1f5f9;
    
    /* Text Colors */
    --text-primary: #0c374b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --text-inverse: #ffffff;
    
    /* Border Colors */
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    
    /* Shadow */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Spacing */
    --section-padding: 5rem;
    --container-padding: 1.5rem;
    
    /* Typography */
    --font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.9rem;
    --font-size-sm: 1rem;
    --font-size-base: 1.15rem;
    --font-size-lg: 1.3rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 1.75rem;
    --font-size-3xl: 2.1rem;
    --font-size-4xl: 2.6rem;
    
    /* Navbar height */
    --navbar-height: 70px;
}

/* Dark Mode Variables */
[data-bs-theme="dark"] {
    --primary-color: #7ccce8;
    --primary-light: #a8d8ea;
    --primary-dark: #4eb8dd;
    
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-header: linear-gradient(135deg, #1e3a4f 0%, #0f2333 100%);
    --bg-card: #1e293b;
    --bg-footer: #0f172a;
    
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-light: #64748b;
    --text-inverse: #0f172a;
    
    --border-color: #334155;
    --border-light: #1e293b;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
}

/* =====================================================
   Base Styles
   ===================================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 18px;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    transition: background-color var(--transition-normal), color var(--transition-normal);
    overflow-x: hidden;
}

/* =====================================================
   Typography
   ===================================================== */

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(1.75rem, 4vw, var(--font-size-4xl)); }
h2 { font-size: clamp(1.5rem, 3vw, var(--font-size-3xl)); }
h3 { font-size: clamp(1.25rem, 2.5vw, var(--font-size-2xl)); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

/* =====================================================
   Navigation
   ===================================================== */

.modern-navbar {
    background: var(--bg-header);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

[data-bs-theme="dark"] .modern-navbar {
    background: linear-gradient(135deg, rgba(30, 58, 79, 0.95) 0%, rgba(15, 35, 51, 0.95) 100%);
}

.modern-navbar .navbar-brand {
    font-weight: 700;
    color: var(--text-primary);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    transition: color var(--transition-fast);
}

.modern-navbar .navbar-brand:hover {
    color: var(--primary-color);
}

.modern-navbar .nav-link {
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
}

.modern-navbar .nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(78, 184, 221, 0.1);
}

.modern-navbar .nav-link.active {
    color: var(--accent-color);
    background-color: rgba(78, 184, 221, 0.15);
}

.modern-navbar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--accent-color);
    border-radius: var(--radius-full);
}

.modern-navbar .dropdown-menu {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.modern-navbar .dropdown-item {
    border-radius: var(--radius-md);
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.modern-navbar .dropdown-item:hover {
    background-color: var(--bg-secondary);
    color: var(--accent-color);
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: all var(--transition-fast);
    color: var(--text-primary);
}

.theme-toggle:hover {
    background-color: var(--bg-secondary);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

/* Mobile Menu Toggle */
.navbar-toggler {
    border: 2px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    padding: 0.5rem !important;
    transition: all var(--transition-fast);
}

.navbar-toggler:hover {
    border-color: var(--accent-color) !important;
    background-color: var(--bg-secondary);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(78, 184, 221, 0.25);
}

/* =====================================================
   Hero Section
   ===================================================== */

.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-header);
}

.hero-image-container {
    position: relative;
    width: 100%;
    max-height: 45vh;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    max-height: 45vh;
    transition: transform var(--transition-slow);
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.hero-title-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    width: 100%;
    max-width: 800px;
}

.hero-title {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.5rem 3rem;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.5);
    text-align: center;
    width: auto;
}

[data-bs-theme="dark"] .hero-title {
    background: rgba(30, 41, 59, 0.92);
    border-color: var(--border-color);
}

.hero-title h1 {
    color: var(--primary-color);
    margin-bottom: 0;
    font-size: clamp(1.1rem, 2.5vw, 1.75rem);
    white-space: nowrap;
}

@media (max-width: 600px) {
    .hero-title h1 {
        white-space: normal;
    }
}

/* =====================================================
   Feature Cards Section
   ===================================================== */

.features-section {
    padding: var(--section-padding) var(--container-padding);
    background: var(--bg-primary);
}

.feature-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    height: 100%;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-light));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all var(--transition-normal);
}

.feature-icon i,
.feature-icon svg {
    font-size: 2rem;
    color: var(--primary-color);
    transition: all var(--transition-normal);
}

.feature-card:hover .feature-icon {
    background: var(--accent-color);
    transform: scale(1.1);
}

.feature-card:hover .feature-icon i,
.feature-card:hover .feature-icon svg {
    color: var(--text-inverse);
}

.feature-card h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
}

.schedule-table tr {
    border-bottom: 1px solid var(--border-light);
}

.schedule-table tr:last-child {
    border-bottom: none;
}

.schedule-table td {
    padding: 0.6rem 0;
    color: var(--text-secondary);
    font-size: var(--font-size-base);
}

.schedule-table td:first-child {
    font-weight: 600;
    color: var(--text-primary);
}

.schedule-table td:last-child {
    text-align: right;
}

.schedule-note {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    font-style: italic;
    margin-top: 0.25rem;
    display: block;
}

/* Acute Hours Highlight */
.acute-hours {
    color: var(--alert-color) !important;
}

.acute-badge {
    display: inline-block;
    background: rgba(196, 24, 24, 0.1);
    color: var(--alert-color);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Contact Info */
.contact-info {
    text-align: center;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: var(--text-secondary);
    font-size: var(--font-size-base);
}

.contact-item i {
    color: var(--accent-color);
    font-size: 1.4rem;
}

.contact-item a {
    color: var(--text-primary);
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--accent-color);
}

/* Emergency Info Card */
.emergency-card {
    background: linear-gradient(135deg, rgba(196, 24, 24, 0.05) 0%, rgba(196, 24, 24, 0.1) 100%);
    border: 1px solid rgba(196, 24, 24, 0.2);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-top: 1.5rem;
}

[data-bs-theme="dark"] .emergency-card {
    background: linear-gradient(135deg, rgba(196, 24, 24, 0.1) 0%, rgba(196, 24, 24, 0.15) 100%);
}

.emergency-card h4 {
    color: var(--alert-color);
    margin-bottom: 1rem;
    font-size: var(--font-size-xl);
}

.emergency-card p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: var(--font-size-base);
}

.emergency-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--alert-color);
    font-weight: 600;
    margin-top: 0.5rem;
}

.emergency-link:hover {
    color: var(--alert-dark);
}

/* =====================================================
   Current Information Section (Dynamic Content)
   ===================================================== */

.current-info-section {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

.current-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 992px) {
    .current-info-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.info-image-container {
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    align-self: start;
    position: sticky;
    top: 4.5rem;
}

.info-image {
    width: 100%;
    height: auto;
    display: block;
}

.info-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.info-card:last-child {
    margin-bottom: 0;
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.info-card-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-card-icon i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.info-card-title {
    margin: 0;
    color: var(--text-primary);
}

/* Alert Banner */
.alert-banner {
    background: linear-gradient(135deg, rgba(196, 24, 24, 0.1) 0%, rgba(196, 24, 24, 0.05) 100%);
    border: 1px solid rgba(196, 24, 24, 0.3);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.alert-banner-icon {
    width: 44px;
    height: 44px;
    background: var(--alert-color);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.alert-banner-icon i {
    color: white;
    font-size: 1.4rem;
}

.alert-banner-text {
    color: var(--alert-color);
    font-weight: 600;
    margin: 0;
    font-size: var(--font-size-base);
}

/* Schedule Changes */
.schedule-change {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--accent-color);
}

.schedule-change:last-child {
    margin-bottom: 0;
}

.schedule-change-date {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

/* Vertretung Card */
.vertretung-card {
    background: var(--bg-card);
    border: 2px solid var(--alert-color);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
}

.vertretung-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--alert-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.vertretung-header i {
    font-size: 1.4rem;
}

.vertretung-content {
    padding-left: 0.5rem;
}

.vertretung-content p {
    margin-bottom: 0.75rem;
}

.vertretung-content p:last-child {
    margin-bottom: 0;
}

.vertretung-hours {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.vertretung-hours i {
    color: var(--accent-color);
}

/* Address Block - German Format */
.address-block {
    line-height: 1.6;
}

.vertretung-note {
    text-align: center;
    font-style: italic;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 0.75rem;
    margin-bottom: 0;
}

/* Quick Action Bar */
.quick-action-bar {
    position: sticky;
    top: 56px;
    z-index: 100;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
    padding: 0.75rem 1rem;
    box-shadow: var(--shadow-md);
}

.quick-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    width: 100%;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.quick-action-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    text-decoration: none;
    color: #ffffff !important;
}

.quick-action-btn i:first-child {
    font-size: 1.4rem;
    animation: pulse 2s infinite;
}

.quick-action-btn i:last-child {
    font-size: 1rem;
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* Mobile Tab Navigation */
.mobile-tab-nav {
    display: flex;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 0.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    gap: 0.5rem;
}

.mobile-tab-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.85rem 0.5rem;
    border: none;
    background: transparent;
    border-radius: var(--radius-lg);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.mobile-tab-btn i {
    font-size: 1.5rem;
}

.mobile-tab-btn span {
    font-size: 0.85rem;
}

.mobile-tab-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.mobile-tab-btn.active {
    background: var(--accent-color);
    color: #ffffff;
    box-shadow: var(--shadow-sm);
}

/* Tab Content Cards - Mobile */
@media (max-width: 767px) {
    .tab-content-card {
        display: none;
    }
    
    .tab-content-card.active {
        display: block;
    }
}

/* Current Changes Link Button */
.current-changes-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
    color: #ffffff !important;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    margin-top: 1rem;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.current-changes-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: #ffffff !important;
    text-decoration: none;
}

.current-changes-link i {
    font-size: 1.2rem;
    color: #ffffff !important;
}

.schedule-change-info {
    color: var(--text-secondary);
    margin: 0;
}

/* U-Untersuchungen Card */
.u-exam-card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
}

.u-exam-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.u-exam-card p {
    margin: 0;
    color: var(--text-secondary);
}

/* =====================================================
   Location Section
   ===================================================== */

.location-section {
    padding: var(--section-padding) 0;
    background: var(--bg-primary);
}

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

@media (min-width: 768px) {
    .location-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.location-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all var(--transition-normal);
}

.location-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.location-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.location-icon i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.location-card h3 {
    margin-bottom: 1rem;
}

.location-card p {
    margin-bottom: 0;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-color);
    color: #ffffff !important;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    margin-top: 1rem;
    transition: all var(--transition-fast);
}

.map-link:hover {
    background: var(--accent-dark);
    color: #ffffff !important;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.map-link i {
    color: #ffffff !important;
}

/* =====================================================
   Team Section
   ===================================================== */

.team-section {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

.team-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

@media (min-width: 576px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.team-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.team-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.team-avatar i {
    font-size: 2.5rem;
    color: white;
}

.team-card h5 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: var(--font-size-base);
}

.team-card p {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    margin: 0;
}

/* =====================================================
   Footer
   ===================================================== */

.modern-footer {
    background: var(--bg-footer);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    margin: 0;
}

/* =====================================================
   Page Content (Subpages)
   ===================================================== */

.page-header {
    background: var(--bg-header);
    padding-top: 0;
}

.page-header-image {
    width: 100%;
    height: auto;
    display: block;
}

.page-content {
    padding: var(--section-padding) 0;
    background: var(--bg-primary);
}

.content-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.content-card h2 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-light);
}

.content-card h4 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-card h5 {
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.content-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.content-card a {
    color: var(--accent-color);
    font-weight: 500;
}

.content-card a:hover {
    color: var(--accent-dark);
}

/* =====================================================
   Vaccination Calendar Page
   ===================================================== */

.vaccine-info {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.vaccine-info p {
    margin-bottom: 1rem;
}

.vaccine-info p:last-child {
    margin-bottom: 0;
}

.vaccine-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-color);
    color: #ffffff !important;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.vaccine-link:hover {
    background: var(--accent-dark);
    color: #ffffff !important;
    text-decoration: none;
}

.vaccine-link i {
    color: #ffffff !important;
}

.vaccine-calendar-container {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.vaccine-calendar-container img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
}

.vaccine-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-top: 1rem;
}

/* =====================================================
   Utility Classes
   ===================================================== */

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

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.text-center { text-align: center; }
.text-accent { color: var(--accent-color); }
.text-alert { color: var(--alert-color); }
.text-muted { color: var(--text-muted); }

/* Button text fix - ensure white text on colored buttons in all modes */
.btn-accent,
.vaccine-link,
.map-link,
a.vaccine-link,
a.map-link {
    color: #ffffff !important;
}

.btn-accent:hover,
.vaccine-link:hover,
.map-link:hover,
a.vaccine-link:hover,
a.map-link:hover {
    color: #ffffff !important;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* =====================================================
   Animations
   ===================================================== */

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.animate-fade-in {
    animation: fadeIn var(--transition-slow) ease forwards;
}

.animate-fade-in-up {
    animation: fadeInUp var(--transition-slow) ease forwards;
}

/* Staggered animations */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* =====================================================
   Responsive Adjustments
   ===================================================== */

/* Large tablet (992px - 1199px) */
@media (max-width: 1199px) {
    html {
        font-size: 18px;
    }
}

/* Tablet (800px - 991px) */
@media (max-width: 991px) {
    html {
        font-size: 18px;
    }
    
    :root {
        --section-padding: 3rem;
    }
    
    .hero-title {
        padding: 1rem 2rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
}

/* Small tablet / large mobile (< 800px) - KEY BREAKPOINT */
@media (max-width: 799px) {
    html {
        font-size: 18px;
    }
    
    :root {
        --section-padding: 2.5rem;
        --container-padding: 1.25rem;
    }
    
    body {
        line-height: 1.75;
    }
    
    p, td, span, li, a {
        font-size: 1.1rem;
    }
    
    .hero-image-container {
        max-height: 35vh;
    }
    
    .hero-image {
        max-height: 35vh;
    }
    
    .hero-title-container {
        padding: 1rem;
    }
    
    .hero-title {
        padding: 1rem 1.5rem;
    }
    
    .hero-title h1 {
        font-size: 1.15rem;
    }
    
    .feature-card {
        padding: 1.5rem;
        text-align: center;
    }
    
    .feature-card h3 {
        font-size: 1.4rem;
    }
    
    .info-card {
        padding: 1.5rem;
    }
    
    /* Schedule table */
    .schedule-table td {
        font-size: 1.15rem;
        padding: 0.7rem 0;
    }
    
    .schedule-table td:first-child {
        font-weight: 600;
    }
    
    .schedule-note {
        font-size: 1rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .team-card {
        padding: 1.25rem;
    }
    
    .team-card h5 {
        font-size: 1.15rem;
    }
    
    .team-card p {
        font-size: 1.05rem;
    }
    
    .team-avatar {
        width: 70px;
        height: 70px;
    }
    
    .team-avatar i {
        font-size: 2.25rem;
    }
    
    .content-card {
        padding: 1.5rem;
    }
    
    .content-card p {
        font-size: 1.15rem;
    }
    
    .content-card h2 {
        font-size: 1.6rem;
    }
    
    .content-card h4 {
        font-size: 1.3rem;
    }
    
    /* Contact items */
    .contact-item {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        font-size: 1.2rem;
    }
    
    .contact-item i {
        font-size: 1.6rem;
    }
    
    /* Emergency card */
    .emergency-card h4 {
        font-size: 1.35rem;
    }
    
    .emergency-card p {
        font-size: 1.15rem;
    }
    
    .emergency-link {
        font-size: 1.15rem;
    }
    
    /* Info cards */
    .info-card-title {
        font-size: 1.35rem;
    }
    
    .alert-banner-text {
        font-size: 1.15rem;
    }
    
    .schedule-change-date {
        font-size: 1.2rem;
    }
    
    .schedule-change-info {
        font-size: 1.15rem;
    }
    
    /* Buttons */
    .map-link,
    .vaccine-link {
        font-size: 1.1rem;
        padding: 0.9rem 1.75rem;
    }
    
    /* Location card */
    .location-card h3 {
        font-size: 1.35rem;
    }
    
    .location-card p {
        font-size: 1.15rem;
    }
    
    /* Vaccine info */
    .vaccine-info p {
        font-size: 1.15rem;
    }
    
    /* Acute badge */
    .acute-badge {
        font-size: 1.05rem;
    }
    
    /* Footer */
    .footer-link {
        font-size: 1.1rem;
    }
    
    .footer-copyright {
        font-size: 1rem;
    }
    
    /* Vertretung card */
    .vertretung-card {
        padding: 1.25rem;
    }
    
    .vertretung-header {
        font-size: 1.05rem;
    }
    
    .vertretung-hours {
        font-size: 1.05rem;
    }
    
    /* Quick action bar */
    .quick-action-btn {
        font-size: 1.05rem;
    }
    
    /* Current changes link */
    .current-changes-link {
        font-size: 1rem;
        padding: 0.8rem 1.25rem;
    }
}

/* Mobile portrait (< 575px) */
@media (max-width: 575px) {
    html {
        font-size: 17px;
    }
    
    :root {
        --container-padding: 1rem;
    }
    
    body {
        line-height: 1.8;
    }
    
    p, td, span, li, a {
        font-size: 1.1rem;
    }
    
    .hero-title h1 {
        font-size: 1.05rem;
        line-height: 1.5;
    }
    
    .feature-icon {
        width: 65px;
        height: 65px;
    }
    
    .feature-icon i {
        font-size: 1.85rem;
    }
    
    .feature-card h3 {
        font-size: 1.3rem;
    }
    
    /* Stack schedule table on very small screens */
    .schedule-table tr {
        display: flex;
        flex-direction: column;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-light);
    }
    
    .schedule-table tr:last-child {
        border-bottom: none;
    }
    
    .schedule-table td {
        display: block;
        width: 100% !important;
        text-align: center !important;
        padding: 0.2rem 0;
        font-size: 1.15rem;
    }
    
    .schedule-table td:first-child {
        font-weight: 700;
        color: var(--text-primary);
        padding-top: 0.5rem;
        font-size: 1.2rem;
    }
    
    .schedule-table td:last-child {
        padding-bottom: 0.5rem;
    }
    
    .schedule-note {
        font-size: 1rem;
    }
    
    .contact-item {
        flex-direction: column;
        gap: 0.35rem;
        font-size: 1.2rem;
        padding: 1rem 0;
    }
    
    .contact-item i {
        font-size: 1.7rem;
    }
    
    .contact-item span {
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .footer-link {
        font-size: 1.1rem;
    }
    
    .footer-copyright {
        font-size: 1rem;
    }
    
    /* Acute badge centered */
    .acute-badge {
        display: block;
        text-align: center;
        margin: 0 auto 1rem auto;
        width: fit-content;
        font-size: 1.05rem;
    }
    
    /* Emergency card */
    .emergency-card {
        text-align: center;
        padding: 1.5rem;
    }
    
    .emergency-card h4 {
        font-size: 1.3rem;
    }
    
    .emergency-card p {
        font-size: 1.15rem;
    }
    
    .emergency-link {
        font-size: 1.15rem;
    }
    
    /* Content pages */
    .content-card h2 {
        font-size: 1.5rem;
    }
    
    .content-card h4 {
        font-size: 1.25rem;
    }
    
    .content-card p {
        font-size: 1.15rem;
    }
    
    /* Vaccination page */
    .vaccine-info p {
        font-size: 1.15rem;
    }
    
    .vaccine-link {
        font-size: 1.1rem;
        padding: 0.9rem 1.5rem;
    }
    
    /* Map link */
    .map-link {
        font-size: 1.1rem;
        padding: 0.9rem 1.5rem;
    }
    
    /* Team section */
    .team-card h5 {
        font-size: 1.1rem;
    }
    
    .team-card p {
        font-size: 1rem;
    }
    
    /* Location card */
    .location-card h3 {
        font-size: 1.3rem;
    }
    
    .location-card p {
        font-size: 1.15rem;
    }
    
    /* Info cards */
    .info-card-title {
        font-size: 1.3rem;
    }
    
    .alert-banner-text {
        font-size: 1.1rem;
    }
    
    .schedule-change-date {
        font-size: 1.15rem;
    }
    
    .schedule-change-info {
        font-size: 1.1rem;
    }
    
    /* Vertretung card */
    .vertretung-card {
        padding: 1.25rem;
    }
    
    .vertretung-header {
        font-size: 1rem;
        flex-wrap: wrap;
    }
    
    .vertretung-hours {
        font-size: 1.05rem;
    }
    
    /* Quick action bar */
    .quick-action-bar {
        top: 52px;
    }
    
    .quick-action-btn {
        font-size: 1rem;
        gap: 0.5rem;
    }
    
    .quick-action-btn i:first-child {
        font-size: 1.25rem;
    }
    
    /* Mobile tab nav */
    .mobile-tab-nav {
        padding: 0.35rem;
        gap: 0.25rem;
    }
    
    .mobile-tab-btn {
        padding: 0.7rem 0.35rem;
    }
    
    .mobile-tab-btn i {
        font-size: 1.35rem;
    }
    
    .mobile-tab-btn span {
        font-size: 0.8rem;
    }
    
    /* Current changes link */
    .current-changes-link {
        font-size: 0.95rem;
        padding: 0.75rem 1rem;
    }
    
    /* Alert banner mobile */
    .alert-banner {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .alert-banner-icon {
        width: 40px;
        height: 40px;
    }
    
    .alert-banner-icon i {
        font-size: 1.2rem;
    }
}

/* =====================================================
   Print Styles
   ===================================================== */

@media print {
    .modern-navbar,
    .theme-toggle,
    .map-link {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .feature-card,
    .info-card,
    .content-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
