/* ------------------------------------------------------------------
   jahre-vor-dem-welpen.qualzuchtpraevention.com
   Farbwelt aus den Bildern: fast monochrom in Creme und Elfenbein,
   dazu ein sehr dunkles Braun. Kein Buntakzent — die Hierarchie
   entsteht aus Hell und Dunkel und aus der Fläche.
   Layout: waagrechte Zeitachse als Hauptmotiv.
   ------------------------------------------------------------------ */

:root
{
	--creme:  #f2ede4;
	--creme2: #e6dfd2;
	--sand:   #d3c8b6;
	--dunkel: #2a241d;
	--mittel: #7d7264;
	--text:   #302a23;

	--bahn: 76rem;
	--serif: "Iowan Old Style", "Palatino Linotype", Palatino, 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(--creme);
	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.75;
	font-weight: 380;
	-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: 620; }

.bahn { width: min(100% - 2.4rem, var(--bahn)); margin-inline: auto; }
.schmal { max-width: 38rem; }
section { padding-block: clamp(3.4rem, 7vw, 6.5rem); }

h1, h2
{
	margin: 0 0 1.3rem;
	font-family: var(--serif);
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: -.012em;
}

h1 { font-size: clamp(2rem, 1.1rem + 3.8vw, 4.1rem); max-width: 18ch; }
h2 { font-size: clamp(1.5rem, 1.1rem + 2vw, 2.5rem); max-width: 22ch; }

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

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

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

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

.kopf figure { margin: clamp(2.4rem, 5vw, 3.8rem) 0 0; }
.kopf figcaption { margin-top: .85rem; font-size: .84rem; color: var(--mittel); max-width: 52ch; }

/* ============ Die waagrechte Zeitachse ======================== */

.zeit { background: var(--creme2); overflow: hidden; }

.achse
{
	margin-top: clamp(2.5rem, 5vw, 4rem);
	position: relative;
	display: grid;
	gap: 1.6rem;
	grid-template-columns: 1fr;
}

@media (min-width: 56rem)
{
	.achse { grid-template-columns: repeat(5, 1fr); gap: 1.1rem; }

	/* die durchgehende Linie hinter den Stationen */
	.achse::before
	{
		content: "";
		position: absolute;
		left: 0; right: 0; top: 1.05rem;
		height: 2px;
		background: var(--sand);
	}
}

.station { position: relative; padding-top: 0; }

@media (min-width: 56rem) { .station { padding-top: 2.6rem; } }

.station__punkt
{
	position: absolute;
	top: .45rem; left: 0;
	width: 1.2rem; height: 1.2rem;
	border-radius: 50%;
	background: var(--creme2);
	border: 2px solid var(--sand);
	transition: background .5s ease, border-color .5s ease, transform .5s cubic-bezier(.24,.7,.3,1);
	display: none;
}

@media (min-width: 56rem) { .station__punkt { display: block; } }

.station.da .station__punkt { background: var(--dunkel); border-color: var(--dunkel); transform: scale(1.15); }
.kein-js .station__punkt { background: var(--dunkel); border-color: var(--dunkel); }

.station__zeit
{
	display: block;
	font-family: var(--serif);
	font-style: italic;
	font-size: 1.05rem;
	color: var(--mittel);
	margin-bottom: .35rem;
}

.station h3
{
	margin: 0 0 .45rem;
	font-size: 1.02rem;
	font-weight: 620;
	line-height: 1.25;
}

.station p { margin: 0; font-size: .93rem; line-height: 1.55; color: #4c453b; }

/* Auf schmalen Schirmen wird die Achse zur Liste mit Randlinie */
@media (max-width: 55.98rem)
{
	.station { padding-left: 1.4rem; border-left: 2px solid var(--sand); }
}

.achse__fuss { margin-top: clamp(2.2rem, 4vw, 3rem); font-size: .9rem; color: var(--mittel); max-width: 46rem; }

/* ============ Die Umkehrung ================================== */

.umkehr { background: var(--dunkel); color: #ece5da; }
.umkehr h2 { color: #fff; }
.umkehr .marke { color: var(--sand); }
.umkehr strong { color: #fff; }

.umkehr__raster { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; grid-template-columns: 1fr; margin-top: clamp(2rem, 4vw, 3rem); }

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

.umkehr figure { margin: 0; }
.umkehr img { width: 100%; }
.umkehr figcaption { margin-top: .8rem; font-size: .84rem; color: rgba(236,229,218,.6); }

.satz
{
	font-family: var(--serif);
	font-size: clamp(1.25rem, 1.05rem + 1.3vw, 2rem);
	line-height: 1.3;
	max-width: 24ch;
}

/* ============ Warum kaum jemand vorbestellt =================== */

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

@media (min-width: 54rem)
{
	.wahl__raster { grid-template-columns: 1.15fr 1fr; align-items: start; }
	.wahl__satz { padding-left: 2.2rem; border-left: 2px solid var(--dunkel); }
}

.wahl__text { max-width: 40rem; }
.wahl__satz { max-width: 20ch; }

.wahl__fuss
{
	margin-top: clamp(2rem, 4vw, 3rem);
	padding-top: 1.2rem;
	border-top: 1px solid var(--sand);
	max-width: 46rem;
	color: var(--mittel);
	font-size: .95rem;
}

/* ============ Die andere Wartezeit =========================== */

.schutz figure { margin: 0; }
.schutz img { width: 100%; }
.schutz figcaption { margin-top: .8rem; font-size: .84rem; color: #6b6357; }

@media (min-width: 54rem)
{
	.schutz .umkehr__raster { grid-template-columns: 1fr 1.05fr; }
	.schutz figure { order: -1; }   /* Bild links — anders herum als in der Umkehrung */
}

/* ============ Was Wartezeit nicht ist ======================== */

.klarstellung { border-top: 1px solid var(--sand); }

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

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

.paare div { padding-top: 1.1rem; border-top: 2px solid var(--dunkel); }

/* Die untere Reihe wird nach unten hin abgeschlossen — schmal das letzte,
   zweispaltig die letzten beiden Felder. */
.paare div:last-child { padding-bottom: 1.1rem; border-bottom: 2px solid var(--dunkel); }

@media (min-width: 50rem)
{
	.paare div:nth-last-child(-n+2) { padding-bottom: 1.1rem; border-bottom: 2px solid var(--dunkel); }
}
.paare b { display: block; font-weight: 620; margin-bottom: .35rem; }
.paare p { margin: 0; font-size: .95rem; color: #4c453b; }

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

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

/* Text links, das Siegel rechts daneben */
.zeus__raster { display: grid; gap: clamp(2rem, 5vw, 3.6rem); align-items: start; }
@media (min-width: 56rem) { .zeus__raster { grid-template-columns: 1fr 13rem; } }
.zeus__text { min-width: 0; }
.zeus__siegel { margin: 0; min-width: 0; max-width: 13rem; }
.zeus__siegel img { width: 100%; }
.zeus__siegel figcaption { margin-top: .8rem; font-size: .84rem; line-height: 1.5; color: var(--mittel); text-align: center; }

.zeus__satz { margin-top: clamp(2rem, 4vw, 2.8rem); max-width: 26ch; }

.schritte { list-style: none; counter-reset: s; margin: clamp(1.8rem, 3.5vw, 2.6rem) 0 0; padding: 0; display: grid; gap: 1.1rem; max-width: 50rem; }
.schritte li { counter-increment: s; display: grid; grid-template-columns: 2rem 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(--mittel); }

.knopf
{
	display: inline-block; margin-top: clamp(1.8rem, 3.5vw, 2.4rem);
	padding: .95em 2.1em; background: var(--dunkel); color: var(--creme); text-decoration: none;
	font-weight: 560; letter-spacing: .02em; transition: background .25s ease;
}
.knopf:hover, .knopf:focus-visible { background: #4c453b; }

/* ============ Querlinks: schlichte Serifenliste =============== */

.themen:not(:has(a)) { display: none; }
.themenliste { list-style: none; margin: clamp(1.6rem, 3vw, 2.2rem) 0 0; padding: 0; column-gap: 3.5rem; }
@media (min-width: 52rem) { .themenliste { columns: 2; } }
.themenliste li { break-inside: avoid; }
.themenliste li[hidden] { display: none; }

.themenliste a
{
	display: block; padding: .7rem 0; text-decoration: none; font-size: .95rem;
	border-bottom: 1px solid rgba(48,42,35,.13);
	transition: color .2s ease;
}
.themenliste a:hover, .themenliste a:focus-visible { color: var(--mittel); }

/* ==================== Fuss: zentriert unter Haarlinie ========= */

.fuss { padding-block: clamp(2.6rem, 5vw, 3.8rem); font-size: .84rem; line-height: 1.6; color: var(--mittel); text-align: center; border-top: 1px solid var(--sand); }
.fuss__block { max-width: 34rem; margin-inline: auto; }
.fuss__block + .fuss__block { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--sand); }
.fuss b { display: block; color: var(--text); font-weight: 620; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: .5rem; }
.fuss a { color: var(--text); }

.steig { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s 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; }
	.station__punkt { transition: none; }
}

/* ---- Empfehlung: Botschaft mittig, die Wege in zwei Reihen darunter.
   Gleiche Mittelachse wie der Fuß, damit der Seitenschluss ruhig bleibt. ---- */

.empfehlung { padding-block: clamp(2rem, 4.5vw, 3.4rem) clamp(2.6rem, 5.5vw, 4rem); text-align: center; background: var(--creme2); }
.empfehlung__wort { max-width: 40rem; margin: 0 auto clamp(1.4rem, 3vw, 2.1rem); font-family: var(--serif); font-size: clamp(1.02rem, .96rem + .35vw, 1.2rem); line-height: 1.55; color: var(--dunkel); }
.empfehlung__reihe { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; }
.empfehlung__reihe--zwei { margin-top: .55rem; }
.empfehlung__reihe--zwei:not(:has(:not([hidden]))) { display: none; }

.empfehlung__weg
{
	display: inline-flex; align-items: center; gap: .55rem;
	padding: .62rem 1.15rem;
	border: 0; border-radius: 2rem;
	background: var(--creme);
	font-family: inherit; font-size: .87rem; font-weight: 480; line-height: 1.3;
	color: var(--text); text-decoration: none; cursor: pointer;
	transition: background .22s ease, color .22s ease;
}

.empfehlung__weg svg { flex: none; color: var(--mittel); transition: color .22s ease; }
.empfehlung__weg:hover, .empfehlung__weg:focus-visible { background: var(--dunkel); color: var(--creme); }
.empfehlung__weg:hover svg, .empfehlung__weg:focus-visible svg { color: var(--sand); }
.empfehlung__weg[hidden] { display: none; }

/* ---- Mitscrollende Leiste: rechter Rand, ein heller Kasten.
   Erst ab 1340 px — davor läuft die Zeitachse zu nah an den Rand. ---- */

.randbox { display: none; }

@media (min-width: 1340px)
{
	.randbox
	{
		display: flex; position: fixed; right: 1.5rem; top: 50%;
		transform: translateY(-50%);
		flex-direction: column; gap: .2rem;
		padding: .45rem;
		background: var(--creme);
		border: 1px solid var(--sand);
		border-radius: 1.6rem;
		z-index: 20;
	}

	.randbox__zeichen
	{
		display: grid; place-items: center;
		width: 2.35rem; height: 2.35rem;
		padding: 0; border: 0; border-radius: 50%;
		background: none; color: var(--mittel); cursor: pointer;
		transition: background .2s ease, color .2s ease;
	}

	.randbox__zeichen:hover,
	.randbox__zeichen:focus-visible,
	.randbox__zeichen.ist-kopiert { background: var(--dunkel); color: var(--creme); }

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