/* Patchtable – Webseite. Dunkler Raum, Glasplatte, Pucks in ihren Farben (wie in der App). Keine Webfonts, keine fremden Anfragen. */
:root {
  --bg: #040508;
  --room: #07080d;
  --table: #141926;
  --line: rgba(170, 190, 255, 0.14);
  --text: #e8ecf8;
  --muted: #9aa4c0;
  --accent: #4d7cff;
  --link: #8fa9ff;
  --gutter: clamp(16px, 4vw, 40px);
  --measure: 66ch;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
code, kbd {
  font: 0.86em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.05em 0.4em;
}
kbd { border-bottom-width: 2px; white-space: nowrap; }

.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 10; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 8px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.intro { color: var(--muted); font-size: 18px; max-width: var(--measure); }
.note { color: var(--muted); font-size: 15px; }
mark.todo { background: #ffe66d; color: #1a1500; padding: 0 5px; border-radius: 4px; font-weight: 600; }

/* ---------------------------------------------------------------- Kopf */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 14px var(--gutter);
}
.inner .top { border-bottom: 1px solid var(--line); }
.home .top { position: absolute; top: 0; left: 0; right: 0; z-index: 3; justify-content: flex-end; }
.brand { color: var(--text); text-decoration: none; font-size: 24px; font-weight: 500; letter-spacing: -0.035em; line-height: 1; }
.brand b, .foot-brand b, h1 b { font-weight: 700; color: var(--accent); }
.home .brand:not(:focus-visible) { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); }
.top nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
/* Startseite: das Menü liegt über dem Tisch – eine halbtransparente schwarze Fläche mit runden Enden hält es lesbar, wenn ein Puck dahinter liegt */
.home .top nav { padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.top nav a {
  color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: 15px; transition: color 0.15s, background 0.15s;
}
.top nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.top nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; padding-left: 4px; padding-right: 4px; margin: 0 8px; }
.top nav a.open-app { color: var(--text); border: 1px solid rgba(200, 210, 235, 0.35); margin-left: 6px; }
.top nav a.open-app:hover { border-color: var(--link); }
.top nav a.lang { font-weight: 600; letter-spacing: 0.04em; }

/* ---------------------------------------------------------------- Knöpfe */
.btn {
  display: inline-block; padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 16px; line-height: 1.2;
  text-decoration: none; border: 1px solid transparent; transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: #fff; color: var(--bg); }
.btn-ghost { color: var(--text); border-color: rgba(200, 210, 235, 0.35); background: rgba(7, 8, 13, 0.5); }
.btn-ghost:hover { border-color: var(--link); color: #fff; }

/* ---------------------------------------------------------------- Hero mit lebendigem Tisch */
.hero {
  position: relative; display: grid; place-items: center; overflow: hidden;
  height: clamp(580px, 100svh, 980px); background: var(--bg);
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; background: linear-gradient(to bottom, rgba(4, 5, 8, 0), var(--bg)); pointer-events: none; z-index: 1; }
.table-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mark {
  position: relative; z-index: 2; text-align: center; pointer-events: none;
  padding: clamp(28px, 5vw, 56px) clamp(20px, 7vw, 88px);
  background: radial-gradient(closest-side, rgba(7, 8, 13, 0.84), rgba(7, 8, 13, 0.58) 62%, rgba(7, 8, 13, 0));
}
.mark a { pointer-events: auto; }
.mark h1 { font-size: clamp(52px, 11vw, 132px); line-height: 1; font-weight: 500; letter-spacing: -0.035em; }
.lead { margin: 0.9em auto 0; font-size: clamp(17px, 2.1vw, 22px); color: var(--muted); max-width: 28em; text-wrap: balance; }
.cta { margin: 1.7em 0 0; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-social {
  position: absolute; z-index: 2; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin: 0; padding: 0 12px; width: max-content; max-width: 100%;
}
/* Netzwerke: runde Knöpfe nur mit dem Logo (der Name steckt in aria-label und title) */
.hero-social a, .foot-social a, .social-big a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border-radius: 999px; text-decoration: none; color: var(--muted); border: 1px solid var(--line); transition: color 0.15s, border-color 0.15s, background 0.15s; }
.hero-social a { background: rgba(7, 8, 13, 0.62); }
.hero-social a:hover, .foot-social a:hover, .social-big a:hover { color: #fff; border-color: var(--link); text-decoration: none; }
.foot-social a:hover { background: rgba(255, 255, 255, 0.04); }
.hero-social .soc-svg, .foot-social .soc-svg { display: block; width: 22px; height: 22px; }
.soc-svg { flex: none; }

/* ---------------------------------------------------------------- Bänder der Landingpage */
.band { padding: clamp(56px, 9vw, 112px) 0; }
.band + .band { border-top: 1px solid var(--line); }
.band h2 { font-size: clamp(27px, 3.6vw, 40px); font-weight: 600; margin-bottom: 0.5em; max-width: 24em; }
.band .intro { margin-bottom: 1.6em; }

.shots { margin-top: 2em; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 36px); }
.shot { margin: 0; }
.shot-big { grid-column: 1 / -1; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--table); }
.shot figcaption { margin-top: 10px; color: var(--muted); font-size: 15px; max-width: 60ch; }

.puck-svg { flex: none; color: var(--c, #b5c7ff); }

.steps { list-style: none; padding: 0; margin: 2em 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 60px); }
.steps li { display: flex; gap: 18px; align-items: flex-start; }
.steps h3 { font-size: 22px; font-weight: 600; margin-bottom: 0.35em; }
.steps p { color: var(--muted); margin: 0; }

.group { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin: 2.4em 0 0.5em; }
.group .count { font-weight: 400; opacity: 0.85; margin-left: 6px; }
.puck-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 2px 14px; }
.puck {
  display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; align-items: center; padding: 8px 8px; border-radius: 12px;
  text-decoration: none; color: var(--text); transition: background 0.15s;
}
.puck:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.puck .puck-svg { grid-row: 1 / span 2; }
.puck .pn { font-weight: 600; font-size: 14px; letter-spacing: 0.04em; line-height: 1.2; align-self: end; }
.puck .ph { color: var(--muted); font-size: 14px; line-height: 1.3; align-self: start; }

.facts { margin: 2em 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 32px clamp(28px, 5vw, 64px); }
.facts > div { border-top: 1px solid var(--line); padding-top: 16px; }
.facts dt { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.facts dd { margin: 6px 0 0; color: var(--muted); }

.plan-list { list-style: none; padding: 0; margin: 0; }
.plan-list li { position: relative; padding: 6px 0 6px 30px; }
.plan-list li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 14px; height: 14px; border-radius: 50%; border: 2px dashed var(--muted); }

.social-big { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.social-big a { width: 64px; height: 64px; color: var(--link); background: rgba(255, 255, 255, 0.02); }
.social-big a:hover { background: rgba(255, 255, 255, 0.05); }
.social-big .soc-svg { display: block; flex: none; width: 30px; height: 30px; }

/* ---------------------------------------------------------------- Fuß */
.foot { border-top: 1px solid var(--line); padding: 48px var(--gutter) 40px; margin-top: 0; }
.foot-grid { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand { font-size: 24px; font-weight: 500; letter-spacing: -0.035em; margin: 0 0 8px; }
.foot-note { color: var(--muted); font-size: 15px; max-width: 28em; margin: 0; }
.foot-h { font-size: 15px; font-weight: 600; letter-spacing: 0; margin-bottom: 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 0 0 6px; }
.foot .foot-social { display: flex; flex-wrap: wrap; gap: 10px; max-width: 164px; } /* neun Knöpfe als 3 x 3 */
.foot .foot-social li { margin: 0; }
.foot a { color: var(--muted); text-decoration: none; font-size: 15px; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot-fine { max-width: 1120px; margin: 36px auto 0; color: var(--muted); font-size: 14px; opacity: 0.85; }

/* ---------------------------------------------------------------- Dokumentseiten */
.doc-wrap { padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(56px, 8vw, 112px); }
.doc-head { margin-bottom: 2.4em; }
.doc-head h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 600; margin-bottom: 0.4em; }
.doc-cols { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.toc { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; font-size: 14px; padding-right: 8px; }
.toc summary { cursor: pointer; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 0; }
.toc a { display: block; padding: 4px 0; color: var(--muted); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: #fff; }
.toc .toc-sep { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.doc-body { min-width: 0; }
.doc-sec { padding-top: 2.6em; margin-top: 2.6em; border-top: 1px solid var(--line); }
.doc-sec:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.doc-sec h2 { font-size: clamp(25px, 3vw, 34px); font-weight: 600; margin-bottom: 0.6em; }
.doc-sec p, .doc-sec li { max-width: var(--measure); }
.doc-sec li { margin-bottom: 0.5em; }
.level { color: var(--muted); font-size: 14px; margin: -0.4em 0 1em; }
.puck-doc { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; padding: 20px 0; border-top: 1px solid var(--line); }
.puck-doc h4 { font-size: 18px; font-weight: 600; letter-spacing: 0.02em; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.puck-doc .ph { color: var(--muted); font-weight: 400; font-size: 15px; letter-spacing: 0; }
.puck-doc p { margin: 0.4em 0 0; max-width: var(--measure); }
.puck-doc .ctl { color: var(--muted); font-size: 14px; }
.puck-doc:target { background: rgba(255, 255, 255, 0.03); }
.table-scroll { overflow-x: auto; position: relative; }
.keys { width: 100%; border-collapse: collapse; font-size: 15px; }
.keys th, .keys td { text-align: left; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; font-weight: 400; }
.keys thead th { font-weight: 600; color: var(--muted); }
.keys tbody th { white-space: nowrap; width: 1%; }

.log { padding: 2em 0; border-top: 1px solid var(--line); }
.log h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-size: clamp(22px, 2.6vw, 28px); font-weight: 600; margin-bottom: 0.7em; }
.log-date { color: var(--muted); font-size: 15px; font-weight: 500; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.log p { color: var(--muted); max-width: var(--measure); }
.log-items { list-style: none; padding: 0; margin: 0; }
.log-items li { padding: 6px 0; max-width: var(--measure); }
.kind { display: inline-block; min-width: 5.6em; font-size: 13px; font-weight: 700; letter-spacing: 0.02em; color: var(--muted); }
.k-new { color: #3ddc97; }
.k-better { color: #2ec4ff; }
.k-changed { color: #ffb703; }
.k-fixed { color: #ff70c6; }

.legal-sec { margin: 0 0 2em; }
.legal-sec h2 { font-size: 21px; font-weight: 600; margin-bottom: 0.5em; }
.legal-sec p, .legal-sec li { max-width: var(--measure); }

.form { max-width: 520px; }
.field { margin: 0 0 1.25em; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field input[type="text"], .field input[type="email"], .field input[type="password"], .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(200, 210, 235, 0.28); border-radius: 10px; padding: 11px 13px; line-height: 1.4;
  transition: border-color 0.15s, background 0.15s;
}
.field textarea { resize: vertical; min-height: 5.5em; }
.field select { appearance: auto; }
.field select option { background: #141926; color: var(--text); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(200, 210, 235, 0.5); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--link); outline-offset: 1px; border-color: var(--link); }

.hint { color: var(--muted); font-size: 14px; margin: 6px 0 0; max-width: 46ch; }

.notice { border-left: 3px solid #3ddc97; background: rgba(61, 220, 151, 0.1); padding: 10px 14px; margin: 0 0 1.5em; border-radius: 0 8px 8px 0; max-width: 60ch; }

.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin: 1.4em 0 0; }
.actions .btn { cursor: pointer; font-family: inherit; }
button.btn { appearance: none; cursor: pointer; font-family: inherit; }

.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.here { color: #3ddc97; font-weight: 600; font-size: 13px; margin-left: 6px; }

/* ---------------------------------------------------------------- Bildschirmfotos der App (Funktionen, Hilfe) */
.doc-sec::after { content: ""; display: block; clear: both; }
.doc-sec .shot.wide { margin: 1.2em 0 1.6em; }
.shot-row { display: flex; flex-wrap: wrap; gap: 18px 22px; align-items: flex-start; margin: 1.2em 0 1.8em; }
.shot-row .shot.side { flex: 0 1 300px; width: min(300px, 100%); margin: 0; }
.doc-sec .shot figcaption { font-size: 14px; }
.overview-hero { margin: 0 0 clamp(40px, 6vw, 80px); }
.overview-hero img { box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5); }
.feat-list { display: grid; gap: clamp(48px, 7vw, 96px); }
.feat { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.feat.feat-flip { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.feat.feat-flip .feat-text { order: 2; }
.feat h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 600; margin-bottom: 0.5em; }
.feat .feat-img img { max-height: 420px; width: auto; max-width: 100%; margin: 0 auto; }
.feat .more { font-weight: 600; }
.more-feats { margin-top: clamp(56px, 8vw, 112px); padding-top: clamp(32px, 5vw, 56px); border-top: 1px solid var(--line); }
.more-feats h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 600; margin-bottom: 0.3em; }
.more-feats .facts dt a { color: inherit; text-decoration: none; }
.more-feats .facts dt a:hover { color: var(--link); text-decoration: underline; }
.feat-end { margin-top: clamp(56px, 8vw, 112px); text-align: center; }
.feat-end h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 600; }
.feat-end p { margin-left: auto; margin-right: auto; }

/* ---------------------------------------------------------------- Schmale Fenster */
@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; }
  .feat, .feat.feat-flip { grid-template-columns: 1fr; }
  .feat.feat-flip .feat-text { order: 0; }
  .doc-cols { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .top nav a { padding: 8px 9px; }
  .home .top nav { border-radius: 22px; padding: 4px 6px; }
  .top nav a[aria-current="page"] { margin: 0 4px; }
  .foot-grid { grid-template-columns: 1fr; }
  .puck-doc { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; }
}
@media (max-width: 440px) {
  /* neun Netzwerke: auf dem Handy etwas enger, damit sie in zwei Zeilen passen */
  .hero-social { gap: 8px; max-width: 280px; } /* fünf in der ersten, vier in der zweiten Zeile */
  .hero-social a { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.search { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 1.5em; max-width: 720px; }
.search input[type="text"] { flex: 1 1 220px; min-width: 0; font: inherit; color: var(--text); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(200, 210, 235, 0.28); border-radius: 10px; padding: 10px 13px; }
.search select { font: inherit; color: var(--text); background: #141926; border: 1px solid rgba(200, 210, 235, 0.28); border-radius: 10px; padding: 10px 12px; }
.search input:focus-visible, .search select:focus-visible { outline: 2px solid var(--link); outline-offset: 1px; border-color: var(--link); }
.empty { color: var(--muted); max-width: 52ch; }

.cards { list-style: none; padding: 0; margin: 0 0 1.5em; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 22px 18px; }
.card { min-width: 0; }

.card h3 { font-size: 17px; font-weight: 600; margin: 10px 0 2px; letter-spacing: 0; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.meta { color: var(--muted); font-size: 14px; margin: 0; overflow-wrap: anywhere; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 2em; color: var(--muted); font-size: 15px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 1em; }

.tags { list-style: none; padding: 0; margin: 0 0 1.4em; display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; font-size: 14px; color: var(--muted); text-decoration: none; }
.tags a:hover { color: #fff; border-color: rgba(170, 190, 255, 0.4); }

textarea.mono, .field textarea.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; word-break: break-all; }
.field input[type="file"] { width: 100%; font: inherit; color: var(--muted); }
.field input[type="file"]::file-selector-button { font: inherit; color: var(--text); background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line); border-radius: 8px; padding: 7px 14px; margin-right: 12px; cursor: pointer; }

.badge { display: inline-block; font-size: 12.5px; font-weight: 600; border: 1px solid var(--line); border-radius: 999px; padding: 1px 10px; color: var(--muted); white-space: nowrap; }
.badge.public { color: #3ddc97; border-color: rgba(61, 220, 151, 0.4); }

.badge.bad { color: #ff97a4; border-color: rgba(255, 122, 138, 0.5); margin-left: 6px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 1.4em; }
.filters a[aria-current] { color: var(--text); font-weight: 600; text-decoration: none; }
.quote { border-left: 3px solid var(--line); padding: 2px 0 2px 14px; max-width: var(--measure); overflow-wrap: anywhere; }
.report .form { max-width: 620px; }

[hidden] { display: none !important; }

.search select { max-width: 100%; }

.plain-list { list-style: none; padding: 0; margin: 0 0 1em; }
.plain-list li { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.plain-list form { margin: 0; }

/* ---------------------------------------------------------------- Lernen */
.crumbs { margin: 0 0 1.2em; font-size: 14.5px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; }
.crumbs li { color: var(--muted); }
.crumbs li + li::before { content: "›"; margin: 0 .55em; color: var(--muted); }
.crumbs li[aria-current] { color: var(--text); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: #fff; }
.badge-svg { flex: none; color: var(--c, #b5c7ff); }
.lv-head { display: flex; gap: clamp(16px, 3vw, 28px); align-items: center; }
.lv-head h1 { margin-bottom: .3em; }
.lv-head .intro { margin-bottom: 0; }
.learn-continue { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin: 0 0 2em; }
.lprog { display: flex; align-items: center; gap: 10px; margin: .5em 0 0; font-size: 14.5px; color: var(--muted); }
.learn-continue .lprog { margin: 0; }
.lprog progress { width: 150px; max-width: 40vw; height: 10px; accent-color: var(--accent); }

.level-cards, .chapter-list, .lesson-list { list-style: none; margin: 0 0 2em; padding: 0; display: grid; gap: 18px; }
.level-card, .chapter-list > li, .lesson-list > li {
  display: flex; gap: clamp(14px, 2.4vw, 24px); align-items: flex-start; border: 1px solid var(--line); border-radius: 16px;
  padding: clamp(16px, 2.4vw, 24px); background: rgba(255, 255, 255, 0.02);
}
.level-card:hover, .chapter-list > li:hover, .lesson-list > li:hover { border-color: rgba(170, 190, 255, 0.35); }
.lc-body { min-width: 0; flex: 1; }
.lc-body h3 { font-size: clamp(20px, 2.4vw, 25px); font-weight: 600; margin-bottom: .3em; letter-spacing: -0.01em; }
.lc-body h3 a { color: var(--text); text-decoration: none; }
.lc-body h3 a:hover { text-decoration: underline; }
.lc-body p { max-width: var(--measure); }
.lc-body > p:last-child, .lc-body .meta { margin-bottom: 0; }
.lesson-list > li { align-items: center; padding: 14px clamp(14px, 2.4vw, 22px); }

.lesson-list h3 { font-size: 19px; margin-bottom: .15em; }
.ll-num { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); color: var(--muted); font-weight: 600; }

.app-hint { margin-top: 1.6em; }

/* Lektionsseite */
.lesson-meta { margin: 0 0 1em; }

.lesson-text h2 { font-size: 22px; font-weight: 600; margin: 0 0 .6em; }
.lesson-text section { margin: 0 0 2em; }

.lesson-steps { padding-left: 1.5em; }
.lesson-steps li { margin: 0 0 1em; padding-left: .3em; }
.lesson-steps li::marker { font-weight: 700; color: var(--link); }
.lesson-steps p { margin: 0 0 .3em; max-width: var(--measure); }
.step-hint { color: var(--text); border-left: 3px solid var(--link); background: rgba(143, 169, 255, 0.08); padding: 8px 12px; border-radius: 0 8px 8px 0; font-size: 15.5px; }

.goal-list { list-style: none; margin: 0 0 1em; padding: 0; display: grid; gap: 8px; }
.goal-list li { display: grid; grid-template-columns: 1.6em minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; }
.goal-mark { font-weight: 700; text-align: center; }

.lesson-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin: 2em 0 0; font-size: 15px; }

@media (max-width: 560px) {
  .level-card, .lv-head { flex-direction: column; align-items: flex-start; }
  .chapter-list > li { flex-direction: column; }
  .goal-list li { grid-template-columns: 1.4em minmax(0, 1fr); }
  
}

.level-links { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 1.2em; padding: 0; }

/* Download-Seite */
.dl-cards { list-style: none; padding: 0; margin: 0 0 2em; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.dl-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; background: rgba(255, 255, 255, 0.03); }
.dl-card h2 { margin-top: 0; font-size: 22px; }
.dl-card.is-detected { border-color: var(--accent); background: rgba(77, 124, 255, 0.08); }
.dl-file { margin: 0 0 1em; }
.dl-file p { margin: 0 0 .4em; }
.sha { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.sha code { font-size: 12px; }
.release { border-top: 1px solid var(--line); padding: .6em 0; }
.release summary { cursor: pointer; }
.release .notes { margin: .6em 0; color: var(--muted); max-width: var(--measure); }
.detected { color: var(--muted); }

.av { flex: none; border-radius: 50%; }

.pf { padding-top: 28px; padding-bottom: 40px; }

@media (max-width: 560px) {
  /* schmale Bildschirme: Menükarte über die ganze Breite unter dem Kopf */
  .inner .top { position: relative; }
  
  
  
  
  
}

/* Changelog: Reiter App / Webseite */
.log-tabs { display: flex; gap: 6px; margin-top: 18px; }
.log-tabs a { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-size: 15px; }
.log-tabs a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.log-tabs a[aria-current="page"] { color: var(--text); border-color: color-mix(in srgb, var(--accent) 70%, transparent); background: rgba(255, 255, 255, 0.06); }

/* Funktionen-Seite aus dem Handbuch: Codeblöcke und breite Tabellen scrollen in sich */
.doc-body pre { overflow-x: auto; max-width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); font-size: 12px; line-height: 1.45; }
.doc-body pre code { background: none; border: 0; padding: 0; white-space: pre; }
.doc-body .table-scroll { margin: 14px 0; max-width: 100%; }
.doc-body .table-scroll table { border-collapse: collapse; font-size: 15px; }
.doc-body .table-scroll th, .doc-body .table-scroll td { text-align: left; vertical-align: top; padding: 7px 12px; border-bottom: 1px solid var(--line); }
.doc-body .table-scroll td { min-width: 6em; }

/* Schmale Fenster: Menü als Knopf mit drei Strichen (menu.js setzt .has-toggle; ohne Skript bleibt die umbrechende Zeile) */
.nav-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.55); color: var(--text); cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.nav-toggle:hover, .top.nav-open .nav-toggle { border-color: rgba(200, 210, 235, 0.5); background: rgba(255, 255, 255, 0.1); }
@media (max-width: 860px) {
  .top.has-toggle .nav-toggle { display: inline-flex; }
  .top.has-toggle nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 2px; padding: 6px 0 4px; }
  .top.has-toggle.nav-open nav { display: flex; }
  .top.has-toggle nav > a { display: flex; padding: 12px 14px; border-radius: 12px; font-size: 17px; }
  .top.has-toggle nav a[aria-current="page"] { margin: 0; padding: 12px 14px; border-radius: 12px; box-shadow: inset 3px 0 0 var(--accent); background: rgba(255, 255, 255, 0.05); }
  .top.has-toggle nav a.open-app { justify-content: center; margin: 8px 0 2px; }
  .top.has-toggle nav a.lang { justify-content: flex-start; }
  
  
  
  
  
  /* Startseite: der Kopf liegt über dem Tisch; Knopf oben rechts, das Menü klappt als dunkle Fläche darunter auf */
  .home .top.has-toggle { align-items: flex-start; }
  .home .top.has-toggle nav { position: absolute; top: 64px; left: var(--gutter); right: var(--gutter); z-index: 5; padding: 8px; border-radius: 18px; background: rgba(6, 8, 14, 0.92); border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55); }
  .home .top.has-toggle:not(.nav-open) nav { background: none; }
  .inner .top.has-toggle { position: relative; }
}

/* Beta-Hinweise: Leiste unter dem Kopf (Unterseiten), Zeile im Startbild, Kasten auf Download- und Hilfeseite. Schalter: Konfiguration „beta“. */
.beta-tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1; padding: 4px 8px; border-radius: 999px; color: #1a1400; background: #ffc857; vertical-align: 0.08em; }
.beta-bar { margin: 0; padding: 8px var(--gutter); font-size: 15px; color: var(--text); background: rgba(255, 200, 87, 0.1); border-bottom: 1px solid rgba(255, 200, 87, 0.35); text-align: center; }
.beta-bar a { white-space: nowrap; }
.beta-note { margin: 1em auto 0; font-size: 15px; color: var(--muted); max-width: 46em; text-wrap: balance; }
.beta-note a { white-space: nowrap; }
.beta-box { border: 1px solid rgba(255, 200, 87, 0.45); background: rgba(255, 200, 87, 0.07); border-radius: 12px; padding: 16px 20px; margin: 0 0 2em; max-width: var(--measure); }
.beta-box h2 { font-size: 1.25rem; margin: 0 0 0.6em; }
.beta-box p:last-child { margin-bottom: 0; }
.beta-box .actions { margin-top: 1em; }

/* Systemvoraussetzungen auf der Download-Seite */
.req-cards { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-bottom: 1.4em; }
.download .doc-sec h3 { margin: 1.6em 0 0.6em; font-size: 20px; font-weight: 600; }
.req-cards .dl-card h4 { margin: 0 0 0.6em; font-size: 20px; font-weight: 600; }
.req-list { margin: 0; }
.req-list dt { font-weight: 600; font-size: 15px; margin-top: 0.8em; }
.req-list dt:first-child { margin-top: 0; }
.req-list dd { margin: 0.15em 0 0; color: var(--muted); font-size: 15px; max-width: var(--measure); }
.req-hw { display: grid; grid-template-columns: minmax(8em, 12em) 1fr; gap: 0.7em 20px; margin-bottom: 1em; }
.req-hw dt, .req-hw dd { margin: 0; padding-top: 0.7em; border-top: 1px solid var(--line); }
@media (max-width: 640px) { .req-hw { grid-template-columns: 1fr; gap: 0; } .req-hw dd { border-top: 0; padding-top: 0.15em; } }
