/* ============================================
   CSS VARIABLEN & RESET
============================================= */
:root {
    /* Farben — Schwarz/Grau/Dezent */
    --color-black: #0a0a0a;
    --color-dark: #1a1a1a;
    --color-charcoal: #2a2a2a;
    --color-gray-dark: #3a3a3a;
    --color-gray: #6b6b6b;
    --color-gray-light: #a0a0a0;
    --color-gray-lighter: #d0d0d0;
    --color-off-white: #f5f5f3;
    --color-white: #ffffff;
    --color-accent: #6aab6d;
    --color-accent-light: #8bc48e;

    /* Typografie */
    --font-heading: 'Cormorant Garamond', 'Georgia', serif;
    --font-body: 'Montserrat', 'Helvetica Neue', sans-serif;
    --font-signature: 'Great Vibes', cursive;

    /* Abstände */
    --section-padding: 100px 0;
    --container-width: 1200px;
    --header-height: 80px;
    --topbar-height: 36px;

    /* Übergänge */
    --transition: 0.3s ease;
    --transition-slow: 0.6s ease;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: calc(var(--header-height) + var(--topbar-height));
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--color-dark);
    background-color: var(--color-white);
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

img {
    max-width: 100%;
    height: auto;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

img:hover {
    filter: grayscale(70%);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 30px;
}

.icon {
    width: 14px;
    height: 14px;
    vertical-align: middle;
    margin-right: 6px;
}

/* ============================================
   STARTANIMATION — Intro Overlay
============================================= */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-black);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.8s ease;
}

.intro-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.intro-overlay.hidden {
    display: none;
}

.intro-content {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: introFadeIn 1.5s ease 0.3s forwards;
}

/* Intro Logo */
.intro-logo {
    display: flex;
    justify-content: center;
}

.intro-logo-img {
    width: 300px;
    height: auto;
    margin: 0 auto 30px;
    display: block;
    filter: none;
    opacity: 0;
    transform: scale(0.8);
    animation: introLogoReveal 1.8s ease 0.5s forwards;
}

@keyframes introLogoReveal {
    0% { opacity: 0; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.02); }
    100% { opacity: 1; transform: scale(1); }
}

.intro-title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 300;
    color: var(--color-white);
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 10px;
    opacity: 0;
    animation: fadeInText 1s ease 1s forwards;
}

.intro-subtitle {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-accent);
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 300;
    opacity: 0;
    animation: fadeInText 1s ease 1.4s forwards;
}

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

@keyframes drawCircle {
    to { stroke-dashoffset: 0; }
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

@keyframes fadeInText {
    to { opacity: 1; }
}

/* ============================================
   SCHWARZE INFO-LEISTE
============================================= */
.top-bar {
    background: var(--color-black);
    color: #ffffff;
    font-size: 0.78rem;
    letter-spacing: 1px;
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1001;
}

.top-bar-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 30px 0 55px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a {
    color: #ffffff;
}

.top-bar a:hover {
    color: var(--color-accent);
}

.top-bar .icon {
    width: 12px;
    height: 12px;
    color: var(--color-accent);
}

.top-bar-email,
.top-bar-phone,
.top-bar-address {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ============================================
   HEADER — Sticky
============================================= */
.header {
    background: var(--color-white);
    height: var(--header-height);
    position: sticky;
    top: var(--topbar-height);
    z-index: 1000;
    border-bottom: 1px solid var(--color-gray-lighter);
    transition: box-shadow var(--transition);
}

.header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 30px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.header-logo {
    height: 62px;
    width: auto;
    filter: none;
}

.header-logo:hover {
    filter: none;
}

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

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-black);
    letter-spacing: 2px;
    line-height: 1.2;
}

.brand-doctor {
    font-size: 0.75rem;
    color: var(--color-black);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.header-nav {
    height: 100%;
}

.nav-list {
    display: flex;
    gap: 35px;
    height: 100%;
    align-items: center;
}

.nav-link {
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-dark);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width var(--transition);
}

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

.nav-link:hover {
    color: var(--color-black);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 1.5px;
    background: var(--color-dark);
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 4px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -4px);
}

/* ============================================
   HERO-SLIDER
============================================= */
.hero-slider {
    position: relative;
    height: 85vh;
    min-height: 500px;
    overflow: hidden;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: var(--color-charcoal);
    opacity: 0;
    transition: opacity 1s ease;
    filter: grayscale(100%);
}

.slide.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.5) 100%);
}

/* Slide-Texte */
.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    max-width: var(--container-width);
    transform: translateX(-50%) translateY(-50%);
    text-align: center;
    z-index: 3;
    padding: 40px 30px;
    opacity: 0;
    transition: opacity 1s ease 0.3s;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.45) 0%, transparent 70%);
}

.slide.active .slide-content {
    opacity: 1;
}

.slide-tagline {
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-accent-light);
    margin-bottom: 12px;
    font-weight: 500;
    text-shadow: 0 1px 8px rgba(0,0,0,0.7);
}

.slide-heading {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 300;
    color: var(--color-white);
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-style: italic;
    text-shadow: 0 2px 12px rgba(0,0,0,0.8), 0 0 40px rgba(0,0,0,0.4);
}

.slide-sub {
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 400;
    color: rgba(255,255,255,0.9);
    letter-spacing: 1.5px;
    text-shadow: 0 1px 8px rgba(0,0,0,0.7);
}

/* Öffnungszeiten-Box im Slider */
.opening-hours-box {
    position: absolute;
    top: 20px;
    right: 30px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    padding: 28px 32px;
    color: var(--color-white);
    min-width: 240px;
}

.opening-hours-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-align: center;
    margin: 0 0 12px;
    color: var(--color-white);
}

.opening-hours-divider {
    width: 40px;
    height: 1px;
    background: var(--color-accent);
    margin: 0 auto 18px;
}

.opening-hours-list {
    display: grid;
    grid-template-columns: auto auto;
    gap: 8px 20px;
    margin: 0;
}

.opening-hours-list dt {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.95);
}

.opening-hours-list dd {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    text-align: right;
}

.opening-hours-note {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-style: italic;
    font-weight: 300;
    color: var(--color-accent-light);
    text-align: center;
    margin: 14px 0 0;
    letter-spacing: 0.5px;
}

.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 5;
}

.slider-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.5);
    color: var(--color-white);
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--color-white);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.7);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--color-white);
}

/* Logo-Animation auf Bildern/Videos */
.logo-animation-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 4;
}

.logo-animation-icon {
    width: 160px;
    height: 160px;
    opacity: 0;
}

.logo-animation-icon img,
.logo-animation-icon svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-anim-img {
    filter: none !important;
}

.logo-anim-img:hover {
    filter: none !important;
}

.logo-animation-overlay.animate .logo-animation-icon {
    animation: logoAppear 3s ease forwards;
}

@keyframes logoAppear {
    0% { opacity: 0; transform: scale(0.7); }
    20% { opacity: 0.8; transform: scale(1); }
    70% { opacity: 0.8; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.1); }
}

/* ============================================
   SECTIONS — Allgemein
============================================= */
.section {
    padding: var(--section-padding);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 400;
    color: var(--color-dark);
    text-align: center;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.title-light {
    font-weight: 300;
    color: var(--color-gray);
}

.title-line {
    width: 60px;
    height: 1px;
    background: var(--color-accent);
    margin: 0 auto 40px;
}

.title-line-left {
    margin: 0 0 30px;
}

.section-subtitle {
    text-align: center;
    color: var(--color-gray);
    font-size: 0.95rem;
    margin-bottom: 50px;
    font-weight: 300;
}

/* Scroll Fade-in Animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   WILLKOMMEN
============================================= */
.section-welcome {
    background: var(--color-white);
    text-align: center;
}

.welcome-text {
    max-width: 750px;
    margin: 0 auto 20px;
    color: var(--color-gray-dark);
    font-size: 1rem;
    line-height: 1.9;
}

.welcome-signature {
    margin-top: 40px;
}

.signature-text {
    font-family: var(--font-signature);
    font-size: 2.6rem;
    color: var(--color-dark);
    display: inline-block;
}

/* ============================================
   AKTUELLES
============================================= */
.section-news {
    background: var(--color-off-white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.news-card {
    background: var(--color-white);
    padding: 35px 30px;
    border: 1px solid var(--color-gray-lighter);
    transition: var(--transition);
    text-align: center;
    grid-column: 2;
}

.news-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.06);
}

.news-date {
    font-size: 0.75rem;
    color: var(--color-accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.news-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--color-dark);
}

.news-excerpt {
    color: var(--color-gray);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ============================================
   PARALLAX SECTIONS
============================================= */
.parallax-section {
    height: 400px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: var(--color-charcoal);
    position: relative;
    overflow: hidden;
    filter: grayscale(100%);
}

.parallax-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.parallax-logo {
    z-index: 2;
}

/* ============================================
   ARZT-VORSTELLUNG
============================================= */
.section-doctor {
    background: var(--color-white);
}

.doctor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.doctor-image {
    position: relative;
    overflow: hidden;
    background: var(--color-off-white);
    aspect-ratio: 3/4;
}

.doctor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.doctor-info .section-title {
    text-align: left;
    font-size: 2rem;
}

.doctor-qualifications {
    margin-bottom: 25px;
}

.doctor-qualifications li {
    padding: 8px 0;
    font-size: 0.95rem;
    color: var(--color-gray-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.qual-icon {
    color: var(--color-accent);
    font-size: 0.6rem;
}

.doctor-text {
    color: var(--color-gray);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.btn-outline {
    display: inline-block;
    padding: 12px 35px;
    border: 1px solid var(--color-dark);
    font-size: 0.82rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 400;
    color: var(--color-dark);
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--color-dark);
    color: var(--color-white);
}

/* ============================================
   LEBENSLAUF MODAL
============================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--color-white);
    max-width: 650px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 50px 45px;
    position: relative;
    transform: translateY(20px);
    transition: transform var(--transition);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-gray);
    cursor: pointer;
    transition: color var(--transition);
    line-height: 1;
}

.modal-close:hover {
    color: var(--color-dark);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 15px;
}

.cv-timeline {
    margin-top: 20px;
}

.cv-item {
    display: flex;
    gap: 25px;
    padding: 18px 0;
    border-bottom: 1px solid var(--color-gray-lighter);
}

.cv-item:last-child {
    border-bottom: none;
}

.cv-year {
    min-width: 130px;
    font-size: 0.82rem;
    color: var(--color-accent);
    letter-spacing: 1px;
    font-weight: 400;
    padding-top: 2px;
}

.cv-detail h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 3px;
}

.cv-detail p {
    font-size: 0.88rem;
    color: var(--color-gray);
}

.cv-section-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 500;
    margin-top: 30px;
    margin-bottom: 12px;
    color: var(--color-dark);
}

.cv-memberships {
    list-style: none;
    padding: 0;
}

.cv-memberships li {
    font-size: 0.88rem;
    color: var(--color-gray);
    padding: 6px 0;
    border-bottom: 1px solid var(--color-gray-lighter);
}

.cv-memberships li:last-child {
    border-bottom: none;
}

/* ============================================
   HERZ & TECHNIK
============================================= */
.section-emotion {
    background: var(--color-off-white);
}

.emotion-content {
    text-align: center;
    margin-bottom: 50px;
}

.emotion-text {
    max-width: 700px;
    margin: 0 auto;
    color: var(--color-gray);
    font-size: 1rem;
    line-height: 1.8;
}

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

.emotion-card {
    background: var(--color-white);
    border: 1px solid var(--color-gray-lighter);
    transition: var(--transition);
    overflow: hidden;
}

.emotion-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

.emotion-card-img {
    height: 250px;
    background-size: cover;
    background-position: center;
    background-color: var(--color-charcoal);
    position: relative;
    overflow: hidden;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.emotion-card:hover .emotion-card-img {
    filter: grayscale(70%);
}

.emotion-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 500;
    padding: 25px 25px 10px;
    color: var(--color-dark);
}

.emotion-card p {
    padding: 0 25px 25px;
    color: var(--color-gray);
    font-size: 0.9rem;
    line-height: 1.7;
}

.card-logo .logo-animation-icon {
    width: 70px;
    height: 70px;
}

/* ============================================
   TÄTIGKEITSSCHWERPUNKTE
============================================= */
.section-treatments {
    background: var(--color-white);
}

.treatments-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.treatment-card {
    text-align: center;
    padding: 40px 30px;
    border: 1px solid var(--color-gray-lighter);
    transition: var(--transition);
}

.treatment-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.06);
    transform: translateY(-3px);
}

.treatment-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    color: var(--color-accent);
}

.treatment-icon svg {
    width: 100%;
    height: 100%;
}

.treatment-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--color-dark);
}

.treatment-card p {
    color: var(--color-gray);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ============================================
   PRAXISRUNDGANG
============================================= */
.section-tour {
    background: var(--color-off-white);
}

.tour-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.tour-item:last-child:nth-child(3n+1) {
    grid-column: 2;
}

.tour-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--color-charcoal);
    cursor: pointer;
}

.tour-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tour-item:hover img {
    transform: scale(1.05);
}

.tour-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity var(--transition);
}

.tour-item:hover .tour-item-overlay {
    opacity: 1;
}

.tour-item-overlay span {
    color: var(--color-white);
    font-size: 0.9rem;
    letter-spacing: 1px;
    font-weight: 400;
}

/* ============================================
   BEHANDLUNGSBEISPIELE / VORHER-NACHHER
============================================= */
.section-gallery {
    background: var(--color-white);
}

.gallery-slider {
    position: relative;
    overflow: hidden;
}

.gallery-track {
    display: flex;
    transition: transform 0.5s ease;
}

.gallery-case {
    min-width: 100%;
    padding: 0 20px;
}

.case-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.case-before,
.case-after {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--color-off-white);
}

.case-before img,
.case-after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-label {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--color-white);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 12px;
}

.case-description {
    text-align: center;
    color: var(--color-gray);
    font-size: 0.95rem;
    font-style: italic;
}

.gallery-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.gallery-btn {
    background: none;
    border: 1px solid var(--color-gray-lighter);
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    color: var(--color-dark);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* ============================================
   VORHER-NACHHER VERGLEICH (Image Comparison Slider)
============================================= */
.section-compare {
    background: var(--color-off-white);
}

.compare-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.compare-item {
    margin-bottom: 10px;
}

.compare-slider {
    position: relative;
    overflow: hidden;
    cursor: ew-resize;
    user-select: none;
    -webkit-user-select: none;
    aspect-ratio: 4/3;
    background: var(--color-charcoal);
}

.compare-slider img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: none;
    pointer-events: none;
}

.compare-slider img:hover {
    filter: none;
}

.compare-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.compare-before-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.compare-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-width: 0;
}

.compare-handle {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.compare-handle-line {
    flex: 1;
    width: 2px;
    background: var(--color-white);
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
}

.compare-handle-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-white);
    border: 2px solid var(--color-gray-lighter);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.compare-handle-circle span {
    font-size: 1.2rem;
    color: var(--color-dark);
    line-height: 1;
}

.compare-label {
    position: absolute;
    top: 15px;
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-white);
    background: rgba(0,0,0,0.5);
    padding: 5px 12px;
    z-index: 4;
    pointer-events: none;
}

.compare-label-before {
    left: 15px;
}

.compare-label-after {
    right: 15px;
}

.compare-description {
    text-align: center;
    color: var(--color-gray);
    font-size: 0.92rem;
    font-style: italic;
    margin-top: 12px;
}

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

/* ============================================
   KONTAKT
============================================= */
.section-contact {
    background: var(--color-off-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-block {
    margin-bottom: 30px;
}

.contact-block h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-dark);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.contact-block p {
    color: var(--color-gray);
    font-size: 0.95rem;
    line-height: 1.8;
}

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

.hours-table {
    border-collapse: collapse;
}

.hours-table td {
    padding: 5px 0;
    font-size: 0.9rem;
    color: var(--color-gray);
}

.hours-table td:first-child {
    padding-right: 25px;
    font-weight: 400;
    color: var(--color-gray-dark);
}

.contact-map {
    position: relative;
    min-height: 350px;
    overflow: hidden;
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    filter: grayscale(100%) brightness(0.85);
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

/* ============================================
   RECHTSSEITEN (Impressum, Datenschutz)
============================================= */
.section-legal {
    padding: 140px 0 80px;
}

.section-legal .section-title {
    margin-bottom: 10px;
}

.legal-content {
    max-width: 800px;
    margin: 40px auto 0;
    line-height: 1.8;
}

.legal-content h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-dark);
    margin: 40px 0 12px;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-charcoal);
    margin: 28px 0 8px;
}

.legal-content p {
    margin-bottom: 14px;
    color: var(--color-gray-dark);
}

.legal-content ul {
    margin: 10px 0 18px 24px;
    color: var(--color-gray-dark);
}

.legal-content ul li {
    margin-bottom: 6px;
}

.legal-content a {
    color: var(--color-accent);
    text-decoration: none;
    transition: var(--transition);
}

.legal-content a:hover {
    color: var(--color-accent-light);
    text-decoration: underline;
}

.impressum-contact {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.4rem 1.5rem;
    margin: 0.5rem 0 1.5rem;
}

.impressum-contact dt {
    font-weight: 500;
    color: var(--color-text);
}

.impressum-contact dd {
    margin: 0;
}

/* ============================================
   FOOTER
============================================= */
.footer {
    background: var(--color-black);
    color: var(--color-gray-light);
    padding: 40px 0;
}

.footer-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1) !important;
}

.footer-logo:hover {
    filter: brightness(0) invert(1) !important;
}

.footer-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-white);
    display: block;
    letter-spacing: 1px;
}

.footer-doctor {
    font-size: 0.75rem;
    color: var(--color-gray);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    font-size: 0.82rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-gray-light);
}

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

.footer-copy {
    font-size: 0.78rem;
    color: var(--color-gray);
}

/* ============================================
   RESPONSIVE — Tablet
============================================= */
@media (max-width: 992px) {
    .opening-hours-box {
        right: 20px;
        padding: 22px 24px;
        min-width: 200px;
    }

    :root {
        --section-padding: 70px 0;
    }

    .nav-list {
        display: none;
        position: fixed;
        top: calc(var(--topbar-height) + var(--header-height));
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 0;
        padding: 30px 20px 60px;
        overflow-y: auto;
        z-index: 999;
    }

    .nav-list.open {
        display: flex;
    }

    .nav-list > li {
        width: 100%;
        text-align: center;
    }

    .nav-link {
        font-size: 1rem;
        display: block;
        padding: 16px 10px;
        letter-spacing: 2px;
    }

    .nav-link::after {
        display: none;
    }

    .nav-has-dropdown {
        display: block;
        height: auto;
        width: 100%;
    }

    .nav-has-dropdown > .nav-link {
        cursor: pointer;
    }

    .nav-has-dropdown > .nav-link::before {
        content: '';
        display: inline-block;
        width: 7px;
        height: 7px;
        border-right: 2px solid var(--color-accent);
        border-bottom: 2px solid var(--color-accent);
        transform: translateY(-2px) rotate(45deg);
        margin-right: 12px;
        transition: transform 0.25s ease;
        vertical-align: middle;
    }

    .nav-has-dropdown.open > .nav-link::before {
        transform: translateY(2px) rotate(225deg);
    }

    .nav-dropdown {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        border: none;
        box-shadow: none;
        min-width: 0;
        padding: 0;
        background: transparent;
        display: none;
        flex-direction: column;
        align-items: stretch;
    }

    .nav-has-dropdown.open .nav-dropdown {
        display: flex;
        padding: 6px 0 14px;
    }

    .nav-dropdown a {
        display: block;
        padding: 10px 20px;
        font-size: 0.78rem;
        letter-spacing: 1px;
        text-align: center;
        color: var(--color-gray);
        white-space: normal;
        text-transform: none;
    }

    .nav-dropdown a::after {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .doctor-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .doctor-image {
        max-width: 500px;
        margin: 0 auto;
    }

    .doctor-info .section-title {
        text-align: center;
    }

    .title-line-left {
        margin: 0 auto 30px;
    }

    .doctor-qualifications {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

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

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

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

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

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

    .news-card {
        grid-column: 1 / -1;
    }
}

/* ============================================
   RESPONSIVE — Mobile
============================================= */
@media (max-width: 640px) {
    .opening-hours-box {
        display: none;
    }

    :root {
        --section-padding: 60px 0;
        --header-height: 65px;
    }

    .top-bar-address,
    .top-bar-email {
        display: none;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hero-slider {
        height: 60vh;
    }

    .slide-content {
        bottom: 80px;
        text-align: center;
    }

    .slide-heading {
        font-size: 1.6rem;
    }

    .slide-tagline {
        font-size: 0.68rem;
    }

    .slide-sub {
        font-size: 0.8rem;
    }

    .intro-title {
        font-size: 1.5rem;
        letter-spacing: 3px;
    }

    .intro-logo-img {
        width: 200px;
    }

    .header-inner {
        padding: 0 16px;
    }

    .brand-link {
        gap: 8px;
    }

    .header-logo {
        height: 44px;
    }

    .brand-name {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .brand-doctor {
        font-size: 0.62rem;
        letter-spacing: 1px;
    }

    .welcome-text {
        font-size: 0.92rem;
    }

    .signature-text {
        font-size: 2rem;
    }

    .news-grid,
    .emotion-grid,
    .treatments-grid,
    .tour-gallery {
        grid-template-columns: 1fr;
    }

    .case-images {
        grid-template-columns: 1fr;
    }

    .parallax-section {
        height: 250px;
        background-attachment: scroll;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .cv-item {
        flex-direction: column;
        gap: 5px;
    }

    .cv-year {
        min-width: auto;
    }

    .subpage-hero {
        height: 40vh;
        min-height: 250px;
    }

    .subpage-hero h1 {
        font-size: 1.8rem;
    }

    .service-grid,
    .leistungen-grid {
        grid-template-columns: 1fr;
    }

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

    .breadcrumb {
        font-size: 0.72rem;
    }
}

/* ============================================
   UNTERSEITEN — Allgemein
============================================= */

/* Page Hero Banner */
.subpage-hero {
    height: 50vh;
    min-height: 350px;
    background-size: cover;
    background-position: center;
    background-color: var(--color-charcoal);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    filter: grayscale(100%);
}

.subpage-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
}

.subpage-hero-content {
    position: relative;
    z-index: 2;
    color: var(--color-white);
    padding: 40px 30px;
}

.subpage-hero-content .hero-tagline {
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-accent-light);
    margin-bottom: 12px;
    font-weight: 500;
    text-shadow: 0 1px 8px rgba(0,0,0,0.7);
}

.subpage-hero h1 {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 300;
    color: var(--color-white);
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-style: italic;
    text-shadow: 0 2px 12px rgba(0,0,0,0.8), 0 0 40px rgba(0,0,0,0.4);
}

.subpage-hero p {
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 400;
    color: rgba(255,255,255,0.9);
    letter-spacing: 1.5px;
    text-shadow: 0 1px 8px rgba(0,0,0,0.7);
}

/* Breadcrumb */
.breadcrumb {
    padding: 15px 0;
    font-size: 0.78rem;
    color: var(--color-gray);
    letter-spacing: 1px;
    border-bottom: 1px solid var(--color-gray-lighter);
}

.breadcrumb a {
    color: var(--color-gray);
}

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

.breadcrumb span {
    margin: 0 8px;
    color: var(--color-gray-light);
}

/* Leistungen Overview Grid */
.leistungen-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.leistung-card {
    background: var(--color-white);
    border: 1px solid var(--color-gray-lighter);
    border-top: 3px solid var(--color-accent);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.leistung-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.leistung-card-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    background-color: var(--color-charcoal);
    filter: grayscale(100%);
    transition: filter 0.5s ease;
    position: relative;
}

.leistung-card:hover .leistung-card-img {
    filter: grayscale(60%);
}

.leistung-card-body {
    padding: 35px 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.leistung-card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--color-dark);
    margin-bottom: 10px;
}

.leistung-card-body p {
    color: var(--color-gray);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

.leistung-card-body .leistung-items {
    list-style: none;
    margin-bottom: 20px;
}

.leistung-card-body .leistung-items li {
    padding: 4px 0;
    font-size: 0.85rem;
    color: var(--color-gray-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.leistung-card-body .leistung-items li::before {
    content: '◆';
    color: var(--color-accent);
    font-size: 0.5rem;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-dark);
    font-weight: 400;
    transition: var(--transition);
    margin-top: auto;
}

.btn-link:hover {
    color: var(--color-accent);
    gap: 12px;
}

.btn-link::after {
    content: '→';
    transition: var(--transition);
}

/* Detail Page Layout */
.detail-intro {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
}

.detail-intro p {
    color: var(--color-gray);
    font-size: 1.05rem;
    line-height: 1.9;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.detail-grid--full {
    display: block;
    max-width: 960px;
    margin: 0 auto 40px;
}

.detail-grid--full .detail-content h3 {
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.detail-grid--full .detail-content > p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 1rem;
    line-height: 1.9;
}

.detail-image {
    aspect-ratio: 4/3;
    background-size: cover;
    background-position: center;
    background-color: var(--color-charcoal);
    filter: grayscale(100%);
}

.detail-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-dark);
    margin-bottom: 15px;
}

.detail-content p {
    color: var(--color-gray);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.detail-list {
    list-style: none;
    margin-bottom: 25px;
}

.detail-list li {
    padding: 15px 0;
    padding-left: 20px;
    position: relative;
    font-size: 0.9rem;
    color: var(--color-gray);
    border-bottom: 1px solid var(--color-gray-lighter);
    line-height: 1.7;
}

.detail-list li:last-child {
    border-bottom: none;
}

.detail-list li .qual-icon {
    color: var(--color-accent);
    font-size: 0.5rem;
    position: absolute;
    left: 0;
    top: 22px;
}

.detail-list li strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-dark);
    margin-bottom: 4px;
}

/* Advantages / Vorteile */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.advantage-item {
    text-align: center;
    padding: 30px 20px;
    border: 1px solid var(--color-gray-lighter);
}

.advantage-item h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--color-dark);
}

.advantage-item p {
    font-size: 0.85rem;
    color: var(--color-gray);
    line-height: 1.6;
}

.advantage-icon {
    font-size: 1.8rem;
    color: var(--color-accent);
    margin-bottom: 15px;
}

/* CTA Banner */
.cta-banner {
    background: var(--color-dark);
    padding: 60px 0;
    text-align: center;
    color: var(--color-white);
}

.cta-banner h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.cta-banner p {
    color: var(--color-gray-light);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.btn-accent {
    display: inline-block;
    padding: 14px 40px;
    background: var(--color-accent);
    color: var(--color-black);
    font-size: 0.82rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    transition: var(--transition);
}

.btn-accent:hover {
    background: var(--color-accent-light);
    color: var(--color-black);
}

/* Service / Praxis Cards */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.service-card {
    padding: 35px 30px;
    border: 1px solid var(--color-gray-lighter);
    background: var(--color-white);
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.06);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-dark);
    margin-bottom: 12px;
}

.service-card p {
    color: var(--color-gray);
    font-size: 0.88rem;
    line-height: 1.7;
}

/* Nav Dropdown for subpages — nur Desktop, sonst überschreibt es die Mobile-Regeln */
@media (min-width: 993px) {
    .nav-has-dropdown {
        position: relative;
        height: 100%;
        display: flex;
        align-items: center;
    }

    .nav-dropdown {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: var(--color-white);
        border: 1px solid var(--color-gray-lighter);
        border-top: none;
        box-shadow: 0 8px 30px rgba(0,0,0,0.1);
        min-width: 230px;
        padding: 12px 0;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 1100;
    }

    .nav-has-dropdown:hover .nav-dropdown {
        opacity: 1;
        visibility: visible;
    }

    .nav-dropdown a {
        display: block;
        padding: 9px 25px;
        font-size: 0.78rem;
        letter-spacing: 1px;
        text-transform: none;
        color: var(--color-gray-dark);
        transition: var(--transition);
        white-space: nowrap;
    }

    .nav-dropdown a:hover {
        color: var(--color-accent);
        background: var(--color-off-white);
    }

    .nav-dropdown a::after {
        display: none;
    }
}

/* Responsive subpages — Tablet */
@media (max-width: 992px) {
    .leistungen-grid {
        grid-template-columns: 1fr;
    }

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

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

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