/* ==========================================================================
   Logopädische Praxis Beetz & Dries – Stylesheet 2026
   Mobile-first, eine Version für alle Bildschirmgrößen
   ========================================================================== */

/* ---------- Schriften (lokal, keine Verbindung zu Google) ---------- */
@font-face {
	font-family: "DM Sans";
	src: url("../fonts/dmsans.woff") format("woff");
	font-weight: 100 1000;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Lora";
	src: url("../fonts/lora.woff") format("woff");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}

/* ---------- Design-Variablen ---------- */
:root {
	--bg: #f7f6f1;
	--surface: #ffffff;
	--ink: #2d2f31;
	--muted: #5d6165;
	--line: #e3e2da;
	--lime: #bac700;          /* Markenfarbe aus dem Logo – nur dekorativ */
	--lime-soft: #eef1cf;
	--olive: #586000;         /* Markenfarbe, dunkel genug für Text & Buttons (WCAG AA) */
	--olive-dark: #434a00;
	--grey: #595a5b;          /* Logo-Grau */
	--danger: #a32020;
	--success: #2f6b1f;

	--font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-head: "Lora", Georgia, "Times New Roman", serif;

	--radius: 14px;
	--radius-lg: 22px;
	--shadow: 0 1px 2px rgb(0 0 0 / .04), 0 8px 24px rgb(40 44 0 / .07);
	--wrap: 72rem;
	--gap: clamp(1rem, 3vw, 2rem);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
	line-height: 1.65;
	color: var(--ink);
	background: var(--bg);
	text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
	font-family: var(--font-head);
	font-weight: 600;
	line-height: 1.2;
	color: var(--ink);
	margin: 0 0 .6em;
	text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--olive); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--olive-dark); text-decoration-thickness: 2px; }

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

address { font-style: normal; }

.visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: 1rem; top: -4rem;
	z-index: 100;
	padding: .6rem 1rem;
	background: var(--ink);
	color: #fff;
	border-radius: 8px;
}
.skip-link:focus { top: 1rem; color: #fff; }

.wrap {
	width: min(100% - 2 * var(--gap), var(--wrap));
	margin-inline: auto;
}
.wrap.narrow { --wrap: 48rem; }

.icon { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	min-height: 48px;
	padding: .75rem 1.4rem;
	border: 2px solid transparent;
	border-radius: 999px;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--olive); color: #fff; }
.btn-primary:hover { background: var(--olive-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--olive); border-color: currentColor; }
.btn-ghost:hover { background: var(--olive); border-color: var(--olive); color: #fff; }
.btn-small { min-height: 40px; padding: .45rem 1.1rem; font-size: .95rem; }

/* ---------- Kopfbereich & Navigation ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgb(247 246 241 / .92);
	backdrop-filter: saturate(1.4) blur(10px);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--line);
}
.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 4.5rem;
}

.brand {
	display: flex;
	align-items: center;
	gap: .75rem;
	color: var(--ink);
	text-decoration: none;
}
.brand:hover { color: var(--ink); text-decoration: none; }
.brand img { width: 84px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-title { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; }
.brand-sub { font-size: .85rem; color: var(--muted); }

.nav-toggle {
	display: inline-grid;
	place-items: center;
	width: 48px; height: 48px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--surface);
	cursor: pointer;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
	display: block;
	width: 22px; height: 2px;
	background: var(--ink);
	border-radius: 2px;
	transition: transform .25s, background-color .25s;
}
.nav-toggle-bar { position: relative; }
.nav-toggle-bar::before,
.nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav a:not(.btn) {
	display: block;
	padding: .75rem .25rem;
	color: var(--ink);
	font-weight: 500;
	text-decoration: none;
}
.main-nav a:not(.btn):hover { color: var(--olive); }
.main-nav a[aria-current="page"]:not(.btn) { color: var(--olive); }

/* Mobil: ausklappbares Menü (ohne JS: siehe nojs.css) */
@media (max-width: 899.98px) {
	.main-nav {
		position: absolute;
		inset: 100% 0 auto 0;
		background: var(--bg);
		border-bottom: 1px solid var(--line);
		box-shadow: 0 12px 24px rgb(0 0 0 / .06);
		display: none;
	}
	.main-nav.is-open { display: block; }
	.main-nav ul { width: min(100% - 2 * var(--gap), var(--wrap)); margin-inline: auto; padding: .5rem 0 1.25rem; }
	.main-nav li + li { border-top: 1px solid var(--line); }
	.main-nav .nav-cta { border-top: 0; padding-top: .75rem; }
	.main-nav .nav-cta .btn { width: 100%; }
}

/* Desktop: Menü in einer Zeile */
@media (min-width: 900px) {
	.nav-toggle { display: none; }
	.brand img { width: 110px; }
	.main-nav ul { display: flex; align-items: center; gap: .25rem; }
	.main-nav a:not(.btn) {
		position: relative;
		padding: .5rem .8rem;
	}
	.main-nav a:not(.btn)::after {
		content: "";
		position: absolute;
		left: .8rem; right: .8rem; bottom: .2rem;
		height: 2px;
		background: var(--lime);
		transform: scaleX(0);
		transform-origin: left;
		transition: transform .25s;
	}
	.main-nav a:not(.btn):hover::after,
	.main-nav a[aria-current="page"]:not(.btn)::after { transform: scaleX(1); }
	.main-nav .nav-cta { margin-left: .75rem; }
}

/* ---------- Abschnitte ---------- */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section-flush { padding-top: 0; }
.section-tint { background: var(--lime-soft); }
.section-title { text-align: center; margin-bottom: 1.5em; }

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	margin-bottom: .9rem;
	font-size: .85rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--olive);
}
.eyebrow::before {
	content: "";
	width: 1.5rem; height: 3px;
	border-radius: 3px;
	background: var(--lime);
}

.lead { font-size: clamp(1.075rem, 1rem + .4vw, 1.25rem); color: var(--muted); }

.page-intro {
	padding-block: clamp(2.5rem, 7vw, 5rem) clamp(1.5rem, 4vw, 2.5rem);
}
.page-intro-tall { min-height: 55vh; display: grid; align-items: center; }

/* ---------- Startseite: Hero ---------- */
.hero { padding-block: clamp(2rem, 6vw, 4.5rem); overflow: hidden; }
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-block: 1.75rem 1.25rem; }
.hero-address { color: var(--muted); font-size: .95rem; }

.hero-image { margin: 0; position: relative; }
.hero-image img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	object-position: 50% 25%;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
}

@media (min-width: 960px) {
	.hero-grid { grid-template-columns: 1fr 1.25fr; }
	.hero-image img { aspect-ratio: 16 / 10; }
}

/* ---------- Fakten-Kacheln ---------- */
.facts {
	list-style: none; margin: 0; padding: 0;
	display: grid;
	gap: var(--gap);
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.fact {
	padding: 1.75rem;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}
.fact h2 { font-size: 1.25rem; }
.fact p { color: var(--muted); }
.fact-icon {
	display: inline-grid;
	place-items: center;
	width: 3rem; height: 3rem;
	margin-bottom: 1rem;
	border-radius: 50%;
	background: var(--lime-soft);
}
.fact-icon svg { width: 1.4rem; height: 1.4rem; fill: var(--olive); }

/* ---------- Hinweis-/Call-to-Action-Boxen ---------- */
.callout {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	align-items: flex-start;
}
.callout p { color: var(--muted); max-width: 42rem; }
.callout h2 { margin-bottom: .35em; }
.callout-plain {
	padding: clamp(1.5rem, 4vw, 2.25rem);
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
}
@media (min-width: 760px) {
	.callout { flex-direction: row; align-items: center; justify-content: space-between; gap: 2rem; }
	.callout .btn { flex: none; }
}

/* ---------- Team ---------- */
.team {
	list-style: none; margin: 0; padding: 0;
	display: grid;
	gap: var(--gap);
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
}
.team-card {
	padding: 1.75rem 1.5rem;
	text-align: center;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
}
.team-card img {
	width: 10rem; height: 10rem;
	margin: 0 auto 1.25rem;
	object-fit: cover;
	border-radius: 50%;
	box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--lime);
}
.team-card h3 { margin-bottom: .15em; font-size: 1.25rem; }
.team-role { color: var(--olive); font-weight: 600; font-size: .95rem; margin-bottom: 1rem; }
.team-facts {
	list-style: none; margin: 0; padding: 1rem 0 0;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: .95rem;
}
.team-facts li + li { margin-top: .35rem; }

/* ---------- Leistungen ---------- */
.services, .job-grid {
	display: grid;
	gap: var(--gap);
}
@media (min-width: 860px) {
	.services { grid-template-columns: 1.15fr 1fr; align-items: start; }
	.job-grid { grid-template-columns: 1fr 1fr; }
}
.service-card {
	padding: clamp(1.5rem, 4vw, 2.25rem);
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
}
.service-card h2 {
	padding-bottom: .6rem;
	border-bottom: 3px solid var(--lime);
	display: inline-block;
}
.service-list, .check-list { list-style: none; margin: 0; padding: 0; }
.service-list li {
	padding: .8rem 0 .8rem 1.75rem;
	position: relative;
	border-bottom: 1px solid var(--line);
}
.service-list li:last-child { border-bottom: 0; }
.service-list li::before,
.check-list li::before {
	content: "";
	position: absolute;
	left: 0; top: 1.25rem;
	width: .6rem; height: .6rem;
	border-radius: 50%;
	background: var(--lime);
}
.service-list strong { display: block; font-weight: 600; }
.service-list span { display: block; color: var(--muted); font-size: .95rem; }
.check-list li { position: relative; padding: .35rem 0 .35rem 1.6rem; }
.check-list li::before { top: .95rem; }

.prose { margin-block: 2rem; }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.5em; margin-bottom: .4em; }
.prose-legal { font-size: .975rem; overflow-wrap: anywhere; }
.prose-legal h2 { font-size: 1.3rem; }
.prose-legal h3 { font-size: 1.05rem; font-family: var(--font-body); }

/* ---------- Galerie ---------- */
.gallery {
	list-style: none; margin: 0; padding: 0;
	display: grid;
	gap: var(--gap);
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
}
.gallery figure { margin: 0; }
.gallery-link {
	display: block;
	overflow: hidden;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}
.gallery img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform .4s ease;
}
.gallery-link:hover img { transform: scale(1.04); }
.gallery figcaption { padding-top: .6rem; color: var(--muted); font-size: .95rem; }

.lightbox {
	padding: 0;
	border: 0;
	background: transparent;
	max-width: min(96vw, 1440px);
	max-height: 92vh;
}
.lightbox::backdrop { background: rgb(20 20 20 / .85); }
.lightbox img { max-height: 88vh; width: auto; margin: auto; border-radius: 10px; }
.lightbox-close {
	position: fixed;
	top: 1rem; right: 1rem;
	width: 48px; height: 48px;
	border: 0; border-radius: 50%;
	background: #fff;
	font-size: 1.75rem; line-height: 1;
	cursor: pointer;
}

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; gap: var(--gap); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.4fr; } }
.contact-card {
	padding: clamp(1.5rem, 4vw, 2.25rem);
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
}
.contact-card address { margin-bottom: 1.25rem; font-size: 1.1rem; }
.contact-list { margin: 0 0 1.75rem; display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; }
.contact-list dt { font-weight: 600; }
.contact-list dd { margin: 0; overflow-wrap: anywhere; }

.map {
	min-height: 22rem;
	display: grid;
	border-radius: var(--radius-lg);
	overflow: hidden;
	background:
		radial-gradient(circle at 30% 30%, rgb(186 199 0 / .25), transparent 55%),
		repeating-linear-gradient(45deg, #eceadf 0 12px, #f3f2ea 12px 24px);
	border: 1px solid var(--line);
}
.map-consent {
	align-self: center;
	margin: 1.25rem;
	padding: 1.5rem;
	max-width: 32rem;
	justify-self: center;
	background: var(--surface);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}
.map-consent p { color: var(--muted); font-size: .95rem; }
.map-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.map iframe { width: 100%; height: 100%; min-height: 22rem; border: 0; }

/* ---------- Formular ---------- */
.form { margin-top: 2rem; }
.form fieldset { border: 0; margin: 0 0 2rem; padding: 0; min-width: 0; }
.form > fieldset > legend {
	font-family: var(--font-head);
	font-size: 1.3rem;
	font-weight: 600;
	margin-bottom: 1rem;
	padding: 0;
}
.field-row { display: grid; gap: 0 1.25rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"], textarea {
	width: 100%;
	min-height: 48px;
	padding: .7rem .9rem;
	font: inherit;
	color: var(--ink);
	background: var(--surface);
	border: 1.5px solid #c9c8be;
	border-radius: 10px;
	transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 8rem; }
input:focus, textarea:focus {
	outline: none;
	border-color: var(--olive);
	box-shadow: 0 0 0 4px rgb(186 199 0 / .3);
}
[aria-invalid="true"] { border-color: var(--danger) !important; }
.field-error { color: var(--danger); font-size: .9rem; font-weight: 500; margin: .35rem 0 0; }

.choices { margin-bottom: 1.25rem !important; }
.choices legend { font-weight: 600; margin-bottom: .5rem; }
.choice {
	display: inline-flex;
	align-items: flex-start;
	gap: .6rem;
	margin: 0 1.25rem .5rem 0;
	font-weight: 400 !important;
	cursor: pointer;
}
.choice input { width: 1.25rem; height: 1.25rem; margin: .2rem 0 0; accent-color: var(--olive); flex: none; }
.field-consent .choice { margin-right: 0; color: var(--muted); font-size: .95rem; }

/* Honeypot: für Menschen unsichtbar */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.notice {
	padding: 1.25rem 1.5rem;
	margin-bottom: 1.25rem;
	border-radius: var(--radius);
	border: 1px solid var(--line);
	background: var(--surface);
	border-left-width: 5px;
}
.notice h2 { font-size: 1.15rem; margin-bottom: .35em; }
.notice-info { border-left-color: var(--lime); }
.notice-success { border-left-color: var(--success); background: #f0f7ec; }
.notice-error { border-left-color: var(--danger); background: #fbefef; }

/* ---------- Fußbereich ---------- */
.site-footer {
	margin-top: clamp(2rem, 6vw, 4rem);
	background: var(--grey);
	color: #f1f1ee;
	font-size: .95rem;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--lime); }
.footer-grid {
	display: grid;
	gap: 1.75rem;
	padding-block: 2.75rem 2rem;
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}
.footer-title { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: #fff; margin-bottom: .5rem; }
.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: .5rem 1.5rem;
	padding-block: 1.25rem 1.75rem;
	border-top: 1px solid rgb(255 255 255 / .2);
	font-size: .875rem;
}
.footer-bottom p { margin: 0; }

/* ---------- Druck ---------- */
@media print {
	.site-header, .nav-toggle, .hero-actions, .map, .btn { display: none !important; }
	body { background: #fff; }
}

/* Checkbox/Radio-Labels innerhalb von .field nicht als Block */
.field .choice { display: flex; }

/* ---------- Startseite: zweites Teamfoto ---------- */
.team-teaser { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.team-teaser-image { margin: 0; }
.team-teaser-image img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
}
.team-teaser-text p:not(.eyebrow) { color: var(--muted); }
.team-teaser-text .btn { margin-top: 1.25rem; }
@media (min-width: 960px) {
	.team-teaser { grid-template-columns: 1.1fr 1fr; }
}
