:root
{
	--petrol:      #22383c;
	--petrol-tief: #182a2d;
	--petrol-hell: #3a565b;
	--papier:      #eceae5;
	--papier-2:    #dfddd5;
	--rot:         #c8262b;
	--rot-hell:    #e8595e;
	--tinte:       #1b2224;
	--grau:        #6f7a7b;

	--sans: "Helvetica Neue", Helvetica, Arial, "Segoe UI", system-ui, sans-serif;
}

*
{
	box-sizing: border-box;
}

html,
body
{
	max-width: 100%;
	overflow-x: clip;
}

body
{
	margin: 0;
	background: var(--papier);
	color: var(--tinte);
	font-family: var(--sans);
	font-size: clamp(1rem, .95rem + .3vw, 1.12rem);
	line-height: 1.68;
	-webkit-font-smoothing: antialiased;
}

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

p
{
	margin: 0 0 1.15rem;
	text-wrap: pretty;
}

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

a
{
	color: inherit;
}

strong
{
	font-weight: 700;
}

.bahn
{
	width: min(90%, 74rem);
	margin-inline: auto;
}

/* ---------- Marke / Kleinschrift ---------- */

.marke
{
	margin: 0 0 1.3rem;
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .3em;
	text-transform: uppercase;
	color: var(--rot);
}

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

/* ---------- Titel: Versalien neben freigestelltem Bild ---------- */

.kopf
{
	background: var(--petrol);
	color: var(--papier);
	position: relative;
	overflow: hidden;
}

.kopf__raster
{
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr));
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: center;
	padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 5vw, 3.5rem);
}

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

h1
{
	margin: 0 0 1.6rem;
	font-size: clamp(1.9rem, .8rem + 4.4vw, 4.1rem);
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: -.02em;
	text-transform: uppercase;
}

h1 em
{
	display: block;
	font-style: normal;
	color: var(--rot-hell);
}

.kopf p
{
	max-width: 32rem;
	color: rgba(236,234,229,.82);
}

.kopf__bild img
{
	width: 100%;
	border-radius: 2px;
}

/* ---------- Abschnitte ---------- */

section
{
	padding: clamp(3.5rem, 8vw, 7rem) 0;
}

h2
{
	margin: 0 0 1.5rem;
	font-size: clamp(1.6rem, 1.2rem + 2vw, 2.7rem);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -.02em;
}

.schmal
{
	max-width: 40rem;
}

.gross
{
	font-size: clamp(1.15rem, 1.05rem + .6vw, 1.5rem);
	line-height: 1.5;
	color: var(--petrol);
}

/* ---------- Zeitleiste mit mitlaufendem Balken ---------- */

.weg
{
	background: var(--papier-2);
}

.leiste
{
	position: relative;
	margin-top: clamp(2.5rem, 5vw, 4rem);
	padding-left: clamp(2.6rem, 5vw, 4.5rem);
}

/* die ruhende Achse */
.leiste::before
{
	content: "";
	position: absolute;
	left: clamp(.75rem, 1.5vw, 1.4rem);
	top: .6rem;
	bottom: .6rem;
	width: 2px;
	background: rgba(27,34,36,.18);
}

/* der Balken, der beim Scrollen mitläuft */
.leiste__fuellung
{
	position: absolute;
	left: clamp(.75rem, 1.5vw, 1.4rem);
	top: .6rem;
	width: 2px;
	height: 0;
	background: var(--rot);
	transition: height .25s linear;
}

.halt
{
	position: relative;
	padding-bottom: clamp(2.5rem, 5vw, 3.8rem);
}

.halt:last-child
{
	padding-bottom: 0;
}

/* der Punkt auf der Achse */
.halt::before
{
	content: "";
	position: absolute;
	left: calc(-1 * clamp(2.6rem, 5vw, 4.5rem) + clamp(.75rem, 1.5vw, 1.4rem) - 5px);
	top: .55rem;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--papier-2);
	border: 2px solid rgba(27,34,36,.3);
	transition: background .35s ease, border-color .35s ease;
	z-index: 1;
}

.halt.erreicht::before
{
	background: var(--rot);
	border-color: var(--rot);
}

.halt__nr
{
	display: block;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .24em;
	color: var(--grau);
	margin-bottom: .5rem;
}

.halt h3
{
	margin: 0 0 .6rem;
	font-size: clamp(1.2rem, 1.05rem + .7vw, 1.65rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -.01em;
	color: var(--petrol);
}

.halt p
{
	max-width: 38rem;
	color: #3d4749;
}

.halt figure
{
	margin: 1.5rem 0 0;
	max-width: 34rem;
}

.halt figure img
{
	width: 100%;
	border-radius: 2px;
}

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

/* ---------- Der Unterschied ---------- */

.unterschied
{
	background: var(--petrol-tief);
	color: var(--papier);
}

.unterschied h2
{
	max-width: 20ch;
}

.unterschied p
{
	color: rgba(236,234,229,.82);
}

.gegen
{
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
	gap: clamp(1.6rem, 4vw, 3rem);
	margin-top: clamp(2.2rem, 5vw, 3.5rem);
}

.gegen > div
{
	min-width: 0;
	padding-top: 1.2rem;
	border-top: 2px solid var(--petrol-hell);
}

.gegen > div.hebt
{
	border-top-color: var(--rot);
}

.gegen b
{
	display: block;
	font-size: 1.15rem;
	margin-bottom: .5rem;
	color: #fff;
}

.gegen p
{
	font-size: .97rem;
	margin: 0;
}

/* ---------- Siegel und Prüfung ---------- */

.siegelteil__raster
{
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
}

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

.siegel
{
	margin: 0;
	justify-self: center;
}

.siegel a
{
	display: block;
	width: min(16rem, 66vw);
}

.siegel img
{
	width: 100%;
}

.knopf
{
	display: inline-block;
	margin-top: 1.6rem;
	padding: .95rem 2.1rem;
	background: var(--rot);
	color: #fff;
	text-decoration: none;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	border-radius: 2px;
}

.knopf:hover
{
	background: #a81e23;
}

/* ---------- Querlinks als versetztes Kachelband ---------- */

.themen
{
	background: var(--petrol);
	color: var(--papier);
	padding: clamp(3rem, 6vw, 4.5rem) 0;
}

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

.themen h2
{
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .3em;
	text-transform: uppercase;
	color: rgba(236,234,229,.55);
	margin-bottom: 1.8rem;
}

.band
{
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: .7rem;
}

.band li
{
	min-width: 0;
}

.band a
{
	display: block;
	padding: .85rem 1.15rem;
	background: rgba(236,234,229,.07);
	border: 1px solid rgba(236,234,229,.16);
	border-radius: 2px;
	text-decoration: none;
	font-size: .93rem;
	line-height: 1.3;
	color: rgba(236,234,229,.9);
}

/* jede zweite Kachel sitzt tiefer — das Band wird unruhig statt tabellarisch */
.band li:nth-child(even) a
{
	transform: translateY(.55rem);
}

.band a:hover
{
	background: var(--rot);
	border-color: var(--rot);
	color: #fff;
}

@media (max-width: 40rem)
{
	.band li:nth-child(even) a
	{
		transform: none;
	}
}

/* ---------- Impressum: rechtsbündig unter breiter Linie ---------- */

.fuss
{
	padding: clamp(2.5rem, 6vw, 4rem) 0 3.5rem;
	font-size: .86rem;
	color: var(--grau);
}

.fuss__linie
{
	border: 0;
	border-top: 3px solid var(--petrol);
	margin: 0 0 1.8rem;
}

.fuss__inhalt
{
	text-align: right;
	margin-left: auto;
	max-width: 40rem;
}

.fuss__inhalt p
{
	margin-bottom: 1.1rem;
}

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

.fuss a
{
	color: var(--tinte);
	text-decoration: underline;
	text-decoration-color: var(--rot);
	text-underline-offset: .18em;
}

@media (max-width: 34rem)
{
	.fuss__inhalt
	{
		text-align: left;
	}
}

/* ---------- Bewegung ---------- */

.steig
{
	opacity: 0;
	transform: translateY(1.2rem);
	transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.25,1);
}

.steig.da
{
	opacity: 1;
	transform: none;
}

.kein-js .steig
{
	opacity: 1;
	transform: none;
}

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

	.leiste__fuellung
	{
		transition: none;
	}
}

/* ---------- Weitersagen: nummerierte Reihe ----------
   Die Seite erzählt einen Weg in vier nummerierten Halten. Die
   Teilen-Elemente führen diese Zählung fort — 01 bis 05, gleiche
   Ziffernauszeichnung wie in der Zeitleiste. */

.weitersagen
{
	padding: clamp(2.6rem, 5vw, 4rem) 0 clamp(2.6rem, 5vw, 4rem);
	background: var(--papier-2);
}

.weitersagen__satz
{
	max-width: 36rem;
	margin: 0;
	font-size: 1.02rem;
	line-height: 1.62;
	color: #3d4749;
}

.weitersagen__reihe
{
	list-style: none;
	counter-reset: teilen;
	margin: clamp(1.6rem, 3vw, 2.2rem) 0 0;
	padding: 0;
	max-width: 26rem;
	border-top: 1px solid rgba(27,34,36,.16);
}

.weitersagen__reihe li
{
	counter-increment: teilen;
	border-bottom: 1px solid rgba(27,34,36,.16);
}

.weitersagen__reihe a,
.weitersagen__reihe button
{
	display: grid;
	grid-template-columns: 2.6rem 1.5rem 1fr;
	align-items: center;
	gap: .2rem;
	width: 100%;
	margin: 0;
	padding: .78rem .2rem;
	border: 0;
	background: none;
	font: inherit;
	font-size: .97rem;
	text-align: left;
	text-decoration: none;
	color: var(--tinte);
	cursor: pointer;
	transition: color .2s ease, padding-left .2s ease;
}

.weitersagen__reihe a::before,
.weitersagen__reihe button::before
{
	content: counter(teilen, decimal-leading-zero);
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .24em;
	color: var(--grau);
	transition: color .2s ease;
}

.weitersagen__reihe a:hover,
.weitersagen__reihe button:hover,
.weitersagen__reihe a:focus-visible,
.weitersagen__reihe button:focus-visible
{
	color: var(--rot);
	padding-left: .45rem;
}

.weitersagen__reihe a:hover::before,
.weitersagen__reihe button:hover::before,
.weitersagen__reihe a:focus-visible::before,
.weitersagen__reihe button:focus-visible::before
{
	color: var(--rot);
}

.weitersagen__reihe svg { flex: none; }

.weitersagen__reihe [hidden] { display: none; }

/* ---------- Mitlaufende Leiste, rechts ----------
   Als schmale Kachelspalte im Duktus des Querlinkbands; die Bahn ist
   74rem breit, deshalb erst ab 1400 px. */

.kante { display: none; }

@media (min-width: 1400px)
{
	.kante
	{
		position: fixed;
		right: 1.3rem;
		top: 50%;
		transform: translateY(-50%);
		z-index: 40;
		display: grid;
		gap: .35rem;
	}

	.kante__el
	{
		display: flex;
		align-items: center;
		justify-content: center;
		width: 2.6rem;
		height: 2.6rem;
		padding: 0;
		border: 1px solid rgba(27,34,36,.16);
		border-radius: 2px;
		background: rgba(255,255,255,.55);
		color: var(--petrol);
		cursor: pointer;
		transition: background .2s ease, border-color .2s ease, color .2s ease;
	}

	.kante__el:hover,
	.kante__el:focus-visible,
	.kante__el.ist-kopiert
	{
		background: var(--rot);
		border-color: var(--rot);
		color: #fff;
	}

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

/* Ein nicht eingeblendetes Element bekommt auch keine Zeile in der Zählung. */
.weitersagen__reihe li:has([hidden])
{
	display: none;
}
