/*
 * wunderweb.de — Gestaltung
 *
 * Handgeschrieben, ohne Framework. Aufbau der Datei:
 *   1. Farben, Masse, Schrift (Custom Properties)
 *   2. Grundlagen und Reset
 *   3. Bausteine (Buttons, Karten, Formular)
 *   4. Seitenbereiche (Kopf, Hero, Leistungen, Team, Kontakt, Fuss)
 *   5. Fliesstext der Rechtstexte
 *   6. Bewegung und Druck
 *
 * Die Markenfarben stammen aus dem alten Skin: Orange #e47911, Anthrazit
 * #2e353e, dazu Violett und Blau als Zweitfarben.
 */

/* ------------------------------------------------------------------ */
/* 1. Farben, Masse, Schrift                                          */
/* ------------------------------------------------------------------ */

:root {
	/* Marke */
	--orange: #e47911;
	--orange-dark: #cc6c0f;
	--orange-deep: #9d530c;
	--orange-soft: #fdf1e3;

	/* Getrennt vom Marken-Orange, weil #e47911 als Text oder Schaltflaechen-
	   hintergrund die 4,5:1 aus WCAG 1.4.3 nicht schafft. Beides sind Toene
	   aus der Markenpalette. */
	--accent-text: #9d530c;
	--btn-bg: #b5600d;
	--btn-bg-hover: #9d530c;
	--violet: #874bc4;
	--blue: #466cb8;

	/* Flaechen und Text */
	--bg: #ffffff;
	--bg-alt: #f6f7f9;
	--bg-sunken: #eef0f3;
	--bg-invert: #23282f;
	--bg-invert-alt: #2e353e;
	--text: #2e353e;
	--text-strong: #171b21;
	--text-muted: #5f6874;
	--text-invert: #eef0f3;
	--text-invert-muted: #a8b1bd;
	--border: #e2e6ea;
	--border-strong: #cdd4dc;

	/* Schrift */
	--font: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
	--font-hand: 'Shadows Into Light', 'Segoe Script', cursive;

	--step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
	--step-0: clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
	--step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.45rem);
	--step-2: clamp(1.45rem, 1.3rem + 0.75vw, 1.95rem);
	--step-3: clamp(1.75rem, 1.5rem + 1.25vw, 2.6rem);
	--step-4: clamp(2.1rem, 1.65rem + 2.2vw, 3.6rem);

	/* Masse */
	--container: 1180px;
	--container-narrow: 760px;
	--gap: clamp(1.25rem, 0.9rem + 1.4vw, 2rem);
	--section-y: clamp(3.5rem, 2rem + 6vw, 7rem);
	--radius: 14px;
	--radius-sm: 8px;

	--shadow: 0 1px 2px rgba(35, 40, 47, 0.04), 0 8px 24px -12px rgba(35, 40, 47, 0.18);
	--shadow-lg: 0 2px 4px rgba(35, 40, 47, 0.05), 0 24px 48px -20px rgba(35, 40, 47, 0.28);

	--ring: 0 0 0 3px rgba(228, 121, 17, 0.35);
	color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
	:root {
		--orange: #f2882a;
		--orange-dark: #e47911;
		--orange-soft: #2a2119;
		--accent-text: #f2882a;
		--bg: #171b21;
		--bg-alt: #1d232b;
		--bg-sunken: #232a33;
		--bg-invert: #0f1318;
		--bg-invert-alt: #1d232b;
		--text: #dfe4ea;
		--text-strong: #f4f6f8;
		--text-muted: #9aa4b1;
		--border: #2c3540;
		--border-strong: #3c4757;

		--shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -12px rgba(0, 0, 0, 0.6);
		--shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.4), 0 24px 48px -20px rgba(0, 0, 0, 0.7);
	}
}

/* ------------------------------------------------------------------ */
/* 2. Grundlagen                                                      */
/* ------------------------------------------------------------------ */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 5.5rem;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: var(--step-0);
	font-weight: 400;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
	margin: 0 0 0.6em;
	color: var(--text-strong);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
h4 { font-size: var(--step-0); }

p {
	margin: 0 0 1.1em;
	text-wrap: pretty;
}

a {
	color: var(--accent-text);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover {
	text-decoration-thickness: 2px;
}

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

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

hr {
	height: 1px;
	margin: var(--gap) 0;
	border: 0;
	background: var(--border);
}

strong { font-weight: 700; }

::selection {
	background: var(--orange);
	color: #fff;
}

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: clamp(1.1rem, 4vw, 2rem);
}

.container--narrow { max-width: var(--container-narrow); }

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

.section--alt { background: var(--bg-alt); }

.section--invert {
	background: var(--bg-invert);
	color: var(--text-invert);
}

.section--invert h2,
.section--invert h3 { color: #fff; }

.section-head {
	max-width: 44rem;
	margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem);
}

.section-head--center {
	margin-inline: auto;
	text-align: center;
}

.eyebrow {
	display: block;
	margin-bottom: 0.7rem;
	color: var(--accent-text);
	font-size: var(--step--1);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.section--invert .eyebrow { color: var(--orange); }

.lead {
	font-size: var(--step-1);
	font-weight: 300;
	line-height: 1.55;
	color: var(--text-muted);
}

.section--invert .lead { color: var(--text-invert-muted); }

.hand {
	font-family: var(--font-hand);
	font-size: 1.25em;
	font-weight: 400;
	line-height: 1;
	color: var(--orange-dark);
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	padding: 0.75rem 1.25rem;
	background: var(--btn-bg);
	color: #fff;
	font-weight: 700;
}

.skip-link:focus {
	left: 0;
}

/* ------------------------------------------------------------------ */
/* 3. Bausteine                                                       */
/* ------------------------------------------------------------------ */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.55em;
	padding: 0.85em 1.6em;
	border: 1px solid transparent;
	border-radius: var(--radius-sm);
	font-family: inherit;
	font-size: var(--step-0);
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.18s, border-color 0.18s, color 0.18s, transform 0.18s;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
	background: var(--btn-bg);
	color: #fff;
}

.btn--primary:hover {
	background: var(--btn-bg-hover);
	color: #fff;
}

.btn--outline {
	border-color: var(--border-strong);
	background: transparent;
	color: var(--text-strong);
}

.btn--outline:hover {
	border-color: var(--orange);
	color: var(--accent-text);
}

.section--invert .btn--outline,
.hero .btn--outline,
.cta .btn--outline {
	border-color: rgba(255, 255, 255, 0.3);
	color: #fff;
}

.section--invert .btn--outline:hover,
.hero .btn--outline:hover,
.cta .btn--outline:hover {
	border-color: var(--orange);
	color: var(--orange);
}

.btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	margin-top: 2rem;
}

.grid {
	display: grid;
	gap: var(--gap);
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }

.card {
	display: flex;
	flex-direction: column;
	padding: clamp(1.4rem, 1rem + 1.2vw, 2rem);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg);
	color: inherit;
	text-decoration: none;
	transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

a.card:hover {
	border-color: var(--orange);
	transform: translateY(-3px);
	box-shadow: var(--shadow);
	color: inherit;
}

.card h3 {
	margin-bottom: 0.4em;
}

.card p {
	margin-bottom: 0;
	color: var(--text-muted);
	font-size: var(--step--1);
	line-height: 1.6;
}

.card__icon {
	display: grid;
	place-items: center;
	width: 2.9rem;
	height: 2.9rem;
	margin-bottom: 1.1rem;
	border-radius: 10px;
	background: var(--orange-soft);
	color: var(--accent-text);
}

.card__icon svg {
	width: 1.5rem;
	height: 1.5rem;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.card__more {
	margin-top: 1.2rem;
	color: var(--accent-text);
	font-size: var(--step--1);
	font-weight: 700;
}

a.card:hover .card__more { color: var(--accent-text); }

.card__more::after {
	content: ' \2192';
}

/* Aufzaehlung mit Haken */
.ticks {
	margin: 0 0 1.5rem;
	padding: 0;
	list-style: none;
}

.ticks li {
	position: relative;
	margin-bottom: 0.7rem;
	padding-left: 1.9rem;
}

.ticks li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.42em;
	width: 1.05rem;
	height: 0.6rem;
	border-left: 2.5px solid var(--accent-text);
	border-bottom: 2.5px solid var(--accent-text);
	transform: rotate(-45deg);
}

/* Nummerierte Schritte */
.steps {
	counter-reset: step;
	display: grid;
	gap: var(--gap);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

.steps li {
	counter-increment: step;
	padding-top: 1.2rem;
	border-top: 3px solid var(--border);
}

.steps li::before {
	content: counter(step, decimal-leading-zero);
	display: block;
	margin-bottom: 0.5rem;
	color: var(--orange);
	font-size: var(--step-1);
	font-weight: 800;
	letter-spacing: -0.03em;
}

.steps h3 {
	font-size: var(--step-0);
	margin-bottom: 0.35em;
}

.steps p {
	margin-bottom: 0;
	color: var(--text-muted);
	font-size: var(--step--1);
}

.section--invert .steps li { border-top-color: rgba(255, 255, 255, 0.18); }
.section--invert .steps p { color: var(--text-invert-muted); }

/* ------------------------------------------------------------------ */
/* 4. Seitenbereiche                                                  */
/* ------------------------------------------------------------------ */

/* Kopfzeile */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--bg) 85%, transparent);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.site-header[data-scrolled='true'] {
	border-bottom-color: var(--border);
	box-shadow: var(--shadow);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 4.5rem;
}

.site-logo {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
}

/* Das Logo ist eine SVG-Datei mit eigener Medienabfrage: sie stellt sich im
   dunklen Systemthema selbst auf helle Schrift um. */
.site-logo img {
	display: block;
	width: 158px;
	height: 24px;
}

.nav-toggle {
	display: none;
	align-items: center;
	gap: 0.5rem;
	padding: 0.6rem 0.9rem;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-sm);
	background: transparent;
	color: var(--text-strong);
	font: inherit;
	font-size: var(--step--1);
	font-weight: 700;
	cursor: pointer;
}

.nav-toggle svg {
	width: 1.1rem;
	height: 1.1rem;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
}

.site-nav ul {
	display: flex;
	align-items: center;
	gap: clamp(0.4rem, 1.4vw, 1.4rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav a {
	display: inline-block;
	padding: 0.5rem 0.35rem;
	color: var(--text);
	font-size: var(--step--1);
	font-weight: 600;
	text-decoration: none;
	border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
	color: var(--accent-text);
	border-bottom-color: var(--orange);
}

.site-nav .btn {
	padding: 0.6em 1.2em;
	font-size: var(--step--1);
	color: #fff;
	border-bottom: 0;
}

.site-nav .btn:hover { color: #fff; }

@media (max-width: 60rem) {
	.nav-toggle { display: inline-flex; }

	.site-nav {
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		display: none;
		padding: 0.75rem clamp(1.1rem, 4vw, 2rem) 1.5rem;
		background: var(--bg);
		border-bottom: 1px solid var(--border);
		box-shadow: var(--shadow);
	}

	.site-nav[data-open='true'] { display: block; }

	.site-nav ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.site-nav li + li { border-top: 1px solid var(--border); }

	.site-nav a {
		padding: 0.85rem 0;
		font-size: var(--step-0);
		border-bottom: 0;
	}

	.site-nav .btn {
		margin-top: 0.9rem;
		justify-content: center;
		padding: 0.85em 1.6em;
		font-size: var(--step-0);
	}
}

/* Hero */
.hero {
	position: relative;
	overflow: hidden;
	background: var(--bg-invert);
	color: var(--text-invert);
	padding-block: clamp(4rem, 2rem + 9vw, 8.5rem);
}

.hero::before,
.hero::after {
	content: '';
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
}

.hero::before {
	width: 42rem;
	height: 42rem;
	right: -14rem;
	top: -18rem;
	background: radial-gradient(circle, rgba(228, 121, 17, 0.28), transparent 62%);
}

.hero::after {
	width: 34rem;
	height: 34rem;
	left: -16rem;
	bottom: -20rem;
	background: radial-gradient(circle, rgba(70, 108, 184, 0.22), transparent 62%);
}

.hero .container {
	position: relative;
	z-index: 1;
}

.hero__inner {
	max-width: 46rem;
}

.hero h1 {
	color: #fff;
	margin-bottom: 0.5em;
}

.hero h1 .accent { color: var(--orange); }

.hero__lead {
	font-size: var(--step-1);
	font-weight: 300;
	line-height: 1.55;
	color: var(--text-invert-muted);
	max-width: 38rem;
}

.hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem 1.75rem;
	margin-top: 2.75rem;
	padding-top: 1.75rem;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	color: var(--text-invert-muted);
	font-size: var(--step--1);
}

.hero__meta span {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.hero__meta span::before {
	content: '';
	width: 0.4rem;
	height: 0.4rem;
	border-radius: 50%;
	background: var(--orange);
}

/* Kopf der Unterseiten */
.page-hero {
	padding-block: clamp(2.75rem, 1.5rem + 5vw, 5rem);
	background: var(--bg-alt);
	border-bottom: 1px solid var(--border);
}

.page-hero .lead { margin-bottom: 0; }

.breadcrumb {
	margin-bottom: 1.1rem;
	color: var(--text-muted);
	font-size: var(--step--1);
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent-text); }

.breadcrumb span[aria-hidden] { padding-inline: 0.45rem; }

/* Zwei Spalten Text/Beiwerk */
.split {
	display: grid;
	gap: clamp(2rem, 1rem + 4vw, 4.5rem);
	align-items: start;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}

/* Team */
.team-grid {
	display: grid;
	gap: var(--gap);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}

.person {
	display: flex;
	gap: 1.35rem;
	align-items: flex-start;
	padding: clamp(1.4rem, 1rem + 1.2vw, 2rem);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

.person img {
	flex-shrink: 0;
	width: 88px;
	height: 88px;
	border-radius: 50%;
	object-fit: cover;
}

.person h3 {
	margin-bottom: 0.15em;
	font-size: var(--step-0);
}

.person__role {
	display: block;
	margin-bottom: 0.8rem;
	color: var(--accent-text);
	font-size: var(--step--1);
	font-weight: 700;
}

.person p {
	margin-bottom: 0;
	color: var(--text-muted);
	font-size: var(--step--1);
}

/* Kontakt */
.contact-grid {
	display: grid;
	gap: clamp(2rem, 1rem + 4vw, 4rem);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
	align-items: start;
}

.field {
	margin-bottom: 1.15rem;
}

.field label {
	display: block;
	margin-bottom: 0.4rem;
	font-size: var(--step--1);
	font-weight: 700;
	color: var(--text-strong);
}

.field input,
.field textarea {
	width: 100%;
	padding: 0.8rem 0.95rem;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-sm);
	background: var(--bg);
	color: var(--text);
	font-family: inherit;
	font-size: var(--step-0);
	line-height: 1.5;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.field input:focus,
.field textarea:focus {
	outline: 0;
	border-color: var(--orange);
	box-shadow: var(--ring);
}

.field textarea {
	min-height: 11rem;
	resize: vertical;
}

.field--pair {
	display: grid;
	gap: 0 1rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}

.field__error {
	display: block;
	margin-top: 0.35rem;
	color: #c0392b;
	font-size: var(--step--1);
	font-weight: 600;
}

@media (prefers-color-scheme: dark) {
	.field__error { color: #ff8a7a; }
}

.field input[aria-invalid='true'],
.field textarea[aria-invalid='true'] {
	border-color: #c0392b;
}

.form-note {
	margin-top: 1rem;
	color: var(--text-muted);
	font-size: var(--step--1);
}

/* Honigtopf: fuer Menschen unsichtbar, fuer Bots ein normales Feld.
   Kein display:none, das ueberspringen viele Bots. */
.hp-field {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.alert {
	margin-bottom: 1.5rem;
	padding: 1rem 1.15rem;
	border: 1px solid;
	border-radius: var(--radius-sm);
	font-size: var(--step--1);
}

.alert[hidden] { display: none; }

.alert--ok {
	border-color: #7cc08a;
	background: #eef8f0;
	color: #24603a;
}

.alert--error {
	border-color: #e2a49c;
	background: #fdf0ee;
	color: #8c2f22;
}

@media (prefers-color-scheme: dark) {
	.alert--ok { background: #14261a; color: #9fdcae; }
	.alert--error { background: #2a1714; color: #ffab9d; }
}

.contact-facts {
	margin: 0;
	padding: 0;
	list-style: none;
}

.contact-facts li {
	display: flex;
	gap: 0.9rem;
	padding-block: 0.9rem;
	border-bottom: 1px solid var(--border);
}

.contact-facts li:first-child { padding-top: 0; }

.contact-facts svg {
	flex-shrink: 0;
	width: 1.25rem;
	height: 1.25rem;
	margin-top: 0.2rem;
	stroke: var(--accent-text);
	fill: none;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.contact-facts strong {
	display: block;
	color: var(--text-strong);
}

.contact-facts span {
	color: var(--text-muted);
	font-size: var(--step--1);
}

/* Handlungsaufforderung */
.cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--gap);
	padding: clamp(1.75rem, 1rem + 3vw, 3rem);
	border-radius: var(--radius);
	background: var(--bg-invert-alt);
	color: var(--text-invert);
}

.cta h2 {
	margin-bottom: 0.3em;
	color: #fff;
	font-size: var(--step-2);
}

.cta p {
	margin-bottom: 0;
	color: var(--text-invert-muted);
	max-width: 34rem;
}

.cta .btn-row { margin-top: 0; }

/* Fusszeile */
.site-footer {
	padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem) 1.5rem;
	background: var(--bg-invert);
	color: var(--text-invert-muted);
	font-size: var(--step--1);
}

.site-footer h3 {
	margin-bottom: 0.9rem;
	color: #fff;
	font-size: var(--step--1);
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.site-footer a {
	color: var(--text-invert-muted);
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--orange);
	text-decoration: underline;
}

.footer-grid {
	display: grid;
	gap: var(--gap);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
	padding-bottom: 2rem;
}

.site-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer li { margin-bottom: 0.5rem; }

.site-footer__logo img {
	width: 158px;
	height: 24px;
	margin-bottom: 1rem;
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem 1.5rem;
	justify-content: space-between;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom ul {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
}

.footer-bottom li { margin-bottom: 0; }

/* ------------------------------------------------------------------ */
/* 5. Fliesstext (Impressum, Datenschutz)                             */
/* ------------------------------------------------------------------ */

.prose {
	max-width: 46rem;
}

.prose h2 {
	margin-top: 2.5em;
	font-size: var(--step-2);
}

.prose h2:first-child { margin-top: 0; }

.prose h3 {
	margin-top: 2em;
	font-size: var(--step-1);
}

.prose ul {
	margin: 0 0 1.3em;
	padding-left: 1.3em;
}

.prose li { margin-bottom: 0.5em; }

.prose address {
	margin-bottom: 1.3em;
	font-style: normal;
}

/* ------------------------------------------------------------------ */
/* 6. Bewegung und Druck                                              */
/* ------------------------------------------------------------------ */

/* Nur einblenden, wenn JavaScript laeuft. Ohne die .js-Klasse bleibt der
   Inhalt sichtbar — sonst waere die Seite bei einem JS-Fehler leer. */
.js .reveal {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.js .reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}

	.js .reveal {
		opacity: 1;
		transform: none;
	}
}

@media print {
	.site-header,
	.site-footer,
	.cta,
	.nav-toggle { display: none; }

	body { color: #000; background: #fff; }
}

/* ------------------------------------------------------------------ */
/* 7. Webseiten-Check                                                 */
/* ------------------------------------------------------------------ */

:root {
	--ok: #1c6b3a;
	--ok-flaeche: #eaf6ee;
	--warn: #8a4f00;
	--warn-flaeche: #fdf3e3;
	--bad: #a92019;
	--bad-flaeche: #fdefee;
}

@media (prefers-color-scheme: dark) {
	:root {
		--ok: #7bd79a;
		--ok-flaeche: #14261a;
		--warn: #f2ac52;
		--warn-flaeche: #2a2013;
		--bad: #ff9184;
		--bad-flaeche: #2b1613;
	}
}

.check-form {
	max-width: 40rem;
	padding: clamp(1.4rem, 1rem + 1.5vw, 2.25rem);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg);
	box-shadow: var(--shadow);
}

.check-form .field:last-of-type { margin-bottom: 0.5rem; }

.zustimmung {
	display: flex;
	gap: 0.7rem;
	align-items: flex-start;
	margin: 1.25rem 0;
	font-size: var(--step--1);
	line-height: 1.5;
}

.zustimmung input {
	flex-shrink: 0;
	width: 1.15rem;
	height: 1.15rem;
	margin-top: 0.15rem;
	accent-color: var(--btn-bg);
}

.bot-hinweis {
	margin-top: 1.25rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--border);
	color: var(--text-muted);
	font-size: var(--step--1);
}

/* Fortschritt */
.fortschritt {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	margin-top: 1.5rem;
	color: var(--text-muted);
	font-size: var(--step--1);
}

.fortschritt[hidden] { display: none; }

.kreisel {
	width: 1.4rem;
	height: 1.4rem;
	border: 2.5px solid var(--border-strong);
	border-top-color: var(--btn-bg);
	border-radius: 50%;
	animation: dreh 0.8s linear infinite;
}

@keyframes dreh { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
	.kreisel { animation-duration: 2.4s; }
}

/* Gesamtergebnis */
.ergebnis[hidden] { display: none; }

.punktestand {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: clamp(1.25rem, 1rem + 2vw, 2.5rem);
	padding: clamp(1.4rem, 1rem + 1.5vw, 2.25rem);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg-alt);
}

.punktezahl {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 7rem;
	height: 7rem;
	border-radius: 50%;
	border: 5px solid currentColor;
	font-size: 2.2rem;
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1;
}

.punktezahl span {
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0;
	opacity: 0.75;
}

.punktestand h3 { margin-bottom: 0.35em; }
.punktestand p { margin-bottom: 0; color: var(--text-muted); }
.punktestand .geprueft {
	margin-top: 0.6rem;
	font-size: var(--step--1);
	word-break: break-all;
}

.ampel-gut { color: var(--ok); }
.ampel-hinweis { color: var(--warn); }
.ampel-problem { color: var(--bad); }

/* Kategorien */
.kategorie {
	margin-top: var(--gap);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
}

.kategorie__kopf {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1rem;
	padding: 1rem clamp(1rem, 0.8rem + 1vw, 1.5rem);
	background: var(--bg-alt);
	border-bottom: 1px solid var(--border);
}

.kategorie__kopf h3 {
	margin: 0;
	font-size: var(--step-0);
}

.kategorie__wert {
	font-weight: 800;
	font-size: var(--step-0);
}

.balken {
	width: 100%;
	height: 6px;
	border-radius: 3px;
	background: var(--bg-sunken);
	overflow: hidden;
}

.balken i {
	display: block;
	height: 100%;
	background: currentColor;
}

.befunde {
	margin: 0;
	padding: 0;
	list-style: none;
}

.befund {
	display: flex;
	gap: 0.9rem;
	padding: 1rem clamp(1rem, 0.8rem + 1vw, 1.5rem);
}

.befund + .befund { border-top: 1px solid var(--border); }

.befund__marke {
	flex-shrink: 0;
	display: grid;
	place-items: center;
	width: 1.6rem;
	height: 1.6rem;
	margin-top: 0.1rem;
	border-radius: 50%;
	font-size: 0.85rem;
	font-weight: 800;
	line-height: 1;
}

.befund--gut .befund__marke { background: var(--ok-flaeche); color: var(--ok); }
.befund--hinweis .befund__marke { background: var(--warn-flaeche); color: var(--warn); }
.befund--problem .befund__marke { background: var(--bad-flaeche); color: var(--bad); }
.befund--info .befund__marke { background: var(--bg-sunken); color: var(--text-muted); }

.befund h4 {
	margin-bottom: 0.2em;
	font-size: var(--step-0);
}

.befund p {
	margin-bottom: 0;
	font-size: var(--step--1);
}

.befund__rat {
	margin-top: 0.45rem !important;
	color: var(--text-muted);
}

/* Bericht anfordern */
.bericht-box {
	margin-top: var(--gap);
	padding: clamp(1.4rem, 1rem + 1.5vw, 2.25rem);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--orange-soft);
}

.bericht-box h3 { margin-bottom: 0.4em; }

pre {
	margin: 0 0 1.3em;
	padding: 1rem 1.15rem;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--bg-alt);
	overflow-x: auto;
	font-size: var(--step--1);
	line-height: 1.5;
}

code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Grosser Abstand vor der Liste weiterer Leistungen. Steht hier statt als
   style-Attribut im Markup, damit eine strenge CSP ohne 'unsafe-inline'
   fuer Stile auskommt. */
.section-head--weiter {
	margin-top: var(--section-y);
	margin-bottom: 1.5rem;
}
