:root
{
	--nebel: #e9ebec;
	--nebel-tief: #ced3d6;
	--nebel-dunkel: #8b9297;
	--moor: #3d2e22;
	--moor-hell: #6b543f;
	--torf: #2a2019;
	--tinte: #22211f;
}

*
{
	box-sizing: border-box;
}

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

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

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

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

/* ---- Typografie: Wirkung aus Dichte, nicht aus Größe.
   Titel und Zwischentitel stehen im selben, mittleren Grad — sehr schwer,
   sehr eng gesetzt, mit knappem Zeilenabstand. ---- */

h1, h2
{
	margin: 0;
	font-size: clamp(1.5rem, 1.08rem + 1.5vw, 2.1rem);
	font-weight: 800;
	letter-spacing: -.042em;
	line-height: 1.02;
}

h1
{
	max-width: 15ch;
}

h2
{
	max-width: 18ch;
	margin-bottom: 1.1rem;
}

p
{
	margin: 0 0 1.15em;
}

.marke
{
	display: block;
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--moor-hell);
	margin-bottom: 1rem;
}

figure
{
	margin: 0;
}

figcaption
{
	margin-top: .6rem;
	font-size: .78rem;
	line-height: 1.6;
	color: #5d6167;
}

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

.kopf
{
	padding: clamp(2.6rem, 5.5vw, 4.4rem) 0 clamp(1.6rem, 3vw, 2.4rem);
}

.kopf__lead
{
	max-width: 34rem;
	margin-top: 1.5rem;
	color: #43474c;
}

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

/* ---- Der Spaltentausch ---- */

.wechsel
{
	display: grid;
	gap: clamp(1.6rem, 4vw, 3.2rem);
	align-items: center;
	padding: clamp(2.4rem, 5vw, 4.2rem) 0;
}

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

	/* Ab der Seitenmitte tauschen Bild und Text die Seite. */
	.wechsel--getauscht
	{
		grid-template-columns: 1fr 1.05fr;
	}

	.wechsel--getauscht .wechsel__bild
	{
		order: 2;
	}
}

.wechsel__text
{
	max-width: 34rem;
}

.wechsel__text > *:last-child
{
	margin-bottom: 0;
}

/* ---- Der Standardsatz ---- */

.standard
{
	background: var(--moor);
	color: #e5dcd2;
	padding: clamp(2.6rem, 5.5vw, 4.4rem) 0;
}

.standard h2
{
	color: #fff;
	margin-bottom: 1.4rem;
}

.standard .marke
{
	color: #b39a80;
}

.standard__satz
{
	max-width: 40rem;
	font-size: clamp(1.1rem, .92rem + .72vw, 1.35rem);
	line-height: 1.55;
	margin: 0 0 1.3rem;
}

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

/* ---- Das Gewicht, das ein Wort verliert ---- */

.gewicht
{
	background: var(--torf);
	color: #ddd5cc;
	padding: clamp(3rem, 6vw, 5rem) 0;
}

.satzbild
{
	margin: 0;
	max-width: 30rem;
	font-size: clamp(1.7rem, 1rem + 2.6vw, 2.9rem);
	line-height: 1.16;
	letter-spacing: -.04em;
	font-weight: 800;
	color: #fff;
}

.wort
{
	position: relative;
	display: inline-block;
	white-space: nowrap;
}

.wort .schwer
{
	position: absolute;
	inset: 0;
	font-weight: 800;
	letter-spacing: -.04em;
	opacity: 0;
	pointer-events: none;
}

.wort .leicht
{
	font-weight: 200;
	letter-spacing: .01em;
	color: #b8ada1;
}

/* Vor dem Effekt liegt das schwere Wort oben. Ohne JavaScript entfällt das
   und der Endzustand steht sofort. */
.js .wort .schwer
{
	opacity: 1;
	transition: opacity .85s ease;
}

.js .wort .leicht
{
	opacity: 0;
	transition: opacity .85s ease;
}

.js .abgelegt .wort .schwer
{
	opacity: 0;
}

.js .abgelegt .wort .leicht
{
	opacity: 1;
}

.gewicht p
{
	max-width: 34rem;
	margin-top: 1.6rem;
	margin-bottom: 0;
	color: #a89c90;
	font-size: .96rem;
}

/* ---- Schluss ---- */

.schluss
{
	padding: clamp(2.6rem, 5.5vw, 4.4rem) 0;
}

.schluss__text
{
	max-width: 36rem;
}

.knopf
{
	display: inline-block;
	margin-top: .7rem;
	padding: .8rem 1.7rem;
	background: var(--moor);
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	letter-spacing: -.01em;
	border-radius: 2px;
}

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

/* ---- Das Siegel: unter einer Haarlinie, wie die Querlinkzeile darunter ---- */

.siegel
{
	max-width: 36rem;
	margin: clamp(2rem, 4vw, 2.8rem) 0 0;
	padding-top: 1.6rem;
	border-top: 1px solid var(--nebel-tief);
}

/* helle Kachel: das Siegel ist schwarze Linie auf transparentem Grund und
   soll nicht im Nebelgrau der Seite absaufen */
.siegel a
{
	display: block;
	width: 8.6rem;
	max-width: 100%;
	padding: .9rem;
	background: #fff;
	border-bottom: 0;
}

.siegel img
{
	width: 100%;
}

.siegel figcaption
{
	margin-top: 1rem;
	max-width: 32rem;
	font-size: .84rem;
	line-height: 1.65;
	color: #43474c;
}

/* ---- Querlinks: Wischfüllung von links ---- */

.themen
{
	padding: clamp(2.6rem, 5vw, 4rem) 0 clamp(2.2rem, 4vw, 3.2rem);
	border-top: 1px solid var(--nebel-tief);
}

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

.themen h2
{
	max-width: none;
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--moor-hell);
	margin-bottom: 1.4rem;
}

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

.themenliste li
{
	display: block;
	position: relative;
	overflow: hidden;
	border-bottom: 1px solid var(--nebel-tief);
}

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

.themenliste li::before
{
	content: "";
	position: absolute;
	inset: 0;
	background: var(--moor);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform .4s cubic-bezier(.2, .72, .18, 1);
}

.themenliste li:hover::before
{
	transform: none;
}

.themenliste a
{
	position: relative;
	display: block;
	padding: .7rem .9rem;
	font-size: .95rem;
	letter-spacing: -.008em;
	color: var(--tinte);
	text-decoration: none;
}

.themenliste li:hover a
{
	color: #fff;
}

/* ---- Fuß: ein großes Wort links, alle Angaben rechts ---- */

.fuss
{
	background: var(--moor);
	color: #cdc2b6;
	padding: clamp(2.4rem, 5vw, 3.8rem) 0 clamp(2.6rem, 5vw, 4rem);
	font-size: .84rem;
	line-height: 1.76;
}

.fuss__bau
{
	display: grid;
	gap: 1.4rem clamp(2rem, 5vw, 4rem);
}

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

.fuss__wort
{
	font-size: clamp(1.5rem, 1rem + 1.8vw, 2.2rem);
	font-weight: 800;
	letter-spacing: -.042em;
	line-height: 1;
	color: #7d6650;
}

.fuss b
{
	color: #fff;
	font-weight: 700;
}

.fuss a
{
	color: #fff;
	text-decoration: none;
	border-bottom: 1px solid #7d6650;
}

.fuss a:hover
{
	border-bottom-color: #fff;
}

@media (prefers-reduced-motion: reduce)
{
	.js .wort .schwer
	{
		opacity: 0;
		transition: none;
	}

	.js .wort .leicht
	{
		opacity: 1;
		transition: none;
	}

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

/* ---- Weitergeben: Umriss-Knöpfe in einer Reihe ---- */

.weiter
{
	padding: 0 0 clamp(2.6rem, 5vw, 4rem);
}

.weiter__satz
{
	max-width: 36rem;
	margin: 0 0 1.4rem;
	color: #43474c;
}

.weiter__reihe
{
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}

.weiter__el
{
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .55rem 1.05rem;
	border: 1px solid var(--nebel-dunkel);
	border-radius: 2px;
	background: none;
	font: inherit;
	font-size: .86rem;
	font-weight: 700;
	letter-spacing: -.012em;
	line-height: 1.4;
	color: var(--tinte);
	text-decoration: none;
	cursor: pointer;
	transition: background .3s ease, border-color .3s ease, color .3s ease;
}

.weiter__el[hidden]
{
	display: none;
}

.weiter__sym
{
	flex: none;
	color: var(--moor-hell);
	transition: color .3s ease;
}

.weiter__el:hover,
.weiter__el:focus-visible
{
	background: var(--moor);
	border-color: var(--moor);
	color: #fff;
}

.weiter__el:hover .weiter__sym,
.weiter__el:focus-visible .weiter__sym
{
	color: #b39a80;
}

.weiter__el:focus-visible
{
	outline: 2px solid var(--moor);
	outline-offset: 2px;
}

/* ---- Leiste: links, Umrisskästchen untereinander ---- */

.leiste
{
	display: none;
}

@media (min-width: 90rem)
{
	.leiste
	{
		position: fixed;
		left: 1.3rem;
		top: 42%;
		z-index: 5;
		display: flex;
		flex-direction: column;
	}

	.leiste__el
	{
		display: flex;
		align-items: center;
		justify-content: center;
		width: 2.5rem;
		height: 2.5rem;
		margin-bottom: -1px;
		border: 1px solid var(--nebel-dunkel);
		border-radius: 0;
		background: var(--nebel);
		color: var(--moor);
		cursor: pointer;
		transition: background .3s ease, color .3s ease;
	}

	.leiste__el[hidden]
	{
		display: none;
	}

	.leiste__el:hover,
	.leiste__el:focus-visible,
	.leiste__el.ist-kopiert
	{
		background: var(--moor);
		color: #fff;
	}

	.leiste__el:focus-visible
	{
		outline: 2px solid var(--moor);
		outline-offset: 2px;
	}
}
