/* ============================================================
   ZAHNARZTPRAXIS MÜLLER — Premium Design System
   ============================================================ */

:root {
    --navy:       #0C1B2E;
    --navy-mid:   #152540;
    --teal:       #4BAFC8;
    --teal-dark:  #3594AA;
    --teal-light: #A8D8E8;
    --gold:       #C4A55C;
    --gold-light: #E8D39B;
    --white:      #FFFFFF;
    --light:      #F4F8FA;
    --muted:      #6B7280;
    --border:     #E2EBF0;
    --dark-text:  #111827;

    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans:  'Inter', system-ui, sans-serif;

    --shadow-sm:  0 2px 12px rgba(12, 27, 46, 0.08);
    --shadow-md:  0 8px 32px rgba(12, 27, 46, 0.12);
    --shadow-lg:  0 20px 60px rgba(12, 27, 46, 0.18);
    --shadow-xl:  0 32px 80px rgba(12, 27, 46, 0.24);

    --radius-sm:  8px;
    --radius-md:  16px;
    --radius-lg:  24px;
    --radius-xl:  40px;

    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-sans);
    color: var(--dark-text);
    line-height: 1.65;
    overflow-x: hidden;
    background: var(--white);
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { background: none; border: none; cursor: pointer; font-family: inherit; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--light); }
::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 10px; }

/* ── Scroll Progress Bar ────────────────────────────────────── */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--teal), var(--gold));
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ── Container ──────────────────────────────────────────────── */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ── Typography ─────────────────────────────────────────────── */
.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--navy);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header--light .section-title,
.section-header--light .section-eyebrow {
    color: var(--white);
}
.section-header--light .section-eyebrow { color: var(--teal-light); }
.section-header--light .section-subtitle { color: rgba(255,255,255,0.75); }

.gradient-text {
    background: linear-gradient(135deg, var(--teal-light) 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-lg { padding: 18px 36px; font-size: 1.05rem; }
.btn-sm { padding: 10px 20px; font-size: 0.875rem; }

.btn-primary {
    background: var(--teal);
    color: var(--white);
    border-color: var(--teal);
    box-shadow: 0 4px 20px rgba(75, 175, 200, 0.35);
}
.btn-primary:hover {
    background: var(--teal-dark);
    border-color: var(--teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(75, 175, 200, 0.45);
}

.btn-outline {
    background: transparent;
    color: var(--teal);
    border-color: var(--teal);
}
.btn-outline:hover {
    background: var(--teal);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-ghost-white {
    background: rgba(255,255,255,0.12);
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
    backdrop-filter: blur(8px);
}
.btn-ghost-white:hover {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.8);
    transform: translateY(-2px);
}

.btn-nav {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    background: var(--teal);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--teal);
    white-space: nowrap;
}
.btn-nav:hover {
    background: var(--teal-dark);
    border-color: var(--teal-dark);
    transform: translateY(-1px);
}

/* ── Header / Nav ───────────────────────────────────────────── */
.header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 0 32px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.07);
}

.header.transparent {
    background: rgba(255, 255, 255, 0.0);
    backdrop-filter: none;
    box-shadow: none;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 24px rgba(0,0,0,0.1);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1240px;
    margin: 0 auto;
    padding: 12px 0;
    gap: 32px;
}

.logo-img {
    height: 112px;
    width: auto;
    max-width: 440px;
    transition: var(--transition);
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    padding: 8px 14px;
    color: var(--navy);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px; left: 50%; right: 50%;
    height: 2px;
    background: var(--teal);
    border-radius: 2px;
    transition: var(--transition);
}
.nav-link:hover::after,
.nav-link.active::after { left: 14px; right: 14px; }
.nav-link:hover { color: var(--teal); }
.nav-link.active { color: var(--teal); }

/* On transparent header (dark hero), links stay readable with subtle shadow */
.header.transparent .nav-link {
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
.header.transparent .nav-link:hover,
.header.transparent .nav-link.active { color: var(--white); }
.header.transparent .btn-nav {
    background: var(--teal);
    border-color: var(--teal);
}
.header.transparent .burger span { background: var(--white); }

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    cursor: pointer;
}
.burger span {
    display: block;
    width: 24px; height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}
.burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--navy);
    padding-top: 136px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(12, 27, 46, 0.88) 0%,
        rgba(12, 27, 46, 0.65) 55%,
        rgba(12, 27, 46, 0.40) 100%
    );
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 160px 32px 80px;
}

.hero-content { flex: 1; max-width: 620px; }

.hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--teal-light);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.1s forwards;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.8rem, 5.5vw, 5rem);
    font-weight: 700;
    line-height: 1.08;
    color: var(--white);
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.25s forwards;
}

.hero-sub {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 500px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.55s forwards;
}

/* Doctor Card */
.hero-doc-card {
    position: relative;
    width: 300px;
    flex-shrink: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    animation: fadeInRight 1s ease-out 0.7s forwards;
}

.hero-doc-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: top center;
}

.hero-doc-info {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 20px 24px;
    background: linear-gradient(0deg, rgba(12,27,46,0.92) 0%, transparent 100%);
}
.hero-doc-info strong {
    display: block;
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
}
.hero-doc-info span {
    color: var(--teal-light);
    font-size: 0.85rem;
}

.hero-doc-badge {
    position: absolute;
    top: 20px; right: 20px;
    background: rgba(12,27,46,0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(75,175,200,0.4);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    text-align: center;
    color: var(--white);
}
.badge-num {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gold-light);
    line-height: 1;
}
.badge-label {
    font-size: 0.7rem;
    line-height: 1.3;
    color: rgba(255,255,255,0.75);
    margin-top: 2px;
}

/* Scroll Hint */
.scroll-hint {
    position: absolute;
    bottom: 40px; left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.6);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeIn 1s ease-out 1.2s forwards;
}

.scroll-arrow-anim {
    width: 20px; height: 30px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 10px;
    position: relative;
}
.scroll-arrow-anim::after {
    content: '';
    position: absolute;
    top: 5px; left: 50%;
    transform: translateX(-50%);
    width: 3px; height: 6px;
    background: rgba(255,255,255,0.7);
    border-radius: 2px;
    animation: scrollBounce 2s infinite;
}

/* ── Stats Bar ──────────────────────────────────────────────── */
.stats-bar {
    background: var(--navy-mid);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 0;
}

.stat-item {
    text-align: center;
    padding: 16px 20px;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    color: var(--teal-light);
    line-height: 1;
    margin-bottom: 8px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}
.stat-number span:last-child {
    font-size: 1.8rem;
    color: var(--gold-light);
}

.stat-item > p {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: rgba(255,255,255,0.12);
}

/* ── About Section ──────────────────────────────────────────── */
.about {
    padding: 120px 0;
    background: var(--white);
    overflow: hidden;
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-img-col {
    position: relative;
}

.about-img-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/5;
}
.about-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.8s ease;
}
.about-img-wrap:hover img { transform: scale(1.04); }

.about-accent-card {
    position: absolute;
    bottom: -28px;
    right: -28px;
    background: var(--navy);
    color: var(--white);
    padding: 28px 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    max-width: 260px;
}

.accent-quote {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--teal-light);
    line-height: 1.5;
    margin-bottom: 8px;
}
.accent-name {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
}

.about-text-col { padding-left: 20px; }

.about-lead {
    font-size: 1.1rem;
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 36px;
}

.check-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 44px;
}
.check-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--dark-text);
}
.check-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px; height: 26px;
    min-width: 26px;
    background: rgba(75, 175, 200, 0.12);
    color: var(--teal);
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
}

/* ── Services ───────────────────────────────────────────────── */
.services {
    padding: 120px 0;
    background: var(--light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 40px 32px;
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(75,175,200,0.06) 0%, transparent 60%);
    opacity: 0;
    transition: var(--transition);
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(75,175,200,0.3);
}
.service-card:hover::before { opacity: 1; }

.service-card--all {
    background: var(--navy);
    border-color: var(--navy);
}
.service-card--all h3,
.service-card--all p,
.service-card--all .card-arrow { color: var(--white) !important; }
.service-card--all .service-icon-wrap {
    background: rgba(255,255,255,0.1);
    color: var(--teal-light);
}
.service-card--all::before {
    background: linear-gradient(135deg, rgba(75,175,200,0.15) 0%, transparent 60%);
}

.service-icon-wrap {
    width: 56px; height: 56px;
    background: rgba(75, 175, 200, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal);
    margin-bottom: 20px;
    transition: var(--transition);
}
.service-card:hover .service-icon-wrap {
    background: var(--teal);
    color: var(--white);
    transform: scale(1.08);
}

.service-card h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 10px;
}
.service-card p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.6;
    flex: 1;
}
.card-arrow {
    margin-top: 24px;
    font-size: 1.1rem;
    color: var(--teal);
    transition: var(--transition);
    display: block;
}
.service-card:hover .card-arrow { transform: translateX(6px); }

/* ── Gallery Strip ──────────────────────────────────────────── */
.gallery-section {
    padding: 120px 0 0;
    background: var(--white);
}

.gallery-strip {
    display: flex;
    height: 420px;
    overflow: hidden;
    margin-top: 64px;
}

.gallery-item {
    flex: 1;
    position: relative;
    overflow: hidden;
    transition: flex 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}
.gallery-item:hover { flex: 2.5; }

.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(12,27,46,0.75) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 28px;
    opacity: 0;
    transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.05em;
}

/* ── Team Section ───────────────────────────────────────────── */
.team-section {
    padding: 120px 0;
    background: var(--light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.team-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border);
}
.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.team-img-wrap {
    aspect-ratio: 4/5;
    overflow: hidden;
}
.team-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s ease;
}
.team-card:hover .team-img-wrap img { transform: scale(1.06); }

.team-info {
    padding: 20px 22px;
    border-top: 1px solid var(--border);
}
.team-info h3 {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 4px;
}
.team-info p {
    font-size: 0.8rem;
    color: var(--teal);
    font-weight: 500;
}

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

/* ── Testimonials ───────────────────────────────────────────── */
.testimonials-section {
    padding: 120px 0;
    background: var(--navy);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 40px 32px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}
.testimonial-card:hover {
    background: rgba(255,255,255,0.09);
    border-color: rgba(75,175,200,0.4);
    transform: translateY(-4px);
}

.stars {
    color: var(--gold);
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.testimonial-card p {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.75;
    font-style: italic;
    margin-bottom: 24px;
}

.testimonial-card cite {
    font-style: normal;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--teal-light);
}

/* ── CTA Banner ─────────────────────────────────────────────── */
.cta-banner {
    position: relative;
    padding: 140px 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.cta-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(12,27,46,0.92) 0%, rgba(12,27,46,0.78) 100%);
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.cta-content h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.cta-content > p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.cta-address {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.05em;
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
    background: #07101E;
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr 1fr;
    gap: 48px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand { max-width: 260px; }

.footer-logo {
    height: 52px;
    width: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-brand p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.65;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
}
.social-link {
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}
.social-link:hover {
    background: var(--teal);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal-light);
    margin-bottom: 20px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
    transition: var(--transition);
}
.footer-col ul li a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-contact-list { display: flex; flex-direction: column; gap: 14px; }
.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.5;
}
.footer-contact-list li svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--teal);
}
.footer-contact-list a {
    color: rgba(255,255,255,0.55);
    transition: var(--transition);
}
.footer-contact-list a:hover { color: var(--white); }

.hours-table { border-collapse: collapse; width: 100%; }
.hours-table td {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.55);
    padding: 5px 0;
    vertical-align: top;
}
.hours-table td:first-child {
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    padding-right: 16px;
    white-space: nowrap;
}

.footer-bottom {
    padding: 24px 0;
}
.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
}
.footer-legal {
    display: flex;
    gap: 24px;
}
.footer-legal a {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
    transition: var(--transition);
}
.footer-legal a:hover { color: rgba(255,255,255,0.75); }

/* ── Scroll Reveal Animations ───────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1) var(--delay, 0s),
                transform 0.7s cubic-bezier(0.4,0,0.2,1) var(--delay, 0s);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-48px);
    transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1),
                transform 0.8s cubic-bezier(0.4,0,0.2,1);
}
.reveal-right {
    opacity: 0;
    transform: translateX(48px);
    transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1),
                transform 0.8s cubic-bezier(0.4,0,0.2,1);
}
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ── Keyframes ──────────────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50%       { transform: translateX(-50%) translateY(8px); opacity: 0.5; }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .about-inner { gap: 56px; }
    .about-accent-card { right: -12px; bottom: -12px; }
}

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    .stat-divider { display: none; }
    .about-inner { grid-template-columns: 1fr; }
    .about-img-col { max-width: 480px; margin: 0 auto; }
    .about-text-col { padding-left: 0; }
    .about-accent-card {
        position: relative;
        bottom: auto; right: auto;
        margin-top: 20px;
        max-width: 100%;
    }
    .testimonials-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }

    /* Header */
    .header { padding: 0 20px; }
    .nav { padding: 16px 0; }
    .btn-nav { display: none; }
    .burger { display: flex; }
    .hero { padding-top: 144px; }
    .page-hero { padding-top: 144px; }

    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        height: 100vh;
        width: 280px;
        background: var(--navy);
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        padding: 80px 32px 40px;
        box-shadow: var(--shadow-xl);
        transition: right 0.4s cubic-bezier(0.4,0,0.2,1);
        z-index: 999;
    }
    .nav-links.open { right: 0; }
    .nav-link {
        font-size: 1.1rem;
        padding: 12px 16px;
        width: 100%;
    }

    /* Hero */
    .hero-inner {
        flex-direction: column;
        padding: 130px 20px 60px;
        text-align: center;
    }
    .hero-content { max-width: 100%; }
    .hero-actions { justify-content: center; }
    .hero-doc-card {
        width: 220px;
        opacity: 1;
        animation: none;
    }
    .scroll-hint { display: none; }

    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    /* Services */
    .services-grid { grid-template-columns: 1fr; }

    /* Gallery */
    .gallery-strip { height: 260px; }

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

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom-inner { flex-direction: column; gap: 12px; text-align: center; }
    .footer-brand { max-width: 100%; }
}

@media (max-width: 480px) {
    .hero-headline { font-size: 2.4rem; }
    .hero-doc-card { display: none; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .team-grid { grid-template-columns: 1fr; }
    .gallery-strip { height: 200px; }
    .cta-banner { padding: 80px 0; }
    .btn-lg { padding: 16px 28px; font-size: 1rem; }
}

/* ── Subpage Common Styles ──────────────────────────────────── */
.page-hero {
    position: relative;
    height: 45vh;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
    padding-top: 136px;
    padding-bottom: 60px;
    overflow: hidden;
    background: var(--navy);
}
.page-hero-bg {
    position: absolute;
    inset: 0;
}
.page-hero-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(12,27,46,0.88) 0%, rgba(12,27,46,0.45) 100%);
}
.page-hero-content {
    position: relative;
    z-index: 2;
}
.page-hero-content h1 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}
.page-hero-content p {
    color: rgba(255,255,255,0.75);
    font-size: 1.1rem;
}

/* Vertrauen / USP Cards */
.usp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}
.usp-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.usp-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(75,175,200,0.3);
}
.usp-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}
.usp-card h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--navy);
    margin-bottom: 10px;
}
.usp-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.65; }

/* Testimonials on sub-pages */
.testimonials { background: var(--light); padding: 80px 0; }
.testimonials h2 {
    font-family: var(--font-serif);
    text-align: center;
    font-size: 2rem;
    color: var(--navy);
    margin-bottom: 48px;
}
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
}
.testimonial {
    background: var(--white);
    padding: 36px 28px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.testimonial:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testimonial p {
    font-size: 1rem;
    font-style: italic;
    color: var(--dark-text);
    line-height: 1.7;
    margin-bottom: 20px;
    position: relative;
    padding-top: 20px;
}
.testimonial p::before {
    content: '\201C';
    position: absolute;
    top: -8px; left: 0;
    font-size: 3.5rem;
    color: var(--teal);
    font-family: var(--font-serif);
    line-height: 1;
    opacity: 0.5;
}
.testimonial cite {
    display: block;
    font-style: normal;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--teal);
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
}
.step {
    text-align: center;
    padding: 36px 28px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-number {
    width: 52px; height: 52px;
    background: var(--teal);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    font-family: var(--font-serif);
    margin: 0 auto 20px;
    box-shadow: 0 4px 16px rgba(75,175,200,0.4);
}
.step h4 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--navy);
    margin-bottom: 10px;
}
.step p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }

/* Generic service/leistung cards */
.leistung-card {
    background: var(--white);
    padding: 32px 28px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.leistung-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(75,175,200,0.3);
}
.leistung-card h3 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--navy);
    margin-bottom: 10px;
}
.leistung-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }

/* Team page member cards */
.team-member {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    text-align: center;
}
.team-member:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.team-member img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    object-position: top center;
}
.team-member h3 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--navy);
    margin: 20px 0 6px;
    padding: 0 16px;
}
.team-member p {
    font-size: 0.85rem;
    color: var(--teal);
    font-weight: 500;
    padding: 0 16px 20px;
}

/* Contact form */
.form-group { margin-bottom: 20px; }
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--dark-text);
    background: var(--white);
    transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(75, 175, 200, 0.12);
}
.form-group textarea { resize: vertical; min-height: 140px; }

/* Intro text on subpages */
.intro-text {
    text-align: center;
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 700px;
    margin: -20px auto 60px;
    line-height: 1.7;
}

/* Impressum */
.impressum-section {
    padding: 120px 0 80px;
    background: var(--white);
}
.impressum-content {
    max-width: 780px;
    margin: 0 auto;
}
.impressum-content h1 {
    font-family: var(--font-serif);
    text-align: center;
    font-size: 2.5rem;
    color: var(--navy);
    margin-bottom: 60px;
}
.impressum-content h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--teal);
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
    margin: 50px 0 20px;
}
.impressum-content h3 {
    font-size: 1.15rem;
    color: var(--navy);
    margin: 32px 0 12px;
}
.impressum-content p {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 16px;
}
.impressum-content ul {
    padding-left: 24px;
    margin-bottom: 20px;
}
.impressum-content li {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 8px;
}
.impressum-content a {
    color: var(--teal);
    text-decoration: underline;
    transition: var(--transition);
}
.impressum-content a:hover { color: var(--teal-dark); }

/* CTA Section on subpages */
.cta {
    background: var(--navy);
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}
.cta h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 16px;
}
.cta p { color: rgba(255,255,255,0.75); margin-bottom: 36px; font-size: 1.05rem; }
.cta .contact-options p { color: rgba(255,255,255,0.6); margin: 8px 0; }

/* Map / contact layout */
.kontakt-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}
.oeffnungszeiten { margin-top: 28px; }
.map-placeholder,
.kontakt-form {
    background: var(--light);
    padding: 40px;
    border-radius: var(--radius-md);
}
.termin-hinweis {
    background: var(--light);
    padding: 48px;
    border-radius: var(--radius-md);
    text-align: center;
    margin-bottom: 40px;
}
.termin-hinweis h2 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--navy);
    margin-bottom: 16px;
}
.termin-hinweis p { color: var(--muted); margin-bottom: 28px; }

/* Leistungen-Grid */
.leistungen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

/* Vorteile */
.vorteile ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    list-style: none;
}
.vorteile li {
    padding: 18px 22px;
    background: var(--light);
    border-left: 4px solid var(--teal);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.95rem;
    color: var(--dark-text);
}

/* Overview grid on index */
.overview { background: var(--light); padding: 80px 0; }
.overview h2 { font-family: var(--font-serif); text-align: center; margin-bottom: 60px; color: var(--navy); }
.overview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.overview-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.overview-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.overview-icon { font-size: 3rem; margin-bottom: 20px; display: block; }
.overview-card h3 { font-family: var(--font-serif); color: var(--teal); margin-bottom: 14px; font-size: 1.2rem; }
.overview-card p { font-size: 0.9rem; color: var(--muted); margin-bottom: 24px; line-height: 1.65; }

@media (max-width: 768px) {
    .kontakt-content { grid-template-columns: 1fr; gap: 40px; }
    .impressum-content { padding: 0 16px; }
    .gallery-strip {
        overflow-x: auto;
        height: 240px;
    }
    .gallery-item { min-width: 200px; flex: none; }
    .gallery-item:hover { flex: none; }
}
