/* ------------------------------------------------------------------
   zuechter-pruefen.qualzuchtpraevention.com
   Farbwelt aus den Bildern: Salbeigrün, Warmweiß, Leinen, helles Holz.
   Akzent ist ein sattes Waldgrün — Grün in Grün statt Komplementaerton.
   Aufbau: drei gestaffelte Vollbildkapitel, je eine Frage.
   ------------------------------------------------------------------ */

:root
{
	--salbei:   #cfd9c9;
	--salbei-t: #b7c6b2;
	--warm:     #f8f6f1;
	--leinen:   #e9e3d7;
	--wald:     #3f5c46;
	--wald-h:   #6b8a70;
	--tief:     #232a24;
	--nuss:     #7d6a4f;
	--text:     #2f3730;
	--leise:    #6a7568;

	--bahn: 72rem;
	--serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

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

html { -webkit-text-size-adjust: 100%; }
html, body { max-width: 100%; overflow-x: clip; }

body
{
	margin: 0;
	background: var(--warm);
	color: var(--text);
	font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
	font-size: clamp(1rem, .95rem + .3vw, 1.12rem);
	line-height: 1.72;
	font-weight: 390;
	-webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1.2em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 640; }

.bahn { width: min(100% - 2.4rem, var(--bahn)); margin-inline: auto; }
.schmal { max-width: 39rem; }

section { padding-block: clamp(3.4rem, 7vw, 6.5rem); }

h1
{
	margin: 0 0 1.4rem;
	font-family: var(--serif);
	font-weight: 400;
	font-size: clamp(2rem, 1.1rem + 3.9vw, 4.2rem);
	line-height: 1.08;
	letter-spacing: -.015em;
	max-width: 17ch;
}

h1 em { font-style: italic; color: var(--wald); }

.marke
{
	margin: 0 0 1rem;
	font-size: .68rem;
	font-weight: 640;
	letter-spacing: .26em;
	text-transform: uppercase;
	color: var(--wald);
}

.marke--hell { color: var(--wald-h); }

.gross
{
	font-size: clamp(1.1rem, 1rem + .6vw, 1.42rem);
	line-height: 1.55;
	max-width: 38ch;
	color: var(--leise);
}

/* ==================== Kopf ===================================== */

.kopf { padding-block: clamp(3rem, 6vw, 5rem) 0; }

.kopf figure { margin: clamp(2.4rem, 5vw, 4rem) 0 0; }

.kopf figcaption
{
	margin-top: .85rem;
	font-size: .84rem;
	color: var(--leise);
	max-width: 54ch;
}

/* ============ Der Einwand: die üblichen Ratschläge ============= */

.einwand { background: var(--leinen); }

.liste
{
	list-style: none;
	margin: clamp(2rem, 4vw, 2.8rem) 0 0;
	padding: 0;
	display: grid;
	gap: .1rem;
	max-width: 46rem;
}

.liste li
{
	display: grid;
	grid-template-columns: 1.4rem 1fr;
	gap: .9rem;
	align-items: baseline;
	padding: .85rem 0;
	border-bottom: 1px solid rgba(47,55,48,.14);
	font-size: 1.02rem;
}

.liste li::before
{
	content: "✓";
	color: var(--wald-h);
	font-size: .95rem;
}

/* Die zwei Beispiele, die zeigen, dass die Ratgeberzeichen
   in beide Richtungen deutbar sind */
.doppel
{
	margin-top: clamp(2rem, 4vw, 2.8rem);
	display: grid;
	gap: clamp(1.4rem, 3vw, 2.4rem);
	max-width: 52rem;
}

@media (min-width: 44rem)
{
	.doppel { grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); }
}

.doppel > div
{
	min-width: 0;
	padding-left: clamp(1rem, 2vw, 1.4rem);
	border-left: 2px solid var(--wald-h);
}

.doppel b
{
	display: block;
	margin-bottom: .4rem;
	font-family: var(--serif);
	font-size: 1.08rem;
	font-weight: 400;
	color: var(--wald);
}

.doppel p
{
	margin: 0;
	font-size: .98rem;
	line-height: 1.6;
	color: var(--leise);
}

.folgerung
{
	margin-top: clamp(2rem, 4vw, 2.8rem);
	padding-top: 1.3rem;
	border-top: 3px solid var(--tief);
	font-family: var(--serif);
	font-size: clamp(1.15rem, 1.02rem + .85vw, 1.65rem);
	line-height: 1.36;
	max-width: 36rem;
}

/* ============ Die drei Kapitel — je eine Frage ================= */

.kapitel { position: relative; padding-block: 0; }

.kapitel__text { padding-block: clamp(2.6rem, 5.5vw, 4.5rem); }

/* Die Frage gross in Serif, die Antwort klein darunter in Grotesk */
.frage
{
	margin: 0 0 1.5rem;
	font-family: var(--serif);
	font-weight: 400;
	font-size: clamp(1.5rem, 1.05rem + 2.1vw, 2.75rem);
	line-height: 1.16;
	letter-spacing: -.012em;
	max-width: 22ch;
	color: var(--tief);
}

.nummer
{
	display: block;
	font-family: var(--serif);
	font-style: italic;
	font-size: 1.05rem;
	color: var(--wald-h);
	margin-bottom: .5rem;
}

.kapitel--gruen { background: var(--salbei); }
.kapitel--dunkel { background: var(--tief); color: #dfe6dc; }
.kapitel--dunkel .frage { color: #fff; }
.kapitel--dunkel .nummer { color: var(--wald-h); }
.kapitel--dunkel strong { color: #fff; }

.wortlaut
{
	margin-top: 1.6rem;
	padding-left: 1.2rem;
	border-left: 3px solid var(--wald);
	font-size: .95rem;
	color: var(--leise);
	max-width: 40rem;
}

.kapitel--dunkel .wortlaut { color: rgba(223,230,220,.72); border-left-color: var(--wald-h); }

/* ==================== Was hier nicht steht ==================== */

.weiter
{
	display: grid;
	gap: 1.2rem;
	grid-template-columns: 1fr;
	margin-top: clamp(2rem, 4vw, 2.8rem);
}

@media (min-width: 46rem) { .weiter { grid-template-columns: repeat(3, 1fr); } }

.weiter a
{
	display: block;
	padding: 1.3rem 1.4rem;
	background: var(--warm);
	border: 1px solid rgba(47,55,48,.16);
	text-decoration: none;
	transition: border-color .2s ease, transform .2s ease;
}

.weiter a:hover, .weiter a:focus-visible { border-color: var(--wald); transform: translateY(-2px); }

.weiter b { display: block; font-weight: 640; margin-bottom: .3rem; }
.weiter span { font-size: .92rem; color: var(--leise); }

/* ==================== ZEUS ==================================== */

.zeus { background: var(--salbei-t); }

/* Das Siegel steht rechts neben dem Ablauf */
.zeus__raster
{
	display: grid;
	gap: clamp(2rem, 5vw, 3.6rem);
	align-items: start;
}

@media (min-width: 56rem)
{
	.zeus__raster { grid-template-columns: 1fr 14rem; }
}

.zeus__text { min-width: 0; }

.zeus__siegel
{
	margin: 0;
	min-width: 0;
	max-width: 14rem;
}

.zeus__siegel img { width: 100%; }

.zeus__siegel figcaption
{
	margin-top: .8rem;
	font-size: .85rem;
	line-height: 1.5;
	color: var(--text);
}

.schritte
{
	list-style: none;
	counter-reset: s;
	margin: clamp(2rem, 4vw, 2.8rem) 0 0;
	padding: 0;
	display: grid;
	gap: 1.15rem;
	max-width: 50rem;
}

.schritte li
{
	counter-increment: s;
	display: grid;
	grid-template-columns: 2.1rem 1fr;
	gap: .9rem;
	align-items: start;
}

.schritte li::before
{
	content: counter(s);
	font-family: var(--serif);
	font-style: italic;
	font-size: 1.1rem;
	color: var(--wald);
}

.knopf
{
	display: inline-block;
	margin-top: clamp(1.8rem, 3.5vw, 2.5rem);
	padding: .95em 2.1em;
	background: var(--wald);
	color: #fff;
	text-decoration: none;
	font-weight: 560;
	letter-spacing: .02em;
	transition: background .25s ease;
}

.knopf:hover, .knopf:focus-visible { background: var(--tief); }

/* ============ Querlinks: Leinenband mit Serif-Ziffern ========== */

.themen { background: var(--leinen); }
.themen:not(:has(a)) { display: none; }

.themen h2
{
	margin: 0 0 1.6rem;
	font-family: var(--serif);
	font-weight: 400;
	font-size: clamp(1.3rem, 1.1rem + 1vw, 1.8rem);
}

.themenliste
{
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: q;
	column-gap: 3rem;
}

@media (min-width: 50rem) { .themenliste { columns: 2; } }

.themenliste li { break-inside: avoid; }
.themenliste li:not([hidden]) { counter-increment: q; }
.themenliste li[hidden] { display: none; }

.themenliste a
{
	display: grid;
	grid-template-columns: 2rem 1fr;
	gap: .6rem;
	align-items: baseline;
	padding: .7rem 0;
	text-decoration: none;
	font-size: .95rem;
	border-bottom: 1px solid rgba(47,55,48,.13);
	transition: color .2s ease;
}

.themenliste a::before
{
	content: counter(q, decimal-leading-zero);
	font-family: var(--serif);
	font-style: italic;
	font-size: .88rem;
	color: var(--wald-h);
}

.themenliste a:hover, .themenliste a:focus-visible { color: var(--wald); }

/* ==================== Fuss: schmale Randspalte ================ */

.fuss
{
	background: var(--tief);
	color: rgba(223,230,220,.76);
	padding-block: clamp(2.8rem, 5.5vw, 4rem);
	font-size: .85rem;
	line-height: 1.62;
}

.fuss__raster { display: grid; gap: 1.8rem; grid-template-columns: 1fr; }

@media (min-width: 52rem)
{
	.fuss__raster { grid-template-columns: 13rem 1fr; gap: 2.5rem; }
}

.fuss__marke
{
	font-family: var(--serif);
	font-style: italic;
	font-size: 1.15rem;
	color: var(--wald-h);
}

.fuss__inhalt { display: grid; gap: 1.3rem; }

@media (min-width: 40rem) { .fuss__inhalt { grid-template-columns: repeat(2, 1fr); gap: 1.3rem 2.5rem; } }

.fuss b
{
	display: block;
	color: #fff;
	font-weight: 640;
	font-size: .7rem;
	letter-spacing: .18em;
	text-transform: uppercase;
	margin-bottom: .5rem;
}

.fuss a { color: #dfe6dc; }

/* ==================== Auftritt ================================ */

.steig { opacity: 0; transform: translateY(16px); transition: opacity .75s ease, transform .75s cubic-bezier(.22,.68,.3,1); }
.steig.da { opacity: 1; transform: none; }
.kein-js .steig { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce)
{
	.steig { opacity: 1; transform: none; transition: none; }
}

/* ---------- Weitergeben: zentriert, Satz über einer Symbolreihe ---------- */

.empfehlung
{
	background: var(--salbei);
	padding-block: clamp(2.6rem, 6vw, 4.4rem);
	text-align: center;
}

.empfehlung__satz
{
	margin: 0 auto;
	max-width: 38rem;
	font-family: var(--serif);
	font-size: clamp(1.15rem, 1rem + .8vw, 1.5rem);
	line-height: 1.45;
	color: var(--tief);
}

.empfehlung__reihe
{
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.4rem clamp(1.6rem, 5vw, 3.4rem);
	margin-top: clamp(1.8rem, 4vw, 2.6rem);
}

.empf__el
{
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: .5rem;
	width: 5.5rem;
	padding: .3rem 0;
	border: 0;
	background: none;
	font: inherit;
	font-size: .84rem;
	line-height: 1.35;
	color: var(--text);
	text-decoration: none;
	cursor: pointer;
}

.empf__el[hidden]
{
	display: none;
}

.empf__sym
{
	color: var(--wald);
	transition: transform .3s ease;
}

.empf__el:hover,
.empf__el:focus-visible
{
	color: var(--wald);
}

.empf__el:hover .empf__sym
{
	transform: translateY(-2px);
}

.empf__el:focus-visible
{
	outline: 2px solid var(--wald);
	outline-offset: .3rem;
}

/* ---------- Leiste: links, senkrechte Spur am Rand ---------- */

.teilleiste
{
	display: none;
}

@media (min-width: 96rem)
{
	.teilleiste
	{
		position: fixed;
		left: 0;
		top: 50%;
		transform: translateY(-50%);
		z-index: 5;
		display: flex;
		flex-direction: column;
		gap: .2rem;
		padding: .5rem .4rem;
		background: var(--leinen);
		border-radius: 0 .5rem .5rem 0;
	}

	.teilleiste__el
	{
		display: flex;
		align-items: center;
		justify-content: center;
		width: 2.5rem;
		height: 2.5rem;
		border: 0;
		border-radius: .35rem;
		background: none;
		color: var(--leise);
		cursor: pointer;
		transition: background .3s ease, color .3s ease;
	}

	.teilleiste__el[hidden]
	{
		display: none;
	}

	.teilleiste__el:hover,
	.teilleiste__el:focus-visible,
	.teilleiste__el.ist-kopiert
	{
		background: var(--wald);
		color: #fff;
	}

	.teilleiste__el:focus-visible
	{
		outline: 2px solid var(--wald);
		outline-offset: 2px;
	}
}
