/* =============================================================
   Proktologie Prinzregenten 121 – Premium Medical Design
   style.css  –  v1.0
   ============================================================= */

/* ── Design Tokens ───────────────────────────────────────────── */
:root {
    /* Primary */
    --navy: #0c1e3a;
    --navy-light: #14325e;
    --navy-dark: #081428;

    /* Accent */
    --champagne: #c9a96e;
    --champagne-hover: #b8953d;
    --champagne-soft: rgba(201, 169, 110, 0.10);
    --champagne-glow: rgba(201, 169, 110, 0.20);

    /* Backgrounds */
    --white: #ffffff;
    --offwhite: #f8f7f4;
    --gray-light: #eeecea;
    --gray-border: #e0ddd8;

    /* Text */
    --text-heading: #0c1e3a;
    --text-body: #3a3a3a;
    --text-muted: #6b7280;
    --text-on-dark: #ffffff;
    --text-on-dark-m: rgba(255, 255, 255, 0.72);

    /* Typography */
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

    /* Layout */
    --header-h: 90px;
    --max-w: 1200px;
    --radius: 12px;
    --radius-sm: 8px;

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --duration: 0.3s;
}

/* ── Dark Mode Tokens ─────────────────────────────────────────── */
[data-theme="dark"] {
    --navy: #e8eaf0;
    --navy-light: #c5ccd8;
    --navy-dark: #f0f2f7;

    --white: #111827;
    --offwhite: #1a2235;
    --gray-light: #1e2d42;
    --gray-border: #2a3d58;

    --text-heading: #f0f2f7;
    --text-body: #c5ccd8;
    --text-muted: #8896aa;
    --text-on-dark: #f0f2f7;
    --text-on-dark-m: rgba(240, 242, 247, 0.72);

    --champagne-soft: rgba(201, 169, 110, 0.14);
    --champagne-glow: rgba(201, 169, 110, 0.25);
}

[data-theme="dark"] body {
    background: #111827;
    color: var(--text-body);
}

[data-theme="dark"] #site-header {
    background: rgba(17, 24, 39, 0.96);
    border-bottom-color: var(--gray-border);
}

[data-theme="dark"] .dropdown-menu {
    background: #1a2235;
    border-color: var(--gray-border);
}

[data-theme="dark"] .mobile-nav {
    background: #1a2235;
    border-color: var(--gray-border);
}

[data-theme="dark"] .site-footer {
    background: #0d1526;
    color: var(--text-on-dark);
}

[data-theme="dark"] .footer-bottom {
    color: rgba(255, 255, 255, 0.35);
    border-top-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .sz-note {
    color: rgba(255, 255, 255, 0.45);
}

[data-theme="dark"] .footer-social a {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-on-dark-m);
}

[data-theme="dark"] .footer-social a:hover {
    background: var(--champagne);
    color: #0d1526;
}

/* Smooth theme transition */
*,
*::before,
*::after {
    transition-property: background-color, border-color, color;
    transition-duration: 0.25s;
    transition-timing-function: ease;
}

/* ── Theme Toggle Button ──────────────────────────────────────── */

/* ── Theme Switcher FAB (Fix unten rechts) ───────────────────── */
.theme-switcher {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

/* FAB Button */
.ts-fab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1rem;
    background: #5c6bc0;
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(92, 107, 192, 0.45);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    user-select: none;
}

.ts-fab:hover {
    background: #3f51b5;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(63, 81, 181, 0.5);
}

.ts-chevron {
    font-size: 0.7rem;
    transition: transform 0.25s ease;
}

.ts-fab[aria-expanded="true"] .ts-chevron {
    transform: rotate(180deg);
}

/* Dropdown Panel */
.ts-panel {
    background: var(--white, #fff);
    border: 1px solid var(--gray-border, #e0ddd8);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(12, 30, 58, 0.14);
    overflow: hidden;
    min-width: 160px;
    animation: tsPanelIn 0.2s ease both;
}

.ts-panel[hidden] {
    display: none;
}

@keyframes tsPanelIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Options */
.ts-option {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.7rem 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-body, #3a3a3a);
    text-align: left;
    transition: background 0.15s ease, color 0.15s ease;
    font-family: var(--font, sans-serif);
}

.ts-option:hover {
    background: rgba(92, 107, 192, 0.08);
    color: #3f51b5;
}

.ts-option.active {
    background: #5c6bc0;
    color: #fff;
}

.ts-option.active:hover {
    background: #3f51b5;
}

.ts-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.ts-check {
    margin-left: auto;
    opacity: 0;
    font-size: 0.9rem;
}

.ts-option.active .ts-check {
    opacity: 1;
}

/* Dark mode panel */
[data-theme="dark"] .ts-panel {
    background: #1a2235;
    border-color: #2a3d58;
}

[data-theme="dark"] .ts-option {
    color: #c5ccd8;
}

[data-theme="dark"] .ts-option:hover {
    background: rgba(92, 107, 192, 0.15);
    color: #a5b4fc;
}


/* ── Reset & Base ────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
    font-size: 100%;
}

body {
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-body);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--duration) var(--ease);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

ul,
ol {
    list-style: none;
}

::selection {
    background: var(--champagne);
    color: var(--white);
}

/* Focus visible for keyboard accessibility */
:focus-visible {
    outline: 2px solid var(--champagne);
    outline-offset: 3px;
    border-radius: 2px;
}


/* ── Skip Link (Barrierefreiheit) ────────────────────────────── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 10000;
    padding: 0.75rem 1.5rem;
    background: var(--navy);
    color: var(--white);
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: top 0.2s;
}

.skip-link:focus {
    top: 1rem;
}


/* ══════════════════════════════════════════════════════════════
   HEADER & NAVIGATION
   ══════════════════════════════════════════════════════════════ */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--duration) var(--ease),
        box-shadow var(--duration) var(--ease);
}

#site-header.scrolled {
    border-bottom-color: var(--gray-border);
    box-shadow: 0 1px 24px rgba(12, 30, 58, 0.06);
}

.header-inner {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}


/* ── Brand / Logo ────────────────────────────────────────────── */
.header-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    color: var(--navy);
    text-decoration: none;
}

.header-brand:hover {
    color: var(--navy);
}

.brand-icon {
    color: var(--champagne);
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.brand-sub {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}


/* ── Desktop Navigation ──────────────────────────────────────── */
.desktop-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0;
    /* Override Bootstrap ul margin */
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-body);
    background: none;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: color var(--duration) var(--ease),
        background var(--duration) var(--ease);
    position: relative;
    white-space: nowrap;
    font-family: var(--font);
}

.nav-link:hover,
.nav-link.active {
    color: var(--navy);
    background: var(--champagne-soft);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--champagne);
    border-radius: 1px;
}

.chevron {
    transition: transform var(--duration) var(--ease);
    opacity: 0.5;
}

.has-dropdown.open .chevron,
.mobile-dropdown-toggle[aria-expanded="true"] .chevron {
    transform: rotate(180deg);
}


/* ── Desktop Dropdown ────────────────────────────────────────── */
.has-dropdown {
    position: relative;
}

/* Hide Bootstrap's default dropdown arrow since we use our own SVG */
.dropdown-toggle::after {
    display: none !important;
}

.dropdown-menu {
    display: block;
    /* Override Bootstrap's display: none */
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    min-width: 240px;
    width: max-content;
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: var(--radius);
    box-shadow: 0 12px 40px rgba(12, 30, 58, 0.10),
        0 2px 8px rgba(12, 30, 58, 0.04);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s var(--ease),
        transform 0.25s var(--ease),
        visibility 0.25s;
    z-index: 100;
}

/* Unsichtbare Brücke, damit das Menü beim Hovern über die Lücke nicht schließt */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -0.6rem;
    left: 0;
    right: 0;
    height: 0.6rem;
}

.has-dropdown.open .dropdown-menu,
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 0.65rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 450;
    color: var(--text-body);
    transition: background var(--duration) var(--ease),
        color var(--duration) var(--ease);
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background: var(--champagne-soft);
    color: var(--navy);
}


/* ── Header Actions & Lang Switcher ────────────────────────────── */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-left: auto;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.lang-link {
    color: var(--text-muted);
    transition: color var(--duration) var(--ease);
}

.lang-link:hover,
.lang-link.active {
    color: var(--navy);
}

.lang-sep {
    color: var(--gray-light);
    user-select: none;
}

/* ── Header CTA Button ──────────────────────────────────────── */
.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--white);
    background: var(--champagne);
    border-radius: var(--radius-sm);
    white-space: nowrap;
    flex-shrink: 0;
    transition: background var(--duration) var(--ease),
        transform 0.15s var(--ease);
}

.header-cta:hover {
    background: var(--champagne-hover);
    color: var(--white);
    transform: translateY(-1px);
}

.header-cta:active {
    transform: translateY(0);
}


/* ── Burger Button ───────────────────────────────────────────── */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--gray-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: border-color var(--duration) var(--ease);
}

.burger:hover {
    border-color: var(--champagne);
}

.burger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
    transform-origin: center;
}

.burger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.burger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* ── Mobile Navigation ───────────────────────────────────────── */
.mobile-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-border);
    box-shadow: 0 12px 32px rgba(12, 30, 58, 0.08);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s var(--ease),
        opacity 0.3s var(--ease);
}

.mobile-nav.open {
    max-height: 80vh;
    opacity: 1;
    overflow-y: auto;
}

.mobile-menu {
    padding: 0.75rem 1.5rem 1.5rem;
}

.mobile-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.85rem 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-body);
    border: none;
    background: none;
    cursor: pointer;
    border-bottom: 1px solid var(--gray-light);
    font-family: var(--font);
    text-align: left;
}

.mobile-link:hover,
.mobile-link.active {
    color: var(--navy);
}

.mobile-submenu {
    display: none;
    padding-left: 1rem;
}

.mobile-dropdown.open .mobile-submenu {
    display: block;
}

.mobile-submenu li a {
    display: block;
    padding: 0.6rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--gray-light);
}

.mobile-submenu li:last-child a {
    border-bottom: none;
}

.mobile-submenu li a:hover {
    color: var(--champagne);
}

.mobile-cta-wrap {
    padding-top: 1rem;
}

.mobile-cta {
    display: block;
    text-align: center;
    padding: 0.85rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white);
    background: var(--champagne);
    border-radius: var(--radius-sm);
    transition: background var(--duration) var(--ease);
}

.mobile-cta:hover {
    background: var(--champagne-hover);
    color: var(--white);
}

/* DKG-Badge im Mobile-Menü */
.mobile-dkg {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 1rem 0.5rem;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    list-style: none;
}

.mobile-dkg img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.mobile-dkg span {
    font-size: 0.72rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.4;
    letter-spacing: 0.02em;
}


/* ══════════════════════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--header-h) + 3rem) 1.5rem 4rem;
    overflow: hidden;
}

.hero.hero-compact {
    min-height: 55vh;
    padding: calc(var(--header-h) + 2.5rem) 1.5rem 3rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 70% 40%, rgba(201, 169, 110, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 60% 60% at 20% 80%, rgba(20, 50, 94, 0.06) 0%, transparent 60%),
        linear-gradient(170deg, var(--navy) 0%, #0f2847 35%, #162f52 65%, var(--navy-dark) 100%);
    z-index: 0;
}

/* Subtle animated grain */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
    opacity: 0.4;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 780px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--champagne);
    background: rgba(201, 169, 110, 0.12);
    border: 1px solid rgba(201, 169, 110, 0.25);
    padding: 0.4rem 1.2rem;
    border-radius: 100px;
    margin-bottom: 1.75rem;
    animation: fadeInDown 0.8s var(--ease) both;
}

.hero-title {
    font-size: clamp(1.75rem, 4.5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-on-dark);
    letter-spacing: 0.03em;
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s 0.15s var(--ease) both;
}

.hero-compact .hero-title {
    margin-bottom: 2rem;
}

.hero-text {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    line-height: 1.8;
    color: var(--text-on-dark-m);
    max-width: 640px;
    margin: 0 auto 2.5rem;
    animation: fadeInDown 0.8s 0.3s var(--ease) both;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    animation: fadeInDown 0.8s 0.3s var(--ease) both;
}


/* ── Buttons ─────────────────────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2.2rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy-dark);
    background: var(--champagne);
    border: 2px solid var(--champagne);
    border-radius: var(--radius-sm);
    letter-spacing: 0.02em;
    transition: background var(--duration) var(--ease),
        transform 0.15s var(--ease),
        box-shadow var(--duration) var(--ease);
}

.btn-primary:hover {
    background: var(--champagne-hover);
    border-color: var(--champagne-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 169, 110, 0.3);
}

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

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2.2rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-on-dark);
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-sm);
    letter-spacing: 0.02em;
    transition: border-color var(--duration) var(--ease),
        background var(--duration) var(--ease),
        transform 0.15s var(--ease);
}

.btn-secondary:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    transform: translateY(-2px);
}

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


/* ══════════════════════════════════════════════════════════════
   ABOUT DOCTOR
   ══════════════════════════════════════════════════════════════ */
.about-doctor {
    background: var(--white);
    padding: 5rem 1.5rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 3.5rem;
    align-items: start;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 16px 48px rgba(12, 30, 58, 0.10),
        0 4px 12px rgba(12, 30, 58, 0.06);
    object-fit: cover;
}

.about-image::after {
    content: '';
    position: absolute;
    bottom: -12px;
    right: -12px;
    width: 60%;
    height: 60%;
    border: 2px solid var(--champagne);
    border-radius: var(--radius);
    z-index: -1;
    opacity: 0.4;
}

.about-text {
    padding: 0 0 1rem 0;
}

.about-heading {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.about-accent {
    width: 3rem;
    height: 3px;
    background: var(--champagne);
    border-radius: 2px;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-body);
    margin-bottom: 1.75rem;
}

.about-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--champagne-hover);
    transition: color var(--duration) var(--ease),
        gap var(--duration) var(--ease);
}

.about-link:hover {
    color: var(--navy);
    gap: 0.75rem;
}

.about-link svg {
    transition: transform var(--duration) var(--ease);
}

.about-link:hover svg {
    transform: translateX(3px);
}

.about-dkg {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.about-dkg img {
    height: 52px;
    width: auto;
    flex-shrink: 0;
    object-fit: contain;
}

.about-dkg span {
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--text-muted, rgba(255, 255, 255, 0.55));
}

@media (max-width: 640px) {
    .about-dkg {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
    }
}


/* ══════════════════════════════════════════════════════════════
   INFO SECTION (Mikrobiom)
   ══════════════════════════════════════════════════════════════ */
.info-section {
    background: var(--offwhite);
    padding: 4.5rem 1.5rem;
}

.info-block {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    padding: 0 1rem;
}

.info-block::before {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--champagne);
    border-radius: 2px;
    margin: 0 auto 2rem;
}

.info-block p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-body);
}


/* ══════════════════════════════════════════════════════════════
   KOMPETENZEN (Cards Grid)
   ══════════════════════════════════════════════════════════════ */
.kompetenzen {
    background: var(--white);
    padding: 5rem 1.5rem 6rem;
}

.container {
    max-width: var(--max-w);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.section-accent {
    width: 3rem;
    height: 3px;
    background: var(--champagne);
    border-radius: 2px;
    margin: 0 auto;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.kompetenz-card:first-child {
    grid-column: 1 / -1;
}

.kompetenz-card {
    display: block;
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    box-shadow: 0 4px 24px rgba(12, 30, 58, 0.07);
    transition: transform 0.35s var(--ease),
        box-shadow 0.35s var(--ease),
        border-color 0.35s var(--ease);
}

.kompetenz-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(12, 30, 58, 0.08),
        0 2px 8px rgba(12, 30, 58, 0.04);
    border-color: var(--champagne);
}

.card-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--champagne-soft);
    color: var(--champagne);
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    transition: background var(--duration) var(--ease),
        color var(--duration) var(--ease);
}

.kompetenz-card:hover .card-icon {
    background: var(--champagne-glow);
    color: var(--champagne-hover);
}

.kompetenz-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.65rem;
    letter-spacing: -0.01em;
}

.kompetenz-card p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-muted);
}


/* ══════════════════════════════════════════════════════════════
   PRAXISBILDER
   ══════════════════════════════════════════════════════════════ */
.praxisbilder {
    padding: 2rem 1.5rem 5rem;
    background: var(--bg);
}

.praxis-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 0;
}

.praxis-img-wrap {
    position: relative;
    border-radius: var(--radius);
    overflow: visible;
    line-height: 0;
}

/* Bild selbst */
.praxis-img-wrap img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: var(--radius);
    display: block;
    transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
    box-shadow: 0 8px 32px rgba(12, 30, 58, 0.10);
    position: relative;
    z-index: 1;
}

.praxis-img-wrap:hover img {
    transform: scale(1.02);
    box-shadow: 0 16px 48px rgba(12, 30, 58, 0.18);
}

/* Video-Variante: überspannt 2 Spalten */
.praxis-video-wrap {
    grid-column: span 2;
}

.praxis-video-wrap video {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: var(--radius);
    display: block;
    box-shadow: 0 8px 32px rgba(12, 30, 58, 0.10);
}

/* Play/Pause Button */
.praxis-video-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(12, 30, 58, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 2px solid var(--champagne);
    color: var(--champagne);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.25s, transform 0.25s;
    z-index: 3;
}

.praxis-video-wrap:hover .praxis-video-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Mobile: Video volle Breite, Bilder darunter 2-spaltig */
@media (max-width: 640px) {
    .praxis-grid {
        grid-template-columns: 1fr;
    }

    .praxis-video-wrap {
        grid-column: span 1;
    }

    /* Bilder 3 + 4 nebeneinander */
    .praxis-grid .praxis-img-wrap:not(.praxis-video-wrap) {
        grid-column: span 1;
    }

    .praxis-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    /* Bilder in 2er-Gruppe */
    .praxis-grid .praxis-img-wrap:not(.praxis-video-wrap):nth-child(2),
    .praxis-grid .praxis-img-wrap:not(.praxis-video-wrap):nth-child(3) {
        display: grid;
    }
}

@media (max-width: 640px) {
    .praxis-grid {
        grid-template-columns: 1fr 1fr;
    }

    .praxis-video-wrap {
        grid-column: 1 / -1;
    }
}

/* Goldener Streifen rechts */
.praxis-img--accent-right::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 55%;
    height: 55%;
    border: 2px solid var(--champagne);
    border-radius: var(--radius);
    z-index: 0;
    opacity: 0.45;
    pointer-events: none;
    transition: opacity 0.3s;
}

.praxis-img--accent-right:hover::after {
    opacity: 0.75;
}

/* Goldener Streifen links */
.praxis-img--accent-left::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: -10px;
    width: 55%;
    height: 55%;
    border: 2px solid var(--champagne);
    border-radius: var(--radius);
    z-index: 0;
    opacity: 0.45;
    pointer-events: none;
    transition: opacity 0.3s;
}

.praxis-img--accent-left:hover::after {
    opacity: 0.75;
}

/* Caption */
.praxis-caption {
    position: absolute;
    bottom: 0.85rem;
    left: 1rem;
    z-index: 2;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(12, 30, 58, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    pointer-events: none;
}


/* ══════════════════════════════════════════════════════════════
   ZERTIFIKATE
   ══════════════════════════════════════════════════════════════ */
.zertifikate {
    background: var(--offwhite);
    padding: 3.5rem 1.5rem;
    border-top: 1px solid var(--gray-light);
    border-bottom: 1px solid var(--gray-light);
}

.zertifikate-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.zertifikat-item {
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.zertifikat-logo {
    margin-bottom: 1rem;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zertifikat-logo img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

.zertifikat-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--champagne);
    margin-bottom: 0.5rem;
}

.zertifikat-name {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* DKG-Item: auf Desktop versteckt, nur auf Mobile sichtbar */
.zertifikat-item--mobile-only {
    display: none;
}

@media (max-width: 640px) {
    .zertifikat-item--mobile-only {
        display: flex;
    }

    /* about-dkg auf Mobile ausblenden (steht nun in der Zertifikate-Leiste) */
    .about-dkg {
        display: none;
    }
}


/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */
.site-footer {
    background: var(--navy);
    color: var(--text-on-dark);
    padding: 4rem 1.5rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-heading {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--champagne);
    margin-bottom: 1.25rem;
}

.footer-address {
    font-style: normal;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-on-dark-m);
}

.footer-address p {
    margin-bottom: 0.75rem;
}

.footer-address a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-on-dark-m);
    transition: color var(--duration) var(--ease);
}

.footer-address a:hover {
    color: var(--champagne);
}

.footer-address svg {
    flex-shrink: 0;
    opacity: 0.6;
}

/* Sprechzeiten */
.sprechzeiten {
    font-size: 0.9rem;
}

.sz-row {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.35rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sz-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sz-row dt {
    font-weight: 600;
    color: var(--text-on-dark);
    min-width: 38px;
    flex-shrink: 0;
}

.sz-row dd {
    color: var(--text-on-dark-m);
    line-height: 1.6;
}

.sz-note {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    font-style: italic;
}

/* Footer Links */
.footer-links {
    margin-bottom: 1.5rem;
    padding-left: 0;
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-on-dark-m);
    transition: color var(--duration) var(--ease);
}

.footer-links a:hover {
    color: var(--champagne);
}

/* Social Icons */
.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-on-dark-m);
    transition: background var(--duration) var(--ease),
        color var(--duration) var(--ease),
        transform 0.2s var(--ease);
}

.footer-social a:hover {
    background: var(--champagne);
    color: var(--navy);
    transform: translateY(-2px);
}

/* Brand-Logo im Footer */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand img {
    flex-shrink: 0;
    opacity: 0.85;
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.footer-brand-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-on-dark-m);
    letter-spacing: 0.01em;
}

.footer-brand-sub {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
}

/* Footer Bottom */
.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.02em;
}


/* Footer Terminvereinbarungs-Link */
.footer-termin-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--champagne);
    text-decoration: none;
    transition: color var(--duration) var(--ease),
        gap 0.2s var(--ease);
}

.footer-termin-link:hover {
    color: #e8c97e;
    gap: 0.75rem;
}

.footer-termin-link svg {
    flex-shrink: 0;
    opacity: 0.9;
}


/* ══════════════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATION
   ══════════════════════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s var(--ease),
        transform 0.7s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for cards */
.kompetenz-card.reveal:nth-child(1) {
    transition-delay: 0s;
}

.kompetenz-card.reveal:nth-child(2) {
    transition-delay: 0.1s;
}

.kompetenz-card.reveal:nth-child(3) {
    transition-delay: 0.2s;
}

.kompetenz-card.reveal:nth-child(4) {
    transition-delay: 0.3s;
}

.kompetenz-card.reveal:nth-child(5) {
    transition-delay: 0.4s;
}


/* ── Keyframes ───────────────────────────────────────────────── */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ══════════════════════════════════════════════════════════════ */

/* Tablet & Below: ≤ 992px */
@media (max-width: 992px) {
    :root {
        --header-h: 68px;
    }

    .header-inner {
        padding: 0 1rem;
        gap: 1rem;
    }

    .header-actions {
        gap: 0.75rem;
    }

    .desktop-nav {
        display: none;
    }

    .header-cta {
        display: none;
    }

    .burger {
        display: flex;
    }

    .hero {
        min-height: 80vh;
        padding-top: calc(var(--header-h) + 2rem);
    }

    .hero.hero-compact {
        min-height: 45vh;
    }

    .hero-title {
        font-size: clamp(1.6rem, 5vw, 2.5rem);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .about-image {
        max-width: 420px;
        margin: 0 auto;
    }

    .about-image::after {
        display: none;
    }

    .about-accent {
        margin: 0 auto 1.5rem;
    }


    .zertifikate-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-col:last-child {
        grid-column: 1 / -1;
    }
}

/* Mobile: ≤ 600px */
@media (max-width: 600px) {
    .header-inner {
        padding: 0 0.75rem;
        gap: 0.75rem;
    }

    .brand-name {
        font-size: 0.92rem;
    }

    .brand-sub {
        font-size: 0.7rem;
    }

    .hero {
        min-height: auto;
        padding: calc(var(--header-h) + 2rem) 1rem 3rem;
    }

    .hero.hero-compact {
        min-height: auto;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .about-doctor {
        padding: 3rem 1rem;
    }

    .about-image {
        max-width: 320px;
    }

    .about-heading {
        font-size: 1.3rem;
    }

    .about-text p {
        font-size: 0.95rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .kompetenzen {
        padding: 3rem 1rem 4rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .info-section {
        padding: 3rem 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-col:last-child {
        grid-column: auto;
    }
}

/* Small Mobile: ≤ 480px */
@media (max-width: 480px) {
    .brand-icon {
        display: none;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.9rem;
    }
}

/* ══════════════════════════════════════════════════════════════
   LEGAL PAGES (Impressum / Datenschutz)
   ══════════════════════════════════════════════════════════════ */
.legal-block {
    transition: box-shadow 0.25s var(--ease, cubic-bezier(0.4,0,0.2,1)),
                transform   0.25s var(--ease, cubic-bezier(0.4,0,0.2,1));
}

.legal-block:hover {
    box-shadow: 0 10px 44px rgba(12, 30, 58, 0.13),
                0 2px  8px  rgba(12, 30, 58, 0.06);
    transform: translateY(-4px);
}