/* ==========================================================================
   Landania Wiki – Landania-Stil wie der MineTicker (Schwarz, Grün, Cyan, Futura; Lilita One für Wortmarke und
   Überschriften) mit BlockBande-Haptik: scharfe Kanten, Knöpfe mit Kante unten, die beim Drücken einrasten,
   Klick-Ton. Grundfarben (warmes Grau, hell/dunkel) kommen aus dem Shop-Theme: Umschalter in der Kopfleiste,
   html[data-ln-theme="hell"], gilt für den ganzen Shop.
   ========================================================================== */

@font-face {
	font-family: "Lilita One";
	src: url("fonts/lilita-one.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

.lnw {
	/* Grundfarben aus dem Shop-Theme (hell/dunkel über den Umschalter in der Kopfleiste, assets/css/theme.css) */
	--k-bg: var(--ls-bg, #262624);
	--k-card: var(--ls-card, #30302e);
	--k-card2: var(--ls-card2, #3a3936);
	--k-field: var(--ls-input, #1f1e1d);
	--k-line: var(--ls-line, #3e3e3a);
	--k-line2: var(--ls-line-soft, #353532);
	--k-text: var(--ls-text-body, #e5e3da);
	--k-strong: var(--ls-text, #faf9f5);
	--k-soft: var(--ls-text-soft, #cfccc2);
	--k-muted: var(--ls-text-muted, #a19f97);
	--k-link: var(--ls-blue-fg, #00d4ff);
	--k-link-h: var(--ls-blue, #00d4ff);
	--k-acc: var(--ls-green, #91f022);
	--k-acc-edge: var(--ls-green-dark, #69ac1b);
	--k-acc-text: var(--ls-green-text, #143200);
	--k-acc-fg: var(--ls-green-fg, #91f022);
	--k-cyan: var(--ls-blue, #00d4ff);
	--k-cyan-edge: var(--ls-blue-dark, #0097b6);
	--k-cyan-text: var(--ls-blue-text, #042c36);
	--k-sec: var(--ls-sec, #45443f);
	--k-sec-edge: var(--ls-sec-edge, #1a1918);
	--k-sec-text: var(--ls-text, #faf9f5);
	--k-drop: var(--ls-drop, #1a1918);
	--k-hero-fade: var(--ls-overlay-soft, rgba(38, 38, 36, 0.55));
	--k-cmd: var(--ls-green-fg, #91f022);
	--k-info: var(--ls-blue-fg, #00d4ff);
	--k-ok: var(--ls-green-fg, #91f022);
	--k-warn: var(--ls-yellow-fg, #f5c542);
	--k-err: var(--ls-red-fg, #ff8a8a);
	--w-c-blue: #5cb8ff;
	--w-c-cyan: #00d4ff;
	--w-c-green: #91f022;
	--w-c-orange: #ffad5c;
	--w-c-yellow: #f5c542;
	--w-c-red: #ff8a8a;
	--w-c-purple: #c58cff;
	--k-head: "Lilita One", var(--ls-font, "Futura BT"), system-ui, sans-serif;
	--k-body: var(--ls-font, "Futura BT"), "Trebuchet MS", system-ui, sans-serif;
	--k-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	display: block;
	padding-top: var(--ls-header-h, 57px);
	background: var(--k-bg);
	color: var(--k-text);
	font: 500 14px/1.5 var(--k-body);
}

html[data-ln-theme="hell"] .lnw {
	--w-c-blue: #1d5fb8;
	--w-c-cyan: #006f97;
	--w-c-green: #2c6e00;
	--w-c-orange: #a85100;
	--w-c-yellow: #8a5d00;
	--w-c-red: #b52f2f;
	--w-c-purple: #6b2fb8;
}

.lnw *, .lnw *::before, .lnw *::after { box-sizing: border-box; }
.lnw a { color: inherit; text-decoration: none; }
.lnw h1, .lnw h2, .lnw h3 { margin: 0; font-family: var(--k-head); font-weight: 400; line-height: 1.1; color: var(--k-strong); letter-spacing: 0.005em; }
.lnw-wrap { width: min(100% - 32px, 1440px); margin-inline: auto; }
.lnw--start .lnw-wrap { width: min(100% - 32px, 1240px); }
.lnw-lab { display: block; color: var(--k-muted); font: 700 11.5px/1.2 var(--k-body); letter-spacing: 0.1em; text-transform: uppercase; }
.lnw-muted { color: var(--k-muted); font-size: 13px; }
.lnw-ln { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: square; stroke-linejoin: miter; }
.lnw-cnt { color: var(--k-muted); font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.lnw-tag { padding: 3px 7px 1px; border: 1px solid var(--k-line); color: var(--k-muted); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.lnw-tag--acc { color: var(--k-acc-fg); border-color: currentColor; }
.lnw-panel { background: var(--k-card); border: 1px solid var(--k-line); padding: 20px; min-width: 0; }
.lnw-panel h2 { font-size: 21px; margin-bottom: 8px; }

/* --- Knopf „Tastenkante“ (wie blockbande.net und MineTicker) ---------------------- */

.lnw-k {
	--c: var(--k-acc);
	--d: var(--k-acc-edge);
	--t: var(--k-acc-text);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 36px;
	padding: 3px 16px 0;
	border: 0;
	border-radius: 0;
	background: var(--c);
	color: var(--t) !important;
	font: 700 14px/1 var(--k-body);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 3px 0 var(--d), 0 3px 0 1px #000;
	transition: transform 0.05s, box-shadow 0.05s, filter 0.05s;
	-webkit-tap-highlight-color: transparent;
	user-select: none;
}
.lnw-k:hover { filter: brightness(1.08); }
.lnw-k:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.2), 0 0 0 1px #000; filter: none; }
.lnw-k:focus-visible { outline: 2px solid var(--k-acc); outline-offset: 4px; }
.lnw-k--sec { --c: var(--k-sec); --d: var(--k-sec-edge); --t: var(--k-sec-text); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 3px 0 var(--d), 0 3px 0 1px #000; }
.lnw-k--cyan { --c: var(--k-cyan); --d: var(--k-cyan-edge); --t: var(--k-cyan-text); }
.lnw-k--sm { min-height: 30px; padding: 3px 11px 0; font-size: 12px; }

/* --- Wortmarke, Umschalter, Suche ------------------------------------------------- */

.lnw-wordmark { display: inline-flex; align-items: center; gap: 12px; font: 400 56px/0.95 var(--k-head); color: var(--k-strong) !important; letter-spacing: 0.01em; }
.lnw-wordmark__icon { width: 46px; height: 46px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--k-acc); color: var(--k-acc-text); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 3px 0 var(--k-acc-edge), 0 3px 0 1px #000; }
.lnw-wordmark__icon .lnw-ln { width: 26px; height: 26px; stroke-width: 2.25; }
.lnw-wordmark--sm { font-size: 30px; gap: 10px; }
.lnw-wordmark--sm .lnw-wordmark__icon { width: 30px; height: 30px; }
.lnw-wordmark--sm .lnw-wordmark__icon .lnw-ln { width: 18px; height: 18px; }

.lnw-switch { display: inline-grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px 4px 7px; background: var(--k-field); border: 1px solid var(--k-line); }
.lnw-switch__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 140px; padding: 3px 22px 0; font: 700 17px/1 var(--k-body); text-transform: uppercase; letter-spacing: 0.03em; color: var(--k-soft) !important; transition: transform 0.05s, box-shadow 0.05s, background 0.1s; -webkit-tap-highlight-color: transparent; }
.lnw-switch__btn:hover { color: var(--k-strong) !important; background: var(--k-card2); }
.lnw-switch__btn:active { transform: translateY(3px); }
.lnw-switch__btn[aria-current="page"] { background: var(--k-acc); color: var(--k-acc-text) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 3px 0 var(--k-acc-edge), 0 3px 0 1px #000; }
.lnw-switch--sm { padding: 3px 3px 6px; }
.lnw-switch--sm .lnw-switch__btn { min-height: 34px; min-width: 110px; padding: 3px 16px 0; font-size: 14px; }

.lnw-search { position: relative; flex: 1 1 320px; min-width: 0; }
.lnw-search__field { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px; background: var(--k-field); border: 1px solid var(--k-line); color: var(--k-muted); cursor: text; }
.lnw-search__field:focus-within { border-color: var(--k-acc-edge); }
.lnw-search__field input { flex: 1; min-width: 0; height: 100%; padding: 0; background: transparent; border: 0; outline: 0; box-shadow: none; color: var(--k-strong); font: 500 15px var(--k-body); }
.lnw-search__field input::placeholder { color: var(--k-muted); opacity: 1; }
.lnw-search--big { flex-basis: 480px; }
.lnw-search--big .lnw-search__field { height: 50px; padding: 0 14px; }
.lnw-search--big .lnw-search__field input { font-size: 16px; }
.lnw-kbd { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border: 1px solid var(--k-line); color: var(--k-soft); font: 600 12px var(--k-body); }
.lnw-search__results { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; background: var(--k-card); border: 1px solid var(--k-line); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); max-height: 440px; overflow-y: auto; }
.lnw-search__results a { display: flex; flex-direction: column; gap: 2px; padding: 9px 10px; color: var(--k-text); }
.lnw-search__results a:hover, .lnw-search__results a.is-sel { background: var(--k-card2); }
.lnw-search__results strong { display: flex; align-items: center; gap: 8px; color: var(--k-strong); font-size: 14.5px; }
.lnw-search__results small { color: var(--k-muted); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.lnw-search__results span { color: var(--k-muted); font-size: 12.5px; line-height: 1.4; }
.lnw-search__results .is-empty { padding: 10px; color: var(--k-muted); }

/* --- Startseite ------------------------------------------------------------------- */

.lnw-hero {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 30px 0 26px;
	border-bottom: 1px solid var(--k-line);
	background: var(--k-bg) center top / cover no-repeat;
	background-image: linear-gradient(180deg, var(--k-hero-fade), var(--k-bg) 92%), var(--lnw-hero-img, none);
}
.lnw-hero__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; }
.lnw-hero__brand { display: flex; flex-direction: column; gap: 6px; }
.lnw-hero__claim { margin: 2px 0 0; font-size: 15px; font-weight: 600; color: var(--k-soft); }
.lnw-hero__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.lnw-ip { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 8px 0 12px; background: var(--k-field); border: 1px solid var(--k-line); }
.lnw-ip strong { font-size: 15px; color: var(--k-strong); }
.lnw-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lnw-chips .lnw-lab { margin-right: 4px; }
.lnw-chip { display: inline-flex; align-items: center; padding: 6px 11px 4px; background: var(--k-card); border: 1px solid var(--k-line); color: var(--k-soft) !important; font-size: 13px; }
.lnw-chip:hover { border-color: var(--k-acc-edge); color: var(--k-strong) !important; }

.lnw-start { display: flex; flex-direction: column; gap: 28px; padding: 28px 0 48px; }
.lnw-note { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 18px; background: var(--k-card); border: 1px solid var(--k-line); color: var(--k-soft) !important; }
.lnw-note:hover { border-color: var(--k-acc-edge); }
.lnw-note__more { margin-left: auto; color: var(--k-link); font-weight: 700; }
.lnw-block { display: flex; flex-direction: column; gap: 14px; }
.lnw-block__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px; }
.lnw-block__head h2 { font-size: 26px; }
.lnw-areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.lnw-tile { display: flex; gap: 14px; align-items: flex-start; padding: 16px; background: var(--k-card); border: 1px solid var(--k-line); box-shadow: 0 3px 0 var(--k-drop); min-width: 0; transition: border-color 0.12s, transform 0.05s, box-shadow 0.05s; }
.lnw-tile:hover { border-color: var(--k-acc-edge); }
.lnw-tile:active { transform: translateY(3px); box-shadow: none; }
.lnw-tile__text { display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1; }
.lnw-tile__title { font: 400 20px/1.1 var(--k-head); color: var(--k-strong); }
.lnw-tile__sub { color: var(--k-soft); font-size: 13px; line-height: 1.45; }
.lnw-tile__go { display: none; }
/* Icon-Feld: in beiden Modi dunkel mit grünem Icon (wie eine Taste) */
.lnw-ico { width: 44px; height: 44px; flex: none; display: flex; align-items: center; justify-content: center; background: #1f1e1d; border: 1px solid #3e3e3a; color: #91f022; }
.lnw-ico .lnw-ln { width: 22px; height: 22px; }
.lnw-start__row { display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; }
.lnw-start__row > * { flex: 1 1 340px; }
.lnw-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--k-line2); color: var(--k-text); }
.lnw-row:hover { color: var(--k-strong); }
.lnw-row:hover .lnw-row__t { text-decoration: underline; text-underline-offset: 3px; }
.lnw-row__n { width: 18px; font: 400 22px/1 var(--k-head); color: var(--k-acc-fg); }
.lnw-row__t { flex: 1; min-width: 0; }
.lnw-row .lnw-ln { color: var(--k-muted); }
.lnw-herbert { display: flex; flex-direction: column; gap: 10px; }
.lnw-herbert__head { display: flex; align-items: center; gap: 14px; }
.lnw-herbert__head h2 { margin: 0; }
.lnw-herbert__img { display: block; width: 56px; height: 56px; object-fit: cover; border: 1px solid var(--k-line); }
.lnw-herbert--wide .lnw-herbert__img { width: 64px; height: 64px; }
.lnw-herbert p, .lnw-herbert > span { margin: 0; color: var(--k-soft); font-size: 13.5px; }
.lnw-herbert__title { font: 400 18px/1.15 var(--k-head); color: var(--k-strong); }

/* --- Leiste, Raster, Seitenleisten ------------------------------------------------ */

.lnw-bar { background: var(--k-card); border-bottom: 1px solid var(--k-line); }
.lnw-bar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 14px 0; }
.lnw-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr) 230px; grid-template-areas: "side main aside"; gap: 36px; align-items: start; padding: 26px 0 48px; }
.lnw-side { grid-area: side; position: sticky; top: calc(var(--ls-header-h, 57px) + 12px); }
.lnw-main { grid-area: main; min-width: 0; max-width: 860px; }
.lnw-aside { grid-area: aside; display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--ls-header-h, 57px) + 12px); }
.lnw-side__box > summary { display: none; }
.lnw-side__nav { display: flex; flex-direction: column; gap: 2px; }
.lnw-side__label { padding: 0 8px 8px; }
.lnw-side__nav a { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-left: 2px solid transparent; color: var(--k-soft); font-size: 14px; line-height: 1.3; }
.lnw-side__nav a .lnw-ln { color: var(--k-acc-fg); }
.lnw-side__nav a:hover { color: var(--k-strong); background: var(--k-card); }
.lnw-side__nav a.is-active { color: var(--k-strong); background: var(--k-card); border-left-color: var(--k-acc); }
.lnw-side__nav a.lnw-side__back { margin-top: 8px; color: var(--k-muted); font-size: 13px; }

.lnw-crumbline { margin-bottom: 10px; }
.lnw-crumbs { display: flex; flex-wrap: wrap; gap: 6px; color: var(--k-muted); font-size: 13px; }
.lnw-crumbs a:hover { color: var(--k-strong); }
.lnw-back { display: none; }
.lnw-title { font-size: 46px !important; margin: 4px 0 8px !important; }
.lnw-lead { margin: 0 0 20px; color: var(--k-soft); font-size: 15.5px; max-width: 680px; }

.lnw-ahead { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.lnw-ahead h1 { font-size: 44px; }
.lnw-ahead__icon { width: 54px; height: 54px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--k-acc); color: var(--k-acc-text); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 3px 0 var(--k-acc-edge), 0 3px 0 1px #000; }
.lnw-ahead__icon .lnw-ln { width: 30px; height: 30px; stroke-width: 2; }

.lnw-grp { margin: 18px 0; background: var(--k-card); border: 1px solid var(--k-line); scroll-margin-top: calc(var(--ls-header-h, 57px) + 12px); }
.lnw-grp__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--k-line); }
.lnw-grp__head .lnw-ico { width: 36px; height: 36px; }
.lnw-grp__head .lnw-ico .lnw-ln { width: 19px; height: 19px; }
.lnw-grp__head h2 { flex: 1; font-size: 20px; }
.lnw-grp__more { color: var(--k-link) !important; font-weight: 700; font-size: 13px; }
.lnw-grp__desc { margin: 0; padding: 12px 16px 0; color: var(--k-soft); font-size: 13.5px; }
.lnw-grp__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 14px; }
.lnw-card { display: flex; flex-direction: column; gap: 4px; padding: 14px; background: var(--k-card2); border: 1px solid var(--k-line); box-shadow: 0 3px 0 var(--k-drop); min-width: 0; transition: border-color 0.12s, transform 0.05s, box-shadow 0.05s; }
.lnw-card:hover { border-color: var(--k-acc-edge); }
.lnw-card:active { transform: translateY(3px); box-shadow: none; }
.lnw-card__t { font-weight: 700; font-size: 15px; color: var(--k-strong); overflow-wrap: anywhere; }
.lnw-card__d { color: var(--k-muted); font-size: 13px; line-height: 1.45; }

.lnw-toc { display: flex; flex-direction: column; }
.lnw-toc .lnw-lab { padding-bottom: 8px; }
.lnw-toc a { display: block; padding: 5px 0 5px 10px; border-left: 1px solid var(--k-line); color: var(--k-soft); font-size: 13.5px; line-height: 1.35; }
.lnw-toc a.depth-3, .lnw-toc a.depth-4 { padding-left: 20px; font-size: 13px; }
.lnw-toc a:hover { color: var(--k-strong); }
.lnw-toc a.is-current { border-left-color: var(--k-acc); color: var(--k-strong); }
.lnw-toc-m { display: none; }
.lnw-fix { margin: 0; padding: 14px 16px; background: var(--k-card); border: 1px solid var(--k-line); color: var(--k-muted); font-size: 13px; }
.lnw-fix strong { display: block; color: var(--k-strong); font: 400 16px var(--k-head); margin-bottom: 4px; }

.lnw-pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--k-line); }
.lnw-pager a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: var(--k-card); border: 1px solid var(--k-line); box-shadow: 0 3px 0 var(--k-drop); }
.lnw-pager a:hover { border-color: var(--k-acc-edge); }
.lnw-pager small { color: var(--k-muted); font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.lnw-pager span { color: var(--k-strong); font-weight: 700; }
.lnw-pager__next { grid-column: 2; text-align: right; }
.lnw-updated { margin: 14px 0 0; color: var(--k-muted); font-size: 12.5px; }

.lnw-foot { border-top: 1px solid var(--k-line); background: var(--k-card); }
.lnw-foot__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 0; }
.lnw-sound { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; background: transparent; border: 1px solid var(--k-line); border-radius: 0; color: var(--k-muted); cursor: pointer; box-shadow: none; }
.lnw-sound:hover { color: var(--k-strong); }
.lnw-sound .lnw-sound__off { display: none; }
html[data-lnw-klick="aus"] .lnw-sound .lnw-sound__on { display: none; }
html[data-lnw-klick="aus"] .lnw-sound .lnw-sound__off { display: block; }

/* --- Inhalt (aus dem Dashboard, gleiche Bausteine wie im BlockBande-Wiki) ---------- */

.wiki-content { font-size: 16px; line-height: 1.65; color: var(--k-text); overflow-wrap: anywhere; }
.wiki-content > :first-child { margin-top: 0; }
.wiki-content > :last-child { margin-bottom: 0; }
.wiki-content h1, .wiki-content h2, .wiki-content h3, .wiki-content h4, .wiki-content h5, .wiki-content h6 { font-family: var(--k-head); font-weight: 400; line-height: 1.15; color: var(--k-strong); scroll-margin-top: calc(var(--ls-header-h, 57px) + 16px); }
.wiki-content h1 { margin: 32px 0 10px; font-size: 30px; }
.wiki-content h2 { margin: 32px 0 12px; font-size: 28px; }
.wiki-content h3 { margin: 26px 0 8px; font-size: 21px; }
.wiki-content h4, .wiki-content h5, .wiki-content h6 { margin: 20px 0 6px; font-size: 17px; }
.wiki-content p { margin: 0 0 12px; }
.wiki-content strong, .wiki-content b { font-weight: 700; color: var(--k-strong); }
.wiki-content a { color: var(--k-link); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.wiki-content a:hover { color: var(--k-link-h); }
.wiki-content ul, .wiki-content ol { margin: 0 0 12px; padding-left: 22px; }
.wiki-content li { margin: 4px 0; }
.wiki-content li > p { margin: 2px 0; }
.wiki-content ul > li::marker { color: var(--k-acc-fg); }
.wiki-content ol > li::marker { color: var(--k-acc-fg); font-weight: 700; }
.wiki-content img { max-width: 100%; height: auto; vertical-align: middle; }
/* Kleine Item-Bilder im Text (GitBook „line“, 16–32 px): in Zeilenhöhe und pixelgenau (wiki.js setzt die Klasse) */
.wiki-content img.lnw-px { width: auto; height: 1.5em; image-rendering: pixelated; vertical-align: -0.35em; border: 0; }
.wiki-content figure { margin: 18px 0; }
.wiki-content figure img { border: 1px solid var(--k-line); }
.wiki-content figcaption { margin-top: 6px; font-size: 13px; color: var(--k-muted); text-align: center; }
.wiki-content figcaption:empty { display: none; }
.wiki-content code { padding: 1px 6px; background: var(--k-card2); border: 1px solid var(--k-line); color: var(--k-cmd); font: 600 0.86em var(--k-mono); }
.wiki-content pre { margin: 0 0 14px; padding: 12px 14px; overflow-x: auto; background: var(--k-card2); border: 1px solid var(--k-line); }
.wiki-content pre code { padding: 0; border: 0; background: none; white-space: pre; }
.wiki-content blockquote { margin: 0 0 14px; padding: 2px 16px; border-left: 3px solid var(--k-line); color: var(--k-soft); }
.wiki-content hr { margin: 28px 0; border: 0; border-top: 1px solid var(--k-line); }

.wiki-content table { display: block; width: fit-content; max-width: 100%; overflow-x: auto; margin: 6px 0 14px; border-collapse: collapse; background: var(--k-card); border: 1px solid var(--k-line); font-size: 14.5px; }
.wiki-content th { padding: 9px 12px; text-align: left; vertical-align: bottom; background: var(--k-card2); border-bottom: 1px solid var(--k-line); color: var(--k-muted); font: 700 11.5px var(--k-body); letter-spacing: 0.08em; text-transform: uppercase; }
.wiki-content td { padding: 9px 12px; text-align: left; vertical-align: top; border-top: 1px solid var(--k-line2); line-height: 1.5; }
.wiki-content td:first-child { font-weight: 700; color: var(--k-strong); }
.wiki-content th, .wiki-content td { overflow-wrap: normal; }
.wiki-content td code { display: inline-block; margin: 1px 0; white-space: nowrap; }

.wiki-content mark { background: none; color: inherit; font-weight: 700; }
.wiki-content mark[class*="wiki-c-"] strong, .wiki-content mark[class*="wiki-c-"] b { color: inherit; }
.wiki-content .wiki-c-primary, .wiki-content .wiki-c-blue { color: var(--w-c-blue); }
.wiki-content .wiki-c-info, .wiki-content .wiki-c-cyan { color: var(--w-c-cyan); }
.wiki-content .wiki-c-success, .wiki-content .wiki-c-green { color: var(--w-c-green); }
.wiki-content .wiki-c-warning, .wiki-content .wiki-c-orange { color: var(--w-c-orange); }
.wiki-content .wiki-c-yellow { color: var(--w-c-yellow); }
.wiki-content .wiki-c-danger, .wiki-content .wiki-c-red { color: var(--w-c-red); }
.wiki-content .wiki-c-purple { color: var(--w-c-purple); }

.wiki-content details { margin: 0 0 8px; background: var(--k-card); border: 1px solid var(--k-line); scroll-margin-top: calc(var(--ls-header-h, 57px) + 16px); }
.wiki-content details[open] { border-color: var(--k-acc-edge); }
.wiki-content summary { position: relative; padding: 12px 46px 12px 16px; cursor: pointer; list-style: none; font-size: 15px; font-weight: 700; color: var(--k-strong); }
.wiki-content summary::-webkit-details-marker { display: none; }
.wiki-content summary::after { content: "+"; position: absolute; right: 12px; top: 50%; width: 24px; height: 24px; margin-top: -12px; border: 1px solid var(--k-line); color: var(--k-acc-fg); font: 700 18px/22px var(--k-body); text-align: center; }
.wiki-content details[open] > summary::after { content: "–"; }
.wiki-content details > :not(summary), .wiki-content details > div[class^="wiki-"] { margin-left: 16px; margin-right: 16px; }
.wiki-content details > :last-child { margin-bottom: 14px; }

/* Hinweise (GitBook „hint“): Kante oben in der Hinweisfarbe */
.wiki-content .wiki-hint { position: relative; margin: 6px 0 14px; padding: 12px 14px 12px 42px; background: var(--k-card); border: 1px solid var(--k-line); border-top: 3px solid var(--k-info); font-size: 15px; line-height: 1.55; }
.wiki-content .wiki-hint::before { content: "i"; position: absolute; left: 13px; top: 13px; width: 18px; height: 18px; border: 1.75px solid currentColor; border-radius: 50%; color: var(--k-info); font: 700 11px/15px var(--k-body); text-align: center; }
.wiki-content .wiki-hint > :last-child { margin-bottom: 0; }
.wiki-content .wiki-hint-success { border-top-color: var(--k-ok); }
.wiki-content .wiki-hint-success::before { content: "✓"; color: var(--k-ok); }
.wiki-content .wiki-hint-warning { border-top-color: var(--k-warn); }
.wiki-content .wiki-hint-warning::before { content: "!"; color: var(--k-warn); }
.wiki-content .wiki-hint-danger { border-top-color: var(--k-err); }
.wiki-content .wiki-hint-danger::before { content: "!"; color: var(--k-err); }

/* Reiter: Knöpfe mit Tastenkante (wie im Entwurf) */
.wiki-content .wiki-tabs { margin: 6px 0 14px; }
.wiki-content .wiki-tab { padding: 0; }
.wiki-content .wiki-tabs:not(.is-ready) .wiki-tab { padding: 12px 16px 2px; background: var(--k-card); border: 1px solid var(--k-line); }
.wiki-content .wiki-tabs:not(.is-ready) .wiki-tab + .wiki-tab { border-top: 0; }
.wiki-content .wiki-tabs.is-ready .wiki-tab-title { display: none; }
.wiki-content .wiki-tab-title { font-weight: 700; }
.wiki-content .wiki-tabbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.wiki-content .wiki-tabbar button { --c: var(--k-sec); --d: var(--k-sec-edge); display: inline-flex; align-items: center; min-height: 32px; padding: 3px 12px 0; border: 0; border-radius: 0; background: var(--c); color: var(--k-sec-text); font: 700 12px/1 var(--k-body); letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 3px 0 var(--d), 0 3px 0 1px #000; }
.wiki-content .wiki-tabbar button[aria-selected="true"] { background: var(--k-acc); color: var(--k-acc-text); transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.18), 0 0 0 1px #000; }

.wiki-content .wiki-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px; margin: 6px 0 14px; }
.wiki-content .wiki-card { overflow: hidden; background: var(--k-card); border: 1px solid var(--k-line); }
.wiki-content .wiki-card-cover { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 0; }
.wiki-content .wiki-card-contain .wiki-card-cover { object-fit: contain; background: var(--k-card2); }
.wiki-content .wiki-card-body { padding: 10px 14px; font-size: 14px; }
.wiki-content .wiki-card-body p { margin: 4px 0; }
.wiki-content .wiki-card-body p:first-child { color: var(--k-strong); font-weight: 700; }
.wiki-content .wiki-embed { margin: 6px 0 14px; padding: 12px 14px; border: 1px solid var(--k-line); }
.wiki-content .wiki-video { display: block; width: 100%; aspect-ratio: 16 / 9; margin: 6px 0 14px; border: 1px solid var(--k-line); }

.wiki-content .wiki-tldr { display: flex; gap: 12px; margin: 0 0 18px; padding: 14px 16px; background: var(--k-card); border: 1px solid var(--k-line); border-left: 3px solid var(--k-acc); color: var(--k-strong); }
.wiki-content .wiki-tldr::before { content: "Kurz gesagt"; flex: none; padding-top: 4px; color: var(--k-acc-fg); font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.wiki-content .wiki-tldr > p { margin: 0; }
.wiki-content .wiki-steps ol { counter-reset: lnw-step; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; margin: 6px 0 14px; padding: 0; list-style: none; }
.wiki-content .wiki-steps li { counter-increment: lnw-step; margin: 0; padding: 14px; background: var(--k-card); border: 1px solid var(--k-line); font-size: 14px; line-height: 1.5; }
.wiki-content .wiki-steps li::before { content: counter(lnw-step); display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-bottom: 8px; background: var(--k-acc); color: var(--k-acc-text); font: 400 16px var(--k-head); box-shadow: 0 3px 0 var(--k-acc-edge); }
.wiki-content .wiki-steps li > p { margin: 0; }
.wiki-content .wiki-example { margin: 6px 0 14px; padding: 14px 16px; background: var(--k-card); border: 1px solid var(--k-line); border-left: 3px solid var(--k-warn); }
.wiki-content .wiki-example > :not(.wiki-example-title) { margin: 6px 0 0; }
.wiki-content .wiki-example .wiki-example-title { margin: 0; font: 400 18px/1.15 var(--k-head); color: var(--k-strong); }
.wiki-content .wiki-cmd { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0; padding: 12px 12px 12px 16px; background: var(--k-card); border: 1px solid var(--k-line); }
.wiki-content .wiki-cmd-code { margin: 0; }
.wiki-content .wiki-cmd-code code { padding: 0; border: 0; background: none; font-size: 15px; }
.wiki-content .wiki-cmd-text { flex: 1 1 200px; font-size: 13.5px; line-height: 1.45; }
.wiki-content .wiki-cmd-text > p { margin: 0; }
.wiki-content .wiki-cmd .lnw-k { margin-left: auto; }
.wiki-content .wiki-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px; margin: 6px 0 14px; }
.wiki-content .wiki-tile { display: flex; flex-direction: column; gap: 8px; padding: 14px; background: var(--k-card); border: 1px solid var(--k-line); font-size: 14px; line-height: 1.5; }
.wiki-content .wiki-tile > p { margin: 0; }
.wiki-content .wiki-tile .wiki-tile-head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.wiki-content .wiki-tile .wiki-tile-head strong { font: 400 19px/1.1 var(--k-head); color: var(--k-strong); }
.wiki-content .wiki-tile-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: #1f1e1d; border: 1px solid #3e3e3a; color: #91f022; }
.wiki-content .wiki-ln { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: square; stroke-linejoin: miter; }
.wiki-content .wiki-tile .wiki-tile-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: auto; padding-top: 4px; }
.wiki-content .wiki-tile-foot a { margin-left: auto; font-size: 13px; text-decoration: none; }

/* Befehle zum Kopieren (wiki.js) */
.wiki-content .lnw-cmd { position: relative; cursor: copy; }
.wiki-content .lnw-cmd:hover { border-color: var(--k-cmd); }
.wiki-content .lnw-cmd.is-copied::after { content: "Kopiert!"; position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); padding: 3px 8px; background: var(--k-strong); color: var(--k-bg); font: 700 11px var(--k-body); letter-spacing: 0.06em; white-space: nowrap; pointer-events: none; }
.lnw-main > .wiki-content:empty { display: none; }

/* --- Kleinere Bildschirme --------------------------------------------------------- */

@media (max-width: 1199px) {
	.lnw-layout { grid-template-columns: 180px minmax(0, 1fr); grid-template-areas: "side main" "side aside"; gap: 32px; }
	.lnw-aside { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); align-items: start; }
	.lnw-grp__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
	.lnw-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "side" "aside"; gap: 16px; padding-top: 16px; }
	.lnw-side { position: static; }
	.lnw-side__box { background: var(--k-card); border: 1px solid var(--k-line); }
	.lnw-side__box > summary { display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: 0 14px; cursor: pointer; list-style: none; font-size: 14.5px; font-weight: 700; color: var(--k-strong); }
	.lnw-side__box > summary::-webkit-details-marker { display: none; }
	.lnw-side__box[open] > summary .lnw-ln { transform: rotate(180deg); }
	.lnw-side__nav { padding: 0 6px 8px; }
	.lnw-side__label { display: none; }
	.lnw-toc { display: none; }
	.lnw-toc-m { display: block; margin-bottom: 16px; background: var(--k-card); border: 1px solid var(--k-line); }
	.lnw-toc-m > summary { display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: 0 14px; cursor: pointer; list-style: none; font-size: 14.5px; font-weight: 700; color: var(--k-strong); }
	.lnw-toc-m > summary::-webkit-details-marker { display: none; }
	.lnw-toc-m[open] > summary .lnw-ln { transform: rotate(180deg); }
	.lnw-toc-m > div { display: flex; flex-direction: column; padding: 0 14px 10px; }
	.lnw-toc-m a { padding: 7px 0 7px 12px; border-left: 1px solid var(--k-line); color: var(--k-soft); font-size: 14px; }
	.lnw-toc-m a.depth-3, .lnw-toc-m a.depth-4 { padding-left: 22px; }
}

@media (max-width: 767px) {
	.lnw-wordmark { font-size: 40px; }
	.lnw-wordmark__icon { width: 36px; height: 36px; }
	.lnw-wordmark--sm { font-size: 26px; }
	.lnw-wordmark--sm .lnw-wordmark__icon { width: 28px; height: 28px; }
	.lnw-switch, .lnw-switch--sm { display: grid; width: 100%; }
	.lnw-switch__btn, .lnw-switch--sm .lnw-switch__btn { min-width: 0; }
	.lnw-search, .lnw-search--big { flex-basis: 100%; }
	.lnw-search__field input { font-size: 16px; }
	.lnw-kbd { display: none; }
	.lnw-hero { padding: 18px 0 18px; gap: 14px; }
	.lnw-hero__claim { font-size: 14px; }
	.lnw-ip { flex: 1 1 100%; }
	.lnw-ip .lnw-k { margin-left: auto; }
	.lnw-chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding: 0 16px; scrollbar-width: none; }
	.lnw-chips::-webkit-scrollbar { display: none; }
	.lnw-chips .lnw-lab { display: none; }
	.lnw-chip { flex: none; }
	.lnw-start { gap: 20px; padding: 20px 0 32px; }
	.lnw-note__more { margin-left: 0; }

	/* Bereiche als Liste */
	.lnw-areas { grid-template-columns: minmax(0, 1fr); gap: 0; background: var(--k-card); border: 1px solid var(--k-line); }
	.lnw-tile { align-items: center; gap: 12px; min-height: 64px; padding: 10px 12px 10px 10px; border: 0; border-top: 1px solid var(--k-line2); box-shadow: none; }
	.lnw-tile:first-child { border-top: 0; }
	.lnw-tile__title { font-size: 17px; }
	.lnw-tile__sub { display: none; }
	.lnw-tile__go { display: block; color: var(--k-muted); }
	.lnw-start__row > * { flex-basis: 100%; }

	/* Leiste: Wortmarke + Umschalter, Suche darunter */
	.lnw-bar__inner { gap: 10px; padding: 10px 0 12px; }
	.lnw-bar .lnw-switch { width: auto; flex: 1 1 auto; }
	.lnw-crumbs { display: none; }
	.lnw-back { display: inline-flex; align-items: center; gap: 2px; margin-left: -4px; color: var(--k-muted); font-size: 14px; }
	.lnw-back .lnw-ln { width: 18px; height: 18px; }

	.lnw-ahead h1 { font-size: 32px; }
	.lnw-ahead__icon { width: 44px; height: 44px; }
	.lnw-title { font-size: 32px !important; }
	.lnw-grp__head { padding: 10px 12px; }
	.lnw-grp__head h2 { font-size: 18px; }
	.lnw-grp__cards { grid-template-columns: minmax(0, 1fr); padding: 8px; }
	.lnw-pager { grid-template-columns: minmax(0, 1fr); }
	.lnw-pager__next { grid-column: auto; }
	.lnw-aside { grid-template-columns: minmax(0, 1fr); }

	.wiki-content h2 { font-size: 24px; }
	.wiki-content .wiki-tldr { flex-direction: column; gap: 4px; }
	.wiki-content table.lnw-stack { display: block; width: 100%; overflow: visible; background: none; border: 0; }
	.wiki-content table.lnw-stack thead { display: none; }
	.wiki-content table.lnw-stack tbody { display: flex; flex-direction: column; gap: 8px; }
	.wiki-content table.lnw-stack tr { display: block; padding: 10px 12px 6px; background: var(--k-card); border: 1px solid var(--k-line); }
	.wiki-content table.lnw-stack td { display: grid; grid-template-columns: minmax(84px, 34%) 1fr; gap: 10px; align-items: baseline; padding: 3px 0; border: 0; }
	.wiki-content table.lnw-stack td[data-label]::before { content: attr(data-label); font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--k-muted); }
	.wiki-content table.lnw-stack td:first-child { display: block; padding: 0 0 4px; }
	.wiki-content table.lnw-stack td:first-child::before { display: none; }
	.wiki-content table.lnw-stack td:empty { display: none; }
	.wiki-content table.lnw-stack.lnw-stack-2 td { display: block; }
	.wiki-content table.lnw-stack.lnw-stack-2 td::before { display: none; }
	.wiki-content table:not(.lnw-stack) th, .wiki-content table:not(.lnw-stack) td { padding: 8px 10px; }
	.wiki-content details > :not(summary), .wiki-content details > div[class^="wiki-"] { margin-left: 12px; margin-right: 12px; }
	.wiki-content summary { padding: 12px 44px 12px 12px; }
	.wiki-content .wiki-steps li { position: relative; min-height: 56px; padding: 14px 14px 14px 56px; }
	.wiki-content .wiki-steps li::before { position: absolute; left: 14px; top: 14px; margin: 0; }
	.wiki-content .wiki-cmd .lnw-k { margin-left: 0; }
}
