/* ==============================================================================
   DESIGN SYSTEM & THEME TOKENS (Arztpraxis Thomas Schroeder)
   ============================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Harmonische HSL-Farbwelt */
    --primary: hsl(199, 79%, 44%);        /* Medizinisches Blau (#1891ca) */
    --primary-hover: hsl(199, 79%, 36%);
    --primary-light: hsl(199, 79%, 95%);
    --secondary: #e4f4fb;                /* Helles Medizinblau */
    --secondary-hover: #d2ecf8;
    --accent: hsl(199, 85%, 26%);         /* Deep Medical Blue (#0b577d) */
    --bg-clinical: hsl(199, 30%, 98%);    /* Klinische Sauberkeit (#fafcfd) */
    --card-bg: #ffffff;
    --text-dark: hsl(200, 20%, 20%);      /* Dunkles Anthrazit */
    --text-muted: hsl(200, 10%, 45%);
    --border-color: hsl(199, 25%, 88%);
    
    /* Status-Farben */
    --alert-red: hsl(354, 70%, 54%);
    --alert-red-light: hsl(354, 70%, 95%);
    --warning-orange: hsl(35, 90%, 50%);
    --warning-orange-light: hsl(35, 90%, 95%);
    --success-green: hsl(145, 63%, 42%);
    --success-green-light: hsl(145, 63%, 95%);
    
    /* Layout-Sizing & Radien */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --shadow-sm: 0 2px 8px rgba(24, 145, 202, 0.05);
    --shadow-md: 0 8px 30px rgba(24, 145, 202, 0.08);
    --shadow-lg: 0 16px 48px rgba(24, 145, 202, 0.12);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --font-primary: 'Outfit', sans-serif;
    
    /* Container */
    --max-width: 1200px;
}

/* ==============================================================================
   BASIC RESET & COMMON LAYOUT
   ============================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-clinical);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--accent);
    line-height: 1.25;
}

p {
    font-weight: 400;
    color: var(--text-muted);
}

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

a:hover {
    color: var(--primary-hover);
}

button {
    font-family: var(--font-primary);
    cursor: pointer;
    border: none;
    outline: none;
    transition: var(--transition);
}

/* Common UI-Elemente */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 12px;
    position: relative;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 48px auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-weight: 500;
    border-radius: var(--radius-md);
    gap: 8px;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(24, 145, 202, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(24, 145, 202, 0.4);
    color: white;
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--primary);
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--primary);
    background-color: transparent;
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* ==============================================================================
   HEADER & NAVIGATION
   ============================================================================== */
.main-header {
    background-color: var(--primary);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--primary-hover);
    box-shadow: var(--shadow-sm);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    color: white;
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: white;
}

.logo-text span {
    font-size: 0.85rem;
    color: var(--secondary);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.header-widgets {
    display: flex;
    align-items: center;
    gap: 32px;
}

.widget-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.widget-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.widget-text span {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.widget-text strong {
    font-size: 0.95rem;
    color: white;
}

/* Sprechzeiten-Popover Widget */
.widget-sprechzeiten {
    position: relative;
    cursor: pointer;
}

.widget-sprechzeiten:hover .widget-icon {
    background-color: white;
    color: var(--primary);
    transform: scale(1.05);
}

.chevron-down {
    transition: var(--transition);
    color: rgba(255, 255, 255, 0.8);
}

.widget-sprechzeiten:hover .chevron-down {
    transform: rotate(180deg);
    color: white;
}

.sprechzeiten-popover {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 400px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    padding: 20px;
    z-index: 110;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.sprechzeiten-popover.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.popover-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.popover-header h4 {
    font-size: 1.1rem;
    color: var(--accent);
}

.popover-close {
    background: transparent;
    color: var(--text-muted);
    font-size: 1.2rem;
}

.popover-close:hover {
    color: var(--alert-red);
}

.popover-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.popover-status-banner {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.popover-status-banner.open {
    background-color: #e8f5e9;
    border-left: 4px solid #4caf50;
}

.popover-status-banner.closed {
    background-color: #ffebee;
    border-left: 4px solid var(--alert-red);
}

.status-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-dot.green {
    background-color: #4caf50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.status-dot.red {
    background-color: var(--alert-red);
    box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.2);
}

.status-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.status-emergency-link {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
}

.status-emergency-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.popover-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.popover-row .day-lbl {
    font-weight: 600;
}

.popover-row .time-lbl {
    color: var(--text-dark);
    white-space: nowrap;
}

/* Highlight fuer den heutigen Tag */
.popover-row.is-today {
    background-color: var(--secondary);
    color: var(--primary);
    font-weight: 500;
}

.popover-row.is-today .time-lbl {
    color: var(--primary);
    font-weight: 600;
}

.popover-row.is-today.closed-vacation {
    background-color: var(--alert-red-light);
    color: var(--alert-red);
}

.popover-row.is-today.closed-vacation .time-lbl {
    color: var(--alert-red);
    font-weight: 600;
}

/* Haupt-Navigation */
.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover {
    color: white;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: var(--transition);
}

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

.nav-action {
    display: flex;
    gap: 12px;
}

.main-header .btn-primary {
    background-color: white;
    color: var(--primary);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.main-header .btn-primary:hover {
    background-color: var(--secondary);
    color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
}

.burger-bar {
    width: 28px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: var(--transition);
}

/* ==============================================================================
   HERO SLIDER
   ============================================================================== */
.hero-slider-container {
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto 60px auto;
    height: 520px;
    background-color: var(--primary-light);
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    display: none;
    transition: opacity 0.5s ease-in-out;
    align-items: center;
    background: linear-gradient(135deg, rgb(229, 246, 247) 0%, rgb(250, 253, 253) 100%);
}

.slide.active {
    opacity: 1;
    display: flex;
    z-index: 10;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: var(--slider-image-opacity, 0.35);
    transition: opacity 0.4s ease-in-out;
}

.slide-overlay {
    display: none;
}

.slide-content {
    position: relative;
    z-index: 3;
    max-width: 650px;
    padding: 40px;
}

.slide-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.slide-subtitle {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 36px;
    font-weight: 300;
}

.slide-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Slider Controls */
.slider-arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 24px;
    transform: translateY(-50%);
    z-index: 20;
    pointer-events: none;
}

.arrow-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: white;
    box-shadow: var(--shadow-md);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.arrow-btn:hover {
    background-color: var(--primary);
    color: white;
    transform: scale(1.1);
}

.slider-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(24, 145, 202, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    width: 24px;
    border-radius: 5px;
    background-color: var(--primary);
}

/* ==============================================================================
   ZEITGESTEUERTE BANNER (URLAUB, VORSORGE, NOTFALL)
   ============================================================================== */
.alert-banner {
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-bottom: 40px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-banner-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.alert-banner-content {
    flex-grow: 1;
}

.alert-banner-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.alert-banner-text {
    font-size: 0.95rem;
    margin-bottom: 12px;
}

/* Urlaub-Banner Styling */
.banner-urlaub {
    background-color: var(--alert-red-light);
    border: 1px solid rgba(220, 53, 69, 0.15);
}

.banner-urlaub .alert-banner-icon {
    background-color: var(--alert-red);
    color: white;
}

.banner-urlaub .alert-banner-title {
    color: var(--alert-red);
}

.vertretung-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.vertretung-card {
    background-color: white;
    border-radius: var(--radius-sm);
    padding: 16px;
    border-left: 4px solid var(--alert-red);
    box-shadow: var(--shadow-sm);
}

.vertretung-card h5 {
    color: var(--text-dark);
    margin-bottom: 6px;
    font-size: 1rem;
}

/* Vorsorge-Banner Styling */
.banner-vorsorge {
    background-color: var(--warning-orange-light);
    border: 1px solid rgba(255, 152, 0, 0.15);
}

.banner-vorsorge .alert-banner-icon {
    background-color: var(--warning-orange);
    color: white;
}

.banner-vorsorge .alert-banner-title {
    color: var(--warning-orange);
}

/* ==============================================================================
   CUSTOM VACATION DISPLAY BANNER (Urlaubsmodus / Praxisschließung)
   ============================================================================== */
.vacation-custom-banner-container {
    margin-bottom: 40px;
    animation: slideInDown 0.5s ease-out;
}

.vacation-custom-banner {
    background-color: #1a8fcf; /* Solid medical blue */
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 30px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    border-radius: 0; /* Sharp corners as requested */
}

.vacation-image-wrapper {
    flex: 0 0 35%; /* Width 35% on desktop */
    min-width: 250px;
    max-width: 400px;
    background: #ffffff;
    padding: 12px; /* Thick sharp white border frame */
    border: none;
    border-radius: 0 !important; /* No rounded corners */
    display: flex;
    align-items: center;
    justify-content: center;
}

.vacation-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0 !important; /* No rounded corners */
}

.vacation-text-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
}

.vacation-date-header {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ff0000 !important; /* Bright red date range */
    margin-bottom: 15px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.vacation-standard-text {
    font-size: 1.15rem;
    font-weight: 400;
    color: #ffffff !important; /* Crisp white standard text */
    margin-bottom: 12px;
    line-height: 1.5;
}

.vacation-emergency-text {
    font-size: 1.05rem;
    font-weight: 400;
    color: #ffffff !important; /* Crisp white emergency text */
    margin-bottom: 20px;
    line-height: 1.5;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 4px solid #ffffff;
}

.vacation-rezept-box {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 16px;
    margin-top: 15px;
    border-left: 4px solid #ffffff;
}

.vacation-rezept-box h5 {
    color: #ffffff !important;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.vacation-rezept-box ul {
    list-style: none;
    padding-left: 0;
}

.vacation-rezept-box ul li {
    color: #ffffff;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.vacation-after-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-top: 15px;
    font-style: italic;
}

/* Override vertreter-card to style inside custom banner */
.vacation-custom-banner .vertretung-grid {
    margin-top: 15px;
}

.vacation-custom-banner .vertretung-card {
    border-left: 4px solid #ff0000; /* Bold red accent on vertreter cards inside blue banner */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    background-color: #ffffff;
    color: var(--text-dark);
    border-radius: 0; /* Keep it sharp and aligned */
}

.vacation-custom-banner .vertretung-card h5 {
    color: var(--text-dark);
    font-weight: 600;
}

.vacation-custom-banner .vertretung-card p {
    color: var(--text-muted);
}

/* Responsive styling for Vacation Banner */
@media (max-width: 768px) {
    .vacation-custom-banner {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .vacation-image-wrapper {
        width: 100%;
        max-width: 100%;
        height: 250px;
        flex: none;
    }
    
    .vacation-date-header {
        font-size: 1.5rem;
    }
    
    .vacation-standard-text {
        font-size: 1.05rem;
    }
}

/* ==============================================================================
   NEWS BENTO-GRID
   ============================================================================== */
.news-bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.bento-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.bento-card.full-width {
    grid-column: span 2;
}

.bento-accent-band {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
}

.bento-accent-band.teal { background-color: var(--primary); }
.bento-accent-band.blue { background-color: #3b82f6; }
.bento-accent-band.orange { background-color: var(--warning-orange); }
.bento-accent-band.red { background-color: var(--alert-red); }

.bento-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.bento-title-area h3 {
    font-size: 1.4rem;
    color: var(--accent);
}

.bento-subtitle {
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--primary);
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.bento-icon {
    font-size: 1.8rem;
}

.bento-content {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 24px;
}

/* ==============================================================================
   LEISTUNGEN GRID
   ============================================================================== */
.leistungen-section {
    background-color: var(--primary-light);
    padding: 80px 0;
    margin-bottom: 60px;
}

.leistungen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.leistung-card {
    background-color: white;
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.leistung-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.leistung-icon-wrapper {
    width: 56px;
    height: 56px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.leistung-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--accent);
}

.leistung-card p {
    font-size: 0.95rem;
}

/* ==============================================================================
   ABOUT & TEAM LAYOUT
   ============================================================================== */
.about-section {
    padding: 60px 0;
}

.about-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 60px;
}

.about-group-pic {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    object-fit: cover;
    max-height: 380px;
}

.about-text-content h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.about-text-content p {
    margin-bottom: 20px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.team-card {
    background-color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

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

.team-photo-wrapper {
    height: 280px;
    background-color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info {
    padding: 24px;
}

.team-info h4 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.team-category {
    font-size: 0.75rem;
    background-color: var(--primary-light);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 12px;
    font-weight: 500;
}

.team-role {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.team-bio {
    font-size: 0.9rem;
}

/* ==============================================================================
   DOWNLOADS / SERVICES
   ============================================================================== */
.downloads-section {
    background-color: #f1f7f7;
    padding: 80px 0;
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.download-card {
    background-color: white;
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.download-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.download-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.download-icon {
    width: 48px;
    height: 48px;
    background-color: var(--alert-red-light);
    color: var(--alert-red);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.download-texts h4 {
    font-size: 1.05rem;
    color: var(--text-dark);
}

.download-texts span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.download-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--secondary);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-btn:hover {
    background-color: var(--primary);
    color: white;
}

/* ==============================================================================
   CONTACT & NOTFALL SUMMARY
   ============================================================================== */
.contact-section {
    padding: 80px 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card-item {
    background-color: white;
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 20px;
}

.contact-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-card-texts h4 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.contact-card-texts p {
    font-size: 0.95rem;
}

.maps-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 100%;
    min-height: 380px;
}

.maps-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Notfall Card */
.notfall-card {
    background-color: var(--alert-red-light);
    border: 1px solid rgba(220, 53, 69, 0.15);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    gap: 20px;
}

.notfall-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--alert-red);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.notfall-card-texts h4 {
    font-size: 1.15rem;
    color: var(--alert-red);
    margin-bottom: 6px;
}

.notfall-numbers {
    display: flex;
    gap: 24px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.notfall-badge {
    background-color: white;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    color: var(--alert-red);
    box-shadow: var(--shadow-sm);
    font-size: 1.1rem;
}

/* ==============================================================================
   FOOTER
   ============================================================================== */
.main-footer {
    background-color: var(--accent);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 30px 0;
    border-top: 4px solid var(--primary);
}

.main-footer p {
    color: rgba(255, 255, 255, 0.75);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.footer-links h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 4px;
}

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

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

/* ==============================================================================
   MODALE (LEGAL OVERLAYS & VERIFIED LOGIN PAGE POPUPS)
   ============================================================================== */
.legal-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.legal-modal.active {
    opacity: 1;
    visibility: visible;
}

.legal-modal-content {
    background-color: white;
    width: 100%;
    max-width: 800px;
    height: 80%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95);
    transition: var(--transition);
}

.legal-modal.active .legal-modal-content {
    transform: scale(1);
}

.legal-modal-header {
    background-color: var(--primary-light);
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.legal-modal-header h2 {
    font-size: 1.6rem;
}

.legal-modal-body {
    padding: 32px;
    overflow-y: auto;
    flex-grow: 1;
}

.legal-modal-body h3 {
    margin-top: 24px;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.legal-modal-body h4 {
    margin-top: 16px;
    margin-bottom: 6px;
    font-size: 1rem;
}

.legal-modal-body p {
    margin-bottom: 12px;
    font-size: 0.95rem;
}

/* ==============================================================================
   STANDALONE ADMIN DASHBOARD LAYOUT & CARD GRIDS
   ============================================================================== */
.admin-login-wrapper {
    max-width: 440px;
    margin: 120px auto;
    background-color: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.admin-login-wrapper h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    text-align: center;
}

.admin-login-wrapper p {
    text-align: center;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--accent);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(24, 145, 202, 0.15);
    outline: none;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* Admin Sidebar */
.admin-sidebar {
    width: 280px;
    background-color: var(--accent);
    color: white;
    padding: 30px 0 0 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
}

.admin-sidebar > div:first-child {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
}

.admin-logo {
    padding: 0 24px 24px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.admin-logo h2 {
    color: white;
    font-size: 1.25rem;
}

.admin-nav {
    list-style: none;
    margin-top: 24px;
    overflow-y: auto;
    flex-grow: 1;
    padding-bottom: 20px;
}

.admin-nav::-webkit-scrollbar {
    width: 6px;
}
.admin-nav::-webkit-scrollbar-track {
    background: transparent;
}
.admin-nav::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.admin-nav-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    transition: var(--transition);
}

.admin-nav-item a:hover,
.admin-nav-item.active a {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--secondary);
}

.admin-sidebar-footer {
    padding: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-logout {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 10px;
    border-radius: var(--radius-sm);
}

.btn-logout:hover {
    background-color: var(--alert-red);
}

/* Admin Content Area */
.admin-main {
    flex-grow: 1;
    margin-left: 280px;
    padding: 40px;
    background-color: var(--bg-clinical);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.admin-header h2 {
    font-size: 1.8rem;
}

/* Admin Dashboard Home Grid */
.admin-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.admin-card-setting {
    background-color: white;
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
    cursor: pointer;
}

.admin-card-setting:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.admin-setting-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.admin-setting-texts h3 {
    font-size: 1.15rem;
    color: var(--accent);
}

.admin-setting-texts p {
    font-size: 0.85rem;
    margin-top: 4px;
}

/* Admin Forms Screen Design */
.admin-screen {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.admin-screen.active {
    display: block;
}

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

.admin-card {
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    padding: 32px;
    margin-bottom: 32px;
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.admin-card-header h3 {
    font-size: 1.3rem;
}

/* Custom CSS Switches / Toggles */
.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.toggle-label-area {
    max-width: 80%;
}

.toggle-label-area strong {
    display: block;
    font-size: 0.95rem;
    color: var(--accent);
}

.toggle-label-area span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-toggle {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .4s;
    border-radius: 34px;
}

.slider-toggle:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider-toggle {
    background-color: var(--primary);
}

input:checked + .slider-toggle:before {
    transform: translateX(24px);
}

/* Reorder & List Layouts in Admin Panel */
.admin-list-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-clinical);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.admin-item-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-item-thumbnail {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    background-color: var(--secondary);
    object-fit: cover;
}

.admin-item-title-desc h4 {
    font-size: 0.95rem;
    color: var(--text-dark);
}

.admin-item-title-desc p {
    font-size: 0.8rem;
}

.admin-item-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-action-btn {
    background: transparent;
    color: var(--text-muted);
    font-size: 1rem;
}

.admin-action-btn:hover {
    color: var(--primary);
}

.admin-action-btn.btn-delete:hover {
    color: var(--alert-red);
}

.admin-sort-arrows {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-sort-btn {
    background: transparent;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.admin-sort-btn:hover {
    color: var(--primary);
}

/* Two-column page layout for CMS News Wizard and Live Preview */
.cms-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.cms-preview-pane {
    background-color: var(--bg-clinical);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--primary);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 380px;
    position: sticky;
    top: 100px;
}

.cms-preview-header {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: 1px;
}

/* Dynamic Rows for Opening Hours (unbegrenzte Zeilen) */
.time-row {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
    align-items: center;
}

.btn-row-action {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-add-row {
    background-color: var(--primary-light);
    color: var(--primary);
}

.btn-delete-row {
    background-color: var(--alert-red-light);
    color: var(--alert-red);
}

/* HTML-Format-Editor Buttons */
.html-format-bar {
    display: flex;
    gap: 8px;
    background-color: #f1f5f9;
    padding: 8px;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    border: 1.5px solid var(--border-color);
    border-bottom: none;
    flex-wrap: wrap;
}

.html-format-btn {
    background-color: white;
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    font-weight: 500;
    color: var(--text-dark);
}

.html-format-btn:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

.html-textarea {
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    min-height: 240px;
    font-family: monospace;
    font-size: 0.9rem;
}

.editor-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.editor-tab {
    padding: 8px 16px;
    background-color: #f1f5f9;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.editor-tab.active {
    background-color: var(--primary);
    color: white;
}

.editor-preview-field {
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 20px;
    min-height: 240px;
    background-color: white;
    overflow-y: auto;
}

/* ==============================================================================
   RESPONSIVE DESIGN (BREAKPOINTS)
   ============================================================================== */
@media (max-width: 1024px) {
    .header-top {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    .header-widgets {
        width: 100%;
        justify-content: space-between;
    }
    .about-intro-grid,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .cms-two-column {
        grid-template-columns: 1fr;
    }
    .cms-preview-pane {
        position: static;
        min-height: auto;
        margin-top: 24px;
    }
}

@media (max-width: 768px) {
    .nav-bar {
        position: relative;
    }
    .nav-list {
        display: none; /* Mobile Menu off standardmäßig */
        flex-direction: column;
        width: 100%;
        background-color: white;
        border-top: 1px solid var(--border-color);
        padding: 16px 0;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 90;
        box-shadow: var(--shadow-md);
        gap: 12px;
    }
    .nav-list.active {
        display: flex;
    }
    .nav-link {
        padding: 12px 24px;
        display: block;
    }
    .nav-action {
        display: none;
    }
    .nav-action.active {
        display: flex;
        padding: 12px 24px;
    }
    .burger-menu {
        display: flex;
    }
    .hero-slider-container {
        height: auto;
        min-height: 420px;
    }
    .slide-title {
        font-size: 2rem;
    }
    .news-bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-card.full-width {
        grid-column: span 1;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .admin-sidebar {
        width: 72px;
        padding: 20px 0;
    }
    .admin-logo h2,
    .admin-nav-item span,
    .btn-logout span {
        display: none;
    }
    .admin-main {
        margin-left: 72px;
        padding: 20px;
    }
    .admin-setting-texts p {
        display: none;
    }
}

/* ==============================================================================
   QUICK INFO KACHELN
   ============================================================================== */
.quick-info-section {
    padding: 0px 0 60px 0;
}

.quick-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.info-tile-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.info-tile-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.info-tile-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.info-tile-content {
    padding: 24px;
    text-align: center;
}

.info-tile-content h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.info-tile-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Info Modal Content Layout */
.info-modal-grid {
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: 30px;
    align-items: start;
}

.info-modal-image-container img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

/* ==============================================================================
   INLINE INFO-BANNER (ADMINISTRIERBAR)
   ============================================================================== */
.info-banner-section {
    padding: 0 0 50px 0;
}

.info-banner-card {
    background: var(--bg-clinical);
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 48px 40px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.info-banner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.info-banner-card:hover::before {
    opacity: 1;
}

.info-banner-card h3 {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 14px;
    letter-spacing: 0.3px;
}

.info-banner-card p {
    font-size: 0.98rem;
    color: var(--text-light);
    line-height: 1.65;
    max-width: 780px;
    margin: 0 auto 28px auto;
}

.btn-info-banner {
    display: inline-block;
    padding: 10px 32px;
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: white;
    background-color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: lowercase;
}

.btn-info-banner:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px hsla(210, 75%, 25%, 0.25);
}

.btn-info-banner:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .info-banner-card {
        padding: 32px 20px;
    }
    .info-banner-card h3 {
        font-size: 1.3rem;
    }
    .info-banner-card p {
        font-size: 0.92rem;
    }
}

/* ==============================================================================
   TERMINBUCHUNGS-SYSTEM STYLES
   ============================================================================== */

/* Multi-Step Wizard */
.booking-progress-container {
    margin-bottom: 25px;
    padding: 0 10px;
}

.booking-progress-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    position: relative;
    margin-bottom: 10px;
}

.booking-progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    width: 25%;
    transition: width 0.3s ease;
}

.booking-steps-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

.booking-step-label.active {
    color: var(--primary);
    font-weight: bold;
}

.booking-wizard-step {
    display: none;
}

.booking-wizard-step.active {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    animation: fadeIn 0.3s ease;
}

/* Verifikations-Code Inputs */
.verification-code-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 30px 0;
}

.verification-code-input {
    width: 50px;
    height: 60px;
    font-size: 2rem;
    text-align: center;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-weight: bold;
    color: var(--primary);
    transition: var(--transition);
}

.verification-code-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.15);
    outline: none;
}

/* Resend Code Button */
.btn-resend-code {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    transition: var(--transition);
}

.btn-resend-code:hover:not(:disabled) {
    color: var(--accent);
}

.btn-resend-code:disabled {
    color: var(--text-muted);
    cursor: not-allowed;
    text-decoration: none;
}


/* Kalender Buchungs-Grid */
.calendar-booking-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 25px;
    margin-top: 15px;
    height: 380px;
}

.calendar-days-container, .calendar-slots-container {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.calendar-header-title {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.calendar-days-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    overflow-y: auto;
    padding-right: 5px;
    flex: 1;
}

.calendar-day-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 5px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.calendar-day-card:hover:not(.disabled) {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.calendar-day-card.selected {
    background: var(--primary);
    color: white !important;
    border-color: var(--primary);
}

.calendar-day-card.selected .day-name, 
.calendar-day-card.selected .day-date {
    color: white !important;
}

.calendar-day-card.disabled {
    background: #f1f5f9;
    color: #cbd5e1;
    cursor: not-allowed;
    border-color: #e2e8f0;
}

.calendar-day-card .day-name {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-light);
}

.calendar-day-card .day-date {
    font-size: 1rem;
    font-weight: bold;
    color: var(--primary);
    margin-top: 4px;
}

.calendar-slots-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    overflow-y: auto;
    flex: 1;
    padding-right: 5px;
}

.calendar-slot-btn {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px;
    text-align: center;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-dark);
}

.calendar-slot-btn:hover:not(.disabled) {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.calendar-slot-btn.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.calendar-slot-btn.disabled {
    background: #f1f5f9;
    color: #94a3b8;
    border-color: #e2e8f0;
    cursor: not-allowed;
    text-decoration: line-through;
    opacity: 0.7;
}

.no-slots-placeholder {
    grid-column: span 2;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-light);
    font-size: 0.9rem;
    text-align: center;
    padding: 20px;
    flex: 1;
}

/* E-Mail Simulator Widget */
.email-simulator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 380px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid rgba(0, 86, 179, 0.2);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(150%) scale(0.9);
    opacity: 0;
}

.email-simulator.active {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.email-simulator.minimized {
    height: 48px;
    width: 250px;
    transform: translateY(0) scale(1);
}

.email-header {
    background: var(--primary);
    color: white;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
}

.email-header-controls {
    display: flex;
    gap: 10px;
}

.email-control-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    padding: 0 4px;
    opacity: 0.8;
}

.email-control-btn:hover {
    opacity: 1;
}

.email-body {
    padding: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.85rem;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: white;
}

.email-meta-row {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 6px;
    margin-bottom: 4px;
    color: var(--text-light);
}

.email-meta-row strong {
    color: var(--text-dark);
}

.email-content-box {
    background: #f8fafc;
    border: 1px dashed var(--primary);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    margin-top: 10px;
}

.email-verification-code {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--primary);
    letter-spacing: 5px;
    margin: 10px 0;
    font-family: monospace;
}

/* Success Step styles */
.success-checkmark-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    text-align: center;
}

.success-icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #e2fcdb;
    color: #2e7d32;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.2);
}

.success-details-card {
    background: #f8fafc;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid var(--border-color);
    margin: 15px 0;
    width: 100%;
    text-align: left;
}

.success-details-card table {
    width: 100%;
    border-collapse: collapse;
}

.success-details-card td {
    padding: 5px 0;
    font-size: 0.9rem;
}

.success-details-card td:first-child {
    font-weight: 600;
    color: var(--text-light);
    width: 120px;
}

/* Admin Dashboard Table and Badges */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.admin-stat-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.admin-stat-value {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 5px;
}

.admin-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
}

.status-neu {
    background-color: #fef3c7;
    color: #d97706;
}

.status-bestaetigt {
    background-color: #dbeafe;
    color: #2563eb;
}

.status-abgesagt {
    background-color: #fee2e2;
    color: #dc2626;
}

.status-erledigt {
    background-color: #dcfce7;
    color: #16a34a;
}

.admin-table-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.admin-filter-item {
    flex: 1;
    min-width: 180px;
}

@media (max-width: 768px) {
    .calendar-booking-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
    .calendar-days-container, .calendar-slots-container {
        height: 250px;
    }
}

/* ==============================================================================
   INLINE VACATION PREVIEW (Seitenfluss)
   ============================================================================== */
.vacation-preview-section {
    margin-top: 20px;
    margin-bottom: 35px;
    animation: fadeIn 0.6s ease-out;
}

.vacation-preview-card {
    background-color: var(--primary-light);
    border-left: 6px solid var(--primary);
    display: flex;
    flex-direction: row;
    align-items: stretch;
    box-shadow: var(--shadow-sm);
    border-radius: 0; /* Keep it sharp as requested */
    overflow: hidden;
}

.vacation-preview-image {
    flex: 0 0 32%;
    min-width: 220px;
    max-width: 350px;
    background: #ffffff;
    padding: 10px; /* White frame layout */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 0 !important;
}

.vacation-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0 !important;
}

.vacation-preview-content {
    flex: 1;
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vacation-preview-badge {
    display: inline-flex;
    align-items: center;
    background-color: var(--primary);
    color: #ffffff;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 12px;
    align-self: flex-start;
}

#vacationPreviewTitle {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.25;
}

#vacationPreviewText {
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.vacation-preview-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-ics-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0; /* Sharp corners */
    font-family: var(--font-primary);
}

.btn-ics-download:hover {
    background-color: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(24, 145, 202, 0.25);
}

.btn-ics-download:active {
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .vacation-preview-card {
        flex-direction: column;
    }
    
    .vacation-preview-image {
        width: 100%;
        max-width: 100%;
        height: 220px;
        flex: none;
    }
    
    .vacation-preview-content {
        padding: 20px;
    }
    
    #vacationPreviewTitle {
        font-size: 1.35rem;
    }
}

/* ==============================================================================
   SCROLL-TO-TOP BUTTON
   ============================================================================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
}

.scroll-to-top:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: #ffffff;
}

.scroll-to-top:active {
    transform: translateY(0);
}

.scroll-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Adjust position on small screens */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

