:root
{
	--weiss: #fbfcfd;
	--weiss-tief: #eef2f7;
	--kobalt: #1543a8;
	--kobalt-hell: #2f63d4;
	--kobalt-nacht: #0d2a66;
	--tinte: #17202e;
	--grau: #667186;
	--linie: #d3dce8;
}

*
{
	box-sizing: border-box;
}

body
{
	margin: 0;
	background: var(--weiss);
	color: var(--tinte);
	font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: clamp(1rem, .58rem + .54vw, 1.12rem);
	line-height: 1.78;
	-webkit-text-size-adjust: 100%;
}

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

a
{
	color: var(--kobalt);
}

.bahn
{
	width: min(100% - 2.6rem, 72rem);
	margin-inline: auto;
}

/* ---- Typografie: der Titel ist die einzige große Schrift.
   Alle Zwischentitel stehen im Grad des Fließtextes, versal, gesperrt, kobalt. ---- */

h1
{
	margin: 0;
	font-size: clamp(2.2rem, .9rem + 5vw, 4.6rem);
	font-weight: 600;
	line-height: 1.06;
	letter-spacing: -.028em;
}

h2
{
	margin: 0 0 1.1rem;
	font-size: 1em;
	font-weight: 700;
	line-height: 1.6;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--kobalt);
}

p
{
	margin: 0 0 1.2em;
}

/* ---- Asymmetrisch zweispaltiger Satz: schmale Marke links, Text rechts ---- */

.satz
{
	display: grid;
	gap: .4rem clamp(1.6rem, 5vw, 4.5rem);
	padding: clamp(2.6rem, 5vw, 4.2rem) 0;
	border-top: 1px solid var(--linie);
}

@media (min-width: 54rem)
{
	.satz
	{
		grid-template-columns: 16rem minmax(0, 38rem);
	}
}

.satz__text > *:last-child
{
	margin-bottom: 0;
}
.satz__text strong
{
	font-weight: 600;
	color: var(--kobalt);
	letter-spacing: .05em;
}

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

.kopf
{
	padding: clamp(3rem, 6vw, 5.4rem) 0 clamp(2rem, 4vw, 3rem);
}

.kopf__marke
{
	font-size: .78rem;
	letter-spacing: .3em;
	text-transform: uppercase;
	color: var(--kobalt);
	font-weight: 700;
	margin: 0 0 1.5rem;
}

.kopf__lead
{
	max-width: 38rem;
	margin-top: 1.8rem;
	color: #3d4759;
	font-size: 1.14em;
}

.kopf__bild
{
	margin-top: clamp(2rem, 4vw, 3.2rem);
}

figure
{
	margin: 0;
}

figcaption
{
	margin-top: .75rem;
	font-size: .82rem;
	line-height: 1.62;
	color: var(--grau);
	max-width: 44rem;
}

/* ---- Die Weiche ---- */

.weiche
{
	background: var(--weiss-tief);
	padding: clamp(3rem, 6vw, 5rem) 0;
	margin: clamp(2.6rem, 5vw, 4rem) 0;
}

.weiche__bau
{
	margin-top: 2.4rem;
	display: grid;
	gap: 0;
}

.stamm
{
	border: 2px solid var(--kobalt);
	background: #fff;
	padding: 1.3rem clamp(1.1rem, 3vw, 1.8rem);
	max-width: 34rem;
}

.stamm b,
.ast b
{
	display: block;
	font-size: .74rem;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--kobalt);
	margin-bottom: .35rem;
}

.stamm p,
.ast p
{
	margin: 0;
	font-size: .96rem;
	line-height: 1.62;
}

.aeste
{
	display: grid;
	gap: 1.1rem;
	margin-top: 1.1rem;
	padding-left: clamp(1rem, 4vw, 3.4rem);
	border-left: 2px solid var(--kobalt);
}

@media (min-width: 52rem)
{
	.aeste
	{
		grid-template-columns: 1.35fr 1fr;
		align-items: start;
	}
}

.ast
{
	background: #fff;
	border: 1px solid var(--linie);
	padding: 1.3rem clamp(1.1rem, 3vw, 1.8rem);
	position: relative;
}

.ast--breit
{
	border-color: var(--kobalt);
}

.ast--schmal
{
	background: var(--kobalt-nacht);
	color: #dbe6fb;
	border-color: var(--kobalt-nacht);
	transform-origin: left center;
}

/* Der Startzustand des Effekts wird nur gesetzt, wenn JavaScript läuft —
   ohne JS steht der Ast von Anfang an vollständig da. */
.js .ast--schmal
{
	transform: scaleX(.16);
	opacity: 0;
	transition: transform .8s cubic-bezier(.2, .7, .2, 1), opacity .5s ease;
}

.ast--schmal b
{
	color: #8fb2f5;
}

.js .gewachsen .ast--schmal
{
	transform: none;
	opacity: 1;
}

.weiche__fuss
{
	margin-top: 1.6rem;
	font-size: .84rem;
	color: var(--grau);
	max-width: 40rem;
}

/* ---- Bildpaar ---- */

.zwei
{
	display: grid;
	gap: clamp(1.4rem, 3.5vw, 2.6rem);
	margin: clamp(2.6rem, 5vw, 4rem) 0;
}

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

/* ---- Merksatz ---- */

.merk
{
	background: var(--kobalt);
	color: #fff;
	padding: clamp(2.8rem, 6vw, 4.6rem) 0;
	margin: clamp(2.6rem, 5vw, 4rem) 0;
}

.merk p
{
	margin: 0;
	max-width: 40rem;
	font-size: clamp(1.35rem, .85rem + 1.7vw, 2.05rem);
	line-height: 1.36;
	font-weight: 600;
	letter-spacing: -.014em;
}

.merk small
{
	display: block;
	margin-top: 1.2rem;
	font-size: .85rem;
	font-weight: 400;
	letter-spacing: .04em;
	line-height: 1.7;
	color: #c4d6fb;
	max-width: 40rem;
}

/* ---- Knopf ---- */

.knopf
{
	display: inline-block;
	margin-top: .8rem;
	padding: .82rem 1.7rem;
	background: var(--kobalt);
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	border-radius: 2px;
}

.knopf:hover
{
	background: var(--kobalt-nacht);
}

/* ---- Siegel: Befundkarte in der linken Spalte ---- */

.befundsiegel
{
	margin: clamp(1.6rem, 4vw, 2.4rem) 0 0;
	max-width: 16rem;
}

.befundsiegel a
{
	display: block;
	padding: 1rem;
	background: var(--weiss-tief);
	border-left: 3px solid var(--kobalt);
}

.befundsiegel img
{
	width: 100%;
}

.befundsiegel figcaption
{
	margin-top: .85rem;
	font-size: .8rem;
	line-height: 1.62;
	color: var(--grau);
}

.befundsiegel figcaption b
{
	display: block;
	font-weight: 600;
	font-size: .68rem;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: var(--kobalt);
}

/* ---- Querlinks: dünne Oberlinie je Zeile, die beim Überfahren durchläuft ---- */

.themen
{
	padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.4rem, 4vw, 3.4rem);
}

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

.themenliste
{
	list-style: none;
	margin: 2rem 0 0;
	padding: 0;
	display: grid;
	gap: 0 clamp(2rem, 5vw, 4rem);
}

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

.themenliste li
{
	display: block;
	padding: .95rem 0 .85rem;
	position: relative;
}

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

.themenliste li::before
{
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 2.6rem;
	height: 1px;
	background: var(--kobalt);
	transition: width .45s cubic-bezier(.2, .7, .2, 1);
}

.themenliste li:hover::before
{
	width: 100%;
}

.themenliste a
{
	font-size: .95rem;
	line-height: 1.55;
	color: var(--tinte);
	text-decoration: none;
}

.themenliste li:hover a
{
	color: var(--kobalt);
}

/* ---- Fuß: vier Blöcke unter einer Kobaltlinie, Beschriftungen rechtsbündig ---- */

.fuss
{
	border-top: 3px solid var(--kobalt);
	padding: clamp(2.4rem, 5vw, 3.6rem) 0 clamp(2.6rem, 5vw, 4rem);
	font-size: .84rem;
	line-height: 1.72;
	color: #40495a;
}

.fuss__raster
{
	display: grid;
	gap: 1.8rem clamp(1.6rem, 4vw, 3rem);
}

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

@media (min-width: 68rem)
{
	.fuss__raster
	{
		grid-template-columns: repeat(4, 1fr);
	}
}

.fuss b
{
	display: block;
	text-align: right;
	font-size: .7rem;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--kobalt);
	margin-bottom: .45rem;
	padding-bottom: .3rem;
	border-bottom: 1px solid var(--linie);
}

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

.fuss a:hover
{
	border-bottom-color: var(--kobalt);
}

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

	.themenliste li::before
	{
		transition: none;
	}
}

/* ---- Empfehlung: eine Reihe ohne Rahmen und ohne Fläche.
   Getrennt wird allein durch senkrechte Striche in der Linienfarbe. ---- */

.weiterreichen
{
	background: var(--weiss-tief);
	padding: clamp(2.2rem, 5vw, 3.4rem) 0 clamp(2.4rem, 5.5vw, 3.8rem);
}

.weiterreichen__satz
{
	max-width: 40rem;
	margin: 0 0 clamp(1.2rem, 2.8vw, 1.9rem);
	font-size: .88rem;
	line-height: 1.72;
	color: var(--grau);
}

.weiterreichen__reihe
{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	row-gap: .3rem;
}

.weiterreichen__weg
{
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .25rem 1.1rem;
	margin: 0;
	border: 0;
	border-left: 1px solid var(--linie);
	background: none;
	font-family: inherit;
	font-size: .84rem;
	font-weight: 600;
	letter-spacing: .01em;
	line-height: 1.5;
	color: var(--kobalt);
	text-decoration: none;
	cursor: pointer;
	transition: color .2s ease;
}

.weiterreichen__weg:first-child
{
	padding-left: 0;
	border-left: 0;
}

.weiterreichen__weg svg { flex: none; color: var(--kobalt-hell); }

.weiterreichen__weg:hover,
.weiterreichen__weg:focus-visible
{
	color: var(--kobalt-nacht);
	text-decoration: underline;
	text-underline-offset: .25em;
}

.weiterreichen__weg[hidden] { display: none; }

/* ---- Mitscrollende Leiste: linker Rand, ein durchgehender Kobaltstreifen.
   Erst ab 1300 px — darunter reicht die Bahn zu weit nach außen. ---- */

.streifen { display: none; }

@media (min-width: 1300px)
{
	.streifen
	{
		display: flex;
		position: fixed;
		left: 0;
		top: 50%;
		transform: translateY(-50%);
		flex-direction: column;
		background: var(--kobalt);
		z-index: 20;
	}

	.streifen__zeichen
	{
		display: grid;
		place-items: center;
		width: 2.6rem;
		height: 2.6rem;
		padding: 0;
		border: 0;
		border-top: 1px solid rgba(251, 252, 253, .22);
		background: none;
		color: #dce6fa;
		cursor: pointer;
		transition: background-color .2s ease, color .2s ease;
	}

	.streifen__zeichen:first-child { border-top: 0; }

	.streifen__zeichen:hover,
	.streifen__zeichen:focus-visible,
	.streifen__zeichen.ist-kopiert
	{
		background: var(--kobalt-nacht);
		color: var(--weiss);
	}

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