/* ------------------------------------------------------------------
   hobbyzucht-recht.zuchtprogramm.com

   Farbwelt aus den Bildern: das dunkle Graugrün der Möbel und des
   Pullovers als Grundfläche (Olivgraphit), das Senfgelb der Wand
   ausschließlich als große Akzentfläche, nie als Grundfläche.

   Layoutprinzip: der wachsende Pflichtenumfang. Am Ende jedes
   Abschnitts steht derselbe Kasten „Was schon vorliegen muss" —
   jedes Mal um genau eine Zeile länger. Dazu wächst die Satzbreite
   des Fließtextes von Abschnitt zu Abschnitt mit (26 → 44 rem).

   Effekt: die neue Zeile wächst in den Kasten hinein, sobald er
   ins Bild kommt. Ohne JavaScript stehen alle Zeilen offen da.
   ------------------------------------------------------------------ */

*
{
	box-sizing: border-box;
}

:root
{
	--graphit: #242a22;
	--graphit2: #2e3529;
	--graphit3: #1a1f19;
	--senf: #c8971f;
	--senf2: #e0b344;
	--hell: #dde0d5;
	--matt: #a2a898;
	--linie: rgba(221, 224, 213, .16);

	--bahn: 68rem;
	--satz: 30rem;
	--sans: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html
{
	-webkit-text-size-adjust: 100%;
}

body
{
	margin: 0;
	background: var(--graphit);
	color: var(--hell);
	font: 400 clamp(1.02rem, .97rem + .32vw, 1.16rem)/1.78 var(--sans);
}

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

a
{
	color: inherit;
}

.bahn
{
	max-width: var(--bahn);
	margin: 0 auto;
	padding: 0 clamp(1.3rem, 5vw, 3.6rem);
}

/* --- Kopf ---------------------------------------------------------- */

.kopf
{
	padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.2rem, 5vw, 3.4rem);
}

.kopf__marke
{
	margin: 0 0 clamp(1.4rem, 3.5vw, 2.2rem);
	font-size: .74rem;
	font-weight: 600;
	letter-spacing: .26em;
	text-transform: uppercase;
	color: var(--senf2);
}

h1
{
	margin: 0;
	max-width: 17ch;
	font-weight: 600;
	font-size: clamp(1.95rem, 1rem + 4.4vw, 3.9rem);
	line-height: 1.1;
	letter-spacing: -.015em;
}

h1 em
{
	font-style: normal;
	color: var(--senf2);
}

.kopf__unter
{
	max-width: 38rem;
	margin: clamp(1.7rem, 3.5vw, 2.6rem) 0 0;
	color: var(--matt);
}

/* --- Bilder -------------------------------------------------------- */

.voll
{
	margin: 0;
}

.voll img
{
	width: 100%;
}

figcaption
{
	font-size: .86rem;
	line-height: 1.62;
	color: var(--matt);
}

.voll figcaption
{
	max-width: var(--bahn);
	margin: 0 auto;
	padding: .85rem clamp(1.3rem, 5vw, 3.6rem) 0;
}

/* --- Abschnitte: die Satzbreite wächst mit -------------------------- */

.stufe
{
	padding: clamp(2.8rem, 7vw, 4.8rem) 0 clamp(2.4rem, 6vw, 4rem);
	border-top: 1px solid var(--linie);
}

.stufe:first-of-type
{
	border-top: 0;
}

.stufe__nr
{
	display: block;
	margin: 0 0 .9rem;
	font-size: 1rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	letter-spacing: .06em;
	color: var(--senf2);
}

h2
{
	margin: 0 0 1.3rem;
	max-width: 20ch;
	font-weight: 600;
	font-size: clamp(1.4rem, 1.08rem + 1.5vw, 2.15rem);
	line-height: 1.16;
	letter-spacing: -.015em;
}

p
{
	max-width: var(--satz);
}

.stufe--1 { --satz: 26rem; }
.stufe--2 { --satz: 30rem; }
.stufe--3 { --satz: 34rem; }
.stufe--4 { --satz: 39rem; }
.stufe--5 { --satz: 44rem; }

strong
{
	font-weight: 700;
}

.paragraf
{
	white-space: nowrap;
}

.stufe p a
{
	color: var(--hell);
	text-decoration: none;
	border-bottom: 1px solid var(--senf);
}

.stufe p a:hover,
.stufe p a:focus
{
	color: #fff;
	border-bottom-color: var(--senf2);
}

/* --- Der mitwachsende Kasten --------------------------------------- */

.stand
{
	max-width: 44rem;
	margin: clamp(1.9rem, 4.5vw, 2.8rem) 0 0;
	padding: clamp(1.1rem, 3vw, 1.6rem) clamp(1.1rem, 3vw, 1.8rem);
	background: var(--graphit2);
	border-left: .35rem solid var(--senf);
}

.stand__titel
{
	margin: 0 0 .7rem;
	max-width: none;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--matt);
}

.stand ol
{
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: s;
}

.stand li
{
	counter-increment: s;
	position: relative;
	padding: .42rem 0 .42rem 2.4rem;
	font-size: .97rem;
	line-height: 1.6;
}

.stand li::before
{
	content: counter(s, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: .42rem;
	font-size: .8rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--senf);
}

.stand li.neu
{
	color: #fff;
}

.stand li.neu::before
{
	color: var(--senf2);
}

/* Ohne JavaScript und ohne IntersectionObserver steht alles offen.
   Erst wenn das Skript übernimmt, wird die letzte Zeile eingeklappt. */

body:not(.kein-js) .neu__huelle
{
	display: grid;
	grid-template-rows: 0fr;
	overflow: hidden;
	transition: grid-template-rows .55s ease;
}

body:not(.kein-js) .neu__huelle > span
{
	min-height: 0;
	opacity: 0;
	transition: opacity .45s ease .15s;
}

body:not(.kein-js) .neu.an .neu__huelle
{
	grid-template-rows: 1fr;
}

body:not(.kein-js) .neu.an .neu__huelle > span
{
	opacity: 1;
}

@media (prefers-reduced-motion: reduce)
{
	body:not(.kein-js) .neu__huelle
	{
		grid-template-rows: 1fr;
		transition: none;
	}

	body:not(.kein-js) .neu__huelle > span
	{
		opacity: 1;
		transition: none;
	}
}

/* --- Bild neben Text ----------------------------------------------- */

.mit
{
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr));
	gap: clamp(1.6rem, 4vw, 3rem);
	align-items: start;
	margin: clamp(1.9rem, 4.5vw, 2.8rem) 0 0;
}

.mit > *
{
	min-width: 0;
}

.mit figure
{
	margin: 0;
}

.mit figcaption
{
	padding-top: .65rem;
}

.mit p
{
	max-width: none;
	margin-top: 0;
}

/* --- Merksatz auf Senf --------------------------------------------- */

.merk
{
	background: var(--senf);
	color: var(--graphit3);
	padding: clamp(2.6rem, 7vw, 4.6rem) 0;
}

.merk p
{
	margin: 0;
	max-width: 24ch;
	font-size: clamp(1.5rem, 1.05rem + 2.3vw, 2.7rem);
	font-weight: 700;
	line-height: 1.14;
	letter-spacing: -.02em;
}

.merk p span
{
	display: block;
	color: rgba(26, 31, 25, .62);
}

/* --- ZEUS ---------------------------------------------------------- */

.zeus
{
	background: var(--graphit3);
	padding: clamp(2.8rem, 7vw, 4.8rem) 0;
}

.zeus p
{
	max-width: 40rem;
}

/* Das Siegel: rechts neben dem Schlusstext, als helle Kachel — das Siegel
   besteht aus schwarzen Linien, die auf dem Olivgraphit verschwinden würden.
   Über der Kachel die senfgelbe Oberlinie in voller Breite, wie im letzten
   Fußblock: die Stufe, auf der nichts mehr fehlt. */

.zeus__raster
{
	display: grid;
	gap: clamp(1.9rem, 4.5vw, 3.2rem);
	align-items: start;
}

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

.zeus__text { min-width: 0; }

.siegel
{
	margin: 0;
	min-width: 0;
	max-width: 16rem;
}

.siegel a
{
	display: block;
	padding: 1rem 1rem .9rem;
	background: var(--hell);
	border-top: .35rem solid var(--senf);
	text-decoration: none;
}

.siegel img
{
	width: 100%;
}

.siegel figcaption
{
	margin-top: .85rem;
	font-size: .84rem;
}

.knopf
{
	display: inline-block;
	margin-top: clamp(1.7rem, 3.5vw, 2.4rem);
	padding: .95rem 2.1rem;
	background: var(--senf);
	color: var(--graphit3);
	font-size: .97rem;
	font-weight: 700;
	text-decoration: none;
}

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

.betreuung
{
	max-width: 40rem;
	margin: clamp(1.7rem, 3.5vw, 2.4rem) 0 0;
	padding: 1.1rem 1.35rem;
	border: 1px solid var(--linie);
	font-size: .95rem;
	line-height: 1.7;
}

.betreuung a
{
	color: var(--hell);
	text-decoration: none;
	border-bottom: 1px solid var(--senf);
}

.betreuung b
{
	display: block;
	margin-bottom: .2rem;
	font-size: .72rem;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--senf2);
}

/* --- Querlinks: die Marke wächst vom Punkt zum Strich --------------- */

.themen
{
	padding: clamp(2.8rem, 7vw, 4.6rem) 0;
	border-top: 1px solid var(--linie);
}

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

.themen h2
{
	max-width: none;
	font-size: .74rem;
	font-weight: 700;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: var(--matt);
}

.themenliste
{
	list-style: none;
	margin: 0;
	padding: 0;
	columns: 2 19rem;
	column-gap: clamp(1.8rem, 5vw, 3.4rem);
	font-size: .93rem;
}

.themenliste li
{
	display: block;
	break-inside: avoid;
	padding: .46rem 0;
	line-height: 1.5;
}

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

.themenliste a
{
	display: block;
	position: relative;
	padding-left: 2.4rem;
	text-decoration: none;
	color: var(--hell);
}

.themenliste a::before
{
	content: "";
	position: absolute;
	left: 0;
	top: .72em;
	width: .36rem;
	height: .18rem;
	background: var(--senf);
	transition: width .3s ease, background-color .3s ease;
}

.themenliste a:hover::before,
.themenliste a:focus::before
{
	width: 1.7rem;
	background: var(--senf2);
}

.themenliste a:hover,
.themenliste a:focus
{
	color: #fff;
}

/* --- Fuß: vier Blöcke, deren Oberkante mitwächst -------------------- */

.fuss
{
	background: var(--graphit2);
	padding: clamp(2.6rem, 6vw, 4rem) 0 clamp(3rem, 7vw, 4.6rem);
	font-size: .87rem;
	line-height: 1.75;
	color: var(--matt);
}

.fuss__block
{
	max-width: 46rem;
	margin: 0 0 clamp(1.3rem, 3vw, 1.9rem);
	padding-top: .95rem;
	position: relative;
}

.fuss__block::before
{
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	height: 2px;
	background: var(--senf);
}

.fuss__block--1::before { width: 22%; }
.fuss__block--2::before { width: 48%; }
.fuss__block--3::before { width: 74%; }
.fuss__block--4::before { width: 100%; }

.fuss b
{
	display: block;
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--senf2);
}

.fuss__block--1 span
{
	color: var(--hell);
}

.fuss a
{
	color: var(--hell);
	text-decoration: none;
	border-bottom: 1px solid var(--senf);
}

.fuss a:hover,
.fuss a:focus
{
	color: #fff;
}

.hinweis
{
	max-width: 46rem;
	margin: clamp(1.4rem, 3vw, 2rem) 0 0;
	font-size: .78rem;
	line-height: 1.66;
	color: rgba(162, 168, 152, .8);
}

/* --- Weitergabe: Randnotiz im Steg, Elemente im Satzspiegel ---------
   Die Seite führt den Fließtext in schmalen Spalten; die Botschaft
   steht deshalb nicht über den Elementen, sondern links daneben im
   Seitensteg — wie eine Marginalie in einem Kommentar. */

.weitergabe
{
	padding: clamp(2.6rem, 6vw, 4rem) 0;
	border-top: 1px solid var(--linie);
}

.weitergabe__raster
{
	display: grid;
	gap: 1.4rem;
	align-items: start;
}

@media (min-width: 56rem)
{
	.weitergabe__raster
	{
		grid-template-columns: 15rem 1fr;
		column-gap: clamp(2rem, 5vw, 3.6rem);
	}
}

.weitergabe__notiz
{
	max-width: none;
	margin: 0;
	padding-top: .4rem;
	font-size: .84rem;
	line-height: 1.66;
	color: var(--matt);
	hyphens: auto;
}

@media (min-width: 56rem)
{
	.weitergabe__notiz
	{
		text-align: right;
		border-right: 1px solid var(--linie);
		padding-right: clamp(1rem, 2.5vw, 1.8rem);
	}
}

.weitergabe__spiegel
{
	list-style: none;
	margin: 0;
	padding: 0;
	min-width: 0;
	display: flex;
	flex-wrap: wrap;
	gap: .5rem .55rem;
}

.weitergabe__spiegel a,
.weitergabe__spiegel button
{
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	margin: 0;
	padding: .58rem 1rem;
	background: transparent;
	border: 1px solid var(--linie);
	color: var(--hell);
	font: inherit;
	font-size: .88rem;
	line-height: 1.3;
	text-decoration: none;
	cursor: pointer;
	transition: border-color .25s ease, background-color .25s ease, color .25s ease;
}

.weitergabe__spiegel a:hover,
.weitergabe__spiegel button:hover,
.weitergabe__spiegel a:focus,
.weitergabe__spiegel button:focus
{
	border-color: var(--senf);
	background: var(--graphit2);
	color: #fff;
}

.weitergabe__spiegel svg { flex: none; color: var(--senf2); }

.weitergabe__spiegel [hidden] { display: none; }

/* --- Die mitlaufende Leiste, links --------------------------------
   Die Bahn ist 68rem breit, links bleibt ab etwa 1280 px genug Steg. */

.steg { display: none; }

@media (min-width: 1280px)
{
	.steg
	{
		position: fixed;
		left: 1.1rem;
		top: 50%;
		transform: translateY(-50%);
		z-index: 40;
		display: grid;
		gap: .15rem;
		padding: .5rem .3rem;
		border-left: 2px solid var(--senf);
	}

	.steg__el
	{
		display: flex;
		align-items: center;
		justify-content: center;
		width: 2.4rem;
		height: 2.4rem;
		padding: 0;
		border: 0;
		background: none;
		color: var(--matt);
		cursor: pointer;
		transition: color .25s ease;
	}

	.steg__el:hover,
	.steg__el:focus,
	.steg__el.ist-kopiert
	{
		color: var(--senf2);
	}

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

/* Nicht unterstützte Elemente hinterlassen keine Lücke im Satzspiegel. */
.weitergabe__spiegel li:has([hidden])
{
	display: none;
}
