/* ==========================================================================
   Hautarztpraxis Dr. von Zons - Styles
   Colors: Orange #f07e26, Hover #f39852, Grey #8c8c8d, Note #a8a8a8
   Fonts: Oswald (headings), Jost (body), Anton (accent)
   ========================================================================== */

/* --- Local Fonts (DSGVO-konform, kein Google CDN) --- */

/* Anton */
@font-face {
    font-family: 'Anton';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/anton-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Anton';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/anton-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Jost 300-700 */
@font-face {
    font-family: 'Jost';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/jost-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Jost';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/jost-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Oswald 300-700 */
@font-face {
    font-family: 'Oswald';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/oswald-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Oswald';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/oswald-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

:root {
    --orange: #f07e26;
    --orange-dark: #f39852;
    --grey-dark: #333333;
    --grey-headline: #8c8c8d;
    --grey-secondary: #8c8c8d;
    --grey-text: #8c8c8d;
    --grey-note: #a8a8a8;
    --grey-light: #f5f5f5;
    --grey-border: #f2f2f2;
    --white: #ffffff;
    --font-body: 'Jost', sans-serif;
    --font-heading: 'Oswald', sans-serif;
    --font-accent: 'Anton', sans-serif;
    --max-width: 1200px;
    --header-height: 80px;
    --transition: 0.3s ease;
}

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

body {
    font-family: var(--font-body);
    color: var(--grey-dark);
    line-height: 1.7;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    padding-top: var(--header-height);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--orange-dark); }
ul { list-style: none; }

/* --- Global Heading Hierarchy --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--grey-secondary);
    line-height: 1.3;
    font-weight: 400;
}

h1 {
    font-size: 2.4rem;
    color: var(--orange);
}

h2 {
    font-size: 1.8rem;
}

h3 {
    font-size: 1.3rem;
}

h4 {
    font-size: 1.1rem;
}

h5 {
    font-size: 1rem;
}

h6 {
    font-size: 0.9rem;
}

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

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #e8e8e8;
    z-index: 1002;
    padding: 14px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    animation: cookieSlideDown 0.4s ease;
}
.cookie-banner.hidden {
    display: none;
}
@keyframes cookieSlideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.cookie-banner-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
}
.cookie-icon {
    font-size: 2rem;
    flex-shrink: 0;
    filter: grayscale(1);
    opacity: 0.5;
}
.cookie-text {
    flex: 1;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}
.cookie-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}
.cookie-link {
    font-size: 0.85rem;
    color: #888;
    text-decoration: none;
    white-space: nowrap;
}
.cookie-link:hover {
    color: var(--grey-dark);
    text-decoration: underline;
}
.cookie-accept {
    background: #999;
    color: var(--white);
    border: none;
    padding: 8px 24px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}
.cookie-accept:hover {
    background: #777;
}

/* --- 321Med Widget Repositioning (center bottom) --- */
#button_321med {
    right: 50% !important;
    transform: translateX(50%) !important;
}
#button_321med_animation,
#notification_321med {
    display: none !important;
}
#powered_321med {
    right: 50% !important;
    transform: translateX(50%) translateY(100%) !important;
}
#info_321med {
    right: 50% !important;
    transform: translateX(50%) !important;
    display: none !important;
}
#info_321med.med-open {
    display: flex !important;
    background: white !important;
    box-shadow: 0 0 20px rgba(255,255,255,1) !important;
    border-radius: 16px !important;
    padding: 10px !important;
}
#container_321med {
    right: 50% !important;
    transform: translateX(50%) !important;
}

/* --- Phone Bar (scroll-triggered) --- */
.phone-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--orange);
    text-align: center;
    padding: 6px 0;
    font-size: 0.85rem;
    z-index: 1001;
    transform: translateY(-100%);
    transition: transform 0.3s ease, opacity 0.4s ease;
}

.phone-bar.visible {
    transform: translateY(0);
}

.phone-bar a {
    color: var(--white);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.phone-bar a:hover {
    color: var(--white);
    opacity: 0.85;
}

/* --- Header --- */
.site-header {
    background: rgba(255,255,255,0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.4s ease, opacity 0.4s ease, top 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.scrolled {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

/* Homepage: nearly transparent header with subtle frost */
.page-home .site-header {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.page-home .site-header.scrolled {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Phone bar pushes header + subnav down */
.phone-bar.visible ~ .site-header {
    top: 32px;
}
.phone-bar.visible ~ main .page-subnav {
    top: 112px;
}

/* Auto-hide */
.site-header.header-hidden,
.phone-bar.header-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-100%);
}

/* Language flag in nav */
.lang-flag {
    font-size: 1.3rem !important;
    line-height: 1 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
    transition: filter 0.3s ease, height 0.3s ease;
    filter: drop-shadow(0 0 12px rgba(255,255,255,0.9)) drop-shadow(0 0 4px rgba(255,255,255,1));
}
.site-header.scrolled .logo-img {
    height: 38px;
}

.nav-list {
    display: flex;
    gap: 8px;
}

.nav-list a {
    color: var(--grey-secondary);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all var(--transition);
    text-shadow: 0 0 12px rgba(255,255,255,0.9), 0 0 4px rgba(255,255,255,1);
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--orange);
    text-shadow: 0 0 12px rgba(255,255,255,0.9), 0 0 4px rgba(255,255,255,1);
}

/* --- Hamburger Menu --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 2147483004;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--orange);
    border-radius: 2px;
    transition: all var(--transition);
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* --- Hero Section (media only, no text overlay) --- */
.hero {
    position: relative;
    width: 100%;
    height: 75vh;
    min-height: 400px;
    max-height: 800px;
    overflow: hidden;
    background: var(--grey-light);
    margin-top: calc(-1 * var(--header-height));
}

.hero-photo,
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-photo {
    transition: opacity 1s ease;
}
.hero-photo-1 { z-index: 3; }
.hero-photo-2 { z-index: 2; opacity: 0; }
.hero-photo.fade-out { opacity: 0; pointer-events: none; }
.hero-photo.fade-in { opacity: 1; }

.hero-video {
    z-index: 1;
}

/* --- Hero Caption (below image) --- */
.hero-caption {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: 2px;
    color: var(--grey-dark);
}

.hero-subtitle {
    font-size: 1.15rem;
    font-weight: 300;
    margin-bottom: 40px;
    color: var(--grey-secondary);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-cta {
    display: inline-block;
    background: var(--orange);
    color: var(--white) !important;
    padding: 16px 40px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
    font-weight: 500;
}

.hero-cta:hover { background: var(--orange-dark); transform: translateY(-2px); }

/* --- About Section (two-column) --- */
.about-section {
    padding: 70px 0;
}

.about-title {
    text-align: center;
    margin-bottom: 50px;
}

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

.about-col p {
    text-align: justify;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--grey-secondary);
    font-size: 0.95rem;
}

.about-col h3 {
    margin-bottom: 12px;
    margin-top: 30px;
}

.about-col h3:first-child {
    margin-top: 0;
}

.about-welcome {
    font-size: 1rem !important;
    color: var(--grey-secondary) !important;
}

.about-specialties-label {
    font-weight: 600;
    color: var(--grey-secondary) !important;
}

.about-specialties {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 24px;
    color: var(--grey-secondary);
}

.about-specialties li {
    font-size: 0.95rem;
    line-height: 1.8;
    padding: 2px 0;
}

.about-specialties li::marker {
    color: var(--grey-secondary);
}

.about-specialties li {
    color: var(--orange);
}

/* --- 98% Satisfaction Section --- */
.satisfaction-section {
    padding: 80px 0;
    background: var(--white);
}
.satisfaction-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}
.satisfaction-left {
    padding-right: 0;
}
.satisfaction-line {
    width: 100%;
    height: 2px;
    background: var(--orange);
}
.satisfaction-percent {
    width: 100%;
    height: auto;
    display: block;
    margin: 10px 0;
}
.satisfaction-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--orange);
    margin-top: 20px;
    margin-bottom: 28px;
    line-height: 1.2;
}
.satisfaction-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--grey-secondary);
    margin-bottom: 16px;
}
.satisfaction-right {
    position: relative;
}
.satisfaction-photos {
    display: flex;
    justify-content: center;
}
.satisfaction-composite {
    width: 100%;
    max-width: 480px;
    height: auto;
    display: block;
}
.satisfaction-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 16px 24px;
    position: absolute;
    bottom: -20px;
    right: 0;
    max-width: 280px;
}
.satisfaction-badge-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 400;
    color: var(--grey-secondary);
    display: block;
    line-height: 1;
}
.satisfaction-badge-label {
    font-size: 0.8rem;
    color: var(--grey-secondary);
    line-height: 1.3;
}
.satisfaction-badge-star svg {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

/* --- Stats Bar --- */
.stats-bar {
    background: var(--orange);
    padding: 40px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
    color: var(--white);
}

.stat-item .stat-number {
    font-family: var(--font-accent);
    font-size: 3rem;
    line-height: 1;
    display: block;
}

.stat-item .stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 8px;
    opacity: 0.9;
}

/* --- Section Base --- */
.section {
    padding: 80px 0;
}

.section-alt { background: var(--grey-light); }
.section-dark { background: var(--grey-light); color: var(--grey-dark); }

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

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--grey-headline);
    margin-bottom: 12px;
}

.section-dark .section-title { color: var(--white); }

.section-subtitle {
    font-size: 1.1rem;
    color: var(--grey-secondary);
    font-weight: 300;
}

/* --- Services Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all var(--transition);
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    border-bottom-color: var(--orange);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--grey-dark);
    margin-bottom: 12px;
}

.service-card p {
    color: var(--grey-text);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Highlights Grid --- */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.highlight-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 30px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.highlight-icon {
    width: 60px;
    height: 60px;
    background: var(--orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    color: var(--white);
}

.highlight-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--grey-dark);
    margin-bottom: 8px;
}

.highlight-card p {
    color: var(--grey-text);
    font-size: 0.9rem;
}

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
    padding: 60px 0;
    text-align: center;
    color: var(--white);
}

.cta-section h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: var(--white);
    color: var(--orange) !important;
    padding: 14px 36px;
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
    font-weight: 600;
}

.cta-button:hover { background: var(--grey-light); color: var(--orange-dark) !important; }

/* --- Page Header (Subpages) --- */
.page-header {
    background: linear-gradient(180deg, #d8d8d8 0%, #e8e8e8 40%, var(--white) 100%);
    padding: 60px 0 50px;
    text-align: center;
    margin-top: calc(-1 * var(--header-height));
    padding-top: calc(var(--header-height) + 40px);
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--orange);
    margin-bottom: 8px;
}

.page-header p {
    color: var(--grey-secondary);
    font-size: 1.1rem;
}

/* --- Page Sub-Navigation --- */
.page-subnav {
    background: var(--white);
    border-bottom: 1px solid var(--grey-border);
    position: sticky;
    top: var(--header-height);
    z-index: 2147483001;
}

.page-subnav .container {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.page-subnav a {
    display: block;
    padding: 14px 0;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--grey-secondary);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.3s, border-color 0.3s;
}

.page-subnav a:hover,
.page-subnav a.active {
    color: var(--orange);
    border-bottom-color: var(--orange);
}

/* Scroll offset for sticky header + subnav */
#aerzte, #helfer, #verbaende, #rundgang, #stimmung, #kooperationspartner {
    scroll-margin-top: calc(var(--header-height) + 60px);
}

/* --- Doctors Grid (Team Page) --- */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.doctor-card {
    text-align: center;
    padding: 30px 20px;
}

.doctor-title {
    font-family: var(--font-accent);
    font-size: 1.3rem;
    color: var(--orange);
    font-weight: 400;
    line-height: 1.2;
}

.doctor-name {
    font-family: var(--font-accent);
    font-size: 1.6rem;
    color: var(--orange);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 12px;
}

.doctor-line {
    width: 80%;
    height: 1px;
    background: var(--grey-border);
    margin: 0 auto 16px;
}

.doctor-desc {
    color: var(--grey-text);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* --- Staff Grid (Team Page) --- */
.staff-featured {
    text-align: center;
    margin: 40px 0 50px;
}

.staff-featured .staff-name {
    font-family: var(--font-accent);
    font-size: 1.6rem;
    color: var(--orange);
    font-weight: 400;
    margin-bottom: 8px;
}

.staff-featured .staff-desc {
    color: var(--grey-text);
    font-size: 0.95rem;
}

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

.staff-card {
    padding: 16px 12px;
}

.staff-name {
    font-family: var(--font-accent);
    font-size: 1.25rem;
    color: var(--orange);
    font-weight: 400;
    margin-bottom: 8px;
}

.staff-desc {
    color: var(--grey-text);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* --- Gallery Grid --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 40px;
}

.gallery-grid-small {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.gallery-item {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 2;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Lightbox --- */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 2001;
    line-height: 1;
    padding: 8px;
    transition: color 0.2s ease;
}

.lightbox-close:hover { color: var(--orange); }

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 2.2rem;
    cursor: pointer;
    z-index: 2001;
    padding: 16px;
    transition: color 0.2s ease;
}

.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-prev:hover,
.lightbox-next:hover { color: var(--orange); }

.lightbox-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 85vh;
}

.lightbox-img {
    max-width: 88vw;
    max-height: 82vh;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 4px;
}

.lightbox-img.loaded {
    opacity: 1;
}

.lightbox-spinner {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--orange);
    border-radius: 50%;
    animation: lb-spin 0.8s linear infinite;
}

.lightbox-img.loaded ~ .lightbox-spinner,
.lightbox-spinner.hidden { display: none; }

@keyframes lb-spin {
    to { transform: rotate(360deg); }
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 3px;
}

/* --- Affiliations (Mitgliedschaften) --- */
.affiliations-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
    max-width: 900px;
    margin: 0 auto;
}

.affiliations-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.affiliation-item {
    padding-bottom: 0;
}

.affiliation-abbr {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    color: var(--grey-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.affiliation-full {
    color: var(--grey-text);
    font-size: 0.95rem;
    line-height: 1.5;
}

.affiliations-text {
    background: var(--grey-light);
    padding: 40px;
    border-radius: 4px;
}

.affiliations-text p {
    color: var(--grey-text);
    font-size: 0.95rem;
    line-height: 1.8;
    text-align: justify;
}

/* --- Kooperationspartner --- */
.partners-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

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

.partners-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.partners-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.partner-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.partner-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
    background: rgba(240, 126, 38, 0.1);
}

.partner-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.partner-name {
    font-weight: 600;
    color: var(--grey-dark);
    font-size: 0.95rem;
    line-height: 1.4;
}

.partner-address {
    color: var(--grey-text);
    font-size: 0.85rem;
    line-height: 1.4;
}

.partner-phone {
    font-size: 0.85rem;
    font-weight: 600;
}

.partner-phone a {
    color: var(--grey-dark);
    text-decoration: none;
}

.partner-phone a:hover {
    color: var(--orange);
}

/* --- Services Detail Page --- */
.services-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.service-detail-card {
    padding: 40px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    border-left: 4px solid var(--orange);
}

.service-detail-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--grey-dark);
    margin-bottom: 12px;
}

.service-detail-card p {
    color: var(--grey-text);
    margin-bottom: 16px;
    line-height: 1.6;
}

.service-detail-card ul {
    list-style: none;
    padding: 0;
}

.service-detail-card li {
    padding: 6px 0;
    color: var(--grey-secondary);
    font-size: 0.9rem;
    position: relative;
    padding-left: 20px;
}

.service-detail-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 13px;
    width: 8px;
    height: 8px;
    background: var(--orange);
    border-radius: 50%;
}

/* --- Leistungen Accordion --- */
.leistungen-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 12px;
    border: 1px solid var(--grey-border);
    border-radius: 8px;
    overflow: hidden;
}

.accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    background: var(--white);
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--grey-dark);
    transition: color 0.3s, background 0.3s;
}

.accordion-trigger:hover {
    color: var(--orange);
}

.accordion-trigger.active {
    color: var(--orange);
    background: var(--grey-bg);
}

.accordion-chevron {
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 16px;
}

.accordion-trigger.active .accordion-chevron {
    transform: rotate(180deg);
}

.accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 28px;
}

.accordion-panel.open {
    max-height: 2000px;
    padding: 10px 28px 28px;
}

.accordion-group {
    margin-bottom: 24px;
}

.accordion-group:last-child {
    margin-bottom: 0;
}

.accordion-group-heading {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--orange);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--grey-border);
}

.accordion-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.accordion-links li {
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.accordion-links li:last-child {
    border-bottom: none;
}

.accordion-links a {
    display: block;
    padding: 10px 0 10px 16px;
    color: var(--grey-dark);
    text-decoration: none;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.2s, padding-left 0.2s;
}

.accordion-links a::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--orange);
    font-weight: 700;
    font-size: 1.1rem;
    transition: left 0.2s;
}

.accordion-links a:hover {
    color: var(--orange);
    padding-left: 22px;
}

.accordion-links a:hover::before {
    left: 6px;
}

/* --- Leistung Sub-Item Accordion --- */
.accordion-items-list {
    padding: 0;
}

.accordion-sub-item {
    border-bottom: 1px solid var(--grey-border);
}

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

.accordion-sub-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0 12px 16px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--grey-dark);
    transition: color 0.2s;
    position: relative;
}

.accordion-sub-trigger::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--orange);
    font-weight: 700;
    transition: transform 0.2s;
}

.accordion-sub-trigger:hover {
    color: var(--orange);
}

.accordion-sub-trigger.active {
    color: var(--orange);
    font-weight: 500;
}

.accordion-sub-trigger.active::before {
    transform: rotate(90deg);
}

.accordion-sub-chevron {
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 12px;
    opacity: 0.4;
}

.accordion-sub-trigger.active .accordion-sub-chevron {
    transform: rotate(180deg);
    opacity: 1;
    color: var(--orange);
}

.accordion-sub-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 0 0 16px;
}

.accordion-sub-panel.open {
    max-height: 2000px;
    padding: 8px 0 24px 16px;
}

.leistung-patient p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--grey-dark);
    margin-bottom: 20px;
}

.leistung-medical {
    background: var(--white);
    border-left: 3px solid var(--orange);
    border-radius: 0 6px 6px 0;
    padding: 20px 24px;
}

.leistung-medical h5 {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--orange);
    margin-bottom: 10px;
}

.leistung-medical p {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--grey-secondary);
    margin-bottom: 0;
}

/* --- Appointment Page --- */
.appointment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.appointment-card {
    padding: 40px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.appointment-card h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--grey-dark);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--orange);
}

.appointment-card p {
    color: var(--grey-text);
    margin-bottom: 16px;
    line-height: 1.6;
}

.phone-list { margin-top: 16px; }

.phone-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--grey-border);
}

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

.phone-item .dept {
    color: var(--grey-dark);
    font-weight: 500;
}

.phone-item .number {
    color: var(--orange);
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.emergency-notice {
    background: var(--orange);
    color: var(--white);
    padding: 20px 30px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    margin-top: 30px;
    font-size: 1rem;
}

/* --- Hours Table --- */
.hours-table {
    width: 100%;
    border-collapse: collapse;
}

.hours-table td {
    padding: 12px 0;
    border-bottom: 1px solid var(--grey-border);
}

.hours-table td:first-child {
    font-weight: 600;
    color: var(--grey-dark);
    width: 35%;
}

.hours-table td:last-child { color: var(--grey-secondary); }
.hours-table tr:last-child td { border-bottom: none; }

/* --- Contact Page --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info-card {
    padding: 40px;
    background: var(--grey-light);
    border-radius: 8px;
}

.contact-info-card h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--grey-dark);
    margin-bottom: 24px;
}

.contact-info-item {
    margin-bottom: 24px;
}

.contact-info-item h3 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--orange);
    margin-bottom: 6px;
}

.contact-info-item p,
.contact-info-item a {
    color: var(--grey-secondary);
    font-size: 0.95rem;
}

/* --- Contact Form --- */
.contact-form-card {
    padding: 40px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.contact-form-card h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--grey-dark);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--grey-dark);
    margin-bottom: 6px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--grey-border);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--grey-dark);
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--orange);
}

.form-group textarea { height: 140px; resize: vertical; }

.form-checkbox {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.85rem;
    color: var(--grey-secondary);
}

.form-checkbox input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
}

.form-submit {
    display: inline-block;
    background: var(--orange);
    color: var(--white);
    padding: 14px 36px;
    border: none;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    font-weight: 500;
    transition: background var(--transition);
    margin-top: 10px;
}

.form-submit:hover { background: var(--orange-dark); }

.form-success {
    background: #2ecc71;
    color: var(--white);
    padding: 16px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: 500;
}

.form-errors {
    background: #e74c3c;
    color: var(--white);
    padding: 16px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.form-errors li { padding: 2px 0; }

/* --- Legal Pages (Impressum, Datenschutz) --- */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.legal-content h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--grey-dark);
    margin-top: 40px;
    margin-bottom: 16px;
}

.legal-content h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--grey-dark);
    margin-top: 24px;
    margin-bottom: 8px;
}

.legal-content p {
    color: var(--grey-secondary);
    margin-bottom: 12px;
    line-height: 1.7;
}

.legal-content a { color: var(--orange); }

/* --- Map Placeholder --- */
.map-container {
    width: 100%;
    height: 350px;
    background: var(--grey-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--grey-secondary);
    font-size: 1rem;
    margin-top: 40px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Footer Kontakt Section --- */
.footer-kontakt {
    background: var(--white);
    padding: 60px 0 40px;
    border-top: 1px solid var(--grey-border);
}

.fk-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

/* Left column */
.fk-left {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.fk-map-link {
    display: inline-block;
    margin-bottom: 16px;
}

.fk-map-icon {
    width: 55px;
    height: auto;
    opacity: 0.7;
    transition: opacity var(--transition);
}

.fk-map-link:hover .fk-map-icon {
    opacity: 1;
}

.fk-practice-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    color: var(--grey-secondary);
    margin-bottom: 4px;
}

.fk-address {
    font-size: 0.9rem;
    color: var(--grey-secondary);
    line-height: 1.5;
}

.fk-qr-label {
    font-size: 0.8rem;
    font-style: italic;
    color: var(--grey-note);
    margin-bottom: 10px;
}

.fk-qr {
    width: 150px;
    height: auto;
    margin: 0 auto;
}

/* Center column */
.fk-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.fk-heading {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--grey-secondary);
    margin-bottom: 8px;
}

.fk-hours-row {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.fk-hours-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fk-day {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--orange);
}

.fk-time {
    font-size: 0.9rem;
    color: var(--grey-secondary);
}

.fk-closed {
    font-size: 1rem;
    font-weight: 600;
    color: var(--orange);
    margin-bottom: 8px;
}

.fk-emergency {
    font-size: 0.9rem;
    color: var(--grey-secondary);
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

/* Right column */
.fk-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
}

.fk-phones {
    margin-bottom: 24px;
}

.fk-phone-item {
    margin-bottom: 12px;
}

.fk-phone-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--grey-secondary);
}

.fk-phone-item a {
    font-size: 0.9rem;
    color: var(--grey-secondary);
}

.fk-phone-item a:hover {
    color: var(--orange);
}

.fk-links {
    list-style: none;
}

.fk-links li {
    padding: 2px 0;
}

.fk-links a {
    font-size: 0.85rem;
    color: var(--grey-secondary);
}

.fk-links a:hover {
    color: var(--orange);
}

.fk-legal-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--grey-secondary);
    margin-bottom: 12px;
}

.fk-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    justify-content: flex-end;
}

/* --- Footer --- */
.site-footer {
    background: var(--white);
    color: var(--grey-secondary);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--grey-border);
}

.footer-col h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--grey-secondary);
    margin-bottom: 20px;
}

.footer-practice-name {
    color: var(--orange);
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-col p {
    font-size: 0.9rem;
    margin-bottom: 8px;
    line-height: 1.6;
}

.footer-col a {
    color: var(--grey-secondary);
    font-size: 0.9rem;
}

.footer-col a:hover { color: var(--orange); }

.footer-hours {
    width: 100%;
    border-collapse: collapse;
}

.footer-hours td {
    padding: 6px 0;
    font-size: 0.85rem;
    color: var(--grey-secondary);
}

.footer-hours td:first-child { font-weight: 500; padding-right: 16px; white-space: nowrap; }

.footer-links li { padding: 4px 0; }
.footer-links a { font-size: 0.9rem; }

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--grey-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--grey-secondary);
    transition: all var(--transition);
}

.social-link:hover { background: var(--orange); color: var(--white); }

.footer-copyright {
    padding: 20px 0 0;
    font-size: 0.8rem;
    color: var(--grey-note);
    text-align: center;
}
.footer-credits {
    padding-top: 5em;
    padding-bottom: 120px;
    text-align: center;
}
.footer-credits-main {
    font-size: 0.8rem;
    color: var(--grey-note);
    margin-bottom: 12px;
}
.footer-credits-main a { color: var(--grey-note); }
.footer-credits-main a:hover { color: var(--orange); }
.footer-credits-notice {
    font-size: 0.8rem;
    color: var(--grey-note);
}

/* ── Parallax Sections ── */
.parallax-section {
    position: relative;
    height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 0;
}
@supports (-webkit-touch-callout: none) {
    .parallax-bg {
        background-attachment: scroll;
        top: -30%;
        height: 160%;
        will-change: transform;
    }
}
.parallax-overlay {
    position: relative;
    z-index: 1;
    text-align: center;
}
.parallax-text {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    font-style: italic;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
    line-height: 1.3;
}

/* Touch devices: background-attachment: fixed not supported on iOS */
/* --- Responsive: see tablet.css + mobile.css --- */
