:root {
    --primary-color: #2c5d8a;     /* medizinisches Blau */
    --secondary-color: #5f7d95;   /* helleres Blau-Grau */
    --light-bg: #f4f7f9;
}

/* ================= SMOOTH SCROLL ================= */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', "Helvetica Neue", Arial, sans-serif;
    overflow-x: hidden;
}

*, *::before, *::after {
    box-sizing: border-box;
    max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
}

/* ================= LOGO ================= */
.navbar-logo {
    height: 38px;
    width: auto;
}
.footer-logo {
    height: 52px;
    width: auto;
    background: #fff;
    border-radius: 8px;
    padding: 4px 6px;
    display: block;
    margin-bottom: 12px;
}

/* ================= NAVBAR ================= */
.navbar-custom {
    background-color: white;
    border-bottom: 1px solid #e5e5e5;
}

.navbar-custom .nav-link {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.88rem;
    padding-left: 0.55rem;
    padding-right: 0.55rem;
}

.navbar-custom .nav-link:hover {
    color: var(--secondary-color);
}

.navbar-custom .nav-link.active {
    color: var(--primary-color);
    font-weight: 700;
    border-bottom: 2px solid var(--primary-color);
}

/* Navbar shadow appears on scroll */
.navbar-custom {
    transition: box-shadow 0.3s ease;
}
.navbar-custom.scrolled {
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
}

/* ================= HOME HERO ================= */
.hero-home {
    background: url('../Assets/Images/ausen1.webp') center center / cover no-repeat;
    min-height: 520px;
    position: relative;
}

.hero-home::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(44, 93, 138, 0.65);
}

/* ================= FOOTER ================= */
.footer-custom {
    background-color: var(--primary-color);
    color: white;
    padding: 40px 0;
}

.footer-custom p { color: #ffffffcc; }

.footer-custom a {
    color: #ffffffcc;
    text-decoration: none;
}

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

/* ================= HERO IMPRESSUM ================= */
.impressum-hero {
    margin-top: 0;
}

.hero-image {
    background: url("../Assets/Images/paragraph.webp") center center/cover no-repeat;
    min-height: 400px;
}

.hero-blue {
    background-color: #2f6f9f;
    color: white;
    min-height: 400px;
    padding: 60px;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: 2px;
}

.hero-text .small-title {
    font-size: 16px;
    opacity: 0.8;
    margin-bottom: 10px;
}

/* ================= IMPRESSUM CONTENT ================= */
.impressum-content {
    margin-top: 60px;
}

.impressum-content h5 {
    margin-top: 40px;
    font-weight: 600;
    border-left: 4px solid #2f6f9f;
    padding-left: 12px;
}

.impressum-content p {
    line-height: 1.7;
}

/* ================= BACK TO TOP ================= */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.2s, transform 0.2s;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

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

/* ================= HERO DATENSCHUTZ ================= */
.datenschutz-hero .hero-image {
    background: url("../Assets/Images/datenschutz.webp") center center/cover no-repeat;
}

/* ================= TOPBAR ================= */
.topbar {
    background-color: #1b3f60;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.82rem;
    padding: 7px 0;
}
.topbar a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    transition: color 0.2s;
}
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar i { font-size: 0.78rem; }

/* ================= OPENING HOURS ================= */
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td {
    padding: 6px 20px 6px 0;
    vertical-align: top;
    border: none;
    line-height: 1.5;
}
.hours-table .day {
    font-weight: 600;
    color: var(--primary-color);
    min-width: 120px;
    white-space: nowrap;
}
.hours-note {
    background: #e8f0f8;
    border-left: 4px solid var(--primary-color);
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #444;
    margin-top: 1rem;
}

/* ================= NEWS / AKTUELLES ================= */
.news-badge {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
}
.badge-info  { background-color: #cfe2ff; color: #084298; }
.badge-warn  { background-color: #fff3cd; color: #664d03; }
.badge-job   { background-color: #d1e7dd; color: #0a3622; }

/* ================= NEUE PATIENTEN ================= */
.np-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

/* ================= SUBPAGE HERO ================= */
.hero-subpage {
    background: linear-gradient(135deg, #1b3f60 0%, var(--primary-color) 100%);
    padding: 70px 0;
    color: white;
}
.hero-subpage h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 0.4rem;
}
.hero-subpage p { opacity: 0.85; font-size: 1.05rem; margin-bottom: 0; }

/* ================= LEISTUNGEN ================= */
.leistung-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: #e8f0f8;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.leistung-list { list-style: none; padding: 0; margin: 0; }
.leistung-list li {
    padding: 4px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.95rem;
}
.leistung-list li::before {
    content: "\F26C";
    font-family: "bootstrap-icons";
    color: var(--primary-color);
    font-size: 0.7rem;
    margin-top: 5px;
    flex-shrink: 0;
}

/* ================= TEAM ================= */
.team-img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    object-position: top;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 4px 16px rgba(44, 93, 138, 0.2);
}
.team-img-placeholder {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background-color: #d9e6f2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--secondary-color);
    border: 4px solid white;
    box-shadow: 0 4px 16px rgba(44, 93, 138, 0.2);
    margin: 0 auto;
}

/* ================= KONTAKT PAGE ================= */
.kontakt-info-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 1rem;
}
.kontakt-info-row .k-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e8f0f8;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.map-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* ================= ANAMNESE PRINT ================= */
.anamnese-field {
    border: none;
    border-bottom: 1px solid #bbb;
    border-radius: 0;
    background: #fafbfc;
    padding: 6px 4px;
    font-size: 0.95rem;
    width: 100%;
}
.anamnese-field:focus { outline: none; border-bottom-color: var(--primary-color); background: #fff; }
.checkbox-grid { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.checkbox-grid label { display: flex; align-items: center; gap: 6px; font-size: 0.9rem; cursor: pointer; }

@media print {
    .navbar, .topbar, .footer-custom, .back-to-top, .no-print { display: none !important; }
    body { font-size: 10.5pt; color: #000; }
    h2, h3, h4, h5 { color: #000 !important; }
    .container { max-width: 100% !important; padding: 0 !important; }
    .anamnese-field { background: transparent !important; }
    .print-section { page-break-inside: avoid; }
    .page-break { page-break-after: always; }
}

/* ================= TOPBAR HOURS DROPDOWN ================= */
.topbar-hours {
    position: relative;
    cursor: default;
    user-select: none;
}
.topbar-hours .hours-label {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.45);
    padding-bottom: 1px;
    cursor: help;
}
.topbar-hours .hours-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #1b3f60;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 10px 14px;
    min-width: 230px;
    z-index: 9999;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    font-size: 0.8rem;
}
.topbar-hours:hover .hours-dropdown {
    display: block;
}
.hours-dropdown table { width: 100%; border-collapse: collapse; }
.hours-dropdown td {
    padding: 4px 6px;
    vertical-align: top;
    color: rgba(255, 255, 255, 0.9);
}
.hours-dropdown td:first-child {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    width: 28px;
    padding-right: 10px;
    white-space: nowrap;
}

/* ================= MAP CONSENT ================= */
.map-consent-box {
    background: #eef3f8;
    border: 2px dashed #b0c4d8;
    border-radius: 12px;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    gap: 0;
}
.map-consent-box .consent-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    opacity: 0.65;
}

/* ================= IMPRESSUM PLACEHOLDERS ================= */
.zu-ergaenzen {
    display: inline-block;
    background: #fff3cd;
    color: #664d03;
    border: 1px dashed #ffc107;
    border-radius: 4px;
    padding: 1px 8px;
    font-size: 0.85rem;
    font-style: italic;
}

/* ================= SKIP LINK ================= */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    z-index: 10000;
    font-weight: 600;
    border-radius: 0 0 6px 0;
    text-decoration: none;
    transition: top 0.1s;
}
.skip-link:focus {
    top: 0;
    color: #fff;
}

/* ================= FOCUS VISIBLE ================= */
:focus-visible {
    outline: 3px solid #f5a623;
    outline-offset: 2px;
}
.back-to-top:focus-visible,
.btn:focus-visible {
    outline: 3px solid #f5a623;
    outline-offset: 2px;
    box-shadow: none;
}

/* ================= CARD HOVER LIFT ================= */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(44, 93, 138, 0.15) !important;
}

/* ================= BUTTON PRESS FEEDBACK ================= */
.btn:active {
    transform: scale(0.97);
}

/* ================= SECTION SPACING ================= */
section + section {
    border-top: 1px solid transparent;
}

/* ================= RESPONSIVE ================= */

/* Impressum/Datenschutz Hero: kleiner auf Tablets & Handys */
@media (max-width: 991.98px) {
    .hero-image { min-height: 220px; }
    .hero-blue  { min-height: auto; padding: 36px 28px; }
    .hero-text h1 { font-size: clamp(1.6rem, 6vw, 2.8rem); }
}

/* Home Hero: etwas weniger Höhe auf kleinen Displays */
@media (max-width: 575.98px) {
    .hero-home { min-height: 380px; }
}

/* Topbar: Adresse auf Tablets (md–lg) ausblenden, damit keine zweite Zeile entsteht */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .topbar-address { display: none !important; }
}

/* Subpage Hero Padding auf Mobile */
@media (max-width: 575.98px) {
    .hero-subpage { padding: 48px 0; }
}

/* Impressum Content: weniger Oberkante auf Mobile */
@media (max-width: 575.98px) {
    .impressum-content { margin-top: 32px; }
}

/* ================= COOKIE BANNER ================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1b3f60;
    color: rgba(255, 255, 255, 0.92);
    padding: 16px 24px;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    line-height: 1.5;
}
.cookie-banner p {
    margin: 0;
    flex: 1;
    min-width: 220px;
}
.cookie-banner a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: underline;
}
.cookie-banner a:hover { color: #fff; }
.cookie-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex-shrink: 0;
}
@media (max-width: 575.98px) {
    .cookie-banner { padding: 14px 16px; }
    .cookie-actions { width: 100%; }
    .cookie-actions .btn { flex: 1; }
}
