/* ==========================================================================
   Physiotherapie – Grundlayout
   Farben zentral hier anpassen:
   ========================================================================== */

@font-face {
	font-family: "Figtree";
	src: url("../fonts/Figtree-wght.woff2") format("woff2");
	font-weight: 300 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Figtree";
	src: url("../fonts/Figtree-Italic-wght.woff2") format("woff2");
	font-weight: 300 900;
	font-style: italic;
	font-display: swap;
}

:root {
	--bg: #f6f4ef;
	--surface: #ffffff;
	--ink: #1c2b2a;
	--muted: #5a6a68;
	--line: #e3ded4;
	--primary: #1f6f68;
	--primary-dark: #15504b;
	--primary-soft: #e2efec;
	--accent: #c9784a;
	--notice-bg: #fbeedd;
	--notice-line: #e7b98d;
	--radius: 14px;
	--shadow: 0 1px 2px rgba(28, 43, 42, .06), 0 6px 20px rgba(28, 43, 42, .06);
	--wrap: 1120px;
	--font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: .18em; }
a:hover { color: var(--primary-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.2rem); font-weight: 750; }
h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.85rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }

.muted { color: var(--muted); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 42em; }
.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: 16px; top: -60px; background: var(--ink); color: #fff; padding: .6em 1em; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; color: #fff; }

/* Buttons ----------------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; gap: .5em;
	padding: .8em 1.3em; border-radius: 999px;
	font-weight: 650; text-decoration: none; line-height: 1.2;
	border: 2px solid var(--primary); color: var(--primary); background: transparent;
	transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--primary-soft); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-small { padding: .5em 1em; font-size: .95rem; }
.btn svg { width: 1.05em; height: 1.05em; }

/* Header ------------------------------------------------------------------ */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(246, 244, 239, .92);
	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: 72px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); font-weight: 750; font-size: 1.1rem; line-height: 1.2; }
.brand-mark { width: 38px; height: 38px; color: var(--primary); flex: none; }
.brand:hover { color: var(--ink); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.site-nav a:not(.btn) { display: block; padding: .5em .8em; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 550; }
.site-nav a:not(.btn):hover { background: var(--primary-soft); }
.site-nav a[aria-current="page"] { color: var(--primary); box-shadow: inset 0 -2px 0 var(--primary); border-radius: 0; }

.nav-toggle { display: none; }

@media (min-width: 900px) {
	.site-nav { display: flex; align-items: center; gap: 1.25rem; }
}
@media (max-width: 899px) {
	.js .nav-toggle {
		display: inline-flex; align-items: center; justify-content: center;
		width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer;
	}
	.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
		display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; content: ""; transition: transform .2s;
	}
	.nav-toggle-bars::before { position: absolute; top: -6px; }
	.nav-toggle-bars::after { position: absolute; top: 6px; }
	.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
	.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
	.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

	.header-inner { flex-wrap: wrap; }
	.site-nav { width: 100%; padding: 0 0 1rem; }
	.js .site-nav { display: none; }
	.js .site-nav.is-open { display: block; }
	.site-nav ul { flex-direction: column; }
	.site-nav a:not(.btn) { padding: .75em .5em; border-bottom: 1px solid var(--line); border-radius: 0; }
	.site-nav a[aria-current="page"] { box-shadow: none; }
	.header-phone { margin-top: 1rem; }
}

/* Hinweis-Leiste ---------------------------------------------------------- */
.notice { background: var(--notice-bg); border-bottom: 1px solid var(--notice-line); }
.notice-inner { display: flex; gap: .75rem; align-items: flex-start; padding-top: .9rem; padding-bottom: .9rem; }
.notice svg { width: 22px; height: 22px; flex: none; color: var(--accent); margin-top: .15em; }
.notice p { margin: 0; font-weight: 550; }

/* Hero -------------------------------------------------------------------- */
.hero { padding: clamp(2.5rem, 6vw, 5.5rem) 0; background:
	radial-gradient(1200px 500px at 90% -10%, var(--primary-soft), transparent 60%),
	radial-gradient(800px 400px at -10% 110%, #f1e6da, transparent 60%); }
.hero-inner { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1.35fr 1fr; gap: 4rem; } }
.eyebrow { text-transform: uppercase; letter-spacing: .09em; font-size: .82rem; font-weight: 700; color: var(--primary); margin-bottom: 1rem; }
.hero h1 { max-width: 14em; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero-media img { border-radius: calc(var(--radius) * 1.5); box-shadow: var(--shadow); aspect-ratio: 9 / 7; object-fit: cover; width: 100%; }
.hero-media { margin: 0; }
.hero-card { background: var(--surface); border-radius: calc(var(--radius) * 1.3); padding: 1.75rem; box-shadow: var(--shadow); border-top: 5px solid var(--primary); }
.hero-card h2 { font-size: 1.25rem; }

/* Öffnungszeiten ---------------------------------------------------------- */
.hours { margin: 0 0 .75rem; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; padding: .45em 0; border-bottom: 1px dashed var(--line); }
.hours div:last-child { border-bottom: 0; }
.hours dt { font-weight: 650; }
.hours dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }

/* Sektionen --------------------------------------------------------------- */
.section { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; margin-bottom: 1.75rem; }
.section-head h2 { margin: 0; }
.more { font-weight: 650; text-decoration: none; }
.more:hover { text-decoration: underline; }

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.4rem 1.1rem; position: relative; transition: box-shadow .15s, transform .15s; }
.card::before { content: ""; display: block; width: 36px; height: 4px; border-radius: 2px; background: var(--accent); margin-bottom: 1rem; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card p { color: var(--muted); margin: 0; font-size: 1rem; }

/* Leistungs-Kacheln (Startseite) */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.75rem 1.5rem; grid-template-columns: 1fr; }
/* Hochformat / Handy: eine Kachel pro Zeile – Querformat: bis zu drei */
@media (orientation: landscape) and (min-width: 600px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (orientation: landscape) and (min-width: 900px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile a { display: block; text-decoration: none; color: var(--ink); }
.tile-image { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: transform .2s, box-shadow .2s; }
.tile-placeholder { display: grid; place-items: center; background: linear-gradient(135deg, var(--primary-soft), #f1e6da); color: var(--primary); font-size: 2.6rem; font-weight: 750; }
.tile-title { display: block; margin-top: .7rem; font-weight: 650; font-size: 1.08rem; line-height: 1.3; }
.tile a:hover .tile-title { color: var(--primary); }

/* Desktop mit Maus: nur Bilder; beim Überfahren blendet das Bild aus und der Titel erscheint darüber.
   Touch-Geräte (Handy, Tablet) zeigen den Titel weiterhin unter dem Bild. */
@media (hover: hover) and (pointer: fine) {
	.tile a { position: relative; border-radius: var(--radius); background: var(--surface); }
	.tile-image { transition: opacity .35s ease, filter .35s ease; }
	.tile-title {
		position: absolute; inset: 0; margin: 0; padding: 1.25rem;
		display: flex; align-items: center; justify-content: center; text-align: center;
		font-size: 1.4rem; font-weight: 700; line-height: 1.25; color: var(--primary-dark);
		opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease;
		pointer-events: none;
	}
	.tile a:hover .tile-image, .tile a:focus-visible .tile-image { opacity: .15; filter: blur(1px) saturate(.6); }
	.tile a:hover .tile-title, .tile a:focus-visible .tile-title { opacity: 1; transform: none; color: var(--primary-dark); }
	.tile a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
}

.prose { max-width: 46rem; }
.wrap.prose { max-width: var(--wrap); }
.wrap.prose > * { max-width: 46rem; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }

/* Seitenkopf Unterseiten -------------------------------------------------- */
.page-header { padding: clamp(2.2rem, 5vw, 4rem) 0 clamp(1.5rem, 3vw, 2.5rem); background: radial-gradient(1000px 400px at 95% -40%, var(--primary-soft), transparent 60%); border-bottom: 1px solid var(--line); }
.page-header .lead { margin-bottom: 0; }

/* Team -------------------------------------------------------------------- */
.team-strip { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.team-strip li { display: flex; gap: 1rem; align-items: center; line-height: 1.35; }
.avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar-initials, .person-initials { display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-weight: 750; letter-spacing: .03em; }

.team-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.person h2 { font-size: 1.25rem; margin: 1rem 0 .2rem; }
.person-role { color: var(--primary); font-weight: 600; font-size: .98rem; margin-bottom: .6rem; }
.person-photo { width: 100%; aspect-ratio: 1; border-radius: var(--radius); object-fit: cover; }
.person-initials { font-size: 3rem; }

/* Leistungen -------------------------------------------------------------- */
.jump { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; }
.jump a { padding: .4em .95em; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none; color: var(--ink); font-size: .95rem; font-weight: 550; }
.jump a:hover { border-color: var(--primary); color: var(--primary); }
.service-list { display: grid; gap: 1.25rem; }
.service { display: grid; gap: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
@media (min-width: 800px) { .service:has(.service-image) { grid-template-columns: 300px 1fr; } }
.service-image { border-radius: calc(var(--radius) - 4px); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service h2 { font-size: 1.4rem; }
.service-summary { font-size: 1.08rem; }
.service .prose { color: var(--muted); }
.service .prose p:last-child, .service-text > p:last-child { margin-bottom: 0; }
.note-box { margin-top: 2.5rem; padding: 1.25rem 1.5rem; background: var(--primary-soft); border-radius: var(--radius); max-width: none; }
.note-box p:last-child { margin-bottom: 0; }

/* Kontakt ----------------------------------------------------------------- */
.info-grid { display: grid; gap: 1.25rem; }
@media (min-width: 800px) { .info-grid { grid-template-columns: 1fr 1fr; } .info-card-wide { grid-column: 1 / -1; } }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.info-card h2 { font-size: 1.3rem; }
.section .wrap.prose { margin-top: 2rem; }
address { font-style: normal; margin-bottom: 1rem; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.contact-list li { padding: .15em 0; }
.contact-list .label { display: inline-block; min-width: 4.5em; color: var(--muted); }

.route-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }

/* Galerie ----------------------------------------------------------------- */
.gallery { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.gallery img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.caption { display: block; font-size: .92rem; color: var(--muted); margin-top: .4rem; }

/* Footer ------------------------------------------------------------------ */
.site-footer { background: #183b38; color: #d9e6e3; margin-top: 2rem; font-size: .98rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 2rem; padding-top: 3rem; padding-bottom: 2rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-title { font-size: 1.05rem; color: #fff; margin-bottom: .9rem; }
.site-footer .hours div { border-color: rgba(255, 255, 255, .15); }
.site-footer .muted, .site-footer .contact-list .label { color: #a9c1bd; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding-top: 1.25rem; padding-bottom: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .92rem; color: #a9c1bd; }
.footer-bottom nav { display: flex; gap: 1.25rem; }

/* Website-Status: Hinweisleiste für angemeldete Nutzer */
.status-bar { background: #1c2b2a; color: #f6f4ef; font-size: .95rem; }
.status-bar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1.5rem; padding-top: .7rem; padding-bottom: .7rem; }
.status-bar p { margin: 0; }
.status-bar strong { color: #fbeedd; }
.status-bar-links { display: flex; gap: 1.25rem; }
.status-bar a { color: #fff; font-weight: 650; }

/* Platzhalterseite (Baustelle / Wartung) */
.tpl-offline { min-height: 100vh; background:
	radial-gradient(1000px 520px at 85% -10%, var(--primary-soft), transparent 60%),
	radial-gradient(800px 420px at -10% 110%, #f1e6da, transparent 60%), var(--bg); }
.offline { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; box-sizing: border-box; }
.offline-card { width: 100%; max-width: 760px; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.5); box-shadow: var(--shadow); padding: clamp(1.75rem, 5vw, 3.25rem); border-top: 6px solid var(--primary); }
.offline-brand { display: flex; align-items: center; gap: .7rem; font-weight: 750; font-size: 1.1rem; margin-bottom: 2.25rem; }
.offline-brand .brand-mark { width: 40px; height: 40px; color: var(--primary); }
.offline h1 { font-size: clamp(1.8rem, 1.2rem + 2.6vw, 2.7rem); max-width: 16em; }
.offline .lead { margin-bottom: 1.25rem; }
.offline-note { background: var(--notice-bg); border: 1px solid var(--notice-line); border-radius: 10px; padding: .8rem 1rem; font-weight: 550; }
.offline-info { display: grid; gap: 1.75rem; margin-top: 2rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .offline-info { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
.offline-info h2 { font-size: 1.1rem; margin-bottom: .8rem; }
.offline-info .btn { margin-bottom: .5rem; }
/* Baustelle: persönliche Variante */
.offline-badge { display: inline-flex; align-items: center; gap: .5rem; background: var(--primary-soft); color: var(--primary-dark); font-weight: 650; font-size: .92rem; padding: .45em .9em; border-radius: 999px; margin-bottom: 1.25rem; }
.offline-badge svg { width: 1.1em; height: 1.1em; flex: none; }
.offline-message { font-size: 1.12rem; line-height: 1.7; max-width: 36em; }
.offline-message p:first-child { font-weight: 650; color: var(--primary-dark); }
.offline-signature { display: flex; align-items: center; gap: 1rem; margin-top: 1.75rem; }
.offline-signature img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary-soft); flex: none; }
.offline-signature p { margin: 0; display: flex; flex-direction: column; line-height: 1.35; }
.offline-signature span { color: var(--muted); font-size: .95rem; }
.offline-signature strong { font-size: 1.15rem; }
.offline-mail { margin-top: 2rem; padding: 1.4rem 1.5rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.offline-mail p { margin: 0; flex-basis: 100%; font-weight: 600; }
.offline-mail-address { color: var(--muted); font-size: .98rem; overflow-wrap: anywhere; }

.offline-legal { display: flex; gap: 1.25rem; margin-top: 2rem; font-size: .92rem; }
.offline-legal a { color: var(--muted); }

/* Bearbeiten-Link für angemeldete Redakteure ------------------------------ */
.edit-link { position: fixed; right: 16px; bottom: 16px; background: var(--accent); color: #fff; padding: .6em 1em; border-radius: 999px; text-decoration: none; font-weight: 650; box-shadow: var(--shadow); z-index: 60; }
.edit-link:hover { color: #fff; background: #b0643a; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}
@media print {
	.site-header, .edit-link, .nav-toggle { display: none; }
	body { background: #fff; }
}
