/* ============================================================
   DOCTORIUS — BASE THEME  (green/teal default)
   Specialty overrides: /css/tenants/{specialty}.css
   Just re-declare the :root variables there.
   ============================================================ */

:root {
    --doc-primary:        #2a7c6f;
    --doc-primary-dark:   #1d5c52;
    --doc-primary-light:  #e8f5f3;
    --doc-accent:         #4db6a9;
    --doc-text:           #212529;
    --doc-muted:          #6c757d;
}

/* ── Base ───────────────────────────────────────────────── */
html { font-size: 16px; position: relative; min-height: 100%; scroll-padding-top: 72px; }
body { color: var(--doc-text); }

/* ── Bootstrap colour overrides ────────────────────────── */
.btn-primary                    { background-color: var(--doc-primary); border-color: var(--doc-primary); }
.btn-primary:hover,
.btn-primary:focus              { background-color: var(--doc-primary-dark); border-color: var(--doc-primary-dark); }
.btn-outline-primary            { color: var(--doc-primary); border-color: var(--doc-primary); }
.btn-outline-primary:hover      { background-color: var(--doc-primary); border-color: var(--doc-primary); color: #fff; }
.text-primary                   { color: var(--doc-primary) !important; }
.bg-primary                     { background-color: var(--doc-primary) !important; }
.btn:focus, .form-control:focus { box-shadow: 0 0 0 0.2rem rgba(42,124,111,.25); }

/* ── Navbar ─────────────────────────────────────────────── */
.site-nav { padding-top: 0.85rem; padding-bottom: 0.85rem; }

.site-nav .navbar-brand {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--doc-primary-dark) !important;
    letter-spacing: -0.3px;
}

.site-nav .nav-link {
    font-size: 0.88rem;
    font-weight: 500;
    color: #444 !important;
    padding-left: 0.9rem !important;
    padding-right: 0.9rem !important;
    transition: color .2s;
}
.site-nav .nav-link:hover,
.site-nav .nav-link.active { color: var(--doc-primary) !important; font-weight: 600; }

.site-nav .nav-cta {
    background: var(--doc-primary);
    color: #fff !important;
    border-radius: 50px;
    padding: 0.38rem 1.2rem !important;
    font-weight: 600;
    transition: background .2s;
}
.site-nav .nav-cta:hover { background: var(--doc-primary-dark); }

/* ── Hero ───────────────────────────────────────────────── */
.hero-section {
    background-color: var(--doc-primary-dark);
    min-height: 520px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* blurred background photo */
.hero-section::before {
    content: '';
    position: absolute;
    inset: -12px;
    background-image: url('/images/medical-cabinet.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(2px);
    pointer-events: none;
}

/* dark-green tint overlay for text readability */
.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(29, 92, 82, 0.62);
    pointer-events: none;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 50px;
    padding: 0.3rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 1.1rem;
    backdrop-filter: blur(4px);
}
.hero-badge.accepting   { background: rgba(255,255,255,.18); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.hero-badge.not-accepting { background: rgba(220,53,69,.28); color: #ffe0e0; border: 1px solid rgba(220,53,69,.45); }

/* ── Section shared ─────────────────────────────────────── */
.section-title {
    color: var(--doc-primary-dark);
    font-weight: 700;
    position: relative;
    padding-bottom: 0.7rem;
    margin-bottom: 2rem !important;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 48px; height: 3px;
    background: var(--doc-primary);
    border-radius: 2px;
}
.section-title.centered::after { left: 50%; transform: translateX(-50%); }

.bg-light-primary { background-color: var(--doc-primary-light) !important; }

/* ── Über uns ───────────────────────────────────────────── */
.doctor-photo {
    width: 100%; max-width: 300px;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
    object-fit: cover;
}

.doctor-photo-placeholder {
    width: 100%; max-width: 300px; height: 360px;
    background: var(--doc-primary-light);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    color: var(--doc-primary);
    font-size: 5rem;
}

.credential-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--doc-primary-light);
    color: var(--doc-primary-dark);
    border-radius: 8px;
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0.2rem;
}

/* ── Leistungen page — sidebar nav ─────────────────────── */
.service-nav-list .list-group-item:first-child { border-top-left-radius: 10px !important; border-top-right-radius: 10px !important; }
.service-nav-list .list-group-item:last-child  { border-bottom-left-radius: 10px !important; border-bottom-right-radius: 10px !important; }
.service-nav-list .list-group-item.active {
    background-color: var(--doc-primary) !important;
    border-color: #dee2e6 !important;
    color: #fff !important;
}

.service-nav-icon {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: var(--doc-primary-light);
    color: var(--doc-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
    transition: background .15s, color .15s;
}
.list-group-item.active .service-nav-icon {
    background: rgba(255,255,255,.2);
    color: #fff;
}

.service-detail-icon {
    width: 80px; height: 80px;
    border-radius: 16px;
    background: var(--doc-primary-light);
    color: var(--doc-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem;
    flex-shrink: 0;
}

.service-detail-panel {
    background: #fff;
    border-radius: 14px;
    padding: 2rem 2.5rem;
    box-shadow: 0 2px 14px rgba(0,0,0,.06);
}

/* ── Home page Leistungen bullet list ───────────────────── */
.leistungen-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .3rem 1.5rem;
}
.leistungen-list-item {
    display: flex;
    align-items: center;
    gap: .55rem;
    color: var(--doc-text);
    font-size: .93rem;
    padding: .45rem 0;
    transition: color .15s;
}
.leistungen-list-item:hover { color: var(--doc-primary); }
.leistungen-list-item i { color: var(--doc-primary); font-size: .95rem; flex-shrink: 0; }

@media (max-width: 576px) {
    .leistungen-list { grid-template-columns: 1fr; }
}

/* ── Team cards ─────────────────────────────────────────── */
.team-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    text-align: center;
    padding: 2rem 1.5rem;
}
.team-photo {
    width: 96px; height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--doc-primary-light);
    margin-bottom: 1rem;
}
.team-photo-placeholder {
    width: 96px; height: 96px;
    border-radius: 50%;
    background: var(--doc-primary-light);
    color: var(--doc-primary);
    font-size: 2.2rem;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
}

/* ── Patienten-Info cards ───────────────────────────────── */
.info-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 14px rgba(0,0,0,.06);
    height: 100%;
    transition: transform .2s;
}
.info-card:hover { transform: translateY(-4px); }

.info-icon {
    width: 62px; height: 62px;
    background: var(--doc-primary);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.1rem;
}

/* ── Booking section ────────────────────────────────────── */
.booking-section {
    background: linear-gradient(135deg, var(--doc-primary-dark) 0%, var(--doc-primary) 100%);
    color: #fff;
}
.booking-section .section-title       { color: #fff; }
.booking-section .section-title::after { background: rgba(255,255,255,.45); }

/* ── Kontakt ────────────────────────────────────────────── */
.hours-table td               { padding: 0.4rem 0.8rem; }
.hours-table td:first-child   { font-weight: 600; color: var(--doc-primary-dark); white-space: nowrap; }

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 0.9rem;
}
.contact-icon {
    width: 40px; height: 40px; flex-shrink: 0;
    background: var(--doc-primary-light);
    color: var(--doc-primary);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.05rem;
}

/* ── Layout variants ────────────────────────────────────── */
/* .layout-standard — default, no changes needed */

.layout-modern .hero-section   { min-height: 70vh; }
.layout-modern .site-nav       { background: var(--doc-primary) !important; }
.layout-modern .navbar-brand,
.layout-modern .nav-link       { color: #fff !important; }
.layout-modern .nav-cta        { background: #fff; color: var(--doc-primary) !important; }
.layout-modern .nav-cta:hover  { background: var(--doc-primary-light); }

.layout-minimal .hero-section  { min-height: 320px; }
.layout-minimal .site-nav      { box-shadow: none; border-bottom: 1px solid #e9ecef; }
.layout-minimal .booking-section { background: var(--doc-primary-light); color: var(--doc-text); }
.layout-minimal .booking-section .section-title       { color: var(--doc-primary-dark); }
.layout-minimal .booking-section .section-title::after { background: var(--doc-primary); }

/* ── Legal pages (Impressum / Datenschutz) ──────────────── */
.legal-content { color: var(--doc-text); line-height: 1.75; }

.legal-heading {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--doc-primary-dark);
    margin-top: 2.2rem;
    margin-bottom: .6rem;
    padding-bottom: .35rem;
    border-bottom: 2px solid var(--doc-primary-light);
}
.legal-heading:first-child { margin-top: 0; }

.legal-subheading {
    font-size: 1rem;
    font-weight: 600;
    color: var(--doc-text);
    margin-top: 1.4rem;
    margin-bottom: .4rem;
}

.legal-content p, .legal-content ul { font-size: .95rem; color: #444; margin-bottom: .9rem; }
.legal-content ul { padding-left: 1.4rem; }
.legal-content ul li { margin-bottom: .3rem; }
.legal-content a { color: var(--doc-primary); }

.legal-table { width: auto; margin-bottom: .9rem; font-size: .95rem; }
.legal-table td { padding: .2rem 1.5rem .2rem 0; vertical-align: top; color: #444; }
.legal-table td:first-child { font-weight: 600; white-space: nowrap; color: var(--doc-primary-dark); }

.legal-notice {
    background: var(--doc-primary-light);
    border-left: 4px solid var(--doc-primary);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    font-size: .88rem;
    color: var(--doc-primary-dark);
    line-height: 1.6;
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
    background: #162820;
    color: rgba(255,255,255,.65);
    padding: 2.5rem 0 1.2rem;
    margin-top: 0;
}
.site-footer .footer-brand { color: #fff; font-weight: 700; font-size: 1.05rem; display: block; margin-bottom: .4rem; }
.site-footer a              { color: rgba(255,255,255,.55); text-decoration: none; transition: color .2s; }
.site-footer a:hover        { color: #fff; }
.site-footer .divider       { border-color: rgba(255,255,255,.1); }
