/* ------------------------------------------------------------------
   zertifikat-pruefen.qualzuchtpraevention.com
   Farbwelt aus den Bildern: Graphit, ein kühles Grün als einziges
   Leuchten. Technisch, dunkel, konzentriert.
   Layout: die Code-Eingabe selbst ist das Hauptmotiv.
   Typografie: Monospace als Leitschrift, nicht als Akzent.
   Effekt: der Code erscheint Zeichen für Zeichen.
   Auf der Seite selbst wird bewusst kein QR-Code abgebildet — sie erklärt ihn,
   sie ist nicht die Urkunde.
   ------------------------------------------------------------------ */

*
{
	box-sizing: border-box;
}

:root
{
	--graphit: #15181a;
	--graphit2: #1e2225;
	--graphit3: #2a2f33;
	--gruen: #6fe0a8;
	--gruen2: #3f9d74;
	--text: #dfe4e2;
	--matt: #8d9997;

	--bahn: 70rem;
	--eng: 40rem;
	--mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
	--sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html
{
	-webkit-text-size-adjust: 100%;
}

body
{
	margin: 0;
	background: var(--graphit);
	color: var(--text);
	font: 400 clamp(1rem, .96rem + .22vw, 1.09rem)/1.7 var(--mono);
}

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

a
{
	color: inherit;
}

.bahn
{
	max-width: var(--bahn);
	margin: 0 auto;
	padding: 0 clamp(1.2rem, 4.5vw, 3.2rem);
}

/* --- Titel -------------------------------------------------------- */

.titel
{
	padding: clamp(3.4rem, 9vw, 7rem) 0 clamp(2rem, 5vw, 3.2rem);
}

.titel__marke
{
	margin: 0;
	font-size: .78rem;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: var(--gruen2);
}

h1
{
	margin: clamp(1.3rem, 3vw, 2rem) 0 0;
	font-family: var(--sans);
	font-weight: 300;
	font-size: clamp(2.1rem, 1.2rem + 4vw, 4.2rem);
	line-height: 1.12;
	letter-spacing: -.015em;
	max-width: 20ch;
}

h1 b
{
	font-weight: 600;
	color: var(--gruen);
}

.titel__unter
{
	max-width: 42rem;
	margin: clamp(1.5rem, 3vw, 2.2rem) 0 0;
	font-family: var(--sans);
	font-size: clamp(1.04rem, 1rem + .35vw, 1.24rem);
	line-height: 1.62;
	color: #bfc7c5;
}

/* --- die Eingabe -------------------------------------------------- */

.eingabe
{
	padding: clamp(2rem, 5vw, 3.4rem) 0 clamp(3rem, 7vw, 5rem);
}

.eingabe__rahmen
{
	border: 1px solid var(--graphit3);
	background: var(--graphit2);
	padding: clamp(1.6rem, 4vw, 3rem);
	box-shadow: 0 0 0 1px rgba(111, 224, 168, .06), 0 30px 70px -50px rgba(111, 224, 168, .5);
}

.eingabe__label
{
	margin: 0 0 1.2rem;
	font-size: .76rem;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--matt);
}

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

.felder i
{
	display: grid;
	place-items: center;
	width: clamp(2.1rem, 6.5vw, 3.4rem);
	height: clamp(2.8rem, 8vw, 4.4rem);
	background: #14181a;
	border: 1px solid var(--graphit3);
	border-radius: 2px;
	font-style: normal;
	font-size: clamp(1.1rem, .8rem + 1.4vw, 1.9rem);
	color: var(--gruen);
	opacity: .25;
	transition: opacity .18s ease, border-color .18s ease;
}

.felder i.an
{
	opacity: 1;
	border-color: var(--gruen2);
}

.kein-js .felder i
{
	opacity: 1;
	border-color: var(--gruen2);
}

.eingabe a,
.zeus p a
{
	color: var(--gruen);
	text-decoration: none;
	border-bottom: 1px solid var(--gruen2);
}

.eingabe a:hover,
.eingabe a:focus,
.zeus p a:hover,
.zeus p a:focus
{
	border-bottom-color: var(--gruen);
}

.eingabe__fuss
{
	margin: 1.4rem 0 0;
	font-size: .84rem;
	color: var(--matt);
}

.eingabe__erklaerung
{
	max-width: 46rem;
	margin: clamp(1.8rem, 4vw, 2.6rem) 0 0;
	font-family: var(--sans);
	color: #c6cecc;
}

/* --- Bilder ------------------------------------------------------- */

.breitbild
{
	margin: 0 auto;
	max-width: var(--bahn);
	padding: 0 clamp(1.2rem, 4.5vw, 3.2rem);
}

.breitbild img
{
	width: 100%;
	filter: saturate(.9);
}

figcaption
{
	padding: .75rem 0 0;
	font-size: .82rem;
	line-height: 1.55;
	color: var(--matt);
}

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

section
{
	padding: clamp(2.8rem, 7vw, 5.2rem) 0;
}

h2
{
	margin: 0 0 1.4rem;
	font-family: var(--sans);
	font-weight: 400;
	font-size: clamp(1.5rem, 1.15rem + 1.6vw, 2.4rem);
	line-height: 1.2;
}

p
{
	max-width: var(--eng);
	font-family: var(--sans);
}

/* --- die drei Gründe ---------------------------------------------- */

.gruende
{
	background: var(--graphit2);
	border-top: 1px solid var(--graphit3);
	border-bottom: 1px solid var(--graphit3);
}

.gruende ol
{
	list-style: none;
	margin: clamp(1.6rem, 3.5vw, 2.4rem) 0 0;
	padding: 0;
	counter-reset: g;
	max-width: 52rem;
}

.gruende li
{
	counter-increment: g;
	padding: 1.3rem 0;
	border-top: 1px solid var(--graphit3);
	display: grid;
	grid-template-columns: 3.2rem 1fr;
	gap: 0 1rem;
}

.gruende li::before
{
	content: "0" counter(g);
	color: var(--gruen2);
	font-size: .92rem;
	line-height: 1.9;
}

.gruende b
{
	font-family: var(--sans);
	font-size: 1.08rem;
	font-weight: 600;
}

.gruende p
{
	grid-column: 2;
	margin: .4rem 0 0;
	max-width: 38rem;
	color: #c3cbc9;
}

/* --- Bild-Text-Paare ---------------------------------------------- */

.paar__raster
{
	display: grid;
	gap: clamp(1.8rem, 4vw, 3.4rem);
	grid-template-columns: 1fr;
	align-items: center;
}

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

	.paar--links figure
	{
		order: -1;
	}
}

.paar figure
{
	margin: 0;
	min-width: 0;
}

.paar figure img
{
	width: 100%;
}

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

.merk
{
	text-align: left;
}

.merk p
{
	max-width: 30ch;
	margin: 0;
	font-family: var(--sans);
	font-weight: 300;
	font-size: clamp(1.5rem, 1.1rem + 2.2vw, 2.9rem);
	line-height: 1.3;
	color: var(--gruen);
}

/* --- ZEUS --------------------------------------------------------- */

.zeus
{
	background: var(--graphit2);
	border-top: 1px solid var(--graphit3);
}

.zeus p
{
	margin: 0 0 1.1rem;
	color: #c8d0ce;
}

.knopf
{
	display: inline-block;
	margin-top: clamp(1.8rem, 3.5vw, 2.6rem);
	padding: .9rem 1.7rem;
	background: var(--gruen);
	color: #10201a;
	font: 600 .95rem/1 var(--sans);
	text-decoration: none;
	border-radius: 2px;
}

.knopf:hover,
.knopf:focus
{
	background: #8ff0bd;
}

/* --- Siegel als Beleg-Zeile --------------------------------------- */

.beleg
{
	margin: clamp(2.4rem, 5vw, 3.6rem) 0 0;
	max-width: 46rem;
	border: 1px solid var(--graphit3);
	background: var(--graphit);
	padding: clamp(1.1rem, 2.6vw, 1.6rem);
	display: grid;
	gap: clamp(1rem, 3vw, 1.8rem);
	grid-template-columns: 1fr;
	align-items: center;
}

@media (min-width: 40rem)
{
	.beleg
	{
		grid-template-columns: 9.5rem 1fr;
	}
}

.beleg a
{
	display: block;
	background: #e9efec;
	padding: .8rem;
	border: 1px solid var(--gruen2);
	border-radius: 2px;
	max-width: 9.5rem;
}

.beleg img { width: 100%; }

.beleg figcaption
{
	padding: 0;
	font-family: var(--sans);
	font-size: .86rem;
	line-height: 1.6;
	color: #c0c8c6;
}

.beleg figcaption b
{
	display: block;
	margin-bottom: .35rem;
	font-family: var(--mono);
	font-weight: 400;
	font-size: .72rem;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--gruen2);
}

.beleg figcaption a
{
	display: inline;
	background: none;
	border: 0;
	padding: 0;
	max-width: none;
	color: var(--gruen);
	text-decoration: none;
	border-bottom: 1px solid var(--gruen2);
}

/* --- Querlinks als Zeilenprotokoll -------------------------------- */

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

.themenliste
{
	list-style: none;
	margin: clamp(1.4rem, 3vw, 2rem) 0 0;
	padding: 0;
	max-width: 60rem;
	font-size: .93rem;
}

.themenliste li
{
	padding: .42rem 0;
}

.themenliste li::before
{
	content: "› ";
	color: var(--gruen2);
}

.themenliste a
{
	text-decoration: none;
	color: var(--text);
}

.themenliste a:hover,
.themenliste a:focus
{
	color: var(--gruen);
	background: rgba(111, 224, 168, .08);
}

/* --- Fuß ---------------------------------------------------------- */

.fuss
{
	border-top: 1px solid var(--graphit3);
	padding: clamp(2rem, 5vw, 3rem) 0 clamp(3rem, 7vw, 4.4rem);
	font-size: .8rem;
	line-height: 2;
	color: var(--matt);
}

.fuss__zeile
{
	max-width: 66rem;
}

.fuss__zeile + .fuss__zeile
{
	margin-top: .9rem;
}

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

@media (prefers-reduced-motion: reduce)
{
	.felder i
	{
		transition: none;
	}
}

/* ---- Empfehlung: ein Kasten auf gedecktem Graphit.
   Der Kasten ist das einzige gerahmte Element nach der Code-Eingabe —
   er wiederholt deren Bauweise in ruhiger Form. ---- */

.weitergabe
{
	background: var(--graphit2);
	padding: clamp(2.4rem, 5.5vw, 4rem) 0;
}

.weitergabe__kasten
{
	max-width: 52rem;
	padding: clamp(1.3rem, 3.4vw, 2.2rem);
	border: 1px solid var(--graphit3);
	background: var(--graphit);
}

.weitergabe__satz
{
	margin: 0 0 1.3rem;
	font-family: var(--sans);
	font-size: .92rem;
	line-height: 1.66;
	color: var(--matt);
}

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

.weitergabe__weg
{
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .5rem .85rem;
	border: 1px solid var(--graphit3);
	background: var(--graphit2);
	font-family: var(--mono);
	font-size: .8rem;
	line-height: 1.4;
	color: var(--text);
	text-decoration: none;
	cursor: pointer;
	transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}

.weitergabe__weg svg { flex: none; color: var(--gruen2); transition: color .2s ease; }

.weitergabe__weg:hover,
.weitergabe__weg:focus-visible
{
	border-color: var(--gruen2);
	color: var(--gruen);
}

.weitergabe__weg:hover svg,
.weitergabe__weg:focus-visible svg { color: var(--gruen); }

.weitergabe__weg[hidden] { display: none; }

/* ---- Mitscrollende Leiste: rechter Rand, eckige Felder.
   Erst ab 1280 px, davor steht die Bahn zu nah am Rand. ---- */

.spur { display: none; }

@media (min-width: 1280px)
{
	.spur
	{
		display: flex;
		position: fixed;
		right: 1.2rem;
		top: 50%;
		transform: translateY(-50%);
		flex-direction: column;
		gap: .3rem;
		z-index: 20;
	}

	.spur__zeichen
	{
		display: grid;
		place-items: center;
		width: 2.4rem;
		height: 2.4rem;
		padding: 0;
		border: 1px solid var(--graphit3);
		background: var(--graphit2);
		color: var(--matt);
		cursor: pointer;
		transition: border-color .2s ease, color .2s ease;
	}

	.spur__zeichen:hover,
	.spur__zeichen:focus-visible,
	.spur__zeichen.ist-kopiert
	{
		border-color: var(--gruen2);
		color: var(--gruen);
	}

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