/* ===========================================================
   fusspflege studio saloua — Klinische Ruhe / Taupe-Klinikdesign
   =========================================================== */

:root {
	--primary: oklch(58% 0.03 70);        /* Taupe – Flaechen, Rahmen, grosse UI */
	--primary-ink: oklch(40% 0.035 70);   /* Taupe, dunkel genug fuer Text (AA) */
	--accent: oklch(32% 0.05 155);        /* Tiefgruen – EINZIGE Akzentfarbe */
	--accent-ink: oklch(32% 0.05 155);
	--bg: oklch(97% 0.01 80);             /* Warmweiss */
	--surface: oklch(93.5% 0.012 75);     /* leicht abgesetzte Flaeche */
	--text: oklch(22% 0.01 70);           /* Fliesstext */
	--text-soft: oklch(38% 0.012 70);
	--line: oklch(85% 0.012 75);
	--radius: 0.25rem;
	--radius-lg: 1.75rem;                 /* bewusste EINE Ausnahme (Bild-Crop) */

	--space-section-sm: 4rem;
	--space-section-md: 6rem;
	--space-section-lg: 9rem;

	--font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
	--font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

	--shadow-sm: 0 1px 2px oklch(22% 0.01 70 / 0.06), 0 1px 1px oklch(22% 0.01 70 / 0.04);
	--shadow-md: 0 12px 28px oklch(22% 0.01 70 / 0.10), 0 2px 8px oklch(22% 0.01 70 / 0.06);

	--ease-out: cubic-bezier(.16,.84,.44,1);
	--dur: 220ms;
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 18px;
	line-height: 1.6;
	overflow-x: hidden;
	text-wrap: pretty;
}
img, video, iframe { max-width: 100%; height: auto; display: block; }
svg { max-width: 100%; height: auto; }
.icon { width: 1.4em; height: 1.4em; flex: 0 0 auto; vertical-align: middle; display: inline-block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0 0 0.5em; text-wrap: pretty; color: var(--text); }
p { margin: 0 0 1em; max-width: 65ch; }
.container { max-width: 1240px; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }

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

/* ---------- Typografie-Skala (Verhaeltnis 1.333) ---------- */
h1 { font-size: clamp(2.6rem, 2rem + 2.6vw, 3.9rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 1.6rem + 1.3vw, 2.6rem); letter-spacing: -0.005em; }
h3 { font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem); }
.eyebrow {
	font-family: var(--font-body);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--primary-ink);
	margin: 0 0 0.9em;
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 1rem;
	padding: 0.85rem 1.5rem;
	border-radius: var(--radius);
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
	min-height: 44px;
}
.btn--accent { background: var(--accent); color: oklch(98% 0.005 80); }
.btn--accent:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.btn--accent:active { transform: translateY(0) scale(0.98); }
.btn--lg { padding: 1rem 1.9rem; font-size: 1.05rem; }
.btn--light { background: oklch(98% 0.005 80); color: var(--accent-ink); }
.btn--light:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.btn--light:active { transform: scale(0.98); }

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	font-weight: 600;
	color: var(--accent-ink);
	border-bottom: 1px solid oklch(32% 0.05 155 / 0.35);
	padding-bottom: 2px;
	transition: gap var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.link-arrow:hover { gap: 0.7em; border-color: var(--accent); }
.link-arrow .icon { width: 1em; height: 1em; }

/* ---------- Reveal-Animation (NUR transform, nie opacity:0) ---------- */
.reveal {
	transform: translateY(26px);
	transition: transform 640ms var(--ease-out);
	will-change: transform;
}
.reveal.is-visible { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
	.reveal, .reveal.is-visible { transform: none; transition: none; }
}

/* ---------- Mobile Drawer (Kind von body, NICHT header) ---------- */
.mobile-drawer {
	position: fixed;
	inset: 0 0 0 auto;
	width: min(88vw, 360px);
	height: 100dvh;
	background: var(--bg);
	z-index: 1000;
	transform: translateX(100%);
	transition: transform 320ms var(--ease-out);
	box-shadow: var(--shadow-md);
}
.mobile-drawer.is-open { transform: translateX(0); }
.mobile-drawer__panel { height: 100%; display: flex; flex-direction: column; padding: 1.5rem 1.5rem 2rem; overflow-y: auto; }
.mobile-drawer__close { align-self: flex-end; background: none; border: 0; cursor: pointer; padding: 0.5rem; color: var(--text); }
.mobile-menu { display: flex; flex-direction: column; margin-top: 1.5rem; }
.mobile-menu li { border-bottom: 1px solid var(--line); }
.mobile-menu a { display: block; padding: 0.95rem 0.1rem; font-family: var(--font-display); font-size: 1.2rem; color: var(--text); min-height: 44px; }
.mobile-menu .sub-menu { display: block; position: static; box-shadow: none; padding-left: 1rem; }
.mobile-menu .sub-menu a { font-size: 1rem; color: var(--text-soft); padding: 0.75rem 0.1rem; }
.mobile-drawer__contact { margin-top: auto; padding-top: 1.5rem; }
.mobile-drawer__phone { display: inline-flex; align-items: center; gap: 0.6em; font-weight: 600; color: var(--accent-ink); min-height: 44px; }

.mobile-drawer__overlay {
	position: fixed;
	inset: 0;
	background: oklch(22% 0.01 70 / 0.4);
	z-index: 999;
	opacity: 0;
	pointer-events: none;
	transition: opacity 280ms ease-out;
}
.mobile-drawer__overlay.is-open { opacity: 1; pointer-events: auto; }

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--bg);
	border-bottom: 1px solid transparent;
	transition: box-shadow var(--dur) var(--ease-out), padding var(--dur) var(--ease-out);
}
.site-header__inner {
	max-width: 1240px;
	margin-inline: auto;
	padding: 1.3rem clamp(1.25rem, 4vw, 2.5rem);
	display: flex;
	align-items: center;
	gap: 2rem;
	transition: padding var(--dur) var(--ease-out);
}
.site-header.is-compact .site-header__inner { padding-block: 0.7rem; }
.site-header.is-compact { box-shadow: var(--shadow-sm); border-bottom-color: var(--line); }

.site-logo { flex: 0 0 auto; display: inline-flex; align-items: center; }
.site-logo img { max-height: 46px; width: auto; }
.site-logo__text { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--text); }
.site-logo__text em { font-style: normal; color: var(--accent-ink); }
.site-logo__text--footer { font-size: 1.4rem; }

.main-nav { flex: 1; }
.nav-menu { display: flex; align-items: center; gap: 2.1rem; justify-content: center; position: relative; }
.nav-menu > li { position: relative; }
.nav-menu > li > a { font-weight: 600; font-size: 0.98rem; padding: 0.5rem 0.1rem; display: inline-block; transition: color var(--dur) var(--ease-out); }
.nav-menu > li > a:hover { color: var(--accent-ink); }
.nav-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translate(-50%, 8px);
	background: oklch(99% 0.003 80);
	box-shadow: var(--shadow-md);
	border-radius: var(--radius);
	padding: 0.5rem;
	min-width: 240px;
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility var(--dur);
}
.nav-menu > li:hover > .sub-menu,
.nav-menu > li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 2px);
}
.nav-menu .sub-menu a { display: block; padding: 0.65rem 0.9rem; border-radius: 4px; font-weight: 500; font-size: 0.92rem; }
.nav-menu .sub-menu a:hover { background: var(--surface); }

.site-header__actions { flex: 0 0 auto; display: flex; align-items: center; gap: 1rem; }
.header-cta { white-space: nowrap; }

.burger { display: none; background: none; border: 0; padding: 0.4rem; cursor: pointer; }
.burger-box { display: inline-block; position: relative; width: 26px; height: 18px; }
.burger-bar {
	display: block;
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: var(--text);
	border-radius: 2px;
	transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out), top var(--dur) var(--ease-out);
}
.burger-bar:nth-child(1) { top: 0; }
.burger-bar:nth-child(2) { top: 8px; }
.burger-bar:nth-child(3) { top: 16px; }
.burger[aria-expanded="true"] .burger-bar:nth-child(1) { top: 8px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger-bar:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger-bar:nth-child(3) { top: 8px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) 2.5rem; }
.hero__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero__subtitle { font-size: 1.08rem; color: var(--text-soft); max-width: 48ch; }
.hero__media img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: var(--radius-lg) var(--radius) var(--radius-lg) var(--radius);
	clip-path: polygon(10% 0%, 100% 0%, 100% 88%, 90% 100%, 0% 100%, 0% 12%);
	box-shadow: var(--shadow-md);
}

/* ---------- Kontaktleiste ---------- */
.contact-bar { background: var(--accent); color: oklch(98% 0.005 80); }
.contact-bar__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
	padding-block: 1.1rem;
}
.contact-bar__item { display: inline-flex; align-items: center; gap: 0.6em; font-weight: 500; min-height: 44px; }
.contact-bar__item--link { font-weight: 600; transition: gap var(--dur) var(--ease-out); }
.contact-bar__item--link:hover { gap: 0.9em; }

/* ---------- Slider (vollflaechig) ---------- */
.slider { position: relative; overflow: hidden; background: var(--text); }
.slider__track { display: flex; transition: transform 620ms var(--ease-out); }
.slider__slide { position: relative; min-width: 100%; aspect-ratio: 16 / 7; }
.slider__img { width: 100%; height: 100%; object-fit: cover; }
.slider__caption {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	padding: clamp(1.5rem, 5vw, 3.5rem);
	background: linear-gradient(0deg, oklch(15% 0.01 70 / 0.78) 0%, oklch(15% 0.01 70 / 0) 70%);
	color: oklch(98% 0.005 80);
}
.slider__caption h2 { color: oklch(98% 0.005 80); font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.1rem); }
.slider__caption p { color: oklch(92% 0.005 80); max-width: 52ch; margin: 0; }
.slider__dots { position: absolute; bottom: 1rem; right: clamp(1.25rem, 4vw, 2.5rem); display: flex; gap: 0.5rem; z-index: 2; }
.slider__dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: oklch(98% 0.005 80 / 0.45); cursor: pointer; transition: background var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); padding: 0; }
.slider__dots button.is-active { background: oklch(98% 0.005 80); transform: scale(1.2); }
.slider__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: oklch(98% 0.005 80 / 0.85);
	border: 0;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--text);
	transition: background var(--dur) var(--ease-out);
}
.slider__arrow:hover { background: oklch(98% 0.005 80); }
.slider__arrow--prev { left: clamp(0.75rem, 3vw, 1.75rem); }
.slider__arrow--prev .icon { transform: rotate(180deg); }
.slider__arrow--next { right: clamp(0.75rem, 3vw, 1.75rem); }

/* ---------- Trust (asymmetrisch) ---------- */
.trust { background: var(--surface); padding-block: var(--space-section-md); }
.trust__inner { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.trust__text p { color: var(--text-soft); max-width: 58ch; }
.trust__counter { text-align: center; padding: 2rem 1.5rem; background: oklch(99% 0.003 80); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.counter { display: flex; align-items: baseline; justify-content: center; gap: 0.15em; }
.counter__value { font-family: var(--font-display); font-size: clamp(3rem, 2.4rem + 2vw, 4.2rem); font-weight: 600; color: var(--accent-ink); }
.counter__of { font-size: 1.3rem; color: var(--text-soft); }
.counter__context { margin-top: 0.75rem; font-size: 0.9rem; color: var(--text-soft); }

/* ---------- Leistungen: breite Einzelreihen ---------- */
.services { padding-block: var(--space-section-lg) var(--space-section-md); }
.services__intro { max-width: 60ch; margin-bottom: var(--space-section-sm); }
.services__intro p { color: var(--text-soft); }

.service-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2rem, 5vw, 5rem);
	align-items: center;
	max-width: 1240px;
	margin-inline: auto;
	padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 2.5rem);
	border-top: 1px solid var(--line);
}
.service-row--reverse { direction: rtl; }
.service-row--reverse > * { direction: ltr; }
.service-row__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.service-row__index { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--primary); letter-spacing: 0.1em; }
.service-row__text h3 { margin-top: 0.4rem; }
.service-row__text p { color: var(--text-soft); }

/* ---------- Ueber-uns-Teaser ---------- */
.about-teaser { padding-block: var(--space-section-md); }
.about-teaser__inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; direction: rtl; }
.about-teaser__inner > * { direction: ltr; }
.about-teaser__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius) var(--radius-lg) var(--radius) var(--radius-lg); box-shadow: var(--shadow-md); }
.about-teaser__text p { color: var(--text-soft); }

/* ---------- CTA-Band (vollflaechig, Bruch) ---------- */
.cta-band { background: var(--accent); color: oklch(98% 0.005 80); padding-block: var(--space-section-sm); }
.cta-band__inner { text-align: center; max-width: 640px; }
.cta-band h2 { color: oklch(98% 0.005 80); }
.cta-band p { color: oklch(92% 0.006 80); margin-inline: auto; }
.cta-band__actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* ---------- Seiten (Unterseiten) ---------- */
.page-hero { padding-block: clamp(2.5rem, 6vw, 4rem) 1rem; }
.page-hero--compact { padding-block: clamp(2rem, 5vw, 3rem) 1rem; }
.page-hero__inner { max-width: 70ch; }
.page-hero__lead { font-size: 1.08rem; color: var(--text-soft); }
.page-hero__media img { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius-lg) var(--radius) var(--radius-lg) var(--radius); margin-top: 2rem; }

.basic-page, .entry-content { padding-block: var(--space-section-sm); }
.entry-content { max-width: 72ch; margin-inline: auto; }
.entry-content > .container { padding: 0; }
.entry-content h2 { margin-top: 2em; }
.entry-content ul.wp-block-list { list-style: disc; padding-left: 1.3em; margin-bottom: 1.2em; }
.entry-content ul.wp-block-list li { margin-bottom: 0.4em; max-width: 65ch; }
.entry-content .wp-block-columns { gap: 2.5rem; }

.services--overview .entry-content { padding-bottom: var(--space-section-sm); }

/* Kontaktseite */
.contact-page { padding-block: var(--space-section-sm); }
.contact-page__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-page__list { display: flex; flex-direction: column; gap: 1.1rem; margin-bottom: 1.75rem; }
.contact-page__list li { display: flex; align-items: flex-start; gap: 0.8rem; }
.contact-page__list li .icon { color: var(--accent-ink); margin-top: 0.1em; }
.contact-page__list strong { display: block; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-soft); margin-bottom: 0.15em; }
.contact-page__map iframe { width: 100%; height: 320px; border: 0; border-radius: var(--radius); }
.contact-page__form form p { margin-bottom: 1rem; }
.contact-page__form label { display: block; font-weight: 600; margin-bottom: 0.4rem; font-size: 0.92rem; }
.contact-page__form input[type="text"],
.contact-page__form input[type="email"],
.contact-page__form input[type="tel"],
.contact-page__form textarea {
	width: 100%;
	padding: 0.8rem 0.9rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	font-family: var(--font-body);
	font-size: 1rem;
	background: oklch(99% 0.003 80);
	min-height: 44px;
	transition: border-color var(--dur) var(--ease-out);
}
.contact-page__form textarea { min-height: 140px; }
.contact-page__form input:focus,
.contact-page__form textarea:focus { border-color: var(--accent); outline: none; }
.contact-page__form input[type="submit"] {
	background: var(--accent);
	color: oklch(98% 0.005 80);
	border: 0;
	padding: 0.9rem 1.8rem;
	border-radius: var(--radius);
	font-weight: 600;
	cursor: pointer;
	min-height: 44px;
	transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.contact-page__form input[type="submit"]:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.contact-page__form input[type="submit"]:active { transform: scale(0.98); }

/* ---------- Footer ---------- */
.site-footer { background: var(--text); color: oklch(90% 0.01 75); padding-block: var(--space-section-sm) 2rem; margin-top: var(--space-section-md); }
.site-footer__inner { max-width: 1240px; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 3rem; }
.site-footer__brand .site-logo__text { color: oklch(96% 0.005 80); }
.site-footer__brand .site-logo__text em { color: oklch(76% 0.06 155); }
.site-footer__brand p { color: oklch(72% 0.015 75); margin-top: 0.75rem; }
.site-footer__heading { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: oklch(72% 0.015 75); margin-bottom: 1rem; font-family: var(--font-body); font-weight: 600; }
.footer-contact { display: flex; flex-direction: column; gap: 0.85rem; }
.footer-contact li, .footer-contact a { display: flex; align-items: center; gap: 0.6em; color: oklch(90% 0.01 75); }
.footer-menu { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-menu a:hover { color: oklch(98% 0.005 80); }
.site-footer__bottom {
	max-width: 1240px;
	margin: 2.5rem auto 0;
	padding: 1.5rem clamp(1.25rem, 4vw, 2.5rem) 0;
	border-top: 1px solid oklch(100% 0 0 / 0.1);
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	font-size: 0.88rem;
	color: oklch(68% 0.015 75);
}
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a:hover { color: oklch(98% 0.005 80); }

/* ===========================================================
   Breakpoint: Tablet <=900px
   =========================================================== */
@media (max-width: 900px) {
	.main-nav, .header-cta { display: none; }
	.burger { display: inline-flex; align-items: center; justify-content: center; }

	.hero__inner { grid-template-columns: 1fr; }
	.hero__media { order: -1; }
	.hero__media img { aspect-ratio: 16 / 10; }

	.trust__inner { grid-template-columns: 1fr; }
	.trust__counter { justify-self: start; }

	.service-row { grid-template-columns: 1fr; direction: ltr; }
	.service-row--reverse { direction: ltr; }
	.service-row__media { order: -1; }

	.about-teaser__inner { grid-template-columns: 1fr; direction: ltr; }
	.about-teaser__media { order: -1; }

	.contact-page__inner { grid-template-columns: 1fr; }

	.site-footer__inner { grid-template-columns: 1fr 1fr; }
	.site-footer__brand { grid-column: 1 / -1; }

	/* Desktop :hover/:focus-within Dropdown-Transforms zuruecksetzen */
	.nav-menu .sub-menu,
	.nav-menu > li:hover > .sub-menu,
	.nav-menu > li:focus-within > .sub-menu {
		transform: none;
	}
}

/* ===========================================================
   Breakpoint: Mobil <=600px
   =========================================================== */
@media (max-width: 600px) {
	body { font-size: 16.5px; }
	.hero { padding-block: 1.75rem 2rem; }
	.contact-bar__inner { justify-content: center; text-align: center; }
	.contact-bar__item--link { width: 100%; justify-content: center; }
	.slider__slide { aspect-ratio: 4 / 5; }
	.services { padding-block: var(--space-section-sm); }
	.service-row { padding-block: 2.25rem; }
	.cta-band__actions { flex-direction: column; align-items: stretch; }
	.site-footer__inner { grid-template-columns: 1fr; }
	.site-footer__bottom { flex-direction: column; text-align: center; }
}
