/* BlockBande Wiki – Stage 2 (Design-Leinwand, Richtung C „spielerisch“): kantig (Ecken 4–6 px), harte Kanten unten,
   Lilita One für Überschriften, Nunito für Text, Bereichsfarben aus inc/design.php (--area, --edge, --shade).
   Header und Footer kommen vom Theme. */

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

@font-face {
	font-family: "Nunito";
	src: url("fonts/nunito.woff2") format("woff2");
	font-weight: 200 1000;
	font-style: normal;
	font-display: swap;
}

.bbw {
	--bbw-bg: #0c0f23;
	--bbw-panel: #151b40;
	--bbw-panel-2: #0f1433;
	--bbw-line: #232a5a;
	--bbw-line-2: #2b325f;
	--bbw-text: #dfe3f1;
	--bbw-soft: #c9cee3;
	--bbw-muted: #8f97b8;
	--bbw-accent: #2ac1f6;
	--bbw-yellow: #f5ba00;
	--bbw-cmd: #ffd257;
	--bbw-head: "Lilita One", "Nunito", system-ui, sans-serif;
	--bbw-gap: 24px;
	padding: var(--bb-header-h, 100px) 0 0;
	background: var(--bbw-bg);
	color: #fff;
	font-family: "Nunito", system-ui, sans-serif;
	font-weight: 600;
}

.bbw a { color: inherit; text-decoration: none; }
.bbw-wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--bbw-gap); box-sizing: border-box; }

/* --- Bausteine ------------------------------------------------------------- */

.bbw-h2 { margin: 0; font-family: var(--bbw-head); font-weight: 400; font-size: clamp(28px, 3.2vw, 36px); line-height: 1.05; letter-spacing: .01em; }
.bbw-h2--small { font-size: clamp(24px, 2.6vw, 30px); }
.bbw-h3 { margin: 0; font-family: var(--bbw-head); font-weight: 400; font-size: 26px; line-height: 1.1; }
.bbw-panel { background: var(--bbw-panel); border: 2px solid var(--bbw-line); border-radius: 6px; box-shadow: 0 5px 0 #070a1c; }
.bbw-badge { align-self: flex-start; display: inline-block; font-weight: 900; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #0c0f23; background: var(--bbw-accent); border-radius: 4px; padding: 5px 8px; box-shadow: 0 3px 0 #0b5f94; }
.bbw-badge--yellow { background: var(--bbw-yellow); box-shadow: 0 3px 0 #a86f00; }
.bbw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border: 0; border-radius: 4px; background: linear-gradient(180deg, #5fd4ff, #1a9be0); color: #fff !important; font-family: var(--bbw-head); font-size: 19px; letter-spacing: .02em; cursor: pointer; box-shadow: inset 0 2px 0 rgba(255,255,255,.45), 0 4px 0 #0b5f94; transition: transform .1s, box-shadow .1s; }
.bbw-btn:hover { transform: translateY(-1px); }
.bbw-btn:active { transform: translateY(3px); box-shadow: inset 0 2px 0 rgba(255,255,255,.45), 0 1px 0 #0b5f94; }
.bbw-btn--small { min-height: 44px; padding: 0 16px; font-size: 17px; }
.bbw-num { flex: none; width: 46px; height: 46px; border-radius: 4px; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, #5fd4ff, #1a9be0); color: #fff; font-family: var(--bbw-head); font-size: 25px; box-shadow: inset 0 2px 0 rgba(255,255,255,.45), 0 4px 0 #0b5f94; }
.bbw-num--yellow { width: 44px; height: 44px; font-size: 24px; color: #0c0f23; background: linear-gradient(180deg, #ffd54a, #f0a400); box-shadow: inset 0 2px 0 rgba(255,255,255,.6), 0 4px 0 #a86f00; }
.bbw-more { font-weight: 900; color: var(--bbw-accent); white-space: nowrap; }
.bbw-more:hover { text-decoration: underline; }
.bbw-dot { flex: none; width: 12px; height: 12px; border-radius: 2px; box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 0 0 1px rgba(255,255,255,.08); }

/* --- Leiste mit Brotkrumen und Suche ---------------------------------------- */

.bbw-bar { background: #0a0d1f; border-bottom: 2px solid #171d45; }
.bbw-bar__inner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.bbw-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; flex: 1 1 320px; min-width: 0; font-weight: 800; font-size: 14px; color: var(--bbw-muted); }
.bbw-crumbs a:hover { color: #fff; }
.bbw-crumbs__home { font-family: var(--bbw-head); font-weight: 400; font-size: 22px; color: #fff; }
.bbw-crumbs [aria-current] { color: var(--bbw-soft); }

.bbw-search { position: relative; }
.bbw-search--bar { flex: 0 1 380px; margin-left: auto; }
.bbw-search__field { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; background: #fff; border-radius: 4px; color: #3a4262; cursor: text; }
.bbw-search__field input { flex: 1; min-width: 0; min-height: 42px; border: 0; outline: none; background: transparent; color: #0c0f23; font: 700 16px "Nunito", system-ui, sans-serif; }
.bbw-search__field:focus-within { box-shadow: 0 0 0 3px var(--bbw-accent); }
.bbw-search__results { position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: var(--bbw-panel); border: 2px solid var(--bbw-line); border-radius: 6px; box-shadow: 0 6px 0 #070a1c, 0 20px 40px rgba(0,0,0,.5); max-height: min(60vh, 520px); overflow: auto; text-align: left; }
.bbw-search__results a { display: block; padding: 10px 12px; border-radius: 4px; color: #fff; font-weight: 800; }
.bbw-search__results a:hover, .bbw-search__results a:focus { background: #1c2350; outline: none; }
.bbw-search__results span { display: block; margin-top: 2px; font-size: 13px; font-weight: 700; color: var(--bbw-muted); }
.bbw-search__results .is-empty { padding: 10px 12px; color: var(--bbw-muted); font-weight: 700; }

.bbw-search--big .bbw-search__field { min-height: 66px; padding: 0 18px; border-radius: 6px; box-shadow: inset 0 -3px 0 #dde3f2, 0 7px 0 #1a9be0, 0 20px 40px rgba(0,0,0,.4); }
.bbw-search--big .bbw-search__field:focus-within { box-shadow: inset 0 -3px 0 #dde3f2, 0 7px 0 #1a9be0, 0 0 0 3px var(--bbw-accent); }
.bbw-search--big input { min-height: 62px; font-size: 18px; }

/* --- Kopfbild ---------------------------------------------------------------- */

.bbw-hero-wrap { padding-top: 28px; }
.bbw-hero { position: relative; overflow: hidden; display: flex; align-items: center; min-height: 300px; border-radius: 6px; background: var(--area); box-shadow: inset 0 2px 0 rgba(255,255,255,.3), 0 6px 0 var(--edge); }
.bbw-hero.is-side { border: 2px solid var(--bbw-line); box-shadow: 0 6px 0 #070a1c; }
.bbw-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bbw-hero.is-side .bbw-hero__img { left: auto; width: 55%; }
.bbw-hero.is-square .bbw-hero__img { left: auto; right: 4%; width: auto; height: 100%; aspect-ratio: 1; object-fit: contain; }
.bbw-hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, var(--shade) 32%, transparent 66%); pointer-events: none; }
.bbw-hero.is-side .bbw-hero__shade { background: radial-gradient(500px 300px at 15% 50%, rgba(42,193,246,.18), transparent 70%), linear-gradient(90deg, var(--shade) 42%, transparent 70%); }
.bbw-hero__text { position: relative; display: flex; flex-direction: column; gap: 14px; max-width: 600px; padding: 32px; }
.bbw-hero__title { margin: 0; font-family: var(--bbw-head); font-weight: 400; font-size: clamp(44px, 6vw, 76px); line-height: .95; letter-spacing: .01em; text-shadow: 0 5px 0 rgba(0,0,0,.3); overflow-wrap: anywhere; }
.bbw-hero__lead { margin: 0; font-size: 19px; line-height: 1.5; font-weight: 700; color: #e4efff; }
.bbw-hero.is-dark { color: #0c0f23; }
.bbw-hero.is-dark .bbw-hero__title { text-shadow: none; }
.bbw-hero.is-dark .bbw-hero__lead { color: #0c0f23; }
.bbw-tldr { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; background: rgba(12,15,35,.5); border: 2px solid rgba(255,255,255,.2); border-radius: 4px; color: #fff; }
.bbw-tldr p { margin: 0; font-size: 18px; line-height: 1.5; font-weight: 700; }
.bbw-tldr__tag { flex: none; font-weight: 900; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #0c0f23; background: var(--bbw-yellow); border-radius: 4px; padding: 6px 8px; box-shadow: 0 3px 0 #a86f00; }

/* --- Dreispaltiges Layout ------------------------------------------------- */

.bbw-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr) 280px; grid-template-areas: "side main aside"; gap: 30px; align-items: start; padding-top: 32px; padding-bottom: 72px; }
.bbw-side { grid-area: side; position: sticky; top: 16px; }
.bbw-main { grid-area: main; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.bbw-aside { grid-area: aside; display: flex; flex-direction: column; gap: 18px; }

.bbw-side__box > summary { display: none; }
.bbw-side__nav { display: flex; flex-direction: column; gap: 2px; }
.bbw-side__nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 4px; color: var(--bbw-soft); font-weight: 800; font-size: 15px; line-height: 1.3; }
.bbw-side__nav a:hover { background: var(--bbw-panel); color: #fff; }
.bbw-side__nav a.is-active { background: var(--bbw-panel); color: #fff; box-shadow: inset 3px 0 0 var(--bbw-accent); }
.bbw-side__label { padding: 0 12px 8px; font-weight: 900; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--bbw-muted); }
.bbw-side__sub { display: flex; flex-direction: column; gap: 2px; margin: 2px 0 6px 18px; padding-left: 10px; border-left: 2px solid var(--bbw-line); }
.bbw-side__sub a { padding: 6px 10px; font-size: 14px; }
.bbw-side__back { margin-top: 10px; color: var(--bbw-muted) !important; }

.bbw-toc { display: flex; flex-direction: column; gap: 4px; padding: 18px; }
.bbw-toc .bbw-side__label { padding: 0 0 6px; }
.bbw-toc a { padding: 3px 0; font-weight: 800; font-size: 15px; color: var(--bbw-soft); line-height: 1.35; }
.bbw-toc a.depth-3, .bbw-toc a.depth-4 { padding-left: 14px; font-size: 14px; color: var(--bbw-muted); }
.bbw-toc a:hover, .bbw-toc a.is-current { color: var(--bbw-accent); }
.bbw-fix { display: flex; flex-direction: column; gap: 6px; padding: 18px; font-weight: 700; font-size: 14px; line-height: 1.45; color: var(--bbw-soft); }
.bbw-fix .bbw-side__label { padding: 0; }

/* Unterseiten als Kacheln */
.bbw-group { display: flex; flex-direction: column; gap: 16px; }
.bbw-group.bbw-panel { padding: 20px; }
.bbw-group__head { display: flex; align-items: center; gap: 14px; }
.bbw-group__head .bbw-h3 { flex: 1; min-width: 0; }
.bbw-group__icon { flex: none; width: 46px; height: 46px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 24px; background: var(--area, #0d55b8); box-shadow: inset 0 2px 0 rgba(255,255,255,.4), inset 0 -3px 0 rgba(0,0,0,.2), 0 4px 0 var(--edge, #070a1c); }
.bbw-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.bbw-pg { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 14px; box-sizing: border-box; background: var(--bbw-panel-2); border: 2px solid var(--bbw-line); border-radius: 4px; font-weight: 800; font-size: 15px; line-height: 1.3; transition: border-color .12s, transform .12s; }
.bbw-pg:hover { border-color: var(--bbw-accent); color: var(--bbw-accent); transform: translateY(-2px); }
.bbw-pg__icon { flex: none; font-size: 18px; }
.bbw-pg__title { flex: 1; min-width: 0; }
.bbw-pg__go { color: var(--bbw-muted); }

/* Vorherige/Nächste */
.bbw-pager { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.bbw-pager a { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; transition: border-color .12s; }
.bbw-pager a:hover { border-color: var(--bbw-accent); }
.bbw-pager small { font-weight: 800; font-size: 13px; color: var(--bbw-muted); }
.bbw-pager span { font-family: var(--bbw-head); font-size: 24px; line-height: 1.1; }
.bbw-pager__next { text-align: right; grid-column: -2; }
.bbw-updated { margin: -12px 0 0; font-size: 13px; font-weight: 700; color: var(--bbw-muted); }

/* --- Bruno ----------------------------------------------------------------- */

.bbw-bruno { overflow: hidden; display: flex; flex-direction: column; background: #161e42; border: 2px solid #2b3393; border-radius: 6px; box-shadow: 0 6px 0 #070a1c; }
.bbw-bruno__img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 40%; }
.bbw-bruno__text { position: relative; display: flex; flex-direction: column; gap: 8px; margin-top: -24px; padding: 0 18px 18px; font-weight: 700; font-size: 14px; line-height: 1.45; color: #e4e7ff; }
.bbw-bruno__title { font-family: var(--bbw-head); font-weight: 400; font-size: 24px; line-height: 1.1; color: #fff; }
.bbw-bruno__text .bbw-btn { align-self: flex-start; }
.bbw-bruno--wide { position: relative; flex-direction: row; align-items: center; min-height: 300px; }
.bbw-bruno--wide .bbw-bruno__img { position: absolute; right: 40px; top: 0; width: auto; height: 100%; aspect-ratio: 1; -webkit-mask-image: radial-gradient(closest-side, #000 78%, transparent 100%); mask-image: radial-gradient(closest-side, #000 78%, transparent 100%); }
.bbw-bruno--wide .bbw-bruno__text { gap: 14px; max-width: 620px; margin: 0; padding: 40px; font-size: 18px; }
.bbw-bruno--wide .bbw-h2 { font-size: clamp(32px, 4vw, 44px); color: #fff; }
.bbw-bruno--wide p { margin: 0; line-height: 1.5; }
.bbw-bruno__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.bbw-bruno__ticket { font-weight: 800; font-size: 15px; color: var(--bbw-soft); }
.bbw-bruno__ticket span { color: var(--bbw-accent); }
.bbw-bruno__ticket:hover span { text-decoration: underline; }

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

.bbw--start { padding-top: 0; }
.bbw-start-hero { background: radial-gradient(600px 380px at 8% 20%, rgba(229,56,59,.22), transparent 70%), radial-gradient(700px 420px at 92% 30%, rgba(42,193,246,.2), transparent 70%), var(--bbw-bg); }
.bbw-start-hero__inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: calc(var(--bb-header-h, 100px) + 36px); padding-bottom: 48px; }
.bbw-start-hero__text { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.bbw-start-hero__title { margin: 0; font-family: var(--bbw-head); font-weight: 400; font-size: clamp(46px, 7vw, 78px); line-height: .95; letter-spacing: .01em; text-shadow: 0 5px 0 rgba(0,0,0,.35); }
.bbw-start-hero__lead { margin: 0; max-width: 520px; font-size: 20px; line-height: 1.5; font-weight: 700; color: var(--bbw-text); }
.bbw-start-hero .bbw-search { max-width: 620px; }
.bbw-start-hero__art { flex: 1 1 400px; display: flex; justify-content: center; }
.bbw-start-hero__art img { width: 100%; max-width: 540px; height: auto; -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); }
.bbw-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bbw-chips > span { margin-right: 4px; font-weight: 800; font-size: 14px; color: #a9b0cc; }
.bbw-chip { padding: 6px 10px; border: 2px solid var(--bbw-line); border-radius: 4px; background: var(--bbw-panel); font-weight: 900; font-size: 14px; color: var(--bbw-accent) !important; }
.bbw-chip:hover { border-color: var(--bbw-accent); }
.bbw-ip { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; max-width: 620px; box-sizing: border-box; padding: 10px 10px 10px 16px; background: rgba(21,27,64,.8); border: 2px solid var(--bbw-line); border-radius: 6px; }
.bbw-ip__label { font-weight: 800; font-size: 15px; color: var(--bbw-soft); }
.bbw-ip__value { font-family: ui-monospace, Menlo, monospace; font-size: 18px; font-weight: 700; color: var(--bbw-cmd); background: none; padding: 0; }
.bbw-ip__hint { flex: 1 1 160px; font-size: 14px; font-weight: 700; color: #a9b0cc; }

.bbw-start { display: flex; flex-direction: column; gap: 56px; padding-top: 8px; padding-bottom: 72px; }
.bbw-start__block { display: flex; flex-direction: column; gap: 18px; }
.bbw-news { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 20px; background: var(--bbw-panel); border: 2px solid var(--bbw-line); border-radius: 6px; box-shadow: 0 5px 0 #070a1c; }
.bbw-news:hover { border-color: var(--bbw-accent); }
.bbw-news .bbw-badge { align-self: center; }
.bbw-news strong { font-family: var(--bbw-head); font-weight: 400; font-size: 22px; }
.bbw-news__text { flex: 1 1 260px; font-weight: 700; color: var(--bbw-soft); }
.bbw-news__go { font-weight: 900; font-size: 22px; color: var(--bbw-accent); }

.bbw-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.bbw-step { display: flex; flex-direction: column; gap: 12px; padding: 20px; background: var(--bbw-panel); border: 2px solid var(--bbw-line); border-radius: 6px; box-shadow: 0 5px 0 #070a1c; transition: border-color .12s; }
.bbw-step:hover { border-color: var(--bbw-accent); }
.bbw-step__head { display: flex; align-items: center; gap: 14px; }
.bbw-step__head strong { font-family: var(--bbw-head); font-weight: 400; font-size: 24px; line-height: 1.1; }
.bbw-step__text { font-weight: 700; font-size: 15px; line-height: 1.45; color: var(--bbw-soft); }
.bbw-step__text code { font-family: ui-monospace, Menlo, monospace; color: var(--bbw-cmd); background: none; padding: 0; }

.bbw-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.bbw-cat { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: 260px; padding: 22px; border-radius: 6px; background: var(--area); color: #fff; box-shadow: inset 0 2px 0 rgba(255,255,255,.3), 0 6px 0 var(--edge), 0 16px 26px rgba(0,0,0,.35); transition: transform .15s; }
.bbw-cat:hover { transform: translateY(-3px); }
.bbw-cat.is-wide { grid-column: span 2; }
.bbw-cat.is-tall { grid-row: span 2; min-height: 540px; }
.bbw-cat.is-side { border: 2px solid var(--bbw-line); }
.bbw-cat__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.bbw-cat.is-side .bbw-cat__img { left: auto; width: 60%; }
.bbw-cat__shade { position: absolute; left: 0; right: 0; bottom: 0; height: 62%; background: linear-gradient(180deg, transparent, var(--shade) 80%); pointer-events: none; }
.bbw-cat.is-side .bbw-cat__shade { top: 0; height: auto; background: linear-gradient(90deg, var(--shade) 40%, transparent 75%); }
.bbw-cat__badge { position: relative; margin-bottom: auto; }
.bbw-cat__title { position: relative; font-family: var(--bbw-head); font-size: 34px; line-height: 1; text-shadow: 0 3px 0 rgba(0,0,0,.28); }
.bbw-cat.is-wide .bbw-cat__title { font-size: 42px; }
.bbw-cat__sub { position: relative; max-width: 320px; font-size: 15px; line-height: 1.4; font-weight: 800; }
.bbw-cat__tags { position: relative; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.bbw-cat__tags span { padding: 4px 8px; border: 1px solid rgba(255,255,255,.22); border-radius: 4px; background: rgba(12,15,35,.45); font-size: 12.5px; font-weight: 900; }
.bbw-cat.is-dark { color: #0c0f23; }
.bbw-cat.is-dark .bbw-cat__title { text-shadow: none; }

.bbw-start__lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; }
.bbw-start__list { display: flex; flex-direction: column; gap: 14px; }
.bbw-list { padding: 8px; background: var(--bbw-panel); border: 2px solid var(--bbw-line); border-radius: 6px; box-shadow: 0 5px 0 #070a1c; }
.bbw-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 14px; border-radius: 4px; font-weight: 800; font-size: 16px; }
.bbw-list a:hover { background: #1c2350; }
.bbw-list a + a { border-top: 1px solid var(--bbw-line); }
.bbw-list__meta { font-size: 13px; font-weight: 800; color: var(--bbw-muted); white-space: nowrap; }

/* --- Inhalt (aus dem Dashboard, GitBook-Bausteine) --------------------------- */

.wiki-content { font-size: 17px; line-height: 1.65; font-weight: 600; color: var(--bbw-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 { font-family: var(--bbw-head); font-weight: 400; line-height: 1.1; letter-spacing: .01em; color: #fff; scroll-margin-top: 24px; }
.wiki-content h1 { font-size: 36px; margin: 40px 0 14px; }
.wiki-content h2 { font-size: 34px; margin: 40px 0 14px; }
.wiki-content h3 { font-size: 26px; margin: 32px 0 12px; }
.wiki-content h4, .wiki-content h5, .wiki-content h6 { font-size: 20px; margin: 24px 0 8px; }
.wiki-content p { margin: 12px 0; }
.wiki-content strong, .wiki-content b { font-weight: 900; color: #fff; }
.wiki-content a { color: var(--bbw-accent); font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: rgba(42,193,246,.4); }
.wiki-content a:hover { text-decoration-color: var(--bbw-accent); }
.wiki-content ul, .wiki-content ol { padding-left: 24px; margin: 12px 0; }
.wiki-content li { margin: 6px 0; }
.wiki-content li > p { margin: 4px 0; }
.wiki-content ul > li::marker { color: var(--bbw-accent); }
.wiki-content ol > li::marker { color: var(--bbw-accent); font-weight: 900; }
.wiki-content img { max-width: 100%; height: auto; border-radius: 4px; }
.wiki-content figure { margin: 20px 0; }
.wiki-content figure img { border: 2px solid var(--bbw-line); box-shadow: 0 5px 0 #070a1c; }
.wiki-content figcaption { margin-top: 8px; font-size: 14px; color: var(--bbw-muted); text-align: center; }
.wiki-content figcaption:empty { display: none; }
.wiki-content code { padding: 3px 8px; border: 1px solid var(--bbw-line-2); border-radius: 4px; background: #0c0f23; color: var(--bbw-cmd); font-family: ui-monospace, Menlo, monospace; font-size: .88em; font-weight: 600; }
.wiki-content pre { padding: 14px 16px; overflow-x: auto; background: #0a0d1f; border: 2px solid var(--bbw-line); border-radius: 6px; }
.wiki-content pre code { padding: 0; border: 0; background: none; }
.wiki-content blockquote { margin: 16px 0; padding: 4px 18px; border-left: 4px solid var(--bbw-line-2); color: var(--bbw-soft); }
.wiki-content hr { margin: 32px 0; border: 0; border-top: 2px solid var(--bbw-line); }
.wiki-content table { display: block; max-width: 100%; overflow-x: auto; margin: 18px 0; border-collapse: separate; border-spacing: 0; font-size: 15px; border: 2px solid var(--bbw-line); border-radius: 6px; }
.wiki-content th, .wiki-content td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--bbw-line); }
.wiki-content tr:last-child td { border-bottom: 0; }
.wiki-content th { background: var(--bbw-panel); font-weight: 900; color: #fff; }
.wiki-content tbody tr:nth-child(even) td { background: rgba(21,27,64,.45); }
.wiki-content mark { background: none; color: inherit; font-weight: 800; }
.wiki-content .wiki-c-primary, .wiki-content .wiki-c-blue { color: #6fb6ff; }
.wiki-content .wiki-c-info, .wiki-content .wiki-c-cyan { color: var(--bbw-accent); }
.wiki-content .wiki-c-success, .wiki-content .wiki-c-green { color: #4fe08a; }
.wiki-content .wiki-c-warning, .wiki-content .wiki-c-orange { color: #ffa24c; }
.wiki-content .wiki-c-yellow { color: #ffd257; }
.wiki-content .wiki-c-danger, .wiki-content .wiki-c-red { color: #ff7a7a; }
.wiki-content .wiki-c-purple { color: #c49bff; }

/* Aufklappbare Abschnitte als Karten */
.wiki-content details { margin: 12px 0; background: var(--bbw-panel); border: 2px solid var(--bbw-line); border-radius: 6px; box-shadow: 0 4px 0 #070a1c; }
.wiki-content details[open] { border-color: var(--bbw-line-2); }
.wiki-content summary { position: relative; padding: 14px 48px 14px 18px; cursor: pointer; list-style: none; font-weight: 900; font-size: 17px; color: #fff; }
.wiki-content summary::-webkit-details-marker { display: none; }
.wiki-content summary::after { content: "+"; position: absolute; right: 14px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 4px; background: linear-gradient(180deg, #5fd4ff, #1a9be0); color: #fff; font: 400 20px/26px var(--bbw-head); text-align: center; box-shadow: 0 2px 0 #0b5f94; }
.wiki-content details[open] > summary::after { content: "–"; }
.wiki-content summary:hover { color: var(--bbw-accent); }
.wiki-content details > :not(summary) { margin-left: 18px; margin-right: 18px; }
.wiki-content details > :last-child { margin-bottom: 16px; }

/* Hinweise (GitBook „hint“) */
.wiki-content .wiki-hint { margin: 18px 0; padding: 4px 18px 4px 20px; border: 2px solid; border-left-width: 6px; border-radius: 6px; color: #fff; }
.wiki-content .wiki-hint-info { border-color: #1a9be0; background: rgba(42,193,246,.1); }
.wiki-content .wiki-hint-success { border-color: #1fa95a; background: rgba(79,224,138,.1); }
.wiki-content .wiki-hint-warning { border-color: #e3a40c; background: rgba(245,186,0,.12); }
.wiki-content .wiki-hint-danger { border-color: #d6343c; background: rgba(255,122,122,.12); }

/* Reiter */
.wiki-content .wiki-tabs { margin: 18px 0; overflow: hidden; background: var(--bbw-panel); border: 2px solid var(--bbw-line); border-radius: 6px; box-shadow: 0 4px 0 #070a1c; }
.wiki-content .wiki-tab { padding: 4px 18px; }
.wiki-content .wiki-tabs:not(.is-ready) .wiki-tab + .wiki-tab { border-top: 2px solid var(--bbw-line); }
.wiki-content .wiki-tabs.is-ready .wiki-tab-title { display: none; }
.wiki-content .wiki-tab-title { font-weight: 900; }
.wiki-content .wiki-tabbar { display: flex; gap: 6px; overflow-x: auto; padding: 6px; background: var(--bbw-panel-2); border-bottom: 2px solid var(--bbw-line); }
.wiki-content .wiki-tabbar button { flex: 0 0 auto; min-height: 42px; padding: 0 14px; border: 0; border-radius: 4px; background: none; color: var(--bbw-soft); font: 900 15px "Nunito", system-ui, sans-serif; cursor: pointer; }
.wiki-content .wiki-tabbar button[aria-selected="true"] { background: linear-gradient(180deg, #5fd4ff, #1a9be0); color: #fff; box-shadow: inset 0 2px 0 rgba(255,255,255,.4), 0 3px 0 #0b5f94; }

/* Karten (GitBook „cards“) */
.wiki-content .wiki-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 16px; margin: 18px 0; }
.wiki-content .wiki-card { overflow: hidden; background: var(--bbw-panel); border: 2px solid var(--bbw-line); border-radius: 6px; box-shadow: 0 5px 0 #070a1c; }
.wiki-content .wiki-card-cover { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 0; border-radius: 0; box-shadow: none; }
.wiki-content .wiki-card-contain .wiki-card-cover { object-fit: contain; background: var(--bbw-panel-2); }
.wiki-content .wiki-card-body { padding: 8px 16px 12px; font-size: 15px; }
.wiki-content .wiki-card-body p { margin: 4px 0; }
.wiki-content .wiki-embed { margin: 18px 0; padding: 12px 16px; border: 2px solid var(--bbw-line); border-radius: 6px; }
.wiki-content .wiki-video { width: 100%; aspect-ratio: 16 / 9; margin: 18px 0; border: 2px solid var(--bbw-line); border-radius: 6px; }

/* Bausteine (Dashboard: {% kurz %}, {% schritte %}, {% beispiel %}, {% befehl %}, {% kacheln %}) */
.wiki-content .wiki-tldr { display: flex; gap: 14px; align-items: flex-start; margin: 18px 0; padding: 16px 18px; background: var(--bbw-panel); border: 2px solid var(--bbw-line); border-left: 6px solid var(--bbw-yellow); border-radius: 6px; color: #fff; }
.wiki-content .wiki-tldr::before { content: "Kurz gesagt"; flex: none; margin-top: 2px; padding: 6px 8px; border-radius: 4px; background: var(--bbw-yellow); color: #0c0f23; font-weight: 900; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 3px 0 #a86f00; }
.wiki-content .wiki-tldr > p { margin: 0; font-size: 18px; font-weight: 700; }
.wiki-content .wiki-tldr > p + p { margin-top: 8px; }
.wiki-content .wiki-steps ol { counter-reset: bbw-step; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; margin: 18px 0; padding: 0; list-style: none; }
.wiki-content .wiki-steps li { counter-increment: bbw-step; display: block; margin: 0; padding: 20px; background: var(--bbw-panel); border: 2px solid var(--bbw-line); border-radius: 6px; box-shadow: 0 5px 0 #070a1c; font-size: 17px; font-weight: 800; line-height: 1.45; color: #fff; }
.wiki-content .wiki-steps li::before { content: counter(bbw-step); margin-bottom: 14px; width: 46px; height: 46px; border-radius: 4px; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, #5fd4ff, #1a9be0); color: #fff; font-family: var(--bbw-head); font-size: 25px; font-weight: 400; box-shadow: inset 0 2px 0 rgba(255,255,255,.45), 0 4px 0 #0b5f94; }
.wiki-content .wiki-steps li > p { margin: 0; }
.wiki-content .wiki-example { margin: 20px 0; padding: 18px 22px; border-radius: 6px; background: linear-gradient(160deg, #ffd84d, #f0a400); color: #0c0f23; font-weight: 800; box-shadow: inset 0 2px 0 rgba(255,255,255,.55), 0 6px 0 #a86f00; }
.wiki-content .wiki-example > :not(.wiki-example-title) { margin: 6px 0 0; }
.wiki-content .wiki-example .wiki-example-title { margin: 0; font-family: var(--bbw-head); font-weight: 400; font-size: 24px; line-height: 1.1; }
.wiki-content .wiki-example strong, .wiki-content .wiki-example a { color: #0c0f23; }
.wiki-content .wiki-example code { background: rgba(12,15,35,.85); }
.wiki-content .wiki-cmd { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin: 16px 0; padding: 10px; background: var(--bbw-panel); border: 2px solid var(--bbw-line); border-radius: 6px; box-shadow: 0 5px 0 #070a1c; }
.wiki-content .wiki-cmd-code { margin: 0; min-width: 120px; padding: 6px 4px; }
.wiki-content .wiki-cmd-code code { padding: 0; border: 0; background: none; font-size: 20px; }
.wiki-content .wiki-cmd-text { flex: 1 1 200px; color: var(--bbw-soft); font-weight: 700; }
.wiki-content .wiki-cmd-text > p { margin: 0; }
.wiki-content .wiki-cmd .bbw-btn { margin-left: auto; }
.wiki-content .wiki-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 18px; margin: 20px 0; }
.wiki-content .wiki-tile { display: flex; flex-direction: column; gap: 10px; padding: 20px; background: var(--bbw-panel); border: 2px solid var(--bbw-line); border-radius: 6px; box-shadow: 0 5px 0 #070a1c; font-size: 15px; line-height: 1.45; font-weight: 700; color: var(--bbw-soft); }
.wiki-content .wiki-tile > p { margin: 0; }
.wiki-content .wiki-tile .wiki-tile-head { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.wiki-content .wiki-tile .wiki-tile-head strong { font-family: var(--bbw-head); font-weight: 400; font-size: 24px; line-height: 1.05; color: #fff; }
.wiki-content .wiki-tile-icon { width: 50px; height: 50px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 26px; --tile: #0d4fb5; --tile-hi: #3aa5ff; --tile-edge: #08398a; background: linear-gradient(160deg, var(--tile-hi), var(--tile)); box-shadow: inset 0 2px 0 rgba(255,255,255,.4), inset 0 -3px 0 rgba(0,0,0,.2), 0 4px 0 var(--tile-edge); }
.wiki-content .wiki-tile-rot .wiki-tile-icon { --tile: #c3121f; --tile-hi: #ff4d55; --tile-edge: #7c0c13; }
.wiki-content .wiki-tile-gelb .wiki-tile-icon { --tile: #f0a400; --tile-hi: #ffd84d; --tile-edge: #a86f00; }
.wiki-content .wiki-tile-gruen .wiki-tile-icon { --tile: #13843e; --tile-hi: #34d36c; --tile-edge: #0b5a2b; }
.wiki-content .wiki-tile-lila .wiki-tile-icon { --tile: #5a2fd6; --tile-hi: #9a7bff; --tile-edge: #3a1a91; }
.wiki-content .wiki-tile-tuerkis .wiki-tile-icon { --tile: #0e9e90; --tile-hi: #3ee6d3; --tile-edge: #076a60; }
.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-weight: 900; font-size: 14px; text-decoration: none; }
.wiki-content .wiki-tile-foot a:hover { text-decoration: underline; }

/* Befehle zum Kopieren (wiki.js) */
.wiki-content .bbw-cmd { position: relative; cursor: copy; }
.wiki-content .bbw-cmd:hover { border-color: var(--bbw-cmd); }
.wiki-content .bbw-cmd.is-copied::after { content: "Kopiert!"; position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); padding: 3px 8px; border-radius: 4px; background: #4fe08a; color: #062614; font: 900 12px "Nunito", system-ui, sans-serif; white-space: nowrap; pointer-events: none; }

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

@media (max-width: 1199px) {
	.bbw-layout { grid-template-columns: 220px minmax(0, 1fr); grid-template-areas: "side main" "side aside"; }
	.bbw-aside { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); align-items: start; }
	.bbw-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bbw-cat.is-tall { grid-row: auto; min-height: 320px; }
}

@media (max-width: 1023px) {
	.bbw-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "side" "main" "aside"; gap: 22px; padding-top: 20px; }
	.bbw-side { position: static; }
	.bbw-side__box { background: var(--bbw-panel); border: 2px solid var(--bbw-line); border-radius: 6px; box-shadow: 0 4px 0 #070a1c; }
	.bbw-side__box > summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 16px; cursor: pointer; list-style: none; font-weight: 900; font-size: 16px; }
	.bbw-side__box > summary::-webkit-details-marker { display: none; }
	.bbw-side__box > summary::after { content: "›"; font-size: 22px; color: var(--bbw-accent); transition: transform .15s; }
	.bbw-side__box[open] > summary::after { transform: rotate(90deg); }
	.bbw-side__nav { padding: 0 8px 10px; }
	.bbw-bruno--wide .bbw-bruno__img { right: -20px; opacity: .35; }
}

@media (max-width: 767px) {
	.bbw { --bbw-gap: 16px; }
	.bbw-bar__inner { gap: 10px; }
	.bbw-search--bar { flex: 1 1 100%; margin-left: 0; }
	.bbw-hero-wrap { padding-top: 16px; }
	.bbw-hero { flex-direction: column; align-items: stretch; min-height: 0; }
	.bbw-hero__img, .bbw-hero.is-side .bbw-hero__img, .bbw-hero.is-square .bbw-hero__img { position: relative; width: 100%; height: 170px; left: 0; right: auto; }
	.bbw-hero.is-square .bbw-hero__img { height: 200px; object-fit: contain; }
	.bbw-hero__shade, .bbw-hero.is-side .bbw-hero__shade { top: 0; bottom: auto; height: 170px; background: linear-gradient(180deg, transparent 40%, var(--shade)); }
	.bbw-hero__text { padding: 4px 18px 22px; margin-top: -30px; gap: 12px; }
	.bbw-hero__lead { font-size: 17px; }
	.bbw-tldr { flex-direction: column; gap: 10px; padding: 14px; }
	.bbw-tldr p { font-size: 17px; }
	.bbw-start-hero__inner { padding-top: calc(var(--bb-header-h, 80px) + 20px); padding-bottom: 32px; }
	.bbw-start-hero__art { display: none; }
	.bbw-start-hero__lead { font-size: 18px; }
	.bbw-search--big .bbw-search__field { min-height: 58px; padding: 0 14px; }
	.bbw-search--big input { min-height: 54px; font-size: 16px; }
	.bbw-start { gap: 40px; }
	.bbw-cats { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.bbw-cat, .bbw-cat.is-tall { min-height: 200px; }
	.bbw-cat.is-wide { grid-column: auto; }
	.bbw-cat.is-wide .bbw-cat__title, .bbw-cat__title { font-size: 32px; }
	.bbw-cat.is-side .bbw-cat__img { width: 75%; }
	.bbw-bruno--wide { flex-direction: column; align-items: stretch; min-height: 0; }
	.bbw-bruno--wide .bbw-bruno__img { position: static; width: 100%; height: 220px; opacity: 1; }
	.bbw-bruno--wide .bbw-bruno__text { padding: 0 18px 22px; margin-top: -20px; font-size: 16px; }
	.wiki-content { font-size: 16px; }
	.wiki-content h2 { font-size: 28px; }
	.wiki-content h3 { font-size: 23px; }
	.wiki-content .wiki-tldr { flex-direction: column; gap: 10px; padding: 14px; }
	.wiki-content .wiki-tldr > p { font-size: 17px; }
	.wiki-content .wiki-cmd .bbw-btn { margin-left: 0; }
	.wiki-content .wiki-steps ol { gap: 12px; }
	.wiki-content .wiki-steps li { position: relative; min-height: 40px; padding: 14px 16px 14px 70px; }
	.wiki-content .wiki-steps li::before { position: absolute; left: 16px; top: 14px; width: 40px; height: 40px; margin: 0; font-size: 22px; }
	.bbw-pager__next { grid-column: auto; }
}
