/* ==========================================================================
   Praxis für Ergotherapie Tanja Zehetleitner – Stylesheet
   ========================================================================== */

:root {
	--blau: #2169a5;
	--blau-dunkel: #174d7a;
	--hellblau: #76b4d6;
	--hellblau-bg: #eef6fb;
	--grau: #5c6670;
	--text: #1f2a33;
	--linie: #dde5ec;
	--bg: #ffffff;
	--bg-alt: #f5f8fa;
	--dunkel: #1a252f;

	--radius: 12px;
	--schatten: 0 1px 2px rgba(26, 37, 47, .06), 0 8px 24px rgba(26, 37, 47, .08);
	--breite: 1160px;
	--header-hoehe: 72px;

	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color-scheme: light;
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-hoehe) + 16px);
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--text);
	background: var(--bg);
}

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

a { color: var(--blau); text-underline-offset: .15em; }
a:hover { color: var(--blau-dunkel); }

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

h1, h2, h3, h4 { line-height: 1.2; color: var(--dunkel); margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -.01em; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.container { width: min(100% - 32px, var(--breite)); margin-inline: auto; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

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

.skip-link {
	position: absolute; left: 16px; top: -100px; z-index: 100;
	background: var(--blau); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; gap: .5em;
	padding: .8em 1.4em; border-radius: 999px; border: 2px solid transparent;
	font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-primary { background: var(--blau); color: #fff; }
.btn-primary:hover { background: var(--blau-dunkel); color: #fff; }
.btn-hell { background: #fff; color: var(--blau); }
.btn-hell:hover { background: var(--hellblau-bg); color: var(--blau-dunkel); }
.btn-rahmen { border-color: rgba(255, 255, 255, .8); color: #fff; }
.btn-rahmen:hover { background: rgba(255, 255, 255, .15); color: #fff; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .96);
	border-bottom: 1px solid var(--linie);
}
@supports (backdrop-filter: blur(8px)) {
	.site-header { background: rgba(255, 255, 255, .85); backdrop-filter: blur(8px); }
}
.site-header .container {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	min-height: var(--header-hoehe);
}
.logo img { width: 230px; height: auto; }

.hauptnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.hauptnav a {
	display: block; padding: 8px 14px; border-radius: 999px;
	color: var(--dunkel); text-decoration: none; font-weight: 600; font-size: .98rem;
}
.hauptnav a:hover { background: var(--hellblau-bg); color: var(--blau); }
.hauptnav .nav-tel { background: var(--blau); color: #fff; }
.hauptnav .nav-tel:hover { background: var(--blau-dunkel); color: #fff; }

@media (max-width: 760px) {
	:root { --header-hoehe: 108px; }
	.site-header .container { flex-direction: column; gap: 4px; padding: 10px 0 6px; }
	.logo img { width: 200px; }
	.hauptnav a { padding: 6px 10px; font-size: .95rem; }
}

/* ---------- Hero ---------- */
/* Foto vollständig sichtbar, Text in einem Farbband darunter (verdeckt keine Gesichter) */
.hero { color: #fff; background: var(--blau); }
.hero picture {
	display: block; position: relative; overflow: hidden;
	width: 100%; /* feste Breite, sonst verkleinert max-height über aspect-ratio auch die Breite */
	aspect-ratio: 2000 / 1333; max-height: 72vh;
	background: var(--hellblau-bg);
}
.hero picture img {
	display: block; width: 100%; height: 100%;
	object-fit: cover; object-position: 50% 30%;
}
/* Parallax (wird per JS nur auf Desktop und ohne „Bewegung reduzieren“ aktiviert) */
.hero picture.parallax img {
	position: absolute; left: 0; top: 0;
	height: 125%; object-position: 50% 0; /* 100 % + Parallax-Weg (25 %) */
	transform: translate3d(0, var(--parallax-y, 0px), 0);
	will-change: transform;
}
.hero .container {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px;
	padding-block: clamp(28px, 4vw, 44px);
}
.hero h1 { color: #fff; margin-bottom: .15em; }
.hero .claim { font-size: clamp(1.1rem, 2vw, 1.4rem); margin: 0; max-width: 40ch; color: #e6f0f8; }
.hero .aktionen { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Abschnitte ---------- */
.abschnitt { padding-block: clamp(56px, 8vw, 96px); }
.abschnitt-alt { background: var(--bg-alt); }
.abschnitt-kopf { text-align: center; max-width: 720px; margin: 0 auto clamp(32px, 5vw, 56px); }
.abschnitt-kopf p { color: var(--grau); font-size: 1.1rem; }
.eyebrow {
	display: inline-block; margin-bottom: .6em;
	font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blau);
}

/* Intro */
.intro { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .intro { grid-template-columns: 1.4fr 1fr; gap: 64px; } }
.intro .lead { font-size: 1.2rem; }
.infokarte {
	background: var(--hellblau-bg); border-radius: var(--radius); padding: 28px;
}
.infokarte h3 { font-size: 1.1rem; }
.infoliste { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.infoliste li { display: flex; gap: 12px; align-items: flex-start; }
.infoliste svg { width: 22px; height: 22px; flex: none; color: var(--blau); margin-top: 3px; }

/* Fachbereich-Übersicht */
.kacheln { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.kacheln a {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 100%;
	padding: 20px 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--linie);
	color: var(--dunkel); font-weight: 600; text-decoration: none;
	transition: border-color .2s, box-shadow .2s, transform .2s;
}
.kacheln a:hover { border-color: var(--hellblau); box-shadow: var(--schatten); transform: translateY(-2px); color: var(--blau); }
.kacheln svg { width: 20px; height: 20px; flex: none; color: var(--hellblau); }

/* Fachbereich */
.fachbereich { display: grid; gap: 28px; align-items: start; }
.fachbereich + .fachbereich { margin-top: clamp(56px, 8vw, 88px); padding-top: clamp(56px, 8vw, 88px); border-top: 1px solid var(--linie); }
@media (min-width: 900px) {
	.fachbereich { grid-template-columns: 5fr 7fr; gap: 56px; }
	.fachbereich.gespiegelt { grid-template-columns: 7fr 5fr; }
	.fachbereich.gespiegelt .fb-bild { order: 2; }
}
.fb-bild img { border-radius: var(--radius); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.fb-text > p { font-size: 1.08rem; }

/* Akkordeon (details/summary) */
.akkordeon { display: grid; gap: 10px; margin-top: 24px; }
.akkordeon details { background: #fff; border: 1px solid var(--linie); border-radius: 10px; }
.akkordeon summary {
	list-style: none; cursor: pointer; padding: 14px 18px;
	display: flex; justify-content: space-between; align-items: center; gap: 12px;
	font-weight: 600; color: var(--dunkel);
}
.akkordeon summary::-webkit-details-marker { display: none; }
.akkordeon summary::after {
	content: ""; width: 10px; height: 10px; flex: none; margin-right: 4px;
	border-right: 2px solid var(--blau); border-bottom: 2px solid var(--blau);
	transform: rotate(45deg) translateY(-3px); transition: transform .2s;
}
.akkordeon details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.akkordeon summary:hover { color: var(--blau); }
.akkordeon ul { margin: 0; padding: 0 18px 16px 38px; }
.akkordeon li + li { margin-top: .25em; }

/* Team */
.team-raster { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .team-raster { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .team-raster { grid-template-columns: repeat(5, 1fr); gap: 24px; } }
.team-raster figure { margin: 0; }
.team-raster img { border-radius: var(--radius); width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.team-platzhalter {
	display: grid; place-items: center; aspect-ratio: 3 / 4; border-radius: var(--radius);
	background: linear-gradient(160deg, var(--hellblau-bg), #d6e8f3);
	color: var(--blau); font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 600; letter-spacing: .04em;
}
.team-raster figcaption { margin-top: 12px; font-weight: 600; color: var(--dunkel); }
.team-raster figcaption span { display: block; font-weight: 400; color: var(--grau); font-size: .95rem; }

/* Kontakt */
.kontakt-raster { display: grid; gap: 40px; }
@media (min-width: 900px) { .kontakt-raster { grid-template-columns: 1fr 1.2fr; gap: 56px; } }
.kontakt-daten address { font-style: normal; }
.kontakt-daten .infoliste { margin-bottom: 28px; }

.karte {
	position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg-alt);
	aspect-ratio: 4 / 3; border: 1px solid var(--linie);
}
.karte picture, .karte img { width: 100%; height: 100%; object-fit: cover; }
.karte iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.karte-hinweis {
	position: absolute; left: 12px; right: 12px; bottom: 12px;
	background: rgba(255, 255, 255, .96); border-radius: 10px; padding: 14px 16px;
	box-shadow: var(--schatten); font-size: .9rem;
}
.karte-hinweis p { margin-bottom: .6em; }
.karte-hinweis .btn { padding: .55em 1.1em; font-size: .92rem; }
.karte-hinweis .aktionen { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }

/* Formular */
.formular { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); box-shadow: var(--schatten); }
.formular h3 { margin-bottom: .3em; }
.formular .hinweis { color: var(--grau); font-size: .95rem; }
.feld { margin-bottom: 16px; }
.feld-reihe { display: grid; gap: 0 16px; }
@media (min-width: 560px) { .feld-reihe { grid-template-columns: 1fr 1fr; } }
.feld label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.feld .optional { font-weight: 400; color: var(--grau); }
.feld input, .feld textarea {
	width: 100%; font: inherit; color: var(--text);
	padding: 11px 14px; border: 1px solid #c3ced8; border-radius: 8px; background: #fff;
}
.feld textarea { min-height: 150px; resize: vertical; }
.feld input:focus, .feld textarea:focus { outline: none; border-color: var(--blau); box-shadow: 0 0 0 3px rgba(33, 105, 165, .2); }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; margin: 8px 0 20px; }
.checkbox input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--blau); }
.hp-feld { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formular-status { margin-top: 16px; padding: 12px 16px; border-radius: 8px; }
.formular-status:empty { display: none; }
.formular-status.ok { background: #e7f5ec; color: #1d5b33; }
.formular-status.fehler { background: #fdecec; color: #8a1f1f; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dunkel); color: #c9d3dc; padding-block: 48px 32px; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-raster { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer-raster { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-logo { width: 220px; background: #fff; padding: 12px 16px; border-radius: 10px; box-sizing: content-box; }
.site-footer h2 { font-size: 1rem; color: #fff; margin-bottom: .8em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-unten {
	margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12);
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: .88rem;
}

/* ---------- Rechtstexte / Unterseiten ---------- */
.textseite { padding-block: clamp(40px, 6vw, 72px); }
.textseite .container { max-width: 800px; }
.textseite h2 { font-size: 1.5rem; margin-top: 1.8em; }
.textseite h3 { font-size: 1.15rem; margin-top: 1.4em; }
.textseite address { font-style: normal; }
.zurueck { display: inline-block; margin-bottom: 24px; }
