/* =================================================================
   Custom styles for Dr. med. Malte von Blumröder
   "Coastal Medical" design — Bootstrap 5.3.2 overrides
   ================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Inter:wght@300;400;500;600;700&family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0&display=swap');

/* ── Color palette ─────────────────────────────────────────────── */
:root {
    --primary: #0A2463;
    --secondary: #3E92CC;
    --accent: #E8DAB2;
    --bg-light: #FDFDFD;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
}

/* ── Typography ────────────────────────────────────────────────── */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.35rem; }

.content-article,
.content-category {
    overflow-wrap: anywhere;
}

.content-article .table-responsive,
.content-category .table-responsive {
    max-width: 100%;
    overflow-x: auto;
}

.content-article table,
.content-category table {
    width: 100%;
    table-layout: fixed;
}

.content-article th,
.content-article td,
.content-category th,
.content-category td {
    overflow-wrap: anywhere;
}

/* ── Glass Navbar ──────────────────────────────────────────────── */
.navbar {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 0.75rem 0;
}

.navbar-brand {
    color: var(--primary) !important;
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.navbar-brand .brand-subtitle {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    font-weight: 500;
}

.nav-link {
    color: var(--text-dark) !important;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
}

.btn-termin {
    background: var(--primary);
    color: #fff !important;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    border: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(10, 36, 99, 0.2);
}

.btn-termin:hover {
    background: #081d50;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(10, 36, 99, 0.3);
}

/* ── Hero Section ──────────────────────────────────────────────── */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: -76px;
    padding-top: 76px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(120deg, rgba(10, 36, 99, 0.92), rgba(62, 146, 204, 0.44)),
        radial-gradient(circle at 78% 24%, rgba(232, 218, 178, 0.48), transparent 18rem),
        linear-gradient(135deg, #f7fbff 0%, #dfeef7 52%, #bcd6e8 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(10, 36, 99, 0.75), rgba(10, 36, 99, 0.15));
}

.hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    max-width: 650px;
    padding: 4rem 0;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.btn-hero-primary {
    background: #fff;
    color: var(--primary);
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s ease;
}

.btn-hero-primary:hover {
    transform: scale(1.05);
    color: var(--primary);
}

.btn-hero-secondary {
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* ── Info Cards (below hero) ───────────────────────────────────── */
.info-cards {
    margin-top: -4rem;
    position: relative;
    z-index: 10;
}

.info-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.2s ease;
}

.info-card:hover {
    transform: translateY(-4px);
}

.info-card .material-symbols-outlined {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.info-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.info-card p,
.info-card a {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.badge-open {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    background: #dcfce7;
    color: #15803d;
}

.badge-open .dot {
    width: 0.5rem;
    height: 0.5rem;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ── Section headings ──────────────────────────────────────────── */
.section-label {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--secondary);
    margin-bottom: 0.75rem;
}

/* ── Cards (generic) ───────────────────────────────────────────── */
.card {
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    transition: all 0.25s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.service-icon {
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: rgba(62, 146, 204, 0.1);
    color: var(--secondary);
    margin-bottom: 1.5rem;
    transition: all 0.2s ease;
}

.card:hover .service-icon {
    background: var(--primary);
    color: #fff;
}

/* ── About / Doctor section ────────────────────────────────────── */
.about-section {
    padding: 6rem 0;
}

.doctor-photo {
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    object-fit: cover;
    aspect-ratio: 4/5;
    width: 100%;
}

.about-quote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ── Footer ────────────────────────────────────────────────────── */
footer {
    background: var(--primary) !important;
}

footer h6, footer h5 {
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

footer a {
    color: rgba(255,255,255,0.7) !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #fff !important;
}

footer .footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

footer .footer-desc {
    color: rgba(255,255,255,0.6);
    max-width: 400px;
}

footer .material-symbols-outlined {
    color: var(--secondary);
}

/* ── Images ────────────────────────────────────────────────────── */
img {
    max-width: 100%;
    height: auto;
}

.figure-img {
    border-radius: 0.75rem;
    border: none;
}

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

/* ── Tables ────────────────────────────────────────────────────── */
.table th {
    background-color: rgba(10, 36, 99, 0.05);
    color: var(--primary);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    border-bottom-width: 2px;
}

/* ── Blockquotes ───────────────────────────────────────────────── */
.blockquote {
    font-size: 1.05rem;
    color: var(--text-muted);
    font-style: italic;
    border-left: 4px solid var(--secondary);
    padding-left: 1.5rem;
}

/* ── Breadcrumbs ───────────────────────────────────────────────── */
.breadcrumb-item a {
    color: var(--secondary);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* ── Article prose ─────────────────────────────────────────────── */
article p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

article ul, article ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

article li {
    margin-bottom: 0.35rem;
}

/* ── Accent section background ─────────────────────────────────── */
.bg-accent-light {
    background-color: rgba(232, 218, 178, 0.1);
}

/* ── Material Symbols (self-hosted fallback) ───────────────────── */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

/* ── Responsive hero ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.25rem;
    }
    .hero-section {
        min-height: 70vh;
    }
}

/* ── Print styles ──────────────────────────────────────────────── */
@media print {
    .navbar, footer, .breadcrumb, .info-cards { display: none !important; }
    body { font-size: 12pt; color: #000; }
    a { color: #000; text-decoration: none; }
    a[href]::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #666; }
    img { max-width: 100% !important; page-break-inside: avoid; }
    h1, h2, h3 { page-break-after: avoid; }
}
