/* Ansicht „Dev“ (Doc 34): nur Entwickler, nur lokal. Präfix dev-. Mobile first, Richtung B: Linien und Helligkeitsstufen, keine Effekte. */
.dev-tabs { margin: 0 0 var(--s4); }
.dev-tabs a.chip, .dev-filter a.chip { text-decoration: none; }
.dev { display: grid; gap: var(--s4); min-width: 0; }

/* Neu anlegen */
.dev-neu { display: grid; grid-template-columns: 1fr; gap: var(--s2); }
.dev-neu .k { justify-self: start; }
@media (min-width: 640px) { .dev-neu { grid-template-columns: 1fr auto auto; align-items: center; } }
.dev-neu select.eingabe { width: auto; min-width: 9em; }

/* Filterleiste */
.dev-leiste { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); align-items: center; }
.dev-leiste .dev-filter { flex: 1 1 auto; }
.dev-suche { flex: 1 1 200px; max-width: 360px; min-width: 0; margin-left: 0; }
@media (max-width: 860px) { .dev-leiste .dev-suche { flex-basis: 100%; max-width: none; } }
.dev-hinweis { margin: 0; font-size: var(--fs-13); }
.dev-hinweis code, .dev-pfadcode { font: 400 var(--fs-13)/1.4 var(--mono); }

/* Liste (To-dos) */
.dev-liste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linie); }
.dev-zeile { display: grid; grid-template-columns: auto 1fr; gap: var(--s1) var(--s3); padding: var(--s3) var(--s1); border-bottom: 1px solid var(--linie); align-items: start; }
.dev-zeile > .dev-meta { grid-column: 2; }
.dev-zeile .haken { margin-top: 2px; }
.dev-zeile.dringend { border-left: 2px solid var(--gelb); padding-left: calc(var(--s1) + 2px); }
.dev-inhalt { display: grid; gap: 2px; text-align: left; background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; min-height: var(--ziel-min); align-content: center; }
.dev-inhalt:focus-visible { outline: var(--fokus-breite) solid var(--fokus); outline-offset: 2px; border-radius: var(--r1); }
.dev-titel { font: 500 var(--fs-15)/1.35 var(--sans); color: var(--fg); margin: 0; overflow-wrap: anywhere; }
.dev-text { font-size: var(--fs-13); line-height: 1.4; overflow-wrap: anywhere; }
.dev-zeile.fertig .dev-titel { color: var(--mut); text-decoration: line-through; text-decoration-color: var(--mut2); }

/* Metadaten */
.dev-meta { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s2); align-items: center; font-size: var(--fs-13); color: var(--mut); }
.dev-bereich { font: 600 var(--fs-12)/1 var(--etikett-schrift); letter-spacing: calc(.06em * var(--sperrung)); text-transform: var(--etikett-schreibung); color: var(--mut); }
.dev-quelle, .dev-doc { display: inline-flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; }
.dev-quelle span, .dev-doc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 28ch; }
.dev-quelle .i, .dev-doc .i { width: 14px; height: 14px; flex: none; }
.dev-doc { color: var(--fg); text-decoration: underline; text-decoration-color: var(--linie-ui); text-underline-offset: 3px; }
.dev-doc:hover { text-decoration-color: var(--fg); }

/* Karten (Wissen, Aufträge) */
.dev-karten { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.dev-karte { display: grid; gap: var(--s2); align-content: start; padding: var(--s3) var(--s4); background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r2); min-width: 0; }
.dev-karte.art-wichtig { border-left: 2px solid var(--gelb); }
.dev-karte.art-entscheidung { border-left: 2px solid var(--blau); }
.dev-karte.fertig { border-style: dashed; }
.dev-karte.fertig .dev-titel { color: var(--mut); }
.dev-karte-kopf { text-align: left; background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; min-height: var(--ziel-min); }
.dev-karte-kopf:focus-visible { outline: var(--fokus-breite) solid var(--fokus); outline-offset: 2px; border-radius: var(--r1); }
.dev-ergebnis { display: grid; gap: var(--s1); padding: var(--s2) var(--s3); background: var(--flaeche2); border-radius: var(--r1); }

/* Wiki */
.dev-wiki { display: grid; gap: var(--s4); min-width: 0; }
.dev-wiki-liste { display: grid; gap: var(--s2); align-content: start; min-width: 0; }
.dev-wiki-liste .dev-suche { max-width: none; width: 100%; flex: none; }
.dev-wiki-liste details { border-top: 1px solid var(--linie); padding-top: var(--s2); }
.dev-wiki-liste summary { cursor: pointer; padding: var(--s1) 0; min-height: 32px; display: flex; align-items: center; gap: var(--s2); }
.dev-wiki-liste ul { list-style: none; margin: 0; padding: 0; display: grid; }
.dev-wiki-liste a { display: grid; grid-template-columns: 2.2em 1fr; gap: var(--s2); align-items: baseline; padding: 6px var(--s2); min-height: var(--ziel-min); align-content: center; color: var(--fg); text-decoration: none; border-radius: var(--r1); border-left: 2px solid transparent; font-size: var(--fs-14); line-height: 1.3; }
.dev-wiki-liste a > span:only-child { grid-column: 1 / -1; }
.dev-wiki-liste a .ziffern { color: var(--mut2); font-size: var(--fs-13); }
.dev-wiki-liste a:hover { background: var(--flaeche2); }
.dev-wiki-liste a[aria-current="page"] { background: var(--flaeche3); border-left-color: var(--hier); }
.dev-wiki-inhalt { min-width: 0; }
.dev-wiki.mit-doc .dev-wiki-liste { display: none; }
.dev-zurueck { justify-self: start; }
@media (min-width: 1000px) {
  .dev-wiki { grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); align-items: start; }
  .dev-wiki.mit-doc .dev-wiki-liste { display: grid; }
  .dev-wiki-liste { position: sticky; top: calc(var(--vorschau-h, 0px) + var(--s4)); max-height: calc((100dvh - var(--vorschau-h, 0px) - 96px) / var(--zoom, 1)); overflow: auto; padding-right: var(--s2); }
  .dev-zurueck { display: none; }
}
.dev-doc-artikel { display: grid; gap: var(--s4); max-width: 82ch; }
.dev-doc-kopf { display: grid; gap: var(--s2); padding-bottom: var(--s3); border-bottom: 1px solid var(--linie); }
.dev-doc-kopf .mikro { margin: 0; color: var(--mut); overflow-wrap: anywhere; }
.dev-bezug { display: grid; gap: var(--s2); padding: var(--s3); border: 1px solid var(--linie); border-radius: var(--r2); }
.dev-bezug h2 { margin: 0; }
.dev-toc summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; }
.dev-toc ol { list-style: none; margin: var(--s2) 0 0; padding: 0; display: grid; gap: 2px; font-size: var(--fs-14); }
.dev-toc li.t3 { padding-left: var(--s4); }
.dev-toc a { color: var(--fg); text-decoration: none; display: block; padding: 4px 0; }
.dev-toc a:hover { text-decoration: underline; }

/* Markdown */
.dev-md { font: 400 var(--fs-15)/1.6 var(--sans); color: var(--fg); overflow-wrap: anywhere; min-width: 0; }
.dev-md > :first-child { margin-top: 0; }
.dev-md > :last-child { margin-bottom: 0; }
.dev-md h2, .dev-md h3, .dev-md h4, .dev-md h5, .dev-md h6 { font-family: var(--sans); color: var(--fg); line-height: 1.3; margin: 1.6em 0 .5em; scroll-margin-top: calc(var(--vorschau-h, 0px) + 72px); }
.dev-md .dev-h1 { font: 400 var(--fs-32)/1.15 var(--serif); margin-top: 0; }
.dev-md .dev-h2 { font-size: var(--fs-24); font-weight: 600; padding-bottom: .25em; border-bottom: 1px solid var(--linie); }
.dev-md .dev-h3 { font-size: var(--fs-19); font-weight: 600; }
.dev-md .dev-h4, .dev-md .dev-h5, .dev-md .dev-h6 { font-size: var(--fs-17); font-weight: 600; }
.dev-md p, .dev-md ul, .dev-md ol, .dev-md blockquote, .dev-md pre, .dev-md .dev-tabelle { margin: 0 0 .9em; }
.dev-md ul, .dev-md ol { padding-left: 1.4em; }
.dev-md li { margin: .2em 0; }
.dev-md li.dev-tief1 { margin-left: 1.2em; } .dev-md li.dev-tief2 { margin-left: 2.4em; } .dev-md li.dev-tief3 { margin-left: 3.6em; }
.dev-md a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--linie-ui); text-underline-offset: 3px; }
.dev-md a:hover { text-decoration-color: var(--fg); }
.dev-md .dev-pfad { border-bottom: 1px dotted var(--mut2); }
.dev-md code { font: 400 .9em/1.4 var(--mono); background: var(--flaeche2); padding: 1px 5px; border-radius: var(--r1); }
.dev-md pre { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r2); padding: var(--s3); overflow: auto; }
.dev-md pre code { background: none; padding: 0; font-size: var(--fs-13); white-space: pre; }
.dev-md blockquote { border-left: 2px solid var(--linie2); padding: 0 0 0 var(--s3); color: var(--mut); }
.dev-md hr { border: 0; border-top: 1px solid var(--linie); margin: 1.4em 0; }
.dev-md strong { font-weight: 650; }
.dev-tabelle { overflow-x: auto; max-width: 100%; border: 1px solid var(--linie); border-radius: var(--r2); }
.dev-tabelle:focus-visible { outline: var(--fokus-breite) solid var(--fokus); outline-offset: 2px; }
.dev-md table { border-collapse: collapse; width: 100%; font-size: var(--fs-14); line-height: 1.45; }
.dev-md th, .dev-md td { text-align: left; vertical-align: top; padding: 6px 10px; border-bottom: 1px solid var(--linie); min-width: 8ch; }
.dev-md th { background: var(--flaeche2); font-weight: 600; }
.dev-md tr:last-child td { border-bottom: 0; }
.dev-md-kurz { font-size: var(--fs-14); line-height: 1.5; color: var(--mut); max-height: 12em; overflow: hidden; }
.dev-md-kurz .dev-h1, .dev-md-kurz .dev-h2, .dev-md-kurz .dev-h3 { font: 600 var(--fs-15)/1.3 var(--sans); border: 0; margin: .4em 0 .2em; }

/* Blatt */
.dev-blatt { display: grid; gap: var(--s3); }
.dev-blatt-reihe { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.dev-blatt textarea { font: 400 var(--fs-14)/1.5 var(--mono); resize: vertical; min-height: 9em; }
.dev-check { display: flex; gap: var(--s2); align-items: center; min-height: var(--ziel-min); font-size: var(--fs-15); }
.dev-check input { width: 20px; height: 20px; accent-color: var(--fg); }
.dev-blatt-fuss { justify-content: space-between; }
.dev-vorschau { display: grid; gap: var(--s2); margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--linie); }
.dev-vorschau h3 { margin: 0; }

/* Zustände */
.dev-laedt { margin: var(--s4) 0; }
.dev-fehler { display: flex; gap: var(--s2); align-items: center; margin: 0; padding: var(--s3); color: var(--rot); background: var(--rot-hg); border-radius: var(--r2); }
.dev-fehler .i { width: 18px; height: 18px; flex: none; }
