/*
Theme Name: Praxis Schumacher
Description: Schlankes, DSGVO-freundliches Theme für die Zahnarztpraxis Schumacher, Neckargerach. Keine externen Ressourcen, Google Maps nur nach Einwilligung.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
Author: Alexander Linke
Text Domain: praxis-schumacher
*/

@font-face {
	font-family: Inter;
	src: url(assets/fonts/inter-latin-wght.woff2) format("woff2");
	font-weight: 100 900;
	font-display: swap;
}

:root {
	--blue: #3884aa;
	--blue-d: #24607f;
	--navy: #1d2b36;
	--muted: #5d6f7c;
	--line: #e3ebf0;
	--tint: #f4f8fb;
	--radius: 14px;
	--wrap: 1280px;
	--gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body { margin: 0; font: 17px/1.65 Inter, system-ui, sans-serif; color: var(--navy); background: #fff; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-d); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(34px, 4.2vw, 56px); letter-spacing: -.025em; }
h2 { font-size: clamp(26px, 2.6vw, 36px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: #fff; padding: 8px 16px; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 1800px) { :root { --wrap: 1440px; } body { font-size: 18px; } }

.eyebrow { display: block; color: var(--blue); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; margin-bottom: 10px; }
.center { text-align: center; margin-top: 40px; }

.btn { display: inline-block; background: var(--blue); color: #fff; padding: 12px 22px; border-radius: 10px; border: 1.5px solid var(--blue); font: 600 16px/1.3 Inter, sans-serif; text-decoration: none; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--blue-d); border-color: var(--blue-d); }
.btn--ghost { background: #fff; color: var(--blue-d); }
.btn--ghost:hover { background: var(--tint); color: var(--blue-d); }
.linklike { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- Kopfzeile (Glas) ---------- */
.site-header { position: absolute; top: 20px; left: var(--gutter); right: var(--gutter); z-index: 20; }
.site-header__bar { display: flex; align-items: center; gap: 16px; padding: 12px 16px 12px 20px; background: rgba(255,255,255,.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.85); border-radius: 18px; box-shadow: 0 8px 30px rgba(20,50,70,.08); }
.brand { display: flex; align-items: center; gap: 14px; color: var(--navy); text-decoration: none; }
.brand img { width: 52px; height: 52px; }
.brand b { display: block; font-size: 19px; }
.brand small { font-size: 13px; color: var(--muted); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav ul a { color: var(--navy); text-decoration: none; font-weight: 500; }
.nav ul a:hover, .nav .current-menu-item > a { color: var(--blue); }
.nav-toggle { display: none; }

/* ---------- Startseite: Kopfbereich mit Verlauf ---------- */
.hero { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; min-height: clamp(640px, 40vw, 1040px); padding-top: 116px; overflow: hidden; background: radial-gradient(120% 90% at 0% 0%, #fff 0%, #eef5fa 45%, #dcebf4 100%); }
.hero::after { content: ""; position: absolute; width: 520px; height: 520px; left: -160px; bottom: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(56,132,170,.18), transparent 70%); pointer-events: none; }
.hero__txt { position: relative; z-index: 1; align-self: center; padding: 40px 56px 64px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
.hero h1 { background: linear-gradient(90deg, var(--navy), var(--blue-d)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { color: var(--muted); font-size: 19px; max-width: 520px; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.facts { display: flex; flex-wrap: wrap; gap: 20px 40px; list-style: none; margin: 0; padding: 0; }
.facts b { display: block; font-size: 21px; color: var(--blue-d); white-space: nowrap; }
.facts span { font-size: 14px; color: var(--muted); }
.hero__pic { position: relative; border-radius: 0 0 0 48px; overflow: hidden; background: #dcebf4; }
.hero__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__pic::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #e6f0f7 0%, rgba(230,240,247,0) 22%), linear-gradient(0deg, rgba(18,50,74,.35) 0%, rgba(18,50,74,0) 35%); }
.chip { position: absolute; z-index: 2; left: 40px; bottom: 32px; display: flex; gap: 14px; align-items: center; background: rgba(255,255,255,.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.85); border-radius: 16px; padding: 14px 20px; font-size: 15px; box-shadow: 0 10px 30px rgba(18,50,74,.15); }
.chip i { width: 10px; height: 10px; border-radius: 50%; background: #3fbf7f; box-shadow: 0 0 0 5px rgba(63,191,127,.2); flex: none; }
.chip.is-closed i { background: #c2ccd3; box-shadow: 0 0 0 5px rgba(194,204,211,.3); }
.chip b { display: block; }
.chip span { color: var(--muted); font-size: 13px; }

/* ---------- Abschnitte ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--first { padding-top: 48px; }
.section--tint { background: var(--tint); }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 40px; }
.section__head h2 { margin: 0; }
.section__head p { color: var(--muted); max-width: 560px; margin: 0; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(20,50,70,.1); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card div { padding: 20px; }
.card p { font-size: 15px; color: var(--muted); margin: 0; }

.welcome { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; }
.prose { max-width: 820px; }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }

.info { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.box { background: var(--tint); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); }
.section--tint .box { background: #fff; }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: 11px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours td { text-align: right; font-weight: 500; }

/* Karte (2-Klick) */
.map { position: relative; min-height: 380px; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, #24607f, #3884aa); display: flex; align-items: center; justify-content: center; color: #fff; text-align: center; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__consent { max-width: 400px; padding: 24px; font-size: 14px; }
.map__consent strong { display: block; font-size: 20px; margin-bottom: 8px; }
.map__consent a { color: #fff; }
.map__consent .btn { background: #fff; color: var(--blue-d); border-color: #fff; margin: 8px 0 12px; }
.map__addr { opacity: .85; margin: 0; }
.contact + .wrap .map { margin-top: 48px; }

/* Unterseiten */
.page-head { padding: 150px 0 40px; background: radial-gradient(120% 120% at 0% 0%, #fff 0%, #eef5fa 55%, #dcebf4 100%); }
.page-head h1 { margin: 0; }
.page-head__intro { color: var(--muted); font-size: 19px; max-width: 720px; margin-top: 16px; }
.page-head__intro p:last-child { margin: 0; }

.services { display: grid; gap: 32px; }
.service { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); scroll-margin-top: 120px; }
.service img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.service h2 { font-size: 26px; }

.team-photo { margin: 0 0 48px; border-radius: var(--radius); overflow: hidden; }
.team-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center top; } /* oben nie abschneiden (Köpfe) */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.person { margin: 0; }
.person img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.person figcaption { padding-top: 14px; }
.person b { display: block; font-size: 19px; }
.person span { color: var(--muted); font-size: 15px; }

.prose:has(.wp-block-gallery) { max-width: var(--wrap); }
.wp-block-gallery { margin-top: 32px; }
.wp-block-gallery.has-nested-images figure.wp-block-image { flex-grow: 0; aspect-ratio: 4 / 3; } /* gleich große Kacheln, letzte Reihe nicht strecken */
.wp-block-gallery.has-nested-images figure.wp-block-image img { height: 100%; object-fit: cover; border-radius: 10px; }

/* Kontaktformular */
.contact { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }
.contact__lines { margin: 24px 0 0; line-height: 1.9; }
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: 15px; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form textarea { font: inherit; padding: 12px 14px; border: 1.5px solid #cfdbe3; border-radius: 10px; background: #fff; width: 100%; }
.form input:focus, .form textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(56,132,170,.2); }
.form__check { grid-template-columns: auto 1fr !important; align-items: start; font-weight: 400 !important; }
.form__check input { margin-top: 5px; width: 18px; height: 18px; }
.form__hint { font-size: 14px; color: var(--muted); margin: 0; }
.form__hp { position: absolute; left: -9999px; }
.form .btn { justify-self: start; }
.notice { padding: 14px 18px; border-radius: 10px; margin: 0; }
.notice--ok { background: #e3f5ec; color: #1d6b45; }
.notice--err { background: #fdecec; color: #8b2626; }

/* Fußzeile */
.site-footer { background: var(--blue-d); color: #d6e6ef; padding: 56px 0 24px; font-size: 16px; }
.site-footer a, .site-footer .linklike { color: #d6e6ef; }
.site-footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 32px; }
.site-footer img { width: 150px; }
.site-footer b { color: #fff; display: block; margin-bottom: 8px; }
.site-footer ul { list-style: none; margin: 0 0 4px; padding: 0; }
.site-footer__legal { grid-column: 1 / -1; display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.15); margin-top: 24px; padding-top: 20px; font-size: 13px; }

/* Einwilligungs-Hinweis */
.consent { position: fixed; z-index: 50; left: 16px; bottom: 16px; max-width: 440px; background: #fff; border-radius: 16px; padding: 22px 24px; box-shadow: 0 20px 50px rgba(18,50,74,.25); font-size: 15px; }
.consent__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.consent .btn { padding: 10px 16px; font-size: 15px; }

/* ---------- Responsiv ---------- */
@media (max-width: 1100px) {
	.cards { grid-template-columns: repeat(2, 1fr); }
	.hero__txt { padding-right: 32px; }
}
@media (max-width: 900px) {
	.site-header { top: 12px; }
	.nav-toggle { display: block; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
	.nav-toggle span:first-child, .nav-toggle span:first-child::before, .nav-toggle span:first-child::after { position: absolute; left: 11px; width: 22px; height: 2px; background: var(--navy); content: ""; transition: transform .2s; }
	.nav-toggle span:first-child { top: 21px; }
	.nav-toggle span:first-child::before { left: 0; top: -7px; }
	.nav-toggle span:first-child::after { left: 0; top: 7px; }
	.nav-toggle[aria-expanded=true] span:first-child { background: transparent; }
	.nav-toggle[aria-expanded=true] span:first-child::before { transform: translateY(7px) rotate(45deg); }
	.nav-toggle[aria-expanded=true] span:first-child::after { transform: translateY(-7px) rotate(-45deg); }
	.site-header__bar { flex-wrap: wrap; }
	.nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 8px; padding: 8px 0 4px; }
	.nav.is-open { display: flex; }
	.nav ul { flex-direction: column; gap: 0; }
	.nav ul a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line); }
	.nav .btn { text-align: center; }
	.site-header__bar { padding: 10px 10px 10px 14px; gap: 8px; }
	.brand { gap: 10px; min-width: 0; }
	.brand img { width: 40px; height: 40px; }
	.brand b { font-size: 16px; }
	.nav-toggle { flex: none; }
	.hero { grid-template-columns: 1fr; min-height: 0; padding-top: 96px; }
	.hero__txt { padding: 24px var(--gutter) 40px; }
	.hero__pic { min-height: 340px; border-radius: 32px 32px 0 0; margin: 0 var(--gutter); order: 2; }
	.hero__pic::before { background: linear-gradient(0deg, rgba(18,50,74,.35) 0%, rgba(18,50,74,0) 40%); }
	.chip { left: 16px; bottom: 16px; }
	.section__head, .welcome, .info, .contact { display: block; }
	.section__head p { margin-top: 12px; }
	.info .map, .contact aside { margin-top: 32px; }
	.service { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
	.service img { aspect-ratio: 16 / 9; }
	.people { grid-template-columns: repeat(2, 1fr); }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.page-head { padding-top: 120px; }
}
@media (max-width: 560px) {
	.cards, .form__row, .site-footer__grid { grid-template-columns: 1fr; }
	.facts { gap: 16px 28px; }
	.consent { left: 8px; right: 8px; bottom: 8px; max-width: none; }
	.site-footer__legal { flex-direction: column; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
