/*
 * Wegweiser — Frontend.
 *
 * Farben und Radien stammen aus dem Klickdummy (docs/Tschakka Klickdummy.html).
 * Die Schriften dort liegen bei Google Fonts; hier stehen bewusst Systemschriften:
 * Ein Schriftabruf bei einem US-Anbieter uebertraegt die IP des Besuchers und
 * widerspricht der Leitplanke „kein US-Dienst im Verarbeitungspfad“. Sollen es
 * eigene Schriften werden, gehoeren die Dateien ins Plugin.
 */

:root {
	--tk-green: #8FAA34;
	--tk-green-deep: #6E8624;
	--tk-blue: #3B5A73;

	--tk-ground: #EFF1EA;
	--tk-surface: #FFFFFF;
	--tk-surface-2: #F6F7F1;
	--tk-line: #D9DED0;
	--tk-line-soft: #E7EBE0;

	--tk-ink: #1D2A22;
	--tk-ink-2: #5A6960;
	--tk-ink-3: #8A968D;

	--tk-on-brand: #16211B;

	--tk-r-sm: 6px;
	--tk-r-md: 12px;
	--tk-r-lg: 20px;

	--tk-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--tk-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	/* Hausfarbe des Haendlers. Wird je Block ueberschrieben. */
	--sc: #8FAA34;
}

@media (prefers-color-scheme: dark) {
	:root {
		--tk-green: #A6C247;
		--tk-green-deep: #8FAA34;
		--tk-blue: #7FA5C0;

		--tk-ground: #141A17;
		--tk-surface: #1D2521;
		--tk-surface-2: #232C27;
		--tk-line: #33403A;
		--tk-line-soft: #2A342E;

		--tk-ink: #EAEFE7;
		--tk-ink-2: #A9B5AC;
		--tk-ink-3: #78857B;
	}
}

body.tk-app {
	margin: 0;
	background: var(--tk-ground);
	color: var(--tk-ink);
	font-family: var(--tk-font);
	font-size: 15px;
	line-height: 1.5;
	-webkit-text-size-adjust: 100%;
}

body.tk-app * {
	box-sizing: border-box;
}

/*
 * Das `hidden`-Attribut muss jede eigene Regel schlagen.
 *
 * Die Standardregel des Browsers ist `[hidden] { display: none }` und hat
 * dieselbe Spezifitaet wie eine Klasse — jede eigene `display`-Angabe gewinnt
 * dann, weil sie spaeter kommt. Genau daran ist die Installationsleiste
 * haengengeblieben: Sie stand dauerhaft sichtbar, obwohl das JavaScript sie
 * verborgen hatte.
 */
[hidden] {
	display: none !important;
}

/*
 * `:where()` zaehlt bei der Spezifitaet nicht mit. Ohne das schlaegt
 * `body.tk-app img` jede Regel mit nur einer Klasse — `height: auto` haette
 * dann jede feste Bildgroesse ueberschrieben, und Vorschaubild wie
 * Galeriekacheln waeren nie quadratisch geworden.
 */
:where(body.tk-app) img {
	max-width: 100%;
	height: auto;
}

.tk-skip {
	position: absolute;
	left: -9999px;
}

.tk-skip:focus {
	left: 8px;
	top: 8px;
	z-index: 10;
	background: var(--tk-surface);
	padding: 8px 12px;
	border-radius: var(--tk-r-sm);
}

/* ------------------------------------------------------------------ Geruest */

.tk-shell {
	max-width: 560px;
	margin: 0 auto;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	background: var(--tk-surface);
}

@media (min-width: 600px) {
	.tk-shell {
		min-height: 100dvh;
		border-left: 1px solid var(--tk-line-soft);
		border-right: 1px solid var(--tk-line-soft);
	}
}

.tk-appbar {
	display: flex;
	align-items: baseline;
	gap: 10px;
	padding: 14px 18px 12px;
	border-bottom: 1px solid var(--tk-line-soft);
}

.tk-back {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	margin-left: -8px;
	border-radius: 50%;
	font-size: 19px;
	line-height: 1;
	color: var(--tk-ink-2);
	text-decoration: none;
	flex: 0 0 auto;
}

.tk-back:hover,
.tk-back:focus-visible {
	background: var(--tk-surface-2);
	color: var(--tk-ink);
}

.tk-appbar.has-back {
	align-items: center;
}

.tk-brand {
	font-weight: 700;
	font-size: 19px;
	letter-spacing: -0.015em;
	color: var(--tk-ink);
	text-decoration: none;
}

.tk-region {
	margin-left: auto;
	font-family: var(--tk-mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tk-ink-3);
}

.tk-main {
	flex: 1 1 auto;
	padding: 18px 18px 28px;
}

/* ------------------------------------------------------------------ Typo */

.tk-eyebrow {
	font-family: var(--tk-mono);
	font-size: 10.5px;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	color: var(--tk-ink-3);
	margin: 0 0 8px;
}

.tk-section {
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.015em;
	margin: 0 0 3px;
	text-wrap: balance;
}

.tk-lede {
	margin: 0 0 16px;
	color: var(--tk-ink-2);
	font-size: 14px;
}

.tk-empty {
	text-align: center;
	padding: 34px 10px 12px;
	color: var(--tk-ink-3);
	font-size: 14px;
}

.tk-empty-action {
	text-align: center;
	margin: 0;
}

/* ------------------------------------------------------------------ Kategorien */

/*
 * Die Chips scrollen waagerecht, sie brechen nicht um: In einer Innenstadt mit
 * zwanzig Haendlern kommen zwoelf bis zwanzig Kategorien zusammen, aus zwei
 * Zeilen wuerden dann vier.
 *
 * Der Balken wird nur dort ausgeblendet, wo gewischt wird. Auf Zeigegeraeten
 * bleibt er sichtbar, sonst ist der letzte Chip am Rechner unerreichbar.
 */
.tk-cats {
	display: flex;
	gap: 7px;
	overflow-x: auto;
	padding-bottom: 12px;
	margin-bottom: 4px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.tk-cats::-webkit-scrollbar,
.tk-gallery::-webkit-scrollbar {
	height: 0;
}

@media (hover: hover) and (pointer: fine) {
	.tk-cats,
	.tk-gallery {
		scrollbar-width: thin;
	}

	.tk-cats::-webkit-scrollbar,
	.tk-gallery::-webkit-scrollbar {
		height: 6px;
	}

	.tk-cats::-webkit-scrollbar-thumb,
	.tk-gallery::-webkit-scrollbar-thumb {
		background: var(--tk-line);
		border-radius: 999px;
	}
}

.tk-cat {
	flex: 0 0 auto;
	font-size: 13px;
	padding: 6px 12px;
	border-radius: 999px;
	border: 1px solid var(--tk-line);
	color: var(--tk-ink-2);
	background: var(--tk-surface);
	white-space: nowrap;
	text-decoration: none;
}

.tk-cat[aria-pressed="true"] {
	background: var(--tk-green);
	border-color: var(--tk-green);
	color: var(--tk-on-brand);
	font-weight: 500;
}

/* ------------------------------------------------------------------ Angebote */

.tk-feed {
	display: flex;
	flex-direction: column;
	gap: 11px;
}

.tk-offer {
	display: block;
	background: var(--tk-surface-2);
	border: 1px solid var(--tk-line-soft);
	border-left: 3px solid var(--sc);
	border-radius: var(--tk-r-md);
	padding: 13px 14px;
	text-decoration: none;
	color: inherit;
}

.tk-offer:hover,
.tk-offer:focus-visible {
	border-color: var(--sc);
}

/*
 * Der einzige Unterschied ist der Rahmen. Kein eigener Hintergrund, keine
 * eigenen Abstaende, keine eigene Schrift — die Karte bleibt in allem eine
 * Karte wie jede andere.
 */
.tk-offer.is-featured {
	border: 2px solid var(--sc);
	border-top-width: 6px;
	border-radius: 10px;
}

.tk-offer-top {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 3px;
}

.tk-offer-shop {
	font-size: 12.5px;
	color: var(--tk-ink-2);
	font-weight: 500;
}

.tk-offer-when {
	margin-left: auto;
	font-family: var(--tk-mono);
	font-size: 10.5px;
	color: var(--tk-green-deep);
	white-space: nowrap;
}

.tk-offer-title {
	display: block;
	font-weight: 700;
	font-size: 16px;
	letter-spacing: -0.01em;
	margin-bottom: 3px;
}

.tk-offer-text {
	display: block;
	font-size: 13.5px;
	color: var(--tk-ink-2);
}

/* ------------------------------------------------------------------ Verzeichnis */

.tk-near {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin: 2px 0 14px;
}

.tk-near-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font: inherit;
	font-size: 13px;
	padding: 7px 13px;
	border-radius: 999px;
	border: 1px solid var(--tk-line);
	background: var(--tk-surface);
	color: var(--tk-ink-2);
	cursor: pointer;
}

.tk-near-btn.is-on {
	background: var(--tk-green);
	border-color: var(--tk-green);
	color: var(--tk-on-brand);
}

.tk-near-hint {
	font-size: 12px;
	color: var(--tk-ink-3);
}

.tk-shops {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tk-shop {
	display: flex;
	align-items: center;
	gap: 8px;
	border-bottom: 1px solid var(--tk-line-soft);
}

.tk-shop-link {
	flex: 1 1 auto;
	display: grid;
	grid-template-columns: 38px 1fr auto;
	gap: 12px;
	align-items: center;
	padding: 11px 6px;
	text-decoration: none;
	color: inherit;
	min-width: 0;
}

.tk-shop-avatar {
	width: 38px;
	height: 38px;
	border-radius: 11px;
	display: grid;
	place-items: center;
	font-weight: 800;
	font-size: 15px;
	color: var(--tk-on-brand);
	background: var(--sc);
}

.tk-shop-avatar-lg,
.tk-shop-logo-lg {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	font-size: 20px;
}

.tk-shop-logo {
	width: 38px;
	height: 38px;
	border-radius: 11px;
	object-fit: cover;
}

.tk-shop-body {
	min-width: 0;
}

.tk-shop-name {
	display: block;
	font-weight: 600;
	font-size: 15px;
	line-height: 1.25;
}

.tk-shop-meta {
	display: block;
	font-size: 12.5px;
	color: var(--tk-ink-2);
	margin: 0;
}

.tk-shop-dist {
	font-family: var(--tk-mono);
	font-size: 11px;
	color: var(--tk-ink-3);
	white-space: nowrap;
}

/*
 * Hervorgehobener Eintrag — der Gegenwert der hoechsten Tarifstufe.
 *
 * Einziger Unterschied ist der Rahmen: umlaufend in der Haendlerfarbe, oben
 * kraeftiger. Hintergrund, Kachelgroesse, Innenabstaende und Typografie sind
 * dieselben wie bei jedem anderen Eintrag. Was hervorhebt, sind die beiden
 * Zusatzzeilen — Oeffnungszeiten und laufendes Angebot —, nicht die Optik
 * drumherum.
 *
 * Bewusst *reicher*, nicht *hoeher*: Die Reihenfolge bleibt fuer alle gleich.
 * Bezahlte Platzierung in einer Rangfolge waere in Deutschland
 * kennzeichnungspflichtig, eine auffaelligere Darstellung nicht.
 */
.tk-shop.is-featured {
	border: 2px solid var(--sc);
	border-top-width: 6px;
	border-radius: 10px;

	/*
	 * Kein Padding — die Innenabstaende kommen wie bei jeder Zeile aus
	 * `.tk-shop-link`. Der Aussenabstand haelt nur den Rahmen von den
	 * Trennlinien der Nachbarzeilen frei.
	 */
	margin: 8px 0;
}

/*
 * Mit den Zusatzzeilen sitzt die Kachel oben statt in der Mitte eines hohen
 * Blocks. Reine Ausrichtung, keine Groessen- oder Schriftaenderung.
 */
.tk-shop.is-featured .tk-shop-link {
	align-items: start;
}

.tk-shop-hours {
	display: block;
	margin-top: 5px;
	font-size: 12.5px;
	color: var(--tk-ink-2);
}

/* Keine gefuellte Flaeche im Inneren — nur Text. */
.tk-shop-offer {
	display: block;
	margin-top: 6px;
}

.tk-shop-offer-title {
	display: block;
	font-weight: 600;
	font-size: 13.5px;
}

.tk-shop-offer .tk-offer-when {
	display: block;
	margin-left: 0;
	margin-top: 2px;
}

.tk-shop-route {
	flex: 0 0 auto;
	font-size: 12px;
	padding: 5px 10px;
	border: 1px solid var(--tk-line);
	border-radius: 999px;
	color: var(--tk-ink-2);
	text-decoration: none;
	white-space: nowrap;
}

/* ------------------------------------------------------------------ Profil */

.tk-banner {
	display: block;
	width: 100%;
	aspect-ratio: 2.6 / 1;
	object-fit: cover;
	object-position: center;
	border-radius: var(--tk-r-md);
	margin-bottom: 14px;
}

.tk-banner-blank {
	display: block;
	background: linear-gradient(135deg, color-mix(in srgb, var(--sc) 85%, #fff) 0%, var(--sc) 45%, var(--tk-blue) 130%);
}

.tk-profile-head {
	display: flex;
	gap: 13px;
	align-items: center;
	margin-bottom: 14px;
}

.tk-profile-head h1 {
	font-size: 21px;
	letter-spacing: -0.015em;
	margin: 0 0 2px;
}

.tk-profile-body {
	font-size: 14px;
	color: var(--tk-ink-2);
	margin: 0 0 16px;
}

.tk-gallery {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding-bottom: 12px;
	margin-bottom: 4px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.tk-gallery-item {
	flex: 0 0 128px;
}

.tk-gallery-item img {
	width: 128px;
	height: 128px;
	object-fit: cover;
	border-radius: var(--tk-r-sm);
	display: block;
}

.tk-notice {
	background: var(--tk-surface-2);
	border: 1px solid var(--tk-line-soft);
	border-left: 3px solid var(--tk-green-deep);
	border-radius: var(--tk-r-sm);
	padding: 10px 12px;
	font-size: 13.5px;
	color: var(--tk-ink-2);
	margin: 0 0 16px;
}

.tk-data {
	margin: 0 0 18px;
}

.tk-data-row {
	display: grid;
	grid-template-columns: 88px 1fr;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid var(--tk-line-soft);
	font-size: 14px;
}

.tk-data-row dt {
	color: var(--tk-ink-3);
	font-size: 12.5px;
	padding-top: 2px;
}

.tk-data-row dd {
	margin: 0;
}

/* In der Datenzeile steht die Restlaufzeit unter dem Titel, nicht daneben —
   sonst klebt sie am Satzende und liest sich wie ein Teil davon. */
.tk-data-row .tk-offer-when {
	display: block;
	margin-left: 0;
	margin-top: 2px;
}

.tk-data-sub {
	display: block;
	font-size: 12.5px;
	color: var(--tk-ink-2);
	margin-top: 2px;
}

.tk-hours-line {
	display: block;
}

.tk-hours-days {
	display: inline-block;
	min-width: 3.6em;
	color: var(--tk-ink-2);
}

.tk-route-link {
	margin-left: 8px;
	font-size: 12.5px;
	color: var(--tk-green-deep);
}

/* ------------------------------------------------------------------ Knoepfe */

.tk-btn {
	display: inline-block;
	padding: 12px 18px;
	border-radius: var(--tk-r-md);
	font-weight: 600;
	font-size: 15px;
	background: var(--tk-green);
	color: var(--tk-on-brand);
	text-decoration: none;
}

.tk-btn-quiet {
	background: var(--tk-surface-2);
	border: 1px solid var(--tk-line);
	color: var(--tk-ink-2);
}

/* ------------------------------------------------------------------ Reiter */

.tk-tabs {
	position: sticky;
	bottom: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	border-top: 1px solid var(--tk-line-soft);
	background: var(--tk-surface);
	padding-bottom: env(safe-area-inset-bottom);
}

.tk-tab {
	padding: 11px 4px 13px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	font-size: 11.5px;
	color: var(--tk-ink-3);
	text-decoration: none;
}

.tk-tab.is-on {
	color: var(--tk-green-deep);
	font-weight: 600;
}

.tk-tab-ic {
	font-size: 17px;
	line-height: 1;
}

/* ------------------------------------------------------------------ Fuss */

.tk-foot {
	padding: 16px 18px 22px;
	border-top: 1px solid var(--tk-line-soft);
	background: var(--tk-surface-2);
}

.tk-foot-note {
	margin: 0 0 8px;
	font-size: 11.5px;
	color: var(--tk-ink-3);
	line-height: 1.45;
}

.tk-foot-links {
	margin: 0;
	font-size: 12px;
}

.tk-foot-links a {
	color: var(--tk-ink-2);
}

/* ------------------------------------------------------------------ Karte holen */

.tk-signup-head,
.tk-card-head {
	display: flex;
	gap: 13px;
	align-items: center;
	margin-bottom: 14px;
}

.tk-signup-head h1,
.tk-card-head h1 {
	font-size: 21px;
	letter-spacing: -0.015em;
	margin: 0;
}

.tk-signup-head .tk-eyebrow,
.tk-card-head .tk-shop-meta {
	margin: 0 0 2px;
}

.tk-signup-reward {
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 14px;
}

.tk-rules {
	margin: 0 0 20px;
	padding-left: 18px;
	font-size: 13.5px;
	color: var(--tk-ink-2);
}

.tk-rules li {
	margin-bottom: 4px;
}

.tk-signup-action,
.tk-signup-existing,
.tk-profile-action {
	margin: 0 0 18px;
}

.tk-profile-action .tk-note {
	display: block;
	text-align: center;
	margin-top: 8px;
}

.tk-btn[disabled],
.tk-btn.is-off {
	opacity: 0.55;
	cursor: default;
}

/*
 * Ohne Netz abgeschaltet. Ein `span` statt eines Verweises — ein Knopf, der
 * ins Leere fuehrt, ist schlimmer als einer, den man nicht druecken kann.
 */
.tk-btn.is-off {
	pointer-events: none;
	background: var(--tk-line);
	color: var(--tk-ink-3);
	box-shadow: none;
}

/*
 * Zustandszeile ueber allem, was aus der Textliste gezeichnet wurde.
 * Ausdruecklich keine Fehlermeldung: kein Rot, kein Ausrufezeichen. Es ist
 * nichts kaputt, es fehlt nur die Leitung.
 */
.tk-offline-note {
	margin: 0 0 14px;
	padding: 8px 12px;
	border-left: 3px solid var(--tk-line);
	background: var(--tk-surface-2);
	border-radius: 0 var(--tk-r-sm) var(--tk-r-sm) 0;
	color: var(--tk-ink-2);
	font-size: 14px;
}

/* Der Wiederherstellungscode. Einmal sichtbar, deshalb nicht zu übersehen. */
.tk-recovery {
	border: 2px solid var(--sc);
	border-top-width: 6px;
	border-radius: 10px;
	padding: 16px 14px;
	margin-bottom: 18px;
}

.tk-recovery h2 {
	font-size: 16px;
	margin: 0 0 10px;
}

.tk-recovery-code {
	font-family: var(--tk-mono);
	font-size: 30px;
	letter-spacing: 0.18em;
	font-weight: 700;
	text-align: center;
	margin: 0 0 10px;
	word-break: break-all;
}

.tk-recovery-hint {
	font-size: 13px;
	color: var(--tk-ink-2);
	margin: 0 0 14px;
}

/* ------------------------------------------------------------------ Kartenansicht */

.tk-card-count {
	margin: 0 0 10px;
	display: flex;
	align-items: baseline;
	gap: 7px;
}

.tk-card-count strong {
	font-size: 34px;
	line-height: 1;
	letter-spacing: -0.02em;
}

.tk-card-count span {
	color: var(--tk-ink-2);
	font-size: 14px;
}

.tk-stamps {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 8px;
	margin: 0 0 22px;
	padding: 0;
}

.tk-stamp {
	aspect-ratio: 1;
	border: 2px dashed var(--tk-line);
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-size: 14px;
	color: var(--tk-ink-3);
}

.tk-stamp.is-set {
	border-style: solid;
	border-color: var(--sc);
	background: var(--sc);
	color: var(--tk-on-brand);
	font-weight: 700;
}

.tk-scan {
	text-align: center;
	background: var(--tk-surface-2);
	border: 1px solid var(--tk-line-soft);
	border-radius: var(--tk-r-md);
	padding: 16px 14px;
	margin-bottom: 16px;
}

.tk-scan-title {
	font-size: 15px;
	margin: 0 0 12px;
}

/*
 * Die helle Flaeche bleibt hell, auch wenn das Geraet auf dunkles Erscheinungs-
 * bild steht. Das SVG bringt seine Ruhezone selbst mit; der weisse Rahmen
 * darum gibt der Kamera zusaetzlich Rand — hier zaehlt Lesbarkeit mehr als
 * Stilreinheit.
 */
.tk-qr {
	max-width: 260px;
	margin: 0 auto 10px;
	min-height: 120px;
	display: grid;
	place-items: center;
	background: #fff;
	border-radius: var(--tk-r-sm);
	padding: 8px;
}

.tk-qr .tk-note {
	color: #5A6960;
}

.tk-qr svg {
	width: 100%;
	height: auto;
	display: block;
	border-radius: var(--tk-r-sm);
}

.tk-card-foot {
	text-align: center;
	font-size: 13px;
	margin: 0;
}

.tk-card-foot a,
.tk-rules a {
	color: var(--tk-ink-2);
}

/* Prüfhilfe: der Code als Text, nur für angemeldete Verwalter. */
.tk-token {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
	margin: 10px 0 0;
	padding-top: 10px;
	border-top: 1px dashed var(--tk-line);
}

.tk-token code {
	font-family: var(--tk-mono);
	font-size: 11.5px;
	word-break: break-all;
	color: var(--tk-ink-2);
}

.tk-token-copy {
	font: inherit;
	font-size: 11.5px;
	padding: 3px 9px;
	border: 1px solid var(--tk-line);
	border-radius: 999px;
	background: var(--tk-surface);
	color: var(--tk-ink-2);
	cursor: pointer;
}

/* ------------------------------------------------------------------ Wiederherstellung */

.tk-field {
	margin: 0 0 16px;
}

.tk-field label {
	display: block;
	font-weight: 600;
	font-size: 13.5px;
	margin-bottom: 5px;
}

.tk-field select,
.tk-field input[type="text"] {
	width: 100%;
	font: inherit;
	padding: 10px 12px;
	border: 1px solid var(--tk-line);
	border-radius: var(--tk-r-sm);
	background: var(--tk-surface);
	color: var(--tk-ink);
}

.tk-code-input {
	font-family: var(--tk-mono);
	font-size: 22px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	text-align: center;
}

.tk-field .tk-note {
	display: block;
	margin-top: 5px;
}

.tk-form-status {
	min-height: 1.3em;
	font-size: 13.5px;
	color: var(--tk-ink-2);
	margin: 0;
}

/* ------------------------------------------------------------------ Installation */

.tk-install {
	border: 2px solid var(--sc);
	border-top-width: 6px;
	border-radius: 10px;
	padding: 16px 14px;
	margin-bottom: 18px;
}

.tk-install h2 {
	font-size: 16px;
	margin: 0 0 8px;
}

.tk-install-lede {
	font-size: 13.5px;
	color: var(--tk-ink-2);
	margin: 0 0 14px;
}

.tk-install-steps {
	margin: 0 0 14px;
	padding-left: 20px;
	font-size: 13.5px;
	color: var(--tk-ink-2);
}

.tk-install-steps li {
	margin-bottom: 6px;
}

/* Drei Reiter statt zwei. */
.tk-tabs {
	grid-template-columns: repeat(3, 1fr);
}

/* Unaufdringliches Installationsangebot auf Karte und Kartenliste. */
.tk-install-bar {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	border: 1px solid var(--tk-line);
	border-left: 3px solid var(--sc, var(--tk-green));
	border-radius: var(--tk-r-md);
	background: var(--tk-surface-2);
	padding: 12px 14px;
	margin: 0 0 16px;
}

.tk-install-bar-text {
	flex: 1 1 12em;
	margin: 0;
	font-size: 13px;
	color: var(--tk-ink-2);
}

.tk-install-bar .tk-btn {
	flex: 0 0 auto;
	padding: 8px 14px;
	font-size: 14px;
}

.tk-install-bar .tk-note {
	flex: 1 1 100%;
	margin: 0;
}

/* Zustandsauskunft — nur sichtbar mit `?diagnose=1` an der Adresse. */
.tk-diagnose {
	margin: 24px 0 0;
	padding: 14px 16px;
	border: 1px dashed var(--tk-line);
	border-radius: 10px;
	background: var(--tk-surface);
	font-size: 14px;
}

.tk-diagnose h2 {
	margin: 0 0 8px;
	font-size: 15px;
}

.tk-diagnose dl {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 2px 12px;
	margin: 0;
}

.tk-diagnose dt {
	color: var(--tk-ink-2);
}

.tk-diagnose dd {
	margin: 0;
	word-break: break-word;
}

.tk-diagnose ul {
	margin: 10px 0 0;
	padding-left: 18px;
	color: var(--tk-ink-3);
	font-size: 13px;
	word-break: break-all;
}

.tk-diagnose .tk-btn {
	margin-top: 12px;
	margin-right: 8px;
}
