/* Reset, Layout-Primitive, Typografie. */

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

* { margin: 0; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	/* Sprungmarken landen sonst unter der Kopfleiste. */
	scroll-padding-top: calc(var(--kopf-h) + 12px);
}

body {
	background: var(--flaeche);
	color: var(--ink-2);
	font-family: var(--font-text);
	font-size: var(--t-body);
	line-height: 1.62;
	font-synthesis-weight: none;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
	/* Platz fuer die feste Aktionsleiste, sonst liegt sie auf dem Impressum. */
	padding-bottom: calc(var(--rufleiste-h) + env(safe-area-inset-bottom, 0px));
}

img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; }

::selection {
	background: color-mix(in oklab, var(--orange) 55%, transparent);
	color: var(--ink);
}

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

.skip {
	position: absolute;
	left: -9999px;
	z-index: 100;
	padding: 0.8rem 1.2rem;
	background: var(--orange);
	color: var(--auf-orange);
	font-weight: 700;
}
.skip:focus {
	left: 1rem;
	top: 1rem;
}

/* Hinweisband der Entwicklungsinstanz. Live nie sichtbar. */
.dev-band {
	position: fixed;
	left: 0;
	bottom: calc(var(--rufleiste-h) + env(safe-area-inset-bottom, 0px));
	z-index: 60;
	max-width: min(100%, 30rem);
	padding: 0.3rem 0.7rem;
	background: #3A2504;
	color: #FFD9A8;
	font-size: 0.68rem;
	line-height: 1.35;
	letter-spacing: 0.01em;
	border-top-right-radius: var(--radius);
	opacity: 0.85;
	pointer-events: none;
}

/* --- Layout ------------------------------------------------------------- */

.wrap {
	width: 100%;
	max-width: var(--maxw);
	margin-inline: auto;
	padding-inline: var(--rand);
}
.wrap--schmal { max-width: var(--maxw-schmal); }

.sektion { padding-block: var(--sektion-y); }

/* Abgesetzte Baender laufen oben und unten in die Grundflaeche aus, statt
 * mit einer Kante anzusetzen. Die harte Kante liess die Seite in Bloecke
 * zerfallen: jeder Wechsel war eine Zaesur, obwohl der Text weiterlaeuft.
 * Auch das Staerkenband laeuft aus, harte Kanten gibt es auf der Seite
 * seit dem 06.08.2026 keine mehr. */
.sektion--abgesetzt {
	--kante: clamp(4rem, 10vw, 9rem);
	background: linear-gradient(
		180deg,
		var(--flaeche) 0,
		var(--flaeche-2) var(--kante),
		var(--flaeche-2) calc(100% - var(--kante)),
		var(--flaeche) 100%
	);
}

.band {
	padding-block: clamp(3.2rem, 6vw, 4.6rem);
	/* Frueher zwei Haarlinien und eine harte Flaeche. Jetzt laeuft auch
	   dieses Band oben und unten in die Grundflaeche aus: die Seite soll
	   fliessen, nicht in Kaesten zerfallen. */
	background: linear-gradient(
		180deg,
		var(--flaeche) 0,
		var(--tief) clamp(2rem, 5vw, 4rem),
		var(--tief) calc(100% - clamp(2rem, 5vw, 4rem)),
		var(--flaeche) 100%
	);
}

/* --- Typografie --------------------------------------------------------- */

h1, h2, h3, h4 {
	font-family: var(--font-kopf);
	color: var(--ink);
	line-height: 1.05;
	letter-spacing: -0.022em;
	text-wrap: balance;
	font-weight: 700;
}

h1 { font-size: var(--t-h1); letter-spacing: -0.03em; }
h2 { font-size: var(--t-h2); letter-spacing: -0.026em; }
h3 { font-size: var(--t-h3); line-height: 1.2; letter-spacing: -0.014em; }

p { text-wrap: pretty; }

.kicker {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.4em 0.6em;
	max-width: 100%;
	margin-bottom: 0.9rem;
	color: var(--ink-3);
	font-family: var(--font-kopf);
	font-size: var(--t-kicker);
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	line-height: 1.4;
}
.kicker::before {
	content: "";
	flex: none;
	width: 26px;
	height: 2px;
	background: var(--orange);
}

@media (min-width: 640px) {
	.kicker { letter-spacing: 0.19em; }
}

.lede {
	max-width: 62ch;
	color: var(--ink-2);
	font-size: var(--t-lede);
	line-height: 1.58;
}

.sektion__kopf {
	max-width: 46rem;
	margin-inline: auto;
	margin-bottom: clamp(2.2rem, 4.5vw, 3.4rem);
	text-align: center;
}
.sektion__kopf .lede { margin-inline: auto; margin-top: 1rem; }
.sektion__kopf--links {
	margin-inline: 0;
	text-align: left;
}
.sektion__kopf--links .lede { margin-inline: 0; }

/* --- Bausteine ---------------------------------------------------------- */

.karte {
	padding: clamp(1.3rem, 2.6vw, 1.9rem);
	background: var(--karte);
	border: 1px solid var(--linie);
	border-radius: var(--radius);
}

.haken {
	margin-top: 1.1rem;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.5rem;
	font-size: var(--t-klein);
	color: var(--ink-3);
}
.haken li {
	position: relative;
	padding-left: 1.35rem;
}
.haken li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.58em;
	width: 7px;
	height: 7px;
	background: var(--orange);
	clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* --- Buttons ------------------------------------------------------------ */

.cta-paar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	margin-top: 1.9rem;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	min-height: 52px;
	padding: 0.85rem 1.5rem;
	border: 1px solid transparent;
	border-radius: var(--radius);
	font-family: var(--font-kopf);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: -0.008em;
	text-decoration: none;
	cursor: pointer;
	transition:
		background-color var(--dauer) var(--kurve),
		border-color var(--dauer) var(--kurve),
		translate var(--dauer) var(--kurve);
}

.btn__icon, .kopf__tel svg, .rufleiste__btn svg {
	width: 19px;
	height: 19px;
	fill: currentColor;
	flex: none;
}

.btn--primaer {
	background: var(--orange);
	color: var(--auf-orange);
}
.btn--primaer:hover {
	background: var(--orange-hell);
	translate: 0 -2px;
}

.btn--sekundaer {
	background: transparent;
	color: var(--ink);
	border-color: var(--linie-2);
}
.btn--sekundaer:hover {
	border-color: var(--orange);
	background: color-mix(in oklab, var(--orange) 12%, transparent);
	translate: 0 -2px;
}

/* WhatsApp bleibt bewusst zurueckhaltend: gleiche Form wie der
 * Sekundaer-Button, das Gruen nur im Rand und im Glyph. Ein knallgruener
 * Block neben dem Orange waere ein zweiter Primaerbutton, und die Seite
 * hat schon einen. */
.btn--whatsapp {
	background: transparent;
	color: var(--ink);
	border-color: color-mix(in oklab, var(--wa) 45%, transparent);
}
.btn--whatsapp .btn__icon { fill: var(--wa); }
.btn--whatsapp:hover {
	border-color: var(--wa);
	background: color-mix(in oklab, var(--wa) 12%, transparent);
	translate: 0 -2px;
}

.cta-paar--hell .btn--sekundaer { border-color: color-mix(in oklab, var(--ink) 34%, transparent); }

/* --- Prosa (Impressum, Datenschutz) ------------------------------------- */

.prosa { max-width: 68ch; }
.prosa > * + * { margin-top: 1.05em; }
.prosa h2 { margin-top: 2.4em; font-size: 1.55rem; }
.prosa h3 { margin-top: 1.8em; }
.prosa ul, .prosa ol { padding-left: 1.3em; display: grid; gap: 0.4em; }
.prosa a { color: var(--orange-hell); text-underline-offset: 3px; }
.prosa strong { color: var(--ink); }

.textseite__kopf { margin-bottom: 2.6rem; }
.textseite__zurueck {
	margin-top: 3rem;
	padding-top: 1.4rem;
	border-top: 1px solid var(--linie);
	font-size: var(--t-klein);
}
.textseite__zurueck a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--orange-hell);
}

/* --- Offene Stellen in Rechtstexten ------------------------------------- */

.luecken-warnung {
	margin-bottom: 2rem;
	padding: 0.95rem 1.15rem;
	background: color-mix(in oklab, #C0392B 22%, var(--karte));
	border: 1px solid color-mix(in oklab, #E05C4A 55%, transparent);
	border-radius: var(--radius);
	font-size: var(--t-klein);
	color: var(--ink);
}
.luecken-warnung code { color: var(--ink-2); }

.luecke {
	display: inline-block;
	padding: 0.1em 0.5em;
	background: color-mix(in oklab, #C0392B 34%, transparent);
	border: 1px dashed #E05C4A;
	border-radius: 3px;
	color: #FFD6CF;
	font-family: var(--font-kopf);
	font-size: 0.82em;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
