/* Grundstile der Unterseiten im Design der Startseite (08.11.2026): Schriften lokal, Farben, Karopapier, Karten, Knöpfe, Fußzeile.
   Eigene Datei statt <style>, damit die Seiten eine strenge CSP ohne 'unsafe-inline' haben können (_headers).
   Seitenspezifisches steht in eigenen Dateien (z. B. quiz/quadratzahlen.css). */

@font-face { font-family: 'Libre Baskerville'; font-style: normal; font-weight: 700; font-display: swap; src: url(/schriften/libre-baskerville-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'PT Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(/schriften/pt-serif-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'PT Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(/schriften/pt-serif-latin-400-italic.woff2) format('woff2'); }
@font-face { font-family: 'PT Serif'; font-style: normal; font-weight: 700; font-display: swap; src: url(/schriften/pt-serif-latin-700-normal.woff2) format('woff2'); }

*, *::before, *::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	--akzent: #185FA5;
	--akzent-dark: #0E3D6E;
	--akzent-light: #EAF1F8;
	--ink: #1a1a1a;
	--ink-light: #54555c;
	--paper: #faf9f6;
	--white: #ffffff;
	--border: #e2e0d8;
	--karo: rgba(24, 95, 165, 0.085);
	--rand: clamp(1.25rem, 5vw, 2.5rem);
}

[hidden] { display: none !important; }

body {
	font-family: 'PT Serif', Georgia, 'Times New Roman', serif;
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--ink);
	background-color: var(--paper);
	background-image:
		linear-gradient(var(--karo) 1px, transparent 1px),
		linear-gradient(90deg, var(--karo) 1px, transparent 1px);
	background-size: 24px 24px;
	background-position: -1px -1px;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
	font-family: 'Libre Baskerville', Georgia, serif;
	color: var(--akzent-dark);
	line-height: 1.25;
	font-weight: 700;
}

a { color: var(--akzent); text-underline-offset: 3px; }

a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex="-1"]:focus-visible {
	outline: 3px solid var(--akzent);
	outline-offset: 3px;
	border-radius: 4px;
}

input:focus-visible {
	outline: 3px solid var(--akzent);
	outline-offset: 2px;
}

.innen {
	max-width: 46rem;
	margin: 0 auto;
	padding: 0 var(--rand);
}

.innen.breit { max-width: 66rem; }

main.innen { padding-top: clamp(2rem, 6vw, 3.5rem); padding-bottom: 3rem; }

.seitenkopf h1 {
	font-size: clamp(1.75rem, 5vw, 2.5rem);
	margin-bottom: 0.8rem;
}

.einleitung {
	color: var(--ink-light);
	font-size: 1.08rem;
	margin-bottom: 1.8rem;
}

.klein { font-size: 0.95rem; color: var(--ink-light); }

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Karte */
.karte {
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: clamp(1.1rem, 4vw, 1.8rem);
	margin-bottom: 1.4rem;
	box-shadow: 0 10px 24px -18px rgba(14, 61, 110, 0.35);
}

.karte h2 { font-size: 1.3rem; margin-bottom: 1rem; }

/* Knöpfe wie auf der Startseite */
.knoepfe {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	margin-top: 1.2rem;
}

.knopf {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 3rem;
	padding: 0.8rem 1.5rem;
	border-radius: 999px;
	border: 1.5px solid transparent;
	font-family: 'PT Serif', Georgia, serif;
	font-weight: 700;
	font-size: 1.02rem;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.knopf.haupt { background: var(--akzent); color: var(--white); }
.knopf.haupt:hover { background: var(--akzent-dark); }
.knopf.leise { color: var(--akzent-dark); border-color: var(--akzent); background: var(--white); }
.knopf.leise:hover { background: var(--akzent-light); }
.knopf.klein-knopf { min-height: 2.6rem; padding: 0.45rem 1rem; font-size: 0.92rem; }

/* Fußzeile wie im Impressum */
.fuss {
	border-top: 1px solid var(--border);
	padding: 1.6rem 0 2.5rem;
	font-size: 0.92rem;
	color: var(--ink-light);
	background: var(--paper);
}

.fuss .innen {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.6rem 2rem;
}

@media (max-width: 640px) {
	.knoepfe { flex-direction: column; }
	.knoepfe .knopf { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Kartenraster, z. B. die Übersicht der Aufgaben. Die ganze Karte ist über den Link in der Überschrift klickbar. */
.karten {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
	gap: 1.2rem;
}

.angebot {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
	height: 100%;
	margin: 0;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.angebot:hover {
	border-color: var(--akzent);
	box-shadow: 0 14px 28px -18px rgba(14, 61, 110, 0.5);
}

.angebot:focus-within {
	outline: 3px solid var(--akzent);
	outline-offset: 3px;
}

.angebot .zeichen {
	width: 3.2rem;
	height: 3.2rem;
	border-radius: 12px;
	background: var(--akzent-light);
	color: var(--akzent-dark);
	display: grid;
	place-items: center;
	font-family: 'Libre Baskerville', Georgia, serif;
	font-weight: 700;
	font-size: 1.25rem;
}

.angebot h2 { font-size: 1.25rem; margin: 0; }
.angebot h2 a { color: inherit; text-decoration: none; }
.angebot h2 a::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.angebot h2 a:focus-visible { outline: none; }
.angebot p { color: var(--ink-light); }

.merkmale {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-top: auto;
}

.merkmale li {
	font-size: 0.85rem;
	padding: 0.15rem 0.7rem;
	border-radius: 999px;
	background: var(--akzent-light);
	color: var(--akzent-dark);
}

.angebot .los {
	font-weight: 700;
	color: var(--akzent);
}
