/* =====================================================
   HAUSARZTPRAXIS BELM — "Old Money" Design System
   Premium Medical Practice · Luxurious Final Polish
   ===================================================== */

/* Google Fonts Import — Prestige Pairing */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@300;400;500;600&display=swap');

/* CSS Custom Properties */
:root {
    /* Colors — refined Old Money palette */
    --color-primary: #1a3d2e;
    --color-primary-light: #2a5a45;
    --color-primary-dark: #0f241a;
    --color-secondary: #faf8f5;
    --color-accent: #b8973f;
    --color-accent-hover: #a6862e;
    --color-accent-subtle: rgba(184, 151, 63, 0.08);
    --color-text: #1c1c1c;
    --color-muted: #5f6368;
    --color-white: #ffffff;
    --color-border: rgba(26, 61, 46, 0.06);
    --color-border-hover: rgba(184, 151, 63, 0.25);

    /* Typography — Prestige Serif + Clean Sans */
    --font-serif: 'DM Serif Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing — generous, airy */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.75rem;
    --space-lg: 2.5rem;
    --space-xl: 3.5rem;
    --space-2xl: 5rem;
    --space-3xl: 7rem;

    /* Transitions — silky smooth */
    --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 450ms cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-slow: 700ms cubic-bezier(0.25, 0.1, 0.25, 1);

    /* Shadows — refined, layered */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.06), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 12px 28px -6px rgba(0, 0, 0, 0.07), 0 6px 12px -4px rgba(0, 0, 0, 0.03);
    --shadow-xl: 0 24px 48px -12px rgba(26, 61, 46, 0.12);

    /* Radius — subtle, refined */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.75;
    color: var(--color-text);
    background-color: var(--color-secondary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    letter-spacing: 0.005em;
}

/* Typography — refined hierarchy */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-primary);
}

h1 {
    font-size: clamp(2.75rem, 5.5vw, 4.5rem);
}

h2 {
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
}

h3 {
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    font-weight: 400;
}

h4 {
    font-size: 1.25rem;
}

p {
    font-weight: 300;
    color: var(--color-muted);
    line-height: 1.8;
    letter-spacing: 0.01em;
}

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

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

/* =====================================================
   LAYOUT COMPONENTS
   ===================================================== */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-3xl) 0;
}

.section--alt {
    background-color: var(--color-white);
}

.section--primary {
    background-color: var(--color-primary);
    color: var(--color-secondary);
}

.section--primary h2,
.section--primary h3 {
    color: var(--color-secondary);
}

.section--primary p {
    color: rgba(249, 247, 244, 0.8);
}

/* =====================================================
   HEADER / NAVIGATION — Glassmorphism-inspired
   ===================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--color-primary);
    padding: var(--space-sm) 0;
    transition: all var(--transition-base);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.header__inner .logo__icon {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}



.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-white);
}

.logo__icon {
    width: 40px;
    height: 40px;
    transition: transform var(--transition-base);
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

.logo:hover .logo__icon {
    transform: translateX(-50%) scale(1.05);
}

.logo__text {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    letter-spacing: -0.02em;
}

.nav {
    display: none;
}

@media (min-width: 768px) {
    .nav {
        display: flex;
        gap: var(--space-lg);
        align-items: center;
    }
}

.nav__link {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    padding: var(--space-xs) 0;
    position: relative;
    transition: color var(--transition-fast);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition-base);
    border-radius: 1px;
}

.nav__link:hover,
.nav__link--active {
    color: var(--color-white);
}

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

/* Mobile Menu Toggle */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-white);
    transition: all var(--transition-fast);
    border-radius: 1px;
}

/* =====================================================
   HERO SECTION — Cinematic
   ===================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 20s ease;
}

/* Subtle Ken Burns effect on load */
.hero__bg img {
    animation: kenBurns 30s ease-in-out infinite alternate;
}

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.08);
    }
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(170deg,
            rgba(26, 61, 46, 0.75) 0%,
            rgba(26, 61, 46, 0.45) 40%,
            rgba(26, 61, 46, 0.3) 60%,
            rgba(249, 247, 244, 0.92) 100%);
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: var(--space-3xl) var(--space-lg);
    margin-top: -10vh;
}

.hero__title {
    color: var(--color-white);
    margin-bottom: var(--space-md);
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.15);
    font-weight: 300;
}

.hero__subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-xl);
    letter-spacing: 0.03em;
}

/* =====================================================
   BUTTONS — Refined
   ===================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 1rem var(--space-xl);
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: var(--color-accent);
    color: var(--color-primary-dark);
}

.btn--primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(184, 151, 63, 0.15);
}

.btn--outline {
    background: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.btn--outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* =====================================================
   CARDS / GRID — Premium
   ===================================================== */

.grid {
    display: grid;
    gap: var(--space-lg);
}

.grid--2 {
    grid-template-columns: repeat(1, 1fr);
}

.grid--3 {
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 640px) {
    .grid--2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Cards — Old Money Luxury */
.card {
    background: var(--color-white);
    padding: var(--space-xl) var(--space-lg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

a.card {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.card:hover {
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-xl), 0 0 0 1px var(--color-accent-subtle);
    transform: translateY(-4px);
}

.card:hover::before {
    opacity: 1;
}

.card__title {
    font-size: 1.3rem;
    margin-bottom: var(--space-sm);
    font-weight: 400;
}

.card__text {
    font-size: 0.9375rem;
    line-height: 1.8;
}

/* Team Members — Elegant */
.team-member {
    text-align: center;
    background: var(--color-white);
    padding: var(--space-lg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.team-member:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-xl);
    transform: translateY(-6px);
}

.team-member__image {
    width: 100%;
    aspect-ratio: 3/4;
    background: linear-gradient(145deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    margin-bottom: var(--space-md);
    overflow: hidden;
    position: relative;
    border-radius: var(--radius-sm);
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.team-member__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(15%) brightness(1.02);
    transition: all var(--transition-slow);
}

.team-member:hover .team-member__image img {
    filter: grayscale(0%) brightness(1.05);
    transform: scale(1.04);
}

.team-member__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.2);
    transition: color var(--transition-base);
}

.team-member:hover .team-member__placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.team-member__name {
    font-size: 1.15rem;
    margin-bottom: var(--space-xs);
}

.team-member__role {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

.team-member__bio {
    font-size: 0.9375rem;
}

/* =====================================================
   CONTACT / FOOTER — Refined
   ===================================================== */

.contact-grid {
    display: grid;
    gap: var(--space-xl);
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info h3 {
    margin-bottom: var(--space-md);
}

.contact-info p {
    margin-bottom: var(--space-sm);
}

.contact-info a:hover {
    color: var(--color-accent);
}

.hours-table {
    width: 100%;
    font-size: 0.9375rem;
}

.hours-table td {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border);
}

.hours-table td:first-child {
    font-weight: 500;
    color: var(--color-primary);
    width: 60px;
}

.hours-table td:nth-child(2) {
    width: 140px;
}

.footer {
    background: var(--color-primary);
    color: var(--color-secondary);
    padding: var(--space-2xl) 0 var(--space-xl);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: var(--color-accent);
}

.footer__inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer__inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer__links {
    display: flex;
    gap: var(--space-lg);
}

.footer__link {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    transition: color var(--transition-fast);
}

.footer__link:hover {
    color: var(--color-accent);
}

.footer__copy {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.05em;
}

/* =====================================================
   UTILITIES
   ===================================================== */

.text-center {
    text-align: center;
}

.text-accent {
    color: var(--color-accent);
}

.mb-0 {
    margin-bottom: 0;
}

.mb-sm {
    margin-bottom: var(--space-sm);
}

.mb-md {
    margin-bottom: var(--space-md);
}

.mb-lg {
    margin-bottom: var(--space-lg);
}

.mb-xl {
    margin-bottom: var(--space-xl);
}

/* Section Header — Prestige Typography */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--space-2xl);
}

.section-header__label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
    display: block;
    position: relative;
}

.section-header__label::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--color-accent);
    margin: var(--space-sm) auto 0;
}

.section-header__title {
    margin-bottom: var(--space-md);
}

/* Notice Box — Refined */
.notice {
    background: var(--color-white);
    border-left: 3px solid var(--color-accent);
    padding: var(--space-lg) var(--space-xl);
    margin: var(--space-lg) 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    box-shadow: var(--shadow-sm);
}

.notice__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

.notice__text {
    font-size: 0.9375rem;
    margin: 0;
}

/* Scroll Animation — Smooth & Elegant */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Staggered reveal for grid children */
.grid .reveal:nth-child(1) {
    transition-delay: 0ms;
}

.grid .reveal:nth-child(2) {
    transition-delay: 100ms;
}

.grid .reveal:nth-child(3) {
    transition-delay: 200ms;
}

.grid .reveal:nth-child(4) {
    transition-delay: 300ms;
}

/* =====================================================
   GALLERY — Praxis Page
   ===================================================== */

.grid--gallery {
    display: grid;
    gap: var(--space-md);
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .grid--gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid--gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

.gallery-item {
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    aspect-ratio: 4/3;
}

.gallery-item:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.06);
}

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

@media (max-width: 768px) {
    .section {
        padding: var(--space-2xl) 0;
    }

    .hero__content {
        margin-top: 0;
    }
}

/* Selection color */
::selection {
    background: var(--color-accent);
    color: var(--color-primary);
}

/* Smooth focus states for accessibility */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: 2px;
}