/* ------------------------------------------------------------------
   farbverduennung.qualzuchtpraevention.com
   Farbwelt aus den Bildern: warmes Papier, Umbra, Karamell,
   Kupferorange als Signal. Bewusst warm und hell — die Schwesterseite
   merle-verpaarung.qualzuchtpraevention.com ist nachtblau und kühl.
   Typografie: weit gesperrte Grotesk-Minuskeln als Titel,
   Monospace für alles Genetische.
   ------------------------------------------------------------------ */

:root
{
	--papier:  #f7f3ec;
	--papier2: #efe8dd;
	--karamell:#d9c4a3;
	--umbra:   #2e241c;
	--umbra2:  #453629;
	--kupfer:  #b5612a;
	--kupfer-h:#d4813f;
	--text:    #3a2f26;
	--leise:   #7a6a5b;

	--bahn: 76rem;
	--mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::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(--papier);
	color: var(--text);
	font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
	font-size: clamp(1rem, .95rem + .3vw, 1.13rem);
	line-height: 1.7;
	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: 650; }

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

section { padding-block: clamp(3.6rem, 7.5vw, 7rem); }

/* ---- Titel: weit gesperrte Minuskeln --------------------------- */

h1, h2
{
	margin: 0 0 1.3rem;
	font-weight: 500;
	line-height: 1.14;
	letter-spacing: .085em;
	text-transform: lowercase;
}

h1 { font-size: clamp(1.75rem, .95rem + 3.5vw, 3.9rem); letter-spacing: .06em; max-width: 20ch; }
h2 { font-size: clamp(1.4rem, 1.05rem + 1.8vw, 2.3rem); max-width: 24ch; }

h1 b { font-weight: 500; color: var(--kupfer); }

h3
{
	margin: 0 0 .45rem;
	font-size: 1.02rem;
	font-weight: 650;
	letter-spacing: 0;
	text-transform: none;
}

.marke
{
	margin: 0 0 1.1rem;
	font-family: var(--mono);
	font-size: .72rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--kupfer);
}

/* Genetik-Kürzel überall gleich ausgezeichnet */
.gen
{
	font-family: var(--mono);
	font-size: .92em;
	background: var(--papier2);
	border-bottom: 2px solid var(--karamell);
	padding: .08em .34em;
	white-space: nowrap;
}

.nacht .gen { background: rgba(247,243,236,.1); border-bottom-color: var(--kupfer); }

.gross
{
	font-size: clamp(1.12rem, 1.02rem + .6vw, 1.45rem);
	line-height: 1.5;
	max-width: 34ch;
}

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

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

.kopf__vor { max-width: 44ch; color: var(--leise); margin-top: 1.5rem; }

.kopf figure
{
	margin: clamp(2.2rem, 4.5vw, 3.5rem) 0 0;
}

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

/* ============ Bildstrecke: drei Hunde nebeneinander ============ */

.strecke
{
	display: grid;
	gap: 1rem;
	grid-template-columns: 1fr;
	margin-top: clamp(2.2rem, 4vw, 3.2rem);
}

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

.strecke figure { margin: 0; }
.strecke img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.strecke figcaption { margin-top: .8rem; font-size: .9rem; }

.strecke .art
{
	display: inline-block;
	font-family: var(--mono);
	font-size: .68rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	padding: .18em .55em;
	margin-bottom: .5rem;
	border: 1px solid var(--karamell);
	color: var(--leise);
}

.strecke .art--verduennt { border-color: var(--kupfer); color: var(--kupfer); }

/* ============ CDA: Textspalte mit umflossenem Bild ============= */

.cda { background: var(--papier2); }

.cda__block, .umfluss { max-width: 46rem; }

.umfluss figure
{
	margin: 0 0 1rem;
	max-width: 100%;
}

@media (min-width: 46rem)
{
	.umfluss figure
	{
		float: right;
		width: 19rem;
		margin: .4rem 0 1.2rem 2.2rem;
		shape-outside: margin-box;
	}
}

.umfluss figcaption
{
	margin-top: .7rem;
	font-size: .82rem;
	color: var(--leise);
}

.cda__block::after, .umfluss::after { content: ""; display: block; clear: both; }

/* Das Vergleichspaar — betroffen neben unauffällig, gleiche Größe */

.paar
{
	clear: both;
	display: grid;
	gap: 1rem;
	grid-template-columns: 1fr;
	margin-top: clamp(2.2rem, 4vw, 3.2rem);
	max-width: 54rem;
}

@media (min-width: 44rem) { .paar { grid-template-columns: 1fr 1fr; } }

.paar figure { margin: 0; }

.paar img
{
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border: 1px solid rgba(46,36,28,.14);
}

.paar figcaption { margin-top: .8rem; font-size: .88rem; line-height: 1.5; }

.paar .art
{
	display: inline-block;
	font-family: var(--mono);
	font-size: .68rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	padding: .18em .55em;
	margin-bottom: .5rem;
	border: 1px solid var(--karamell);
	color: var(--leise);
}

.paar .art--betroffen { border-color: var(--kupfer); color: var(--kupfer); }

.merksatz
{
	clear: both;
	margin-top: clamp(2rem, 4vw, 3rem);
	padding: 1.4rem 0 0;
	border-top: 3px solid var(--umbra);
	font-size: clamp(1.1rem, 1rem + .7vw, 1.5rem);
	line-height: 1.42;
	max-width: 40rem;
	letter-spacing: -.005em;
}

/* ============ Was auch die richtige Verpaarung offen lässt ====== */

.offen { background: var(--papier2); }

.offen__raster
{
	display: grid;
	gap: clamp(1.8rem, 4vw, 3.4rem);
	grid-template-columns: 1fr;
	margin-top: clamp(1.8rem, 3.5vw, 2.6rem);
	align-items: start;
}

@media (min-width: 54rem)
{
	.offen__raster { grid-template-columns: 1.1fr 1fr; }
}

.offen__raster > div { min-width: 0; }

.offen__vertrag
{
	padding: clamp(1.3rem, 3vw, 2rem);
	background: var(--papier);
	border-left: 4px solid var(--kupfer);
}

.offen__vertrag h3
{
	margin: 0 0 .7rem;
	font-size: 1.12rem;
	line-height: 1.3;
}

.offen__vertrag p { font-size: .98rem; }

.offen__vertrag p:last-child { margin-bottom: 0; }

/* ==================== Regelblock, dunkel ======================= */

.nacht { background: var(--umbra); color: #ece3d7; }
.nacht h2 { color: #fff; }
.nacht .marke { color: var(--kupfer-h); }
.nacht strong { color: #fff; }

.regeln
{
	list-style: none;
	margin: clamp(2rem, 4vw, 3rem) 0 0;
	padding: 0;
	display: grid;
	gap: 0;
	max-width: 54rem;
}

.regeln li
{
	display: grid;
	grid-template-columns: 1fr;
	gap: .3rem 1.6rem;
	padding: 1.25rem 0;
	border-top: 1px solid rgba(236,227,215,.2);
}

@media (min-width: 44rem)
{
	.regeln li { grid-template-columns: 13rem 1fr; align-items: baseline; }
}

.regeln li:last-child { border-bottom: 1px solid rgba(236,227,215,.2); }

.regeln b { font-weight: 650; color: #fff; }

.regeln p { margin: 0; font-size: .97rem; color: rgba(236,227,215,.82); }

.vorbehalt
{
	margin-top: 1.6rem;
	font-size: .88rem;
	color: rgba(236,227,215,.62);
	max-width: 52rem;
}

/* ============ Die Verdünnungsskala (Signatureffekt) ============ */

.skala { text-align: left; }

.skala__leiste
{
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: .35rem;
	margin-top: clamp(2rem, 4vw, 3rem);
	max-width: 54rem;
}

.stufe
{
	aspect-ratio: 3 / 4;
	background: var(--voll);
	transition: background 1.1s cubic-bezier(.3,.7,.3,1);
	position: relative;
}

.skala.entleert .stufe { background: var(--duenn); }

.stufe span
{
	position: absolute;
	left: 0;
	bottom: -1.6rem;
	font-family: var(--mono);
	font-size: .62rem;
	letter-spacing: .06em;
	color: var(--leise);
}

.skala__fuss
{
	margin-top: 2.6rem;
	font-size: .9rem;
	color: var(--leise);
	max-width: 46rem;
}

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

.zeus { background: var(--karamell); }

.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;
	position: relative;
	padding-left: 3.1rem;
}

.schritte li::before
{
	content: counter(s) ".";
	position: absolute;
	left: 0;
	top: .1em;
	font-family: var(--mono);
	font-size: .95rem;
	color: var(--kupfer);
}

.knopf
{
	display: inline-block;
	margin-top: clamp(1.8rem, 3.5vw, 2.5rem);
	padding: .95em 2em;
	background: var(--umbra);
	color: var(--papier);
	text-decoration: none;
	font-weight: 550;
	letter-spacing: .04em;
	transition: background .25s ease;
}

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

/* ---- Das Siegel: Eintrag auf Papier, mono beschriftet --------- */

.siegel
{
	margin: clamp(2.4rem, 5vw, 3.6rem) 0 0;
	padding: clamp(1.2rem, 2.6vw, 1.8rem);
	max-width: 44rem;
	background: var(--papier);
	border-left: 3px solid var(--kupfer);
	display: grid;
	gap: 1.2rem clamp(1.4rem, 3vw, 2.2rem);
	grid-template-columns: 1fr;
	align-items: start;
}

@media (min-width: 40rem) { .siegel { grid-template-columns: 9.5rem 1fr; } }

.siegel > a { display: block; }
.siegel img { width: 100%; }
.siegel figcaption a { color: var(--kupfer); }

.siegel figcaption { font-size: .92rem; line-height: 1.6; }

.siegel figcaption b
{
	display: block;
	margin-bottom: .5rem;
	font-family: var(--mono);
	font-size: .68rem;
	font-weight: 400;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--kupfer);
}

/* ============ Querlinks: Spalte mit Farbabstufung ============== */

.themen:not(:has(a)) { display: none; }

.themen__raster { display: grid; gap: 1.6rem clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; }

@media (min-width: 54rem) { .themen__raster { grid-template-columns: 15rem 1fr; } }

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

.themenliste li[hidden] { display: none; }

.themenliste a
{
	display: grid;
	grid-template-columns: .55rem 1fr;
	gap: .9rem;
	align-items: center;
	padding: .68rem 0;
	text-decoration: none;
	font-size: .95rem;
	border-bottom: 1px solid rgba(46,36,28,.13);
	transition: color .2s ease;
}

/* der kleine Balken links wird von Zeile zu Zeile blasser */
.themenliste a::before
{
	content: "";
	height: 1.5rem;
	background: var(--umbra);
	transition: background .2s ease;
}

.themenliste li:nth-child(2) a::before { background: #4a3a2c; }
.themenliste li:nth-child(3) a::before { background: #66513e; }
.themenliste li:nth-child(4) a::before { background: #816951; }
.themenliste li:nth-child(5) a::before { background: #9a8067; }
.themenliste li:nth-child(6) a::before { background: #ae977f; }
.themenliste li:nth-child(7) a::before { background: #bfab95; }
.themenliste li:nth-child(8) a::before { background: #cdbca9; }
.themenliste li:nth-child(9) a::before { background: #d8cbbb; }
.themenliste li:nth-child(n+10) a::before { background: #e2d8cb; }

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

/* ==================== Fuss: tabellarisch ====================== */

.fuss
{
	background: var(--umbra);
	color: rgba(236,227,215,.78);
	padding-block: clamp(2.8rem, 5.5vw, 4.2rem);
	font-size: .85rem;
	line-height: 1.62;
}

.fuss dl { margin: 0; display: grid; grid-template-columns: 1fr; gap: 1.3rem; max-width: 58rem; }

@media (min-width: 46rem)
{
	.fuss dl { grid-template-columns: 11rem 1fr; gap: 1.1rem 2rem; }
	.fuss dt { text-align: right; }
}

.fuss dt
{
	font-family: var(--mono);
	font-size: .68rem;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: var(--kupfer-h);
	padding-top: .18em;
}

.fuss dd { margin: 0; }

.fuss a { color: #ece3d7; }

/* ==================== 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; }
	.stufe { transition: none; }
}

/* ============ Weitergeben ======================================
   Die Botschaft hängt am ersten Wort: es steht in der Monospace der
   Genetik-Kürzel und in Kupfer, der Rest läuft als normaler Satz
   weiter. Die Elemente darunter tragen denselben Rahmen wie die
   Bildmarken „verdünnt“ / „unverdünnt“ in der Bildstrecke. */

.weiter
{
	background: var(--papier2);
	padding-block: clamp(2.6rem, 5vw, 4rem);
}

.weiter__satz
{
	max-width: 46ch;
	margin: 0;
	font-size: clamp(1.02rem, .98rem + .35vw, 1.2rem);
	line-height: 1.62;
}

.weiter__auftakt
{
	font-family: var(--mono);
	font-size: .84em;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--kupfer);
	padding-right: .15em;
}

.weiter__reihe
{
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: .55rem;
	margin: clamp(1.6rem, 3vw, 2.2rem) 0 0;
	padding: 0;
	max-width: 54rem;
}

.weiter__reihe li { min-width: 0; }

.weiter__reihe a,
.weiter__reihe button
{
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	margin: 0;
	padding: .5rem .85rem;
	background: none;
	border: 1px solid var(--karamell);
	border-radius: 0;
	font-family: var(--mono);
	font-size: .68rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	line-height: 1.2;
	color: var(--leise);
	text-decoration: none;
	cursor: pointer;
	transition: border-color .22s ease, color .22s ease;
}

.weiter__reihe a:hover,
.weiter__reihe button:hover,
.weiter__reihe a:focus-visible,
.weiter__reihe button:focus-visible
{
	border-color: var(--kupfer);
	color: var(--kupfer);
}

.weiter__reihe svg { flex: none; }

.weiter__reihe [hidden] { display: none; }

/* ---- Mitlaufende Leiste, rechts ------------------------------
   Die Bahn ist 76rem breit; erst darüber bleibt rechts Luft. */

.rand { display: none; }

@media (min-width: 1460px)
{
	.rand
	{
		position: fixed;
		right: 1.4rem;
		top: 42%;
		z-index: 40;
		display: grid;
		gap: .4rem;
	}

	.rand__el
	{
		display: flex;
		align-items: center;
		justify-content: center;
		width: 2.5rem;
		height: 2.5rem;
		padding: 0;
		background: var(--papier);
		border: 1px solid var(--karamell);
		color: var(--leise);
		cursor: pointer;
		transition: border-color .22s ease, color .22s ease;
	}

	.rand__el:hover,
	.rand__el:focus-visible,
	.rand__el.ist-kopiert
	{
		border-color: var(--kupfer);
		color: var(--kupfer);
	}

	.rand [hidden] { display: none; }
}

/* Nicht unterstützte Elemente hinterlassen keine Lücke in der Reihe. */
.weiter__reihe li:has([hidden])
{
	display: none;
}
