/* Doctor BeYouti: white, editorial clinic design with 3D treatment stages. */

:root {
    --white: #ffffff;
    --ink: #0b1440;
    --text: #3a4263;
    --muted: #6b7290;
    --line: #e6e9f2;
    --line-soft: #eff1f7;
    --soft: #f6f7fb;
    --mist: #f3f5ff;
    --blush: #fdf2f8;
    --blue: #1743d1;
    --blue-2: #3d63e0;
    --navy: #091a54;
    --rose: #e82c8f;
    --gold: #c49a5a;
    --grad: linear-gradient(115deg, #1743d1 0%, #6a3fd8 52%, #e82c8f 100%);
    --shadow-sm: 0 1px 2px rgba(11, 20, 64, .05), 0 6px 18px -10px rgba(11, 20, 64, .12);
    --shadow-md: 0 2px 6px rgba(11, 20, 64, .04), 0 22px 46px -22px rgba(23, 67, 209, .28);
    --shadow-lg: 0 40px 80px -36px rgba(23, 67, 209, .32);
    --r-sm: 12px;
    --r-md: 20px;
    --r-lg: 30px;
    --r-pill: 999px;
    --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
    --font-ui: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --nav-h: 78px;
    --ease: cubic-bezier(.2, .7, .2, 1);
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
    margin: 0;
    background: var(--white);
    color: var(--text);
    font: 400 16.5px/1.7 var(--font-ui);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: rgba(23, 67, 209, .14); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1240px, 100% - 48px); margin-inline: auto; }
section { padding: clamp(4.5rem, 8vw, 7.5rem) 0; position: relative; }
section[id] { scroll-margin-top: calc(var(--nav-h) - 10px); }
.text-center { text-align: center; }

.page { opacity: 0; transition: opacity .45s var(--ease); }
body.page-loaded .page { opacity: 1; }

/* ------------------------------------------------------------------ Type */
h1, h2, h3, h4 { color: var(--ink); margin: 0; }
.display {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2.8rem, 1.4rem + 4vw, 5.4rem);
    line-height: .98;
    letter-spacing: -.012em;
}
.section-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2.2rem, 1.4rem + 2.4vw, 3.5rem);
    line-height: 1.04;
    letter-spacing: -.01em;
}
.display em, .section-title em {
    font-style: italic;
    font-weight: 500;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding-right: .06em;
}
.lead { font-size: clamp(1.04rem, .98rem + .3vw, 1.18rem); color: var(--muted); margin: 1.2rem 0 0; max-width: 40rem; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--blue);
}
.eyebrow::before { content: ''; width: 28px; height: 1.5px; background: var(--grad); border-radius: 2px; }
.text-center .eyebrow::after { content: ''; width: 28px; height: 1.5px; background: var(--grad); border-radius: 2px; }
.eyebrow img { width: 18px; height: 18px; object-fit: contain; }
.section-head { max-width: 760px; margin: 0 auto clamp(2.6rem, 5vw, 4rem); }
.section-head .section-title { margin-top: 1rem; }
.section-head .lead { margin-inline: auto; }

/* ------------------------------------------------------------------ Buttons */
.btn {
    --tx: 0px; --ty: 0px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    padding: 1rem 1.65rem;
    border-radius: var(--r-pill);
    border: 1px solid transparent;
    font-weight: 600;
    font-size: .84rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    line-height: 1;
    cursor: pointer;
    transform: translate(var(--tx), var(--ty));
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .3s, border-color .3s, color .3s;
    white-space: nowrap;
}
.btn i { font-size: .95em; }
.btn-primary {
    background: var(--blue);
    background-image: linear-gradient(115deg, #1743d1 0%, #2f4fe0 45%, #6a3fd8 100%);
    color: #fff;
    box-shadow: 0 14px 30px -14px rgba(23, 67, 209, .7), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn-primary:hover { box-shadow: 0 20px 38px -14px rgba(23, 67, 209, .75), inset 0 1px 0 rgba(255, 255, 255, .2); }
.btn-primary, .btn-dark { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after, .btn-dark::after {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .38) 48%, transparent 66%);
    transform: translateX(-120%);
}
.btn-primary:hover::after, .btn-dark:hover::after { transform: translateX(120%); transition: transform .9s var(--ease); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: rgba(23, 67, 209, .4); color: var(--blue); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 14px 30px -16px rgba(11, 20, 64, .7); }
.btn-dark:hover { background: #121d55; }
.btn-store { padding: .7rem 1.25rem .7rem 1.05rem; text-transform: none; letter-spacing: 0; gap: .75rem; }
.btn-store i { font-size: 1.45rem; }
.btn-store span { display: flex; flex-direction: column; align-items: flex-start; gap: .18rem; }
.btn-store small { font-size: .66rem; font-weight: 400; opacity: .75; letter-spacing: .04em; }
.btn-store strong { font-size: 1rem; font-weight: 600; }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

/* ------------------------------------------------------------------ Topbar & nav */
.scroll-progress {
    position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120;
    background: var(--grad); transform-origin: 0 50%; transform: scaleX(0);
}
.topbar { background: var(--soft); border-bottom: 1px solid var(--line-soft); font-size: .8rem; color: var(--muted); }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 1rem; }
.topbar i { color: var(--blue); margin-right: .35rem; }
.topbar .contact-numbers { display: flex; gap: 1.6rem; }
.topbar a:hover { color: var(--blue); }

.navbar { position: sticky; top: 0; z-index: 100; }
.navbar::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, box-shadow .3s;
}
.navbar.scrolled::before { border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgba(11, 20, 64, .35); }
.nav-inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

/* The logo is white line art; the mask paints it in the brand gradient. */
.brand-logo, .footer-logo-mask {
    display: block; width: 132px; flex: 0 0 auto;
    background: linear-gradient(110deg, #0b1440 0%, #1743d1 55%, #b03aa8 100%);
    -webkit-mask: url(../images/logo.webp) center / contain no-repeat;
    mask: url(../images/logo.webp) center / contain no-repeat;
}
.brand-logo img, .footer-logo-mask img { opacity: 0; width: 100%; height: auto; }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-item {
    position: relative; font-size: .8rem; font-weight: 600; letter-spacing: .14em; color: var(--ink);
    background: none; border: 0; padding: .4rem 0; cursor: pointer;
}
.nav-item::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px;
    background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav-item:hover::after, .nav-item[aria-current="page"]::after { transform: scaleX(1); }
.nav-item i { font-size: .65rem; margin-left: .3rem; }
.nav-cta { padding: .85rem 1.3rem; }

.dropdown { position: relative; }
.dropdown-content {
    position: absolute; top: calc(100% + 14px); right: -20px; width: 250px; max-height: 60vh; overflow: auto;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-lg);
    padding: .5rem; opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
}
.dropdown:hover .dropdown-content, .dropdown.active .dropdown-content { opacity: 1; visibility: visible; transform: none; }
.dropdown-content a { display: block; padding: .55rem .8rem; border-radius: 10px; font-size: .86rem; color: var(--text); }
.dropdown-content a:hover { background: var(--mist); color: var(--blue); }
.mobile-menu-btn { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1.1rem; cursor: pointer; color: var(--ink); }

/* ------------------------------------------------------------------ Hero */
.hero { padding: clamp(1.5rem, 3vw, 2.6rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero::before {
    content: ''; position: absolute; inset: -10% -10% auto auto; width: 70vw; height: 70vw; max-width: 980px; max-height: 980px;
    background: radial-gradient(closest-side, rgba(61, 99, 224, .1), rgba(232, 44, 143, .05) 55%, transparent 72%);
    pointer-events: none;
    transform: translate(var(--hx, 0px), var(--hy, 0px));
    transition: transform 1.2s var(--ease);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 3vw, 3rem); }
.hero-content { position: relative; z-index: 2; }
.hero-content .display { margin-top: 1.4rem; }
.hero-sub { font-family: var(--font-display); font-size: clamp(1.35rem, 1.1rem + .8vw, 1.85rem); font-style: italic; color: var(--text); margin: 1.1rem 0 0; line-height: 1.3; max-width: 34rem; }
.hero-benefits { list-style: none; padding: 0; margin: 1.8rem 0 2.1rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.hero-benefits li {
    display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .95rem .5rem .7rem;
    border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
    font-size: .88rem; font-weight: 500; color: var(--ink);
}
.hero-benefits i { color: var(--rose); }
.hero-app { margin-top: 2.2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.hero-app p { margin: 0 0 .9rem; font-size: .9rem; color: var(--muted); }

/* ------------------------------------------------------------------ 3D stages */
.stage { position: relative; width: 100%; isolation: isolate; user-select: none; -webkit-user-select: none; }
.stage-hero { aspect-ratio: 1 / 1.06; max-height: calc(100svh - var(--nav-h) - 80px); }
.stage::before {
    content: ''; position: absolute; inset: 6% 4%; z-index: -2; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(23, 67, 209, .11), rgba(106, 63, 216, .06) 48%, rgba(232, 44, 143, .04) 66%, transparent 80%);
}
.stage::after {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: repeating-radial-gradient(circle at 50% 47%, transparent 0 58px, rgba(23, 67, 209, .07) 58px 59px);
    -webkit-mask: radial-gradient(circle at 50% 47%, #000 18%, transparent 62%);
    mask: radial-gradient(circle at 50% 47%, #000 18%, transparent 62%);
}
.stage-canvas { position: absolute; inset: 0; }
.stage-canvas canvas { width: 100% !important; height: 100% !important; display: block; outline: none; }
.stage-fallback .stage-canvas { background: url(../images/beauty-3d-face.png) center 45% / contain no-repeat; }
.stage-fallback[data-models="body"] .stage-canvas { background-image: url(../images/beauty-3d-body.png); }
.stage-fallback .hotspot { display: none; }

.hotspot { position: absolute; left: 0; top: 0; z-index: 3; opacity: 0; transition: opacity .4s; cursor: pointer; pointer-events: none; background: none; border: 0; padding: 0; }
.hotspot.shown { opacity: 1; pointer-events: auto; }
.hotspot .dot {
    position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
    background: #fff; border: 2px solid var(--rose); box-shadow: 0 0 0 5px rgba(232, 44, 143, .12), 0 4px 10px rgba(11, 20, 64, .2);
    transition: transform .3s var(--ease), background-color .3s;
}
.hotspot .dot::after {
    content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 1.5px solid rgba(232, 44, 143, .55);
    opacity: 0;
}
.hotspot.active .dot { background: var(--rose); transform: scale(1.12); }
.hotspot.active .dot::after { animation: ping 2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
.hotspot .tag {
    position: absolute; left: 22px; top: -17px; white-space: nowrap;
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .45rem .85rem; border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .94); border: 1px solid var(--line); box-shadow: var(--shadow-md);
    font-size: .8rem; font-weight: 600; color: var(--ink); line-height: 1.2;
    opacity: 0; transform: translateX(-6px); transition: opacity .35s, transform .35s var(--ease);
}
.hotspot .tag::before { content: ''; position: absolute; left: -16px; top: 50%; width: 14px; height: 1.5px; background: rgba(232, 44, 143, .6); }
.hotspot.flip .tag { left: auto; right: 22px; transform: translateX(6px); }
.hotspot.flip .tag::before { left: auto; right: -16px; }
.hotspot.active .tag, .hotspot:hover .tag, .hotspot:focus-visible .tag { opacity: 1; transform: none; }

.stage-caption {
    position: absolute; left: 50%; bottom: 3%; z-index: 4; transform: translateX(-50%);
    width: min(410px, 92%); display: flex; align-items: center; gap: .9rem;
    padding: .8rem 1rem .8rem .8rem; border-radius: var(--r-md);
    background: rgba(255, 255, 255, .92); border: 1px solid var(--line); box-shadow: var(--shadow-md);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.stage-caption .cap-icon { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 1rem; }
.stage-caption .cap-text { min-width: 0; flex: 1; }
.stage-caption small { display: block; font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); font-weight: 600; }
.stage-caption strong { display: block; font-size: .98rem; color: var(--ink); line-height: 1.3; }
.stage-caption span { display: block; font-size: .8rem; color: var(--muted); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage-caption .cap-swap { transition: opacity .3s; }
.stage-caption.swapping .cap-swap { opacity: 0; }
.cap-dots { display: flex; gap: 5px; flex: 0 0 auto; }
.cap-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background .3s, width .3s; }
.cap-dots i.on { width: 16px; border-radius: 4px; background: var(--grad); }

/* ------------------------------------------------------------------ Marquee */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 1.15rem 0; background: #fff; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--font-display); font-size: 1.45rem; font-style: italic; color: var(--ink); padding-right: 2rem; white-space: nowrap; }
.marquee i { font-style: normal; color: var(--rose); padding: 0 1.4rem; font-size: .9rem; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ Features */
#features { padding: clamp(3.5rem, 6vw, 5rem) 0; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.feature {
    display: flex; align-items: center; gap: 1rem; padding: 1.4rem;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-sm);
}
.feature .icon {
    flex: 0 0 auto; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
    background: var(--mist); color: var(--blue); font-size: 1.25rem; position: relative;
}
.feature .icon::after { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(23, 67, 209, .14); }
.feature h3 { font-size: 1rem; font-weight: 600; line-height: 1.35; }

/* ------------------------------------------------------------------ Spotlight */
/* A soft light follows the pointer across cards (--sx/--sy set in main.js). */
.spot { position: relative; }
.spot::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: radial-gradient(260px circle at var(--sx, 50%) var(--sy, 50%), rgba(61, 99, 224, .09), rgba(232, 44, 143, .04) 45%, transparent 70%);
    opacity: 0; transition: opacity .4s;
}
.spot:hover::after { opacity: 1; }
.reveal .eyebrow::before, .reveal.eyebrow::before { transform-origin: left; transform: scaleX(0); transition: transform 1s .25s var(--ease); }
.reveal.visible .eyebrow::before, .reveal.visible.eyebrow::before { transform: none; }

/* ------------------------------------------------------------------ Tilt */
.tilt {
    --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
    transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
    transition: transform .6s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.tilt.is-tilting { transition: transform .12s linear, box-shadow .4s var(--ease); }

/* ------------------------------------------------------------------ Treatments explorer */
#behandlungen { background: linear-gradient(180deg, #fff 0%, var(--soft) 14%, var(--soft) 86%, #fff 100%); }
.explorer { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.explorer-stage { position: sticky; top: calc(var(--nav-h) + 22px); }
.stage-explorer {
    aspect-ratio: 1 / 1.08; max-height: calc(100svh - var(--nav-h) - 60px);
    border-radius: var(--r-lg); background: linear-gradient(180deg, #ffffff 0%, #f8f9ff 100%);
    border: 1px solid var(--line); box-shadow: var(--shadow-md); overflow: hidden;
}
.model-tabs {
    position: absolute; top: 18px; left: 50%; transform: translateX(-50%); z-index: 5;
    display: inline-flex; padding: 4px; border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .92); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.model-tabs button {
    border: 0; background: transparent; padding: .6rem 1.15rem; border-radius: var(--r-pill); cursor: pointer;
    font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
    transition: background-color .3s, color .3s, box-shadow .3s;
}
.model-tabs button.active { background: var(--ink); color: #fff; box-shadow: 0 8px 18px -10px rgba(11, 20, 64, .8); }
.stage-note { position: absolute; left: 0; right: 0; bottom: 16px; z-index: 4; text-align: center; font-size: .74rem; color: var(--muted); letter-spacing: .04em; margin: 0; }

.t-list { display: flex; flex-direction: column; gap: 1rem; padding-bottom: 10vh; }
.t-group { display: flex; align-items: baseline; gap: 1rem; margin: 1.6rem 0 .2rem; }
.t-group:first-child { margin-top: 0; }
.t-group h3 { font-family: var(--font-display); font-size: 2rem; font-weight: 600; font-style: italic; }
.t-group span { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.t-group::after { content: ''; flex: 1; height: 1px; background: var(--line); align-self: center; }
.t-card {
    position: relative; display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 1.25rem; align-items: center;
    padding: 1rem 1.2rem 1rem 1rem; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line);
    box-shadow: var(--shadow-sm); cursor: pointer;
    transition: border-color .35s, box-shadow .35s var(--ease), transform .35s var(--ease);
}
.t-card::before {
    content: ''; position: absolute; left: -1px; top: 18%; bottom: 18%; width: 3px; border-radius: 3px;
    background: var(--grad); transform: scaleY(0); transition: transform .4s var(--ease);
}
.t-card.is-active { border-color: rgba(23, 67, 209, .3); box-shadow: var(--shadow-md); transform: translateX(6px); }
.t-card.is-active::before { transform: scaleY(1); }
.t-media { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 1; background: var(--mist); }
.t-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.t-card.is-active .t-media img, .t-card:hover .t-media img { transform: scale(1.06); }
.t-num { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 1.05rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.t-body h3 { font-size: 1.22rem; font-weight: 600; margin: .1rem 0 .35rem; }
.t-body p { margin: 0 0 .65rem; font-size: .92rem; color: var(--muted); line-height: 1.6; }
.t-link { display: inline-flex; align-items: center; gap: .45rem; font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.t-link i { transition: transform .3s var(--ease); }
.t-link:hover i { transform: translateX(4px); }

/* ------------------------------------------------------------------ About */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.media-frame { position: relative; border-radius: var(--r-lg); padding: 10px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.media-frame img { border-radius: calc(var(--r-lg) - 8px); width: 100%; height: auto; }
.media-frame::before {
    content: ''; position: absolute; inset: auto -18px -18px auto; width: 58%; height: 58%; z-index: -1;
    border-radius: var(--r-lg); background: linear-gradient(135deg, rgba(23, 67, 209, .14), rgba(232, 44, 143, .14));
}
.badge {
    position: absolute; right: 28px; bottom: 28px; padding: 1rem 1.3rem; border-radius: var(--r-md);
    background: rgba(255, 255, 255, .94); border: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.badge strong { display: block; font-family: var(--font-display); font-size: 2.3rem; line-height: 1; font-weight: 600; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.badge span { font-size: .82rem; color: var(--muted); }
.prose .section-title { margin: 1rem 0 1.3rem; }
.prose p { margin: 0 0 1rem; }
.prose .btn { margin-top: 1rem; }

/* ------------------------------------------------------------------ App band */
.app-band {
    position: relative; overflow: hidden; border-radius: var(--r-lg); padding: clamp(2rem, 5vw, 4rem);
    background: linear-gradient(120deg, #f3f6ff 0%, #ffffff 48%, #fdf3f9 100%); border: 1px solid var(--line);
}
.app-band::before {
    content: ''; position: absolute; width: 520px; height: 520px; right: -120px; top: -160px; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(23, 67, 209, .12), transparent);
}
.app-band .section-title { margin: 1rem 0 0; }
.store-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.app-visual { position: relative; }
.app-visual img { position: relative; width: 100%; max-width: 520px; margin-inline: auto; filter: drop-shadow(0 40px 50px rgba(11, 20, 64, .18)); }
.halo { position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(232, 44, 143, .12), transparent); }

/* ------------------------------------------------------------------ Promises */
.promise-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.promise { padding: 2rem 1.6rem 1.8rem; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.promise:hover { box-shadow: var(--shadow-md); border-color: rgba(23, 67, 209, .25); }
.p-icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--mist); margin-bottom: 1.3rem; }
.p-icon img { width: 36px; height: 36px; object-fit: contain; }
.promise h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: .55rem; }
.promise p { margin: 0; font-size: .92rem; color: var(--muted); line-height: 1.6; }

/* ------------------------------------------------------------------ Contact */
.contact-card { border-radius: var(--r-lg); padding: clamp(2rem, 5vw, 3.6rem); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.contact-card .section-title { margin: 1rem 0 0; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.manager { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--mist); }
.manager > img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.manager figcaption {
    position: absolute; left: 18px; right: 18px; bottom: 18px; padding: .95rem 1.15rem; border-radius: var(--r-md);
    background: rgba(255, 255, 255, .94); box-shadow: var(--shadow-md);
}
.manager figcaption strong { display: flex; align-items: center; gap: .5rem; font-size: 1.1rem; color: var(--ink); }
.manager figcaption strong img { width: 20px; height: 20px; object-fit: contain; }
.manager figcaption span { font-size: .85rem; color: var(--muted); }
.contact-list { display: grid; gap: .8rem; margin-top: 2rem; }
.contact-item {
    display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-radius: var(--r-md);
    border: 1px solid var(--line); background: #fff; transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.contact-item:hover { border-color: rgba(23, 67, 209, .35); box-shadow: var(--shadow-md); transform: translateX(4px); }
.contact-item i { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--mist); color: var(--blue); font-size: 1.1rem; flex: 0 0 auto; }
.contact-item small { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-item strong { color: var(--ink); font-weight: 600; word-break: break-word; }

.cta-band { text-align: center; border-radius: var(--r-lg); padding: clamp(2.4rem, 5vw, 4rem); background: linear-gradient(120deg, #f3f6ff, #fff 50%, #fdf3f9); border: 1px solid var(--line); }
.cta-band h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 1.3rem + 1.8vw, 2.9rem); max-width: 760px; margin: 0 auto 1.8rem; line-height: 1.1; }
.cta-band .btn-row { justify-content: center; }

/* ------------------------------------------------------------------ Contact form */
.form-card {
    display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4rem); align-items: start;
    border-radius: var(--r-lg); padding: clamp(2rem, 5vw, 3.6rem); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.form-intro .section-title { margin: 1rem 0 0; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.1rem; }
.contact-form .wide { grid-column: 1 / -1; }
.field { display: grid; gap: .4rem; }
.field span { font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
    width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--soft);
    border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1rem; outline: none; resize: vertical;
    transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.field input:focus, .field textarea:focus { background: #fff; border-color: rgba(23, 67, 209, .5); box-shadow: 0 0 0 4px rgba(23, 67, 209, .1); }
.field.invalid input, .field.invalid textarea { border-color: rgba(232, 44, 143, .6); background: #fff; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: .4rem; }
.form-note { margin: 0; flex: 1 1 260px; font-size: .82rem; color: var(--muted); }
.form-note a { color: var(--blue); text-decoration: underline; }
.form-status { margin: 0; min-height: 1.4em; font-size: .95rem; font-weight: 500; }
.form-status.ok { color: #1a8f5a; }
.form-status.error { color: #c0266f; }
.contact-form button[disabled] { opacity: .65; cursor: progress; }
@media (max-width: 960px) { .form-card { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .contact-form { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ Page hero (subpages) */
.page-hero { padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(2rem, 4vw, 3rem); overflow: hidden; }
.page-hero::before {
    content: ''; position: absolute; right: -10%; top: -20%; width: 60vw; height: 60vw; max-width: 820px; max-height: 820px;
    background: radial-gradient(closest-side, rgba(61, 99, 224, .09), rgba(232, 44, 143, .04) 55%, transparent 72%); pointer-events: none;
}
.page-hero .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.page-hero .display { font-size: clamp(2.6rem, 1.4rem + 3.4vw, 4.6rem); margin-top: 1.2rem; }
.page-hero .stage { aspect-ratio: 1 / 1; max-height: 560px; }

/* ------------------------------------------------------------------ Legal pages (AGB, Datenschutz, Impressum) */
.legal-hero { padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.legal-hero .hero-content { max-width: 820px; }
.legal-meta {
    display: inline-flex; align-items: center; gap: .5rem; margin: 1.5rem 0 0; padding: .45rem 1rem;
    border-radius: var(--r-pill); background: var(--mist); color: var(--blue); font-size: .82rem; font-weight: 500;
}
.legal-switch { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.8rem; }
.legal-switch a {
    padding: .6rem 1.15rem; border-radius: var(--r-pill); border: 1px solid var(--line); background: #fff;
    font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
    transition: border-color .25s, color .25s, background-color .25s;
}
.legal-switch a:hover { border-color: var(--blue); color: var(--blue); }
.legal-switch a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.legal-section { padding-top: clamp(1rem, 2vw, 2rem); }
.legal-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.legal-toc {
    position: sticky; top: calc(var(--nav-h) + 24px); max-height: calc(100vh - var(--nav-h) - 48px); overflow: auto;
    padding: 1.2rem 1rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--soft);
}
.legal-toc summary {
    display: flex; justify-content: space-between; align-items: center; padding: 0 .55rem; cursor: pointer; list-style: none;
    font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink);
}
.legal-toc summary::-webkit-details-marker { display: none; }
.legal-toc summary i { font-size: .7rem; transition: transform .3s var(--ease); }
.legal-toc[open] summary i { transform: rotate(180deg); }
.legal-toc ol { list-style: none; margin: .9rem 0 0; padding: 0; display: grid; gap: .1rem; }
.legal-toc a { display: block; padding: .42rem .55rem; border-radius: 10px; font-size: .86rem; line-height: 1.35; color: var(--muted); transition: background-color .25s, color .25s; }
.legal-toc a:hover, .legal-toc a.active { background: #fff; color: var(--blue); }
.legal-doc { max-width: 820px; min-width: 0; }
.legal-doc h2 {
    font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 1.3rem + 1vw, 2.25rem); line-height: 1.12;
    margin: 2.8rem 0 1rem; padding-top: 2.2rem; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 20px);
}
.legal-doc > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-doc h3 { font-size: 1.04rem; font-weight: 600; line-height: 1.4; margin: 1.8rem 0 .55rem; }
.legal-doc h2 + h3 { margin-top: 1.2rem; }
.legal-doc p { margin: 0 0 1rem; }
.legal-doc ul { margin: 0 0 1.2rem; padding-left: 1.25rem; display: grid; gap: .45rem; }
.legal-doc ul li::marker { color: var(--blue); }
.legal-doc ul.plain { list-style: none; padding-left: 0; }
.legal-doc ul.plain li { padding-left: 1rem; border-left: 2px solid var(--line-soft); }
.legal-doc a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-doc strong { color: var(--ink); font-weight: 600; }
.legal-lead {
    padding: 1.4rem 1.6rem; border-radius: var(--r-md); border: 1px solid var(--line);
    background: linear-gradient(120deg, #f3f6ff, #fff 55%, #fdf3f9); color: var(--ink);
}
.legal-doc .legal-lead { margin-bottom: 1.6rem; }
.legal-callout {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
    margin: 1.6rem 0 0; padding: 1.1rem 1.1rem 1.1rem 1.4rem; border-radius: var(--r-md); background: var(--mist);
}
.legal-doc .legal-callout p { margin: 0; color: var(--ink); font-weight: 500; }
.legal-callout p i { color: var(--blue); margin-right: .35rem; }
.legal-callout .btn { padding: .75rem 1.2rem; font-size: .74rem; }

/* ------------------------------------------------------------------ Footer */
.footer { background: var(--soft); border-top: 1px solid var(--line); padding: clamp(3.5rem, 6vw, 5rem) 0 2rem; margin-top: 2rem; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer-brand p { margin: 1.2rem 0 0; font-size: .92rem; color: var(--muted); max-width: 22rem; }
.footer-logo-mask { width: 150px; -webkit-mask-position: left center; mask-position: left center; }
.footer-badge { display: inline-block; margin-top: 1.2rem; padding: .55rem .9rem; border-radius: var(--r-pill); background: var(--ink); }
.footer-badge img { height: 18px; width: auto; }
.footer-social { display: flex; gap: .6rem; margin-top: 1.2rem; }
.footer-social a {
    width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
    background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: .95rem;
    transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.footer-social a:hover { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-2px); }
.footer-col h4 { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.footer-col a { font-size: .94rem; color: var(--muted); transition: color .25s; }
.footer-col a:hover { color: var(--blue); }
.footer-col .link-btn { padding: 0; border: 0; background: none; cursor: pointer; font-size: .94rem; line-height: inherit; color: var(--muted); text-align: left; transition: color .25s; }
.footer-col .link-btn:hover { color: var(--blue); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .8rem; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.footer-bottom p { margin: 0; }

/* ------------------------------------------------------------------ Cookie banner */
.cookie-banner {
    position: fixed; left: 50%; bottom: 20px; z-index: 140; width: min(640px, calc(100% - 32px));
    display: flex; align-items: center; gap: .8rem; padding: 1rem 1rem 1rem 1.3rem;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-lg);
    transform: translate(-50%, 140%); transition: transform .5s var(--ease);
}
.cookie-banner.show { transform: translate(-50%, 0); }
.cookie-banner p { margin: 0; flex: 1; font-size: .88rem; }
.cookie-banner a { color: var(--blue); text-decoration: underline; }
.cookie-banner .btn { padding: .75rem 1.1rem; font-size: .74rem; }

/* ------------------------------------------------------------------ Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.hero-content > * { opacity: 0; transform: translateY(22px); animation: rise .9s var(--ease) forwards; }
.hero-content > .display { opacity: 1; transform: none; animation: unveil 1.25s .05s var(--ease) both; }
@keyframes unveil {
    from { clip-path: inset(0 0 100% 0); transform: translateY(0.35em); }
    to { clip-path: inset(-12% -6% -22% -2%); transform: none; }
}
.hero-content > *:nth-child(2) { animation-delay: .08s; }
.hero-content > *:nth-child(3) { animation-delay: .16s; }
.hero-content > *:nth-child(4) { animation-delay: .24s; }
.hero-content > *:nth-child(5) { animation-delay: .32s; }
.hero-content > *:nth-child(6) { animation-delay: .4s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Google Translate leftovers */
.skiptranslate, #google_translate_element { display: none !important; }
body { top: 0 !important; }

/* ------------------------------------------------------------------ Responsive */
@media (max-width: 1140px) {
    .features-grid, .promise-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .nav-links { gap: 1.4rem; }
    .legal-layout { grid-template-columns: 1fr; }
    .legal-toc { position: static; max-height: none; }
}

@media (max-width: 960px) {
    :root { --nav-h: 68px; }
    .topbar .social-icons { display: none; }
    .topbar-inner { justify-content: center; }
    .mobile-menu-btn { display: inline-grid; place-items: center; }
    .brand-logo { width: 112px; }
    .nav-links {
        position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 1.6rem;
        background: #fff; padding: calc(var(--nav-h) + 1rem) 24px 2rem;
        opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
    }
    .nav-links.open { opacity: 1; visibility: visible; }
    .nav-links .nav-item { font-size: 1rem; }
    .dropdown { width: 100%; max-width: 320px; text-align: center; }
    .dropdown-content { position: static; width: 100%; max-height: 0; overflow: hidden; padding: 0; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; transition: max-height .4s var(--ease); }
    .dropdown.active .dropdown-content { max-height: 40vh; overflow: auto; border: 1px solid var(--line); padding: .4rem; margin-top: .8rem; }

    .hero-grid, .page-hero .hero-grid, .split, .explorer { grid-template-columns: 1fr; }
    /* Phones: the 3D stage sits right under the headline. */
    .hero-grid { gap: 0; }
    .hero-content { display: contents; }
    .hero-content > .eyebrow { order: 1; }
    .hero-content > .display { order: 2; }
    .hero-content > .hero-sub, .hero-content > .lead { order: 3; }
    .hero-grid > :not(.hero-content) { order: 4; margin: 1.2rem 0 .4rem; }
    .hero-content > .hero-benefits { order: 5; }
    .hero-content > .btn-row { order: 6; margin-top: 1.4rem; }
    .hero-content > .hero-app { order: 7; }
    .stage-hero { aspect-ratio: auto; height: min(96vw, 560px); max-height: none; }
    .page-hero .stage { height: min(84vw, 440px); aspect-ratio: auto; }

    .explorer-stage {
        top: var(--nav-h); z-index: 6; margin: 0 -24px; padding: 10px 24px 18px;
        background: linear-gradient(180deg, var(--soft) 86%, rgba(246, 247, 251, 0));
    }
    .stage-explorer { aspect-ratio: auto; height: min(50vh, 92vw); max-height: none; }
    .t-list { padding-bottom: 32vh; }
    .t-card.is-active { transform: none; }
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    .container { width: calc(100% - 32px); }
    .explorer-stage { margin: 0 -16px; padding: 8px 16px 16px; }
    .features-grid, .promise-grid { grid-template-columns: 1fr; }
    .t-card { grid-template-columns: 84px minmax(0, 1fr); gap: .9rem; padding: .8rem; }
    .t-body p { font-size: .86rem; }
    .t-group h3 { font-size: 1.6rem; }
    .stage-caption { bottom: 2%; padding: .6rem .8rem .6rem .6rem; gap: .7rem; }
    .stage-caption .cap-icon { width: 36px; height: 36px; }
    .stage-caption span { display: none; }
    .hotspot .tag { font-size: .72rem; padding: .35rem .65rem; }
    .model-tabs { top: 12px; }
    .model-tabs button { padding: .5rem .9rem; font-size: .7rem; }
    .btn-row .btn { flex: 1 1 auto; }
    .footer-top { grid-template-columns: 1fr; }
    .cookie-banner { flex-wrap: wrap; }
    .cookie-banner p { flex-basis: 100%; }
    .topbar .contact-numbers { gap: 1rem; font-size: .76rem; }
    .badge { right: 18px; bottom: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .reveal, .hero-content > * { opacity: 1; transform: none; }
    .reveal .eyebrow::before { transform: none; }
}
