/* Nachrichten-Bausteine (B2, js/kanal.js): Kanal, Liste, Nachricht, Komponist, Feed, Pflicht-Band, Blätter.
   Präfix kn-. Nur Tokens aus dashboard.css. Keine Schatten, Verläufe, Filter, Glow. Ordnung aus 1-px-Linien und Flächenstufen.
   Signal: rot = Pflicht offen, Fehler · gelb = für Dich, wartet · blau = ungelesen, neu · ok = bestätigt, live.
   Abteilungsfarbe (--kf) nur als Form (Punkt, Kante), nie als Text. Mobile first, Rechner ab 861 px. */

/* Abteilungsfarbe in „Sonne“: --kf-tief kommt aus dashboard.css (70 %, je Element berechnet, geprüft mind. 3:1, G.6).
   Hier bewusst kein eigener Wert. */

/* Icons in eigenen Bausteinen (Knöpfe, Etiketten und Chips stylt kern.css) */
:where(.kn-kanal, .kn-feed, .kn-band, .kn-sheet, .kn-faden-blatt, .kn-komponist, .na, .abt) :not(.k, .etikett, .chip) > svg.i {
  width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px;
}
.kn-mut { color: var(--mut); }
.kn-link { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 6px; min-height: 28px; color: var(--fg); font: 600 var(--fs-13)/1.2 var(--sans); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--linie-ui); cursor: pointer; border-radius: var(--r1); }
.kn-link.blau { color: var(--blau); text-decoration-color: currentColor; }
.kn-link:focus-visible { outline: var(--fokus-breite) solid var(--fokus); outline-offset: 2px; }
.kn-kf-punkt { width: 10px; height: 10px; border-radius: 50%; background: var(--kf-tief, var(--kf)); flex: none; }
.kn-k-icon { display: inline-grid; place-items: center; width: 24px; height: 24px; color: var(--mut); flex: none; }
.kn-kuerzel { display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none; border: 1px solid var(--linie-ui); border-radius: var(--r1); color: var(--fg); font: 600 var(--fs-12)/1 var(--futura); letter-spacing: .04em; text-transform: uppercase; }
.kn-kuerzel.klein { width: 24px; height: 24px; }

/* ══ Kanal ══ */
.kn-kanal { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.kn-kopf { display: flex; align-items: center; gap: var(--s2); min-height: 52px; padding: var(--s2) var(--s3); background: var(--bg); border-bottom: 1px solid var(--linie); }
.kn-kopf-titel { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: var(--s2); }
.kn-kopf-titel h2 { margin: 0; min-width: 0; font: 600 var(--text-titel)/1.25 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kn-kopf-titel .kn-mut { font-size: var(--fs-13); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kn-stumm { display: inline-flex; color: var(--mut); }
.kn-sichtbar { display: flex; align-items: center; gap: 6px; margin: 0; padding: 6px var(--s3); color: var(--mut); font: 400 var(--fs-13)/1.35 var(--sans); }
.kn-sichtbar svg.i { width: 16px; height: 16px; }

/* ══ Liste ══ */
.kn-liste { display: flex; flex-direction: column; gap: 2px; padding: var(--s2) 0 var(--s3); min-width: 0; }
.kn-trenner { display: flex; align-items: center; gap: var(--s2); margin: var(--s3) var(--s3) var(--s1); color: var(--mut2); font: 600 var(--fs-12)/1 var(--etikett-schrift, var(--futura)); letter-spacing: calc(.1em * var(--sperrung, 1)); text-transform: var(--etikett-schreibung, uppercase); }
.kn-trenner::before, .kn-trenner::after { content: ""; flex: 1; height: 1px; background: var(--linie); }
.kn-trenner-neu { color: var(--blau); }
.kn-trenner-neu::before, .kn-trenner-neu::after { background: var(--blau); }
.kn-still { margin: var(--s5) var(--s3); color: var(--mut); text-align: center; font-size: var(--fs-15); }
.kn-aelter { display: flex; justify-content: center; padding: var(--s2) 0; }
/* Band „x neue seit 13:38“ (kanal.js listeInnerHtml, Seiten-Check 23): oben in der Liste, bleibt beim Scrollen stehen */
.kn-neu-band { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2); margin-block-end: var(--s2); padding: 6px 12px; border: var(--haar, 1px) solid var(--blau); border-radius: var(--r2); background: var(--blau-hg); color: var(--fg); font-size: var(--fs-14); }
.kn-neu-band > span { display: inline-flex; align-items: center; gap: 6px; }
.kn-neu-band svg { width: 16px; height: 16px; color: var(--blau); }
@media (pointer: coarse) { .kn-neu-band .kn-link { min-height: var(--ziel-min); } }
.kn-fehler-zeile { display: grid; justify-items: start; gap: var(--s2); margin: var(--s3); padding: var(--s3); border: 1px solid var(--rot); border-radius: var(--r2); background: var(--rot-hg); color: var(--fg); }
.kn-fehler-zeile p { margin: 0; }
.kn-sammel { display: flex; justify-content: center; padding: var(--s2) var(--s3) 0; }
/* --kn-unten: Höhe des klebenden Komponisten, wenn die Liste mit der Seite oder im Blatt scrollt (kanal.js untenAbstand) */
.kn-neu-unten { position: sticky; bottom: calc(var(--kn-unten, 0px) + var(--s2)); z-index: 5; align-self: center; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; margin-top: var(--s2); padding: 0 14px; border: 0; border-radius: var(--r2); background: var(--blau-voll); color: var(--auf-blau); font: 600 var(--fs-14)/1 var(--sans); cursor: pointer; }
.kn-neu-unten svg.i { transform: rotate(90deg); width: 16px; height: 16px; }
.kn-neu-unten:focus-visible { outline: var(--fokus-breite) solid var(--fokus); outline-offset: 2px; }

/* Skelett beim Laden (Endlosbewegung nur hier, ruhig: steht still) */
.kn-skelett { display: grid; gap: var(--s4); padding: var(--s4) var(--s3); }
.kn-skelett-zeile { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.kn-skelett-zeile i, .kn-skelett-zeile b { display: block; background: var(--flaeche2); border-radius: var(--r1); }
.kn-skelett-zeile i { width: 28px; height: 28px; }
.kn-skelett-zeile b { height: 38px; }
.kn-skelett-zeile:nth-child(odd) b { width: 70%; }
@media (prefers-reduced-motion: no-preference) { :root:not([data-bewegung="ruhig"]) .kn-skelett-zeile { animation: kn-atmen 1.6s var(--ease) infinite alternate; } }
@keyframes kn-atmen { from { opacity: 1; } to { opacity: .55; } }

/* ══ Nachricht ══ */
.kn-n { position: relative; display: flex; flex-direction: column; gap: 4px; margin: 0 var(--s1); padding: 8px var(--s2) 8px; border: 1px solid transparent; border-radius: var(--r2); min-width: 0; outline: none; }
.kn-n:focus-visible { border-color: var(--fokus); outline: var(--fokus-breite) solid var(--fokus); outline-offset: -1px; }
.kn-n.kn-folge { padding-top: 2px; }
.kn-n.kn-folge > .kn-n-kopf { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.kn-n-kopf { display: flex; align-items: center; gap: var(--s2); min-width: 0; padding-right: 40px; }
.kn-name { font: 600 var(--fs-14)/1.2 var(--sans); color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.kn-zeit { font-size: var(--fs-12); color: var(--mut2); white-space: nowrap; }
.kn-bearbeitet { font-size: var(--fs-12); color: var(--mut2); }
.kn-sprache { display: inline-flex; color: var(--mut2); }
.kn-sprache svg.i { width: 14px; height: 14px; }
.kn-kanal-name { margin-left: auto; font: 600 var(--fs-12)/1 var(--etikett-schrift, var(--futura)); letter-spacing: calc(.06em * var(--sperrung, 1)); text-transform: var(--etikett-schreibung, uppercase); color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kn-n > :not(.kn-n-kopf, .kn-werkzeug, .kn-mehr-mobil) { margin-left: 38px; }
.kn-text { font: 400 var(--fs-15)/1.5 var(--sans); color: var(--fg); white-space: pre-wrap; overflow-wrap: break-word; word-break: normal; hyphens: auto; min-width: 0; }
.kn-text a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--linie-ui); overflow-wrap: anywhere; }
.kn-text .kn-erw { font-weight: 700; }
.kn-text mark.kn-ich, .na mark, .kn-feed mark { background: var(--gelb-hg); color: var(--fg); font-weight: 700; padding: 0 2px; border-radius: 3px; }
.kn-text.kn-gekuerzt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; line-clamp: 6; overflow: hidden; }
.kn-marken { display: flex; flex-wrap: wrap; gap: 6px; }
.kn-kante { border-left: 4px solid var(--kf-tief, var(--kf)); border-top-left-radius: 0; border-bottom-left-radius: 0; }

/* Pflicht-Info: Fläche + Rahmen + Etikett, keine linke Kante (J/U12) */
.kn-n.kn-pflicht { background: var(--rot-hg); border-color: var(--rot); margin-block: var(--s1); }
.kn-pflicht-fuss { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); padding-top: 2px; }
.kn-n.kn-pflicht .k:not(.primaer):not(.leise) { background: var(--flaeche); }
/* Zustände nie über Deckkraft (B1): gestrichelt, --mut, Etikett */
.kn-n.kn-geloescht, .kn-n.kn-ausgeblendet { border: 1px dashed var(--linie-ui); }
.kn-n.kn-geloescht .kn-text { color: var(--mut); font-style: italic; }
.kn-n.kn-ausgang { border: 1px dashed var(--linie-ui); }
.kn-n.kn-ausgang.kn-fehler { border-color: var(--rot); }
.kn-ausgang-zustand { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
.kn-sendet { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-13); }
.kn-frage { display: grid; gap: var(--s2); padding: var(--s2) var(--s3); border: 1px solid var(--rot); border-radius: var(--r2); background: var(--rot-hg); }
.kn-frage p { margin: 0; color: var(--fg); }
.kn-bearbeiten { display: grid; gap: var(--s2); }

/* Reaktionen: Icon + Text + Zahl */
.kn-reaktionen { display: flex; flex-wrap: wrap; gap: 6px; }
.kn-reaktion { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid var(--linie-ui); border-radius: var(--r2); background: transparent; color: var(--mut); font: 500 var(--fs-13)/1 var(--sans); cursor: pointer; touch-action: manipulation; white-space: nowrap; }
.kn-reaktion svg.i { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.kn-reaktion .ziffern { color: var(--fg); font-size: var(--fs-12); }
.kn-reaktion[aria-pressed="true"] { background: var(--flaeche3); border-color: var(--fg); color: var(--fg); font-weight: 600; }
.kn-reaktion:focus-visible { outline: var(--fokus-breite) solid var(--fokus); outline-offset: 2px; }
.kn-reaktion.gross { height: var(--ziel); justify-content: flex-start; padding: 0 var(--s3); font-size: var(--fs-15); }
@media (hover: hover) { .kn-reaktion:hover { color: var(--fg); border-color: var(--fg); } }

/* Faden-Knopf */
.kn-faden-knopf { all: unset; box-sizing: border-box; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; align-self: flex-start; min-height: 28px; padding: 2px 8px; border-radius: var(--r1); color: var(--fg); font: 600 var(--fs-13)/1.3 var(--sans); cursor: pointer; }
.kn-faden-knopf svg.i { width: 16px; height: 16px; color: var(--mut); }
.kn-faden-knopf .kn-mut { font-weight: 400; color: var(--mut2); }
.kn-faden-knopf:focus-visible { outline: var(--fokus-breite) solid var(--fokus); outline-offset: 1px; }
.kn-neu-zahl { padding: 1px 6px; border-radius: var(--r1); background: var(--blau-hg); color: var(--blau); font-size: var(--fs-12); }
@media (hover: hover) { .kn-faden-knopf:hover { background: var(--flaeche2); } }

/* Aktionen: Rechner Leiste oben rechts (Hover/Fokus), Touch Knopf „Mehr“ + langes Drücken */
.kn-werkzeug { position: absolute; z-index: 3; top: -12px; right: var(--s2); display: none; align-items: center; gap: 2px; padding: 2px; background: var(--sheet); border: 1px solid var(--linie2); border-radius: var(--r2); }
.kn-werkzeug .k.klein { border-color: transparent; }
.kn-n:focus-within > .kn-werkzeug, .kn-werkzeug:has(details[open]) { display: flex; }
@media (hover: hover) { .kn-n:hover > .kn-werkzeug { display: flex; } .kn-werkzeug .k.klein:hover { background: var(--flaeche3); } }
.kn-mehr-mobil { display: none; position: absolute; top: 4px; right: 2px; }
@media (hover: none), (pointer: coarse) {
  .kn-werkzeug { display: none !important; }
  .kn-mehr-mobil { display: inline-flex; border-color: transparent; color: var(--mut); }
  .kn-n-kopf, .kn-n.kn-folge > .kn-n-kopf + * { padding-right: 84px; }   /* Platz für „Mehr“ mit Text (Folge-Nachricht: ohne Kopf) */
  .kn-n[data-kn-n] { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
}
.kn-pop { position: relative; }
.kn-pop > summary { list-style: none; }
.kn-pop > summary::-webkit-details-marker { display: none; }
.kn-pop .kn-pop-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.kn-pop-inhalt { position: absolute; z-index: 6; top: calc(100% + 4px); right: 0; display: flex; gap: 6px; padding: var(--s2); background: var(--sheet); border: 1px solid var(--linie2); border-radius: var(--r2); }
.kn-pop-inhalt.kn-menue { flex-direction: column; gap: 0; min-width: 200px; padding: var(--s1); }
.kn-menue button { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: var(--s2); min-height: 36px; padding: 0 var(--s2); border-radius: var(--r1); color: var(--fg); font: 500 var(--fs-14)/1.2 var(--sans); cursor: pointer; }
.kn-menue button svg.i { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; color: var(--mut); }
.kn-menue button:focus-visible { outline: var(--fokus-breite) solid var(--fokus); outline-offset: -2px; }
.kn-menue .kn-gefahr, .kn-menue .kn-gefahr svg.i { color: var(--rot); }
@media (hover: hover) { .kn-menue button:hover { background: var(--flaeche3); } }

/* Systemzeile: zentriert, ohne Aktionen */
.kn-system { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 8px; margin: var(--s1) var(--s3); padding: 6px var(--s2); color: var(--mut); font: 400 var(--fs-13)/1.4 var(--sans); text-align: center; }
.kn-system time { color: var(--mut2); font-size: var(--fs-12); }
.kn-system-icon { display: inline-flex; }
.kn-system.ok .kn-system-icon { color: var(--ok); }
.kn-system.blau .kn-system-icon { color: var(--blau); }
.kn-system .kn-link { font-weight: 600; }

/* ══ Komponist ══ */
.kn-komponist { position: relative; display: grid; gap: 6px; padding: var(--s2) var(--s3) calc(var(--s2) + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--linie); }
.kn-komponist textarea.kn-eingabe { display: block; width: 100%; min-height: var(--ziel-min); max-height: calc(1.4em * 6 + 18px); resize: none; overflow-y: auto; line-height: 1.4; }
/* Umbruch erlaubt: bei 360 px passen „Sprechen“, „Pflicht-Info“ und „Senden“ (Leitung) nicht in eine Zeile.
   „Senden“ steht dann rechts in der zweiten Zeile, immer mit Text. */
.kn-komponist-fuss { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); min-width: 0; }
.kn-fuss-platz { flex: 1 1 0; min-width: 0; }
.kn-komponist-fuss > .k.primaer { margin-left: auto; }
.kn-komponist .k.primaer kbd { opacity: 1; }
.kn-hinweis { margin: 0; color: var(--gelb); font: 500 var(--fs-13)/1.35 var(--sans); }
.kn-hinweis:empty { display: none; }
.kn-band-netz, .kn-pflicht-hinweis { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin: 0; font-size: var(--fs-13); color: var(--fg); }
.kn-pflicht-hinweis { padding: var(--s2); border: 1px solid var(--rot); border-radius: var(--r2); background: var(--rot-hg); }
.kn-pflicht-hinweis svg.i { color: var(--rot); }
.kn-pflicht-chip[aria-pressed="true"] { background: var(--rot-hg); border-color: var(--rot); color: var(--rot); }
.kn-komponist.kn-aus { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); color: var(--mut); }
.kn-komponist.kn-aus p { margin: 0; flex: 1 1 220px; }
/* @-Vorschläge (Combobox) */
.kn-vs { position: absolute; z-index: 8; left: var(--s3); right: var(--s3); bottom: calc(100% - 4px); max-height: 264px; overflow-y: auto; margin: 0; padding: var(--s1); list-style: none; background: var(--sheet); border: 1px solid var(--linie2); border-radius: var(--r2); }
.kn-vs li { display: flex; align-items: center; gap: var(--s2); min-height: var(--ziel-min); padding: 0 var(--s2); border-radius: var(--r1); color: var(--fg); cursor: pointer; }
.kn-vs li small { margin-left: auto; color: var(--mut2); font: 400 var(--fs-12)/1 var(--wert-schrift, var(--mono)); }
.kn-vs li[aria-selected="true"] { background: var(--flaeche3); outline: 1px solid var(--fg); outline-offset: -1px; }
@media (hover: hover) { .kn-vs li:hover { background: var(--flaeche2); } }

/* ══ Pflicht-Band (Start, Mein Tag) ══ */
/* Pflicht-Info offen (Signalfarben 11.11.): Etikett rot voll (kanal.js), Rahmen 2 px --rot-voll, Fläche bleibt getönt, damit Text und „Lesen“ ruhig lesbar bleiben */
.kn-band { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); padding: calc(var(--s2) - 2px) calc(var(--s3) - 2px); border: 2px solid var(--rot-voll); border-radius: var(--r2); background: var(--rot-hg); color: var(--fg); min-width: 0; }
.kn-band-kanal { font: 600 var(--fs-13)/1.2 var(--etikett-schrift, var(--futura)); letter-spacing: calc(.06em * var(--sperrung, 1)); text-transform: var(--etikett-schreibung, uppercase); color: var(--fg); }
.kn-band-text { flex: 1 1 200px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kn-band .k { background: var(--flaeche); }
.kn-band-mehr { color: var(--fg); font-size: var(--fs-13); text-decoration: underline; text-underline-offset: 3px; }

/* ══ Feed (Start, Mein Tag) ══ */
.kn-feed { display: flex; flex-direction: column; gap: var(--s2); min-width: 0; padding: var(--s3) var(--s4); background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r); }
.kn-feed-titel { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.kn-feed-titel h2 { margin: 0; font: 600 var(--fs-13)/1.2 var(--etikett-schrift, var(--futura)); letter-spacing: calc(.1em * var(--sperrung, 1)); text-transform: var(--etikett-schreibung, uppercase); color: var(--mut); }
.kn-feed-liste { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--linie); border: 1px solid var(--linie); border-radius: var(--r2); overflow: hidden; }
.kn-feed-zeile { display: flex; align-items: center; gap: var(--s2); padding: 0 var(--s2) 0 0; background: var(--flaeche); min-width: 0; }
.kn-feed-zeile.kn-kante { border-radius: 0; }
.kn-feed-link { flex: 1 1 auto; display: grid; gap: 2px; min-width: 0; min-height: 52px; padding: var(--s2) var(--s3); color: var(--fg); text-decoration: none; }
.kn-feed-link:focus-visible { outline: var(--fokus-breite) solid var(--fokus); outline-offset: -2px; }
.kn-feed-kopf { display: flex; align-items: center; gap: var(--s2); min-width: 0; font-size: var(--fs-13); }
.kn-feed-kopf b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.kn-feed-kopf time { margin-left: auto; color: var(--mut2); font-size: var(--fs-12); white-space: nowrap; }
.kn-feed-kopf .kn-k-icon { width: 18px; height: 18px; }
.kn-feed-kopf .kn-k-icon svg.i { width: 16px; height: 16px; }
.kn-feed-text { color: var(--mut); font-size: var(--fs-14); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kn-feed-leer { display: flex; align-items: center; gap: var(--s2); margin: 0; color: var(--mut); }
.kn-feed-fuss a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--fg); font: 600 var(--fs-13)/1 var(--sans); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--linie-ui); }
.kn-feed-fuss svg.i { width: 16px; height: 16px; }
@media (hover: hover) { .kn-feed-link:hover { background: var(--flaeche2); } }

/* ══ Blätter: Faden, Mehr, Kanal, Pflicht, Aufgabe, Direkt ══ */
.kn-faden-blatt { display: flex; flex-direction: column; min-height: 100%; }
.kn-faden-blatt .kn-liste { flex: 1 1 auto; }
.kn-faden-blatt .kn-komponist { position: sticky; bottom: 0; z-index: 4; margin-top: auto; background: var(--sheet); border-top-color: var(--linie2); }
.kn-sheet { display: grid; gap: var(--s4); }
.kn-sheet-abschnitt { display: grid; gap: var(--s2); }
.kn-sheet-abschnitt p { margin: 0; }
.kn-sheet-abschnitt > p:first-of-type svg.i { vertical-align: -3px; }
.kn-zitat { margin: 0; padding: var(--s2) var(--s3); border-left: 2px solid var(--linie-ui); color: var(--mut); font: 400 var(--fs-14)/1.45 var(--sans); white-space: pre-wrap; overflow-wrap: break-word; }
.kn-sheet-liste { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--linie); }
.kn-sheet-zeile { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: var(--s3); width: 100%; min-height: var(--ziel); padding: 0 var(--s2); border-bottom: 1px solid var(--linie); color: var(--fg); font: 500 var(--fs-15)/1.2 var(--sans); cursor: pointer; }
.kn-sheet-zeile svg.i { width: 20px; height: 20px; color: var(--mut); }
.kn-sheet-zeile.kn-gefahr, .kn-sheet-zeile.kn-gefahr svg.i { color: var(--rot); }
.kn-sheet-zeile:focus-visible { outline: var(--fokus-breite) solid var(--fokus); outline-offset: -2px; }
@media (hover: hover) { .kn-sheet-zeile:hover { background: var(--flaeche2); } }
.kn-sheet-reaktionen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
.kn-leute { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.kn-leute li { display: flex; align-items: center; gap: var(--s2); min-height: 40px; border-bottom: 1px solid var(--linie); }
.kn-leute li time { margin-left: auto; color: var(--mut2); font-size: var(--fs-13); white-space: nowrap; }
.kn-leute-name { display: grid; gap: 2px; min-width: 0; padding: 6px 0; }
.kn-leute-name small { font-size: var(--fs-12); line-height: 1.3; }
.kn-leute .etikett { flex: none; }
.kn-pflicht-voll .kn-text { font-size: var(--fs-17); }
.kn-pflicht-ende { height: 1px; }
.kn-pflicht-knopf { position: sticky; bottom: 0; padding: var(--s2) 0; background: var(--sheet); }
.kn-form { gap: var(--s3); }
.kn-form .feld-label { gap: 6px; }
.kn-hinweis-text { display: flex; gap: var(--s2); align-items: flex-start; margin: 0; color: var(--mut); font-size: var(--fs-13); }
.kn-hinweis-text svg.i { color: var(--blau); margin-top: 1px; }
.kn-wahl-liste { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--linie); max-height: min(calc(50vh / var(--zoom, 1)), 420px); overflow-y: auto; }
.kn-wahl-liste > .kn-mut { padding: var(--s3) 0; }
.kn-wahl { display: flex; align-items: center; gap: var(--s3); min-height: var(--ziel); padding: 0 var(--s1); border-bottom: 1px solid var(--linie); cursor: pointer; }
.kn-wahl input { width: 22px; height: 22px; accent-color: var(--fg); flex: none; }
.kn-wahl small { margin-left: auto; color: var(--mut2); font-size: var(--fs-12); }
.kn-wahl:has(input:checked) { background: var(--flaeche3); }
.kn-wahl:has(input:disabled) { color: var(--mut); cursor: not-allowed; }

/* ══ Fotos (L.2) ══ */
/* In der Nachricht: 1 Foto volle Breite, sonst 2 Spalten. Seitenverhältnis kommt aus breite/hoehe (inline), kein Springen. */
.kn-fotos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; align-items: start; max-width: 440px; }
.kn-fotos[data-anzahl="1"] { grid-template-columns: minmax(0, 1fr); max-width: 360px; }
.kn-foto { all: unset; box-sizing: border-box; display: block; width: 100%; max-height: 240px; overflow: hidden; border: 1px solid var(--linie); border-radius: var(--r2); background: var(--flaeche2); cursor: zoom-in; }
.kn-fotos[data-anzahl="1"] .kn-foto { max-height: 360px; }
.kn-foto img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kn-foto img:not([src]) { visibility: hidden; }
.kn-foto.kn-foto-fehlt { border-style: dashed; border-color: var(--linie-ui); }
.kn-foto:focus-visible { outline: var(--fokus-breite) solid var(--fokus); outline-offset: 2px; }
@media (hover: hover) { .kn-foto:hover { border-color: var(--linie-ui); } }

/* Im Komponisten: Vorschaubilder mit Fortschritt, Entfernen, Erneut versuchen */
.kn-fe-liste { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0; padding: 0; list-style: none; }
.kn-fe-liste[hidden] { display: none; }
.kn-fe { position: relative; display: flex; flex-direction: column; gap: 4px; width: 88px; min-width: 0; }
.kn-fe.kn-fe-fehler { width: 152px; }
.kn-fe-bild { position: relative; display: block; width: 88px; height: 88px; overflow: hidden; border: 1px solid var(--linie-ui); border-radius: var(--r2); background: var(--flaeche2); }
.kn-fe-fehler .kn-fe-bild { border-color: var(--rot); }
.kn-fe-bild img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kn-fe-platz { display: grid; place-items: center; width: 100%; height: 100%; color: var(--mut); }
.kn-fe-zustand { position: absolute; left: 6px; right: 6px; bottom: 6px; height: 4px; overflow: hidden; border-radius: 2px; background: var(--flaeche3); }
.kn-fe-balken { display: block; height: 100%; width: 0; background: var(--blau); transition: width var(--t-2) var(--ease); }
.kn-fe-weg { all: unset; box-sizing: border-box; position: absolute; top: 4px; left: 52px; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--linie-ui); border-radius: var(--r2); background: var(--sheet); color: var(--fg); cursor: pointer; }
.kn-fe-weg svg.i { width: 16px; height: 16px; }
.kn-fe-weg:focus-visible { outline: var(--fokus-breite) solid var(--fokus); outline-offset: 1px; }
.kn-fe-fehlertext { display: flex; align-items: flex-start; gap: 4px; color: var(--rot); font: 500 var(--fs-12)/1.3 var(--sans); }
.kn-fe-fehlertext svg.i { width: 14px; height: 14px; flex: none; margin-top: 1px; }
.kn-fe-neu { align-self: flex-start; }
.kn-foto-hinweis { margin: 0; color: var(--mut); font: 400 var(--fs-13)/1.35 var(--sans); }
.kn-foto-hinweis:empty { display: none; }
@media (hover: hover) { .kn-fe-weg:hover { border-color: var(--fg); } }

/* Vollbild-Blatt: am Rechner breit, am Handy ganze Höhe */
.blatt.kn-foto-blatt { width: min(1100px, 100%); }
.kn-foto-voll { display: grid; gap: var(--s3); }
.kn-foto-gross { margin: 0; width: 100%; max-height: calc((100dvh - 200px) / var(--zoom, 1)); overflow: hidden; border: 1px solid var(--linie); border-radius: var(--r2); background: var(--flaeche2); }
.kn-foto-gross img { display: block; width: 100%; height: 100%; object-fit: contain; }
.kn-foto-gross img:not([src]) { visibility: hidden; }
.kn-foto-nav { align-items: center; }
@media (max-width: 860px) {
  .blatt.kn-foto-blatt { max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .kn-foto-gross { max-height: calc((100dvh - 220px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) / var(--zoom, 1)); }
}

/* ══ Touch: Ziele mind. 44 px ══ */
@media (pointer: coarse) {
  .kn-reaktion, .kn-faden-knopf, .kn-link, .kn-band-mehr, .kn-feed-fuss a { min-height: var(--ziel-min); }
  .kn-menue button { min-height: var(--ziel-min); }
  .kn-neu-unten { min-height: var(--ziel-min); }
  .kn-fe-weg { width: var(--ziel-min); height: var(--ziel-min); top: 0; left: 44px; }
  .kn-fe-neu { min-height: var(--ziel-min); }
}
@media (prefers-reduced-motion: reduce) { .kn-skelett-zeile { animation: none; } }

/* ══ Sonne 2 (js/Sonne2_Spezifikation.md) ══
   Kürzel (.kn-kuerzel) bleiben groß (§3.3). Datumstrenner, Kanalnamen, Feed-Titel normal geschrieben über Tokens.
   Nachrichtentext 14/20 am Rechner, Feed-Titel als Kartentitel 15 px 600. */
:root.sonne .kn-kopf { min-height: 48px; }
:root.sonne .kn-kopf-titel h2 { font-size: var(--titel-karte, 15px); line-height: 20px; }
:root.sonne .kn-kopf-titel .kn-mut, :root.sonne .kn-sichtbar { font-size: var(--text-meta, 12px); }
:root.sonne .kn-trenner { font: 500 var(--text-meta, 12px)/16px var(--etikett-schrift, var(--sans)); color: var(--mut2); }
:root.sonne .kn-trenner-neu { color: var(--blau); font-weight: 600; }
:root.sonne .kn-still { font-size: 14px; }
:root.sonne .kn-n { padding: 6px var(--s2); }
:root.sonne .kn-n.kn-folge { padding-top: 2px; }
:root.sonne .kn-name { font-size: 13px; }
:root.sonne .kn-kanal-name { font: 500 var(--text-meta, 12px)/16px var(--etikett-schrift, var(--sans)); color: var(--mut2); }
:root.sonne .kn-kante { border-left-width: 3px; }
:root.sonne .kn-reaktion { font-size: var(--text-meta, 12px); }
:root.sonne .kn-faden-knopf { font-size: var(--text-meta, 12px); }
:root.sonne .kn-system { font-size: var(--text-meta, 12px); }
:root.sonne .kn-band-kanal { font: 600 var(--text-meta, 12px)/16px var(--etikett-schrift, var(--sans)); }
:root.sonne .kn-band-text { font-size: 13px; }
:root.sonne .kn-band-mehr { font-size: var(--text-meta, 12px); }
:root.sonne .kn-feed { gap: 6px; padding: 8px 14px 10px; }
:root.sonne .kn-feed-titel { min-height: 32px; }
:root.sonne .kn-feed-titel h2 { font: 600 var(--titel-karte, 15px)/20px var(--sans); color: var(--fg); }
:root.sonne .kn-feed-link { gap: 1px; padding: 5px 12px; }
:root.sonne .kn-feed-kopf { font-size: 13px; }
:root.sonne .kn-feed-text { font-size: var(--text-meta, 12px); line-height: 16px; }
:root.sonne .kn-feed-fuss a { font-size: 13px; }
:root.sonne .kn-zitat { font-size: 13px; }
:root.sonne .kn-sheet-zeile { font-size: 14px; }
:root.sonne .kn-pflicht-voll .kn-text { font-size: 16px; }
:root.sonne .kn-hinweis, :root.sonne .kn-band-netz, :root.sonne .kn-pflicht-hinweis, :root.sonne .kn-hinweis-text, :root.sonne .kn-foto-hinweis { font-size: var(--text-meta, 12px); }
:root.sonne :is(.kn-feed, .kn-band) { border-radius: var(--r); }
@media (min-width: 861px) {
  :root.sonne .kn-text { font-size: 14px; line-height: 20px; }
}
@media (pointer: fine) {
  :root.sonne .kn-reaktion { height: 26px; padding: 0 8px; }
  :root.sonne .kn-reaktion.gross { height: 36px; font-size: 14px; }
  :root.sonne .kn-feed-link { min-height: var(--zeile-h2, 48px); }
  :root.sonne .kn-menue button { min-height: 32px; font-size: 13px; }
  :root.sonne .kn-leute li { min-height: 36px; }
  :root.sonne .kn-neu-unten { min-height: 32px; font-size: 13px; }
}