/* ==========================================================================
   Kornelia Ada Vink – Design-System "Klinische Klarheit"
   Primär: Tiefblau · Akzent: Terrakotta (eine Akzentfarbe, konsequent)
   ========================================================================== */

:root {
	--primary: var(--kav-primary-override, oklch(38% 0.06 230));
	--primary-rgb-fallback: #1b3a4b;
	--accent: var(--kav-accent-override, oklch(64% 0.13 38));
	--accent-ink: #a85a3d; /* dunklere Variante derselben Akzentfarbe, AA-Text-Kontrast */
	--bg: #f7f9f8;
	--surface: #ffffff;
	--wash-sage: #eef2ec;
	--ink: #1c2b33;
	--muted: #5b6b72;
	--border: rgba(27, 58, 75, 0.14);
	--radius: 2px;
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--duration-ui: 220ms;
	--font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
	--font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--space-sm: 4rem;
	--space-md: 6rem;
	--space-lg: 10rem;
	--container-max: 1280px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
	margin: 0;
	overflow-x: hidden;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1.125rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
body.drawer-open { overflow: hidden; }

img, video, iframe { max-width: 100%; height: auto; display: block; }
svg { max-width: 100%; height: auto; }
.icon { width: 1.4em; height: 1.4em; max-width: 32px; max-height: 32px; flex: 0 0 auto; vertical-align: middle; }

ul { list-style: none; margin: 0; padding: 0; }
ul.wp-block-list, .entry-content ul:not([class]) { list-style: disc; padding-left: 1.4em; margin: 0 0 1.25rem; }
ol.wp-block-list, .entry-content ol:not([class]) { padding-left: 1.4em; margin: 0 0 1.25rem; }
.entry-content li { margin-bottom: 0.4rem; }

a { color: var(--accent-ink); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--primary); line-height: 1.15; text-wrap: pretty; margin: 0 0 1rem; }
p { text-wrap: pretty; }

:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; border-radius: 2px; }

section { scroll-margin-top: 6rem; }

.container { max-width: var(--container-max); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3rem); }

/* ---------- Buttons (die eine bewusste Radius-Ausnahme: Pille) ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 600;
	font-size: 0.95rem;
	padding: 0.85rem 1.6rem;
	border-radius: 999px;
	border: 2px solid transparent;
	text-decoration: none;
	min-height: 44px;
	white-space: nowrap;
	cursor: pointer;
	transition: transform var(--duration-ui) var(--ease-out), background var(--duration-ui) var(--ease-out), color var(--duration-ui) var(--ease-out), box-shadow var(--duration-ui) var(--ease-out);
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn--primary:hover { background: #142c39; border-color: #142c39; box-shadow: 0 12px 28px -16px rgba(27, 58, 75, 0.55); }
.btn--outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn--outline:hover { background: var(--primary); color: #fff; }
.btn--outline-light { background: transparent; border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--primary); }
.btn--ghost { background: transparent; border-color: transparent; color: var(--ink); padding-inline: 0.25rem; border-radius: var(--radius); }
.btn--ghost:hover { color: var(--accent-ink); }

.link-more { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.link-more .icon { transition: transform var(--duration-ui) var(--ease-out); }
.link-more:hover .icon { transform: translateX(4px); }

.eyebrow { display: block; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); font-weight: 600; margin-bottom: 0.75rem; }
.eyebrow a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; }

.progress-rule { display: block; width: 64px; height: 3px; background: var(--accent); transform: scaleX(0.35); transform-origin: left; transition: transform 640ms var(--ease-out); margin-bottom: 1rem; }
[data-reveal].is-visible .progress-rule { transform: scaleX(1); }
.progress-rule--light { background: rgba(255, 255, 255, 0.65); margin-inline: auto; }

/* ---------- Scroll-Reveal: ausschließlich transform, nie opacity:0 im Ruhezustand ---------- */
[data-reveal] { transform: translateY(28px); transition: transform 640ms var(--ease-out); }
[data-reveal].is-visible { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
	[data-reveal] { transform: none !important; }
}

/* ==========================================================================
   Header + Mobile-Drawer
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 80;
	background: var(--bg);
	border-bottom: 1px solid var(--border);
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding-block: 1.5rem;
	transition: padding var(--duration-ui) var(--ease-out), box-shadow var(--duration-ui) var(--ease-out);
}
.site-header.is-compact .site-header__inner { padding-block: 0.75rem; }
.site-header.is-compact { box-shadow: 0 8px 24px -16px rgba(16, 32, 40, 0.28); }

.site-logo { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--ink); min-width: 0; }
.site-logo__mark { height: 48px; width: auto; max-width: 200px; flex-shrink: 0; transition: height var(--duration-ui) var(--ease-out); }
.site-logo__mark .logo-bg { fill: var(--accent); transition: fill var(--duration-ui) var(--ease-out); }
.site-header.is-compact .site-logo__mark { height: 38px; }
.site-logo__name { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; line-height: 1.2; color: var(--ink); }

.site-nav { display: none; }
.site-nav__menu { display: flex; align-items: center; gap: clamp(1.5rem, 2vw, 2.5rem); }
.site-nav__menu li { position: relative; }
.site-nav__menu a { color: var(--ink); text-decoration: none; font-weight: 500; padding-block: 0.4rem; }
.site-nav__menu a:hover { color: var(--accent-ink); }
.site-nav__menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 0.5rem 0;
	min-width: 220px;
	box-shadow: 0 16px 32px -16px rgba(16, 32, 40, 0.28);
	opacity: 0;
	pointer-events: none;
	transform: translateY(-6px);
	transition: transform var(--duration-ui) var(--ease-out), opacity var(--duration-ui) var(--ease-out);
}
.site-nav__menu .sub-menu a { display: block; padding: 0.6rem 1.1rem; }
.site-nav__menu .menu-item-has-children:hover > .sub-menu,
.site-nav__menu .menu-item-has-children:focus-within > .sub-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }

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

.burger { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; background: none; border: none; cursor: pointer; padding: 0; }
.burger-box { position: relative; display: inline-block; width: 24px; height: 18px; }
.burger-inner { position: absolute; top: 8px; left: 0; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: background var(--duration-ui) var(--ease-out); }
.burger-inner::before, .burger-inner::after { content: ""; position: absolute; left: 0; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform var(--duration-ui) var(--ease-out), top var(--duration-ui) var(--ease-out); }
.burger-inner::before { top: -8px; }
.burger-inner::after { top: 8px; }
.burger[aria-expanded="true"] .burger-inner { background: transparent; }
.burger[aria-expanded="true"] .burger-inner::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger-inner::after { top: 0; transform: rotate(-45deg); }

.drawer-overlay { position: fixed; inset: 0; background: rgba(15, 23, 28, 0.45); z-index: 60; opacity: 0; transition: opacity var(--duration-ui) var(--ease-out); }
.drawer-overlay.is-visible { opacity: 1; }
.drawer-overlay[hidden] { display: none; }

.mobile-drawer {
	position: fixed;
	top: 0;
	left: 0;
	height: 100%;
	width: min(320px, 85vw);
	background: var(--surface);
	z-index: 70;
	transform: translateX(-100%);
	transition: transform var(--duration-ui) var(--ease-out);
	overflow-y: auto;
	padding: 7rem 1.5rem 2rem;
	box-shadow: 4px 0 32px -8px rgba(16, 32, 40, 0.3);
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}
.mobile-drawer.is-open { transform: translateX(0); }
.mobile-drawer__top { position: absolute; top: 1.25rem; left: 1.5rem; right: 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.mobile-drawer__label { font-weight: 600; font-family: var(--font-display); color: var(--primary); }
.drawer-close { background: none; border: none; cursor: pointer; color: var(--ink); width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; padding: 0; }
.mobile-drawer__menu { display: flex; flex-direction: column; gap: 0.1rem; }
.mobile-drawer__menu a { display: block; min-height: 44px; display: flex; align-items: center; padding: 0.6rem 0.25rem; font-size: 1.05rem; font-weight: 500; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--border); }
.mobile-drawer__menu .sub-menu { padding-left: 1rem; }
.mobile-drawer__contact { margin-top: auto; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.mobile-drawer__phone { display: flex; align-items: center; gap: 0.6rem; min-height: 44px; color: var(--accent-ink); font-weight: 600; text-decoration: none; }

@media (max-width: 900px) {
	.site-header__actions { display: none; }
	.site-nav__menu .sub-menu { position: static; opacity: 1; pointer-events: auto; transform: none; box-shadow: none; border: none; }
}
@media (min-width: 901px) {
	.site-nav { display: block; }
	.burger { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero { padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: 2rem; background: var(--bg); position: relative; }
.hero__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.hero__text { grid-column: 1 / -1; }
.hero__image { grid-column: 1 / -1; }
.hero__title { font-size: clamp(3.375rem, 6vw, 4.75rem); margin-bottom: 1.25rem; }
.hero__subtitle { font-size: 1.125rem; color: var(--muted); max-width: 46ch; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hero__image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); clip-path: polygon(0 0, 100% 0, 100% 88%, 86% 100%, 0 100%); }

@media (min-width: 901px) {
	.hero__text { grid-column: span 7; padding-top: 1.5rem; }
	.hero__image { grid-column: span 5; margin-bottom: -5.5rem; z-index: 3; }
}

/* ---------- Über-uns-Teaser (empfängt das überlappende Hero-Bild) ---------- */
.about-teaser { padding-block: var(--space-md); background: var(--bg); }
@media (min-width: 901px) { .about-teaser { padding-top: calc(var(--space-md) + 5.5rem); } }
.about-teaser__inner { max-width: 62ch; }
.about-teaser__heading { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-bottom: 1rem; }
.about-teaser__text { color: var(--ink); font-size: 1.0625rem; line-height: 1.7; margin-bottom: 1.25rem; }

/* ==========================================================================
   Leistungen: dominante Spalte + schmale Fakten-Sidebar
   ========================================================================== */

.services { padding-block: var(--space-lg); background: var(--wash-sage); }
.services__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.services__main { grid-column: 1 / -1; }
.services__facts { grid-column: 1 / -1; }
.services__heading { max-width: 60ch; margin-bottom: 2.5rem; }
.services__heading h2 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); margin-bottom: 0.75rem; }
.services__heading p { color: var(--muted); font-size: 1.05rem; margin: 0; }

.service-rows { display: flex; flex-direction: column; gap: clamp(2.5rem, 4vw, 3.5rem); }
.service-row { display: grid; gap: 1.5rem; align-items: center; }
.service-row__image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.service-row__text h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.service-row__excerpt { color: var(--ink); line-height: 1.65; margin-bottom: 0.75rem; }
.service-row__excerpt p { margin: 0; }

.services__facts, .page-body__facts {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.75rem;
	align-self: start;
}
.facts__heading { font-size: 1.15rem; margin-bottom: 1rem; }
.facts__line { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.85rem; color: var(--ink); }
.facts__line a { display: flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; }
.facts__line a:hover { color: var(--accent-ink); }
.facts__cta { width: 100%; justify-content: center; margin-top: 0.5rem; }
.facts__doctolib { margin-top: 1rem; }

@media (min-width: 901px) {
	.services__main { grid-column: span 8; }
	.services__facts { grid-column: span 4; position: sticky; top: 7rem; }
	.service-row { grid-template-columns: 0.9fr 1.6fr; }
	.service-row:nth-child(even) .service-row__image { order: 2; }
}

/* ==========================================================================
   Vollflächiges Farbband – bewusster Bruch in der Seitenmitte
   ========================================================================== */

.band { width: 100%; background: var(--primary); color: #fff; }
.band--primary { padding-block: var(--space-md); }
.band--statement { padding-block: calc(var(--space-lg) + 2rem); text-align: center; }
.band__inner { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.band--primary .band__inner { max-width: 48rem; margin-inline: auto; text-align: center; }
.band__heading { font-size: clamp(1.75rem, 3vw, 2.5rem); color: #fff; margin: 0; }
.band__statement { font-size: clamp(1.75rem, 3.2vw, 2.75rem); max-width: 46ch; margin: 0 auto; color: #fff; }
.band__actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: center; }
.band__phone { display: flex; align-items: center; gap: 0.5rem; color: #fff; text-decoration: none; font-weight: 600; min-height: 44px; }

/* ==========================================================================
   Slider (CPT slide)
   ========================================================================== */

.slider-section { padding-block: var(--space-lg) 0; background: var(--bg); }
.slider { position: relative; margin-top: 1.5rem; }
.slider__track {
	display: flex;
	gap: 1.5rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding: 0 clamp(1.25rem, 4vw, 3rem) var(--space-sm);
	scrollbar-width: none;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__slide { flex: 0 0 min(360px, 80vw); scroll-snap-align: start; margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.slider__slide img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.slider__slide figcaption { padding: 1.25rem; }
.slider__slide h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.slider__slide figcaption div { color: var(--muted); font-size: 0.95rem; }
.slider__controls { display: flex; gap: 0.75rem; justify-content: center; margin-top: 1rem; padding-bottom: var(--space-sm); }
.slider__arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-size: 1.1rem; color: var(--primary); transition: background var(--duration-ui) var(--ease-out), color var(--duration-ui) var(--ease-out); }
.slider__arrow:hover { background: var(--primary); color: #fff; }

/* ==========================================================================
   Generische Unterseiten (page.php, page-kontakt.php, Impressum/Datenschutz)
   ========================================================================== */

.page-intro { padding-block: var(--space-md); background: var(--bg); }
.page-intro__inner { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); align-items: center; }
.page-intro__text { grid-column: 1 / -1; }
.page-intro__image { grid-column: 1 / -1; }
.page-intro__title { font-size: clamp(2.25rem, 4vw, 3rem); margin-bottom: 1rem; }
.page-intro__lead { font-size: 1.125rem; color: var(--muted); max-width: 60ch; margin: 0; }
.page-intro__image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 92%); }

@media (min-width: 901px) {
	.page-intro--with-image .page-intro__text { grid-column: span 7; }
	.page-intro--with-image .page-intro__image { grid-column: span 5; }
}

.page-body { padding-block: var(--space-md); }
.page-body__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.page-body__content { grid-column: 1 / -1; max-width: 70ch; font-size: 1.0625rem; line-height: 1.75; }
.page-body__facts { grid-column: 1 / -1; }
.page-body__content h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-top: 2.5rem; }
.page-body__content h3 { font-size: 1.25rem; margin-top: 1.75rem; }
.page-body__content p { margin-bottom: 1.25rem; }

@media (min-width: 901px) {
	.page-body__content { grid-column: span 8; }
	.page-body__facts { grid-column: span 4; position: sticky; top: 7rem; }
}

.page-body--legal .entry-content--legal { max-width: 70ch; margin-inline: auto; }
.page-body--legal h2 { margin-top: 2rem; }

.contact-form-wrap { margin-top: 2rem; }
.contact-anamnese-hint { margin-top: 1.5rem; font-size: 0.95rem; color: var(--muted); }
.contact-map { margin-top: var(--space-sm); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.contact-map__iframe { width: 100%; height: 360px; border: 0; }

/* Generische Formular-Optik (Kontaktformular/Anamnese/CF7-Shortcodes) */
.entry-content input[type="text"],
.entry-content input[type="email"],
.entry-content input[type="tel"],
.entry-content input[type="date"],
.entry-content textarea,
.entry-content select,
form input[type="text"],
form input[type="email"],
form input[type="tel"],
form input[type="date"],
form textarea,
form select {
	width: 100%;
	font-family: var(--font-body);
	font-size: 1rem;
	padding: 0.75rem 1rem;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
	color: var(--ink);
	margin-bottom: 1rem;
	transition: border-color var(--duration-ui) var(--ease-out);
}
.entry-content input:focus, .entry-content textarea:focus, .entry-content select:focus,
form input:focus, form textarea:focus, form select:focus { border-color: var(--accent-ink); }
.entry-content label, form label { display: block; font-weight: 600; margin-bottom: 0.4rem; }
.entry-content input[type="submit"],
.entry-content button[type="submit"],
form input[type="submit"],
form button[type="submit"] {
	width: auto;
	display: inline-flex;
	align-items: center;
	background: var(--primary);
	color: #fff;
	border: 2px solid var(--primary);
	border-radius: 999px;
	padding: 0.85rem 1.8rem;
	font-weight: 600;
	cursor: pointer;
	min-height: 44px;
	transition: background var(--duration-ui) var(--ease-out), transform var(--duration-ui) var(--ease-out);
}
.entry-content input[type="submit"]:hover, form input[type="submit"]:hover,
.entry-content button[type="submit"]:hover, form button[type="submit"]:hover { background: #142c39; }
.entry-content input[type="submit"]:active, form input[type="submit"]:active { transform: scale(0.98); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--primary); color: rgba(255, 255, 255, 0.88); padding-block: var(--space-md) var(--space-sm); }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2.5rem; }
.site-footer .site-logo { color: #fff; }
.site-footer .site-logo__name { color: #fff; }
.site-logo--footer .site-logo__mark { height: 32px; }
.site-footer__tagline { margin-top: 1rem; color: rgba(255, 255, 255, 0.72); max-width: 32ch; }
.site-footer__heading { color: #fff; font-size: 1.1rem; margin-bottom: 1rem; }
.site-footer__line { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.75rem; color: rgba(255, 255, 255, 0.88); }
.site-footer__line a { color: rgba(255, 255, 255, 0.88); text-decoration: none; display: flex; align-items: center; gap: 0.6rem; }
.site-footer__line a:hover { color: #fff; }
.site-footer__menu { display: flex; flex-direction: column; gap: 0.6rem; }
.site-footer__menu a { color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.site-footer__menu a:hover { color: #fff; }
.site-footer__legal { margin-top: var(--space-sm); padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.18); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: 0.875rem; color: rgba(255, 255, 255, 0.65); }
.site-footer__legal-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-footer__legal-links a { color: inherit; text-decoration: underline; }

/* ==========================================================================
   Breakpoints Pflicht: Tablet ≤900px, Handy ≤600px
   ========================================================================== */

@media (max-width: 900px) {
	:root { --space-lg: 7rem; --space-md: 4.5rem; }
	.page-body__grid, .services__grid { grid-template-columns: 1fr; }
	.page-body__facts, .services__facts { position: static; }
}

@media (max-width: 600px) {
	:root { --space-lg: 5rem; --space-md: 3.5rem; --space-sm: 2.75rem; }
	.hero__title { font-size: clamp(2.25rem, 9vw, 2.75rem); }
	.band__statement { font-size: 1.4rem; }
	.site-header__inner { padding-block: 1rem; }
	.site-logo__mark { height: 36px; max-width: 150px; }
	.site-logo__name { font-size: 0.95rem; max-width: 130px; }
}
