/*
 * mandari Kundenportal (/kunden, intern#118). Eigenes Gerüst statt Frappe-Navbar: Seitenleiste in kühlem Grau wie in
 * mandari Work und im Desk, Inhalt auf Weiß, Kennfarbe Indigo nur für den aktiven Eintrag, die eine Hauptaktion und
 * den Fokus. Eine Ebene: keine Karten, Gliederung über Abstand und Überschriften, Linien nur in Tabellen.
 * Hervorgehoben ist nur der Überweisungsblock der Rechnung (Fläche mit Bankdaten und GiroCode).
 * Dunkler Modus wie auf mandari.de: Schalter in der Leiste (ohne Leiste oben rechts), sonst Systemeinstellung; Klasse
 * html.dark (dunkelmodus.py, mandari_web.js). Alles unter body.kp-seite, damit Frappes
 * website.bundle.css (Bootstrap) nicht dazwischenfunkt.
 */

body.kp-seite {
	--kp-tinte: #101725;
	--kp-text: #313846;
	--kp-leise: #5f6673;
	--kp-linie: #e3e6eb;
	--kp-rand: #c3c7cf;
	--kp-flaeche: #ffffff;
	--kp-leiste: #eef0f4;
	--kp-feld: #f4f5f8;
	--kp-akzent: #4f46e5;
	--kp-akzent-tief: #4338ca;
	--kp-akzent-flaeche: #e4e3fb;
	--kp-link: #4338ca;
	--kp-rot: #b42318;
	--kp-gruen: #17703f;
	--kp-fokus: 0 0 0 2px #ffffff, 0 0 0 4px #4f46e5;

	margin: 0;
	background: var(--kp-flaeche);
	color: var(--kp-text);
	font-family: var(--font-stack, "InterVariable", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif);
	font-size: 15px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

body.kp-seite *,
body.kp-seite *::before,
body.kp-seite *::after {
	box-sizing: border-box;
}

/* ---------- Gerüst ---------------------------------------------------------------------------------------------- */

.kp {
	display: grid;
	grid-template-columns: 232px minmax(0, 1fr);
	min-height: 100vh;
}

.kp--schlicht {
	grid-template-columns: minmax(0, 1fr);
}

/* Die Fläche der Leiste ist die ganze Grid-Zelle (reicht auf langen Seiten bis unten); nur der Inhalt klebt oben */
.kp-leiste {
	background: var(--kp-leiste);
}

.kp-leiste-innen {
	position: sticky;
	top: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
	height: 100vh;
	overflow-y: auto;
	padding: 20px 12px 16px;
}

.kp .kp-marke {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 0 10px;
	color: var(--kp-leise);
	font-size: 13px;
	text-decoration: none;
}

.kp-marke img {
	display: block;
	width: auto;
	height: 20px;
}

.kp .kp-marke:hover {
	color: var(--kp-tinte);
	text-decoration: none;
}

.kp-nav ul {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.kp .kp-nav a,
.kp .kp-konto a {
	display: block;
	padding: 6px 10px;
	border-radius: 6px;
	color: var(--kp-text);
	font-size: 14px;
	text-decoration: none;
}

.kp .kp-nav a:hover,
.kp .kp-konto a:hover {
	background: rgb(16 23 37 / 0.05);
	color: var(--kp-tinte);
	text-decoration: none;
}

.kp .kp-nav a[aria-current="page"],
.kp .kp-konto a[aria-current="page"] {
	border-radius: 0 6px 6px 0;
	background: var(--kp-akzent-flaeche);
	box-shadow: inset 2px 0 0 var(--kp-akzent);
	color: var(--kp-akzent-tief);
	font-weight: 600;
}

.kp-konto {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: auto;
}

.kp-konto p {
	margin: 0;
	padding: 0 10px;
	overflow-wrap: anywhere;
}

.kp-konto-kunde {
	color: var(--kp-tinte);
	font-size: 13px;
	font-weight: 600;
}

.kp .kp-konto-user {
	margin-bottom: 6px;
	overflow: hidden;
	color: var(--kp-leise);
	font-size: 13px;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.kp .kp-konto a {
	font-size: 13px;
}

/* Volle Breite des Bildschirms (Sven 29.10.2026: „Alle anderen Seiten nutzen auch nicht die vollständige Displaygröße“);
   nur Formulare (.kp-maske) bleiben schmal, damit Eingabefelder nicht über den ganzen Bildschirm laufen */
.kp-inhalt {
	width: 100%;
	min-width: 0;
	padding: 32px 40px 40px;
}

.kp--schlicht .kp-inhalt {
	max-width: 560px;
	margin: 0 auto;
	padding-top: 72px;
}

.kp-schlicht-marke {
	display: block;
	width: auto;
	height: 20px;
	margin-bottom: 24px;
}

/* ---------- Text ---------------------------------------------------------------------------------------------- */

.kp h1 {
	margin: 0;
	color: var(--kp-tinte);
	font-size: 24px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.kp h2 {
	margin: 0 0 8px;
	color: var(--kp-tinte);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
}

.kp p {
	margin: 0;
}

.kp a {
	color: var(--kp-link);
	text-decoration: none;
	text-underline-offset: 2px;
}

.kp a:hover {
	text-decoration: underline;
}

.kp a:focus-visible,
.kp button:focus-visible,
.kp input:focus-visible {
	outline: none;
	box-shadow: var(--kp-fokus);
}

.kp-kopf {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px 24px;
	margin-bottom: 24px;
}

.kp .kp-unter {
	margin-top: 4px;
	color: var(--kp-leise);
	font-size: 14px;
}

.kp .kp-zurueck {
	margin-bottom: 8px;
	font-size: 13px;
}

.kp .kp-absatz {
	margin-bottom: 12px;
}

.kp h1 + .kp-absatz {
	margin-top: 8px;
}

.kp-lesespalte {
	max-width: none;
}

.kp-leise {
	color: var(--kp-leise);
	font-size: 13px;
}

.kp-leer {
	color: var(--kp-leise);
}

.kp-abschnitt {
	margin-top: 32px;
}

.kp-kopf + .kp-abschnitt,
.kp-merkzeile + .kp-abschnitt {
	margin-top: 0;
}

.kp-fuss {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	margin-top: 48px;
	color: var(--kp-leise);
	font-size: 13px;
}

/* Hinweiszeile (Empfehlung zweiter Faktor, gesperrter Zugang): ruhig, ohne Symbol */
.kp .kp-merkzeile {
	margin-bottom: 24px;
	padding: 10px 14px;
	border-left: 3px solid var(--kp-akzent);
	background: var(--kp-feld);
	font-size: 14px;
}

.kp .kp-merkzeile + .kp-merkzeile {
	margin-top: -16px;
}

.kp .kp-merkzeile--sperre,
.kp .kp-merkzeile--fehler {
	border-left-color: var(--kp-rot);
}

.kp .kp-merkzeile--ok {
	border-left-color: var(--kp-gruen);
}

/* ---------- Status ---------------------------------------------------------------------------------------------- */

.kp-status {
	font-weight: 500;
}

.kp-ton-offen {
	color: var(--kp-tinte);
}

.kp-ton-ueberfaellig {
	color: var(--kp-rot);
}

.kp-ton-bezahlt {
	color: var(--kp-gruen);
}

.kp-ton-neutral {
	color: var(--kp-leise);
}

/* ---------- Tabellen ---------------------------------------------------------------------------------------------- */

.kp-tabelle-rahmen {
	overflow-x: auto;
}

.kp-tabelle {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.kp-tabelle th,
.kp-tabelle td {
	padding: 9px 16px 9px 0;
	border-bottom: 1px solid var(--kp-linie);
	text-align: left;
	vertical-align: top;
}

.kp-tabelle th:last-child,
.kp-tabelle td:last-child {
	padding-right: 0;
}

.kp-tabelle thead th {
	padding-top: 4px;
	color: var(--kp-leise);
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
}

.kp-tabelle tbody td {
	color: var(--kp-tinte);
}

.kp-tabelle tfoot th,
.kp-tabelle tfoot td {
	border-bottom: 0;
	font-weight: 400;
}

.kp-tabelle .kp-summe th,
.kp-tabelle .kp-summe td {
	padding-top: 12px;
	color: var(--kp-tinte);
	font-weight: 600;
}

.kp-tabelle .kp-steuer th,
.kp-tabelle .kp-steuer td {
	padding-top: 0;
	color: var(--kp-leise);
	font-size: 13px;
}

.kp-tabelle tfoot th {
	text-align: right;
}

.kp-zahl,
.kp-tabelle .kp-zahl {
	text-align: right;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.kp-zahl-text {
	font-variant-numeric: tabular-nums;
}

.kp-zeilentitel {
	display: block;
}

.kp-nummer {
	white-space: nowrap;
}

.kp-zusatz {
	display: block;
	color: var(--kp-leise);
	font-size: 13px;
}

a.kp-zusatz {
	color: var(--kp-link);
}

/* ---------- Angaben ---------------------------------------------------------------------------------------------- */

.kp-angaben {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
	gap: 16px 24px;
	margin: 0 0 32px;
}

.kp-angaben dt {
	color: var(--kp-leise);
	font-size: 13px;
	font-weight: 400;
}

.kp-angaben dd {
	margin: 2px 0 0;
	color: var(--kp-tinte);
}

/* ---------- Überweisung (das eine hervorgehobene Element) ------------------------------------------------------------ */

.kp-zahlung {
	margin: 0 0 32px;
	padding: 20px 24px;
	border-radius: 6px;
	background: var(--kp-feld);
}

.kp-zahlung-reihe {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 16px 40px;
	margin-top: 4px;
}

.kp-bank {
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr);
	gap: 6px 24px;
	margin: 0;
	font-size: 14px;
}

.kp-bank dt {
	color: var(--kp-leise);
	font-weight: 400;
}

.kp-bank dd {
	margin: 0;
	color: var(--kp-tinte);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.kp-iban {
	letter-spacing: 0.02em;
}

.kp-girocode {
	margin: 0;
}

.kp-girocode img {
	display: block;
	width: 148px;
	height: 148px;
	border-radius: 4px;
	background: #ffffff;
	image-rendering: pixelated;
}

.kp-girocode figcaption {
	margin-top: 6px;
	color: var(--kp-leise);
	font-size: 12px;
}

/* ---------- Knöpfe und Formulare ------------------------------------------------------------------------------------ */

.kp-knopf,
.kp a.kp-knopf {
	display: inline-flex;
	align-items: center;
	height: 32px;
	padding: 0 14px;
	border: 1px solid var(--kp-akzent);
	border-radius: 6px;
	background: var(--kp-akzent);
	color: #ffffff;
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
}

.kp-knopf:hover,
.kp a.kp-knopf:hover {
	border-color: var(--kp-akzent-tief);
	background: var(--kp-akzent-tief);
	color: #ffffff;
	text-decoration: none;
}

.kp-knopf--zweit,
.kp-knopf--zweit:hover,
.kp a.kp-knopf--zweit,
.kp a.kp-knopf--zweit:hover {
	border-color: var(--kp-rand);
	background: var(--kp-flaeche);
	color: var(--kp-tinte);
}

.kp-knopf--zweit:hover,
.kp a.kp-knopf--zweit:hover {
	border-color: var(--kp-leise);
	background: var(--kp-flaeche);
	color: var(--kp-tinte);
}

.kp-knopf[disabled] {
	opacity: 0.6;
	cursor: default;
}

.kp-formular label {
	display: block;
	margin-bottom: 4px;
	color: var(--kp-leise);
	font-size: 13px;
}

.kp-feldreihe {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.kp-formular input {
	width: 9em;
	height: 32px;
	padding: 0 10px;
	border: 1px solid var(--kp-rand);
	border-radius: 6px;
	background: var(--kp-flaeche);
	color: var(--kp-tinte);
	font: inherit;
	font-size: 15px;
	letter-spacing: 0.08em;
	font-variant-numeric: tabular-nums;
}

.kp-formular input:focus-visible {
	border-color: var(--kp-akzent);
}

.kp .kp-meldung {
	min-height: 0;
	margin-top: 6px;
	font-size: 13px;
}

.kp-meldung:empty {
	display: none;
}

.kp-meldung--fehler {
	color: var(--kp-rot);
}

.kp-schritte {
	margin: 0;
	padding-left: 20px;
}

.kp-schritte li {
	margin-bottom: 16px;
	padding-left: 4px;
}

.kp-schritte li p {
	margin-bottom: 8px;
}

.kp-qr {
	display: block;
	width: 180px;
	height: 180px;
	margin: 4px 0 8px;
	border-radius: 4px;
	background: #ffffff;
	image-rendering: pixelated;
}

.kp-schluessel {
	color: var(--kp-tinte);
	font-weight: 600;
	letter-spacing: 0.04em;
	overflow-wrap: anywhere;
}

/* ---------- Formulare mit Feldern (Kündigung, Konto) ------------------------------------------------------------ */

.kp-maske {
	max-width: 560px;
	margin-bottom: 8px;
}

.kp-maske fieldset {
	min-width: 0;
	margin: 0 0 24px;
	padding: 0;
	border: 0;
}

.kp-maske legend {
	margin-bottom: 8px;
	padding: 0;
	color: var(--kp-tinte);
	font-size: 15px;
	font-weight: 600;
}

.kp-feld {
	margin-bottom: 12px;
}

.kp-feld label {
	display: block;
	margin-bottom: 4px;
	color: var(--kp-text);
	font-size: 13px;
	font-weight: 500;
}

.kp-maske input[type="text"],
.kp-maske input[type="email"],
.kp-maske input[type="tel"],
.kp-maske input[type="password"],
.kp-maske input[type="date"],
.kp-maske select,
.kp-maske textarea {
	width: 100%;
	height: 32px;
	padding: 0 10px;
	border: 1px solid var(--kp-rand);
	border-radius: 6px;
	background: var(--kp-flaeche);
	color: var(--kp-tinte);
	font: inherit;
	font-size: 14px;
}

.kp-maske textarea {
	height: auto;
	min-height: 76px;
	padding: 6px 10px;
	resize: vertical;
}

.kp-maske input[type="date"] {
	width: auto;
	min-width: 11em;
}

.kp-maske input:focus-visible,
.kp-maske select:focus-visible,
.kp-maske textarea:focus-visible {
	border-color: var(--kp-akzent);
	outline: none;
	box-shadow: var(--kp-fokus);
}

.kp-feld--fehler input,
.kp-feld--fehler select,
.kp-feld--fehler textarea {
	border-color: var(--kp-rot);
}

.kp-feldgruppe {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 12px;
}

.kp-feldgruppe .kp-feld--kurz {
	max-width: 9em;
}

.kp-feldgruppe:has(.kp-feld--kurz) {
	grid-template-columns: 9em minmax(0, 1fr);
}

.kp-wahl {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
	color: var(--kp-tinte);
	font-size: 14px;
	cursor: pointer;
}

.kp-wahl input {
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: var(--kp-akzent);
}

.kp-wahl + .kp-feld,
.kp-feldfehler + .kp-feld {
	margin-top: 12px;
}

.kp .kp-feldhilfe {
	margin-top: 4px;
	color: var(--kp-leise);
	font-size: 13px;
}

.kp .kp-feldfehler {
	margin-top: 4px;
	color: var(--kp-rot);
	font-size: 13px;
}

/* Honigtopf: für Menschen unsichtbar, für Vorleser ausgeblendet */
.kp-honig {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.kp-unsichtbar {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Die eine Hauptaktion einer Seite („Jetzt kündigen“) */
.kp-knopf--haupt,
.kp a.kp-knopf--haupt {
	height: 40px;
	padding: 0 20px;
	font-size: 15px;
}

.kp .kp-knopfreihe,
.kp .kp-aktionen {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	margin: 16px 0;
}

.kp-abschnittskopf {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 8px;
}

.kp-abschnittskopf h2 {
	margin: 0;
}

.kp-abschnittskopf a {
	font-size: 14px;
}

.kp-anschrift {
	color: var(--kp-tinte);
}

/* Wechsel zwischen mehreren Kunden eines Logins */
.kp-reiter {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: -8px 0 24px;
}

.kp .kp-reiter a {
	padding: 4px 10px;
	border-radius: 6px;
	color: var(--kp-text);
	font-size: 14px;
}

.kp .kp-reiter a[aria-current="page"] {
	background: var(--kp-akzent-flaeche);
	color: var(--kp-akzent-tief);
	font-weight: 600;
}

/* Eingangsbestätigung: Angaben als zweispaltige Liste, druckbar */
.kp-beleg {
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr);
	gap: 6px 24px;
	margin: 0 0 20px;
	font-size: 14px;
}

.kp-beleg dt {
	color: var(--kp-leise);
	font-weight: 400;
}

.kp-beleg dd {
	margin: 0;
	color: var(--kp-tinte);
	white-space: pre-line;
	overflow-wrap: anywhere;
}

/* AVV (22.12): der Vertrag als Dokument in der Lesespalte, eine Ebene, Gliederung über die Überschriften des Mustertexts */
.kp-vertrag {
	margin-top: 24px;
	color: var(--kp-text);
}

.kp .kp-vertrag h2 {
	margin: 28px 0 8px;
	font-size: 16px;
}

.kp .kp-vertrag h2:first-child {
	margin-top: 0;
	font-size: 18px;
}

.kp .kp-vertrag p,
.kp-vertrag li {
	line-height: 1.6;
}

.kp .kp-vertrag p {
	margin: 0 0 12px;
}

.kp-vertrag ul {
	margin: 0 0 12px;
	padding-left: 20px;
}

.kp-vertrag li {
	margin-bottom: 6px;
}

.kp-vertrag strong {
	color: var(--kp-tinte);
	font-weight: 600;
}

.kp .kp-vertrag-stand {
	margin-top: 20px;
	color: var(--kp-leise);
	font-size: 14px;
}

.kp-beleg .kp-pruefsumme {
	color: var(--kp-leise);
	font-size: 13px;
}

.kp-maske .kp-haken {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: var(--kp-tinte);
	font-size: 14px;
	font-weight: 400;
	cursor: pointer;
}

.kp-maske .kp-haken input {
	flex: none;
	width: 16px;
	height: 16px;
	margin: 3px 0 0;
	accent-color: var(--kp-akzent);
}

.kp-feld--fehler .kp-haken span {
	color: var(--kp-rot);
}

/* ---------- Schmal (Telefon) ------------------------------------------------------------------------------------ */

@media (max-width: 760px) {
	/* Leiste oben so hoch wie ihr Inhalt; den Rest bis 100vh nimmt der Inhalt (sonst wüchse die graue Fläche auf kurzen
	   Seiten mit) */
	.kp {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto 1fr;
	}

	.kp-leiste-innen {
		position: static;
		display: grid;
		grid-template-columns: 1fr auto;
		grid-template-areas: "marke konto" "nav nav";
		gap: 8px 12px;
		height: auto;
		overflow: visible;
		padding: 12px 12px 8px;
	}

	.kp .kp-marke {
		grid-area: marke;
		align-self: center;
	}

	.kp-konto {
		grid-area: konto;
		flex-direction: row;
		align-items: center;
		margin: 0;
	}

	.kp .kp-konto p,
	.kp .kp-konto a[href="/kunden/anmeldung"] {
		display: none;
	}

	/* Sechs Einträge in einer Zeile, auf dem Telefon in zwei Zeilen zu je drei: nichts scrollt waagerecht, der aktive
	   Eintrag ist immer ganz zu sehen */
	.kp-nav {
		grid-area: nav;
	}

	.kp-nav ul {
		display: grid;
		grid-template-columns: repeat(6, max-content);
		gap: 2px;
	}

	.kp .kp-nav a {
		white-space: nowrap;
	}

	.kp .kp-nav a[aria-current="page"] {
		border-radius: 6px;
		box-shadow: inset 0 -2px 0 var(--kp-akzent);
	}

	.kp-inhalt {
		padding: 20px 16px 32px;
	}

	.kp--schlicht .kp-inhalt {
		padding-top: 40px;
	}

	.kp h1 {
		font-size: 22px;
	}

	.kp-breit {
		display: none;
	}

	.kp-zahlung {
		padding: 16px;
	}

	.kp-feldgruppe,
	.kp-feldgruppe:has(.kp-feld--kurz) {
		grid-template-columns: minmax(0, 1fr);
	}

	.kp-beleg {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.kp-beleg dd {
		margin-bottom: 8px;
	}
}

@media (max-width: 560px) {
	.kp-nav ul {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media print {
	.kp {
		display: block;
	}

	.kp-inhalt,
	.kp-lesespalte {
		max-width: none;
		padding: 0;
	}

	.kp-leiste,
	.kp-fuss,
	.kp-knopf,
	.kp .kp-aktionen,
	.kp .kp-nur-bildschirm {
		display: none;
	}
}

/* ---------- Dunkler Modus: Schalter (mandari_web.js) ------------------------------------------------------------- */
/* In der Leiste wie die Einträge darüber (Text 13 px, Symbol 16 px); ohne Leiste nur das Symbol oben rechts neben der
   Wortmarke. Mond zeigt „hell“, Sonne „dunkel“ wie auf mandari.de; der Name bleibt „Dunkler Modus“ (aria-pressed). */

.kp .kp-dunkel {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	margin: 0;
	padding: 6px 10px;
	border: 0;
	border-radius: 6px;
	background: none;
	color: var(--kp-text);
	font: inherit;
	font-size: 13px;
	text-align: left;
	cursor: pointer;
}

.kp .kp-dunkel:hover {
	background: rgb(16 23 37 / 0.05);
	color: var(--kp-tinte);
}

.kp .kp-dunkel:focus-visible {
	box-shadow: var(--kp-fokus);
	outline: none;
}

.kp-dunkel svg {
	flex: none;
	width: 16px;
	height: 16px;
}

.kp-dunkel .kp-sonne {
	display: none;
}

.kp--schlicht .kp-inhalt {
	position: relative;
}

.kp .kp-dunkel--ecke {
	position: absolute;
	top: 66px;
	right: 40px;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	color: var(--kp-leise);
}

@media (max-width: 760px) {
	.kp .kp-konto .kp-dunkel {
		justify-content: center;
		width: 32px;
		height: 32px;
		padding: 0;
	}

	.kp-konto .kp-dunkel-text {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	.kp .kp-dunkel--ecke {
		top: 34px;
		right: 16px;
	}
}

@media print {
	.kp .kp-dunkel {
		display: none;
	}
}

/* ---------- Dunkel (Schalter oder Systemeinstellung) --------------------------------------------------------------- */

/* Nur am Bildschirm: Gedruckt wird immer hell (Rechnungen, Verträge) */
@media screen {
	html.dark body.kp-seite {
		color-scheme: dark;
		--kp-tinte: #f7f8fa;
		--kp-text: #e3e6eb;
		--kp-leise: #aaafb9;
		--kp-linie: #2d3442;
		--kp-rand: #3b4250;
		--kp-flaeche: #111827;
		--kp-leiste: #182131;
		--kp-feld: #1c2331;
		--kp-akzent-flaeche: rgb(129 140 248 / 0.16);
		--kp-akzent-tief: #4338ca;
		--kp-link: #a5b4fc;
		--kp-rot: #f97066;
		--kp-gruen: #4ade80;
		--kp-fokus: 0 0 0 2px #111827, 0 0 0 4px #818cf8;
	}

	html.dark .kp .kp-nav a[aria-current="page"],
	html.dark .kp .kp-konto a[aria-current="page"] {
		color: #c7d2fe;
	}

	html.dark .kp .kp-nav a:hover,
	html.dark .kp .kp-konto a:hover,
	html.dark .kp .kp-dunkel:hover {
		background: rgb(255 255 255 / 0.06);
	}

	html.dark .kp-dunkel .kp-mond {
		display: none;
	}

	html.dark .kp-dunkel .kp-sonne {
		display: block;
	}

	html.dark .kp-schlicht-marke,
	html.dark .kp-marke img,
	html.dark .kp-buchen-marke img {
		content: url("/assets/mandari_erp/images/mandari-logo-white.svg");
	}
}
