:root {
    --font-sans: 'Manrope', system-ui, sans-serif;
    --font-display: 'Fraunces', Georgia, serif;
    --space-section: clamp(72px, 9vw, 110px);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --header-height: 101px;
    --header-scroll-progress: 0;
}

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

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    line-height: 1.65;
    color: #333;
    background: #ffffff;
    padding-top: 0;
    min-width: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3,
.section-title {
    font-family: var(--font-display);
    font-optical-sizing: auto;
    letter-spacing: -0.02em;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Fixed content column — hero + footer stay full width; everything else is 1200px */
.contact-shell,
.services-shell,
.practice-life-shell,
.gs-intro-inner,
.gs-chapter-inner,
.amd-intro-inner,
.amd-chapter-inner,
.rle-intro-inner,
.rle-chapter-inner,
.overview-lead-inner,
.overview-group-inner,
.diag-chapter-visual,
.diag-chapter-title,
.diag-chapter-body,
.vs-intro-inner,
.vs-facts-inner,
.vs-topics-inner,
.vs-chapter-inner,
.vs-intervals-inner,
.vs-steps-inner,
.vs-note-inner,
.laser-treatments-header,
.laser-panels,
.laser-story-grid,
.main-content > .container,
.page > .container,
.impressum-content,
.content,
.tab-panel,
.doctors-intro,
.team-grid,
.news-grid,
.request-layout {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Header — transparent über Hero; bei Scroll solid Navy */
.header {
    background: transparent;
    color: white;
    padding: 15.84px 0;
    box-shadow: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background-color 0.28s ease, box-shadow 0.28s ease;
}

.header.is-solid,
.header.scrolled,
.header:has(.nav-open),
body:not(:has(.hero)) .header {
    background: #0a1f35;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-nav {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
}

.nav-toggle {
    display: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 22px;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 6px 0;
    transition: color 0.3s ease;
    cursor: pointer;
    background: none;
    border: none;
    font-family: var(--font-sans);
    font-size: 1.12rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
}

.nav-link:hover {
    color: white;
}

.nav-link.home {
    color: white;
    font-weight: 500;
    font-size: 1.12rem;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 3px;
    width: 100%;
    height: 2px;
    background: #ffffff;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.35s var(--ease-out);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-item.active > .nav-link::after {
    transition-duration: 0.45s;
    transform: scaleX(1);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px) scale(0.992);
    transform-origin: top left;
    transition: opacity 0.46s ease, transform 0.46s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.46s ease;
    z-index: 1000;
    padding: 10px 0;
    list-style: none;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-item.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: var(--font-sans);
    font-weight: 400;
}

.dropdown-item:hover {
    background: #ffffff;
    color: #1a4a7a;
    transform: translateX(1px);
    box-shadow: 0 1px 4px rgba(26, 74, 122, 0.1);
}

.standort-switch .dropdown-item.is-active {
    font-weight: 700;
    color: #1a4a7a;
}

.standort-switch .dropdown-item.is-active::after {
    content: "✓";
    margin-left: 8px;
    color: #c9a45c;
}

.dropdown-arrow {
    display: inline-block;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.nav-item.active .dropdown-arrow {
    transform: rotate(180deg);
}

@media (hover: none) and (pointer: coarse) {
    .nav-link {
        padding: 15px 0;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        background: #ffffff;
        margin-top: 10px;
        display: none;
    }

    .nav-item.active .dropdown-menu {
        display: block;
    }

    .dropdown-item {
        padding: 15px 20px;
        border-bottom: 1px solid #ffffff;
    }

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

.header-logo {
    height: 70.224px;
    width: auto;
}

html[data-standort="rottach-egern"] .header-logo {
    content: url("../media/logo-weiss.png");
}

html:not([data-standort="bad-toelz"]) [data-standort-only="bad-toelz"],
html[data-standort="bad-toelz"] [data-standort-only="rottach-egern"] {
    display: none;
}

.contact .contact-hours-loc + .contact-hours-loc {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(225, 240, 255, 0.14);
}

.contact .contact-hours-loc h4 {
    margin: 0 0 6px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #c9a45c;
}

.header .container {
    width: 100%;
    max-width: none;
    padding-left: 16px;
    padding-right: 16px;
}

.header .header-content > a:first-of-type {
    flex: 0 0 auto;
    margin-left: 0;
}

.contact-info {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    flex-wrap: nowrap;
    position: relative;
    z-index: 1;
    margin-right: 0;
}

.header-tools {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.font-size-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    margin: 0;
    color: #ffffff;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.font-size-btn:hover,
.font-size-btn:focus-visible {
    opacity: 0.82;
    outline: none;
    background: transparent;
    transform: scale(1.06);
}

.font-size-btn:focus-visible {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.45);
    border-radius: 4px;
}

.font-size-icon {
    width: 24px;
    height: 24px;
    display: block;
    pointer-events: none;
}

.font-size-btn[aria-pressed="false"] .font-size-icon__minus,
.font-size-btn[aria-pressed="true"] .font-size-icon__plus {
    display: none;
}

html[data-font-size="large"] {
    font-size: 125%;
}

.header-nav {
    position: relative;
    z-index: 2;
}

@media (max-width: 1280px) {
    .header .nav-menu {
        gap: 14px;
    }

    .header .nav-link {
        font-size: 1.02rem;
    }

    /* Telefonnummer bleibt sichtbar; etwas kompakter bei mittlerer Breite */
    .contact-info {
        display: flex;
    }

    .contact-info .phone-number {
        display: inline-flex;
        font-size: 1.2rem;
    }
}

/* Schmaler Desktop knapp über dem Burger-Breakpoint: sieben Menüpunkte neben der Telefonnummer */
@media (min-width: 1281px) and (max-width: 1440px) {
    .header .nav-menu {
        gap: 16px;
    }
}

/* Mit Lupe (125 %) wächst die Hauptnavigation hier nicht mit, sonst überlappt sie die Telefonnummer */
@media (min-width: 1281px) and (max-width: 1600px) {
    html[data-font-size="large"] .header .nav-menu {
        gap: 14px;
    }

    html[data-font-size="large"] .header .nav-link {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .contact-info {
        display: flex !important;
        gap: 8px;
    }

    .contact-info .phone-number {
        display: inline-flex !important;
    }

    a.phone-number {
        text-decoration: none;
        color: #ffffff;
        -webkit-tap-highlight-color: transparent;
    }

    a.phone-number:hover,
    a.phone-number:focus-visible {
        color: #ffffff;
        text-decoration: none;
        background: rgba(255, 255, 255, 0.16);
        border-color: rgba(255, 255, 255, 0.85);
    }

    .header-tools {
        gap: 6px;
    }

    .font-size-btn {
        width: 28px;
        height: 28px;
    }

    .font-size-icon {
        width: 22px;
        height: 22px;
    }

    .header-appointment {
        padding: 7px 12px;
        font-size: 0.88rem;
        font-weight: 600;
        background: #ffffff;
        color: #0a1f35;
        border-color: #ffffff;
    }

    .header-appointment:hover {
        background: #ffffff;
        color: #0a1f35;
    }
}

.header-appointment {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1a4a7a;
    color: white;
    padding: 8px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: var(--font-sans);
    border: 1px solid #1a4a7a;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.header-appointment:hover {
    background: #1a5a93;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.phone-number {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    font-family: var(--font-sans);
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.01em;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.25s ease, border-color 0.25s ease;
}

a.phone-number:hover,
a.phone-number:focus-visible {
    color: #ffffff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.85);
}

.phone-number::before {
    content: "";
    display: inline-block;
    width: 0.78em;
    height: 0.78em;
    margin-right: 0.35em;
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M6.62 10.79a15.15 15.15 0 006.59 6.59l2.2-2.2a1 1 0 011.01-.24c1.12.37 2.33.57 3.57.57a1 1 0 011 1V20a1 1 0 01-1 1C10.4 21 3 13.6 3 4a1 1 0 011-1h3.5a1 1 0 011 1c0 1.25.2 2.45.57 3.57a1 1 0 01-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M6.62 10.79a15.15 15.15 0 006.59 6.59l2.2-2.2a1 1 0 011.01-.24c1.12.37 2.33.57 3.57.57a1 1 0 011 1V20a1 1 0 01-1 1C10.4 21 3 13.6 3 4a1 1 0 011-1h3.5a1 1 0 011 1c0 1.25.2 2.45.57 3.57a1 1 0 01-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Footer — full width */
.footer {
    background: #0a1f35;
    color: #e1f0ff;
    padding: 32px 0;
    text-align: center;
    position: relative;
    width: 100%;
    max-width: none;
}

.footer .container {
    width: 100%;
    max-width: none;
    padding-left: 16px;
    padding-right: 16px;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.9);
    transform: none;
}

.footer a {
    color: #e1f0ff;
    text-decoration: none;
}

.footer-booking {
    font-weight: 600;
}

.footer a.footer-booking:hover,
.footer a.footer-booking:focus-visible {
    text-decoration: underline;
}

/* Hero — extends under transparent header */
.hero {
    position: relative;
    width: 100%;
    max-width: none;
    height: calc(55vh + var(--header-height));
    min-height: calc(55vh + var(--header-height));
    margin-top: 0;
    overflow: hidden;
    background: #0a1f35;
}

.hero-media {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    line-height: 0;
}

.hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-content {
    box-sizing: border-box;
    padding-top: var(--header-height);
}

/* Headerbild: dunkler Verlauf bis zur halben Bildhöhe */
.hero-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(10, 31, 53, 0.82) 0%,
        rgba(10, 31, 53, 0.52) 22%,
        rgba(10, 31, 53, 0.22) 40%,
        rgba(10, 31, 53, 0) 50%
    );
}

/* Vorteile-Streifen unter dem Headerbild — gleiche Höhe wie Header */
.hero-benefits {
    position: relative;
    z-index: 1;
    width: 100%;
    height: var(--header-height);
    min-height: var(--header-height);
    max-height: var(--header-height);
    margin: 16px 0 0;
    padding: 0;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    color: #0a1f35;
    background: #f4f8fb;
    border-top: 1px solid rgba(10, 31, 53, 0.08);
    border-bottom: 1px solid rgba(10, 31, 53, 0.1);
    box-shadow: 0 8px 22px rgba(10, 31, 53, 0.06);
}

.hero-benefits-list {
    list-style: none;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    max-width: 1200px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 16px;
}

.hero-benefits-item {
    flex: 1 1 0;
    max-width: 280px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: left;
    gap: 12px;
    min-width: 0;
}

.hero-benefits-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 44px;
    flex-shrink: 0;
    color: #0a1f35;
}

.hero-benefits-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.hero-benefits-item span {
    font-family: var(--font-sans);
    font-size: 1.12rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.25;
    color: #0a1f35;
}

@media (max-width: 1280px) {
    .hero-benefits-item span {
        font-size: 1.02rem;
    }
}

@media (max-width: 768px) {
    .hero-benefits {
        height: auto;
        min-height: var(--header-height);
        max-height: none;
        padding: 12px 0;
    }

    .hero-benefits-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 10px;
        padding: 0 12px;
    }

    .hero-benefits-item {
        flex: 1 1 calc(50% - 10px);
        max-width: none;
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }

    .hero-benefits-icon {
        width: 46px;
        height: 38px;
    }

    .hero-benefits-item span {
        font-size: 1.02rem;
        font-weight: 500;
        letter-spacing: 0.01em;
        line-height: 1.25;
    }
}

/* Cookie consent — Nordblick-style two-column white dialog */
.cookie-banner {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 24px 16px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    font-family: var(--font-sans);
}

.cookie-banner.show {
    display: flex;
}

.cookie-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(20, 28, 36, 0.55);
}

.cookie-dialog {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    max-width: 100%;
    margin: 3vh auto 28px;
    background: #ffffff;
    color: #333;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
    padding: 28px 32px 22px;
    flex: 0 0 auto;
    height: auto;
    min-width: 0;
    box-sizing: border-box;
}

.cookie-dialog-header {
    position: relative;
    text-align: center;
    padding: 0 40px 14px;
    border-bottom: 2px solid #4a90c8;
    margin-bottom: 22px;
}

.cookie-dialog-header h2 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 600;
    color: #5a5a5a;
    letter-spacing: -0.01em;
}

.cookie-close {
    position: absolute;
    top: -6px;
    right: -8px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #777;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 4px;
}

.cookie-close:hover {
    color: #222;
    background: #f2f2f2;
}

.cookie-dialog-settings {
    min-width: 0;
}

.cookie-dialog-body {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px 36px;
    align-items: start;
    min-width: 0;
}

.cookie-dialog-copy {
    font-size: 0.92rem;
    line-height: 1.55;
    color: #333;
}

.cookie-dialog-copy p {
    margin: 0 0 14px;
}

.cookie-dialog-copy a,
.cookie-dialog-footer a {
    color: #2f6fbf;
    text-decoration: underline;
}

.cookie-dialog-copy a:hover,
.cookie-dialog-footer a:hover {
    color: #1d4f8c;
}

.cookie-groups {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cookie-group {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 10px 12px;
    align-items: start;
}

.cookie-group-details {
    grid-column: 1 / -1;
    margin-top: 4px;
    padding: 12px 14px;
    background: #f7f7f7;
    border-radius: 4px;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.cookie-group-main {
    min-width: 0;
}

.cookie-group-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 0;
    border: none;
    background: transparent;
    color: #2f6fbf;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    font-family: var(--font-sans);
}

.cookie-group-toggle:hover {
    color: #1d4f8c;
}

.cookie-dialog-details-panel {
    margin-top: 4px;
}

.cookie-dialog-details-panel[hidden] {
    display: none !important;
}

.cookie-dialog-settings[hidden] {
    display: none !important;
}

.cookie-dialog--details .cookie-dialog-details-panel {
    display: block;
}

.cookie-dialog--details .cookie-dialog-footer {
    margin-top: 14px;
}

.cookie-details-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    padding: 0;
    border: none;
    background: transparent;
    color: #2f6fbf;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    font-family: var(--font-sans);
}

.cookie-details-back:hover {
    color: #1d4f8c;
}

.cookie-details-scroll {
    max-height: min(52vh, 520px);
    overflow: auto;
    padding-right: 6px;
}

.cookie-detail-section + .cookie-detail-section {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e8e8e8;
}

.cookie-detail-section h3 {
    margin: 0 0 12px;
    font-size: 1.05rem;
    color: #222;
}

.cookie-service-block + .cookie-service-block {
    margin-top: 16px;
}

.cookie-service-block h4 {
    margin: 0 0 8px;
    font-size: 0.95rem;
    color: #222;
}

.cookie-service-meta {
    margin: 0 0 10px;
    font-size: 0.84rem;
    line-height: 1.45;
    color: #555;
}

.cookie-service-meta div {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 8px 12px;
    margin-bottom: 6px;
}

.cookie-service-meta dt {
    margin: 0;
    font-weight: 700;
    color: #333;
}

.cookie-service-meta dd {
    margin: 0;
}

.cookie-detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.cookie-detail-table th,
.cookie-detail-table td {
    padding: 8px 10px;
    border: 1px solid #e2e2e2;
    text-align: left;
    vertical-align: top;
}

.cookie-detail-table thead th {
    background: #f3f3f3;
    font-weight: 700;
}

.cookie-detail-table tbody th {
    font-weight: 600;
    background: #fafafa;
}

.cookie-detail-empty {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.45;
    color: #666;
}

.cookie-check {
    position: relative;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.cookie-check input {
    position: absolute;
    opacity: 0;
    inset: 0;
    margin: 0;
    cursor: pointer;
}

.cookie-check-ui {
    display: block;
    width: 18px;
    height: 18px;
    border: 2px solid #6b2b2b;
    background: #fff;
    border-radius: 2px;
    box-sizing: border-box;
}

.cookie-check input:checked + .cookie-check-ui {
    background: #e8e8e8;
    border-color: #8a8a8a;
}

.cookie-check input:checked + .cookie-check-ui::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #444;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.cookie-check input:disabled {
    cursor: default;
}

.cookie-check input:disabled + .cookie-check-ui {
    background: #ececec;
    border-color: #b0b0b0;
}

.cookie-group-main strong {
    display: block;
    margin: 0 0 4px;
    color: #222;
    font-size: 0.98rem;
    font-weight: 700;
}

.cookie-group-main p {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.4;
    color: #555;
}

.cookie-dialog-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 26px;
}

.cookie-btn {
    padding: 14px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
    transition: background 0.2s ease;
    font-family: var(--font-sans);
    background: #111;
    color: #fff;
}

.cookie-btn:hover {
    background: #333;
}

.cookie-btn-wide {
    grid-column: 1 / -1;
}

.cookie-dialog-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 22px;
    margin-top: 18px;
    padding-top: 4px;
    font-size: 0.86rem;
}

.cookie-settings-btn {
    position: fixed;
    left: 14px;
    bottom: 14px;
    z-index: 9999;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: rgba(55, 65, 75, 0.88);
    color: #fff;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.cookie-settings-btn.show {
    display: inline-flex;
}

.cookie-settings-btn:hover {
    background: rgba(35, 45, 55, 0.95);
}

.cookie-settings-btn svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
}

body.cookie-modal-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    body.cookie-modal-open .header {
        z-index: 10002;
    }

    .cookie-banner {
        top: var(--cookie-offset-top, 78px);
        padding: 0;
        justify-content: flex-end;
    }

    .cookie-backdrop {
        inset: auto;
        top: var(--cookie-offset-top, 78px);
        left: 0;
        right: 0;
        bottom: 0;
    }

    .cookie-dialog {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 16px 14px calc(16px + env(safe-area-inset-bottom, 0px));
        border-radius: 12px 12px 0 0;
        max-height: calc(100vh - var(--cookie-offset-top, 78px));
        max-height: calc(100dvh - var(--cookie-offset-top, 78px));
        display: flex;
        flex-direction: column;
        overflow: hidden;
        box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.28);
    }

    .cookie-dialog-header {
        flex-shrink: 0;
        padding: 0 36px 10px 4px;
        margin-bottom: 14px;
    }

    .cookie-dialog-header h2 {
        font-size: 1.15rem;
        line-height: 1.3;
    }

    .cookie-close {
        top: -4px;
        right: -2px;
    }

    .cookie-dialog-settings {
        flex: 1 1 auto;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        padding-bottom: 4px;
    }

    .cookie-dialog-body {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cookie-dialog-copy {
        font-size: 0.86rem;
        line-height: 1.5;
    }

    .cookie-dialog-copy p {
        margin: 0 0 10px;
    }

    .cookie-dialog-copy p:nth-child(n+3) {
        display: none;
    }

    .cookie-groups {
        gap: 12px;
        padding-bottom: 4px;
    }

    .cookie-group-main strong {
        font-size: 0.95rem;
    }

    .cookie-group-main p {
        font-size: 0.8rem;
    }

    .cookie-dialog-actions {
        position: relative;
        bottom: auto;
        z-index: 2;
        flex-shrink: 0;
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 0;
        padding: 10px 0 4px;
        background: #fff;
        border-top: 1px solid #ececec;
    }

    .cookie-dialog-actions[hidden] {
        display: none !important;
    }

    .cookie-btn {
        width: 100%;
        padding: 13px 14px;
        font-size: 0.92rem;
    }

    .cookie-btn-wide {
        grid-column: auto;
    }

    .cookie-dialog-footer {
        flex-shrink: 0;
        gap: 8px 14px;
        margin-top: 10px;
        font-size: 0.8rem;
        justify-content: center;
        text-align: center;
    }

    .cookie-dialog-details-panel {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        margin-top: 0;
    }

    .cookie-dialog--details .cookie-dialog-details-panel {
        display: flex;
    }

    .cookie-details-back {
        flex-shrink: 0;
        margin-bottom: 10px;
        font-size: 0.88rem;
    }

    .cookie-details-scroll {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-right: 0;
    }

    .cookie-service-meta div {
        grid-template-columns: 1fr;
        gap: 2px 0;
    }

    .cookie-detail-table {
        width: 100%;
        max-width: 100%;
        display: table;
        table-layout: fixed;
        font-size: 0.75rem;
    }

    .cookie-detail-table th,
    .cookie-detail-table td {
        padding: 6px 7px;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .cookie-group-details {
        padding: 10px;
    }

    .cookie-settings-btn {
        left: max(12px, env(safe-area-inset-left, 0px));
        bottom: max(12px, env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 768px) and (max-height: 700px) {
    .cookie-dialog {
        border-radius: 0;
        max-height: calc(100vh - var(--cookie-offset-top, 78px));
        max-height: calc(100dvh - var(--cookie-offset-top, 78px));
    }
}

/* Scroll reveals (enhanced in animations.css) */
.reveal-fade,
.team-reveal,
.reviews-reveal,
.gs-reveal,
.news-reveal,
.services-reveal,
.memberships-reveal,
.media-reveal,
.laser-panel-reveal,
.schwerpunkte-reveal,
.why-op-reveal {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition:
        opacity 0.85s var(--ease-out),
        transform 0.85s var(--ease-out);
    transition-delay: var(--reveal-delay, var(--review-delay, var(--service-delay, 0ms)));
}

.reveal-fade.is-visible,
.team-reveal.is-visible,
.reviews-reveal.is-visible,
.gs-reveal.is-visible,
.news-reveal.is-visible,
.services-reveal.is-visible,
.memberships-reveal.is-visible,
.media-reveal.is-visible,
.laser-panel-reveal.is-visible,
.schwerpunkte-reveal.is-visible,
.why-op-reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal-fade,
    .team-reveal,
    .reviews-reveal,
    .gs-reveal,
    .news-reveal,
    .services-reveal,
    .memberships-reveal,
    .media-reveal,
    .laser-panel-reveal,
    .schwerpunkte-reveal,
    .why-op-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Covert admin entry — icon only, sits with footer legal links when present */
.covert-admin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: rgba(225, 240, 255, 0.72);
    text-decoration: none;
    border-radius: 8px;
    opacity: 0.72;
    vertical-align: middle;
    transition: opacity 0.2s ease, color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.covert-admin-link--fixed {
    position: fixed;
    right: 16px;
    bottom: 18px;
    z-index: 45;
    color: rgba(23, 62, 103, 0.7);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 2px 10px rgba(23, 62, 103, 0.12);
    border: 1px solid rgba(23, 62, 103, 0.14);
    opacity: 0.8;
}

.covert-admin-link:hover,
.covert-admin-link:focus-visible {
    opacity: 1;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    outline: none;
    transform: translateY(-1px);
}

.covert-admin-link--fixed:hover,
.covert-admin-link--fixed:focus-visible {
    color: rgba(23, 62, 103, 0.95);
    background: #fff;
    box-shadow: 0 4px 14px rgba(23, 62, 103, 0.18);
}

.covert-admin-link svg {
    display: block;
    pointer-events: none;
}

/* Hero: dekorative weiße Unterlinie unter H1 entfernen (alle Seiten) */
.hero-text h1::after,
.hero-content h1::after,
.hero-content > h1::after {
    display: none !important;
    content: none !important;
    animation: none !important;
}

.hero .hero-ai-badge {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 4;
    width: 28px;
    height: auto;
    border-radius: 10%;
    opacity: 0.85;
    pointer-events: none;
}

@media (max-width: 768px) {
    .hero:has(.hero-media) .hero-ai-badge {
        grid-row: 1;
        grid-column: 1;
        position: relative;
        right: auto;
        bottom: auto;
        z-index: 4;
        align-self: end;
        justify-self: end;
        margin: 0 8px 8px 0;
    }
}

/* Desktop-Layout bei niedrigem Browserfenster: Der Hero-Text darf nie über den Header
   hinausragen. Der Hero wächst mit dem Text statt ihn nach oben zu schieben.
   html body erhöht die Spezifität über die seiteneigenen .hero-Regeln mit !important. */
@media (min-width: 769px) {
    html body .hero {
        height: auto !important;
        min-height: calc(55vh + var(--header-height, 78px)) !important;
    }

    html body .hero .hero-content {
        position: relative !important;
        inset: auto !important;
        min-height: calc(55vh + var(--header-height, 78px)) !important;
        box-sizing: border-box !important;
        padding-top: calc(var(--header-height, 78px) + 20px) !important;
        padding-bottom: 20px !important;
    }
}

/* Hero-Schrift zusätzlich an der Fensterhöhe ausrichten, damit sie bei niedrigen Fenstern
   mitschrumpft (die Seiten-Regeln skalieren nur mit der Breite). */
@media (min-width: 769px) and (max-height: 820px) {
    html body .hero .hero-content h1 {
        font-size: clamp(1.6rem, min(4.2vw, 6.8vh), 3.65rem) !important;
        margin-bottom: min(16px, 1.6vh) !important;
        padding-bottom: min(18px, 1.8vh) !important;
    }

    html body .hero .hero-content:has(.hero-brand) h1 {
        font-size: clamp(1.6rem, min(5vw, 7.2vh), 4.4rem) !important;
    }

    html body .hero .hero-content .hero-brand {
        font-size: clamp(1.2rem, min(3.75vw, 5.4vh), 3.3rem) !important;
        margin-bottom: min(1.1em, 2.4vh) !important;
    }

    html body .hero .hero-content p:not(.hero-brand) {
        font-size: clamp(0.92rem, min(1.35vw, 2.2vh), 1.18rem) !important;
        line-height: 1.6 !important;
        margin-top: min(8px, 1vh) !important;
        margin-bottom: min(28px, 2.8vh) !important;
    }
}

/* Smartphones im Querformat (Desktop-Layout, aber sehr niedriger Bildschirm):
   Hero wächst mit dem Text, statt ihn unter dem Header bzw. am Bildrand abzuschneiden.
   html body erhöht die Spezifität über die seiteneigenen .hero-Regeln mit !important. */
@media (min-width: 769px) and (max-height: 500px) and (orientation: landscape) {
    html body .hero:has(.hero-media) {
        height: auto !important;
        min-height: 100vh !important;
        min-height: 100svh !important;
    }

    html body .hero:has(.hero-media) .hero-content {
        position: relative !important;
        inset: auto !important;
        min-height: 100vh !important;
        min-height: 100svh !important;
        box-sizing: border-box !important;
        padding-top: calc(var(--header-height, 78px) + 14px) !important;
        padding-bottom: 22px !important;
    }
}

/* Aufgeklapptes Mobilmenü im Querformat: höher als der Bildschirm, daher eigenes Scrollen
   (die Seite dahinter ist bei offenem Menü gesperrt) */
@media (max-height: 500px) and (orientation: landscape) {
    html body .header-nav.nav-open .nav-menu {
        max-height: calc(100vh - var(--header-height, 78px) - 8px) !important;
        max-height: calc(100dvh - var(--header-height, 78px) - 8px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
}

/* Smartphones im Querformat: Alles, was mit viel Bildschirmhöhe rechnet, auf die
   niedrige Höhe abstimmen. html body / html:root übertrumpfen die seiteneigenen Regeln. */
@media (max-height: 500px) and (orientation: landscape) {
    html:root {
        --header-height: 60px !important;
        --ls-media-h: min(78vh, 520px);
        --ls-media-h: min(78svh, 520px);
    }

    html:not([data-font-size="large"]) {
        font-size: 93.75%;
    }

    /* Kompakter Header */
    html body .header {
        padding: 6px 0 !important;
    }

    html body .header .header-content {
        min-height: 46px !important;
    }

    html body .header .header-content > a:first-of-type {
        height: 42px !important;
    }

    html body .header .header-logo {
        height: 40px !important;
        max-height: 40px !important;
    }

    html body .header .contact-info {
        min-height: 44px !important;
    }

    /* Fotos höchstens etwa bildschirmhoch (nur Obergrenze), mittig beschnitten statt überhoch.
       Figuren mit Bildunterschrift werden nicht selbst begrenzt, sondern nur ihr Bild. */
    html body :is(.welcome-image, div.gs-intro-visual, .gs-intro-visual-media, .gs-symptom-figure,
        .gs-type-media, .loc-media:not(:has(figcaption)), .loc-media:has(figcaption) > picture,
        .vs-chapter-visual, .vs-steps-visual, .opz-media-main, .pa-panel > picture,
        .pa-service > picture, .pa-region-card > picture, .pa-remote-visual, .lst-highlight-media,
        .news-article-image, .laser-story-visual, .practice-story-media, .service-card-image) {
        max-height: var(--ls-media-h) !important;
        min-height: 0 !important;
        overflow: hidden !important;
        align-self: start !important;
    }

    html body :is(.welcome-image, div.gs-intro-visual, .gs-intro-visual-media, .gs-symptom-figure,
        .gs-type-media, .loc-media:not(:has(figcaption)), .vs-chapter-visual, .vs-steps-visual,
        .opz-media-main, .pa-remote-visual, .lst-highlight-media, .news-article-image,
        .laser-story-visual, .practice-story-media, .service-card-image) picture {
        height: 100% !important;
        max-height: var(--ls-media-h) !important;
    }

    html body :is(.welcome-image, div.gs-intro-visual, .gs-intro-visual-media, .gs-symptom-figure,
        .gs-type-media, .loc-media, .vs-chapter-visual, .vs-steps-visual, .opz-media-main,
        .pa-panel > picture, .pa-service > picture, .pa-region-card > picture, .pa-remote-visual,
        .lst-highlight-media, .news-article-image, .laser-story-visual, .practice-story-media,
        .service-card-image) img:not(.ai-badge) {
        width: 100% !important;
        height: 100% !important;
        max-height: var(--ls-media-h) !important;
        object-fit: cover !important;
    }

    html body .loc-vip-media {
        min-height: 0 !important;
        height: auto !important;
    }

    /* Illustrationen und Vorher-Nachher-Regler nicht beschneiden, sondern verkleinern */
    html body :is(.glk-illu, .lz-eye-wrap, .lz-illustration, .lz-chapter-media--svg) svg {
        max-height: var(--ls-media-h) !important;
    }

    html body .comparison-slider {
        max-width: calc(var(--ls-media-h) * 4 / 3) !important;
        max-height: var(--ls-media-h) !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    html body .anfahrt-map {
        height: var(--ls-media-h) !important;
        min-height: 0 !important;
        aspect-ratio: auto !important;
    }

    /* Datenschutz-Knopf kleiner, damit er weniger Text verdeckt */
    html body .cookie-settings-btn {
        width: 40px !important;
        height: 40px !important;
        left: max(8px, env(safe-area-inset-left, 0px)) !important;
        bottom: max(8px, env(safe-area-inset-bottom, 0px)) !important;
        opacity: 0.8;
    }
}

/* Google-Maps-Platzhalter bis zur Einwilligung „Externe Medien“ */
.consent-embed {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 12px 12px 26px;
    box-sizing: border-box;
    background-color: #e9eff5;
    background-repeat: no-repeat;
    background-size: cover;
    /* Markierung liegt im Bild bei 50 % / 32 % */
    background-position: 50% 32%;
    color: #0a1f35;
    font-family: var(--font-sans);
    text-align: center;
    cursor: default;
    line-height: 1.45;
}

.consent-embed-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    max-width: 440px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.93);
    box-shadow: 0 6px 20px rgba(10, 31, 53, 0.18);
}

/* !important: Kontaktbereiche setzen helle Textfarben und Größen für alle p/a */
.consent-embed p {
    margin: 0 !important;
    text-align: center !important;
}

.consent-embed p.consent-embed-text {
    font-size: 0.76rem !important;
    line-height: 1.4 !important;
    color: #3a4f66 !important;
}

.consent-embed-credit {
    position: absolute;
    right: 0;
    bottom: 0;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.8);
    color: #333 !important;
    font-size: 0.66rem !important;
    line-height: 1.4;
}

.consent-embed .consent-embed-credit a {
    color: #1a4a7a !important;
    text-decoration: none !important;
}

.consent-embed a {
    color: #1a4a7a !important;
    text-decoration: underline !important;
}

.consent-embed-btn {
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 8px 20px;
    background: #0a1f35;
    color: #fff !important;
    font: inherit;
    font-size: 0.84rem !important;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.consent-embed-btn:hover,
.consent-embed-btn:focus-visible {
    background: #1a4a7a;
    outline: none;
}
