:root
{
	--kalk:    #eef0ea;
	--kalk-2:  #e2e6dc;
	--moos:    #2f3a30;
	--moos-2:  #3d4a3e;
	--rost:    #9c4a2f;
	--rost-2:  #c26a48;
	--tinte:   #1e241f;
	--grau:    #6d766c;

	--titel: "Helvetica Neue", "Arial Narrow", Helvetica, Arial, sans-serif;
	--lauf:  "Iowan Old Style", Charter, Georgia, "Times New Roman", serif;
}

*
{
	box-sizing: border-box;
}

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

body
{
	margin: 0;
	background: var(--kalk);
	color: var(--tinte);
	font-family: var(--lauf);
	font-size: clamp(1.02rem, .97rem + .32vw, 1.18rem);
	line-height: 1.72;
	-webkit-font-smoothing: antialiased;
}

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

.bahn
{
	width: min(90%, 76rem);
	margin: 0 auto;
}

.schmal
{
	max-width: 40rem;
}

/* ---------- Titel: Zeile über randabfallendem Bild ---------- */

.kopf
{
	padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(2.5rem, 5vw, 4rem);
}

.kennung
{
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 0 0 2.5rem;
	font-family: var(--titel);
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .26em;
	text-transform: uppercase;
	color: var(--rost);
}

.kennung::after
{
	content: "";
	flex: 1;
	height: 1px;
	background: currentColor;
	opacity: .35;
}

h1
{
	max-width: 22ch;
	margin: 0 0 1.8rem;
	font-family: var(--titel);
	font-size: clamp(2.5rem, 1rem + 6vw, 6rem);
	font-weight: 700;
	line-height: .94;
	letter-spacing: -.04em;
	color: var(--moos);
}

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

.kopf p
{
	max-width: 34rem;
	margin: 0;
	font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem);
	line-height: 1.5;
	color: var(--grau);
}

.kopfbild
{
	position: relative;
	overflow: hidden;
	background: var(--moos);
}

/* Grundregel: Bild immer vollständig — am Smartphone wird nichts beschnitten */
.kopfbild img
{
	width: 100%;
	height: auto;
	clip-path: inset(0 0 0 0);
	animation: aufdecken 1.4s cubic-bezier(.16,.8,.24,1) both;
}

/* Erst ab genug Breite darf beschnitten werden, und dann nach rechts,
   weil der Hund dort steht */
@media (min-width: 54rem)
{
	.kopfbild img
	{
		max-height: 78vh;
		object-fit: cover;
		object-position: right center;
	}
}

@keyframes aufdecken
{
	from { clip-path: inset(0 0 0 100%); }
	to   { clip-path: inset(0 0 0 0); }
}

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

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

.marke
{
	margin: 0 0 .9rem;
	font-family: var(--titel);
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .26em;
	text-transform: uppercase;
	color: var(--rost);
}

h2
{
	margin: 0 0 1.6rem;
	font-family: var(--titel);
	font-size: clamp(1.7rem, 1.2rem + 2.3vw, 3.1rem);
	font-weight: 700;
	line-height: 1.04;
	letter-spacing: -.03em;
	color: var(--moos);
}

h3
{
	font-family: var(--titel);
	letter-spacing: -.01em;
}

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

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

.gross
{
	font-size: clamp(1.25rem, 1.1rem + .8vw, 1.75rem);
	line-height: 1.42;
	color: var(--moos);
}

strong
{
	font-weight: 600;
	color: var(--moos);
}

/* ---------- Sticky: Bild bleibt, Text läuft ---------- */

.laeuft
{
	background: var(--moos);
	color: var(--kalk);
}

.laeuft h2,
.laeuft .gross,
.laeuft strong
{
	color: #fff;
}

.laeuft .marke
{
	color: var(--rost-2);
}

.laeuft__raster
{
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2rem, 5vw, 5rem);
	align-items: start;
}

.laeuft__bild
{
	position: sticky;
	top: 12vh;
}

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

.laeuft__bild figcaption
{
	margin-top: 1rem;
	font-family: var(--titel);
	font-size: .78rem;
	letter-spacing: .04em;
	color: rgba(238,240,234,.55);
}

.laeuft__text > div
{
	padding: clamp(2rem, 4vw, 3.5rem) 0;
	border-bottom: 1px solid rgba(238,240,234,.16);
}

.laeuft__text > div:first-child
{
	padding-top: 0;
}

.laeuft__text > div:last-child
{
	border-bottom: 0;
	padding-bottom: 0;
}

.laeuft__text h3
{
	margin: 0 0 .7rem;
	font-size: 1.3rem;
	font-weight: 700;
	color: #fff;
}

.laeuft__text p
{
	color: rgba(238,240,234,.82);
}

@media (max-width: 54rem)
{
	.laeuft__raster
	{
		grid-template-columns: 1fr;
	}

	.laeuft__bild
	{
		position: static;
	}
}

/* ---------- Größen als Tafel ---------- */

.groessen
{
	background: var(--kalk-2);
}

.tafel
{
	width: 100%;
	margin-top: 2.5rem;
	border-collapse: collapse;
	font-family: var(--titel);
	font-size: clamp(.9rem, .85rem + .25vw, 1rem);
}

.tafel caption
{
	margin-bottom: 1rem;
	font-family: var(--lauf);
	font-size: .95rem;
	font-style: italic;
	text-align: left;
	color: var(--grau);
}

.tafel th,
.tafel td
{
	padding: 1.05rem .8rem;
	text-align: left;
	border-bottom: 1px solid rgba(30,36,31,.16);
}

.tafel thead th
{
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--grau);
	border-bottom-color: var(--moos);
}

.tafel tbody th
{
	font-weight: 700;
	color: var(--moos);
}

.tafel td:last-child
{
	color: var(--grau);
}

@media (max-width: 40rem)
{
	.tafel th,
	.tafel td
	{
		padding: .8rem .4rem;
	}
}

/* ---------- Zertifikat ---------- */

.zert__raster
{
	display: grid;
	grid-template-columns: 6fr 5fr;
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
}

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

@media (max-width: 54rem)
{
	.zert__raster
	{
		grid-template-columns: 1fr;
	}
}

.pruef
{
	margin: 2rem 0 0;
	padding: 1.6rem 1.8rem;
	background: var(--moos);
	color: var(--kalk);
	border-radius: 2px;
}

.pruef p
{
	margin: 0;
	font-size: 1rem;
	color: rgba(238,240,234,.86);
}

.pruef strong
{
	color: #fff;
}

.knopf
{
	display: inline-block;
	margin-top: 2.2rem;
	padding: 1rem 2.3rem;
	background: var(--rost);
	color: #fff;
	font-family: var(--titel);
	font-size: .76rem;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 2px;
	transition: background .25s ease;
}

.knopf:hover,
.knopf:focus-visible
{
	background: var(--rost-2);
}

/* Das Siegel steht auf der hellen Kalkfläche — keine Kachel nötig,
   nur eine rostfarbene Linie als Anschluss an die Tafeln oben. */
.siegel
{
	display: grid;
	gap: 1.3rem;
	align-items: center;
	margin: 2.6rem 0 0;
	padding-left: 1.4rem;
	border-left: 2px solid var(--rost);
}

@media (min-width: 32rem)
{
	.siegel
	{
		grid-template-columns: 7rem 1fr;
	}
}

.siegel a
{
	display: block;
	justify-self: start;
	width: 7rem;
	max-width: 100%;
}

.siegel img
{
	width: 100%;
	height: auto;
}

.siegel figcaption
{
	margin: 0;
	font-family: var(--lauf);
	font-size: .95rem;
	line-height: 1.6;
	color: var(--grau);
}

/* ---------- Weitere Themen: als Karten ---------- */

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

.themen__karten
{
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr));
	gap: 1rem;
	margin-top: 2rem;
}

.themen__karten a
{
	display: block;
	min-width: 0;
	padding: 1.4rem 1.5rem;
	background: var(--kalk-2);
	border-left: 3px solid var(--rost);
	color: var(--moos);
	font-family: var(--titel);
	font-size: .95rem;
	line-height: 1.45;
	text-decoration: none;
	transition: background .22s ease, transform .22s ease;
}

.themen__karten a:hover,
.themen__karten a:focus-visible
{
	background: #fff;
	transform: translateY(-2px);
}

.themen__karten span[hidden]
{
	display: none;
}

/* ---------- Fuß: drei Spalten mit Trennlinien ---------- */

footer
{
	padding: 3rem 0 3.5rem;
	background: var(--tinte);
	color: rgba(238,240,234,.6);
	font-family: var(--titel);
	font-size: .78rem;
	line-height: 1.8;
}

footer .bahn
{
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
}

footer .spalte
{
	min-width: 0;
	padding: 0 1.8rem;
	border-left: 1px solid rgba(238,240,234,.16);
}

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

footer b
{
	display: block;
	margin-bottom: .3rem;
	color: rgba(238,240,234,.92);
	font-weight: 700;
}

footer a
{
	color: rgba(238,240,234,.92);
	text-decoration: none;
	border-bottom: 1px solid rgba(194,106,72,.6);
	transition: color .2s ease, border-color .2s ease;
}

footer a:hover,
footer a:focus-visible
{
	color: #fff;
	border-color: var(--rost-2);
}

footer address
{
	font-style: normal;
}

@media (max-width: 44rem)
{
	footer .spalte
	{
		padding: 1.2rem 0;
		border-left: 0;
		border-top: 1px solid rgba(238,240,234,.16);
	}

	footer .spalte:first-child
	{
		padding-top: 0;
		border-top: 0;
	}
}

/* ---------- Effekt ---------- */

.hoch
{
	opacity: 0;
	transform: translateY(1.2rem);
	transition: opacity .75s ease, transform .75s cubic-bezier(.16,.8,.3,1);
}

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

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

	.kopfbild img
	{
		animation: none;
	}
}

/* ---------- Empfehlung: eine durchlaufende Zeile.
   Kein Kasten, keine Reihe — Botschaft und Wege stehen im selben Satzfluss,
   getrennt nur durch Gedankenstriche in Rost. ---------- */

.empfehlen
{
	padding: 0 0 clamp(2.4rem, 5vw, 3.6rem);
}

.empfehlen__zeile
{
	max-width: 62rem;
	margin: 0;
	padding-top: clamp(1.8rem, 4vw, 2.8rem);
	border-top: 1px solid var(--kalk-2);
	font-family: var(--lauf);
	font-size: clamp(.98rem, .94rem + .2vw, 1.08rem);
	line-height: 2;
	color: var(--grau);
	text-wrap: pretty;
}

.empfehlen__strich
{
	margin: 0 .5em;
	color: var(--rost);
}

.empfehlen__weg
{
	display: inline;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	color: var(--moos);
	cursor: pointer;
	text-decoration: underline;
	text-decoration-color: var(--rost-2);
	text-decoration-thickness: 1px;
	text-underline-offset: .22em;
}

.empfehlen__weg svg
{
	vertical-align: -.16em;
	margin-right: .34em;
	color: var(--rost);
}

.empfehlen__weg:hover,
.empfehlen__weg:focus-visible
{
	color: var(--rost);
}

.empfehlen__weg[hidden]
{
	display: none;
}

/* ---------- Mitscrollende Leiste: rechter Rand, blanke Symbole ohne Kasten.
   Erst ab 1340 px, davor steht die Bahn zu nah am Rand. ---------- */

.randspur
{
	display: none;
}

@media (min-width: 1340px)
{
	.randspur
	{
		display: flex;
		position: fixed;
		right: 1.4rem;
		top: 42%;
		flex-direction: column;
		align-items: center;
		gap: 1.15rem;
		z-index: 20;
	}

	.randspur::after
	{
		content: "";
		width: 1px;
		height: 3.5rem;
		background: linear-gradient(180deg, var(--rost) 0%, transparent 100%);
		opacity: .5;
	}

	.randspur__zeichen
	{
		display: block;
		padding: 0;
		border: 0;
		background: none;
		color: var(--moos-2);
		opacity: .65;
		cursor: pointer;
		transition: color .22s ease, opacity .22s ease, transform .22s ease;
	}

	.randspur__zeichen:hover,
	.randspur__zeichen:focus-visible,
	.randspur__zeichen.ist-kopiert
	{
		color: var(--rost);
		opacity: 1;
		transform: translateX(-2px);
	}

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

/* Steht hinter einem Gedankenstrich ein ausgeblendeter Weg, verschwindet
   auch der Strich — sonst endet die Zeile mit einem Strich ins Leere. */
.empfehlen__strich:has(+ [hidden])
{
	display: none;
}
