/* =========================================================
   ZMK Grünenplan — "Klinische Präzision"
   Gold/Salbeigrün-Markenpalette, Fraunces/Inter, 12-Spalten-Grid
   ========================================================= */

:root {
	--primary: #8C6423;
	--primary-dark: #6B4C19;
	--accent: #4F6B47;
	--accent-dark: #3B5135;
	--bg: #FAF9F6;
	--bg-alt: #F1ECE1;
	--text: #1B222B;
	--text-muted: #55606E;
	--border: #E4DECF;
	--white: #FFFFFF;
	--radius: 4px;
	--radius-lg: 10px;
	--shadow-sm: 0 1px 3px rgba(27, 34, 43, 0.08);
	--shadow-md: 0 10px 30px -12px rgba(27, 34, 43, 0.22);
	--shadow-lg: 0 24px 60px -20px rgba(27, 34, 43, 0.28);
	--font-display: 'Fraunces', serif;
	--font-body: 'Inter', sans-serif;
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--dur-fast: 180ms;
	--dur-base: 260ms;
	--header-h: 88px;
}

*, *::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: 16px;
	line-height: 1.65;
	text-wrap: pretty;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
video, iframe { max-width: 100%; }
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.15;
	margin: 0 0 0.5em;
	text-wrap: pretty;
	color: var(--text);
}

h1 { font-size: clamp(2.4rem, 3.2vw + 1.6rem, 4.4rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 1.6vw + 1.4rem, 2.8rem); }
h3 { font-size: clamp(1.2rem, 0.5vw + 1.05rem, 1.45rem); }
p { margin: 0 0 1em; color: var(--text-muted); max-width: 62ch; }

.eyebrow {
	font-family: var(--font-body);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--primary);
	margin: 0 0 0.75em;
}

/* Icons — dezent, nie riesig */
svg.icon, .icon {
	width: 1.4em;
	height: 1.4em;
	max-width: 32px;
	max-height: 32px;
	flex: 0 0 auto;
	vertical-align: middle;
	color: currentColor;
}
svg { max-width: 100%; height: auto; }

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

.skip-link {
	position: absolute;
	left: -999px;
	top: 0;
	background: var(--primary);
	color: var(--white);
	padding: 0.75em 1.25em;
	z-index: 1000;
	border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	padding: 0.85em 1.6em;
	min-height: 48px;
	border-radius: var(--radius);
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 0.95rem;
	border: 1.5px solid transparent;
	cursor: pointer;
	transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
	white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.98); }

.btn--primary { background: var(--primary); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--primary-dark); box-shadow: var(--shadow-md); }

.btn--lg { padding: 1em 2em; font-size: 1.02rem; }

.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn--ghost-invert { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn--ghost-invert:hover { border-color: var(--white); background: rgba(255,255,255,0.12); }

.link-more {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	color: var(--primary);
	font-weight: 600;
	font-size: 0.95rem;
	transition: gap var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.link-more:hover { gap: 0.65em; color: var(--primary-dark); }

/* =========================================================
   Header
   ========================================================= */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(250, 249, 246, 0.92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid transparent;
	transition: box-shadow var(--dur-base) var(--ease-out), padding var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.site-header.is-scrolled {
	box-shadow: var(--shadow-sm);
	border-color: var(--border);
}
.site-header__inner {
	max-width: 1360px;
	margin: 0 auto;
	padding: 18px 32px;
	display: flex;
	align-items: center;
	gap: 28px;
	transition: padding var(--dur-base) var(--ease-out);
}
.site-header.is-scrolled .site-header__inner { padding: 10px 32px; }

.site-logo { flex: 0 0 auto; display: flex; align-items: center; }
.site-logo img { height: 56px; width: auto; transition: height var(--dur-base) var(--ease-out); }
.site-header.is-scrolled .site-logo img { height: 42px; }
.site-logo__text { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--text); }

.primary-nav { flex: 1 1 auto; }
.primary-nav__list { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.primary-nav__list li { position: relative; }
.primary-nav__list a {
	display: inline-block;
	padding: 0.6em 0.9em;
	font-size: 0.95rem;
	font-weight: 500;
	border-radius: var(--radius);
	color: var(--text);
	transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.primary-nav__list a:hover { background: var(--bg-alt); color: var(--primary); }
.primary-nav__list .current-menu-item > a { color: var(--primary); }

.primary-nav__list .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 260px;
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
	padding: 8px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), visibility var(--dur-base);
	z-index: 10;
}
.primary-nav__list li:hover > .sub-menu,
.primary-nav__list li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.primary-nav__list .sub-menu a { display: block; padding: 0.7em 0.9em; font-size: 0.9rem; }

.site-header__actions { flex: 0 0 auto; display: flex; align-items: center; gap: 14px; }
.header-phone { display: flex; align-items: center; gap: 0.5em; font-weight: 600; font-size: 0.92rem; color: var(--text); flex-shrink: 0; }
.header-phone .icon { color: var(--accent); }

.nav-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	color: var(--text);
}
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

.nav-overlay {
	position: fixed;
	inset: 0;
	background: rgba(27, 34, 43, 0.45);
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--dur-base) var(--ease-out);
	z-index: 90;
}
.nav-overlay.is-active { opacity: 1; pointer-events: auto; }

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

.hero {
	position: relative;
	min-height: 88vh;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	color: var(--white);
}

.hero-slider { position: absolute; inset: 0; }
.hero-slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transition: opacity 1100ms var(--ease-out);
}
.hero-slide.is-active { opacity: 1; }
.hero-slide__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(27,34,43,0.35) 0%, rgba(27,34,43,0.55) 55%, rgba(27,34,43,0.82) 100%);
}

.hero__content {
	position: relative;
	z-index: 2;
	max-width: 1360px;
	margin: 0 auto;
	padding: 0 32px 96px;
	width: 100%;
	display: grid;
	grid-template-columns: repeat(12, 1fr);
}
.hero__content > * { grid-column: 1 / span 8; }
.hero h1 { color: var(--white); margin-bottom: 0.35em; }
.hero .eyebrow { color: #E8C878; }
.hero__subtitle { color: rgba(255,255,255,0.88); font-size: 1.15rem; max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.5em; align-items: center; }
.hero__actions .btn--ghost { color: var(--white); border-color: rgba(255,255,255,0.55); background: rgba(255,255,255,0.06); }
.hero__actions .btn--ghost:hover { border-color: var(--white); }

.hero-slider__dots {
	position: absolute;
	right: 32px;
	bottom: 40px;
	z-index: 3;
	display: flex;
	gap: 10px;
}
.hero-slider__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 1.5px solid rgba(255,255,255,0.7);
	background: transparent;
	cursor: pointer;
	padding: 0;
	transition: background-color var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.hero-slider__dot.is-active { background: var(--white); transform: scale(1.15); }

/* =========================================================
   Trust strip
   ========================================================= */

.trust-strip { background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.trust-strip__inner {
	max-width: 1360px;
	margin: 0 auto;
	padding: 28px 32px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}
.trust-item { display: flex; align-items: center; gap: 0.65em; font-weight: 600; font-size: 0.95rem; color: var(--text); }
.trust-item .icon { color: var(--primary); }

/* =========================================================
   Sections (generic)
   ========================================================= */

.section { max-width: 1360px; margin: 0 auto; padding: 110px 32px; }
.section__header { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.section__header .eyebrow { display: block; }
.section__lead { color: var(--text-muted); font-size: 1.08rem; margin: 0 auto; }

.section--services { background: var(--bg); }

/* About — asymmetrisches 12-Spalten-Grid */
.section--about .section__grid {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 2.5rem;
	align-items: center;
}
.about-media { grid-column: 1 / span 5; }
.about-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.about-copy { grid-column: 6 / span 7; }

.stats { display: flex; gap: 2.5rem; margin-top: 2.5rem; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat__number, .stat__suffix {
	font-family: var(--font-display);
	font-size: clamp(2.2rem, 1.6vw + 1.6rem, 3rem);
	font-weight: 600;
	color: var(--primary);
	line-height: 1;
	display: inline;
}
.stat__label { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.4em; max-width: 16ch; }

/* Services — asymmetrisches Mosaik statt gleichförmigem Card-Raster */
.services-grid {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 2rem;
}
.service-card {
	grid-column: span 4;
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: var(--shadow-sm);
	transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-card:active { transform: scale(0.99); }
.service-card:nth-child(6n+1) { grid-column: span 7; }
.service-card:nth-child(6n+2) { grid-column: span 5; }
.service-card:nth-child(6n+3) { grid-column: span 4; }
.service-card:nth-child(6n+4) { grid-column: span 4; }
.service-card:nth-child(6n+5) { grid-column: span 4; }
.service-card:nth-child(6n+6) { grid-column: span 12; }
.service-card:nth-child(6n+6) { flex-direction: row; }
.service-card:nth-child(6n+6) .service-card__media { flex: 0 0 42%; }
.service-card:nth-child(6n+6) .service-card__body { flex: 1 1 auto; }

.service-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-alt); }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; }
.service-card__body { padding: 1.75rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.service-card__body p { font-size: 0.94rem; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: var(--white); }
.cta-band__inner { max-width: 1360px; margin: 0 auto; padding: 90px 32px; text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.85); margin: 0 auto 1.75em; }
.cta-band__actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3rem; }
.contact-info { grid-column: 1 / span 5; }
.contact-form { grid-column: 6 / span 7; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.25rem; box-shadow: var(--shadow-sm); }

.contact-list { display: flex; flex-direction: column; gap: 1.4rem; margin-bottom: 2rem; }
.contact-list li { display: flex; align-items: flex-start; gap: 0.9em; }
.contact-list li > .icon { color: var(--accent); margin-top: 0.15em; flex-shrink: 0; }
.contact-list li div { display: flex; flex-direction: column; gap: 0.15em; }
.contact-map { margin-top: 1.5rem; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }

.contact-form .wpcf7-form p { margin-bottom: 1.1em; }
.contact-form .wpcf7-form label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4em; }
.contact-form .wpcf7-form input[type="text"],
.contact-form .wpcf7-form input[type="email"],
.contact-form .wpcf7-form input[type="tel"],
.contact-form .wpcf7-form textarea {
	width: 100%;
	padding: 0.8em 1em;
	border: 1.5px solid var(--border);
	border-radius: var(--radius);
	font-family: var(--font-body);
	font-size: 0.95rem;
	background: var(--bg);
	transition: border-color var(--dur-fast) var(--ease-out);
}
.contact-form .wpcf7-form input:focus,
.contact-form .wpcf7-form textarea:focus { border-color: var(--primary); outline: none; }
.contact-form .wpcf7-form input[type="submit"] {
	background: var(--primary);
	color: var(--white);
	border: none;
	padding: 0.85em 1.8em;
	border-radius: var(--radius);
	font-weight: 600;
	cursor: pointer;
	min-height: 48px;
	transition: background-color var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.contact-form .wpcf7-form input[type="submit"]:hover { background: var(--primary-dark); }
.contact-form .wpcf7-form input[type="submit"]:active { transform: scale(0.98); }

/* =========================================================
   Standard page hero + content
   ========================================================= */

.page-hero { position: relative; padding: 72px 32px 0; max-width: 1360px; margin: 0 auto; }
.page-hero__inner { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.page-hero__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 16/7; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }

.page-content { max-width: 760px; margin: 0 auto; padding: 64px 32px 40px; }
.page-content h2 { margin-top: 1.4em; }
.page-content ul.wp-block-list, .page-content ol.wp-block-list { list-style: disc; padding-left: 1.4em; margin-bottom: 1.4em; }
.page-content ul.wp-block-list li, .page-content ol.wp-block-list li { color: var(--text-muted); margin-bottom: 0.5em; }
.page-content .wp-block-group { background: var(--bg-alt); border-radius: var(--radius-lg); padding: 2rem; margin: 2rem 0; }
.page-content .wp-block-columns { gap: 2rem; }

.section--contact-page { padding-top: 30px; }

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

.site-footer { background: var(--text); color: rgba(255,255,255,0.78); margin-top: 80px; }
.site-footer__top {
	max-width: 1360px;
	margin: 0 auto;
	padding: 72px 32px 48px;
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 2.5rem;
}
.footer-col { grid-column: span 3; }
.footer-col--brand { grid-column: span 3; }
.footer-col:has(.footer-nav__list) { grid-column: span 4; }
.footer-col h3 { color: var(--white); font-size: 1rem; font-family: var(--font-body); font-weight: 700; margin-bottom: 1.1em; }
.footer-nav__list { columns: 2; column-gap: 1.5rem; }
.footer-nav__list li { display: block; margin-bottom: 0.7em; break-inside: avoid; }
.footer-nav__list a { transition: color var(--dur-fast) var(--ease-out); }
.footer-nav__list a:hover { color: var(--white); }
.footer-contact, .footer-hours { display: flex; flex-direction: column; gap: 1em; }
.footer-contact li, .footer-hours li { display: flex; align-items: flex-start; gap: 0.7em; }
.footer-contact .icon, .footer-hours .icon { color: #E8C878; margin-top: 0.15em; flex-shrink: 0; }
.footer-contact a:hover { color: var(--white); }
.site-logo--footer img {
	height: 56px;
	background: var(--white);
	border-radius: var(--radius-lg);
	padding: 6px 10px;
	box-shadow: var(--shadow-sm);
}
.footer-claim { font-family: var(--font-display); font-style: italic; margin-top: 1.2em; color: rgba(255,255,255,0.7); }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,0.14); padding: 22px 32px; text-align: center; font-size: 0.85rem; }
.site-footer__bottom p { color: rgba(255,255,255,0.6); margin: 0; }

/* =========================================================
   Reveal-Animationen (transform-only, nie opacity:0-Start)
   ========================================================= */

.reveal {
	opacity: 1;
	transform: translateY(28px);
	transition: transform 700ms var(--ease-out);
	will-change: transform;
}
.reveal.is-visible { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
	.reveal { transform: none !important; transition: none !important; }
	.hero-slide { transition: none !important; }
	.btn, .service-card, .site-header { transition: none !important; }
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1100px) {
	.hero__content > * { grid-column: 1 / span 10; }
	.about-media { grid-column: 1 / span 6; }
	.about-copy { grid-column: 7 / span 6; }
}

@media (max-width: 900px) {
	.primary-nav {
		position: fixed;
		top: 0;
		right: 0;
		height: 100vh;
		width: min(340px, 86vw);
		background: var(--white);
		box-shadow: var(--shadow-lg);
		transform: translateX(100%);
		transition: transform var(--dur-base) var(--ease-out);
		z-index: 95;
		padding: 100px 28px 40px;
		overflow-y: auto;
	}
	.primary-nav.is-open { transform: translateX(0); }
	.primary-nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
	.primary-nav__list a { padding: 0.9em 0.5em; font-size: 1.05rem; min-height: 44px; display: flex; align-items: center; }
	.nav-toggle { display: block; z-index: 96; }
	.header-cta { display: none; }
	.header-phone span { display: none; }

	.primary-nav__list .sub-menu,
	.primary-nav__list li:hover > .sub-menu,
	.primary-nav__list li:focus-within > .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: none;
		background: var(--bg-alt);
		margin: 4px 0 10px;
		padding: 4px 4px 4px 14px;
	}
	.primary-nav__list .sub-menu a { font-size: 0.98rem; padding: 0.75em 0.5em; }

	.trust-strip__inner { grid-template-columns: repeat(2, 1fr); }

	.section--about .section__grid,
	.hero__content,
	.services-grid,
	.contact-grid,
	.site-footer__top {
		grid-template-columns: 1fr;
	}
	.hero__content > *,
	.about-media, .about-copy,
	.service-card, .service-card:nth-child(6n+1), .service-card:nth-child(6n+2),
	.service-card:nth-child(6n+3), .service-card:nth-child(6n+4), .service-card:nth-child(6n+5), .service-card:nth-child(6n+6),
	.contact-info, .contact-form,
	.footer-col, .footer-col--brand {
		grid-column: 1 / -1;
	}
	.service-card:nth-child(6n+6) { flex-direction: column; }
	.service-card:nth-child(6n+6) .service-card__media { flex: none; }
	.about-media { order: 2; }
	.about-copy { order: 1; }

	.section { padding: 72px 24px; }
	.hero { min-height: 78vh; }
	.hero__content { padding: 0 24px 64px; }
}

@media (max-width: 600px) {
	.site-header__inner { padding: 14px 18px; gap: 14px; }
	.site-logo img { height: 42px; }
	.hero { min-height: 92vh; }
	.hero__subtitle { font-size: 1rem; }
	.hero__actions { flex-direction: column; align-items: stretch; }
	.hero__actions .btn { width: 100%; }
	.trust-strip__inner { grid-template-columns: 1fr; padding: 20px; }
	.section { padding: 56px 18px; }
	.section__header { margin-bottom: 40px; }
	.stats { gap: 1.5rem; }
	.cta-band__inner { padding: 64px 20px; }
	.cta-band__actions { flex-direction: column; align-items: stretch; }
	.contact-form { padding: 1.5rem; }
	.page-hero { padding: 48px 18px 0; }
	.page-content { padding: 40px 18px; }
	.site-footer__top { padding: 56px 20px 36px; }
}
