/* ── Stil für „Erste Schritte" (chor-app.de/anleitung.html) ────────────────
 *
 * Eigene Datei statt Inline-CSS wie auf der Landingpage: Diese Seite ist die
 * einzige im Marketing-Ordner, die im Alltag GELESEN wird — von Mitgliedern,
 * die etwas nachschlagen. Sie soll sich ändern lassen, ohne die Verkaufsseite
 * anzufassen, und umgekehrt.
 *
 * Tokens abgeglichen mit app/src/app.css, marketing/index.html und
 * marketing/rechtstexte.css (Lavendel-Editorial). Schriften liegen lokal
 * unter fonts/ — kein Aufruf an einen fremden Host (DSGVO-Regel 1).
 */

:root {
	--paper: #f4f1ea;
	--surface: #ffffff;
	--surface-soft: #faf8f3;
	--text: #17161c;
	--text-muted: #6b6a72;
	--border: #e6e2d8;
	--border-strong: #d8d4c8;
	--primary: #6a5ae0;
	--accent: var(--primary);
	--accent-hover: #5849cf;
	--accent-soft: #ece7fb;
	--ok: #1f7a52;
	--ok-bg: #e7f4ec;
	--warn: #8a6c00;
	--warn-bg: #fdf3d6;
	--radius: 12px;
	--radius-lg: 16px;
	--font-display: 'Space Grotesk', system-ui, sans-serif;
	--font-sans: 'Inter', system-ui, sans-serif;
	--font-mono: 'Space Mono', ui-monospace, monospace;
}

@font-face {
	font-family: 'Space Grotesk';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('fonts/space-grotesk-latin-700-normal.woff2') format('woff2');
}
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('fonts/inter-latin-500-normal.woff2') format('woff2');
}
@font-face {
	font-family: 'Space Mono';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('fonts/space-mono-latin-400-normal.woff2') format('woff2');
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	padding: 0 1.25rem;
	background: var(--paper);
	color: var(--text);
	font-family: var(--font-sans), system-ui, sans-serif;
	/* rem statt px, damit die Schriftvergrößerung des Browsers wirkt
	 * (WCAG 2.2 AA, Projektregel). */
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

main {
	max-width: 48rem;
	margin: 0 auto;
	padding: 2rem 0 4rem;
}

h1,
h2,
h3 {
	font-family: var(--font-display), system-ui, sans-serif;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--text);
}

h1 {
	font-size: clamp(1.9rem, 5vw, 2.4rem);
	margin: 0 0 0.5rem;
}

h2 {
	font-size: 1.5rem;
	margin: 3.5rem 0 0.75rem;
	/* Beim Sprung aus der Rollenauswahl soll die Überschrift nicht am
	 * Fensterrand kleben. */
	scroll-margin-top: 1.5rem;
}

h3 {
	font-size: 1.1rem;
	margin: 2rem 0 0.4rem;
}

p {
	margin: 0 0 1rem;
}

a {
	color: var(--accent);
	text-underline-offset: 2px;
}

/* Fokus immer sichtbar lassen — nie ausblenden (WCAG 2.2 AA). */
a:focus-visible,
summary:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 2px;
	border-radius: 4px;
}

.zurueck {
	display: inline-block;
	/* 44 px Mindesthöhe: auf dem Telefon der einzige Weg zurück. */
	min-height: 2.75rem;
	line-height: 2.75rem;
	text-decoration: none;
}

.label {
	font-family: var(--font-mono), ui-monospace, monospace;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.72rem;
	color: var(--text-muted);
	display: block;
	margin-bottom: 0.35rem;
}

.vorspann {
	font-size: 1.1rem;
	color: var(--text-muted);
	max-width: 36rem;
	margin: 0 0 2rem;
}

/* ── Rollenauswahl ─────────────────────────────────────────────────────── */
.rollen {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	gap: 0.9rem;
	margin: 2rem 0 1rem;
	padding: 0;
	list-style: none;
}

.rollen a {
	display: block;
	/* Der ganze Kasten ist das Ziel, nicht nur die Zeile — die Zielgruppe
	 * bedient das mit dem Daumen. */
	min-height: 2.75rem;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 1rem 1.15rem;
	text-decoration: none;
	color: var(--text);
	transition: border-color 0.15s ease;
}

.rollen a:hover {
	border-color: var(--accent);
}

.rollen strong {
	font-family: var(--font-display), system-ui, sans-serif;
	display: block;
	margin-bottom: 0.15rem;
}

.rollen span {
	color: var(--text-muted);
	font-size: 0.92rem;
}

/* ── Textbausteine ─────────────────────────────────────────────────────── */
.kasten {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1rem 1.25rem;
	margin: 1.5rem 0;
}

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

.merke {
	background: var(--accent-soft);
	border: 1px solid var(--border);
	border-left: 4px solid var(--accent);
	border-radius: var(--radius);
	padding: 0.9rem 1.15rem;
	margin: 1.5rem 0;
}

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

ol.schritte {
	counter-reset: schritt;
	list-style: none;
	padding: 0;
	margin: 1.25rem 0;
}

ol.schritte li {
	counter-increment: schritt;
	position: relative;
	padding-left: 2.6rem;
	margin-bottom: 0.9rem;
}

ol.schritte li::before {
	content: counter(schritt);
	position: absolute;
	left: 0;
	top: 0.1rem;
	width: 1.8rem;
	height: 1.8rem;
	border-radius: 50%;
	background: var(--accent);
	color: #fff;
	font-family: var(--font-mono), ui-monospace, monospace;
	font-size: 0.85rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

ul.punkte {
	padding-left: 1.2rem;
	margin: 1rem 0;
}

ul.punkte li {
	margin-bottom: 0.55rem;
}

.taste {
	font-family: var(--font-mono), ui-monospace, monospace;
	font-size: 0.85em;
	background: var(--surface);
	border: 1px solid var(--border-strong);
	border-radius: 6px;
	padding: 0.1rem 0.4rem;
	white-space: nowrap;
}

details.klappe {
	border-top: 1px solid var(--border);
	padding: 0.75rem 0;
}

details.klappe summary {
	cursor: pointer;
	font-weight: 500;
	min-height: 2.75rem;
	display: flex;
	align-items: center;
}

/* ── Nachgebaute App-Ansichten (fiktive Daten) ─────────────────────────────
 *
 * Bewusst nachgebaut statt abfotografiert: Ein echter Bildschirmabzug aus
 * einer laufenden Instanz zeigt Namen, Adressen und Anwesenheiten echter
 * Mitglieder — die haben auf einer öffentlichen Seite nichts verloren
 * (Datenminimierung). Die Beschriftungen hier sind die echten aus der App.
 */
figure.abbildung {
	margin: 1.5rem 0 2rem;
}

.rahmen {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow:
		0 1px 2px rgba(23, 22, 28, 0.04),
		0 20px 40px -20px rgba(23, 22, 28, 0.18);
}

.rahmen-kopf {
	display: flex;
	gap: 0.4rem;
	padding: 0.7rem 0.9rem;
	background: var(--surface-soft);
	border-bottom: 1px solid var(--border);
}

.rahmen-kopf span {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--border-strong);
}

.rahmen-inhalt {
	padding: 1rem 1.1rem 1.2rem;
	font-size: 0.85rem;
}

figcaption {
	color: var(--text-muted);
	font-size: 0.9rem;
	margin-top: 0.6rem;
}

.m-karte {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 0.8rem 0.9rem;
	margin-bottom: 0.65rem;
}

.m-karte:last-child {
	margin-bottom: 0;
}

.m-zeile {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.75rem;
}

.m-titel {
	font-family: var(--font-display), system-ui, sans-serif;
	font-weight: 700;
	font-size: 0.95rem;
}

.m-leise {
	color: var(--text-muted);
	font-size: 0.8rem;
}

.m-marke {
	display: inline-flex;
	align-items: center;
	font-family: var(--font-mono), ui-monospace, monospace;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 0.62rem;
	padding: 0.2rem 0.5rem;
	border-radius: 999px;
	white-space: nowrap;
}

.m-marke.gruen {
	background: var(--ok-bg);
	color: var(--ok);
}

.m-marke.gelb {
	background: var(--warn-bg);
	color: var(--warn);
}

.m-knopf {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	font-size: 0.75rem;
	border: 1px solid var(--border-strong);
	background: var(--surface-soft);
	color: var(--text);
	border-radius: 999px;
	padding: 0.3rem 0.7rem;
	white-space: nowrap;
}

.m-knopf.an {
	background: var(--accent-soft);
	border-color: var(--accent);
	color: var(--accent-hover);
	font-weight: 500;
}

.m-knopf.haupt {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
	font-weight: 500;
}

.m-leiste {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	align-items: center;
	margin-bottom: 0.75rem;
}

.m-farbe {
	width: 1.1rem;
	height: 1.1rem;
	border-radius: 50%;
	border: 1px solid var(--border-strong);
	display: inline-block;
}

.m-farbe.gewaehlt {
	box-shadow: 0 0 0 2px var(--accent);
}

.m-stimme {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.35rem 0;
	border-bottom: 1px solid var(--border);
	flex-wrap: wrap;
}

.m-stimme:last-child {
	border-bottom: 0;
}

.m-chip {
	font-family: var(--font-mono), ui-monospace, monospace;
	font-size: 0.68rem;
	background: var(--accent-soft);
	color: var(--accent-hover);
	border-radius: 999px;
	padding: 0.15rem 0.55rem;
	min-width: 4.2rem;
	text-align: center;
}

.m-regler {
	flex: 1;
	min-width: 4rem;
	height: 5px;
	border-radius: 999px;
	background: var(--border);
	position: relative;
}

.m-regler::after {
	content: '';
	position: absolute;
	inset: 0 35% 0 0;
	border-radius: 999px;
	background: var(--accent);
}

.m-tabelle {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.8rem;
}

.m-tabelle th,
.m-tabelle td {
	text-align: left;
	padding: 0.35rem 0.4rem;
	border-bottom: 1px solid var(--border);
}

.m-tabelle th {
	font-family: var(--font-mono), ui-monospace, monospace;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 0.6rem;
	color: var(--text-muted);
	font-weight: 400;
}

.m-noten {
	background: var(--surface-soft);
	border: 1px dashed var(--border-strong);
	border-radius: 8px;
	padding: 0.9rem;
	position: relative;
	overflow: hidden;
}

.m-notenzeile {
	height: 1px;
	background: var(--border-strong);
	margin: 0.42rem 0;
}

/* Die beiden „Markierungen" im Notenbild — dieselbe Anmutung wie in der App:
 * der Marker deckt nicht ab, sondern legt sich darüber (mix-blend-mode). */
.m-marker,
.m-stift {
	position: absolute;
	pointer-events: none;
}

.m-marker {
	background: #ffd84d;
	mix-blend-mode: multiply;
	height: 0.75rem;
	border-radius: 2px;
	opacity: 0.75;
}

.m-stift {
	font-family: var(--font-display), system-ui, sans-serif;
	color: #d1453b;
	font-size: 0.7rem;
	font-weight: 700;
	transform: rotate(-4deg);
}

footer {
	border-top: 1px solid var(--border);
	margin-top: 3.5rem;
	padding-top: 1.5rem;
	color: var(--text-muted);
	font-size: 0.9rem;
}

@media (prefers-color-scheme: dark) {
	:root {
		--paper: #131218;
		--surface: #1c1b22;
		--surface-soft: #232229;
		--text: #f0eef5;
		--text-muted: #a5a3ad;
		--border: #2e2d36;
		--border-strong: #3d3c47;
		--primary: #a99bff;
		--accent-hover: #c2b7ff;
		--accent-soft: #2a2740;
		--ok: #6ede9f;
		--ok-bg: #16301f;
		--warn: #e8c46a;
		--warn-bg: #33290f;
	}

	.m-knopf.haupt,
	ol.schritte li::before {
		color: #17161c;
	}

	/* Multiply auf dunklem Grund macht den Marker schwarz. In der App stellt
	 * sich die Frage nicht — das Notenblatt ist dort immer weiß —, hier auf
	 * der dunklen Seite schon. Also der additive Weg. */
	.m-marker {
		mix-blend-mode: screen;
		opacity: 0.35;
	}
}
