/* NE Lernpunkte – Gestaltung
 * Bausteine als Leitmotiv: kräftiges Ziegelrot, Goldgelb für Erfolge, ruhiges Grau-Blau als Grund.
 * Keine externen Schriften, alles systemeigen.
 */

:root {
	--bg: #EDF2F6;
	--flaeche: #FFFFFF;
	--ink: #18222F;
	--leise: #5B6B7C;
	--linie: #D3DCE5;
	--stein: #C7362C;
	--stein-dunkel: #9E2920;
	--gold: #F4C21B;
	--gold-dunkel: #C99A00;
	--gruen: #2F9A5A;
	--gruen-dunkel: #23774A;
	--rot: #B42318;
	--radius: 16px;
	--schatten: 0 1px 2px rgba(24, 34, 47, .06), 0 6px 20px rgba(24, 34, 47, .06);
	--schrift: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
	color-scheme: light;
	box-sizing: border-box;
	padding-top: env(safe-area-inset-top, 0px);
	padding-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: inherit; }

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--schrift);
	font-size: 17px;
	line-height: 1.5;
	min-height: 100%;
}

a { color: #1F5FBF; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .9em; }

:focus-visible { outline: 3px solid #1F5FBF; outline-offset: 2px; border-radius: 6px; }

.app, .seite-app { max-width: 1080px; margin: 0 auto; padding: 12px 16px 32px; }
.seite-app.eng { max-width: 560px; }

.laden { padding: 30vh 16px; text-align: center; color: var(--leise); }

/* ── Kopf und Marke ───────────────────────────────────────────── */

.kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0 14px; }
.marke { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; }

.logo { display: inline-grid; grid-template-columns: repeat(2, 12px); gap: 3px; transform: rotate(-6deg); }
.logo i { display: block; height: 10px; border-radius: 3px; background: var(--stein); }
.logo i:nth-child(1) { grid-column: 1 / 3; }
.logo i:nth-child(2) { background: var(--gold); }
.logo i:nth-child(3) { background: var(--gruen); }

/* ── Knöpfe ───────────────────────────────────────────────────── */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-height: 48px; padding: 10px 20px;
	border: 0; border-radius: 12px;
	background: var(--gruen); color: #fff;
	font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
	box-shadow: inset 0 -3px 0 var(--gruen-dunkel);
	transition: transform .08s ease, filter .15s ease;
	-webkit-tap-highlight-color: transparent;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(1px); box-shadow: inset 0 -1px 0 var(--gruen-dunkel); }
.btn:disabled { opacity: .55; cursor: wait; }
.btn.gross { min-height: 56px; font-size: 1.08rem; width: 100%; }
.btn.klein { min-height: 40px; padding: 6px 14px; font-size: .95rem; }
.btn.zweit { background: var(--flaeche); color: var(--ink); box-shadow: inset 0 0 0 2px var(--linie), inset 0 -3px 0 var(--linie); }
.btn.gold { background: var(--gold); color: var(--ink); box-shadow: inset 0 -3px 0 var(--gold-dunkel); }
.btn.rot { background: var(--rot); box-shadow: inset 0 -3px 0 #7A1A12; }
.btn.leise { background: transparent; color: #1F5FBF; box-shadow: none; padding-left: 4px; padding-right: 4px; min-height: 40px; font-weight: 600; }
.btn.rund { width: 48px; padding: 0; border-radius: 50%; font-size: 1.4rem; }
.btn.chip, .chip {
	min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 0;
	background: var(--flaeche); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer;
	box-shadow: inset 0 0 0 2px var(--linie);
}
.chip.an { background: var(--ink); color: #fff; box-shadow: none; }

.knoepfe { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
.knoepfe > .btn { flex: 1 1 auto; }
.knoepfe.senkrecht { flex-direction: column; }
.reihe-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; margin-top: 10px; }

/* ── Karten und Formulare ─────────────────────────────────────── */

.karte { background: var(--flaeche); border-radius: var(--radius); padding: 20px; margin: 0 0 14px; box-shadow: var(--schatten); }
.karte.mitte, .mitte { text-align: center; }
.karte > h2:first-child { margin-top: 0; }

.feld { display: block; margin: 0 0 14px; text-align: left; }
.feld-label { display: block; font-weight: 700; margin: 0 0 6px; font-size: .95rem; }
.feld-hilfe { display: block; color: var(--leise); margin-top: 6px; font-size: .88rem; }
.eingabe {
	width: 100%; min-height: 48px; padding: 10px 14px;
	border: 2px solid var(--linie); border-radius: 12px; background: #fff;
	font: inherit; color: var(--ink);
}
.eingabe:focus { border-color: #1F5FBF; outline: none; }
select.eingabe { appearance: auto; }
.mit-auge { position: relative; display: block; }
.mit-auge .eingabe { padding-right: 52px; }
.auge { position: absolute; right: 4px; top: 4px; width: 44px; height: 40px; border: 0; background: transparent; cursor: pointer; font-size: 1.1rem; opacity: .6; }

.haken { display: grid; gap: 10px; margin: 6px 0 14px; }
label.haken, .haken label { display: flex; gap: 10px; align-items: flex-start; line-height: 1.4; }
.haken input, label.haken input { width: 22px; height: 22px; flex: none; margin: 1px 0 0; accent-color: var(--gruen); }

.leise { color: var(--leise); font-size: .92rem; }
.gross { font-size: 1.1rem; }
.warnung { background: #FFF6DA; border-radius: 12px; padding: 10px 14px; font-size: .95rem; }
.erfolg { background: #E3F4EA; border-radius: 12px; padding: 10px 14px; }

/* ── Startseite ───────────────────────────────────────────────── */

.willkommen { text-align: center; padding: 24px 0 8px; }
.willkommen h1 { font-size: 2rem; }
.stapel { display: grid; grid-template-columns: repeat(3, 44px); gap: 6px; justify-content: center; margin: 8px auto 26px; transform: rotate(-4deg); }
.stapel .stein { height: 30px; border-radius: 7px; background: var(--stein); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .18); position: relative; }
.stapel .stein::before, .stapel .stein::after { content: ""; position: absolute; top: -5px; width: 12px; height: 6px; border-radius: 3px 3px 0 0; background: inherit; }
.stapel .stein::before { left: 8px; }
.stapel .stein::after { right: 8px; }
.stapel .s2, .stapel .s6 { background: var(--gold); }
.stapel .s3, .stapel .s4 { background: var(--gruen); }
.stapel .s5 { background: #2F6FD6; }

.wahl { display: grid; gap: 12px; }
.wahl-karte {
	display: block; text-align: left; padding: 18px; border-radius: 14px; border: 2px solid var(--linie);
	background: #fff; font: inherit; color: inherit; cursor: pointer;
}
.wahl-karte:hover { border-color: var(--gruen); }
.wahl-karte strong { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.wahl-karte span { color: var(--leise); font-size: .95rem; }

/* ── Link und QR ──────────────────────────────────────────────── */

.linkbox { background: var(--bg); border-radius: 12px; padding: 12px; overflow-x: auto; }
.linkbox code { font-size: .9rem; word-break: break-all; }
.qr-rahmen { display: flex; justify-content: center; margin: 18px 0; }
.qr { width: 220px; height: 220px; image-rendering: pixelated; border-radius: 12px; border: 2px solid var(--linie); }

/* ── Ziffernblock ─────────────────────────────────────────────── */

.ziffernblock { max-width: 300px; margin: 8px auto 12px; }
.pin-punkte { display: flex; justify-content: center; gap: 12px; min-height: 22px; margin: 6px 0 18px; }
.pin-punkte span { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ink); }
.pin-punkte span.voll { background: var(--ink); }
.tasten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.taste {
	min-height: 64px; border: 0; border-radius: 16px; background: var(--bg);
	font: inherit; font-size: 1.5rem; font-weight: 700; color: var(--ink); cursor: pointer;
	box-shadow: inset 0 -3px 0 var(--linie);
}
.taste:active { transform: translateY(1px); }
.taste.ok { background: var(--gruen); color: #fff; box-shadow: inset 0 -3px 0 var(--gruen-dunkel); font-size: 1.1rem; }
.taste.leise { background: transparent; box-shadow: none; }

/* ── Modal, Hinweise ──────────────────────────────────────────── */

.hinter { position: fixed; inset: 0; background: rgba(24, 34, 47, .45); display: grid; place-items: end center; z-index: 50; padding: 12px; }
.modal {
	position: relative; width: 100%; max-width: 440px; max-height: 92vh; overflow: auto;
	background: #fff; border-radius: 22px; padding: 26px 20px 20px;
	margin-bottom: env(safe-area-inset-bottom, 0px);
	animation: hoch .2s ease-out;
}
.schliessen { position: absolute; right: 10px; top: 8px; width: 44px; height: 44px; border: 0; background: transparent; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--leise); }
@keyframes hoch { from { transform: translateY(24px); opacity: 0; } }

.hinweise { position: fixed; left: 0; right: 0; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: grid; justify-items: center; gap: 8px; z-index: 60; pointer-events: none; padding: 0 16px; }
.hinweis { background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; max-width: 520px; box-shadow: var(--schatten); transition: opacity .5s, transform .5s; font-weight: 600; }
.hinweis.fehler { background: var(--rot); }
.hinweis.weg { opacity: 0; transform: translateY(10px); }

/* ── Assistent ────────────────────────────────────────────────── */

.fortschritt { display: flex; gap: 6px; margin: 0 0 18px; }
.fortschritt span { flex: 1; height: 8px; border-radius: 4px; background: var(--linie); }
.fortschritt span.an { background: var(--stein); }

.symbole { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.symbol { width: 48px; height: 48px; border-radius: 12px; border: 2px solid var(--linie); background: #fff; font-size: 1.5rem; cursor: pointer; }
.symbol.an { border-color: var(--ink); background: var(--bg); box-shadow: 0 0 0 2px var(--ink); }
.farben { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.farbe { width: 44px; height: 44px; border-radius: 50%; border: 3px solid #fff; background: var(--f); cursor: pointer; box-shadow: 0 0 0 2px var(--linie); }
.farbe.an { box-shadow: 0 0 0 3px var(--ink); }
.vorschlaege { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }

/* ── Kinderansicht ────────────────────────────────────────────── */

.kindwahl { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: none; }
.kindchip {
	display: inline-flex; align-items: center; gap: 8px; flex: none;
	min-height: 48px; padding: 6px 16px 6px 8px; border-radius: 999px; border: 0;
	background: #fff; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer;
	box-shadow: inset 0 0 0 2px var(--linie);
}
.kindchip.an { background: var(--kf, var(--ink)); color: #fff; box-shadow: none; }
.kindsym { font-size: 1.4rem; }

.held {
	position: relative; overflow: hidden;
	background: var(--kf); color: #fff; border-radius: 24px; padding: 22px 20px 20px; margin-bottom: 14px;
	box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .15), var(--schatten);
}
.held::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 40px; background: rgba(255, 255, 255, .1); transform: rotate(20deg); }
.held-kopf { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.held-sym { width: 64px; height: 64px; display: grid; place-items: center; font-size: 2.4rem; background: rgba(255, 255, 255, .22); border-radius: 18px; }
.held h1 { margin: 0; font-size: 1.8rem; }
.held-familie { margin: 0; opacity: .85; font-size: .95rem; }
.stand { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 10px; position: relative; z-index: 1; }
.stand-zahl { font-size: 4.2rem; font-weight: 900; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stand-text { font-size: 1.3rem; font-weight: 700; opacity: .9; }
.ziel { position: relative; z-index: 1; }
.ziel-text { font-weight: 700; margin-bottom: 10px; }

.steine { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 4px; }
.steine .stein { width: 24px; height: 18px; border-radius: 5px; background: rgba(255, 255, 255, .25); position: relative; }
.steine .stein::before { content: ""; position: absolute; top: -4px; left: 7px; width: 10px; height: 5px; border-radius: 3px 3px 0 0; background: inherit; }
.steine .stein.voll { background: var(--gold); box-shadow: inset 0 -3px 0 var(--gold-dunkel); }
.steine .stein.plopp { animation: plopp .5s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(var(--i) * 70ms + 150ms); }
@keyframes plopp { from { transform: translateY(-24px) scale(.4); opacity: 0; } }

.geschafft { margin-top: 16px; position: relative; z-index: 1; }
.wartet { margin: 10px 0 0; font-weight: 600; opacity: .95; position: relative; z-index: 1; }

.zahlen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.zahl { background: #fff; border-radius: 16px; padding: 14px 10px; text-align: center; box-shadow: var(--schatten); }
.zahl strong { display: block; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.zahl span { display: block; color: var(--leise); font-size: .82rem; line-height: 1.3; margin-top: 2px; }

.tage { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 4px 0 16px; }
.tag { text-align: center; background: var(--bg); border-radius: 12px; padding: 8px 2px; }
.tag.voll { background: #E3F4EA; }
.tag.heute { box-shadow: inset 0 0 0 2px var(--ink); }
.tag-name { display: block; font-size: .78rem; color: var(--leise); font-weight: 700; }
.tag-wert { display: block; font-weight: 800; font-size: 1.1rem; }

.leiste { position: relative; height: 14px; background: var(--bg); border-radius: 7px; overflow: visible; margin: 6px 0 12px; }
.leiste.klein { height: 8px; margin: 6px 0 0; }
.leiste-fuell { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); background: var(--gruen); border-radius: inherit; transition: width .6s ease; }
.marke-ziel { position: absolute; top: -4px; bottom: -4px; left: var(--x); width: 3px; margin-left: -2px; background: var(--ink); border-radius: 2px; }

.wochenziele { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.wochenziele li { display: flex; gap: 6px; align-items: baseline; }
.wochenziele li.erreicht { font-weight: 700; }
.wochenziele em { color: var(--leise); font-style: normal; font-size: .9rem; margin-left: auto; }

.belohnungen { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.belohnungen li { display: flex; align-items: center; gap: 12px; }
.b-sym { width: 44px; height: 44px; display: grid; place-items: center; font-size: 1.6rem; background: var(--bg); border-radius: 12px; flex: none; }
.b-text { flex: 1; min-width: 0; }
.b-preis { font-weight: 800; font-variant-numeric: tabular-nums; }
.reicht .b-preis { color: var(--gruen); }
.abzeichen { display: inline-block; margin-left: 8px; font-size: .72rem; background: var(--gold); color: var(--ink); padding: 1px 8px; border-radius: 999px; vertical-align: middle; }

/* ── Auswahl (Regeln antippen) ────────────────────────────────── */

.auswahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 8px 0 14px; }
.auswahl-knopf {
	display: grid; justify-items: center; gap: 4px; text-align: center;
	min-height: 112px; padding: 14px 10px; border-radius: 16px; border: 2px solid var(--linie);
	background: #fff; font: inherit; color: inherit; cursor: pointer; font-weight: 700;
}
.auswahl-knopf:hover { border-color: var(--gruen); }
.auswahl-knopf em { font-style: normal; color: var(--gruen); font-weight: 800; }
.gross-sym { font-size: 2rem; }

.stepper { display: flex; align-items: center; gap: 14px; margin: 8px 0 16px; }
.stepper-wert { font-size: 1.8rem; min-width: 2ch; text-align: center; font-variant-numeric: tabular-nums; }

/* ── Elternbereich ────────────────────────────────────────────── */

.eltern .kopf { border-bottom: 3px solid var(--gold); margin-bottom: 10px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: none; position: sticky; top: 0; background: var(--bg); z-index: 5; }
.tab {
	flex: none; min-height: 44px; padding: 8px 16px; border: 0; border-radius: 12px;
	background: transparent; font: inherit; font-weight: 700; color: var(--leise); cursor: pointer;
}
.tab.an { background: var(--ink); color: #fff; }
.zaehler { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 6px; padding: 0 6px; border-radius: 11px; background: var(--stein); color: #fff; font-size: .78rem; }
.unter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }

.liste { list-style: none; margin: 0; padding: 0; }
.liste li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--linie); }
.liste li:first-child { border-top: 0; }
.l-text { flex: 1; min-width: 0; }
.l-text strong { display: block; }
.l-text span { display: block; color: var(--leise); font-size: .88rem; }
.l-aktionen { display: flex; gap: 6px; }
.karte.offen { box-shadow: inset 0 0 0 3px var(--gold), var(--schatten); }

.verlauf .v-wert { min-width: 48px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--gruen); }
.verlauf .v-einl .v-wert { color: var(--stein); }
.verlauf .v-woche .v-wert { color: var(--gold-dunkel); }

.sonder { margin-top: 8px; }
.sonder summary, details.karte summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }

.eintrag-bearbeiten { border: 2px solid var(--linie); border-radius: 14px; padding: 14px; margin: 0 0 12px; }
.vorlage { border-top: 1px solid var(--linie); padding: 14px 0; }
.vorlage:first-of-type { border-top: 0; }
.vorlage p { margin-bottom: .4em; }

.gefahr summary { color: var(--rot); }

/* ── Feier ────────────────────────────────────────────────────── */

.feier { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: rgba(24, 34, 47, .35); overflow: hidden; cursor: pointer; }
.feier-box { background: #fff; border-radius: 24px; padding: 28px 36px; text-align: center; max-width: 86vw; animation: feier-rein .45s cubic-bezier(.3, 1.5, .5, 1) both; }
.feier-sym { font-size: 4rem; line-height: 1.1; }
.feier-box h2 { font-size: 1.8rem; margin: 6px 0 4px; }
.feier-box p { margin: 0; color: var(--leise); }
@keyframes feier-rein { from { transform: scale(.6); opacity: 0; } }
.konfetti { position: absolute; top: -20px; left: var(--x); width: 10px; height: 14px; background: var(--c); border-radius: 2px; animation: fallen var(--t) linear var(--d) forwards; }
@keyframes fallen { to { transform: translateY(110vh) rotate(var(--r)); } }

/* ── Fußzeile und Infoseiten ──────────────────────────────────── */

.fuss { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; padding: 26px 0 8px; font-size: .9rem; color: var(--leise); }
.fuss a { color: var(--leise); }

.ist-seite .seite { max-width: 760px; margin: 0 auto; padding: 18px 18px 40px; }
.seite .text { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--schatten); }
.seite .text h1 { font-size: 1.8rem; }
.seite .text h2 { margin-top: 1.6em; }
.seite .text h4 { margin: 1em 0 .3em; font-size: .95rem; }
.seite .text ul, .seite .text ol { padding-left: 1.3em; }
.seite .text li { margin-bottom: .4em; }
.seite .text details { border-top: 1px solid var(--linie); padding: 6px 0; }
.seite .text summary { cursor: pointer; font-weight: 700; padding: 8px 0; }
.zurueck { display: inline-block; margin: 0 0 14px; font-weight: 700; text-decoration: none; }
.vorlagen { display: grid; gap: 12px; }
.vorlagen .vorlage { background: var(--bg); border-radius: 14px; padding: 16px; border: 0; }
.vorlagen .vorlage h3 { margin-bottom: 0; }

/* ── Größere Bildschirme ──────────────────────────────────────── */

@media (min-width: 760px) {
	body { font-size: 18px; }
	.raster { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; align-items: start; }
	.hinter { place-items: center; }
	.stand-zahl { font-size: 5rem; }
	.wahl { grid-template-columns: 1fr 1fr; }
}

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

/* ══════════════════════════════════════════════════════════════
 * Startseite und Infoseiten im Erscheinungsbild von Nerds mit Herz
 * Petrol, Kreideweiß, Herzrot nur für Herz, Puls und Akzente.
 * Systemschriften, nichts wird nachgeladen.
 * ══════════════════════════════════════════════════════════════ */

:root {
	--nmh-petrol: #123742;
	--nmh-tief: #0D2A33;
	--nmh-kreide: #F1EDE6;
	--nmh-grau: #93AAB0;
	--nmh-herzrot: #CB4B41;
	--nmh-linie: #2C5361;
	--nmh-text: #1C2B30;
	--nmh-leise: #4F6469;
	--nmh-serif: "Lora", ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
	--nmh-mono: ui-monospace, "SF Mono", "Cascadia Mono", "DejaVu Sans Mono", Menlo, Consolas, monospace;
}

body.ist-start { background: var(--nmh-kreide); color: var(--nmh-text); }
body.ist-start .app { max-width: none; padding: 0; }

.nmh-rahmen { max-width: 980px; margin: 0 auto; padding: 0 20px; }

.nmh-label {
	font-family: var(--nmh-mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
	color: var(--nmh-leise); margin: 0 0 10px;
}

.nmh-herz { width: .9em; height: .82em; fill: var(--nmh-herzrot); vertical-align: -.05em; }

.nmh-puls { display: block; width: 100%; height: 36px; margin: 34px 0 0; overflow: visible; }
.nmh-puls path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.nmh-puls-linie { stroke: var(--nmh-linie); stroke-width: 2; }
.nmh-puls-schlag { stroke: var(--nmh-herzrot); stroke-width: 3; }

/* Kopfbereich */
.nmh-held { background: var(--nmh-petrol); color: var(--nmh-kreide); padding: 18px 0 40px; }
.nmh-kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 48px; }
.nmh-marke { font-family: var(--nmh-serif); font-weight: 600; font-size: 1.15rem; }
.nmh-kopflink { color: var(--nmh-kreide); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--nmh-linie); padding-bottom: 2px; }
.nmh-held .nmh-label { color: var(--nmh-grau); }
.nmh-held h1 {
	font-family: var(--nmh-serif); font-weight: 600; font-size: clamp(2rem, 6vw, 3.3rem); line-height: 1.12;
	max-width: 17ch; margin: 0 0 18px; letter-spacing: -.01em;
}
.nmh-lead { font-size: 1.15rem; line-height: 1.6; max-width: 60ch; margin: 0 0 28px; color: #D9DFDC; }

/* Knöpfe */
.nmh-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; }
.nmh-btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 12px 22px;
	border: 0; border-radius: 10px; background: var(--nmh-herzrot); color: #fff;
	font: inherit; font-weight: 700; font-size: 1.02rem; cursor: pointer; text-align: center;
	box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2);
}
.nmh-btn:hover { filter: brightness(1.06); }
.nmh-btn:active { transform: translateY(1px); }
.nmh-btn-hell { background: transparent; color: var(--nmh-kreide); box-shadow: inset 0 0 0 2px var(--nmh-grau); }
.nmh-btn-rand { background: transparent; color: var(--nmh-petrol); box-shadow: inset 0 0 0 2px var(--nmh-petrol); }

/* Nummerierte Abschnitte */
.nmh-haupt { padding-top: 26px; padding-bottom: 20px; }
.nmh-abschnitt { display: grid; grid-template-columns: 56px 1fr; gap: 0 18px; padding: 34px 0; border-top: 1px solid #D8D1C5; }
.nmh-abschnitt:first-child { border-top: 0; }
.nmh-nr { font-family: var(--nmh-mono); font-size: .95rem; color: var(--nmh-herzrot); padding-top: 4px; border-top: 3px solid var(--nmh-herzrot); align-self: start; width: 34px; }
.nmh-inhalt { min-width: 0; max-width: 68ch; }
.nmh-inhalt h2 { font-family: var(--nmh-serif); font-weight: 600; font-size: 1.7rem; color: var(--nmh-petrol); margin: 0 0 14px; }
.nmh-inhalt p { line-height: 1.65; }
.nmh-inhalt a { color: var(--nmh-petrol); text-decoration-color: var(--nmh-herzrot); text-decoration-thickness: 2px; text-underline-offset: 3px; }

.nmh-schritte { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 12px; }
.nmh-schritte li { counter-increment: s; background: #fff; border-radius: 12px; padding: 16px 18px 16px 62px; position: relative; box-shadow: 0 1px 2px rgba(18, 55, 66, .08); }
.nmh-schritte li::before {
	content: counter(s); position: absolute; left: 16px; top: 15px; width: 32px; height: 32px; border-radius: 50%;
	display: grid; place-items: center; background: var(--nmh-petrol); color: var(--nmh-kreide); font-family: var(--nmh-mono); font-weight: 700;
}
.nmh-schritte strong { display: block; font-size: 1.08rem; color: var(--nmh-petrol); margin-bottom: 2px; }
.nmh-schritte span { color: var(--nmh-leise); }

.nmh-beispiel { display: grid; gap: 14px; margin: 0 0 18px; }
.nmh-beispiel dl { margin: 0; background: #fff; border-radius: 12px; padding: 6px 18px; box-shadow: 0 1px 2px rgba(18, 55, 66, .08); }
.nmh-beispiel dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid #ECE6DB; }
.nmh-beispiel dl > div:first-child { border-top: 0; }
.nmh-beispiel dt { font-weight: 600; }
.nmh-beispiel dd { margin: 0; color: var(--nmh-petrol); font-weight: 700; text-align: right; }
.nmh-vorschau { background: var(--nmh-petrol); color: var(--nmh-kreide); border-radius: 12px; padding: 16px 18px; }
.nmh-vorschau p { margin: 0 0 10px; font-weight: 700; }

.nmh-liste { padding-left: 0; list-style: none; margin: 0 0 14px; }
.nmh-liste li { position: relative; padding: 6px 0 6px 26px; line-height: 1.55; }
.nmh-liste li::before { content: ""; position: absolute; left: 0; top: 17px; width: 14px; height: 2px; background: var(--nmh-herzrot); }

.nmh-karten { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .nmh-karten { grid-template-columns: 1fr 1fr; } }
.nmh-karte { background: #fff; border-radius: 12px; padding: 16px 18px; border-top: 3px solid var(--nmh-petrol); box-shadow: 0 1px 2px rgba(18, 55, 66, .08); }
.nmh-karte h3 { font-family: var(--nmh-serif); color: var(--nmh-petrol); margin: 0 0 6px; font-size: 1.12rem; }
.nmh-karte p { margin: 0; color: var(--nmh-leise); }

.nmh-schluss { background: var(--nmh-tief); color: var(--nmh-kreide); padding: 10px 0 44px; text-align: left; }
.nmh-schluss .nmh-puls { margin: 0 0 26px; }
.nmh-schluss h2 { font-family: var(--nmh-serif); font-weight: 600; font-size: 1.9rem; margin: 0 0 8px; }
.nmh-schluss p { color: #D9DFDC; margin: 0 0 22px; }

body.ist-start .fuss { background: var(--nmh-tief); color: var(--nmh-grau); margin: 0; padding: 4px 20px 30px; }
body.ist-start .fuss a { color: var(--nmh-kreide); }

@media (max-width: 560px) {
	.nmh-abschnitt { grid-template-columns: 1fr; }
	.nmh-nr { margin-bottom: 12px; }
	.nmh-btn { width: 100%; }
}

/* Infoseiten (Hilfe, Spielregeln, Datenschutz) im selben Erscheinungsbild */
body.ist-seite { background: var(--nmh-kreide); color: var(--nmh-text); }
.ist-seite .zurueck { color: var(--nmh-petrol); text-decoration-color: var(--nmh-herzrot); }
.ist-seite .seite .text { box-shadow: 0 1px 2px rgba(18, 55, 66, .08); }
.ist-seite .text h1, .ist-seite .text h2, .ist-seite .text h3 { font-family: var(--nmh-serif); color: var(--nmh-petrol); font-weight: 600; }
.ist-seite .text h2 { padding-top: 14px; border-top: 1px solid #ECE6DB; }
.ist-seite .text a { color: var(--nmh-petrol); text-decoration-color: var(--nmh-herzrot); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ist-seite .text summary { color: var(--nmh-petrol); }
.ist-seite .vorlagen .vorlage { background: var(--nmh-kreide); }
.ist-seite .fuss a { color: var(--nmh-leise); }

.kopf-knoepfe { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* Weg zurück zur Website */
.nmh-marke { color: var(--nmh-kreide); text-decoration: none; }
.nmh-marke:hover { text-decoration: underline; text-decoration-color: var(--nmh-herzrot); text-underline-offset: 4px; }
.nmh-nav { display: flex; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.fuss .fuss-heim { font-weight: 700; }
.ist-seite .oben { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.ist-seite .oben .zurueck { margin: 0; }
@media (max-width: 560px) {
	.nmh-kopf { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 34px; }
	.nmh-nav { justify-content: flex-start; gap: 22px; }
	.nmh-marke { white-space: nowrap; }
}
