/* =========================================================================
   Kinder- & Jugendärztliche Gemeinschaftspraxis Düsseldorf
   Swiss / Minimal – rasterbasiert, gedämpfte Palette, hohe Lesbarkeit.
   ========================================================================= */

:root {
	--accent: #2B6E72;          /* gedämpftes Petrol/Teal – ruhig, medizinisch */
	--accent-ink: #1E4F52;
	--bg: #FFFFFF;
	--bg-alt: #F6F4EE;          /* warmes Off-White (Swiss beige) */
	--fg: #16191C;             /* fast-schwarz */
	--muted: #5B6468;
	--line: #E4E1D9;           /* feine Rahmen */
	--line-strong: #C9C5BA;
	--accent-tint: #EAF2F1;

	--container: 1200px;
	--container-narrow: 780px;
	--spacing: 2rem;
	--radius: 0px;             /* Swiss: scharfe Kanten */
	--radius-img: 2px;
	--shadow: none;
	--shadow-soft: 0 1px 0 var(--line), 0 18px 40px -28px rgba(22,25,28,.28);
	--ease: cubic-bezier(.22,.61,.36,1);
	--t: 220ms;

	--h1: clamp(2.4rem, 5.4vw, 4rem);
	--h2: clamp(1.8rem, 3.6vw, 2.8rem);
	--h3: clamp(1.15rem, 1.6vw, 1.35rem);

	font-family: 'Figtree', 'Noto Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-size: 1.0625rem;
	line-height: 1.7;
	font-weight: 400;
	font-family: inherit;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, video, iframe { max-width: 100%; height: auto; display: block; }
svg { max-width: 100%; }
a { color: var(--accent-ink); text-decoration: none; transition: color var(--t) var(--ease); }
a:hover { color: var(--accent); }

h1, h2, h3, h4 { font-family: inherit; line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 700; color: var(--fg); }
h1 { font-size: var(--h1); font-weight: 800; }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
p { margin: 0 0 1.1rem; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.15rem, 4vw, 2.5rem); }
.container-narrow { max-width: var(--container-narrow); }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: .6rem 1rem; z-index: 1000; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* Icons – dezent, feste Größe (CLAUDE.md-Vorgabe) */
.icon { width: 1.35em; height: 1.35em; flex: 0 0 auto; vertical-align: middle; stroke-width: 1.75; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; gap: .55rem;
	font-weight: 600; font-size: .98rem; line-height: 1;
	padding: .95rem 1.6rem; border: 1.5px solid transparent;
	border-radius: var(--radius); cursor: pointer;
	transition: transform var(--t) var(--ease), background var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease);
	white-space: nowrap;
}
.btn .icon { width: 1.05em; height: 1.05em; }
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--accent-ink); border-color: #fff; }
.btn-light:hover { transform: translateY(-2px); color: var(--accent-ink); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline-light:hover { border-color: #fff; color: #fff; transform: translateY(-2px); }

/* ---------- Header / Nav ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255,255,255,.9);
	backdrop-filter: saturate(140%) blur(10px);
	border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 2rem; min-height: 78px; }
.brand { flex: 0 0 auto; }
.brand-text, .brand a { display: inline-flex; align-items: center; gap: .65rem; color: var(--fg); font-weight: 700; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--accent); color: #fff; }
.brand-mark .icon { width: 22px; height: 22px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; font-size: 1.08rem; letter-spacing: -.01em; }
.brand-name-sub { font-size: .72rem; font-weight: 500; color: var(--muted); letter-spacing: .02em; text-transform: uppercase; }

.site-nav { margin-left: auto; }
.nav-menu { list-style: none; display: flex; align-items: center; gap: 2rem; margin: 0; padding: 0; }
.nav-menu a { color: var(--fg); font-weight: 500; font-size: .98rem; position: relative; padding: .35rem 0; }
.nav-menu a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--accent); transition: width var(--t) var(--ease); }
.nav-menu a:hover, .nav-menu .current-menu-item > a { color: var(--accent); }
.nav-menu a:hover::after, .nav-menu .current-menu-item > a::after { width: 100%; }
.nav-menu .sub-menu { display: none; }

.header-actions { display: flex; align-items: center; gap: 1rem; flex: 0 0 auto; }
.header-phone { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--fg); font-size: .95rem; }
.header-phone .icon { color: var(--accent); width: 1.1em; height: 1.1em; }
.header-cta { padding: .7rem 1.2rem; }

.burger { display: none; align-items: center; justify-content: center; width: 46px; height: 46px; background: transparent; border: 1.5px solid var(--line-strong); color: var(--fg); cursor: pointer; }
.burger .icon { width: 24px; height: 24px; }

/* Mobile Drawer */
.mobile-drawer { position: fixed; inset: 0; overflow: hidden; background: rgba(22,25,28,.5); opacity: 0; visibility: hidden; transition: opacity var(--t) var(--ease); z-index: 200; }
.mobile-drawer.open { opacity: 1; visibility: visible; }
.mobile-drawer-inner {
	position: absolute; right: 0; top: 0; height: 100%; width: min(86vw, 360px);
	background: #fff; padding: 1.5rem; display: flex; flex-direction: column; gap: .5rem;
	transform: translateX(100%); transition: transform var(--t) var(--ease); overflow-y: auto;
}
.mobile-drawer.open .mobile-drawer-inner { transform: translateX(0); }
.drawer-close { align-self: flex-end; width: 44px; height: 44px; background: transparent; border: 1px solid var(--line); cursor: pointer; color: var(--fg); }
.mobile-menu { list-style: none; margin: .5rem 0 1rem; padding: 0; display: flex; flex-direction: column; }
.mobile-menu a { display: block; padding: .95rem .25rem; font-size: 1.1rem; font-weight: 600; color: var(--fg); border-bottom: 1px solid var(--line); }
.mobile-menu .sub-menu { display: none; }
.drawer-cta { justify-content: center; margin-top: .5rem; }
.drawer-phone { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem; font-weight: 600; color: var(--accent-ink); }
.drawer-phone .icon { color: var(--accent); }

/* ---------- Sections ---------- */
section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section-alt { background: var(--bg-alt); }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 700; color: var(--accent); margin: 0 0 1rem; }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-intro { color: var(--muted); font-size: 1.1rem; }
.section-cta { margin-top: 2.5rem; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(3rem, 6vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-title { margin-bottom: 1rem; }
.hero-subtitle { font-size: 1.18rem; color: var(--muted); max-width: 42ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.75rem; }
.hero-facts { display: grid; grid-template-columns: repeat(3, auto); gap: 2.25rem; margin: 0; padding-top: 2rem; border-top: 1px solid var(--line); }
.hero-facts dt { font-size: 1.9rem; font-weight: 800; color: var(--accent); letter-spacing: -.02em; }
.hero-facts dd { margin: .2rem 0 0; font-size: .9rem; color: var(--muted); line-height: 1.35; max-width: 16ch; }

.hero-media { position: relative; }
.hero-frame { position: relative; overflow: hidden; border-radius: var(--radius-img); border: 1px solid var(--line); }
.hero-frame img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.hero-badge {
	position: absolute; left: -14px; bottom: 26px; background: #fff;
	border: 1px solid var(--line); padding: .85rem 1.1rem; display: flex; align-items: center; gap: .7rem;
	box-shadow: var(--shadow-soft);
}
.hero-badge .icon { color: var(--accent); width: 26px; height: 26px; }
.hero-badge strong { display: block; font-size: .98rem; }
.hero-badge span { font-size: .82rem; color: var(--muted); }

/* ---------- USP ---------- */
.usp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); }
.usp-item { padding: 2rem 1.75rem; border-right: 1px solid var(--line); }
.usp-item:last-child { border-right: 0; }
.usp-icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; background: var(--accent-tint); color: var(--accent-ink); margin-bottom: 1.1rem; }
.usp-icon .icon { width: 24px; height: 24px; }
.usp-item h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.usp-item p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Slider ---------- */
.slider { position: relative; }
.slider-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1.5rem; scrollbar-width: none; -ms-overflow-style: none; }
.slider-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; display: grid; grid-template-columns: 1.4fr 1fr; background: #fff; border: 1px solid var(--line); min-height: 0; }
.slide-media { overflow: hidden; }
.slide-media img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.slide-caption { padding: clamp(1.75rem, 3vw, 2.75rem); display: flex; flex-direction: column; justify-content: center; }
.slide-caption h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
.slide-caption p { color: var(--muted); margin: 0; }
.slider-controls { display: flex; align-items: center; justify-content: center; gap: 1.25rem; margin-top: 1.75rem; }
.slider-btn { width: 48px; height: 48px; background: #fff; border: 1.5px solid var(--line-strong); color: var(--fg); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: all var(--t) var(--ease); }
.slider-btn:hover { border-color: var(--accent); color: var(--accent); }
.slider-btn#slider-prev .icon { transform: rotate(180deg); }
.slider-dots { display: flex; gap: .5rem; }
.slider-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: var(--line-strong); cursor: pointer; padding: 0; transition: all var(--t) var(--ease); }
.slider-dots button.active { background: var(--accent); transform: scale(1.25); }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card { background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform var(--t) var(--ease), border-color var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.service-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow-soft); }
.service-media { display: block; overflow: hidden; aspect-ratio: 4 / 3; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.service-card:hover .service-media img { transform: scale(1.04); }
.service-body { padding: 1.6rem 1.6rem 1.75rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.service-num { font-size: .8rem; font-weight: 700; color: var(--accent); letter-spacing: .1em; }
.service-body h3 { margin: 0; font-size: 1.2rem; }
.service-body h3 a { color: var(--fg); }
.service-body h3 a:hover { color: var(--accent); }
.service-body p { color: var(--muted); font-size: .95rem; margin: 0; flex: 1; }
.service-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .9rem; margin-top: .5rem; }
.service-link .icon { width: 1em; height: 1em; transition: transform var(--t) var(--ease); }
.service-link:hover .icon { transform: translateX(4px); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-media img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; border: 1px solid var(--line); border-radius: var(--radius-img); }
.check-list { list-style: none; margin: 1.75rem 0 2.25rem; padding: 0; display: grid; gap: .85rem; }
.check-list li { display: flex; align-items: flex-start; gap: .7rem; font-weight: 500; }
.check-list .icon { color: var(--accent); width: 1.2em; height: 1.2em; margin-top: .15rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: stretch; }
.contact-list { list-style: none; margin: 1.75rem 0 2.25rem; padding: 0; display: grid; gap: 1.15rem; }
.contact-list li { display: flex; align-items: flex-start; gap: .9rem; }
.contact-ic { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; background: var(--accent-tint); color: var(--accent-ink); flex: 0 0 auto; }
.contact-ic .icon { width: 20px; height: 20px; }
.contact-list strong { display: block; font-size: .95rem; }
.contact-list a, .contact-list span { color: var(--muted); }
.contact-list a:hover { color: var(--accent); }
.contact-map { position: relative; min-height: 360px; border: 1px solid var(--line); overflow: hidden; }
.contact-map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; filter: grayscale(.15); }
.map-link { position: absolute; right: 12px; bottom: 12px; background: #fff; border: 1px solid var(--line); padding: .5rem .85rem; font-size: .85rem; font-weight: 600; }

/* ---------- CTA Band ---------- */
.cta-band { background: var(--accent); color: #fff; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .5rem; }
.cta-band p { color: rgba(255,255,255,.85); margin: 0; max-width: 46ch; }
.cta-band-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Page hero / body ---------- */
.page-hero { padding-block: clamp(3rem, 6vw, 5rem); background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.page-hero.has-image { position: relative; background: var(--fg); color: #fff; }
.page-hero.has-image::before { content: ""; position: absolute; inset: 0; background-image: var(--page-hero); background-size: cover; background-position: center; opacity: .35; }
.page-hero.has-image .container { position: relative; }
.page-hero.has-image h1, .page-hero.has-image .crumbs, .page-hero.has-image .crumbs a { color: #fff; }
.page-hero h1 { margin: .5rem 0 0; }
.crumbs { display: flex; align-items: center; gap: .55rem; font-size: .88rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.page-body { padding-block: clamp(3rem, 6vw, 5rem); }

/* Entry content (Gutenberg) */
.entry-content { font-size: 1.075rem; }
.entry-content > * { margin-block: 0 1.3rem; }
.entry-content h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: 2.5rem; }
.entry-content h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-top: 2rem; }
.entry-content ul, .entry-content ol { padding-left: 1.3rem; }
.entry-content li { margin-bottom: .5rem; }
.entry-content img { border-radius: var(--radius-img); }
.entry-content .wp-block-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.entry-content .wp-block-group.has-background { padding: clamp(1.5rem, 3vw, 2.5rem); border-left: 3px solid var(--accent); background: var(--bg-alt) !important; }
.entry-content blockquote { border-left: 3px solid var(--accent); padding-left: 1.25rem; margin-left: 0; color: var(--muted); font-style: italic; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content .wp-block-separator { border: 0; border-top: 1px solid var(--line); margin-block: 2.5rem; }
.back-link { margin-top: 2.5rem; }
.entry-content .wp-block-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.entry-content .wp-block-button__link { background: var(--accent); color: #fff; padding: .9rem 1.5rem; border-radius: var(--radius); font-weight: 600; text-decoration: none; }

/* Kontaktformular / Shortcodes */
.wpcf7 input:not([type=submit]), .wpcf7 textarea, .contact-form input:not([type=submit]), .contact-form textarea, form input[type=text], form input[type=email], form input[type=tel], form textarea {
	width: 100%; padding: .85rem 1rem; border: 1px solid var(--line-strong); border-radius: var(--radius); font: inherit; background: #fff; color: var(--fg); margin-bottom: 1rem;
}
form input:focus, form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
input[type=submit], button[type=submit] { background: var(--accent); color: #fff; border: 0; padding: .9rem 1.7rem; font: inherit; font-weight: 600; cursor: pointer; border-radius: var(--radius); transition: background var(--t) var(--ease); }
input[type=submit]:hover, button[type=submit]:hover { background: var(--accent-ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--fg); color: #cfd2d3; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-block: clamp(3rem, 5vw, 4.5rem); }
.footer-brand .brand-text { color: #fff; align-items: flex-start; }
.footer-brand .brand-mark { background: var(--accent); }
.footer-brand .brand-name { font-size: 1.05rem; color: #fff; }
.footer-note { color: #9aa0a2; font-size: .92rem; margin-top: 1.1rem; max-width: 38ch; }
.footer-title { color: #fff; font-size: 1rem; margin-bottom: 1.1rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.footer-contact li { display: flex; align-items: flex-start; gap: .7rem; font-size: .95rem; color: #cfd2d3; }
.footer-contact .icon { color: var(--accent); width: 1.2em; height: 1.2em; margin-top: .15rem; }
.footer-contact a { color: #cfd2d3; }
.footer-contact a:hover { color: #fff; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.footer-menu a { color: #cfd2d3; font-size: .95rem; }
.footer-menu a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.5rem; flex-wrap: wrap; }
.footer-bottom p { margin: 0; font-size: .85rem; color: #9aa0a2; }
.footer-legal { display: flex; gap: 1.25rem; }
.footer-legal a { color: #9aa0a2; }
.footer-legal a:hover { color: #fff; }

/* ---------- Reveal Animation ----------
   Nur mit aktivem JS (html.js) wird versteckt/animiert – ohne JS bleiben
   alle Sektionen sichtbar (keine leeren Sektionen). */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 900px) {
	.site-nav, .header-phone { display: none; }
	.burger { display: inline-flex; }
	.header-cta { display: none; }
	.header-inner { min-height: 68px; }
	.hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
	.hero-media { order: -1; }
	.usp-grid { grid-template-columns: 1fr 1fr; }
	.usp-item { border-bottom: 1px solid var(--line); }
	.usp-item:nth-child(2) { border-right: 0; }
	.slide { grid-template-columns: 1fr; }
	.slide-media img { min-height: 240px; }
	.services-grid { grid-template-columns: 1fr 1fr; }
	.about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
	.about-media { order: -1; }
	.contact-grid { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.entry-content .wp-block-columns { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
	body { font-size: 1rem; }
	.hero-facts { grid-template-columns: 1fr; gap: 1.25rem; }
	.hero-facts dd { max-width: none; }
	.hero-badge { left: 0; }
	.usp-grid { grid-template-columns: 1fr; }
	.usp-item { border-right: 0; }
	.services-grid { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; gap: 2rem; }
	.footer-bottom-inner { flex-direction: column; align-items: flex-start; }
	.cta-band-inner { flex-direction: column; align-items: flex-start; }
	.hero-actions .btn, .cta-band-actions .btn { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
	* { scroll-behavior: auto !important; }
	.js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
	.btn:hover, .service-card:hover { transform: none !important; }
}

/* Focus states (a11y) */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
