/* ==============================================================================
   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(185, 88%, 32%);        /* Medizinisches Petrol (#0A8E9A) */
    --primary-hover: hsl(185, 88%, 26%);
    --primary-light: hsl(185, 88%, 95%);
    --secondary: #E5F6F7;                /* Helles Türkis / Mint */
    --secondary-hover: #d2f0f2;
    --accent: hsl(187, 89%, 21%);         /* Warmes Blaugruen (#065B66) */
    --bg-clinical: hsl(180, 20%, 98%);    /* Klinische Sauberkeit (#FAFDFD) */
    --card-bg: #ffffff;
    --text-dark: hsl(200, 20%, 20%);      /* Dunkles Anthrazit */
    --text-muted: hsl(200, 10%, 45%);
    --border-color: hsl(184, 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(10, 142, 154, 0.05);
    --shadow-md: 0 8px 30px rgba(10, 142, 154, 0.08);
    --shadow-lg: 0 16px 48px rgba(10, 142, 154, 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(10, 142, 154, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 142, 154, 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: rgba(250, 253, 253, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    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: var(--primary);
}

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

.logo-text span {
    font-size: 0.85rem;
    color: var(--primary);
    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: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.widget-text span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.widget-text strong {
    font-size: 0.95rem;
    color: var(--text-dark);
}

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

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

.chevron-down {
    transition: var(--transition);
}

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

.sprechzeiten-popover {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 320px;
    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-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);
}

/* 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;
}

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

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

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover {
    color: var(--primary);
}

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

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

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

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

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

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

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(229, 246, 247, 0.95) 0%, rgba(250, 253, 253, 0.85) 100%);
    z-index: 2;
}

.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(10, 142, 154, 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);
}

/* ==============================================================================
   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);
}

.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(10, 142, 154, 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;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
}

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

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

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

.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;
    }
}
