/* ==========================================================================
   Lumira – Praxisklinik für Plastische & Ästhetische Chirurgie
   Design-System (ui-ux-pro-max): Style „Accessible & Ethical“, Font-Pairing
   „Luxury Serif“ (Cormorant + Montserrat), Palette „Sage neutral + calm teal“,
   eine committete Markenfarbe (Petrol). Radius-Regel: Buttons = Pill,
   Bilder/Flächen/Felder = 6px.
   ========================================================================== */

:root {
	--primary: #0f5866;
	--accent: #7c9ea2;
	--primary-dark: color-mix(in oklab, var(--primary) 78%, #000);
	--primary-soft: color-mix(in oklab, var(--primary) 10%, #fff);
	--bg: #f6f8f8;
	--surface: #ffffff;
	--ink: #142328;
	--muted: #4a5b61;
	--line: #d9e2e3;
	--footer: #10262b;

	--serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
	--sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;

	--radius: 6px;
	--container: 1240px;
	--gutter: clamp(1.25rem, 4vw, 2.5rem);
	--section: clamp(4rem, 9vw, 7.5rem);
	--header-h: 84px;

	--ease-out: cubic-bezier(0.22, 1, 0.36, 1);
	--shadow: 0 1px 2px rgba(20, 35, 40, 0.05), 0 6px 18px rgba(20, 35, 40, 0.07);

	--z-overlay: 40;
	--z-drawer: 45;
	--z-header: 50;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	overflow-x: hidden;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 1.0625rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
svg { max-width: 100%; height: auto; }
.icon { width: 1.4em; height: 1.4em; flex: 0 0 auto; vertical-align: middle; max-width: 28px; max-height: 28px; }
a { color: var(--primary); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--primary-dark); }
:focus-visible { outline: 3px solid color-mix(in oklab, var(--primary) 55%, #fff); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--primary-soft); color: var(--ink); }

h1, h2, h3, h4 {
	font-family: var(--serif);
	font-weight: 500;
	line-height: 1.12;
	letter-spacing: -0.01em;
	color: var(--ink);
	text-wrap: balance;
	margin: 0 0 0.6em;
}
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
p { margin: 0 0 1.1em; text-wrap: pretty; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(760px + 2 * var(--gutter)); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: 1rem; top: -100px; z-index: 100;
	background: var(--surface); padding: 0.75rem 1.25rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons & Links ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
	min-height: 50px; padding: 0 1.7rem;
	border: 1px solid transparent; border-radius: 999px;
	font: 600 0.92rem/1 var(--sans); letter-spacing: 0.01em; white-space: nowrap;
	text-decoration: none; cursor: pointer;
	transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out), border-color 200ms var(--ease-out), transform 150ms var(--ease-out);
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); color: #fff; }
.btn--light { background: #fff; color: var(--primary-dark); }
.btn--light:hover { background: var(--primary-soft); color: var(--primary-dark); }
.btn--sm { min-height: 44px; padding: 0 1.3rem; font-size: 0.86rem; }
.btn .icon { width: 18px; height: 18px; transition: transform 200ms var(--ease-out); }
.btn:hover .icon { transform: translateX(3px); }

.link-arrow {
	display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px;
	font-weight: 600; font-size: 0.95rem; color: var(--primary); text-decoration: none;
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform 200ms var(--ease-out); }
.link-arrow:hover { color: var(--primary-dark); }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow--sm { font-size: 0.88rem; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: var(--z-header);
	background: rgba(246, 248, 248, 0.9);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid transparent;
	transition: box-shadow 250ms var(--ease-out), border-color 250ms var(--ease-out), background-color 250ms var(--ease-out);
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 16px rgba(20, 35, 40, 0.06); background: rgba(255, 255, 255, 0.94); }
.site-header__inner {
	display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 3rem);
	min-height: var(--header-h);
	transition: min-height 250ms var(--ease-out);
}
.site-header.is-scrolled .site-header__inner { min-height: 68px; }

.brand { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; flex: 0 0 auto; }
.brand:hover { color: var(--primary); }
.brand__mark { width: 196px; height: 44px; transition: transform 250ms var(--ease-out); transform-origin: left center; }
.site-header.is-scrolled .brand__mark { transform: scale(0.9); }
.custom-logo-link img { max-height: 44px; width: auto; }

.primary-nav { margin-left: auto; }
.menu { list-style: none; margin: 0; padding: 0; }
.menu--primary { display: flex; align-items: center; gap: clamp(1.4rem, 2.4vw, 2.4rem); }
.menu--primary > li { position: relative; }
.menu--primary a {
	display: inline-flex; align-items: center; gap: 0.3rem; min-height: 44px;
	color: var(--ink); text-decoration: none; font-size: 0.93rem; font-weight: 500; white-space: nowrap;
	transition: color 200ms var(--ease-out);
}
.menu--primary > li > a { background: linear-gradient(var(--primary), var(--primary)) left calc(100% - 8px) / 0 1px no-repeat; transition: color 200ms var(--ease-out), background-size 250ms var(--ease-out); }
.menu--primary > li > a:hover,
.menu--primary > .current-menu-item > a,
.menu--primary > .current-page-ancestor > a,
.menu--primary > .current-menu-parent > a { color: var(--primary); background-size: 100% 1px; }
.icon--caret { width: 14px; height: 14px; transition: transform 200ms var(--ease-out); }

.site-header__actions { display: flex; align-items: center; gap: 0.75rem; }

/* Burger */
.burger {
	display: none; align-items: center; justify-content: center;
	width: 48px; height: 48px; padding: 0; margin-right: -8px;
	background: transparent; border: 0; border-radius: 999px; color: var(--ink); cursor: pointer;
}
.burger__box { display: block; position: relative; width: 24px; height: 16px; }
.burger__line {
	position: absolute; left: 0; display: block; width: 100%; height: 1.5px; background: currentColor; border-radius: 2px;
	transition: transform 250ms var(--ease-out), opacity 150ms linear;
}
.burger__line:nth-child(1) { top: 0; }
.burger__line:nth-child(2) { top: 7px; }
.burger__line:nth-child(3) { top: 14px; }
.burger[aria-expanded="true"] .burger__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__line:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer (Geschwister des Headers, liegt unter dem Header) */
.nav-overlay {
	position: fixed; inset: 0; z-index: var(--z-overlay);
	background: rgba(16, 38, 43, 0.38);
	opacity: 0; transition: opacity 250ms var(--ease-out);
}
.nav-overlay.is-visible { opacity: 1; }
.mobile-nav {
	position: fixed; top: 0; right: 0; z-index: var(--z-drawer);
	width: min(88vw, 400px); height: 100dvh; overflow-y: auto;
	background: var(--surface);
	box-shadow: -8px 0 24px rgba(20, 35, 40, 0.08);
	transform: translateX(100%); visibility: hidden;
	transition: transform 300ms var(--ease-out), visibility 0s linear 300ms;
}
.mobile-nav.is-open { transform: translateX(0); visibility: visible; transition: transform 300ms var(--ease-out), visibility 0s; }
.mobile-nav__inner { padding: calc(var(--header-h) + 1rem) 1.75rem 2rem; display: flex; flex-direction: column; gap: 1.5rem; }
.menu--mobile > li { border-bottom: 1px solid var(--line); }
.menu--mobile a {
	display: flex; align-items: center; min-height: 52px;
	font-family: var(--serif); font-size: 1.45rem; font-weight: 500; color: var(--ink); text-decoration: none;
}
.menu--mobile .current-menu-item > a { color: var(--primary); }
.menu--mobile .sub-menu { list-style: none; margin: -0.4rem 0 0.8rem; padding: 0 0 0 1rem; }
.menu--mobile .sub-menu a { min-height: 44px; font-family: var(--sans); font-size: 0.95rem; color: var(--muted); }
.mobile-nav__cta { width: 100%; }
.mobile-nav__meta { display: flex; align-items: center; gap: 0.6rem; margin: 0; color: var(--muted); font-size: 0.9rem; }
.mobile-nav__meta .icon { width: 18px; height: 18px; color: var(--primary); }
body.nav-open { overflow: hidden; }

/* Desktop-Dropdown nur ab Desktop-Breite */
@media (min-width: 901px) {
	.menu--primary .sub-menu {
		position: absolute; top: 100%; left: -1.25rem; min-width: 250px;
		list-style: none; margin: 0; padding: 0.6rem;
		background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
		opacity: 0; visibility: hidden; transform: translateY(6px);
		transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s linear 200ms;
	}
	.menu--primary .sub-menu a { display: flex; width: 100%; padding: 0.35rem 0.75rem; border-radius: 4px; font-size: 0.9rem; }
	.menu--primary .sub-menu a:hover, .menu--primary .sub-menu .current-menu-item > a { background: var(--bg); color: var(--primary); }
	.menu--primary li:hover > .sub-menu,
	.menu--primary li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s; }
	.menu--primary li:hover > a .icon--caret,
	.menu--primary li:focus-within > a .icon--caret { transform: rotate(180deg); }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3.5rem, 7vw, 6rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.hero__kicker { margin: 0 0 1.4rem; font-size: 0.82rem; font-weight: 500; letter-spacing: 0.06em; color: var(--muted); }
.hero__title { font-size: clamp(2.6rem, 5.4vw, 4.6rem); line-height: 1.04; font-weight: 500; margin: 0 0 1.5rem; }
.hero__lead { font-size: clamp(1.02rem, 1.3vw, 1.15rem); color: var(--muted); max-width: 46ch; margin-bottom: 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.8rem; }

.hero__text > * { animation: rise 700ms var(--ease-out) both; }
.hero__text > *:nth-child(2) { animation-delay: 70ms; }
.hero__text > *:nth-child(3) { animation-delay: 140ms; }
.hero__text > *:nth-child(4) { animation-delay: 210ms; }
.hero .slider { animation: settle 900ms var(--ease-out) both; animation-delay: 120ms; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: none; } }

/* Slider */
.slider { position: relative; min-width: 0; }
.slider__track {
	display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	border-radius: var(--radius); scrollbar-width: none; aspect-ratio: 5 / 4; background: var(--line);
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__slide { position: relative; flex: 0 0 100%; margin: 0; scroll-snap-align: start; overflow: hidden; }
.slider__img { width: 100%; height: 100%; object-fit: cover; }
.slider__caption {
	position: absolute; left: 0; right: 0; bottom: 0;
	display: flex; flex-direction: column; gap: 0.2rem;
	padding: 3.5rem 1.75rem 1.5rem;
	background: linear-gradient(to top, rgba(12, 30, 34, 0.72), rgba(12, 30, 34, 0));
	color: #fff; font-size: 0.9rem;
}
.slider__caption strong { font-family: var(--serif); font-size: 1.45rem; font-weight: 500; line-height: 1.2; }
.slider__caption span { opacity: 0.9; max-width: 52ch; }
.slider__controls { display: flex; align-items: center; gap: 1rem; margin-top: 1.1rem; }
.slider__btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; padding: 0; border-radius: 999px;
	background: transparent; border: 1px solid var(--line); color: var(--ink); cursor: pointer;
	transition: border-color 200ms var(--ease-out), color 200ms var(--ease-out), transform 150ms var(--ease-out);
}
.slider__btn:hover { border-color: var(--primary); color: var(--primary); }
.slider__btn:active { transform: scale(0.96); }
.slider__btn .icon { width: 20px; height: 20px; }
.slider__dots { display: flex; gap: 0.25rem; }
.slider__dot {
	position: relative; width: 36px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer;
}
.slider__dot::before {
	content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 2px; background: var(--line);
	transition: background-color 250ms var(--ease-out);
}
.slider__dot[aria-current="true"]::before { background: var(--primary); }

/* ---------- Sektionen ---------- */
.section { padding: var(--section) 0; }
.section--intro { padding-top: clamp(1rem, 3vw, 2rem); }
.section--services, .section--contact { background: var(--surface); }
.section--flush { padding-top: 0; }

.section-head {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem clamp(2rem, 5vw, 5rem);
	align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head__title { margin: 0; }
.section-head__intro { margin: 0; color: var(--muted); max-width: 52ch; }
.section-foot { margin: 2.5rem 0 0; }

/* Intro (Seiteninhalt der Startseite) */
.section--intro { padding-bottom: clamp(3rem, 6vw, 5rem); }
.section--intro .container--narrow { max-width: calc(1040px + 2 * var(--gutter)); }
.section--intro .entry-content > h2, .section--intro .entry-content > p { max-width: 720px; }
.section--intro .entry-content > h2:first-child { margin-top: 0; }
.section--intro .wp-block-columns { margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }

/* Behandlungen */
.service-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.service-row {
	display: grid; grid-template-columns: 260px minmax(0, 1fr) auto; gap: clamp(1.5rem, 3.5vw, 3.5rem);
	align-items: center; padding: 2rem 0; border-top: 1px solid var(--line);
	color: var(--ink); text-decoration: none;
}
.service-row__media { display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--line); }
.service-row__img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.service-row__body { display: flex; flex-direction: column; gap: 0.6rem; }
.service-row__title { font-family: var(--serif); font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.1; transition: color 200ms var(--ease-out); }
.service-row__text { color: var(--muted); max-width: 60ch; }
.service-row__more { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; font-size: 0.9rem; color: var(--primary); white-space: nowrap; }
.service-row__more .icon { width: 18px; height: 18px; transition: transform 200ms var(--ease-out); }
a.service-row:hover .service-row__title { color: var(--primary); }
a.service-row:hover .service-row__img { transform: scale(1.035); }
a.service-row:hover .service-row__more .icon { transform: translateX(4px); }
a.service-row:active .service-row__body { transform: scale(0.995); }

/* Ablauf */
.process__head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.process__head .section-head__intro { margin-top: 1rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.step { padding-top: 1.5rem; border-top: 1px solid var(--line); }
.step--highlight { border-top: 2px solid var(--primary); }
.step__num { display: block; font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--primary); margin-bottom: 0.9rem; }
.step__title { font-size: 1.55rem; margin-bottom: 0.6rem; }
.step__text { color: var(--muted); font-size: 0.98rem; margin-bottom: 0.6rem; }

/* Vorab-Anamnese-Teaser */
.section--anamnese { background: var(--primary-dark); color: rgba(255, 255, 255, 0.86); }
.anamnese-teaser { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.anamnese-teaser__kicker { display: inline-flex; align-items: center; gap: 0.55rem; margin: 0 0 1.2rem; font-size: 0.85rem; font-weight: 500; color: #fff; }
.anamnese-teaser__kicker .icon { width: 18px; height: 18px; }
.anamnese-teaser__title { color: #fff; font-size: clamp(2.2rem, 4vw, 3.3rem); }
.anamnese-teaser__lead { max-width: 52ch; margin-bottom: 2rem; }
.anamnese-sheet {
	padding: clamp(1.5rem, 3vw, 2.5rem);
	background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--radius);
}
.anamnese-sheet__label { margin: 0 0 1.2rem; font-family: var(--serif); font-size: 1.4rem; color: #fff; }
.anamnese-sheet__list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.anamnese-sheet__list li { display: flex; align-items: flex-start; gap: 0.8rem; padding: 0.85rem 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.anamnese-sheet__list .icon, .anamnese-sheet__privacy .icon { width: 20px; height: 20px; margin-top: 0.2rem; color: #fff; }
.anamnese-sheet__privacy { display: flex; gap: 0.8rem; margin: 0; padding: 1rem 1.1rem; font-size: 0.9rem; background: rgba(255, 255, 255, 0.07); border-radius: var(--radius); }

/* Kennzahlen */
.stats__title { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 2.5rem; max-width: 30ch; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 0.5rem; padding: 0 clamp(1rem, 2.5vw, 2rem); border-left: 1px solid var(--line); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat__value { margin: 0; font-family: var(--serif); font-size: clamp(3rem, 5vw, 4.2rem); line-height: 1; color: var(--primary); font-variant-numeric: lining-nums tabular-nums; }
.stat__label { color: var(--muted); font-size: 0.95rem; }

/* Kontakt */
.contact { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.contact__text { color: var(--muted); margin: 1.2rem 0 1.8rem; max-width: 46ch; }
.contact-lines { list-style: none; margin: 0 0 1.8rem; padding: 0; display: flex; flex-direction: column; gap: 0.9rem; }
.contact-lines li { display: flex; align-items: center; gap: 0.6rem; }
.contact-lines .icon { width: 20px; height: 20px; flex-shrink: 0; color: var(--primary); }
.contact__note { display: flex; gap: 0.7rem; padding: 1.1rem 1.25rem; background: var(--bg); border-radius: var(--radius); font-size: 0.95rem; }
.contact__note .icon { width: 20px; height: 20px; flex-shrink: 0; margin-top: 0.2rem; color: var(--primary); }
.contact__note a { font-weight: 600; white-space: nowrap; }

/* ---------- Formulare der Plugins (doppelte Spezifität schlägt Inline-CSS) ---------- */
.wpscp-form.wpscp-form {
	max-width: none; margin: 0; gap: 1.1rem; padding: clamp(1.5rem, 3.5vw, 2.75rem);
	background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
	font-family: var(--sans);
}
.section--contact .wpscp-form.wpscp-form { background: var(--bg); box-shadow: none; }
.wpscp-form.wpscp-form .wpscp-form__title { font-family: var(--serif); font-size: clamp(1.6rem, 2.4vw, 2rem); font-weight: 500; margin: 0 0 0.2rem; }
.wpscp-form.wpscp-form label { gap: 0.4rem; font-size: 0.86rem; font-weight: 600; color: var(--ink); }
.wpscp-form.wpscp-form .wpscp-form__row { gap: 1.1rem; }
.wpscp-form.wpscp-form input:not([type="checkbox"]),
.wpscp-form.wpscp-form textarea {
	width: 100%; min-height: 48px; padding: 0.7rem 0.9rem;
	background: var(--surface); color: var(--ink); border: 1px solid #b9c6c8; border-radius: var(--radius);
	font: 400 1rem/1.5 var(--sans);
	transition: border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.wpscp-form.wpscp-form textarea { min-height: 96px; resize: vertical; }
.wpscp-form.wpscp-form input::placeholder, .wpscp-form.wpscp-form textarea::placeholder { color: #5f6f74; }
.wpscp-form.wpscp-form input:focus, .wpscp-form.wpscp-form textarea:focus {
	outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 22%, transparent);
}
.wpscp-form.wpscp-form input[type="checkbox"] { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--primary); flex: 0 0 auto; }
.wpscp-form.wpscp-form .wpscp-an-consent { font-size: 0.86rem; line-height: 1.55; color: var(--muted); gap: 0.7rem; }
.wpscp-form.wpscp-form .wpscp-an-hint { display: none; }
.wpscp-form__btn.wpscp-form__btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 1.8rem;
	background: var(--primary); color: #fff; border: 0; border-radius: 999px;
	font: 600 0.92rem/1 var(--sans); letter-spacing: 0.01em; cursor: pointer;
	transition: background-color 200ms var(--ease-out), transform 150ms var(--ease-out);
}
.wpscp-form__btn.wpscp-form__btn:hover { background: var(--primary-dark); filter: none; }
.wpscp-form__btn.wpscp-form__btn:active { transform: scale(0.98); }
.wpscp-form-success.wpscp-form-success, .wpscp-form-error.wpscp-form-error { max-width: none; margin: 0 0 1.2rem; border-radius: var(--radius); font-size: 0.95rem; }
.wpscp-form-success.wpscp-form-success { background: #e7f3ef; color: #1d5b45; border-color: #bcdccf; }

/* ---------- Unterseiten ---------- */
.page-hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 5vw, 4rem); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.page-hero--image .page-hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
.page-hero:not(.page-hero--image) .page-hero__text { max-width: 760px; }
.page-hero__crumb { margin: 0 0 1rem; font-size: 0.88rem; }
.page-hero__crumb a { color: var(--muted); text-decoration: none; }
.page-hero__crumb a:hover { color: var(--primary); }
.page-hero__title { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.06; margin-bottom: 1.2rem; }
.page-hero__lead { font-size: clamp(1.02rem, 1.3vw, 1.15rem); color: var(--muted); max-width: 52ch; margin: 0; }
.page-hero__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--line); animation: settle 900ms var(--ease-out) both; }
.page-hero__img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__text > * { animation: rise 700ms var(--ease-out) both; }
.page-hero__text > *:nth-child(2) { animation-delay: 70ms; }
.page-hero__text > *:nth-child(3) { animation-delay: 140ms; }
.page-body { padding: clamp(1rem, 3vw, 2rem) 0 var(--section); }

/* Blockinhalte */
.entry-content > * + * { margin-top: 0; }
.entry-content h2 { margin-top: 2.6rem; font-size: clamp(1.9rem, 3vw, 2.5rem); }
.entry-content h3 { margin-top: 2rem; }
.entry-content ul, .entry-content ol { padding-left: 0; margin: 0 0 1.4rem; list-style: none; }
.entry-content ul li { position: relative; padding-left: 1.6rem; margin-bottom: 0.55rem; }
.entry-content ul li::before { content: ""; position: absolute; left: 0; top: 0.85em; width: 0.8rem; height: 1px; background: var(--primary); }
.entry-content ol { counter-reset: item; }
.entry-content ol li { position: relative; padding-left: 2.2rem; margin-bottom: 0.7rem; counter-increment: item; }
.entry-content ol li::before { content: counter(item, decimal-leading-zero); position: absolute; left: 0; top: 0.05em; font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--primary); }
.entry-content hr, .entry-content .wp-block-separator { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; width: 100%; }
.entry-content .wp-block-image img, .entry-content figure img { border-radius: var(--radius); }
.entry-content .wp-block-columns { display: flex; gap: clamp(1.5rem, 4vw, 3rem); margin: 1.5rem 0 2rem; }
.entry-content .wp-block-column { flex: 1 1 0; min-width: 0; }
.entry-content .wp-block-column > :first-child { margin-top: 0; }
.entry-content .callout, .entry-content .wp-block-group.has-background {
	padding: clamp(1.4rem, 3vw, 2.2rem); margin: 2rem 0; border-radius: var(--radius); background: var(--primary-soft);
}
.entry-content .callout > :last-child { margin-bottom: 0; }
.entry-content .callout h3, .entry-content .callout h2 { margin-top: 0; }
.entry-content .lead, .entry-content .is-style-lead { font-size: 1.18rem; color: var(--ink); }
.entry-content .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.5rem 0; }
.entry-content .wp-block-button__link {
	display: inline-flex; align-items: center; min-height: 50px; padding: 0 1.7rem; border-radius: 999px;
	background: var(--primary); color: #fff; font-weight: 600; font-size: 0.92rem; text-decoration: none;
	transition: background-color 200ms var(--ease-out), transform 150ms var(--ease-out);
}
.entry-content .wp-block-button__link:hover { background: var(--primary-dark); color: #fff; }
.entry-content .wp-block-button__link:active { transform: scale(0.98); }
.entry-content .is-style-outline .wp-block-button__link { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.entry-content .is-style-outline .wp-block-button__link:hover { background: var(--primary-soft); color: var(--primary-dark); }
.entry-content .wp-block-shortcode, .entry-content .anamnese-form-wrap { margin: 2rem 0; }
.entry-content > .wpscp-form, .entry-content .wpscp-form { margin: 2rem 0; }

/* Rechtstexte (Impressum/Datenschutz) */
.page-impressum .entry-content, .page-datenschutz .entry-content { font-size: 1rem; }
.page-impressum .entry-content h2, .page-datenschutz .entry-content h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: rgba(255, 255, 255, 0.78); padding: clamp(3.5rem, 7vw, 5.5rem) 0 1.5rem; font-size: 0.95rem; }
.site-footer a { color: rgba(255, 255, 255, 0.86); text-decoration: none; transition: color 200ms var(--ease-out); }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand { color: #fff; margin-bottom: 1.2rem; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); }
.site-footer__text { max-width: 40ch; }
.site-footer__heading { font-family: var(--sans); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; margin: 0.6rem 0 1.1rem; }
.menu--footer li { margin-bottom: 0.15rem; }
.menu--footer a { display: inline-flex; align-items: center; min-height: 36px; }
.contact-lines--footer { margin: 1.3rem 0 0; gap: 0.6rem; }
.contact-lines--footer .icon { color: rgba(255, 255, 255, 0.86); }
.site-footer__bottom {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 2rem;
	position: relative; margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.5rem;
	font-size: 0.85rem;
}
.site-footer__bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: rgba(255, 255, 255, 0.14); }
.site-footer__bottom p { margin: 0; }
.site-footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.5rem; }
.menu--legal { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.site-footer__legal a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer__study { width: 100%; color: rgba(255, 255, 255, 0.66); }
.site-footer__study a { text-decoration: underline; }
#wpx-footer-branding { background: var(--footer); color: rgba(255, 255, 255, 0.7); opacity: 1 !important; }

/* ---------- Scroll-Reveal (Inhalt immer sichtbar, nur Transform animiert) ---------- */
html.js-motion .reveal { transform: translateY(22px); transition: transform 700ms var(--ease-out); transition-delay: var(--reveal-delay, 0ms); }
html.js-motion .reveal.is-visible { transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) and (min-width: 901px) {
	.site-header__cta { display: none; }
}

@media (max-width: 900px) {
	:root { --header-h: 70px; }
	.site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
	.site-header.is-scrolled { background: var(--surface); }
	.primary-nav, .site-header__cta { display: none; }
	.burger { display: inline-flex; margin-left: auto; }
	.site-header__actions { margin-left: auto; }
	.brand__mark { width: 170px; height: 38px; }

	.hero__grid, .page-hero--image .page-hero__grid, .anamnese-teaser, .contact { grid-template-columns: minmax(0, 1fr); }
	.hero__text { max-width: 640px; }
	.section-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
	.steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
	.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
	.stat:nth-child(3) { padding-left: 0; border-left: 0; }
	.service-row { grid-template-columns: 200px minmax(0, 1fr); }
	.service-row__more { grid-column: 2; }
	.site-footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
	body { font-size: 1rem; }
	.hero { padding-top: 1.75rem; }
	.hero__title { font-size: clamp(2.3rem, 10vw, 2.9rem); }
	.hero__actions .btn { width: 100%; }
	.slider__track { aspect-ratio: 4 / 3.4; }
	.slider__caption { padding: 2.5rem 1.1rem 1rem; }
	.slider__caption strong { font-size: 1.2rem; }
	.slider__caption span { display: none; }
	.service-row { grid-template-columns: minmax(0, 1fr); gap: 1rem; padding: 1.6rem 0; }
	.service-row__more { grid-column: auto; }
	.steps { grid-template-columns: minmax(0, 1fr); }
	.stats { column-gap: 1.25rem; }
	.stat { padding-left: 1rem; } .stat:nth-child(odd) { padding-left: 0; }
	.stat__value { font-size: 2.8rem; }
	.stat__label { font-size: 0.88rem; }
	.entry-content .wp-block-columns { flex-direction: column; }
	.wpscp-form.wpscp-form .wpscp-form__row > label { min-width: 100%; }
	.wpscp-form__btn.wpscp-form__btn { width: 100%; }
	.contact__note { flex-direction: row; }
	.contact__note a { white-space: normal; }
	.site-footer__grid { grid-template-columns: minmax(0, 1fr); }
	.site-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
	html.js-motion .reveal { transform: none; }
	.slider__track { scroll-behavior: auto; }
	a.service-row:hover .service-row__img { transform: none; }
}
.menu--mobile .icon--caret { display: none; }
[id] { scroll-margin-top: 100px; }
