/* =============================================================================
   Komponenten & Layout (Admin + Portal). Setzt tokens.css voraus.
   ============================================================================= */

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--c-bg); }
body {
	margin: 0;
	min-height: 100vh;
	font-family: var(--font-sans);
	font-size: var(--fs-base);
	line-height: var(--lh-base);
	color: var(--c-ink);
	background: var(--g-page);
	background-attachment: fixed;
	font-feature-settings: "cv11", "ss01";
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 { margin: 0 0 var(--sp-2); line-height: var(--lh-tight); color: var(--c-ink); font-weight: 650; letter-spacing: -0.011em; }
h1 { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 700; letter-spacing: -0.022em; color: var(--c-primary); }
h2 { font-size: var(--fs-lg); }
h3 { font-size: var(--fs-md); }
.display { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0 0 var(--sp-3); }
a { color: var(--c-primary); text-decoration-color: rgba(35, 57, 91, .35); text-underline-offset: 2px; }
a:hover { text-decoration-color: currentColor; }
img, svg { max-width: 100%; }
hr { border: 0; border-top: 1px solid var(--c-line); margin: var(--sp-6) 0; }
code, .mono { font-family: var(--font-mono); font-size: .9em; }
::selection { background: rgba(196, 122, 75, .28); color: var(--c-ink); }

:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; border-radius: 4px; }

.mdi { line-height: 1; }
.mdi::before { vertical-align: -0.08em; }

/* ---------- App-Shell ---------- */
.app {
	display: grid;
	grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
	min-height: 100vh;
}

.sidebar {
	position: sticky;
	top: 0;
	height: 100vh;
	display: flex;
	flex-direction: column;
	padding: var(--sp-5) var(--sp-3) var(--sp-4);
	overflow-y: auto;
	z-index: 40;
}
.sidebar--dark { background: var(--g-sheen), var(--g-navy); color: rgba(255, 255, 255, .78); box-shadow: inset -1px 0 0 rgba(255, 255, 255, .06); }
.sidebar--light { background: var(--g-silver); border-right: 1px solid var(--c-line); color: var(--c-ink-muted); }

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 var(--sp-3) var(--sp-5);
	text-decoration: none;
	color: inherit;
}
/* Logo: Emblem (.brand-mark) + Schriftzug (.brand-wordmark), Grafiken nur hier.
   Auf dunklem Grund automatisch die helle Schrift-Variante. */
.brand-mark {
	--mark: 36px;
	display: inline-block;
	width: var(--mark);
	height: var(--mark);
	flex: none;
	background: url("../img/logo-mark.png") center / contain no-repeat;
}
.brand-wordmark {
	--wordmark-h: 15px;
	display: block;
	height: var(--wordmark-h);
	aspect-ratio: 487 / 44;
	max-width: 100%;
	background: url("../img/logo-schrift.png") left center / contain no-repeat;
}
.sidebar--dark .brand-wordmark,
.auth-aside .brand-wordmark,
.lernbar .brand-wordmark,
.lp-footer .brand-wordmark { background-image: url("../img/logo-schrift-hell.png"); }
.sidebar--dark .brand-mark,
.auth-aside .brand-mark,
.lernbar .brand-mark,
.lp-footer .brand-mark { filter: drop-shadow(0 0 1px rgba(255, 255, 255, .28)); }
.brand-text { display: flex; flex-direction: column; gap: 5px; line-height: 1.15; min-width: 0; }
.brand-sub { font-size: var(--fs-xs); color: var(--c-ink-subtle); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.sidebar--dark .brand-sub { color: var(--c-accent-light); }
.brand-sub--name { text-transform: none; letter-spacing: 0; font-size: var(--fs-sm); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label {
	padding: var(--sp-4) var(--sp-3) var(--sp-2);
	font-size: 0.6875rem;
	font-weight: 650;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--c-ink-subtle);
}
.sidebar--dark .nav-label { color: rgba(255, 255, 255, .45); }

.nav-link {
	position: relative;
	display: flex;
	align-items: center;
	gap: var(--sp-3);
	min-height: 40px;
	padding: 8px var(--sp-3);
	border-radius: 8px;
	color: inherit;
	text-decoration: none;
	font-weight: 500;
	transition: background .15s var(--ease), color .15s var(--ease);
}
.nav-link .mdi { font-size: 1.2rem; opacity: .85; width: 20px; text-align: center; }
.nav-link:hover { background: var(--c-mist); color: var(--c-ink); }
.nav-link.is-active { background: var(--g-mist); color: var(--c-primary); font-weight: 600; box-shadow: inset 0 0 0 1px rgba(35, 57, 91, .05); }
.nav-link.is-active::before {
	content: "";
	position: absolute;
	left: -12px;
	top: 9px;
	bottom: 9px;
	width: 3px;
	border-radius: 0 3px 3px 0;
	background: var(--g-copper);
}
.sidebar--dark .nav-link:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.sidebar--dark .nav-link.is-active { background: linear-gradient(90deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .05)); color: #fff; box-shadow: none; }
.nav-link.is-disabled { opacity: .5; pointer-events: none; }
.nav-badge {
	margin-left: auto;
	font-size: 0.6875rem;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: var(--radius-pill);
	background: var(--c-mist-strong);
	color: var(--c-primary);
}
.sidebar--dark .nav-badge { background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .8); }

.sidebar-foot {
	margin-top: auto;
	padding-top: var(--sp-4);
	border-top: 1px solid var(--c-line-soft);
	display: flex;
	align-items: center;
	gap: var(--sp-3);
	padding-left: var(--sp-2);
}
.sidebar--dark .sidebar-foot { border-top-color: rgba(255, 255, 255, .1); }
.sidebar-user { min-width: 0; flex: 1; line-height: 1.25; }
.sidebar-user strong { display: block; font-size: var(--fs-sm); color: var(--c-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user span { display: block; font-size: var(--fs-xs); color: var(--c-ink-subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar--dark .sidebar-user strong { color: #fff; }
.sidebar--dark .sidebar-user span { color: rgba(255, 255, 255, .55); }

.main { min-width: 0; display: flex; flex-direction: column; }

.topbar {
	position: sticky;
	top: 0;
	z-index: 30;
	height: var(--topbar-h);
	display: flex;
	align-items: center;
	gap: var(--sp-3);
	padding: 0 var(--sp-8);
	background: rgba(246, 247, 250, .82);
	backdrop-filter: saturate(1.4) blur(12px);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid var(--c-line-soft);
}
.topbar-title { font-weight: 600; font-size: var(--fs-md); color: var(--c-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-crumb { color: var(--c-ink-subtle); font-size: var(--fs-sm); }
.topbar-crumb a { color: inherit; text-decoration: none; }
.topbar-crumb a:hover { color: var(--c-primary); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: var(--sp-2); }
.topbar .topbar-toggle { display: none; }

/* Admin-Modus („Login als Kunde“): klebt ueber der Topbar, immer sichtbar */
.modebar {
	position: sticky;
	top: 0;
	z-index: 31;
	height: var(--modebar-h);
	display: flex;
	align-items: center;
	gap: var(--sp-3);
	padding: 0 var(--sp-8);
	background: var(--g-accent);
	color: #fff;
	font-size: var(--fs-sm);
	box-shadow: 0 1px 0 rgba(255, 255, 255, .14) inset;
}
.modebar > .mdi { font-size: 1.2rem; flex: none; }
.modebar-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modebar-action { flex: none; display: flex; align-items: center; gap: var(--sp-2); }
.has-modebar .topbar { top: var(--modebar-h); }
.content [id] { scroll-margin-top: calc(var(--topbar-h) + var(--sp-4)); }
.has-modebar .content [id] { scroll-margin-top: calc(var(--modebar-h) + var(--topbar-h) + var(--sp-4)); }
.has-modebar .doc-aside { top: calc(84px + var(--modebar-h)); }

.env-pill {
	font-size: var(--fs-xs);
	font-weight: 600;
	padding: 3px 10px;
	border-radius: var(--radius-pill);
	background: var(--c-accent-soft);
	color: var(--c-accent-ink);
}

.content {
	width: 100%;
	max-width: var(--content-max);
	margin: 0 auto;
	padding: var(--sp-8);
	flex: 1;
}

.sidebar-backdrop { display: none; }

/* ---------- Seitenkopf ---------- */
.page-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--sp-4);
	margin-bottom: var(--sp-6);
}
.page-head h1 { margin: 0; }
/* Kupfer-Haarlinie unter dem Seitentitel */
.page-head h1::after, .hairline::after {
	content: "";
	display: block;
	width: 56px;
	height: 2px;
	margin-top: 10px;
	border-radius: 2px;
	background: var(--g-hairline);
}
.page-head p { margin: var(--sp-2) 0 0; color: var(--c-ink-muted); max-width: 64ch; }
.page-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.eyebrow { font-size: var(--fs-xs); font-weight: 650; text-transform: uppercase; letter-spacing: .12em; color: var(--c-accent-strong); margin-bottom: var(--sp-1); }

/* ---------- Karten ---------- */
.card {
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
	min-width: 0;
}
.card + .card { margin-top: var(--sp-6); }
.card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-3);
	padding: var(--sp-4) var(--sp-5);
	border-bottom: 1px solid var(--c-line-soft);
}
.card-head h2, .card-head h3 { margin: 0; font-size: var(--fs-md); }
.card-head p { margin: 2px 0 0; color: var(--c-ink-muted); font-size: var(--fs-sm); }
.card-body { padding: var(--sp-5); }
.card-body > :last-child { margin-bottom: 0; }
.card-foot {
	display: flex;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: var(--sp-2);
	padding: var(--sp-4) var(--sp-5);
	border-top: 1px solid var(--c-line-soft);
	background: var(--c-surface-muted);
	border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.card-flush .card-body { padding: 0; }

.grid { display: grid; gap: var(--sp-6); }
.grid > .card + .card { margin-top: 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
.stack > * + * { margin-top: var(--sp-6); }

/* ---------- KPI ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--sp-4); margin-bottom: var(--sp-6); }
.kpi {
	position: relative;
	overflow: hidden;
	background: var(--g-silver);
	border: 1px solid var(--c-line);
	border-radius: var(--radius-lg);
	padding: var(--sp-5);
	box-shadow: var(--shadow);
	display: flex;
	flex-direction: column;
	gap: var(--sp-1);
}
.kpi-top { display: flex; align-items: center; justify-content: space-between; color: var(--c-ink-muted); font-size: var(--fs-sm); font-weight: 500; }
.kpi-icon {
	width: 34px; height: 34px; border-radius: 10px;
	display: grid; place-items: center;
	background: var(--g-mist); color: var(--c-primary); font-size: 1.15rem;
	box-shadow: inset 0 0 0 1px rgba(35, 57, 91, .06);
}
.kpi-icon--accent { background: var(--c-accent-soft); color: var(--c-accent-ink); }
.kpi-icon--danger { background: var(--c-danger-bg); color: var(--c-danger-ink); }
.kpi-icon--warn { background: var(--c-warn-bg); color: var(--c-warn-ink); }
.kpi-value { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--c-primary); line-height: 1.1; margin-top: var(--sp-2); }
.kpi-meta { font-size: var(--fs-sm); color: var(--c-ink-subtle); }

/* ---------- Buttons ---------- */
.btn {
	--btn-h: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--sp-2);
	min-height: var(--btn-h);
	padding: 0 var(--sp-4);
	border: 1px solid transparent;
	border-radius: 8px;
	font: inherit;
	font-weight: 560;
	font-size: var(--fs-base);
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease), transform .05s;
	user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn .mdi { font-size: 1.15rem; }
.btn[disabled], .btn:disabled, .btn.is-disabled { opacity: .55; pointer-events: none; }
fieldset.fieldset-plain { border: 0; margin: 0; padding: 0; min-width: 0; }

.btn-primary { background: var(--c-primary) var(--g-primary); color: var(--c-on-primary); box-shadow: var(--shadow-btn); }
.btn-primary:hover { background: var(--c-primary-hover) var(--g-primary-hover); }
.btn-accent { background: var(--c-accent-strong) var(--g-accent); color: #fff; box-shadow: var(--shadow-btn); }
.btn-accent:hover { background: var(--c-accent-strong) var(--g-accent-hover); }
.btn-secondary { background: var(--g-silver); color: var(--c-ink); border-color: var(--c-line); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--c-line-strong); background: #fff; }
.btn-ghost { background: transparent; color: var(--c-ink-muted); }
.btn-ghost:hover { background: var(--c-mist); color: var(--c-ink); }
.sidebar--dark .btn-ghost { color: rgba(255, 255, 255, .7); }
.sidebar--dark .btn-ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.btn-danger { background: var(--c-surface); color: var(--c-danger); border-color: #E7C2BF; }
.btn-danger:hover { background: var(--c-danger-bg); border-color: var(--c-danger); }
.btn-danger-solid { background: var(--c-danger); color: #fff; }
.btn-danger-solid:hover { background: var(--c-danger-ink); }
.btn-sm { --btn-h: 32px; padding: 0 var(--sp-3); font-size: var(--fs-sm); border-radius: 7px; }
.btn-lg { --btn-h: 48px; padding: 0 var(--sp-6); font-size: var(--fs-md); }
.btn-block { width: 100%; }
.btn-icon { width: var(--btn-h); padding: 0; }

/* ---------- Formulare ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--sp-5); }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-grid-3 { grid-template-columns: 140px minmax(0, 1fr) minmax(0, 1fr); }
.field { margin-bottom: var(--sp-5); min-width: 0; }
.field > label, .label {
	display: block;
	margin-bottom: 6px;
	font-size: var(--fs-sm);
	font-weight: 600;
	color: var(--c-ink);
}
.field .optional { font-weight: 400; color: var(--c-ink-subtle); }
.input, .select, .textarea {
	display: block;
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid var(--c-line-strong);
	border-radius: 8px;
	background: var(--c-surface);
	color: var(--c-ink);
	font: inherit;
	line-height: 1.35;
	transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
	appearance: none;
	-webkit-appearance: none;
}
.input::placeholder, .textarea::placeholder { color: #949DAB; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--c-ink-muted); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: var(--ring); }
.input[readonly], .input:disabled { background: var(--c-surface-muted); color: var(--c-ink-muted); }
.textarea { min-height: 110px; resize: vertical; }
.select {
	padding-right: 36px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23536176' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
}
.is-invalid { border-color: var(--c-danger) !important; }
.help { margin-top: 6px; font-size: var(--fs-sm); color: var(--c-ink-subtle); }
.error-text { margin-top: 6px; font-size: var(--fs-sm); color: var(--c-danger); font-weight: 500; }

.input-group { position: relative; }
.input-group .input { padding-right: 46px; }
.input-group .input-addon {
	position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
	width: 38px; height: 36px; border: 0; border-radius: 6px; background: transparent;
	color: var(--c-ink-subtle); cursor: pointer; font-size: 1.2rem; display: grid; place-items: center;
}
.input-group .input-addon:hover { background: var(--c-surface-muted); color: var(--c-ink); }

.check { display: flex; align-items: flex-start; gap: var(--sp-3); cursor: pointer; padding: var(--sp-2) 0; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--c-primary); }
.check span { font-size: var(--fs-base); }
.check small { display: block; color: var(--c-ink-subtle); font-size: var(--fs-sm); }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 var(--sp-5); }

.switch { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-3) 0; cursor: pointer; }
.switch + .switch { border-top: 1px solid var(--c-line-soft); }
.switch-text strong { display: block; font-weight: 600; }
.switch-text small { display: block; color: var(--c-ink-subtle); font-size: var(--fs-sm); margin-top: 2px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { flex: none; position: relative; width: 44px; height: 26px; border-radius: 13px; background: #C3CBD6; transition: background .2s var(--ease); }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .2s var(--ease); }
.switch input:checked + .switch-ui { background: var(--c-primary) var(--g-primary); }
.switch input:checked + .switch-ui::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--c-primary); outline-offset: 2px; }

/* Auswahlkarten (Radio/Checkbox mit Erklaerung) */
.choice-list { display: grid; gap: var(--sp-3); }
fieldset.choice-list { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice {
	display: flex; align-items: flex-start; gap: var(--sp-3); padding: var(--sp-4);
	border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-surface);
	cursor: pointer; transition: border-color .15s var(--ease), background .15s var(--ease);
}
.choice:hover { border-color: var(--c-line-strong); }
.choice input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--c-primary); }
.choice strong { display: block; font-weight: 600; }
.choice small { display: block; margin-top: 2px; color: var(--c-ink-muted); font-size: var(--fs-sm); }
.choice:has(input:checked) { border-color: var(--c-primary); background: var(--g-mist); box-shadow: inset 0 0 0 1px var(--c-primary); }
.choice:has(input:focus-visible) { box-shadow: var(--ring); }
.choice:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.choice-list--compact .choice { padding: var(--sp-3) var(--sp-4); }
@media (min-width: 768px) {
	.choice-list--3 { grid-template-columns: repeat(3, 1fr); }
	.choice-list--2 { grid-template-columns: repeat(2, 1fr); }
}

.toolbar { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; margin-bottom: var(--sp-4); }
.toolbar .search { flex: 1 1 260px; position: relative; }
.toolbar .search .mdi { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--c-ink-subtle); font-size: 1.15rem; pointer-events: none; }
.toolbar .search .input { padding-left: 38px; }
.toolbar .select { width: auto; min-width: 170px; }

/* ---------- Tabellen ---------- */
.table-wrap { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-base); }
.table th {
	text-align: left;
	padding: 10px var(--sp-3);
	font-size: var(--fs-xs);
	font-weight: 650;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--c-ink-subtle);
	background: var(--c-surface-muted);
	border-bottom: 1px solid var(--c-line);
	white-space: nowrap;
}
.table td { padding: 12px var(--sp-3); border-bottom: 1px solid var(--c-line-soft); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: #F8FAFC; }
.table tr[data-href] { cursor: pointer; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .actions { text-align: right; white-space: nowrap; }
.cell-main { font-weight: 600; color: var(--c-ink); }
.cell-sub { display: block; font-size: var(--fs-sm); color: var(--c-ink-subtle); margin-top: 1px; }
.cell-person { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; }
.table tr.is-muted td { color: var(--c-ink-subtle); }
.table tr.is-muted .avatar { opacity: .5; }
.table td .badge + .badge { margin-left: 4px; }

.hint-list { margin: 0; padding-left: 1.1rem; display: grid; gap: var(--sp-2); color: var(--c-ink-muted); font-size: var(--fs-sm); }

.role-list { margin: 0 0 var(--sp-4); }
.role-list dt { font-weight: 600; }
.role-list dd { margin: 2px 0 var(--sp-3); color: var(--c-ink-muted); font-size: var(--fs-sm); }

.field-legend { display: block; padding: 0; margin-bottom: var(--sp-2); font-size: var(--fs-sm); font-weight: 600; color: var(--c-ink); }
.cell-hint { display: flex; gap: 4px; margin-top: 4px; font-size: var(--fs-sm); color: var(--c-warn-ink); }
.cell-hint .mdi { flex: none; font-size: 1rem; line-height: 1.2; }

/* ---------- Schritte (Assistenten) ---------- */
.steps { display: flex; gap: var(--sp-3); list-style: none; margin: 0 0 var(--sp-6); padding: 0; }
.steps li {
	flex: 1; display: flex; align-items: center; gap: var(--sp-2); min-width: 0;
	padding-bottom: var(--sp-3); border-bottom: 3px solid var(--c-line);
	color: var(--c-ink-subtle); font-size: var(--fs-sm); font-weight: 500;
}
.steps-num {
	flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
	border: 1px solid var(--c-line-strong); background: var(--c-surface); font-size: var(--fs-xs); font-weight: 700;
}
.steps li.is-done { border-bottom-color: var(--c-accent); color: var(--c-ink-muted); }
.steps li.is-done .steps-num { border-color: var(--c-accent-strong); background: var(--c-accent-strong) var(--g-accent); color: #fff; }
.steps li.is-current { border-bottom-color: var(--c-primary); color: var(--c-ink); font-weight: 600; }
.steps li.is-current .steps-num { border-color: var(--c-primary); background: var(--c-primary) var(--g-primary); color: var(--c-on-primary); }

/* ---------- Datei-Ablage ---------- */
.dropzone {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-2);
	min-height: 200px; padding: var(--sp-8) var(--sp-5); text-align: center; cursor: pointer;
	border: 2px dashed var(--c-line-strong); border-radius: var(--radius-lg); background: var(--c-bg);
	transition: border-color .15s var(--ease), background .15s var(--ease);
}
.dropzone:hover, .dropzone.is-dragover { border-color: var(--c-primary); background: var(--g-mist); }
.dropzone:focus-within { border-color: var(--c-primary); box-shadow: var(--ring); }
.dropzone input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dropzone-icon {
	display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px;
	background: var(--c-surface); color: var(--c-primary); font-size: 1.7rem; box-shadow: var(--shadow-sm);
}
.dropzone strong { font-size: var(--fs-md); font-weight: 600; color: var(--c-ink); overflow-wrap: anywhere; }
.dropzone small { color: var(--c-ink-subtle); font-size: var(--fs-sm); }
.dropzone.is-busy { pointer-events: none; opacity: .75; }
.dropzone.is-busy .dropzone-icon .mdi { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .dropzone.is-busy .dropzone-icon .mdi { animation: none; } }
.dropzone-error { margin: var(--sp-2) 0 0; color: var(--c-danger); font-size: var(--fs-sm); font-weight: 500; }
.textarea--paste { min-height: 170px; font-family: var(--font-mono); font-size: var(--fs-sm); tab-size: 18; white-space: pre; overflow-x: auto; }

/* ---------- Spalten zuordnen ---------- */
.map-list { display: grid; gap: var(--sp-2); }
.map-row {
	display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--sp-3);
	padding: var(--sp-3); border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-surface);
}
.map-row.is-ignored { background: var(--c-surface-muted); border-style: dashed; }
.map-row.is-ignored .map-text strong { color: var(--c-ink-muted); }
.map-source { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; }
.map-col {
	flex: none; display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 8px;
	background: var(--c-mist); color: var(--c-primary); font-size: var(--fs-xs); font-weight: 700;
}
.map-text { min-width: 0; }
.map-text strong { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-text small { display: block; color: var(--c-ink-subtle); font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-arrow { color: var(--c-ink-subtle); font-size: 1.2rem; }

/* Aktionsleiste am Ende langer Listen, bleibt beim Scrollen sichtbar */
.import-bar {
	position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-3);
	background: var(--c-surface); box-shadow: 0 -8px 20px -14px rgba(35, 57, 91, .35); border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.import-bar-text { margin: 0; color: var(--c-ink-muted); font-size: var(--fs-base); }
.import-bar-text strong { color: var(--c-ink); }
.tabs--inset { padding: 0 var(--sp-4); }
.tabs .tab .badge { margin-left: 2px; }

/* ---------- Badges ---------- */
.badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	height: 24px;
	padding: 0 10px;
	border-radius: var(--radius-pill);
	font-size: var(--fs-xs);
	font-weight: 620;
	white-space: nowrap;
	background: var(--c-mist);
	color: var(--c-primary);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge-plain::before { display: none; }
.badge-ok { background: var(--c-ok-bg); color: var(--c-ok-ink); }
.badge-warn { background: var(--c-warn-bg); color: var(--c-warn-ink); }
.badge-danger { background: var(--c-danger-bg); color: var(--c-danger-ink); }
.badge-accent { background: var(--c-accent-soft); color: var(--c-accent-ink); }
.badge-sand { background: var(--c-sand-soft); color: #5E4A3B; }
.badge-muted { background: var(--c-surface-muted); color: var(--c-ink-muted); }

/* ---------- Avatar ---------- */
.avatar {
	flex: none;
	width: 36px; height: 36px;
	border-radius: 50%;
	display: grid; place-items: center;
	background: var(--g-mist);
	color: var(--c-primary);
	box-shadow: inset 0 0 0 1px rgba(35, 57, 91, .08);
	text-decoration: none;
	font-weight: 650;
	font-size: var(--fs-sm);
	letter-spacing: .02em;
}
.avatar-accent { background: var(--c-accent-strong) var(--g-accent); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); }
.avatar-lg { width: 52px; height: 52px; font-size: var(--fs-md); }

/* ---------- Meldungen ---------- */
.alert {
	display: flex;
	gap: var(--sp-3);
	align-items: flex-start;
	padding: var(--sp-3) var(--sp-4);
	border-radius: var(--radius);
	border: 1px solid var(--c-line);
	background: var(--c-surface);
	margin-bottom: var(--sp-4);
	box-shadow: var(--shadow-sm);
}
.alert .mdi { font-size: 1.3rem; flex: none; margin-top: 1px; }
.alert-body { flex: 1; min-width: 0; }
.alert-body strong { display: block; margin-bottom: 2px; }
.alert-close { flex: none; border: 0; background: none; color: inherit; opacity: .6; cursor: pointer; font-size: 1.2rem; padding: 0 2px; }
.alert-close:hover { opacity: 1; }
.alert-success { background: var(--c-ok-bg); border-color: #BFDFCE; color: var(--c-ok-ink); }
.alert-error { background: var(--c-danger-bg); border-color: #EBC1BD; color: var(--c-danger-ink); }
.alert-warning { background: var(--c-warn-bg); border-color: #EDD3AE; color: var(--c-warn-ink); }
.alert-info { background: var(--c-mist); border-color: var(--c-mist-strong); color: var(--c-primary); }

/* ---------- Tabs ---------- */
.tabs {
	display: flex;
	gap: var(--sp-1);
	border-bottom: 1px solid var(--c-line);
	margin-bottom: var(--sp-6);
	overflow-x: auto;
	scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
	display: inline-flex; align-items: center; gap: var(--sp-2);
	padding: 10px var(--sp-4);
	margin-bottom: -1px;
	border-bottom: 2px solid transparent;
	color: var(--c-ink-muted);
	text-decoration: none;
	font-weight: 560;
	white-space: nowrap;
}
.tab:hover { color: var(--c-ink); }
.tab.is-active { color: var(--c-primary); border-bottom-color: var(--c-accent); font-weight: 600; }

/* ---------- Definitionsliste ---------- */
.dl { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: var(--sp-3) var(--sp-4); margin: 0; }
.dl dt { color: var(--c-ink-subtle); font-size: var(--fs-sm); }
.dl dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

/* ---------- Checkliste ---------- */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) 0; border-bottom: 1px solid var(--c-line-soft); }
.checklist li:last-child { border-bottom: 0; }
.check-dot {
	flex: none; width: 28px; height: 28px; border-radius: 50%;
	display: grid; place-items: center; font-size: 1rem;
	border: 1.5px dashed var(--c-line-strong); color: var(--c-ink-subtle);
}
.is-done .check-dot { border: 0; background: var(--c-ok-bg); color: var(--c-ok); }
.is-soon .check-dot { border-style: solid; border-color: var(--c-line); }
.checklist .grow { flex: 1; min-width: 0; }
.checklist .grow strong { display: block; font-weight: 600; }
.checklist .grow small { color: var(--c-ink-subtle); font-size: var(--fs-sm); }
.is-done .grow strong { color: var(--c-ink-muted); }

.progress { height: 8px; border-radius: 4px; background: var(--c-mist-strong); overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: var(--c-primary) var(--g-progress); border-radius: 4px; transition: width .6s var(--ease); }

/* ---------- Leerer Zustand ---------- */
.empty { text-align: center; padding: var(--sp-12) var(--sp-6); }
.empty-icon {
	width: 64px; height: 64px; margin: 0 auto var(--sp-4);
	display: grid; place-items: center;
	border-radius: 20px; background: var(--g-mist); color: var(--c-primary); font-size: 1.8rem;
	box-shadow: inset 0 0 0 1px rgba(35, 57, 91, .06);
}
.empty h3 { margin-bottom: var(--sp-1); }
.empty p { color: var(--c-ink-muted); max-width: 44ch; margin: 0 auto var(--sp-5); }

/* ---------- Pagination ---------- */
.pagination { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); border-top: 1px solid var(--c-line-soft); color: var(--c-ink-subtle); font-size: var(--fs-sm); }
.pagination-links { display: flex; gap: var(--sp-2); }

/* ---------- Dialog ---------- */
.modal {
	width: min(440px, calc(100vw - 32px));
	padding: 0;
	border: 0;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
	color: var(--c-ink);
}
.modal::backdrop { background: rgba(17, 28, 45, .45); backdrop-filter: blur(2px); }
.modal-body { padding: var(--sp-6); }
.modal-body h3 { margin-bottom: var(--sp-2); }
.modal-body p { color: var(--c-ink-muted); margin: 0; }
.modal-foot { display: flex; justify-content: flex-end; gap: var(--sp-2); padding: var(--sp-4) var(--sp-6); background: var(--c-surface-muted); }

/* ---------- Copy-Box ---------- */
.copybox { display: flex; gap: var(--sp-2); align-items: stretch; }
.copybox .input { font-family: var(--font-mono); font-size: var(--fs-sm); }

/* ---------- Status-Liste ---------- */
.statuslist { list-style: none; margin: 0; padding: 0; }
.statuslist li { display: flex; align-items: center; gap: var(--sp-3); padding: 10px 0; border-bottom: 1px solid var(--c-line-soft); font-size: var(--fs-base); }
.statuslist li:last-child { border-bottom: 0; }
.statuslist .mdi { font-size: 1.2rem; }
.statuslist .ok { color: var(--c-ok); }
.statuslist .warn { color: var(--c-warn); }
.statuslist .bad { color: var(--c-danger); }
.statuslist small { margin-left: auto; color: var(--c-ink-subtle); font-size: var(--fs-sm); text-align: right; }

/* ---------- Aktivitaeten ---------- */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; gap: var(--sp-3); padding: var(--sp-3) 0; border-bottom: 1px solid var(--c-line-soft); }
.feed li:last-child { border-bottom: 0; }
.feed-dot { flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--g-copper); }
.feed-dot--danger { background: var(--c-danger); }
.feed-dot--warn { background: var(--c-warn); }
.feed-text { font-size: var(--fs-base); }

/* Aufgaben/Prueffristen: Inline-"Erledigt"-Disclosure + einfache Liste */
.disclosure > summary { cursor: pointer; width: fit-content; list-style: none; }
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure-body { margin-top: var(--sp-3); padding: var(--sp-4); border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-surface-muted); max-width: 24rem; }
.stack-sm > * + * { margin-top: var(--sp-3); }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list > li + li { margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid var(--c-line); }

/* QM-/Arbeitsschutz-Handbuch */
.handbuch > section + section { margin-top: var(--sp-6); }
.hb-kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--c-ink-subtle); margin: 0; }
.hb-title { margin: var(--sp-2) 0; }
.hb-note { border: 1px solid var(--c-line); border-radius: var(--radius); padding: var(--sp-4); background: var(--c-surface-muted); font-size: .9rem; }
@media print {
	.handbuch section { break-inside: avoid; }
	.handbuch > section + section { margin-top: 1.2rem; }
	.hb-note { background: #fff; }
}
.feed-meta { font-size: var(--fs-sm); color: var(--c-ink-subtle); }

/* ---------- Unterweisungsmatrix ---------- */
.matrix { border-collapse: separate; border-spacing: 0; }
.matrix th, .matrix td { border-bottom: 1px solid var(--c-line); }
.matrix thead th { position: sticky; top: 0; z-index: 2; background: var(--c-surface); }
.matrix .matrix-head { padding: var(--sp-2) var(--sp-1); text-align: center; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--c-ink-muted); }
.matrix .matrix-corner,
.matrix .matrix-person { position: sticky; left: 0; z-index: 1; background: var(--c-surface); text-align: left; min-width: 11rem; box-shadow: 1px 0 0 var(--c-line); }
.matrix thead .matrix-corner { z-index: 3; }
.matrix .matrix-person { font-weight: 600; }
.matrix .matrix-person .cell-sub { display: block; font-weight: 400; }
.matrix-cell { text-align: center; padding: var(--sp-2); }
.matrix-cell--empty { background: var(--c-surface-muted); }
.matrix-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--c-ink-subtle); }
.matrix-dot--rot { background: var(--c-danger); }
.matrix-dot--gelb { background: var(--c-warn); }
.matrix-dot--gruen { background: var(--c-ok); }
.matrix-dot--offen { background: var(--c-ink-subtle); }
.matrix-dot--neutral { background: var(--c-line); }
.matrix-mark { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 18px; font-size: var(--fs-sm); color: var(--c-ink-subtle); }
.matrix-mark--na { font-weight: 600; }
.matrix-na { color: var(--c-line); }
.matrix-legend { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin: 0; padding: 0; list-style: none; font-size: var(--fs-sm); color: var(--c-ink-muted); }
.matrix-legend li { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Segment-Tabs (z. B. Standort-Auswahl) ---------- */
.seg-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 var(--sp-5); padding: 4px; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-surface-muted); width: fit-content; max-width: 100%; }
.seg-tab { padding: 6px 14px; border-radius: calc(var(--radius) - 4px); font-size: var(--fs-sm); font-weight: 500; color: var(--c-ink-muted); text-decoration: none; white-space: nowrap; }
.seg-tab:hover { color: var(--c-primary); background: var(--c-surface); }
.seg-tab.is-active { background: var(--c-surface); color: var(--c-primary); box-shadow: var(--shadow-sm); }

/* ---------- Anmeldung ---------- */
.auth {
	min-height: 100vh;
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
	background: var(--g-page);
}

/* Linke Seite: dunkle, metallische Buehne (wie das Zertifikat im Entwurf) */
.auth-aside {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: var(--sp-8);
	padding: var(--sp-12);
	color: rgba(255, 255, 255, .82);
	background:
		radial-gradient(780px 540px at 112% -10%, rgba(174, 185, 199, .26), transparent 60%),
		radial-gradient(680px 520px at -14% 114%, rgba(196, 122, 75, .24), transparent 58%),
		var(--g-sheen),
		var(--g-navy);
}
.auth-aside::before, .auth-aside::after {
	content: "";
	position: absolute;
	pointer-events: none;
}
/* feine Punkt-Textur (ruhige Tiefe) + Bandwelle unten */
.auth-aside::before {
	inset: 0;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Ccircle cx='1.3' cy='1.3' r='1.3' fill='%23ffffff' fill-opacity='0.05'/%3E%3C/svg%3E");
}
.auth-aside::after { left: 0; right: 0; bottom: 0; height: 30%; background: url("../img/welle-hell.svg") bottom / 100% 100% no-repeat; }
.auth-aside > * { position: relative; z-index: 1; }

.auth-aside .brand { padding: 0; gap: var(--sp-4); }
.auth-aside .brand-mark { --mark: 54px; }
.auth-aside .brand-wordmark { --wordmark-h: 20px; }
.auth-aside .brand-sub { color: var(--c-accent-light); }

.auth-claim { max-width: 480px; }
.auth-claim h2 { font-family: var(--font-display); color: #fff; font-size: 2.5rem; line-height: 1.13; font-weight: 700; letter-spacing: -0.03em; margin-bottom: var(--sp-5); }
.auth-claim h2 em { font-style: normal; color: var(--c-accent-light); }
.auth-claim h2::after { content: ""; display: block; width: 72px; height: 3px; margin-top: var(--sp-5); border-radius: 3px; background: var(--g-hairline); }
.auth-points { list-style: none; margin: var(--sp-7, 28px) 0 0; padding: 0; display: grid; gap: var(--sp-4); }
.auth-points li { display: flex; gap: var(--sp-4); align-items: center; font-size: var(--fs-md); color: rgba(255, 255, 255, .92); }
.auth-point-ico {
	flex: none; width: 42px; height: 42px; border-radius: 12px;
	display: grid; place-items: center; font-size: 1.25rem; color: var(--c-accent-light);
	background: rgba(255, 255, 255, .07);
	border: 1px solid rgba(255, 255, 255, .15);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
}
.auth-proof { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.auth-proof-item {
	display: inline-flex; align-items: center; gap: 7px;
	padding: 7px 13px; border-radius: var(--radius-pill);
	font-size: var(--fs-sm); color: rgba(255, 255, 255, .82);
	background: rgba(255, 255, 255, .06);
	border: 1px solid rgba(255, 255, 255, .13);
}
.auth-proof-item .mdi { color: var(--c-accent-light); font-size: 1rem; }

/* Rechte Seite: schwebende, edle Karte mit Kupfer-Akzentkante */
.auth-main { display: flex; align-items: center; justify-content: center; padding: var(--sp-10) var(--sp-8); }
.auth-card {
	position: relative;
	width: 100%;
	max-width: 420px;
	padding: var(--sp-10);
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
}
.auth-card::before {
	content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
	border-radius: var(--radius-lg) var(--radius-lg) 0 0;
	background: var(--c-accent) var(--g-copper);
}
.auth-card .eyebrow { margin-bottom: var(--sp-2); }
.auth-card h1 { font-size: var(--fs-xl); margin-bottom: var(--sp-2); }
.auth-card .lead { color: var(--c-ink-muted); margin-bottom: var(--sp-8); }
.auth-mobile-brand { display: none; margin-bottom: var(--sp-7, 28px); }
.auth-mobile-brand .brand-mark { --mark: 44px; }
.auth-mobile-brand .brand-wordmark { --wordmark-h: 18px; }
.auth-links { display: flex; justify-content: flex-end; align-items: center; gap: var(--sp-3); margin: calc(var(--sp-2) * -1) 0 var(--sp-5); font-size: var(--fs-sm); }
.auth-foot { margin-top: var(--sp-6); font-size: var(--fs-sm); color: var(--c-ink-subtle); text-align: center; }
.otp-input { text-align: center; font-size: 1.5rem; letter-spacing: .5em; font-variant-numeric: tabular-nums; font-weight: 600; }

/* ---------- Fehlerseite ---------- */
.error-page { min-height: 100vh; display: grid; place-items: center; padding: var(--sp-6); }
.error-box { text-align: center; max-width: 520px; }
.error-code { font-family: var(--font-display); font-size: 5.5rem; font-weight: 800; letter-spacing: -0.04em; color: var(--c-primary); line-height: 1; }
.error-code::after { content: ""; display: block; width: 64px; height: 3px; border-radius: 3px; background: var(--g-copper); margin: var(--sp-4) auto var(--sp-6); }
.error-box p { color: var(--c-ink-muted); margin-bottom: var(--sp-6); }
.error-detail { text-align: left; margin-top: var(--sp-8); padding: var(--sp-4); background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); font-size: var(--fs-xs); overflow: auto; max-height: 50vh; white-space: pre-wrap; }

/* ---------- QR ---------- */
.qr { width: 200px; height: 200px; padding: var(--sp-2); border: 1px solid var(--c-line); border-radius: var(--radius); background: #fff; }
.secret { font-family: var(--font-mono); letter-spacing: .12em; word-break: break-all; background: var(--c-surface-muted); padding: var(--sp-2) var(--sp-3); border-radius: var(--radius-sm); }

/* ---------- Dokumente (gerendertes Markdown) ---------- */
.prose { max-width: 76ch; line-height: 1.65; color: var(--c-ink); overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; color: var(--c-primary); font-size: var(--fs-xl); margin: var(--sp-8) 0 var(--sp-3); }
.prose h3 { font-size: var(--fs-lg); margin: var(--sp-6) 0 var(--sp-2); }
.prose h4, .prose h5 { font-size: var(--fs-md); margin: var(--sp-5) 0 var(--sp-2); }
.prose h2, .prose h3, .prose h4 { scroll-margin-top: 80px; }
.prose p, .prose ul, .prose ol { margin: 0 0 var(--sp-4); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: var(--sp-1); }
.prose blockquote { margin: 0 0 var(--sp-4); padding: var(--sp-3) var(--sp-4); border-left: 3px solid var(--c-accent); background: var(--c-surface-muted); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose hr { border: 0; border-top: 1px solid var(--c-line); margin: var(--sp-6) 0; }
.prose a { color: var(--c-primary); text-underline-offset: 2px; }

.doc-meta { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); font-size: var(--fs-sm); color: var(--c-ink-subtle); }
.doc-meta .mdi { margin-right: 4px; }
.hash { font-family: var(--font-mono); font-size: var(--fs-xs); word-break: break-all; color: var(--c-ink-subtle); }

.doc-aside { position: sticky; top: 84px; }
.toc { list-style: none; margin: 0; padding: 0; font-size: var(--fs-sm); }
.toc li { padding: 5px 0; }
.toc .toc-2 { padding-left: var(--sp-4); }
.toc a { color: var(--c-ink-muted); text-decoration: none; }
.toc a:hover { color: var(--c-primary); }

.textarea--editor { min-height: 56vh; font-family: var(--font-mono); font-size: var(--fs-sm); line-height: 1.6; tab-size: 4; }
.md-help { margin-top: var(--sp-2); font-size: var(--fs-sm); color: var(--c-ink-subtle); }
.md-help summary { cursor: pointer; width: fit-content; }
.md-help summary:hover { color: var(--c-primary); }
.md-help dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px var(--sp-4); margin: var(--sp-3) 0 0; padding: var(--sp-3) var(--sp-4); background: var(--c-surface-muted); border-radius: var(--radius-sm); }
.md-help dt { font-family: var(--font-mono); color: var(--c-ink); }
.md-help dd { margin: 0; }

/* Zustimmungskarte (Portal) */
.accept-list { list-style: none; margin: 0; padding: 0; }
.accept-list li { border: 1px solid var(--c-line); border-radius: var(--radius); padding: var(--sp-3) var(--sp-4); background: var(--c-surface); }
.accept-list li + li { margin-top: var(--sp-3); }
.accept-list .check { padding: 0; }
.accept-list .check > span { font-weight: 600; }
.accept-list .check small { font-weight: 400; margin-top: 2px; }
.accept-list .accept-links { margin: var(--sp-2) 0 0 calc(20px + var(--sp-3)); font-size: var(--fs-sm); display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); }
.accept-list .accept-note { margin: var(--sp-2) 0 0 calc(20px + var(--sp-3)); font-size: var(--fs-sm); color: var(--c-ink-muted); }

/* ---------- Utilities ---------- */
.muted { color: var(--c-ink-muted); }
.subtle { color: var(--c-ink-subtle); }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain > li { padding: var(--sp-2) 0; border-bottom: 1px solid var(--c-line); }
.list-plain > li:last-child { border-bottom: 0; }
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.check-row { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-5); }
.pre-line { white-space: pre-line; }
.karten { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-3); }
.karte { padding: var(--sp-3); background: var(--c-surface-muted); border-radius: var(--radius); }
.karte > strong { display: block; margin-bottom: var(--sp-1); }
.karte p { margin: 0 0 var(--sp-1); }
.meta-list { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-1) var(--sp-3); margin: 0 0 var(--sp-4); }
.meta-list dt { color: var(--c-ink-subtle); }
.meta-list dd { margin: 0; }
.text-sm { font-size: var(--fs-sm); }
.text-right { text-align: right; }
.tabular { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.wrap { flex-wrap: wrap; }
.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: var(--sp-2); }
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: var(--sp-2); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-6 { margin-bottom: var(--sp-6); }
.w-100 { width: 100%; }
.w-auto { width: auto; }
.inline { display: inline; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Responsiv ---------- */
/* Listenseiten mit breiter Tabelle + Seitenformular: zweispaltig erst, wenn
   die Tabelle ungekuerzt neben das 360px-Formular passt, sonst stapeln. */
@media (max-width: 1536px) {
	.grid-stack-lg { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 1180px) {
	.grid-main { grid-template-columns: minmax(0, 1fr); }
	.grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.doc-aside { display: none; }
}

@media (max-width: 1023px) {
	.app { grid-template-columns: minmax(0, 1fr); }
	.sidebar {
		position: fixed;
		inset: 0 auto 0 0;
		width: min(300px, 86vw);
		transform: translateX(-100%);
		transition: transform .25s var(--ease);
		box-shadow: var(--shadow-lg);
	}
	.sidebar-open .sidebar { transform: none; }
	.sidebar-backdrop {
		position: fixed; inset: 0; z-index: 35;
		background: rgba(17, 28, 45, .4);
		opacity: 0; pointer-events: none; transition: opacity .25s;
		display: block;
	}
	.sidebar-open .sidebar-backdrop { opacity: 1; pointer-events: auto; }
	.sidebar-open { overflow: hidden; }
	.topbar { padding: 0 var(--sp-4); }
	.modebar { padding: 0 var(--sp-4); }
	.topbar .topbar-toggle { display: inline-flex; }
	.content { padding: var(--sp-6) var(--sp-5); }
	.auth { grid-template-columns: minmax(0, 1fr); }
	.auth-aside { display: none; }
	.auth-mobile-brand { display: flex; }
}

@media (max-width: 767px) {
	body { font-size: 1rem; }
	.content { padding: var(--sp-5) var(--sp-4) var(--sp-10); }
	.page-head { align-items: stretch; flex-direction: column; }
	.page-actions .btn { flex: 1; }
	.grid-2, .grid-3, .form-grid, .form-grid-3 { grid-template-columns: minmax(0, 1fr); }
	.kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
	.kpi { padding: var(--sp-4); }
	.kpi-value { font-size: var(--fs-xl); }
	.card-head, .card-body { padding-left: var(--sp-4); padding-right: var(--sp-4); }
	.card-foot { padding-left: var(--sp-4); padding-right: var(--sp-4); }
	.auth-main { padding: var(--sp-6) var(--sp-4); }
	.auth-card { padding: var(--sp-6); }
	.auth-card .lead { margin-bottom: var(--sp-6); }
	.card-foot .btn { flex: 1; }
	.dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
	.dl dd { margin-bottom: var(--sp-3); }
	.toolbar .select { flex: 1 1 140px; min-width: 0; }
	.input, .select, .textarea { font-size: 1rem; }
	.hide-mobile { display: none !important; }

	/* Tabellen werden zu Karten */
	.table-stack thead { display: none; }
	.table-stack, .table-stack tbody, .table-stack tr, .table-stack td { display: block; width: 100%; }
	.table-stack tr { padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--c-line-soft); }
	.table-stack tr:last-child { border-bottom: 0; }
	.table-stack td { border: 0; padding: 3px 0; }
	.table-stack td[data-label]:not([data-label=""])::before {
		content: attr(data-label);
		display: inline-block;
		min-width: 110px;
		color: var(--c-ink-subtle);
		font-size: var(--fs-sm);
	}
	.table-stack td[data-label] > div { display: inline-block; vertical-align: top; max-width: calc(100% - 114px); }
	.table-stack td.actions { text-align: left; padding-top: var(--sp-2); }
	.table-stack .num { text-align: left; }

	.steps { gap: var(--sp-2); }
	.steps li:not(.is-current) > span:last-child { display: none; }
	.steps li:not(.is-current) { flex: 0 0 auto; padding-right: var(--sp-2); }
	.map-row { grid-template-columns: minmax(0, 1fr); gap: var(--sp-2); }
	.map-arrow { display: none; }
	.dropzone { min-height: 160px; padding: var(--sp-6) var(--sp-4); }
	.import-bar { flex-direction: column; align-items: stretch; }
	.import-bar form, .import-bar .btn { width: 100%; }
	.tabs--inset { padding: 0 var(--sp-2); }
	.modebar { gap: var(--sp-2); }
	.modebar > .mdi { display: none; }
}

@media (min-width: 768px) {
	.show-mobile { display: none !important; }
}

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

@media print {
	.sidebar, .topbar, .modebar, .page-actions, .btn, .no-print, .alert { display: none !important; }
	.app { display: block; }
	.content { padding: 0; max-width: none; }
	.card { box-shadow: none; border: 0; }
	.card-body { padding: 0; }
	.grid-main { display: block; }
	.prose { max-width: none; font-size: 11pt; }
	.prose a { color: inherit; text-decoration: none; }
}

/* ============================================================
   Lern-Ablauf (login-freier Mitarbeiter-Flow /lernen/)
   ============================================================ */
.lernbar { position: sticky; top: 0; z-index: 10; background: var(--g-sheen), var(--g-navy); color: var(--c-on-primary); }
.lernbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--g-copper); }
.lernbar-in { max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); }
.lernbar .brand-mark { --mark: 32px; }
.lernbar .brand-wordmark { --wordmark-h: 14px; }
.lernflow { padding: var(--sp-5) var(--sp-4) var(--sp-8); }
.lernflow-in { max-width: 760px; margin: 0 auto; display: grid; gap: var(--sp-4); }

.steps--lern { margin-bottom: var(--sp-2); }
.lern-head h1 { margin: var(--sp-2) 0 var(--sp-1); }
.lern-head .badge { margin-bottom: var(--sp-1); }
.lern-ziele { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.lern-ziele li { display: flex; gap: var(--sp-2); align-items: flex-start; }
.lern-ziele li .mdi { color: var(--c-ok); margin-top: 2px; }
.lern-meta { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: var(--sp-4); color: var(--c-ink-muted); font-size: var(--fs-sm); }
.lern-meta .mdi { color: var(--c-primary); }

.lernkarte-titel { display: flex; align-items: center; gap: var(--sp-3); font-size: var(--fs-lg); margin: 0 0 var(--sp-3); }
.lernkarte-nr, .quizfrage-nr { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: var(--radius-pill); background: var(--g-mist); color: var(--c-primary); font-size: var(--fs-sm); font-weight: 700; box-shadow: inset 0 0 0 1px rgba(35, 57, 91, .08); }
.lernkarte-recht { margin: var(--sp-3) 0 0; display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--c-ink-muted); background: var(--c-surface-muted); padding: 4px 10px; border-radius: var(--radius-pill); }
.lern-muendlich { background: var(--c-surface-muted); border-radius: var(--radius); padding: var(--sp-3) var(--sp-4); margin-top: var(--sp-3); }

.quizfrage-titel { display: flex; align-items: center; gap: var(--sp-3); font-size: var(--fs-md); margin: 0 0 var(--sp-3); }
.quizfrage.is-falsch { box-shadow: inset 0 0 0 2px var(--c-warn); }
.quizfrage-hint { display: inline-flex; align-items: center; gap: 6px; color: var(--c-warn-ink); font-size: var(--fs-sm); margin: 0 0 var(--sp-3); }

.lern-summary { display: flex; align-items: center; gap: var(--sp-3); }
.lern-summary-icon { font-size: 2rem; color: var(--c-ok); }
.lern-actions { display: flex; gap: var(--sp-3); justify-content: space-between; flex-wrap: wrap; }
.lern-actions .btn { flex: 1 1 auto; }
.req { color: var(--c-danger); }

/* ---- Nachweis (Zertifikat, druckoptimiert) ---- */
.nachweis-bar { display: flex; gap: var(--sp-3); justify-content: flex-end; }
/* Papier in Warmweiss, innerer Kupferrahmen, Bandwelle unten (Entwurf „Zertifikat“) */
.nachweis {
	position: relative;
	padding: var(--sp-10) var(--sp-10) 120px;
	border: 1px solid var(--c-line);
	background: url("../img/welle.svg") bottom / 100% 96px no-repeat, linear-gradient(180deg, #FDFBF8 0%, #F7F2EC 100%);
	outline: 1px solid rgba(196, 122, 75, .55);
	outline-offset: -12px;
	-webkit-print-color-adjust: exact;
	print-color-adjust: exact;
}
.nachweis-head { position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: var(--sp-4); padding-bottom: var(--sp-5); margin-bottom: var(--sp-5); }
.nachweis-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--g-hairline); }
.nachweis-head h1 { font-size: var(--fs-xl); margin: var(--sp-1) 0; }
.nachweis-kicker { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .24em; font-size: var(--fs-xs); font-weight: 700; color: var(--c-accent-strong); margin: 0; }
.nachweis-logo { flex: none; display: flex; align-items: center; gap: 10px; }
.nachweis-logo .brand-mark { --mark: 34px; }
.nachweis-logo .brand-wordmark { --wordmark-h: 13px; }
.nachweis-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-3) var(--sp-5); }
.nachweis-grid > div { display: flex; flex-direction: column; }
.nachweis-label { font-size: var(--fs-sm); color: var(--c-ink-muted); }
.nachweis-value { font-weight: 600; }
.nachweis-fragen { margin-top: var(--sp-4); }
.nachweis-fragen summary { cursor: pointer; color: var(--c-primary); font-weight: 600; }
.nachweis-fragen ol { margin: var(--sp-3) 0 0; padding-left: 1.3em; display: grid; gap: var(--sp-2); }
.nachweis-sign { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); margin-top: var(--sp-6); }
.nachweis-signline span { display: block; height: 40px; border-bottom: 1px solid var(--c-ink); }
.nachweis-signline small { color: var(--c-ink-muted); }
.nachweis-hint { font-size: var(--fs-sm); color: var(--c-ink-muted); margin-top: var(--sp-3); }
.nachweis-foot { margin-top: var(--sp-6); padding-top: var(--sp-4); border-top: 1px solid var(--c-line); display: flex; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; }
.nachweis-foot > div { display: flex; flex-direction: column; }
.nachweis-code { font-size: 1.4rem; font-weight: 800; letter-spacing: .12em; font-family: var(--font-mono); color: var(--c-primary); }
.nachweis-hash code { font-size: 11px; word-break: break-all; color: var(--c-ink-muted); display: block; max-width: 320px; }

.pruef-ergebnis { display: flex; gap: var(--sp-3); align-items: flex-start; padding: var(--sp-4); border-radius: var(--radius); }
.pruef-ergebnis .mdi { font-size: 1.6rem; }
.pruef-ok { background: var(--c-ok-bg); color: var(--c-ok-ink); }
.pruef-fail { background: var(--c-danger-bg); color: var(--c-danger-ink); }

@media (min-width: 560px) {
	.nachweis-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
	.nachweis { padding: var(--sp-8) var(--sp-6) 88px; background-size: 100% 64px, auto; outline-offset: -8px; }
	.nachweis-head { flex-direction: column-reverse; gap: var(--sp-3); }
}

@media print {
	.lernbar, .nachweis-bar, .nachweis-fragen summary { display: none !important; }
	.lernbody { background: #fff; }
	.lernflow { padding: 0; }
	.nachweis { border: 0; box-shadow: none; }
	.nachweis-head h1 { font-size: 20pt; }
	.nachweis-fragen[open] summary { display: none; }
}

/* ============================================================
   Landingpage (oeffentliche Startseite, /)
   Nur Tokens, CSP-konform, responsiv 1140 / 900 / 767.
   ============================================================ */
.lp { background: var(--c-surface); color: var(--c-ink); }
.lp img { max-width: 100%; }
.lp-wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 var(--sp-6); }
.lp-section { padding: clamp(56px, 8vw, 104px) 0; }
.lp-section--tight { padding: clamp(40px, 5vw, 64px) 0; }

/* Kopf einer Sektion */
.lp-head { max-width: 680px; margin: 0 0 var(--sp-8); }
.lp-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.lp-head h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.028em; color: var(--c-primary); font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.12; margin: var(--sp-2) 0 var(--sp-3); }
.lp-head p { color: var(--c-ink-muted); font-size: var(--fs-md); margin: 0; }

/* ---------- Topbar ---------- */
.lp-topbar { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.88); backdrop-filter: saturate(150%) blur(10px); border-bottom: 1px solid var(--c-line-soft); }
.lp-topbar-inner { display: flex; align-items: center; gap: var(--sp-5); height: 68px; }
.lp-topbar .brand { padding: 0; }
.lp-topbar .brand-mark { --mark: 34px; }
.lp-topbar .brand-wordmark { --wordmark-h: 14px; }
.lp-nav { display: flex; gap: var(--sp-5); margin-left: auto; }
.lp-nav a { color: var(--c-ink-muted); text-decoration: none; font-size: var(--fs-sm); font-weight: 600; padding: 6px 2px; border-bottom: 2px solid transparent; }
.lp-nav a:hover { color: var(--c-primary); border-bottom-color: var(--c-accent); }
.lp-topbar-actions { display: flex; align-items: center; gap: var(--sp-3); margin-left: var(--sp-4); }

/* ---------- Hero ---------- */
.lp-hero { position: relative; overflow: hidden; background:
		radial-gradient(900px 540px at 108% -10%, rgba(196,122,75,.10), transparent 60%),
		radial-gradient(760px 620px at -8% 120%, rgba(174,185,199,.30), transparent 60%),
		linear-gradient(180deg, #F7F8FB 0%, #EEF1F5 100%); }
.lp-hero-grid { display: grid; grid-template-columns: minmax(0,1.02fr) minmax(0,1fr); gap: clamp(32px,4vw,64px); align-items: center; padding: clamp(48px,6vw,88px) 0 clamp(56px,7vw,96px); }
.lp-hero h1 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em; color: var(--c-primary); font-size: clamp(2.1rem, 4.4vw, 3.3rem); line-height: 1.07; margin: var(--sp-3) 0 var(--sp-4); }
.lp-hero h1 em { font-style: normal; color: var(--c-accent-strong); }
.lp-hero-lead { font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: var(--c-ink-muted); max-width: 42ch; margin: 0 0 var(--sp-6); }
.lp-cta-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.lp-cta-note { margin: var(--sp-4) 0 0; font-size: var(--fs-sm); color: var(--c-ink-subtle); display: flex; align-items: center; gap: 8px; }
.lp-cta-note .mdi { color: var(--c-ok); }
.lp-hero-media { position: relative; }

/* Browser-Rahmen fuer echte Produkt-Screenshots */
.lp-browser { border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--c-line); box-shadow: var(--shadow-lg); }
.lp-browser-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: var(--c-surface-muted); border-bottom: 1px solid var(--c-line-soft); }
.lp-browser-bar b { width: 11px; height: 11px; border-radius: 50%; background: #CFD6E0; display: block; }
.lp-browser-bar b:nth-child(1) { background: #E4A79A; }
.lp-browser-bar b:nth-child(2) { background: #E8C98C; }
.lp-browser-bar b:nth-child(3) { background: #AEC9A6; }
.lp-browser-url { margin-left: 10px; font-size: 12px; color: var(--c-ink-subtle); font-family: var(--font-mono); }
.lp-shot { display: block; width: 100%; height: auto; }
.lp-shot--crop { height: 300px; object-fit: cover; object-position: top left; }
.lp-hero-media .lp-browser { transform: perspective(1600px) rotateY(-4deg); }

/* kleiner schwebender „Beweis"-Chip auf dem Hero-Screenshot */
.lp-float { position: absolute; left: -14px; bottom: -18px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lp-float .mdi { font-size: 1.5rem; color: var(--c-accent-strong); }
.lp-float b { display: block; font-size: var(--fs-sm); color: var(--c-ink); }
.lp-float span { font-size: var(--fs-xs); color: var(--c-ink-subtle); }

/* ---------- Trust-Leiste ---------- */
.lp-trust { border-top: 1px solid var(--c-line-soft); border-bottom: 1px solid var(--c-line-soft); background: var(--c-surface); }
.lp-trust-row { display: flex; flex-wrap: wrap; gap: var(--sp-4) var(--sp-6); align-items: center; justify-content: center; padding: var(--sp-5) 0; }
.lp-trust-item { display: inline-flex; align-items: center; gap: 9px; color: var(--c-ink-muted); font-weight: 600; font-size: var(--fs-sm); }
.lp-trust-item .mdi { font-size: 1.25rem; color: var(--c-primary-soft); }

/* ---------- Dunkle Baender ---------- */
.lp-band--dark { position: relative; overflow: hidden; color: rgba(255,255,255,.86);
	background: radial-gradient(720px 520px at 110% -10%, rgba(174,185,199,.22), transparent 60%), radial-gradient(640px 520px at -12% 120%, rgba(196,122,75,.22), transparent 58%), var(--g-sheen), var(--g-navy); }
.lp-band--dark h2 { color: #fff; }
.lp-band--dark .lp-head p { color: rgba(255,255,255,.72); }
.lp-band--dark .lp-eyebrow { color: var(--c-accent-light); }

/* Eyebrow fuer Landing (hell/dunkel) */
.lp-eyebrow { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--c-accent-strong); }

/* ---------- Polarisieren: „unbequeme Wahrheit" ---------- */
.lp-truth { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px,4vw,56px); align-items: center; }
.lp-truth-points { list-style: none; margin: var(--sp-6) 0 0; padding: 0; display: grid; gap: var(--sp-4); }
.lp-truth-points li { display: flex; gap: var(--sp-4); align-items: flex-start; }
.lp-truth-points .mdi { flex: none; font-size: 1.4rem; color: var(--c-accent-light); margin-top: 2px; }
.lp-truth-points b { color: #fff; }
.lp-truth-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg); padding: var(--sp-7, 28px) var(--sp-6); }
.lp-truth-card .lp-vs { display: grid; gap: var(--sp-4); }
.lp-vs-row { display: flex; gap: var(--sp-3); align-items: flex-start; }
.lp-vs-row .mdi { flex: none; font-size: 1.3rem; margin-top: 1px; }
.lp-vs-no .mdi { color: #E4A79A; }
.lp-vs-yes .mdi { color: #AEC9A6; }
.lp-vs-row span { font-size: var(--fs-md); }
.lp-vs-row small { display: block; color: rgba(255,255,255,.6); font-size: var(--fs-sm); }

/* ---------- Ablauf (Schritte) ---------- */
.lp-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); counter-reset: step; }
.lp-step { position: relative; padding: var(--sp-6); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.lp-step-no { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-weight: 700; font-family: var(--font-display); color: #fff; background: var(--c-primary) var(--g-primary); margin-bottom: var(--sp-3); }
.lp-step h3 { font-size: var(--fs-md); margin: 0 0 var(--sp-2); }
.lp-step p { margin: 0; color: var(--c-ink-muted); font-size: var(--fs-sm); }
.lp-ablauf-media { margin-top: var(--sp-8); }

/* ---------- Feature-Grid ---------- */
.lp-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.lp-feature { padding: var(--sp-6); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.lp-feature:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.lp-feature-ico { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; font-size: 1.4rem; color: var(--c-primary); background: var(--c-mist) var(--g-mist); border: 1px solid var(--c-line-soft); margin-bottom: var(--sp-4); }
.lp-feature h3 { font-size: var(--fs-md); margin: 0 0 var(--sp-2); }
.lp-feature p { margin: 0; color: var(--c-ink-muted); font-size: var(--fs-sm); }

/* ---------- QM-Sektion ---------- */
.lp-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,4vw,64px); align-items: center; }
.lp-checklist { list-style: none; margin: var(--sp-5) 0 0; padding: 0; display: grid; gap: var(--sp-3); }
.lp-checklist li { display: flex; gap: var(--sp-3); align-items: flex-start; color: var(--c-ink); }
.lp-checklist .mdi { flex: none; color: var(--c-accent-strong); font-size: 1.2rem; margin-top: 2px; }
.lp-badge-soft { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: var(--radius-pill); background: var(--c-accent-soft); color: var(--c-accent-ink); font-size: var(--fs-sm); font-weight: 600; }

/* ---------- WhatsApp-Telefon-Mock ---------- */
.lp-phone { width: 300px; max-width: 100%; margin: 0 auto; background: #0E1A2B; border-radius: 34px; padding: 12px; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.08); }
.lp-phone-screen { background: #ECE5DD; border-radius: 24px; overflow: hidden; }
.lp-phone-top { background: var(--c-primary) var(--g-primary); color: #fff; display: flex; align-items: center; gap: 10px; padding: 14px 16px; }
.lp-phone-top .brand-mark { --mark: 26px; filter: drop-shadow(0 0 1px rgba(255,255,255,.3)); }
.lp-phone-top b { font-size: var(--fs-sm); }
.lp-phone-top small { display: block; font-size: 11px; color: rgba(255,255,255,.7); }
.lp-chat { padding: var(--sp-4); display: grid; gap: var(--sp-3); min-height: 320px; }
.lp-bubble { max-width: 85%; padding: 10px 12px; border-radius: 12px; font-size: var(--fs-sm); line-height: 1.4; box-shadow: 0 1px 1px rgba(17,28,45,.12); }
.lp-bubble--in { background: #fff; color: #1B2638; border-top-left-radius: 3px; }
.lp-bubble--out { background: #D6F1C8; color: #12351C; margin-left: auto; border-top-right-radius: 3px; }
.lp-bubble time { display: block; margin-top: 4px; font-size: 10px; color: rgba(27,38,56,.5); text-align: right; }
.lp-bubble .mdi { color: var(--c-accent-strong); }

/* ---------- Vergleichstabelle ---------- */
.lp-compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-lg); overflow: hidden; }
.lp-compare th, .lp-compare td { padding: var(--sp-4) var(--sp-4); text-align: left; border-bottom: 1px solid var(--c-line-soft); font-size: var(--fs-sm); vertical-align: top; }
.lp-compare thead th { background: var(--c-surface-muted); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--c-ink-muted); }
.lp-compare thead th.lp-col-us { background: var(--c-primary) var(--g-primary); color: #fff; }
.lp-compare td.lp-col-us { background: #FBFCFE; font-weight: 600; color: var(--c-ink); }
.lp-compare tbody tr:last-child td { border-bottom: 0; }
.lp-compare .lp-c-row-h { font-weight: 600; color: var(--c-ink); }
.lp-tick { color: var(--c-ok); font-weight: 700; }
.lp-cross { color: var(--c-line-strong); }
.lp-compare-hint { display: none; margin: var(--sp-3) 0 0; font-size: var(--fs-xs); color: var(--c-ink-muted); text-align: right; }

/* ---------- Persona-Band mit Foto ---------- */
.lp-persona { position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--c-line); box-shadow: var(--shadow); }
.lp-persona-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: stretch; }
.lp-persona-copy { padding: clamp(28px,4vw,56px); background: var(--c-surface); }
.lp-persona-photo { min-height: 320px; background-size: cover; background-position: center; }
.lp-quote { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem,2vw,1.7rem); line-height: 1.25; color: var(--c-primary); letter-spacing: -0.02em; }
.lp-quote-by { margin-top: var(--sp-4); color: var(--c-ink-muted); font-size: var(--fs-sm); }

/* ---------- FAQ ---------- */
.lp-faq { max-width: 820px; margin: 0 auto; display: grid; gap: var(--sp-3); }
.lp-faq details { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: var(--sp-4) var(--sp-5); }
.lp-faq summary { cursor: pointer; font-weight: 600; color: var(--c-ink); list-style: none; display: flex; justify-content: space-between; gap: var(--sp-4); align-items: center; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "\F0415"; font-family: "Material Design Icons"; color: var(--c-ink-subtle); font-size: 1.2rem; transition: transform .2s var(--ease); }
.lp-faq details[open] summary::after { transform: rotate(180deg); }
.lp-faq p { margin: var(--sp-3) 0 0; color: var(--c-ink-muted); font-size: var(--fs-sm); }

/* ---------- Finale CTA ---------- */
.lp-finalcta { position: relative; overflow: hidden; text-align: center; color: #fff;
	background: radial-gradient(700px 480px at 50% -20%, rgba(196,122,75,.26), transparent 60%), var(--g-sheen), var(--g-navy); }
.lp-finalcta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; opacity: .18; mix-blend-mode: screen; pointer-events: none; }
.lp-finalcta .lp-wrap { position: relative; z-index: 1; }
.lp-finalcta h2 { color: #fff; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.028em; font-size: clamp(1.7rem,3.4vw,2.6rem); line-height: 1.1; max-width: 18ch; margin: var(--sp-2) auto var(--sp-4); }
.lp-finalcta p { color: rgba(255,255,255,.76); max-width: 54ch; margin: 0 auto var(--sp-6); font-size: var(--fs-md); }

/* ---------- Footer ---------- */
.lp-footer { background: #101C2D; color: rgba(255,255,255,.66); padding: var(--sp-10) 0 var(--sp-8); border-top: 1px solid rgba(255,255,255,.08); }
.lp-footer-top { display: flex; flex-wrap: wrap; gap: var(--sp-6); justify-content: space-between; align-items: flex-start; }
.lp-footer .brand-mark { --mark: 30px; }
.lp-footer .brand-wordmark { --wordmark-h: 13px; }
.lp-footer-links { display: flex; flex-wrap: wrap; gap: var(--sp-5); }
.lp-footer-links a { color: rgba(255,255,255,.72); text-decoration: none; font-size: var(--fs-sm); }
.lp-footer-links a:hover { color: #fff; }
.lp-footer-legal { margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid rgba(255,255,255,.08); font-size: var(--fs-xs); color: rgba(255,255,255,.5); }

/* ---------- CTA-Buttons gross auf dunklem Grund ---------- */
.btn-on-dark { background: #fff; color: var(--c-primary); }
.btn-on-dark:hover { background: rgba(255,255,255,.9); color: var(--c-primary-hover); }
.btn-ghost-dark { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn-ghost-dark:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ---------- Landing: Hilfsklassen ---------- */
.lp-section--muted { background: var(--c-surface-muted); }
.lp-head--mt { margin-top: var(--sp-4); }
.lp-cta-row--center { justify-content: center; }
.lp-truth-lead { color: rgba(255,255,255,.75); font-size: var(--fs-md); margin: var(--sp-3) 0 0; max-width: 54ch; }
.lp-persona-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Landing responsiv ---------- */
@media (max-width: 1023px) {
	.lp-hero-grid { grid-template-columns: 1fr; }
	.lp-hero-media { order: -1; }
	.lp-hero-media .lp-browser { transform: none; }
	.lp-truth, .lp-split, .lp-persona-grid { grid-template-columns: 1fr; }
	.lp-steps { grid-template-columns: repeat(2, 1fr); }
	.lp-features { grid-template-columns: repeat(2, 1fr); }
	.lp-nav { display: none; }
	.lp-persona-photo { min-height: 240px; }
}
@media (max-width: 767px) {
	.lp-steps, .lp-features { grid-template-columns: 1fr; }
	.lp-float { display: none; }
	.lp-compare-wrap { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; border: 1px solid var(--c-line); border-radius: var(--radius-lg); }
	.lp-compare { min-width: 600px; border: 0; border-radius: 0; overflow: visible; }
	.lp-compare th, .lp-compare td { padding: var(--sp-3); }
	/* Erste Spalte beim Wischen sichtbar lassen */
	.lp-compare thead th:first-child { position: sticky; left: 0; z-index: 2; background: var(--c-surface-muted); }
	.lp-compare .lp-c-row-h { position: sticky; left: 0; z-index: 1; background: var(--c-surface); box-shadow: 1px 0 0 var(--c-line-soft); }
	.lp-compare-hint { display: block; }
	.lp-topbar-actions .btn-lg { --btn-h: 40px; padding: 0 var(--sp-4); }
}

/* ============================================================
   Landing 2.0 — mehr Metallverläufe, Scroll-Reveal, Wow-Szene.
   Weiterhin nur Tokens, CSP-konform (Animationen rein in CSS).
   ============================================================ */

/* ---------- Scroll-Reveal (greift nur mit JS; sonst alles sichtbar) ---------- */
.has-js [data-reveal]:not(.rvl-stagger) { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.has-js [data-reveal]:not(.rvl-stagger).is-revealed { opacity: 1; transform: none; }
.has-js .rvl-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.has-js .rvl-stagger.is-revealed > * { opacity: 1; transform: none; }
.has-js .rvl-stagger.is-revealed > *:nth-child(1) { transition-delay: 0s; }
.has-js .rvl-stagger.is-revealed > *:nth-child(2) { transition-delay: .07s; }
.has-js .rvl-stagger.is-revealed > *:nth-child(3) { transition-delay: .14s; }
.has-js .rvl-stagger.is-revealed > *:nth-child(4) { transition-delay: .21s; }
.has-js .rvl-stagger.is-revealed > *:nth-child(5) { transition-delay: .28s; }
.has-js .rvl-stagger.is-revealed > *:nth-child(6) { transition-delay: .35s; }

/* ---------- Hero: driftende Verlaufs-Wolken + Kupfer-Glow unter dem Screenshot ---------- */
.lp-hero::before { content: ""; position: absolute; inset: -22% -12%; z-index: 0; pointer-events: none;
	background:
		radial-gradient(500px 500px at 16% 28%, rgba(196,122,75,.12), transparent 60%),
		radial-gradient(640px 540px at 86% 16%, rgba(79,103,129,.18), transparent 62%),
		radial-gradient(560px 540px at 72% 98%, rgba(174,185,199,.26), transparent 62%);
	animation: lpDrift 26s ease-in-out infinite alternate; }
.lp-hero-grid { position: relative; z-index: 1; }
.lp-hero-media::before { content: ""; position: absolute; inset: 8% -8% -12% 4%; z-index: 0; pointer-events: none;
	background: radial-gradient(62% 60% at 62% 42%, rgba(196,122,75,.26), transparent 70%); filter: blur(34px); }
.lp-hero-media .lp-browser, .lp-hero-media .lp-float { position: relative; z-index: 1; }
@keyframes lpDrift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-3%, 2.5%, 0) scale(1.08); } }

/* ---------- Verlaufs-Flächen für sonst flache helle Sektionen ---------- */
.lp-section--mesh { position: relative;
	background:
		radial-gradient(680px 460px at 100% 0%, rgba(196,122,75,.07), transparent 60%),
		radial-gradient(640px 540px at 0% 100%, rgba(174,185,199,.22), transparent 60%),
		linear-gradient(180deg, #FFFFFF 0%, #F5F8FC 100%); }

/* ---------- Trust-Leiste: zarte Verlaufsfläche ---------- */
.lp-trust { background: linear-gradient(180deg, #FFFFFF, #F6F8FB); }

/* ---------- Feature-Karten: Verlaufsfläche + Kupfer-Kante bei Hover ---------- */
.lp-feature { position: relative; overflow: hidden; background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFD 100%); }
.lp-feature::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--c-accent) var(--g-copper); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.lp-feature:hover::before { transform: scaleX(1); }
.lp-band--dark .lp-feature { background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03)); border-color: rgba(255,255,255,.12); }
.lp-band--dark .lp-feature-ico { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: var(--c-accent-light); }
.lp-band--dark .lp-feature h3 { color: #fff; }
.lp-band--dark .lp-feature p { color: rgba(255,255,255,.72); }

/* ---------- Ablauf: Verlaufslinie hinter den Schritten (Desktop) ---------- */
@media (min-width: 1024px) {
	.lp-steps { position: relative; }
	.lp-steps::before { content: ""; position: absolute; top: 41px; left: 10%; right: 10%; height: 2px; background: var(--g-hairline); z-index: 0; }
	.lp-step { position: relative; z-index: 1; }
}
.lp-step { background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%); }
.lp-step-no { box-shadow: 0 6px 16px rgba(35,57,91,.28); }

/* ---------- Badge/Icons etwas „metallischer“ ---------- */
.lp-feature-ico { background: var(--c-mist) var(--g-silver); }
.lp-badge-soft { background: var(--c-accent-soft) var(--g-sand); }

/* ============================================================
   Wow-Szene: Pflichten-Chaos → Logo-Burst → geprüfte Ordnung.
   Reiner CSS-Loop (~12 s), kein JS nötig.
   ============================================================ */
/* Scroll-Pinning: hohe Hülle gibt Scrollstrecke, innerer Bereich bleibt fixiert */
.lp-wow-scroll { position: relative; height: 280vh; }
.lp-wow-pin { position: sticky; top: 0; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: var(--sp-8) 0; }
.lp-wow { margin-top: var(--sp-6); width: 100%; }
.wow-stage { position: relative; height: clamp(360px, 42vw, 460px); border-radius: var(--radius-lg); overflow: hidden;
	background:
		radial-gradient(620px 420px at 50% 122%, rgba(196,122,75,.20), transparent 60%),
		radial-gradient(560px 420px at 100% -10%, rgba(174,185,199,.20), transparent 60%),
		var(--g-sheen), var(--g-navy);
	border: 1px solid rgba(255,255,255,.12); box-shadow: var(--shadow-lg); }

/* Zähler oben mittig */
.wow-count { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; border-radius: var(--radius-pill); font-weight: 700; font-size: var(--fs-sm); white-space: nowrap; z-index: 4; }
.wow-count .mdi { font-size: 1.15rem; }
.wow-count--bad { background: rgba(228,167,154,.16); color: #F3C7BC; border: 1px solid rgba(228,167,154,.42); }
.wow-count--ok { background: rgba(174,201,166,.16); color: #CFEAC5; border: 1px solid rgba(174,201,166,.44); }

/* Scroll-gesteuert: --wow (0..1) setzt JS je nach Scrollposition. 0 = Chaos, 1 = geprüft.
   Ohne JS bleibt --wow auf 1 (sinnvoller Endzustand). */
.wow-stage { --wow: 1;
	--wow-chaos: clamp(0, calc((0.5 - var(--wow)) / 0.16), 1);
	--wow-solved: clamp(0, calc((var(--wow) - 0.52) / 0.16), 1);
	--wow-rise: clamp(0, calc((var(--wow) - 0.3) / 0.12), 1);
	--wow-fall: clamp(0, calc((0.72 - var(--wow)) / 0.12), 1);
	--wow-core: min(var(--wow-rise), var(--wow-fall)); }

/* Chaos-Ebene + Chips */
.wow-chaos { position: absolute; inset: 0; z-index: 2; opacity: var(--wow-chaos); }
.wow-chip { position: absolute; display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: var(--radius-pill); font-size: var(--fs-sm); font-weight: 600; color: #fff; white-space: nowrap;
	background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); box-shadow: 0 8px 22px rgba(10,18,30,.35); backdrop-filter: blur(3px);
	--cp: min(1, calc(var(--wow) * 2));
	transform: translate(calc(var(--dx, 0px) * var(--cp)), calc(var(--dy, 0px) * var(--cp))) scale(calc(1 - 0.72 * var(--cp))); }
.wow-chip .mdi { font-size: 1.1rem; color: #E8B07A; }
.wow-chip--1 { top: 13%; left: 7%;  --dx: 470px;  --dy: 165px; }
.wow-chip--2 { top: 27%; left: 60%; --dx: -110px; --dy: 105px; }
.wow-chip--3 { top: 63%; left: 10%; --dx: 440px;  --dy: -60px; }
.wow-chip--4 { top: 18%; left: 33%; --dx: 190px;  --dy: 145px; }
.wow-chip--5 { top: 70%; left: 56%; --dx: -65px;  --dy: -90px; }
.wow-chip--6 { top: 45%; left: 77%; --dx: -295px; --dy: 25px; }
.wow-chip--7 { top: 80%; left: 31%; --dx: 210px;  --dy: -135px; }

/* Kern (Logo) + Ring + Sweep */
.wow-core { position: absolute; left: 50%; top: 50%; width: 128px; height: 128px; display: grid; place-items: center; z-index: 3; opacity: var(--wow-core); transform: translate(-50%,-50%) scale(calc(0.55 + 0.55 * var(--wow-core))); }
.wow-core::before { content: ""; position: absolute; left: 50%; top: 50%; width: 170px; height: 170px; transform: translate(-50%,-50%); border-radius: 50%; background: radial-gradient(circle, rgba(196,122,75,.55), transparent 68%); filter: blur(10px); z-index: -1; }
.wow-mark { --mark: 80px; filter: drop-shadow(0 6px 16px rgba(0,0,0,.4)) drop-shadow(0 0 1px rgba(255,255,255,.3)); }
.wow-ring { position: absolute; left: 50%; top: 50%; width: 128px; height: 128px; border-radius: 50%; border: 2px solid rgba(196,122,75,.6); z-index: 3; opacity: calc(var(--wow-core) * .6); transform: translate(-50%,-50%) scale(calc(0.3 + 2.8 * var(--wow-rise))); }
.wow-sweep { position: absolute; top: 0; bottom: 0; left: 0; width: 55%; z-index: 3; pointer-events: none;
	background: linear-gradient(100deg, transparent, rgba(217,151,106,.0) 20%, rgba(217,151,106,.55) 50%, rgba(255,255,255,.0) 80%, transparent);
	opacity: calc(var(--wow-core) * .9); transform: translateX(calc(-120% + 300% * var(--wow))); }

/* Gelöst-Ebene */
.wow-solved { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; opacity: var(--wow-solved); transform: translateY(calc(12px * (1 - var(--wow-solved)))); }
.wow-done { display: flex; align-items: center; gap: 10px; width: min(380px, 88%); padding: 11px 15px; border-radius: 12px; color: #fff; font-size: var(--fs-sm); font-weight: 600;
	background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.05)); border: 1px solid rgba(174,201,166,.32); }
.wow-done .mdi { color: #AEC9A6; font-size: 1.25rem; flex: none; }

.lp-wow-caption { text-align: center; margin: var(--sp-5) auto 0; max-width: 60ch; color: var(--c-ink-muted); font-size: var(--fs-sm); }

/* Wow responsiv */
@media (max-width: 767px) {
	.wow-chip { font-size: var(--fs-xs); padding: 6px 10px; }
	.wow-chip--4, .wow-chip--6, .wow-chip--7 { display: none; }
	.wow-chip--1 { top: 21%; left: 5%;  --dx: 150px; --dy: 100px; }
	.wow-chip--2 { top: 33%; left: 40%; --dx: 35px;  --dy: 60px; }
	.wow-chip--3 { top: 66%; left: 5%;  --dx: 150px; --dy: -55px; }
	.wow-chip--5 { top: 81%; left: 36%; --dx: 50px;  --dy: -110px; }
	.wow-mark { --mark: 62px; }
	.wow-core, .wow-ring { width: 104px; height: 104px; }
	.lp-wow-scroll { height: 240vh; }
	.wow-count { font-size: var(--fs-xs); padding: 6px 12px; top: 14px; }
	/* Gelöste Liste unter den Zähler setzen, damit sie sich nicht überlagert */
	.wow-solved { justify-content: flex-start; padding: 56px 16px 16px; gap: 8px; }
	.wow-done { padding: 9px 12px; }
}

/* Reduzierte Bewegung: Endzustand statisch zeigen, keine Loops */
@media (prefers-reduced-motion: reduce) {
	.lp-hero::before { animation: none; }
	.wow-stage { --wow: 1 !important; }
	.lp-wow-scroll { height: auto; }
	.lp-wow-pin { position: static; min-height: 0; padding: clamp(56px, 8vw, 104px) 0; }
	.has-js [data-reveal], .has-js [data-reveal]:not(.rvl-stagger), .has-js .rvl-stagger > * { opacity: 1 !important; transform: none !important; }
}

/* =====================================================================
   Vorab-Registrierung: Aktions-Band, Countdown, Registrierungsseite
   ===================================================================== */

/* Aktions-Band ganz oben auf der Landing */
.lp-announce { display: flex; align-items: center; justify-content: center; gap: var(--sp-3); flex-wrap: wrap;
	padding: 10px 20px; text-decoration: none; color: #fff; font-size: var(--fs-sm);
	background: var(--c-primary) var(--g-navy); border-bottom: 1px solid rgba(255,255,255,.12); }
.lp-announce:hover { background: var(--c-primary) var(--g-primary); }
.lp-announce-badge { font-weight: 700; letter-spacing: .02em; padding: 3px 10px; border-radius: var(--radius-pill);
	background: var(--c-accent) var(--g-copper); color: #fff; white-space: nowrap; }
.lp-announce-text { color: rgba(255,255,255,.92); }
.lp-announce-text b { color: #fff; }
.lp-announce-cd { font-variant-numeric: tabular-nums; color: rgba(255,255,255,.72); white-space: nowrap; }
.lp-announce-cd b { color: #fff; }
.lp-announce-cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #fff; white-space: nowrap; }
.lp-announce-cta .mdi { transition: transform .2s var(--ease); }
.lp-announce:hover .lp-announce-cta .mdi { transform: translateX(3px); }

/* Countdown-Kacheln (Landing-Finale + Registrierung) */
.lp-finalcta-cd, .reg-countdown { display: flex; gap: 10px; justify-content: center; margin: var(--sp-5) 0; }
.reg-countdown { justify-content: flex-start; }
.lp-finalcta-cd > div, .reg-countdown > div { min-width: 68px; padding: 10px 6px; border-radius: var(--radius-md);
	text-align: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); }
.reg-countdown > div { background: var(--c-surface); border: 1px solid var(--c-line); box-shadow: var(--shadow-sm); }
.lp-finalcta-cd b, .reg-countdown b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.lp-finalcta-cd span, .reg-countdown span { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; opacity: .75; }
.lp-finalcta-cd b { color: #fff; }
.reg-countdown b { color: var(--c-primary); }

/* Registrierungsseite */
.reg-main { padding: clamp(28px, 5vw, 64px) 0 clamp(48px, 8vw, 96px); min-height: 70vh; }
.reg-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.reg-aside h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.12; margin: var(--sp-2) 0 var(--sp-3); }
.reg-lead { color: var(--c-ink-muted); max-width: 46ch; margin: 0 0 var(--sp-4); }
.reg-perks { list-style: none; margin: 0 0 var(--sp-2); padding: 0; display: grid; gap: var(--sp-3); }
.reg-perks li { display: flex; gap: var(--sp-3); align-items: flex-start; }
.reg-perk-ico { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px;
	background: var(--c-accent-soft); color: var(--c-accent-ink); font-size: 1.3rem; }
.reg-perks b { color: var(--c-ink); }
.reg-trust { display: flex; align-items: center; gap: 8px; margin: var(--sp-2) 0 0; font-size: var(--fs-sm); color: var(--c-ink-muted); }
.reg-trust .mdi { color: var(--c-ok); font-size: 1.15rem; }

.reg-form-card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg); padding: clamp(20px, 3vw, 32px); }
.reg-form-title { font-size: var(--fs-lg); margin: 0 0 var(--sp-4); }
.reg-form-card .field { margin-bottom: var(--sp-3); }
.reg-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.reg-row--plz { grid-template-columns: 1fr 2fr; }
.reg-consent { display: flex; gap: 10px; align-items: flex-start; margin: var(--sp-2) 0 var(--sp-4); font-size: var(--fs-sm); color: var(--c-ink-muted); cursor: pointer; }
.reg-consent input { margin-top: 3px; flex: none; width: 18px; height: 18px; accent-color: var(--c-accent); }
.reg-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: var(--sp-3) 0 0; font-size: var(--fs-xs); color: var(--c-ink-muted); }

/* Zustände (Danke / bestätigt / ungültig / Start) */
.reg-state { max-width: 560px; margin: clamp(20px, 5vw, 56px) auto; text-align: center; }
.reg-state-ico { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; font-size: 2.2rem; margin-bottom: var(--sp-4); }
.reg-state-ico--ok { background: var(--c-accent-soft); color: var(--c-accent-ink); }
.reg-state-ico--bad { background: #FBEDE8; color: var(--c-accent-strong); }
.reg-state h1 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin: 0 0 var(--sp-3); }
.reg-state p { color: var(--c-ink-muted); max-width: 48ch; margin: 0 auto var(--sp-4); }
.reg-state-sub { font-size: var(--fs-sm); }

@media (max-width: 1023px) {
	.reg-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
	.lp-announce { gap: 8px; padding: 9px 14px; font-size: var(--fs-xs); }
	.lp-announce-cd { display: none; }
	.reg-row, .reg-row--plz { grid-template-columns: 1fr; }
	.lp-finalcta-cd > div, .reg-countdown > div { min-width: 60px; }
}
