/* ============ RESET & TOKENS ============ */
:root {
    --bg: #ffffff;
    --text: #111216;
    --muted: #5a5f6b;
    --accent: #2c024d; /* Brand-Lila */
    --accent-2: #3c1357;
    --card: #f4f6f8;
    --soft: #f7faf9;
    --shadow: 0 8px 24px rgba(0,0,0,.08);
    --radius: 18px;
    --max: 1200px;

    /* Dark Header/Footer */
    --surface-dark: #2f2f31;
    --surface-dark-2: #3a3a3d;
    --on-surface: #ffffff;
    --on-surface-muted: #b9bcc3;
    --ring: rgba(255,255,255,.08);
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
    margin: 0;
    font-family: 'Roboto', system-ui, -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.container {
    width: 100%;
    max-width: var(--max);
    padding-inline: 20px;
    margin-inline: auto;
}

.section { padding: 56px 0; }
h1, h2, h3 { margin: 0 0 12px; line-height: 1.2; }

.eyebrow {
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: .78rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 8px;
}

.lead { font-size: 1.125rem; color: var(--muted); }

/* ===== Nur Button-Hintergrund anpassen (keine globalen Variablen ändern) ===== */
.btn {
    background-color: #cfa6cc !important; /* neue Hintergrundfarbe */
    border-color: #cfa6cc !important;
    color: #fff !important; /* Text bleibt weiss */
}

.btn:hover {
    background-color: #b98db6 !important; /* etwas dunkler bei Hover */
    border-color: #b98db6 !important;
}

.btn:active {
    background-color: #ae82ac !important;
    border-color: #ae82ac !important;
}

.btn--ghost {
    background: transparent !important;
    border-color: #cfa6cc !important;
    color: #cfa6cc !important;
}

.btn--ghost:hover {
    background: rgba(207, 166, 204, 0.12) !important;
}


/* Kontaktkarten: Links stylen, Buttons NICHT überschreiben */
.contact-card a:not(.btn) {
    color: var(--accent);
    text-decoration: none;
}
.contact-card a:not(.btn):hover,
.contact-card a:not(.btn):focus-visible {
    text-decoration: underline;
}
/* ==== Fix: Buttons in Kontaktkarten sollen wie echte Buttons aussehen ==== */
.contact-card a.btn {
    background-color: #cfa6cc !important;
    border: 1px solid #cfa6cc !important;
    color: #fff !important;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
}

.contact-card a.btn:hover {
    background-color: #b98db6 !important;
    border-color: #b98db6 !important;
    transform: translateY(-1px);
}

.contact-card a.btn:active {
    background-color: #ae82ac !important;
    border-color: #ae82ac !important;
    transform: translateY(0);
}


/* ============ SKIPLINK ============ */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.skip-link:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 8px 12px;
    background: #000;
    color: #fff;
    z-index: 1000;
    border-radius: 6px;
}

/* ============ MODERN DARK HEADER ============ */
.header { background: var(--accent); color: #fff; } /* legacy */
.header--modern{
    --bg: var(--surface-dark);
    --fg: var(--on-surface);
    background: var(--bg);
    color: var(--fg);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 16px rgba(0,0,0,.25);
    overflow: visible;
}
.header__inner{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .8rem 1.6rem;
    max-width: var(--max);
    margin: auto;
}

/* NAV LEFT (Desktop) */
.nav__list{
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 0; padding: 0;
}
.nav__list a{
    color: var(--on-surface);
    text-decoration: none;
    font-weight: 400;
    letter-spacing: .02em;
    transition: opacity .2s;
    text-transform: uppercase;
    font-size: .95rem;
}
.nav__list a:hover { opacity: .8; }
.nav__list a.is-active { border-bottom: 2px solid var(--on-surface); padding-bottom: 2px; }

/* Dropdown (Desktop) – Hover-Fix integriert */
.has-dropdown { position: relative; }
.has-dropdown::after{
    content:"";
    position:absolute; left:0; right:0; top:100%;
    height:12px;
}
.has-dropdown > a { position: relative; padding-right: 18px; }
.has-dropdown > a::after{
    content:"▾";
    position:absolute; right:-2px; top:0;
    font-size:.9em; line-height:1.2; opacity:.85;
}

.dropdown{
    position:absolute; left:0; top:100%;
    margin-top:10px; min-width:220px;
    background: var(--surface-dark-2);
    color: var(--on-surface);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0,0,0,.25);
    padding: 8px 0;
    list-style: none;

    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility .2s step-end;
    z-index: 1001;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity .2s ease, transform .2s ease, visibility 0s;
}
.dropdown a{
    display: block;
    padding: 10px 18px;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    text-transform: none;
    font-weight: 500;
}
.dropdown a:hover,
.dropdown a:focus-visible{ background: rgba(255,255,255,.08); border-radius: 6px; }

/* LOGO right */
.logo--header{ display: inline-flex; align-items: center; justify-content: center; }
.logo__img{ height: 52px; width: auto; filter: brightness(1.1); }
.logo__img--mobile { height: 40px; }

/* MOBILE HEADER / NAV */
.mobile-toggle{
    background: none; border: 0; cursor: pointer;
    display: none; position: relative; width: 34px; height: 22px;
}
.hamburger, .hamburger::before, .hamburger::after{
    content:""; display:block; background:#fff;
    height:2px; border-radius:2px; width:100%;
    position:absolute; transition:.3s ease;
}
.hamburger{ top:50%; transform:translateY(-50%); }
.hamburger::before{ top:-8px; }
.hamburger::after{ top:8px; }
.mobile-toggle.is-active .hamburger{ background: transparent; }
.mobile-toggle.is-active .hamburger::before{ transform: rotate(45deg) translate(4px,4px); }
.mobile-toggle.is-active .hamburger::after{ transform: rotate(-45deg) translate(4px,-4px); }

.mobile-nav{
    position: fixed; inset: 0;
    background: var(--surface-dark);
    display: flex; justify-content: center; align-items: center; flex-direction: column;
    transform: translateX(-100%); transition: .3s ease; z-index: 998;
}
.mobile-nav.is-active{ transform: none; }
.mobile-nav__list{
    list-style: none; margin: 0; padding: 0;
    text-align: center; display: flex; flex-direction: column; gap: 1.5rem;
}
.mobile-nav__list a{
    color: #fff; text-decoration: none; font-size: 1.2rem; font-weight: 300;
}
.mobile-nav__list a:hover{ opacity:.8; }

/* Legacy desktop/mobile visibility */
.desktop-header { display: block; }
.mobile-header  { display: none; }

body.menu-open { overflow: hidden; }

/* ============ HERO ============ */
.hero {
    background-image: url('/img/banner1.png');
    background-size: cover;
    background-position: center;
    min-height: 440px;
    position: relative;
    display: grid;
    align-items: end;
}
.hero__inner { padding-block: 40px; }
.social-links {
    display: inline-flex; align-items: center; gap: 12px; color: black;
}
.social-links a {
    color: black; text-decoration: none; font-size: 1.05rem; font-weight: 500;
}
.social-links a:hover, .social-links a:focus-visible { text-decoration: underline; }
.social-links .divider { opacity: .8; }

/* ============ ABOUT ============ */
.about__grid {
    display: grid; grid-template-columns: 1fr; gap: 32px;
}
.about__image { max-width: 420px; }
.profile-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.title { font-size: 2.4rem; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.subtitle { font-size: 1.4rem; font-weight: 400; color: #666; margin-bottom: 20px; }
.text { color: #555; margin-bottom: 16px; }

/* LIST — zusammengeführt */
.list { padding: 0; margin: 16px 0; list-style: none; display: grid; gap: 10px; }
.list li { margin: 0; padding-left: 20px; position: relative; color: #555; }
.list li::before { content: "•"; position: absolute; left: 0; color: var(--accent); }

@media (min-width: 900px) {
    .about__grid { grid-template-columns: 0.9fr 1.4fr; align-items: start; }
}

/* ============ GENERISCHE SEKTIONEN / PROMO ============ */
.section--soft { background: var(--soft); }

.promo__card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 100px;
    align-items: center;
}

.promo__media {
    width: 280px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: linear-gradient(135deg, #e2f3ed, #eefaf5);
    display: grid;
    place-items: center;
    color: #2f514d;
    font-weight: 600;
    overflow: hidden;
    justify-self: start;
}

.promo__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.centered { text-align: center}
.centered .media {
    margin-top: 32px; aspect-ratio: 4/3; border-radius: var(--radius);
    background: linear-gradient(135deg, #d7f0e9, #f3fbf8);
    display: grid; place-items: center; font-weight: 600; color: #2c3e37;
}

/* Einheitliches, zentriertes Produktbild */
.media--centered {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}
.media--centered img {
    width: 80%;
    max-width: 700px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

.spotlight { background: #fbfcfd; }

/* ============ CARD GRID ============ */
.card-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex; flex-direction: column;
}
.card__media { aspect-ratio: 16/10; }
.card__body { padding: 16px; }
.card__title { font-size: 1.125rem; margin: 0 0 6px; }
.card__link { display: inline-block; margin-top: 8px; font-weight: 600; color: var(--accent); text-decoration: none; }
.card__link:hover, .card__link:focus-visible { text-decoration: underline; }

/* ============ INSTAGRAM ============ */
.instagram { background-color: #fbfcfd; }
.instagram .section-title { padding-top: 30px;}
.instagram-link {
    display: inline-flex; align-items: center; gap: 10px;
    color: #333; text-decoration: none; font-size: 1.1rem;
}
.instagram-link:hover { opacity: .85; }

.instagram-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 20px; margin-top: 24px;
}
.instagram-item {
    aspect-ratio: 1; overflow: hidden; opacity: 0; transform: translateY(20px);
    animation: slideIn .5s ease forwards;
}
.instagram-item img {
    width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease;
}
.instagram-item:hover img { transform: scale(1.05); }

.instagram-item:nth-child(1) { animation-delay: .1s; }
.instagram-item:nth-child(2) { animation-delay: .2s; }
.instagram-item:nth-child(3) { animation-delay: .3s; }
.instagram-item:nth-child(4) { animation-delay: .4s; }
.instagram-item:nth-child(5) { animation-delay: .5s; }
.instagram-item:nth-child(6) { animation-delay: .6s; }
.instagram-item:nth-child(7) { animation-delay: .7s; }
.instagram-item:nth-child(8) { animation-delay: .8s; }

@keyframes slideIn { to { opacity: 1; transform: translateY(0); } }

/* ============ GALLERY / INSTITUTE ============ */
.institute { background: #ffffff; }
.section-header { text-align: center; }
.section-title { font-size: 2.2rem; font-weight: 700; color: #333; }
.section-subtitle { font-size: 1.3rem; font-weight: 400; color: #666; }

.gallery-grid {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; margin-top: 24px;
}
.gallery-item {
    opacity: 0; transform: translateY(20px);
    animation: fadeIn .5s ease forwards; aspect-ratio: 1; overflow: hidden;
}
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; cursor: pointer;
}
.gallery-item img:hover { transform: scale(1.05); }

@keyframes fadeIn { to { opacity: 1; transform: translateY(0); } }

.gallery-item:nth-child(1) { animation-delay: .1s; }
.gallery-item:nth-child(2) { animation-delay: .2s; }
.gallery-item:nth-child(3) { animation-delay: .3s; }
.gallery-item:nth-child(4) { animation-delay: .4s; }
.gallery-item:nth-child(5) { animation-delay: .5s; }
.gallery-item:nth-child(6) { animation-delay: .6s; }
.gallery-item:nth-child(7) { animation-delay: .7s; }
.gallery-item:nth-child(8) { animation-delay: .8s; }

/* ============ MAP ============ */
.find-us { background: #fbfcfd; }
.map {
    background: #fff; padding: 20px; border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
}
.map__placeholder{
    width: 100%; height: 400px; background: #e9ecef; margin-bottom: 20px; overflow: hidden;
}
.map__placeholder img{ width: 100%; height: 100%; object-fit: cover; }
.map__actions{ text-align: center; }
.map__link{ text-decoration: none; }

/* ============ PAGE BANNER (Produkte/Legal) ============ */
.page-banner {
    position: relative;
    height: 46vh; min-height: 360px; overflow: hidden;
    display: grid; place-items: center; text-align: left; color: #fff;
    background: #f0eef3;
}
.page-banner img{
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.6);
}
.page-banner__content{
    position: relative; z-index: 1; max-width: 900px; padding-inline: 20px;
}
.page-banner__content h1{ font-size: clamp(2rem, 3vw + 1rem, 3rem); }

/* ============ TREATMENTS (Behandlungen) ============ */
.banner-only{
    width: 100%; height: 50vh; min-height: 360px; overflow: hidden;
}
.banner-only img{ width: 100%; height: 100%; object-fit: cover; display: block; }

.heading-under-banner{
    padding: 60px 20px; text-align: center; background: #fff;
}

.treatments__stack{ display: grid; gap: 56px; }
.treatment{
    display: grid; grid-template-columns: 1.05fr .95fr;
    gap: 40px; align-items: center;
}
.treatment__media{
    aspect-ratio: 4/3; border-radius: 12px; overflow: hidden;
    background: #e9ecef; box-shadow: 0 10px 25px rgba(0,0,0,.08);
}
.treatment__media img{ width: 100%; height: 100%; object-fit: cover; }
.treatment__title{ font-size: 2rem; font-weight: 700; color: var(--accent); margin-bottom: .35rem; }
.treatment__subtitle{ font-size: 1.15rem; color: #666; font-weight: 400; margin-bottom: 1rem; }

.treatment--alt .treatment__media{ order: 2; }
.treatment--alt .treatment__content{ order: 1; }

[data-animate]{ opacity: 0; transform: translateY(20px); animation: fadeUp .8s ease forwards; }
[data-animate="2"]{ animation-delay: .12s; }
[data-animate="3"]{ animation-delay: .24s; }
[data-animate="4"]{ animation-delay: .36s; }
@keyframes fadeUp{ to{ opacity: 1; transform: none; } }

@media (max-width: 960px){
    .treatment{ grid-template-columns: 1fr; gap: 22px; }
    .treatment__title{ font-size: 1.7rem; }
    .treatment__subtitle{ font-size: 1.05rem; }
    .banner-only{ height: 38vh; }
}
@media (max-width: 640px){
    .heading-under-banner .section-title{ font-size: 2rem; }
    .heading-under-banner .section-subtitle{ font-size: 1.1rem; }
}

/* ============ STEPS (Produkte) ============ */
.steps{ background: var(--soft); }
.steps__wrap{
    display: grid; grid-template-columns: 1.1fr .9fr;
    gap: 32px; align-items: center;
}
.steps__media{
    aspect-ratio: 4/3; border-radius: var(--radius);
    background: linear-gradient(135deg, #e6f3ef, #f5fbf8);
    display: grid; place-items: center; font-weight: 600; color: #2f4d47;
}
.steps__list{ counter-reset: step; padding-left: 0; margin: 12px 0; }
.steps__list li{
    list-style: none; margin: 0 0 14px; padding-left: 48px; position: relative;
}
.steps__list li::before{
    counter-increment: step; content: counter(step);
    position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%;
    background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700;
}

/* ============ PRODUCT GRID ============ */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-grid .card__media { aspect-ratio: 4/3; }

/* ============ QUOTE BOX ============ */
.quote{ background: var(--soft); }
.quote__box{
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 28px; font-size: 1.1rem; text-align: center; font-style: italic;
}

/* ============ LEGAL (Impressum/Datenschutz) ============ */
.legal-grid{
    display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
}
.legal-card{
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 20px 22px; display: grid; gap: 12px;
}
.legal-card h2{ margin: 0 0 4px; color: var(--accent); }
.legal-card h3{ margin: 8px 0 4px; }
@media (max-width: 960px){
    .legal-grid{ grid-template-columns: 1fr; }
}

/* ============ PARTNER ============ */
.partner{
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 24px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px;
}
.partner + .partner{ margin-top: 20px; }
.partner__media{
    aspect-ratio: 4/3; border-radius: 12px;
    background: linear-gradient(135deg, #e6f3ef, #f5fbf8);
    display: grid; place-items: center; font-weight: 700; color: #2f4d47;
}
.partner__content{ display: grid; gap: 16px; }
.partner__title{ font-size: 1.8rem; color: var(--accent); margin: 0; }
.partner__subtitle{ color: #666; margin: 0; }
.partner__cols{
    display: grid; grid-template-columns: 1fr .9fr; gap: 18px;
}
.contact-card{
    background: var(--card); border-radius: 12px; box-shadow: var(--shadow);
    padding: 16px 18px;
}
.contact-card__row{ margin: 0 0 10px; }
@media (max-width: 960px){
    .partner{ grid-template-columns: 1fr; }
    .partner__cols{ grid-template-columns: 1fr; }
}

/* ============ MODERN DARK FOOTER ============ */
.footer { background: #320f43; color: #fff; } /* legacy */
.footer--modern{
    --footer-bg: var(--surface-dark);
    --footer-fg: #e9e9ea;
    --footer-muted: var(--on-surface-muted);
    --tile: var(--surface-dark-2);
    --ring: var(--ring);
    background: var(--footer-bg);
    color: var(--footer-fg);
    padding: 48px 0 32px;
}
.footer--modern a{ color: var(--footer-fg); text-decoration: none; }
.footer--modern a:hover{ opacity:.9; }

.fgrid{
    display:grid; grid-template-columns: 1.2fr 1fr 1.2fr 1fr;
    gap:28px; align-items:start; margin-bottom:28px;
}
@media (max-width: 1024px){ .fgrid{ grid-template-columns: 1fr 1fr; gap:22px; } }
@media (max-width: 640px){ .fgrid{ grid-template-columns: 1fr; gap:18px; } }

.fbrand{ display:inline-flex; align-items:center; gap:12px; }
.fbrand__img{ height:54px; width:auto; filter: brightness(1) contrast(1.05); }
.fcol__title{
    text-transform: uppercase; letter-spacing:.06em;
    font-size:.85rem; color: var(--footer-muted); margin:0 0 10px;
}
.ftime{ list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.ftime li{ color: var(--footer-fg); }
.ftime strong{ font-weight:700; }
.faddr{ font-style: normal; color: var(--footer-fg); margin:0 0 8px; }
.fcontact a{ color: var(--footer-fg); border-bottom: 1px dashed var(--ring); }
.fcontact a:hover{ border-bottom-color: transparent; }

.fsocial{ display:flex; gap:10px; margin-bottom:12px; }
.fsocial__btn{
    width:42px; height:42px; border-radius:999px; display:grid; place-items:center;
    background: var(--tile); color:#fff; box-shadow: inset 0 0 0 1px var(--ring);
    transition: transform .15s ease, background .2s ease;
}
.fsocial__btn:hover{ transform: translateY(-2px); background:#454548; }

.btn--wide{
    display:inline-block; padding:12px 18px; border-radius:10px;
    background: var(--tile); border:1px solid var(--ring);
    box-shadow:0 8px 20px rgba(0,0,0,.18); font-weight:600; text-align:center;
}

.flinks{
    display:flex; justify-content:center; gap:18px; flex-wrap:wrap; margin-top:22px;
}
.flink{
    background: var(--tile); border:1px solid var(--ring);
    padding:14px 26px; border-radius:10px; color:#fff; font-weight:500;
}
.flink:hover{ transform: translateY(-1px); }

/* Utility */
.sr-only{
    position:absolute; width:1px; height:1px; padding:0; margin:-1px;
    overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* ============ RESPONSIVE BREAKPOINTS ============ */
@media (max-width: 1024px){
    .instagram-grid{ grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px){
    .nav--primary{ display: none; }
    .mobile-toggle{ display: block; }
    .promo__card{ grid-template-columns: 1fr; }
    .card-grid{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px){
    .desktop-header{ display: none; }
    .mobile-header{ display: block; }
    .instagram-grid{ grid-template-columns: repeat(2, 1fr); }
    .gallery-grid{ grid-template-columns: repeat(2, 1fr); }
    .map__placeholder{ height: 300px; }
    .title{ font-size: 2rem; }
    .subtitle{ font-size: 1.2rem; }
}

@media (max-width: 640px){
    .card-grid{ grid-template-columns: 1fr; }
    .page-banner{ height: 38vh; }
    .product-grid{ grid-template-columns: 1fr; }
}

/* ===== TERMIN BUCHEN Section ===== */
#termin .promo__media {
    font-size: 2.4rem;
    background: linear-gradient(135deg, #eae6f5, #f5f2fa);
    color: var(--accent);
}
#termin .btn {
    font-size: 1.05rem;
    letter-spacing: .02em;
}
#termin .cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
}

/* ===== LIGHTBOX (mit Navigation) ===== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
    z-index: 2000;
}
.lightbox.is-active {
    opacity: 1;
    visibility: visible;
}
.lightbox__img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,.5);
}

/* Schliessen */
.lightbox__close {
    position: absolute;
    top: 24px;
    right: 28px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
    opacity: .8;
    transition: opacity .2s ease;
}
.lightbox__close:hover { opacity: 1; }

/* Pfeile */
.lightbox__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,.4);
    border: none;
    color: #fff;
    font-size: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    transition: background .2s ease;
}
.lightbox__arrow:hover { background: rgba(255,255,255,.15); }
.lightbox__arrow--prev { left: 32px; }
.lightbox__arrow--next { right: 32px; }

@media (max-width: 640px) {
    .lightbox__arrow {
        font-size: 1.6rem;
        width: 38px;
        height: 38px;
    }
    .lightbox__arrow--prev { left: 16px; }
    .lightbox__arrow--next { right: 16px; }
}

/* ===== Motion Preferences (A11y) ===== */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}

/* Partner-Logos einheitlich ausrichten & begrenzen */
.partner__media {
    padding: 16px;
    display: grid;
    place-items: center;
}
.partner__media img {
    width: auto;
    height: auto;
    max-width: min(220px, 80%);
    max-height: clamp(80px, 12vw, 140px);
    object-fit: contain;
    margin: 0 auto;
}
@media (max-width: 480px) {
    .partner__media img {
        max-width: 70%;
        max-height: 110px;
    }
}

/* Unterstreichung in Buttons überall sicher entfernen */
.btn,
.btn:link,
.btn:visited,
.btn:hover,
.btn:focus {
    text-decoration: none !important;
}

/* Termin-Sektion: Button-Styles hart durchsetzen */
#termin .btn {
    background-color: #cfa6cc !important;
    border: 1px solid #cfa6cc !important;
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    box-shadow: var(--shadow);
    transition: transform .15s ease, background-color .2s ease, border-color .2s ease;
}

#termin .btn:hover {
    background-color: #b98db6 !important;
    border-color: #b98db6 !important;
    transform: translateY(-1px);
}

#termin .btn:active {
    background-color: #ae82ac !important;
    border-color: #ae82ac !important;
    transform: translateY(0);
}

/* Ghost-Variante in der Termin-Sektion */
#termin .btn--ghost {
    background: transparent !important;
    border-color: #cfa6cc !important;
    color: #2c024d !important;   /* gut lesbarer Text auf hellem Hintergrund */
}

#termin .btn--ghost:hover {
    background: rgba(207,166,204,.12) !important;
}

/* Falls irgendwo Link-Stile auf alle <a> in der CTA wirken */
#termin .cta-row a { text-decoration: none !important; }

/* ==== Fix: Buttons in Karten-/Map-Bereich ==== */
.map__actions a.btn {
    background-color: #cfa6cc !important;
    border: 1px solid #cfa6cc !important;
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none !important;
    box-shadow: var(--shadow);
    transition: transform .15s ease, background-color .2s ease, border-color .2s ease;
}

.map__actions a.btn:hover {
    background-color: #b98db6 !important;
    border-color: #b98db6 !important;
    transform: translateY(-1px);
}

.map__actions a.btn:active {
    background-color: #ae82ac !important;
    border-color: #ae82ac !important;
    transform: translateY(0);
}

/* ================== iPhone/iPad PATCHES ================== */

/* 1) iOS Typografie/Zoom & Tap-Feedback */
html { -webkit-text-size-adjust: 100%; }
input, select, textarea { font-size: 16px; }
a, button { -webkit-tap-highlight-color: rgba(0,0,0,.05); }

/* 2) Breakpoints angleichen */
@media (max-width: 900px){
    .desktop-header{ display: none !important; }
    .mobile-header { display: block !important; }
    .nav--primary  { display: none !important; }
    .mobile-toggle { display: block !important; }
}

/* 3) Hover-Dropdowns nur bei Maus */
@media (hover: hover) and (pointer: fine){
    .has-dropdown:hover .dropdown,
    .has-dropdown:focus-within .dropdown{
        opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
        transition: opacity .2s ease, transform .2s ease, visibility 0s;
    }
}
@media (hover: none) and (pointer: coarse){
    .dropdown{ opacity: 0; visibility: hidden; transform: translateY(6px); pointer-events: none; }
}

/* 4) Safe Areas (Notch/Dynamic Island) */
.header--modern .header__inner{
    padding-top: calc(.8rem + env(safe-area-inset-top, 0px));
}
.mobile-nav{
    height: 100vh; height: 100svh; height: 100dvh;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}
.footer--modern{
    padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
}

/* 5) 100vh-Probleme */
.page-banner{ height: 46vh; height: 46svh; height: 46dvh; }
.banner-only{ height: 50vh; height: 50svh; height: 50dvh; }
.lightbox.is-active .lightbox__img{
    max-height: 90vh; max-height: 90svh; max-height: 90dvh;
}

/* 6) Body-Scroll sperren, wenn Offcanvas offen */
body.menu-open{ overflow: hidden; touch-action: none; }

/* 7) Touch-Ziele größer */
.btn, .mobile-nav__list a, .nav__list a{
    min-height: 44px; align-items: center; display: inline-flex;
}

/* 8) iPad Tweaks */
@media (min-width: 769px) and (max-width: 1024px){
    .card-grid{ grid-template-columns: 1fr 1fr; }
    .product-grid{ grid-template-columns: 1fr 1fr; }
}

/* 9) Lightbox-Pfeile + Safe-Areas */
@media (max-width: 400px){
    .lightbox__arrow--prev { left: calc(12px + env(safe-area-inset-left, 0px)); }
    .lightbox__arrow--next { right: calc(12px + env(safe-area-inset-right, 0px)); }
}

/* 10) iOS sticky header Glitching */
.header--modern{ will-change: transform; backface-visibility: hidden; }

/* ===== MOBILE NAV DROPDOWN ===== */
.mobile-nav .dropdown.is-open {
    opacity: 1; visibility: visible; transform: translateY(0);
    pointer-events: auto; display: block; padding-top: 8px;
    transition: opacity .25s ease, transform .25s ease;
}
.mobile-nav .dropdown a {
    font-size: 1.05rem; display: block; padding: 8px 0;
    text-decoration: none; color: #fff; opacity: .9;
}
.mobile-nav .dropdown a:hover { opacity: 1; }
.mobile-nav .dropdown li {
    padding-left: 18px; border-left: 2px solid rgba(255,255,255,.15);
}
.mobile-nav .dropdown {
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease;
}
.mobile-nav .dropdown[hidden] { display: none !important; }

/* Mobile: in allen Treatments zuerst Bild, dann Text */
@media (max-width: 960px){
    .treatment { grid-template-columns: 1fr; gap: 22px; }
    .treatment__media   { order: 0; }
    .treatment__content { order: 1; }
    .treatment--alt .treatment__media   { order: 0; }
    .treatment--alt .treatment__content { order: 1; }
}

/* ========= Stylish Spacing für Behandlungen ========= */
.treatments__stack{
    --t-gap: clamp(42px, 5vw, 80px);
    gap: var(--t-gap);
}
.treatment{
    position: relative;
    scroll-margin-top: 88px;
}
.treatment:not(:first-child)::before{
    content:"";
    position: absolute;
    top: calc(-0.5 * var(--t-gap));
    left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent 0%,
    rgba(44, 2, 77, .08) 15%, rgba(44, 2, 77, .18) 50%,
    rgba(44, 2, 77, .08) 85%, transparent 100%);
}
.treatment:not(:first-child)::after{
    content:"";
    position: absolute;
    top: calc(-0.5 * var(--t-gap) - 6px);
    left: 50%; transform: translateX(-50%);
    width: 12px; height: 12px; border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #cfa6cc, #ae82ac);
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
@media (max-width: 640px){
    .treatment:not(:first-child)::after{
        width: 8px; height: 8px; top: calc(-0.5 * var(--t-gap) - 4px);
    }
}

/* ===== Produkte: Steps-Section – konsolidiert (Bild nach Text, kleiner) ===== */
.steps__media img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
}
@media (max-width: 900px){
    .steps__wrap{
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .steps__media{
        order: 2;
        aspect-ratio: 16 / 10;
        max-width: 420px;
        margin: 0 auto;
        border-radius: 16px;
        overflow: hidden;
    }
    .steps__media img{
        height: auto;
        object-fit: cover;
    }
}
@media (max-width: 480px){
    .steps__list li{ padding-left: 42px; margin-bottom: 12px; }
    .steps__list li::before{ width: 28px; height: 28px; font-size: .95rem; }
    .steps__media{ margin-block: 12px; }
}

/* ===== Promo-Karte: Mobile Feinschliff ===== */
@media (max-width: 900px){
    .promo__card{
        grid-template-columns: 1fr;
        column-gap: 24px;
        row-gap: 18px;
        justify-items: center;
        text-align: center;
    }
    .promo__media{
        width: clamp(180px, 38vw, 260px);
        justify-self: center;
    }
    #termin .cta-row{ justify-content: center; }
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #cfa6cc;
    color: #fff;
    font-size: 1.4rem;
    font-weight: bold;
    border: none;
    box-shadow: 0 6px 16px rgba(0,0,0,.25);
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity .3s ease, transform .3s ease, background .2s ease;
    z-index: 999;
}

.back-to-top:hover {
    background: #b98db6;
    transform: translateY(0);
}

.back-to-top:active {
    background: #ae82ac;
}

.back-to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ===== Mobile Nav – Flat Premium Look ===== */
.mobile-nav--flat {
    width: min(560px, 86vw);
    margin: 0 auto;
    padding-inline: 8px;
}

.mobile-nav--flat li + li {
    border-top: 1px solid rgba(255,255,255,.08);
}

.mobile-nav--flat a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 2px;
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: .02em;
    color: #fff;
    text-decoration: none;
    opacity: .95;
    transition: transform .18s ease, opacity .18s ease;
}

/* Chevron als dezenter Hinweis (CSS-Content) */
.mobile-nav--flat a::after {
    content: "›";
    font-size: 1.2rem;
    line-height: 1;
    opacity: .7;
    transform: translateX(0);
    transition: transform .18s ease, opacity .18s ease;
}

/* Hover/Focus „appig“ */
.mobile-nav--flat a:hover,
.mobile-nav--flat a:focus-visible {
    opacity: 1;
    transform: translateX(2px);
}
.mobile-nav--flat a:hover::after,
.mobile-nav--flat a:focus-visible::after {
    opacity: .9;
    transform: translateX(4px);
}

/* Mehr Luft zum unteren Rand (Safe-Area beachten) */
@media (max-width: 480px){
    .mobile-nav--flat a { padding: 16px 2px; }
}
