@font-face { font-family: "Mona Sans"; src: url("mona-sans-variable.ttf") format("truetype"); font-weight: 200 900; font-stretch: 75% 125%; }

:root { --unten: env(safe-area-inset-bottom, 0px); --oben: env(safe-area-inset-top, 0px); }
/* Farben, Maße und Schrift: tokens.css (erzeugt aus design/tokens.json) */

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--grund); color: var(--text); }
/* Die Seite selbst federt nie, nur die Inhaltsbereiche darin scrollen. overscroll-behavior wirkt auf den Viewport nur am
   html-Element, am body ignorieren Safari und Chrome es. Federte die Seite (iOS: am Ende des Verlaufs oder beim Wischen über
   Dock, Eingabe oder Leiste), zog sie die feste Hülle samt Leiste unten mit, der Chat blieb stehen (Max 05.11.). */
html { overscroll-behavior: none; }
body { font: 450 15px/1.45 "Mona Sans", -apple-system, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
textarea, input { font: inherit; color: var(--text); }
[hidden] { display: none !important; }

/* Fest auf den ganzen Bildschirm: 100dvh ist in installierten Apps (iOS, Android) teils kürzer als der Bildschirm,
   darunter blieb ein Balken in der Startfarbe. Die Leiste unten sitzt so ganz unten, ihr Polster deckt den Home-Balken. */
#app { display: flex; position: fixed; inset: 0; }
/* Installierte App auf iOS 26 (Statusleiste black-translucent, viewport-fit=cover): Solange die Seite kürzer als der Bildschirm
   ist, macht WebKit den Viewport um die Höhe der Statusleiste zu kurz (WebKit-Bug 301108). #app endet dann über dem Home-Balken,
   darunter blieb ein leerer Streifen unter der Leiste (Max 05.11.). Ist die Seite mindestens bildschirmhoch, bekommt sie den
   ganzen Viewport. min() mit 100lvh deckelt, damit nichts überhängt, wo der Viewport schon stimmt oder oben kein Abstand ist. */
@media (display-mode: standalone) { html { min-height: min(100lvh, calc(100% + var(--oben))); } }
#haupt { flex: 1; min-width: 0; display: flex; flex-direction: column; height: 100%; max-width: 760px; margin: 0 auto; }
#seite, #spalte { display: none; }
#kopf { display: flex; align-items: center; gap: 10px; padding: calc(var(--oben) + 10px) 16px 10px; border-bottom: 1px solid var(--linie); }
.marke { font-weight: var(--s-wortmarke-gewicht); letter-spacing: -.56px; font-size: 16px; }
#wer { flex: 1; text-align: right; font-size: 12.5px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.verbindung { width: 8px; height: 8px; border-radius: 50%; background: var(--text3); flex: none; }
.verbindung.an { background: var(--gut); }
.verbindung.aus { background: var(--signal); }

/* Jeder Inhaltsbereich hält seine Wischgeste (contain): am Ende federt er selbst, statt die Geste an die Seite weiterzugeben */
#inhalt { flex: 1; overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; }
/* Kopf und Leiste scrollen nie: keine Wischgeste von dort an die Seite (Tippen bleibt; Sperre in festhalten.js) */
#kopf, #tabs { touch-action: none; }
#tabs { display: flex; border-top: 1px solid var(--linie); padding-bottom: var(--unten); background: var(--grund); }
#tabs button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 6px; color: var(--text3); font-size: 10.5px; font-weight: 560; position: relative; }
#tabs button.an { color: var(--akzent-text); }
#tabs svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#zahl { position: absolute; top: 4px; left: calc(50% + 8px); background: var(--akzent); color: var(--auf-akzent); font-size: 10px; font-weight: var(--s-zaehler-gewicht); min-width: 16px; height: 16px; border-radius: var(--r-pille); padding: 0 4px; line-height: 16px; }
#zahl:empty { display: none; }

.versal { font-size: var(--s-hud-groesse); font-weight: var(--s-hud-gewicht); letter-spacing: var(--s-hud-laufweite); text-transform: uppercase; color: var(--text3); }
.leer { color: var(--text3); font-size: 13.5px; padding: 28px 16px; text-align: center; }
.fehler { margin: 12px 16px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--signal) 12%, transparent); color: var(--signal); font-size: 13px; }

/* Text */
.md p { margin: 0 0 8px; } .md p:last-child { margin-bottom: 0; }
.md ul { margin: 4px 0 8px; padding-left: 18px; } .md li { margin: 2px 0; }
.md h1, .md h2, .md h3 { font-size: 15px; margin: 12px 0 4px; font-weight: 640; }
.md code { font: 12.5px ui-monospace, Menlo, monospace; background: var(--flaeche2); padding: 1px 4px; border-radius: 4px; }
.md a { color: var(--akzent-text); }

/* Chat */
#inhalt:has(> .chat) { display: flex; flex-direction: column; overflow: hidden; }
.chat { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.verlauf { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; padding: 12px 14px 6px; display: flex; flex-direction: column; gap: 10px; }
.mehr { align-self: center; font-size: 12.5px; color: var(--akzent-text); padding: 6px 10px; }
.nachricht { max-width: 88%; }
.nachricht .wer { font-size: 11.5px; color: var(--text3); margin: 0 0 3px 2px; }
.nachricht .wer .nz { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 1px 7px; border-radius: 99px;
  color: var(--signal); background: color-mix(in srgb, var(--signal) 12%, transparent); font-weight: 540; font-size: 10.5px; }
.nachricht .wer .nz svg { width: 11px; height: 11px; }
.nachricht .wer .wartet-marke { margin-left: 8px; padding: 1px 7px; border-radius: 99px; border: 1px solid var(--linie); font-size: 10.5px; font-weight: 540; }
.nachricht .blase { padding: 9px 12px; border-radius: 16px; background: var(--flaeche); border: 1px solid var(--linie); overflow-wrap: anywhere; }
.nachricht.mensch { align-self: flex-end; }
.nachricht.mensch .blase { background: var(--akzent); color: var(--auf-akzent); border-color: transparent; }
.nachricht.mensch .blase a { color: inherit; }
.nachricht.mensch .wer { text-align: right; margin-right: 2px; }
.nachricht.system { align-self: stretch; max-width: none; }
.nachricht.system .blase { background: transparent; border-style: dashed; font-size: 13px; color: var(--text2); }
.nachricht.schreibt .blase::after { content: " ▍"; color: var(--akzent-text); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0; } }
.tag-trenner { align-self: center; font-size: 11.5px; color: var(--text3); margin: 6px 0 0; }
.fragen { margin-top: 6px; display: flex; flex-direction: column; gap: 8px; }
.frage { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 14px; padding: 10px 12px; }
.frage .titel { font-weight: 600; font-size: 13.5px; margin-bottom: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--linie); background: var(--grund); border-radius: 999px; padding: 6px 11px; font-size: 13px; text-align: left; }
.chip.empfohlen { border-color: var(--akzent-text); }
.chip.gewaehlt { background: var(--akzent); color: var(--auf-akzent); border-color: transparent; }
.chip:disabled { opacity: .5; }
.punkt { width: 6px; height: 6px; border-radius: 50%; background: var(--akzent-text); animation: blink 1.2s infinite; }
.eingabe { display: flex; gap: 8px; align-items: flex-end; padding: 8px 12px 10px; border-top: 1px solid var(--linie); }
.eingabe textarea { flex: 1; resize: none; border: 1px solid var(--linie); background: var(--flaeche); border-radius: 18px; padding: 9px 14px; max-height: 140px; outline: none; font-size: 16px; }
.eingabe button { width: 38px; height: 38px; border-radius: 50%; background: var(--akzent); color: var(--auf-akzent); display: grid; place-items: center; flex: none; }
.eingabe button:disabled { opacity: .4; }
.eingabe .mikro { background: var(--flaeche2); color: var(--text2); }
.eingabe.leer:not(.neben) .los, .eingabe:not(.leer) .mikro, .eingabe.neben .mikro { display: none; }
.aufnahme { align-items: center; }
.aufnahme .weg { background: none; color: var(--text3); }
.aufnahme .rot { width: 10px; height: 10px; border-radius: 50%; background: var(--k-aufnahme); animation: aufnahme-puls 1.2s ease-in-out infinite; flex: none; }
.aufnahme .zeit { flex: 1; font-variant-numeric: tabular-nums; color: var(--text2); font-size: 15px; }
@keyframes aufnahme-puls { 50% { opacity: .35; } }
.blase .sprache { display: flex; align-items: center; gap: 2px; height: 22px; margin-bottom: 6px; width: 150px; }
.blase .sprache i { display: block; width: 2.5px; border-radius: 2px; background: currentColor; opacity: .55; }
.eingabe svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Freigaben */
.liste { padding: 14px 14px 30px; display: flex; flex-direction: column; gap: 12px; }
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 16px; padding: 14px; }
.karte .von { font-size: 12px; color: var(--text3); display: flex; justify-content: space-between; }
.karte h2 { font-size: 18px; font-weight: 580; letter-spacing: -.3px; margin: 6px 0 6px; line-height: 1.25; }
.karte .kontext { color: var(--text2); font-size: 14px; }
.felder { margin: 10px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 13px; }
.felder dt { color: var(--text3); } .felder dd { margin: 0; overflow-wrap: anywhere; }
.felder code.befehl { font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; background: var(--flaeche2); padding: 6px 8px; border-radius: 6px; display: block; }
.erklaerung { margin-top: 10px; font-size: 14px; }
.optionen { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.option { display: flex; gap: 10px; align-items: flex-start; text-align: left; border: 1px solid var(--linie); border-radius: 12px; padding: 9px 11px; background: var(--grund); font-size: 14px; }
.option .id { font-weight: 700; color: var(--akzent-text); }
.option.gewaehlt { border-color: var(--akzent-text); box-shadow: inset 0 0 0 1px var(--akzent-text); }
.option .empf { font-size: 11px; color: var(--gut); font-weight: 600; margin-left: 4px; }
.nach { margin-top: 12px; font-size: 12.5px; color: var(--text3); }
.knoepfe { display: flex; gap: 8px; margin-top: 12px; }
.knopf { flex: 1; padding: 11px 0; border-radius: 12px; font-weight: 600; font-size: 14.5px; border: 1px solid var(--linie); background: var(--grund); }
.knopf.haupt { background: var(--akzent); color: var(--auf-akzent); border-color: transparent; flex: 1.4; }
.knopf:disabled { opacity: .5; }
.entschieden { display: flex; justify-content: space-between; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--linie); font-size: 13.5px; }
.entschieden span:last-child { color: var(--text3); white-space: nowrap; }

/* Feed */
.feed { padding: 6px 14px 30px; }
.tag-kopf { display: flex; align-items: baseline; gap: 8px; margin: 22px 2px 10px; }
.tag-kopf b { font-size: 17px; font-weight: 620; letter-spacing: -.3px; }
.tag-kopf span { font-size: 12.5px; color: var(--text3); }
.schiene { position: relative; padding-left: 74px; }
.eintrag { position: relative; padding: 0 0 16px 4px; }
.eintrag::before { content: ""; position: absolute; left: -20px; top: 8px; bottom: -8px; width: 1px; background: var(--linie); }
.eintrag:last-child::before { display: none; }
.eintrag .uhr { position: absolute; left: -74px; width: 40px; text-align: right; top: 3px; font-size: 11px; color: var(--text3); font-variant-numeric: tabular-nums; font-weight: 560; }
.eintrag .knoten { position: absolute; left: -30px; top: 1px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--grund); }
.eintrag .knoten i { position: absolute; inset: 0; border-radius: 50%; background: currentColor; opacity: .16; }
.eintrag .knoten svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; position: relative; }
.eintrag .art { font-size: 9.5px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; font-stretch: 125%; }
.eintrag .titel { font-weight: 560; font-size: 14.5px; line-height: 1.3; margin-top: 1px; }
.eintrag .zeile { font-size: 12.5px; color: var(--text3); margin-top: 2px; }
.eintrag.klick { cursor: pointer; }
.eintrag ul { margin: 4px 0 0; padding-left: 16px; font-size: 13.5px; color: var(--text2); }
.termine { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 16px; padding: 4px 12px; margin-top: 12px; }
.termin { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--linie); align-items: flex-start; }
.termin:last-child { border-bottom: 0; }
.termin .uhr { width: 40px; font-size: 12px; font-weight: 600; color: var(--text3); font-variant-numeric: tabular-nums; padding-top: 1px; }
.termin.laeuft .uhr { color: var(--akzent-text); }
.termin.vorbei { opacity: .5; }
.termin .titel { font-size: 14px; font-weight: 560; }
.termin .zeile { font-size: 12px; color: var(--text3); }
.vorb { margin-top: 5px; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--akzent-text); background: color-mix(in srgb, var(--akzent) 12%, transparent); border-radius: 999px; padding: 3px 9px; }
.abschnitt { margin: 18px 2px 0; display: block; }
.aufklappen { color: var(--akzent-text); padding: 4px 0; }
.vorb svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Blatt (Vorbereitung, Notiz, PIN) */
#blatt { position: fixed; inset: 0; z-index: 10; display: flex; align-items: flex-end; justify-content: center; }
.blatt-hg { position: absolute; inset: 0; background: var(--schatten-abdunkeln); }
.blatt-inhalt { position: relative; background: var(--grund); width: 100%; max-width: 760px; max-height: 88dvh; overflow-y: auto; overscroll-behavior-y: contain; border-radius: 18px 18px 0 0; padding: 18px 18px calc(var(--unten) + 18px); }
.blatt-inhalt h2 { font-size: 19px; margin: 6px 0 4px; font-weight: 580; letter-spacing: -.3px; }
.blatt-inhalt .zeile { color: var(--text3); font-size: 13px; margin-bottom: 12px; }
.zu { position: sticky; top: 0; float: right; font-size: 13px; color: var(--akzent-text); font-weight: 600; padding: 2px 0 8px 12px; }
.pin { display: flex; flex-direction: column; gap: 12px; }
.pin input, .feld { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--linie); background: var(--flaeche); font-size: 18px; outline: none; }
.pin input { letter-spacing: 8px; text-align: center; font-size: 24px; }

/* Kopplung */
.koppeln { padding: 40px 22px; display: flex; flex-direction: column; gap: 12px; max-width: 420px; margin: 0 auto; }
.koppeln h1 { font-size: 24px; letter-spacing: -.5px; margin: 0 0 4px; font-weight: 600; }
.koppeln p { color: var(--text2); margin: 0 0 8px; font-size: 14px; }
.koppeln label { font-size: 12px; color: var(--text3); margin-bottom: -6px; }

/* Kalender */
.kal { padding: 6px 14px 30px; }
.kal-kopf { display: flex; align-items: center; gap: 8px; margin: 12px 0 10px; }
.kal-kopf > div { flex: 1; display: flex; flex-direction: column; }
.kal-kopf b { font-size: 17px; font-weight: 620; letter-spacing: -.3px; }
.kal-kopf span { font-size: 12.5px; color: var(--text3); }
.kal-kopf button { min-width: 36px; height: 34px; border-radius: 10px; border: 1px solid var(--linie); font-size: 18px; color: var(--text2); }
.kal-kopf .heute { font-size: 13px; font-weight: 600; padding: 0 12px; }
.kal-kopf .heute.an { background: var(--flaeche2); border-color: transparent; color: var(--text); }
.tage { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.tage button { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 7px 0 5px; border-radius: 12px; color: var(--text2); }
.tage span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .8px; color: var(--text3); }
.tage b { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tage i { font-style: normal; font-size: 9px; line-height: 8px; height: 8px; color: var(--akzent-text); letter-spacing: 1px; }
.tage .heute b { color: var(--akzent-text); }
.tage .an { background: var(--akzent); color: var(--auf-akzent); }
.tage .an span, .tage .an b, .tage .an i { color: var(--auf-akzent); }
button.termin { width: 100%; text-align: left; }
.termin.abgesagt .titel { text-decoration: line-through; color: var(--text3); }
.termin.leise .titel { color: var(--text2); }
.knopf.breit { width: 100%; margin-top: 4px; }
.auto { margin-top: 18px; border: 1px solid var(--linie); background: var(--flaeche); border-radius: 14px; padding: 12px; }
.auto-kopf { display: flex; align-items: center; gap: 11px; }
.auto-kopf i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--akzent-text); background: color-mix(in srgb, var(--akzent) 14%, transparent); }
.auto.aus .auto-kopf i { color: var(--text3); background: var(--flaeche2); }
.auto-kopf svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.auto-kopf > div { flex: 1; display: flex; flex-direction: column; }
.auto-kopf b { font-size: 14px; font-weight: 600; }
.auto-kopf span { font-size: 12px; color: var(--text3); }
.auto-kopf button { font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: var(--flaeche2); color: var(--text2); }
.auto.aus .auto-kopf button { background: color-mix(in srgb, var(--akzent) 12%, transparent); color: var(--akzent-text); }
.auto-wahl { margin-top: 10px; border-top: 1px solid var(--linie); padding-top: 4px; display: flex; flex-direction: column; }
.auto-wahl > button, .auto-wort { display: flex; flex-direction: column; text-align: left; padding: 10px 2px; border-bottom: 1px solid var(--linie); }
.auto-wort { border-bottom: 0; }
.auto-wahl b { font-size: 14px; font-weight: 560; }
.auto-wahl span { font-size: 12px; color: var(--text3); margin-top: 2px; }
.auto-wort > div { display: flex; gap: 8px; margin-top: 6px; }
.auto-wort .feld { font-size: 15px; padding: 8px 11px; flex: 1; }
.auto-wort > div button { padding: 0 16px; border-radius: 12px; background: var(--akzent); color: var(--auf-akzent); font-weight: 600; font-size: 14px; }

/* Grundbausteine, Team- und Skills-Seiten stehen in team.css */
.segment { display: flex; gap: 4px; margin: 12px 16px 0; padding: 3px; background: var(--flaeche2); border-radius: 11px; }
.segment button { flex: 1; padding: 7px 0; border-radius: 8px; font-size: 13.5px; font-weight: 580; color: var(--text2); }
.segment button.an { background: var(--grund); color: var(--text); box-shadow: 0 1px 2px var(--schatten-knopf); }
.avatar { display: inline-flex; flex: none; border-radius: var(--r-avatar-anteil); overflow: hidden; align-items: center; justify-content: center; }
.avatar svg { width: 100%; height: 100%; display: block; }
.avatar { outline: 1px solid var(--linie); outline-offset: -1px; }
.avatar.mono { background: var(--flaeche2); color: var(--text2); font-weight: 640; }
.avatare { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; margin: 10px 0; }
.avatare button { border-radius: 50%; padding: 3px; border: 2px solid transparent; justify-self: center; }
.avatare button.an { border-color: var(--akzent-text); }
.feld.klein { font-size: 15px; padding: 9px 12px; }
.feld.text { font-size: 15px; resize: vertical; }
.feld.code { font: 12.5px/1.5 ui-monospace, Menlo, monospace; resize: vertical; }
.hinweis { color: var(--text3); font-size: 12.5px; margin: 6px 0; }
.auftrag { font-size: 13.5px; padding: 6px 0; border-bottom: 1px solid var(--linie); display: flex; justify-content: space-between; gap: 8px; }
.auftrag span { color: var(--text3); }
.auftrag.laeuft { color: var(--akzent-text); }
.leer.klein { padding: 8px 0; text-align: left; }
.chat-leiste { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px; border-bottom: 1px solid var(--linie); }
.chat-leiste button { display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--linie); font-size: 13px; white-space: nowrap; max-width: 220px; }
.chat-leiste button span:last-child { overflow: hidden; text-overflow: ellipsis; }
.chat-leiste button.an { background: var(--akzent); color: var(--auf-akzent); border-color: transparent; }
.neben-kopf { font-size: 12.5px; color: var(--text3); border: 1px dashed var(--linie); border-radius: 12px; padding: 8px 10px; display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.neben-kopf button { color: var(--akzent-text); font-weight: 600; white-space: nowrap; }

/* Einrichtungs-Assistent */
.assistent { padding: 28px 16px 40px; max-width: 560px; margin: 0 auto; }
.assistent h1 { font-size: 30px; font-weight: 460; letter-spacing: -.6px; margin: 0 0 6px; }
.assistent > .zeile { color: var(--text3); font-size: 14px; margin: 0 0 22px; }
.schritte { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.schritt { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 14px; overflow: hidden; }
.schritt.aktiv { border-color: var(--akzent); }
.schritt-kopf { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; text-align: left; font-size: 15px; color: var(--text); }
.schritt-kopf b { flex: 1; font-weight: 600; }
.schritt-kopf .klein { color: var(--text3); font-size: 12px; }
.schritt .marke { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--linie); flex: none; display: grid; place-items: center; }
.schritt.erledigt .marke { background: var(--gut); border-color: var(--gut); }
.schritt.erledigt .marke svg { width: 14px; height: 14px; stroke: var(--grund); stroke-width: 2.6; fill: none; }
.schritt.erledigt .schritt-kopf b, .schritt.uebersprungen .schritt-kopf b { color: var(--text3); }
.schritt-inhalt { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.schritt-inhalt > p { margin: 0; color: var(--text2); font-size: 14px; line-height: 1.45; }
.schritt-inhalt label { font-size: 12px; color: var(--text3); margin-bottom: -4px; }
.schritt-inhalt .fehler { margin: 0; }
.schritt-inhalt .anleitung { margin: 0; padding-left: 20px; color: var(--text2); font-size: 13.5px; line-height: 1.5; }
.schritt-fuss { display: flex; justify-content: flex-end; }
.schritt-fuss:empty { display: none; }
.assistent .knopf.leise, .schritt .knopf.leise { background: transparent; color: var(--text3); }
.assistent > .knopf + .knopf { margin-top: 8px; }
a.knopf { display: flex; align-items: center; justify-content: center; text-decoration: none; }

.anbindungen { display: grid; gap: 10px; margin-bottom: 14px; }
.anbindung { border: 1px solid var(--linie); border-radius: 12px; padding: 12px 14px; display: grid; gap: 8px; }
.anbindung .kopf { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.anbindung .thema { color: var(--text3); font-size: 13px; }
.anbindung .ist-verbunden { margin-left: auto; font-size: 12px; color: var(--akzent-text); font-weight: 600; }
.bilder { border-radius: 10px; background: var(--flaeche2); padding: 8px 12px; }
.bilder summary { cursor: pointer; font-weight: 600; font-size: 13.5px; color: var(--text); }
.bilder figure { margin: 10px 0 4px; }
.bilder img { display: block; width: 100%; height: auto; border-radius: 10px; }
.bilder figcaption { font-size: 12.5px; color: var(--text2); margin-top: 4px; }
.schritt-inhalt .anleitung li + li { margin-top: 6px; }
.geraetecode { font: 600 26px/1.2 ui-monospace, Menlo, monospace; letter-spacing: .12em; text-align: center; padding: 10px; border-radius: 10px; background: var(--flaeche2); user-select: all; }

/* PIN-Abfrage für ändernde Ops (über allem, auch über einem offenen Blatt) */
.pin-abfrage { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  background: var(--schatten-abdunkeln); padding: 16px; }
.pin-karte { background: var(--flaeche); color: inherit; border-radius: 14px; padding: 20px; width: 100%; max-width: 340px;
  box-shadow: 0 10px 40px var(--schatten-dialog); display: flex; flex-direction: column; gap: 12px; }
.pin-karte p { margin: 0; }
.pin-karte .knoepfe { display: flex; gap: 8px; justify-content: flex-end; }

/* ---------------------------------------------------------------- Seitenköpfe, Mehr, Anhänge, Mail (alle Größen) */
.seiten-kopf { padding: 18px 16px 6px; display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.seiten-kopf > div:first-child { flex: 1; min-width: 160px; }
.seiten-kopf h1 { margin: 0; font-size: 24px; font-weight: var(--s-titel-gewicht); letter-spacing: -.6px; }
@media (min-width: 900px) { .seiten-kopf h1 { font-size: var(--s-titel-groesse); letter-spacing: var(--s-titel-laufweite); } }
.seiten-kopf .unter { font-size: 12.5px; color: var(--text3); margin-top: 2px; }
.umschalter { display: flex; gap: 2px; padding: 3px; background: var(--flaeche2); border-radius: 999px; }
.umschalter button { padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 580; color: var(--text3); display: flex; gap: 6px; align-items: center; }
.umschalter button.an { background: var(--grund); color: var(--text); box-shadow: 0 1px 2px var(--schatten-knopf); }
.umschalter b { font-size: 10.5px; background: var(--akzent); color: var(--auf-akzent); border-radius: 8px; padding: 0 5px; line-height: 15px; }
.filter { display: flex; gap: 8px; padding: 6px 16px 10px; align-items: center; flex-wrap: wrap; }
.suche { flex: 1; min-width: 160px; max-width: 320px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--linie); background: var(--flaeche); font-size: 14px; outline: none; }
.chips.rollen { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.chips.rollen .chip { flex: none; white-space: nowrap; }
.chip .p { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; }
/* clear: der Schließen-Knopf oben rechts im Blatt ist gefloatet und hat die Liste sonst schmaler gemacht */
.mehr-liste { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; clear: both; width: 100%; }
.mehr-liste button { width: 100%; box-sizing: border-box; display: flex; align-items: center; gap: 12px; padding: 12px 6px; border-bottom: 1px solid var(--linie); font-size: 16px; text-align: left; }
.mehr-liste svg { width: 20px; height: 20px; fill: none; stroke: var(--text2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mehr-liste button span { flex: 1; }
.mehr-liste button i { font-style: normal; color: var(--text3); font-size: 13px; }
.mehr-liste .gruppe-titel { font-size: var(--s-hud-groesse); font-weight: var(--s-hud-gewicht); letter-spacing: var(--s-hud-laufweite); text-transform: uppercase; color: var(--text3); padding: 16px 6px 2px; }
/* Einstellungen (FaehigkeitenView.swift: Einstellungen) */
.einstellungen { display: flex; flex-direction: column; gap: 24px; clear: both; }
.einstellungen h2 { margin: 0; font-size: 22px; font-weight: 420; letter-spacing: -.6px; }
.einstellungen section { display: flex; flex-direction: column; gap: 12px; }
.einstellungen .versal { font-size: var(--s-hud-groesse); font-weight: var(--s-hud-gewicht); letter-spacing: var(--s-hud-laufweite); }
.e-zeile { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.e-zeile .verbindung { width: var(--m-verbindung-punkt); height: var(--m-verbindung-punkt); }
.pillen { display: flex; gap: 6px; flex-wrap: wrap; }
.pille-wahl { font-size: 13px; font-weight: 560; padding: 7px 14px; border-radius: var(--r-pille); background: var(--flaeche2); color: var(--text2); }
.pille-wahl.an { background: var(--akzent); color: var(--auf-akzent); }
.e-knoepfe { display: flex; gap: 8px; flex-wrap: wrap; }
.e-knoepfe .knopf { flex: 1 1 180px; }
/* Mitteilungen (Mitteilungen.swift: SchalterGruppe, SchalterZeile, ZeitFeld; Schalter wie Toggle .switch, klein) */
.schalter-gruppe { display: flex; flex-direction: column; border-radius: var(--r-karte); background: var(--flaeche); border: 1px solid var(--linie); }
.schalter-gruppe > * + * { border-top: 1px solid var(--linie); }
.schalter-zeile { display: flex; align-items: center; gap: 12px; padding: 9px 12px; min-height: 22px; cursor: pointer; }
.schalter-zeile.gesperrt { cursor: default; }
.schalter-zeile.gesperrt .sz-text { opacity: .55; }
.sz-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sz-text b { font-size: 13.5px; font-weight: 460; color: var(--text); }
.sz-text span { font-size: 12px; font-weight: 440; color: var(--text3); }
/* Maße wie der kleine Schalter von macOS 26: Bahn 43 × 20, Knopf als Kapsel 25 × 16 */
.schalter { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 43px; height: 20px; margin: 0; border-radius: var(--r-pille);
  background: var(--flaeche2); box-shadow: inset 0 0 0 1px var(--linie); cursor: pointer; transition: background .15s; }
.schalter::after { content: ""; position: absolute; top: 2px; left: 2px; width: 25px; height: 16px; border-radius: var(--r-pille); background: var(--k-weiss);
  box-shadow: 0 1px 2px var(--schatten-knopf); transition: transform .15s; }
.schalter:checked { background: var(--akzent); box-shadow: none; }
.schalter:checked::after { transform: translateX(14px); }
.schalter:disabled { opacity: .45; cursor: default; }
.ruhe-zeit { display: flex; align-items: center; gap: 8px; padding: 9px 12px; font-size: 12.5px; font-weight: 560; color: var(--text2); }
.zeit-feld { font: inherit; font-size: 13.5px; font-weight: 440; color: var(--text); background: var(--flaeche2); border: 0; border-radius: var(--r-zeile); padding: 5px 10px; }
.mz-zustand { font-size: 12px; color: var(--text3); align-items: flex-start; }
.mitteilungen-abschnitt .e-knoepfe .knopf { flex: none; padding: 7px 14px; border-radius: var(--r-pille); font-size: 13px; font-weight: 540; }
.mz-punkt { width: var(--m-verbindung-punkt); height: var(--m-verbindung-punkt); border-radius: 50%; background: var(--text3); margin-top: 5px; flex: none; }
.mz-punkt.an { background: var(--gut); } .mz-punkt.aus { background: var(--signal); }

.anhaenge { display: flex; gap: 6px; flex-wrap: wrap; padding: 6px 12px 0; }
.anhaenge:empty { display: none; }
.anhang { display: inline-flex; gap: 6px; align-items: center; max-width: 240px; padding: 4px 6px 4px 10px; border-radius: 999px; background: var(--flaeche2); font-size: 12.5px; }
.anhang span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.anhang button { width: 18px; height: 18px; border-radius: 50%; color: var(--text3); font-size: 13px; line-height: 1; }
.eingabe .klammer { background: none; color: var(--text3); width: 32px; }
.chat.ziehen::after { content: "Datei hier ablegen"; position: absolute; inset: 8px; border: 2px dashed var(--akzent-text); border-radius: 16px; display: grid; place-items: center; font-weight: 600; color: var(--akzent-text); background: color-mix(in srgb, var(--grund) 85%, transparent); pointer-events: none; }
.chat { position: relative; }
.blase .anhang-zeile { display: flex; gap: 6px; align-items: center; font-size: 12.5px; opacity: .85; min-width: 0; }
.blase .anhang-zeile svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.blase .anhang-zeile span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mail-teil { margin-top: 12px; border: 1px solid var(--linie); border-radius: 12px; overflow: hidden; background: var(--grund); }
.mail-teil .kopfzeilen { padding: 10px 12px; display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; font-size: 13px; border-bottom: 1px solid var(--linie); }
.mail-teil .kopfzeilen dt { color: var(--text3); } .mail-teil .kopfzeilen dd { margin: 0; overflow-wrap: anywhere; }
.mail-teil .betreff { font-weight: 600; }
.mail-teil iframe { display: block; width: 100%; height: 360px; border: 0; background: var(--k-weiss); }
.mail-teil .text { padding: 12px; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.mail-teil .fuss { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; padding: 8px 12px; border-top: 1px solid var(--linie); font-size: 12.5px; color: var(--text3); }
.mail-teil .fuss a { color: var(--akzent-text); margin-left: auto; font-weight: 600; text-decoration: none; }

/* Generalprobe (GeneralprobeAbschnitt in der Mac-App) */
.generalprobe-abschnitt { display: grid; gap: 10px; }
.assistent .generalprobe-abschnitt { margin: 0 0 22px; }
.generalprobe-abschnitt p { margin: 0; color: var(--text2); font-size: 13px; line-height: 1.45; }
.gp-zusammenfassung { font-size: 13.5px; font-weight: 560; }
.gp-zeilen { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 14px; overflow: hidden; }
.gp-zeile { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; }
.gp-zeile + .gp-zeile { border-top: 1px solid var(--linie); }
.gp-zeile .status-punkt, .gp-zeile .status-punkt.fehler { margin-top: 3px; }
.gp-text { flex: 1; min-width: 0; }
.gp-kopf { display: flex; gap: 8px; align-items: baseline; justify-content: space-between; font-size: 13.5px; }
.gp-kopf b { font-weight: 560; }
.gp-zustand { flex: none; color: var(--text3); font-size: 12.5px; }
.gp-zeile.ok .gp-zustand { color: var(--gut); }
.gp-zeile.problem .gp-zustand { color: var(--signal); }
.gp-detail { margin-top: 2px; color: var(--text3); font-size: 12.5px; }
.gp-hinweis { margin-top: 2px; color: var(--signal); font-size: 12.5px; line-height: 1.4; }
.neu-verbinden summary { cursor: pointer; color: var(--text3); font-size: 12.5px; }
.neu-verbinden[open] { display: grid; gap: 8px; }
.schritte-liste { margin: 6px 0 0 30px; padding: 0; list-style: none; font-size: 12.5px; color: var(--text2); }
.schritte-liste li { padding: 2px 0; display: flex; gap: 8px; }
.schritte-liste li span { color: var(--text3); font-variant-numeric: tabular-nums; flex: none; }
/* Zaehler (Bausteine.swift: Zaehler) */
.zaehler { flex: none; min-width: var(--m-zaehler-min); height: var(--m-zaehler-min); padding: 0 6px; border-radius: var(--r-pille); display: inline-grid; place-items: center;
  font-size: var(--s-zaehler-groesse); font-weight: var(--s-zaehler-gewicht); font-variant-numeric: tabular-nums; line-height: 1; background: var(--flaeche2); color: var(--text2); }
.zaehler.hervor { background: var(--akzent); color: var(--auf-akzent); }
/* SymbolKnopf (Bausteine.swift) */
.symbol-knopf { flex: none; width: var(--m-symbol-knopf); height: var(--m-symbol-knopf); border-radius: var(--r-knopf); display: grid; place-items: center; color: var(--text2); }
.symbol-knopf:hover { background: var(--flaeche2); color: var(--text); }
.symbol-knopf svg { width: 15px; height: 15px; stroke-width: 1.8; }
.puls { width: 8px; height: 8px; border-radius: 50%; background: var(--akzent-text); animation: blink 1.2s infinite; flex: none; }

/* Aufgaben */
.frist { font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: 999px; background: var(--flaeche2); color: var(--text2); white-space: nowrap; }
.frist.over { background: color-mix(in srgb, var(--signal) 15%, transparent); color: var(--signal); }
.frist.soon { background: color-mix(in srgb, var(--gelb) 18%, transparent); color: var(--gelb); }
.bmarke { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: var(--text2); white-space: nowrap; }
.bmarke i { width: 6px; height: 6px; border-radius: 50%; background: var(--text3); }
.gruppe { padding: 4px 16px 10px; }
.gruppe > .versal { margin: 12px 2px 6px; display: flex; gap: 6px; }
.mzeile { display: flex; gap: 12px; align-items: flex-start; padding: 10px 2px; border-bottom: 1px solid var(--linie); }
.mzeile .haken { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--text3); flex: none; margin-top: 1px; display: grid; place-items: center; color: var(--akzent-text); }
.mzeile .haken.hoch { border-color: var(--akzent-text); }
.mzeile .haken svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.mzeile.erledigt .haken { background: var(--gut); border-color: var(--gut); color: var(--grund); }
.mzeile.erledigt .titel { text-decoration: line-through; color: var(--text3); }
.mzeile > button.inhalt { flex: 1; min-width: 0; text-align: left; display: flex; gap: 10px; align-items: flex-start; }
.mzeile .text { flex: 1; min-width: 0; }
.mzeile .titel { font-weight: 560; font-size: 14.5px; display: flex; gap: 8px; align-items: center; }
.mzeile .titel b { font-weight: inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mzeile .zus { color: var(--text3); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.mzeile .spalte-name { color: var(--text3); font-size: 11.5px; white-space: nowrap; margin-top: 2px; }
.mzeile.an { background: color-mix(in srgb, var(--akzent) 7%, transparent); border-radius: 10px; }
.kanban { display: flex; gap: 12px; overflow-x: auto; padding: 6px 16px 24px; align-items: flex-start; }
.kanban .spalte { flex: 0 0 260px; display: flex; flex-direction: column; gap: 8px; }
.kanban .spalte-kopf { display: flex; gap: 8px; align-items: baseline; font-size: 13px; font-weight: 600; padding: 4px 2px; }
.kanban .spalte-kopf span { color: var(--text3); font-weight: 520; }
.kanban .leer-spalte { height: 54px; border: 1px dashed var(--linie); border-radius: 12px; }
.bkarte { text-align: left; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.bkarte.an { border-color: var(--akzent-text); }
.bkarte .oben { display: flex; justify-content: space-between; gap: 6px; }
.bkarte .titel { font-weight: 580; font-size: 13.5px; line-height: 1.3; }
.bkarte.weg .titel { text-decoration: line-through; color: var(--text3); }
.bkarte .zus { font-size: 12px; color: var(--text3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bkarte .wer { font-size: 11.5px; color: var(--text2); }
.bkarte .wer.meins { color: var(--akzent-text); font-weight: 600; }
.kdetail { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.kdetail h2 { font-size: 21px; font-weight: 440; letter-spacing: -.5px; margin: 0; line-height: 1.25; }
.kdetail .meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--text3); }
.kdetail .zeile-roh { font-size: 12.5px; color: var(--text2); background: var(--flaeche2); padding: 8px 10px; border-radius: 8px; overflow-wrap: anywhere; }
.kdetail .verlauf-k { border-left: 1px solid var(--linie); padding-left: 12px; display: flex; flex-direction: column; gap: 8px; }
.kdetail .verlauf-k div span { display: block; font-size: 11px; color: var(--text3); font-weight: 560; }
.kdetail .verlauf-k div { font-size: 12.5px; color: var(--text2); }
.kdetail .aktionen { display: flex; gap: 8px; flex-wrap: wrap; }
.kdetail .aktionen .knopf { flex: 1 1 140px; }
.kdetail-kopf { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 600; color: var(--text3); }

/* Wissen */
.wissen { display: flex; flex-direction: column; min-height: 100%; }
.w-baum { padding: 0 10px 30px; }
.w-ordner > button { display: flex; gap: 6px; align-items: center; width: 100%; padding: 6px 6px; font-size: 13px; font-weight: 600; color: var(--text2); text-align: left; }
.w-ordner > button i { font-style: normal; color: var(--text3); width: 10px; display: inline-block; transition: transform .15s; }
.w-ordner.offen > button i { transform: rotate(90deg); }
.w-ordner > div { padding-left: 12px; display: none; }
.w-ordner.offen > div { display: block; }
.w-notiz { display: flex; gap: 8px; align-items: center; width: 100%; padding: 6px 6px; border-radius: 8px; text-align: left; font-size: 13.5px; }
.w-notiz i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.w-notiz span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-notiz.an { background: color-mix(in srgb, var(--akzent) 12%, transparent); color: var(--akzent-text); }
.w-lesen { padding: 18px 16px 40px; max-width: 760px; }
.w-lesen h1.titel { font-size: 26px; font-weight: 440; letter-spacing: -.6px; margin: 4px 0 6px; }
.w-lesen .meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--text3); margin-bottom: 14px; }
.w-lesen .meta .typ { font-weight: 600; }
.w-lesen .rueck { margin-top: 28px; border-top: 1px solid var(--linie); padding-top: 12px; }
.w-lesen .rueck button { display: block; padding: 4px 0; color: var(--akzent-text); font-size: 13.5px; text-align: left; }
.w-werkzeuge { display: flex; gap: 8px; margin-left: auto; }
.w-werkzeuge button { font-size: 13px; font-weight: 600; color: var(--akzent-text); padding: 4px 8px; border-radius: 8px; }
.md.voll { font-size: 15px; line-height: 1.55; }
.md.voll h1 { font-size: 22px; } .md.voll h2 { font-size: 18px; margin-top: 18px; } .md.voll h3 { font-size: 16px; } .md.voll h4 { font-size: 14.5px; }
.md.voll table { border-collapse: collapse; margin: 8px 0 12px; font-size: 13.5px; display: block; overflow-x: auto; }
.md.voll th, .md.voll td { border: 1px solid var(--linie); padding: 5px 8px; text-align: left; vertical-align: top; }
.md.voll th { background: var(--flaeche2); font-weight: 600; }
.md.voll pre { background: var(--flaeche2); padding: 10px 12px; border-radius: 8px; overflow-x: auto; font: 12.5px/1.5 ui-monospace, Menlo, monospace; }
.md.voll pre code { background: none; padding: 0; }
.md.voll blockquote { margin: 8px 0; padding: 4px 12px; border-left: 3px solid var(--akzent-text); color: var(--text2); }
.md.voll ol { margin: 4px 0 8px; padding-left: 22px; }
.md.voll hr { border: 0; border-top: 1px solid var(--linie); margin: 16px 0; }
.md a.wl { color: var(--akzent-text); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--akzent-text) 35%, transparent); cursor: pointer; }
.md a.wl.fehlt { color: var(--text3); border-bottom-style: dashed; cursor: default; }
.graph { position: relative; flex: 1; min-height: 60dvh; }
.wissen.nur-graph { display: flex; flex-direction: column; height: 100%; }
.wissen.nur-graph .w-baum { display: none; }
.wissen.nur-graph .graph { min-height: 0; }
.graph canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; outline: none; }
/* Bedienelemente über dem Graphen, wie in der Mac-App: Suche oben links, Karte oben rechts, Legende unten links, Zoom unten rechts */
.graph .g-oben, .graph .g-unten { position: absolute; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; pointer-events: none; }
.graph .g-oben { top: 12px; }
.graph .g-unten { bottom: 12px; align-items: flex-end; }
.graph .g-oben > *, .graph .g-unten > * { pointer-events: auto; }
.g-suche { width: 280px; max-width: calc(100% - 0px); }
.g-feld { display: flex; align-items: center; gap: 8px; padding: 0 10px; height: 36px; }
.g-feld, .g-treffer, .g-karte, .g-legende, .g-zoom { background: color-mix(in srgb, var(--flaeche) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--linie); border-radius: 12px; box-shadow: 0 6px 24px var(--schatten-leise); }
.g-feld svg { width: 15px; height: 15px; color: var(--text3); flex: none; }
.g-feld input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 13.5px; color: var(--text); }
.g-treffer { margin-top: 6px; padding: 4px; max-height: 320px; overflow: auto; }
.g-treffer[hidden] { display: none; }
.g-treffer button, .g-k-nachbarn button { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 6px 8px; border-radius: 8px; font-size: 13px; }
.g-treffer button:hover, .g-k-nachbarn button:hover, .g-typ:hover { background: var(--flaeche2); }
.g-treffer span, .g-k-nachbarn span, .g-typ span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-treffer b, .g-typ b { font-weight: 500; color: var(--text3); font-size: 12px; font-variant-numeric: tabular-nums; }
.g-nichts { padding: 8px; font-size: 13px; color: var(--text3); }
.graph i { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
.g-karte { width: 260px; padding: 12px; }
.g-karte[hidden] { display: none; }
.g-k-kopf { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--text2); text-transform: uppercase; letter-spacing: .06em; }
.g-k-kopf span { flex: 1; }
.g-k-kopf b { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--text3); }
.g-k-zu { width: 24px; height: 24px; display: grid; place-items: center; margin: -4px -4px -4px 0; color: var(--text3); }
.g-k-zu svg { width: 14px; height: 14px; }
.g-k-titel { font-size: 15px; font-weight: 600; margin: 6px 0 2px; line-height: 1.3; overflow-wrap: anywhere; }
.g-k-ordner { font-size: 12px; color: var(--text3); }
.g-k-knoepfe { display: flex; gap: 6px; margin: 10px 0 4px; }
.g-k-knoepfe .knopf { padding: 7px 0; font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 5px; }
.g-k-knoepfe .knopf svg { width: 14px; height: 14px; }
.g-k-nachbarn { border-top: 1px solid var(--linie); margin-top: 8px; padding-top: 4px; }
.g-k-nachbarn button { padding: 5px 4px; font-size: 12.5px; color: var(--text2); }
.g-legende { width: 220px; padding: 8px; font-size: 12.5px; max-height: calc(100% - 72px); overflow: auto; }
.g-lokal { display: flex; flex-direction: column; gap: 6px; padding: 4px 4px 8px; }
.g-lokal span { display: flex; gap: 6px; }
.g-lokal .chip { padding: 3px 9px; font-size: 12px; }
.g-ganz { display: flex; align-items: center; gap: 6px; width: 100%; padding: 6px 4px 10px; color: var(--akzent-text); font-size: 12.5px; border-bottom: 1px solid var(--linie); margin-bottom: 6px; }
.g-ganz svg { width: 14px; height: 14px; }
.g-schalter-liste { padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid var(--linie); }
.g-schalter { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 4px; cursor: pointer; color: var(--text2); }
.g-schalter input { position: absolute; opacity: 0; pointer-events: none; }
.g-schalter i { width: 28px !important; height: 16px !important; border-radius: 999px !important; background: var(--flaeche2); position: relative; transition: background .15s; }
.g-schalter i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--grund); box-shadow: 0 1px 2px var(--schatten-knopf); transition: transform .15s; }
.g-schalter input:checked + i { background: var(--akzent); }
.g-schalter input:checked + i::after { transform: translateX(12px); }
.g-schalter input:focus-visible + i { outline: 2px solid var(--akzent-text); outline-offset: 2px; }
.g-typ { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 4px; border-radius: 6px; }
.g-typ.aus { opacity: .4; }
.g-typ.aus span { text-decoration: line-through; }
.g-mehr { padding: 5px 4px; color: var(--akzent-text); font-size: 12.5px; }
.g-zahl { padding: 6px 4px 2px; margin-top: 4px; border-top: 1px solid var(--linie); color: var(--text3); font-size: 11.5px; }
.g-leg-auf { display: block; width: 100%; text-align: left; padding: 4px; font-size: 12.5px; color: var(--text2); }
.g-legende.zu { width: auto; }
.g-legende.zu .g-leg-inhalt { display: none; }
.g-zoom { display: flex; overflow: hidden; }
.g-zoom button { width: 34px; height: 32px; display: grid; place-items: center; font-size: 17px; color: var(--text2); }
.g-zoom button + button { border-left: 1px solid var(--linie); }
.g-zoom button:hover { background: var(--flaeche2); color: var(--text); }
.g-zoom svg { width: 15px; height: 15px; }
@media (max-width: 899px) {
  .graph .g-oben { flex-direction: column; align-items: stretch; }
  .g-suche, .g-karte { width: auto; }
  .g-karte { max-height: 45dvh; overflow: auto; }
  .g-legende { width: auto; max-width: calc(100% - 130px); max-height: 50dvh; }
}


/* ---------------------------------------------------------------- Desktop: Seitenleiste wie in der Mac-App */
@media (min-width: 900px) {
  #haupt { max-width: none; margin: 0; border-left: 1px solid var(--linie); }
  #kopf, #tabs, .chat-leiste { display: none !important; }
  /* Shell-Standard (DESIGN.md „Shell“), Maße und Schrift aus den Tokens wie Seitenleiste in RootView.swift */
  #seite { display: flex; flex-direction: column; width: var(--m-seitenleiste); flex: none; background: var(--flaeche); }
  .seite-kopf { padding: var(--m-logo-oben-web) var(--m-logo-seite) var(--m-logo-unten); }
  .seite-kopf .marke { font-size: var(--s-wortmarke-groesse); font-weight: var(--s-wortmarke-gewicht); letter-spacing: var(--s-wortmarke-laufweite); line-height: 1.2; }
  #seite-wer { color: var(--text3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #bereiche { flex: 1; overflow-y: auto; overscroll-behavior-y: contain; display: flex; flex-direction: column; gap: var(--a-xxs); padding: 0 var(--m-seitenleiste-rand) var(--a-l); }
  #bereiche .gruppe-titel { font-size: var(--s-hud-groesse); font-weight: var(--s-hud-gewicht); letter-spacing: var(--s-hud-laufweite); text-transform: uppercase; color: var(--text3);
    padding: var(--m-abschnitt-oben) var(--m-eintrag-x) var(--m-abschnitt-unten); }
  #bereiche button { display: flex; align-items: center; gap: var(--m-eintrag-luecke); padding: var(--m-eintrag-y) var(--m-eintrag-x); border-radius: var(--r-zeile);
    font-size: var(--s-eintrag-groesse); font-weight: var(--s-eintrag-gewicht); line-height: 18px; color: var(--text2); text-align: left; }
  #bereiche button:hover { background: var(--flaeche3); }
  #bereiche button.an { background: var(--flaeche2); color: var(--text); font-weight: var(--s-eintrag-aktiv-gewicht); }
  #bereiche button > i.sym { width: var(--m-symbol-spalte); flex: none; display: grid; place-items: center; }
  #bereiche button svg { width: var(--m-symbol); height: var(--m-symbol); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
  #bereiche button > span:not(.avatar) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #bereiche .chefin { gap: var(--m-chefin-luecke); padding: var(--m-chefin-y) var(--m-eintrag-x); border-radius: var(--r-chefin); }
  #bereiche .chefin > span.chefin-text { display: flex; flex-direction: column; gap: 1px; }
  #bereiche .chefin b { font-size: var(--s-chefin-name-groesse); font-weight: var(--s-chefin-name-gewicht); color: var(--text); line-height: 1.25; }
  #bereiche .chefin em { font-style: normal; font-size: var(--s-chefin-status-groesse); font-weight: var(--s-chefin-status-gewicht); color: var(--text3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #bereiche .neben, #bereiche .neu { gap: var(--m-chefin-luecke); font-weight: var(--s-nebenchat-gewicht); }
  #bereiche .neben > i.sym, #bereiche .neu > i.sym { width: var(--m-chefin-avatar); }
  #bereiche .neben.fertig { color: var(--text3); }
  #bereiche .neben.an { font-weight: var(--s-eintrag-aktiv-gewicht); }
  #bereiche .neu { color: var(--text3); margin-bottom: var(--a-xs); }
  #bereiche .neu svg { width: 12px; height: 12px; stroke-width: 2.2; }
  #bereiche .neben .warte-punkt { width: var(--m-verbindung-punkt); height: var(--m-verbindung-punkt); border-radius: 50%; background: var(--signal); }
  #bereiche .neben .fertig-haken svg { width: 10px; height: 10px; stroke-width: 2.8; }
  .seite-fuss { border-top: 1px solid var(--linie); display: flex; flex-direction: column; gap: var(--a-s); }
  .fuss-zeile { display: flex; align-items: center; gap: var(--a-s); padding: var(--m-fuss-y) var(--m-fuss-x); color: var(--text3); }
  .fuss-zeile .verbindung { width: var(--m-verbindung-punkt); height: var(--m-verbindung-punkt); }
  #verbindung-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .fuss-angebot { display: flex; align-items: center; gap: 8px; margin: var(--a-m) var(--m-seitenleiste-rand) 0; padding: 8px 12px; border-radius: var(--r-chefin);
    background: var(--akzent); color: var(--auf-akzent); font-size: 12px; font-weight: 600; text-align: left; }
  .fuss-angebot svg { width: 14px; height: 14px; stroke-width: 2.2; }
  #spalte:not([hidden]) { display: block; width: 340px; flex: none; border-left: 1px solid var(--linie); overflow-y: auto; overscroll-behavior-y: contain; background: color-mix(in srgb, var(--flaeche) 60%, var(--grund)); }
  .liste, .feed, .kal, .assistent { max-width: 820px; margin-left: auto; margin-right: auto; }
  .liste { padding: 18px 28px 40px; }
  .seiten-kopf { padding: 26px 28px 8px; }
  .filter { padding: 8px 28px 12px; }
  .gruppe { padding: 4px 28px 10px; }
  .kanban { padding: 6px 28px 28px; }
  .verlauf { padding: 18px max(24px, calc((100% - 860px) / 2)) 8px; }
  .eingabe, .dock, .anhaenge { margin-left: max(12px, calc((100% - 860px) / 2)); margin-right: max(12px, calc((100% - 860px) / 2)); }
  .eingabe { padding-left: 0; padding-right: 0; border-top: 0; }
  .wissen { flex-direction: row; height: 100%; }
  .wissen .w-seite { width: 300px; flex: none; border-right: 1px solid var(--linie); overflow-y: auto; overscroll-behavior-y: contain; }
  .wissen .w-haupt { flex: 1; min-width: 0; overflow-y: auto; overscroll-behavior-y: contain; display: flex; flex-direction: column; }
  .w-lesen { padding: 28px 36px 60px; margin: 0 auto; width: 100%; }
  #blatt { align-items: center; }
  .blatt-inhalt { border-radius: 18px; max-width: 620px; max-height: 84dvh; padding-bottom: 18px; }
  .segment.nur-mobil { display: none; }
}
@media (min-width: 900px) and (max-width: 1239px) { #spalte:not(.immer) { display: none !important; } }
/* Hinweise (statt alert) und Dialoge (statt confirm) */
#hinweise { position: fixed; z-index: 40; left: 50%; transform: translateX(-50%); bottom: calc(var(--unten) + 76px); display: flex; flex-direction: column; gap: 8px; width: min(440px, calc(100vw - 32px)); pointer-events: none; }
@media (min-width: 900px) { #hinweise { left: auto; right: 24px; transform: none; bottom: 24px; } }
.hinweis-karte { pointer-events: auto; display: flex; align-items: flex-start; gap: 10px; padding: 11px 10px 11px 12px; border-radius: 14px; background: var(--flaeche); border: 1px solid var(--linie); box-shadow: 0 12px 32px var(--schatten-karte); font-size: 13.5px; line-height: 1.4; animation: hinweis-rein .22s ease-out; }
.hinweis-karte.weg { opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
.hinweis-karte > i { flex: none; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; color: var(--auf-akzent); background: var(--signal); }
.hinweis-karte.gut > i { background: var(--gut); }
.hinweis-karte.info > i { background: var(--akzent); }
.hinweis-karte > i svg { width: 13px; height: 13px; }
.hinweis-karte > span { flex: 1; padding-top: 2px; overflow-wrap: anywhere; }
.hinweis-karte > button { flex: none; width: 22px; height: 22px; display: grid; place-items: center; color: var(--text3); }
.hinweis-karte > button svg { width: 12px; height: 12px; }
@keyframes hinweis-rein { from { opacity: 0; transform: translateY(8px); } }
.dialog { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 16px; }
.dialog-hg { position: absolute; inset: 0; background: var(--schatten-abdunkeln); animation: hinweis-rein .15s; }
.dialog-karte { position: relative; width: min(420px, 100%); background: var(--grund); border: 1px solid var(--linie); border-radius: 18px; padding: 20px; box-shadow: 0 24px 60px var(--schatten-dialog); animation: hinweis-rein .18s ease-out; }
.dialog-karte h3 { margin: 0 0 6px; font-size: 17px; font-weight: 620; letter-spacing: -.2px; }
.dialog-karte p { margin: 0; color: var(--text2); font-size: 14px; line-height: 1.5; }
.dialog-knoepfe { display: flex; gap: 8px; margin-top: 18px; }
.knopf.gefahr { background: var(--signal); color: var(--auf-akzent); border-color: transparent; }
/* Meldungen im Chat wie in der Mac-App: Ereignis (Läufe, Wachen, Updates), Entscheidung vom Board, Antwort-Marken */
.meldung { align-self: center; font-size: 12px; color: var(--text3); padding: 8px 0; text-align: center; max-width: 90%; }
.ereignis { display: flex; gap: 12px; align-items: flex-start; max-width: 680px; margin-top: 8px; cursor: pointer; }
.ereignis .e-sym { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--k-weiss);
  background: linear-gradient(135deg, var(--f), color-mix(in srgb, var(--f) 65%, transparent)); box-shadow: 0 2px 8px color-mix(in srgb, var(--f) 45%, transparent); }
.ereignis .e-sym svg { width: 15px; height: 15px; stroke-width: 2.1; }
.ereignis .e-karte { flex: 1; min-width: 0; padding: 11px 14px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--f) 32%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--f) 11%, transparent), color-mix(in srgb, var(--f) 2%, transparent)); }
.ereignis .e-kopf { display: flex; align-items: center; gap: 8px; }
.ereignis .e-kopf b { font-size: 10.5px; font-weight: 720; letter-spacing: 1.1px; text-transform: uppercase; color: color-mix(in srgb, var(--f) 75%, var(--text)); }
.ereignis .e-kopf span { font-size: 11px; color: var(--text3); }
.ereignis .e-kopf em { margin-left: auto; width: 14px; height: 14px; color: var(--text3); opacity: .5; transition: transform .2s, opacity .2s; }
.ereignis:hover .e-kopf em, .ereignis.offen .e-kopf em { opacity: 1; }
.ereignis.offen .e-kopf em { transform: rotate(180deg); }
.ereignis .e-kopf em svg { width: 14px; height: 14px; }
.ereignis .e-text { margin-top: 7px; font-size: 13.5px; font-weight: 500; color: var(--text2); line-height: 1.45; overflow-wrap: anywhere; }
.ereignis.offen .e-text { font-weight: 400; color: var(--text); }
.ereignis .e-notiz { display: flex; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--text3); line-height: 1.45; }
.ereignis.offen .e-notiz { color: var(--text2); }
.entscheidung { align-self: flex-end; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; max-width: min(540px, 92%); margin-top: 10px; }
.ent-karte { min-width: min(280px, 100%); padding: 12px 16px; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--f) 55%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--f) 14%, transparent), var(--flaeche2)); box-shadow: 0 4px 14px color-mix(in srgb, var(--f) 12%, transparent); }
.ent-kopf { display: flex; align-items: center; gap: 7px; }
.ent-kopf > i { width: 14px; height: 14px; color: var(--f); }
.ent-kopf > i svg { width: 14px; height: 14px; stroke-width: 2.2; }
.ent-kopf b { font-size: 10.5px; font-weight: 720; letter-spacing: 1.1px; text-transform: uppercase; color: var(--f); }
.ent-bereich { margin-left: auto; display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: var(--text2); padding: 3px 8px; border-radius: 999px; background: color-mix(in srgb, var(--grund) 55%, transparent); }
.ent-bereich i { width: 6px; height: 6px; border-radius: 50%; }
.ent-titel { margin-top: 8px; font-size: 12.5px; font-weight: 600; color: var(--text3); }
.ent-text { margin-top: 6px; font-size: 15px; font-weight: 500; line-height: 1.5; }
.ent-fuss, .ant-fuss { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text3); }
.ent-fuss svg { width: 10px; height: 10px; }
.antworten { align-self: flex-end; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; max-width: 88%; margin-top: 8px; }
.ant-bezug { font-size: 11.5px; color: var(--text3); max-width: 460px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ant-marke { display: flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  background: color-mix(in srgb, var(--gut) 13%, transparent); border: 1px solid color-mix(in srgb, var(--gut) 28%, transparent); }
.ant-marke svg { width: 14px; height: 14px; color: var(--gut); stroke-width: 2.4; }
.ant-notiz { font-size: 13.5px; color: var(--text2); text-align: right; max-width: 460px; }
.antworten .nachricht { max-width: 100%; }
.mac-angebot { display: flex; gap: 16px; align-items: center; margin: 4px 0 16px; }
.mac-angebot img { flex: none; border-radius: 18px; box-shadow: 0 8px 24px var(--schatten-karte); }
.mac-angebot h2 { margin: 2px 0 4px !important; }
.mac-angebot .zeile { margin: 0 !important; }
a.knopf { display: flex; align-items: center; justify-content: center; gap: 7px; text-decoration: none; }
a.knopf svg { width: 16px; height: 16px; }
@media (min-width: 900px) { #spalte.breit:not([hidden]) { width: 460px; } }
.pille { font-size: 11px; font-weight: 580; padding: 3px 8px; border-radius: var(--r-pille); background: var(--flaeche2); color: var(--text2); }
.pille.akzent { background: color-mix(in srgb, var(--akzent) 14%, transparent); color: var(--akzent-text); }
.chip.leise { border-style: dashed; color: var(--text2); }
.nur-desktop { display: none !important; }
@media (min-width: 900px) { .seiten-kopf.nur-desktop { display: flex !important; } }

/* ---------------------------------------------------------------- Laufende Arbeit wie in der Mac-App (arbeit.js):
   Nachrichten, Arbeitsanzeige, Aufträge und Ergebnisse im Verlauf, Kopf des Chats, Zeitleiste, Team-Leiste */
:root { --schatten: var(--schatten-leise); --sp-hg: color-mix(in srgb, var(--flaeche) 60%, var(--grund)); }
.avatar { border-radius: 32%; }

/* Nachrichten (NachrichtZeile) */
.nachricht:not(.mensch) { display: flex; gap: 12px; align-items: flex-start; max-width: 100%; align-self: stretch; margin-top: 10px; }
.nachricht.gruppiert:not(.mensch) { margin-top: 0; }
.n-ava { flex: none; width: 28px; display: flex; }
.n-inhalt { flex: 1; min-width: 0; max-width: 680px; display: flex; flex-direction: column; gap: 10px; }
.nachricht:not(.mensch) .wer { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding-top: 4px; font-size: 11.5px; font-weight: 460; color: var(--text3); line-height: 18px; }
.nachricht:not(.mensch) .wer b { font-size: 13.5px; font-weight: 620; color: var(--text); }
.nachricht:not(.mensch) .wer .nz, .nachricht:not(.mensch) .wer .wartet-marke { margin-left: 0; }
.nachricht:not(.mensch) .blase { padding: 0; border: 0; border-radius: 0; background: none; font-size: 15px; line-height: 1.55; }
.nachricht.gruppiert:not(.mensch) .wer { padding-top: 0; }
.nachricht.mensch { max-width: min(540px, 88%); display: flex; flex-direction: column; align-items: flex-end; gap: 5px; margin-top: 8px; }
.nachricht.mensch.gruppiert { margin-top: -4px; }
.nachricht.mensch .blase { background: var(--flaeche2); color: var(--text); border: 0; border-radius: 18px; padding: 10px 15px; font-size: 15px; font-weight: 420; line-height: 1.5; }
.nachricht.mensch .blase a { color: var(--akzent-text); }
.nachricht.mensch .wer { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 11px; font-weight: 480; }
.kanal-marke { display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px; border: 1px solid var(--linie); border-radius: 99px; font-size: 10.5px; font-weight: 540; color: var(--text3); line-height: 15px; }
.kanal-marke svg { width: 9px; height: 9px; stroke-width: 2.2; }

/* Arbeitsanzeige am Ende des Verlaufs */
.frage-text { margin: 2px 0 8px; font-size: 13.5px; color: var(--text2); }
.arbeit-zeile { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; }
.ak-ava { position: relative; flex: none; display: flex; }
.ak-ring { position: absolute; inset: -4px; border-radius: 13px; border: 2px solid var(--akzent); animation: ring-atmen 2.4s ease-in-out infinite; animation-delay: var(--d, 0s); pointer-events: none; }
@keyframes ring-atmen { 0%, 100% { opacity: .9; transform: scale(1); } 50% { opacity: .2; transform: scale(1.07); } }
.arbeit-karte { position: relative; overflow: hidden; flex: 1 1 0; min-width: 0; max-width: 520px; padding: 10px 14px 12px; border-radius: 14px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--akzent) 7%, var(--flaeche)), var(--flaeche)); border: 1px solid color-mix(in srgb, var(--akzent) 24%, var(--linie));
  box-shadow: 0 4px 16px color-mix(in srgb, var(--akzent) 9%, transparent); }
.ak-kopf { display: flex; align-items: center; gap: 8px; min-height: 18px; }
.ak-kopf b { font-size: 13.5px; font-weight: 620; white-space: nowrap; }
.ak-dauer { margin-left: auto; padding-left: 16px; font-size: 11.5px; font-weight: 560; color: var(--akzent-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ak-abbrechen { flex: none; margin-left: 10px; padding: 1px 9px; border-radius: 999px; border: 1px solid var(--linie); background: transparent; font-size: 11.5px; font-weight: 560; color: var(--text2); }
.ak-abbrechen:disabled { opacity: .5; }
.ak-kopf b + .ak-abbrechen, .ak-punkte + .ak-abbrechen { margin-left: auto; }
.terminal-dialog { flex: 0 1 auto; min-width: min(240px, 100%); width: 100%; max-width: 640px; padding: 12px 14px 14px; border-radius: 14px; background: var(--flaeche); border: 1px solid var(--akzent); }
.tdl-kopf { display: flex; align-items: center; gap: 8px; }
.tdl-kopf b { font-size: 13.5px; font-weight: 620; }
.tdl-kopf .ak-abbrechen { margin-left: auto; }
.tdl-titel { margin-top: 8px; font-size: 12.5px; font-weight: 600; color: var(--text2); }
.tdl-text { margin: 6px 0 0; max-height: 240px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-family: ui-monospace, Menlo, monospace; font-size: 12px; line-height: 1.45; color: var(--text2); }
.tdl-frage { margin-top: 10px; font-size: 14px; font-weight: 600; }
.tdl-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tdl-knoepfe .knopf { flex: 1 1 auto; padding: 9px 14px; font-size: 13.5px; }
.links-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip.link { text-decoration: none; color: var(--text); }
.chip.link::after { content: " \2197"; color: var(--text3); }
.ak-schritt { display: flex; align-items: baseline; gap: 7px; margin-top: 4px; font-size: 12.5px; color: var(--text2); min-width: 0; }
.ak-schritt em { flex: none; font-style: normal; font-size: 9.5px; font-weight: 660; letter-spacing: .9px; text-transform: uppercase; color: var(--text3); font-stretch: 120%; }
.ak-schritt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ak-band { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; overflow: hidden; }
.ak-band i { position: absolute; top: 0; bottom: 0; width: 45%; background: linear-gradient(90deg, transparent, var(--akzent), transparent); animation: band 1.8s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes band { from { left: -45%; } to { left: 100%; } }
.ak-punkte { display: inline-flex; gap: 4px; align-items: center; height: 18px; }
.ak-punkte i { width: 5px; height: 5px; border-radius: 50%; background: var(--text3); animation: tippt 1.2s ease-in-out infinite; animation-delay: var(--d, 0s); }
.ak-punkte i:nth-child(2) { animation-delay: calc(var(--d, 0s) + .18s); }
.ak-punkte i:nth-child(3) { animation-delay: calc(var(--d, 0s) + .36s); }
@keyframes tippt { 0%, 100% { opacity: .3; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ak-ring, .ak-band i, .ak-punkte i, .puls-ring, .status-punkt.laeuft::before, .fortschritt b { animation: none !important; } }

/* Aufträge und Ergebnisse an einer Antwort (AuftragsHinweis, PaketVerweis) */
.auftrags-hinweis { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.auftrags-hinweis button { display: flex; align-items: center; gap: 7px; max-width: 100%; font-size: 12.5px; text-align: left; padding: 1px 0; }
.auftrags-hinweis svg { width: 12px; height: 12px; color: var(--text3); stroke-width: 2.2; flex: none; }
.auftrags-hinweis b { font-weight: 600; color: var(--text2); flex: none; }
.auftrags-hinweis span { color: var(--text3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.auftrags-hinweis button:hover span { color: var(--text2); }
.paket-verweis { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 620px; padding: 10px 16px 10px 10px; border-radius: 14px; background: var(--flaeche); border: 1px solid var(--linie); text-align: left; }
.paket-verweis.offen { border-color: color-mix(in srgb, var(--akzent) 50%, transparent); }
.paket-verweis:hover { background: color-mix(in srgb, var(--flaeche2) 45%, var(--flaeche)); }
.pv-sym { flex: none; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--flaeche2); color: var(--text2); }
.paket-verweis.offen .pv-sym { background: var(--akzent); color: var(--auf-akzent); }
.pv-sym svg { width: 16px; height: 16px; stroke-width: 2; }
.pv-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pv-text b { font-size: 13.5px; font-weight: 580; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-text span { font-size: 12px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-status { flex: none; display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 580; color: var(--text3); }
.paket-verweis.offen .pv-status { color: var(--akzent-text); }
.pv-status svg { width: 13px; height: 13px; stroke-width: 2.2; }

/* Bausteine: Statuspunkt, Fortschritt, Schritte, Puls */
.status-punkt { position: relative; flex: none; width: 14px; height: 14px; display: inline-grid; place-items: center; font-style: normal; }
.status-punkt.laeuft::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: color-mix(in srgb, var(--akzent-text) 25%, transparent); animation: punkt-puls 1.4s ease-out infinite; animation-delay: var(--d, 0s); }
.status-punkt.laeuft::after { content: ""; position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--akzent-text); }
@keyframes punkt-puls { from { transform: scale(.4); opacity: 1; } to { transform: scale(1); opacity: 0; } }
.status-punkt.wartet::after { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--text3); }
.status-punkt.fertig { color: var(--gut); }
.status-punkt svg { width: 11px; height: 11px; stroke-width: 3; }
.status-punkt.fehler { margin: 0; padding: 0; border-radius: 0; background: none; color: var(--signal); font-weight: 800; font-size: 11px; }
.fortschritt { display: block; height: 3px; border-radius: 2px; background: var(--flaeche2); overflow: hidden; }
.fortschritt > i { display: block; position: relative; height: 100%; border-radius: 2px; background: var(--akzent); overflow: hidden; transition: width .6s; }
.fortschritt > i > b { position: absolute; top: 0; bottom: 0; width: 60px; left: -60px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--k-weiss) 35%, transparent), transparent); animation: schimmer 1.6s linear infinite; animation-delay: var(--d, 0s); }
@keyframes schimmer { from { left: -60px; } to { left: 100%; } }
.schrittliste { display: flex; flex-direction: column; padding-top: 6px; }
.schrittliste .sl { display: grid; grid-template-columns: 5px 1fr auto; column-gap: 10px; }
.sl-schiene { position: relative; }
.sl-schiene i { position: absolute; top: 6px; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--akzent-text); }
.sl.fertig .sl-schiene i { background: var(--text3); }
.sl-schiene b { position: absolute; left: 2px; top: 11px; bottom: 0; width: 1px; background: var(--linie); }
.sl-text { font-size: 12px; line-height: 1.4; color: var(--text); padding-bottom: 7px; overflow-wrap: anywhere; }
.sl.fertig .sl-text { color: var(--text2); }
.sl-uhr { font-size: 10.5px; color: var(--text3); font-variant-numeric: tabular-nums; padding-top: 1px; }
.sl-leer { font-size: 12px; color: var(--text3); }
.puls-ring { position: absolute; left: -4px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; border: 1.5px solid var(--akzent); animation: puls-ring 2s linear infinite; animation-delay: var(--d, 0s); pointer-events: none; }
@keyframes puls-ring { from { transform: scale(.75); opacity: .5; } to { transform: scale(1.15); opacity: 0; } }

/* Kopf des Chats (Desktop): Chefin, „arbeitet mit …“, Freigaben */
.chat-kopf { display: none; }
.ck-titel { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ck-titel b { font-size: 19px; font-weight: 560; letter-spacing: -.3px; line-height: 1.25; }
.ck-titel span { font-size: 12.5px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-freigaben { flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 7px 6px 14px; border: 1px solid var(--linie); border-radius: 99px; font-size: 13px; font-weight: 580; background: var(--flaeche); }
.ck-freigaben:hover { background: var(--flaeche2); }
.ck-freigaben b { min-width: 18px; height: 18px; border-radius: 9px; padding: 0 5px; background: var(--akzent); color: var(--auf-akzent); font-size: 11px; font-weight: 620; display: grid; place-items: center; }
@media (min-width: 900px) {
  .chat-kopf { display: flex; align-items: center; gap: 13px; height: var(--m-kopf-web); padding: 0 max(24px, calc((100% - 860px) / 2)); border-bottom: 1px solid var(--linie); flex: none; }
}

/* Rechte Spalte: Zeitleiste (Zeitleiste.swift) */
.zl { padding-bottom: 28px; }
.zl-kopf { display: flex; flex-direction: column; justify-content: center; gap: 2px; height: var(--m-kopf-web); padding: 0 var(--m-spalte-x); border-bottom: 1px solid var(--linie); }
.zl-kopf b { font-size: 19px; font-weight: 560; letter-spacing: -.3px; line-height: 1.25; }
.zl-kopf span { font-size: 12.5px; color: var(--text3); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-abschnitt { display: flex; align-items: center; gap: 7px; padding: 22px 22px 12px; }
.sp-abschnitt i { width: 5px; height: 5px; border-radius: 50%; flex: none; }
.sp-abschnitt span { flex: 1; font-size: 9.5px; font-weight: 640; letter-spacing: 1.1px; text-transform: uppercase; color: var(--text3); font-stretch: 120%; }
.sp-abschnitt b { font-size: 11px; font-weight: 560; color: var(--text3); font-variant-numeric: tabular-nums; }
.zl-leer { padding: 0 22px; font-size: 12.5px; color: var(--text3); line-height: 1.45; }
.sz { display: grid; grid-template-columns: 58px 22px minmax(0, 1fr); cursor: pointer; outline: none; --lf: var(--linie); }
.sz.warte { --lf: color-mix(in srgb, var(--signal) 35%, transparent); }
.sz.lauf { --lf: color-mix(in srgb, var(--akzent) 45%, transparent); }
.sz-uhr { padding: 3px 8px 0 0; text-align: right; font-size: 10.5px; font-weight: 500; color: var(--text3); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sz.lauf .sz-uhr { font-weight: 560; color: var(--akzent-text); padding-top: 2px; }
.sz-knoten { position: relative; }
.sz-knoten b { position: absolute; left: 50%; width: 1px; margin-left: -.5px; background: var(--lf); }
.sz-knoten b.o { top: 0; height: 9px; }
.sz-knoten b.u { top: 9px; bottom: 0; }
.sz-knoten i { position: absolute; left: 50%; transform: translateX(-50%); }
.sz.warte .sz-knoten i { top: 4px; width: 9px; height: 9px; border-radius: 2px; border: 1.5px solid var(--signal); background: var(--sp-hg); }
.sz.lauf .sz-knoten i { top: 3.5px; width: 9px; height: 9px; border-radius: 50%; background: var(--akzent); box-shadow: 0 0 0 2px var(--sp-hg); }
.sz.lauf.pulst .sz-knoten i::before { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 1.5px solid var(--akzent); animation: lauf-puls 2s linear infinite; animation-delay: var(--d, 0s); }
@keyframes lauf-puls { from { transform: scale(.5); opacity: .6; } to { transform: scale(1.1); opacity: 0; } }
.sz.erledigt .sz-knoten i { top: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--gut); box-shadow: 0 0 0 2px var(--sp-hg); }
.sz.erledigt.abbruch .sz-knoten i { background: var(--signal); }
.sz-inhalt { padding: 0 20px 20px 10px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sz-titel { font-size: 13px; font-weight: 560; line-height: 1.35; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.sz.erledigt .sz-titel { font-weight: 500; color: var(--text2); }
.sz.erledigt:hover .sz-titel, .sz-titel.offen { color: var(--text); -webkit-line-clamp: unset; display: block; }
.sz-unter { font-size: 11.5px; font-weight: 460; color: var(--text3); font-variant-numeric: tabular-nums; }
.sz-unter > span:first-child { font-weight: 540; }
.sz-unter em { font-style: normal; color: var(--signal); }
.sz.warte:hover .sz-unter, .sz.warte:focus-visible .sz-unter { color: var(--akzent-text); }
.sz.erledigt.fokus .sz-inhalt { background: color-mix(in srgb, var(--akzent) 12%, transparent); border-radius: 8px; margin: -6px 14px 14px -6px; padding: 6px; }
.lauf-karte { display: flex; flex-direction: column; gap: 5px; margin-top: -10px; padding: 10px; border-radius: 10px; background: color-mix(in srgb, var(--akzent) 4%, transparent); border: 1px solid color-mix(in srgb, var(--akzent) 22%, transparent); }
/* dunkel etwas kräftiger: 4 % hell, 7 % dunkel über --ist-dunkel aus tokens.css */
.lauf-karte { background: color-mix(in srgb, var(--akzent) calc(4% + var(--ist-dunkel) * 3%), transparent); }
.sz.fokus .lauf-karte { background: color-mix(in srgb, var(--akzent) 14%, transparent); }
.lk-rolle { font-size: 9.5px; font-weight: 680; letter-spacing: 1.3px; text-transform: uppercase; color: var(--akzent-text); font-stretch: 125%; }
.lk-titel { font-size: 13.5px; font-weight: 560; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lauf-karte.offen .lk-titel { display: block; }
.lk-schritt { font-size: 11.5px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lauf-karte .fortschritt { margin-top: 3px; }

/* Team-Leiste über dem Eingabefeld (TeamDock.swift) */
.dock { margin: 0 12px 8px; border: 1px solid var(--linie); border-radius: 16px; background: var(--flaeche); box-shadow: 0 6px 18px var(--schatten); overflow: hidden; }
.dock:empty { display: none; }
.dock-kopf { display: flex; align-items: center; gap: 12px; width: 100%; height: 46px; padding: 0 16px; text-align: left; }
.dock-kopf .gesichter { position: relative; display: flex; flex: none; }
.dock-kopf .gesichter .avatar { position: relative; box-shadow: 0 0 0 2px var(--flaeche); }
.dock-kopf .gesichter .avatar + .avatar { margin-left: -7px; }
.dock-kopf .gesichter .avatar:nth-of-type(1) { z-index: 3; } .dock-kopf .gesichter .avatar:nth-of-type(2) { z-index: 2; }
.dk-satz { flex: none; font-size: 13px; font-weight: 620; white-space: nowrap; }
.dk-satz.leise { font-weight: 600; color: var(--text2); }
.dk-titel { flex: 0 1 auto; min-width: 0; font-size: 13px; font-weight: 440; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-luft { flex: 1; min-width: 8px; }
.dk-dauer { flex: none; font-style: normal; font-size: 12px; font-weight: 560; color: var(--akzent-text); font-variant-numeric: tabular-nums; }
.dk-chevron { flex: none; display: grid; color: var(--text3); transition: transform .25s; }
.dk-chevron svg { width: 13px; height: 13px; stroke-width: 2.6; }
.dk-chevron.auf { transform: rotate(180deg); }
.dk-gut { flex: none; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; background: var(--gut); color: var(--flaeche); }
.dk-gut svg { width: 10px; height: 10px; stroke-width: 3.2; }
.dock-liste { max-height: min(380px, 50dvh); overflow-y: auto; padding-bottom: 8px; border-bottom: 1px solid var(--linie); overscroll-behavior: contain; }
.dock-ueber { padding: 14px 16px 6px; font-size: 10.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text3); }
.dz { margin: 0 6px; border-radius: 10px; cursor: pointer; outline: none; }
.dz:hover, .dz:focus-visible { background: color-mix(in srgb, var(--flaeche2) 70%, transparent); }
.dz.fokus { background: color-mix(in srgb, var(--akzent) 12%, transparent); }
.dz.laeuft { display: flex; gap: 12px; align-items: flex-start; padding: 11px 10px; }
.dz-ava { position: relative; flex: none; display: flex; }
.dz-ava .puls-ring { width: 34px; height: 34px; margin-top: -17px; }
.dz-inhalt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.dz-kopf { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.dz-kopf b { font-size: 13px; font-weight: 620; }
.dz-kopf span { font-size: 11.5px; font-weight: 460; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dz-kopf em { margin-left: auto; padding-left: 8px; font-style: normal; font-size: 11.5px; font-weight: 560; color: var(--akzent-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dz-titel { font-size: 13px; font-weight: 460; color: var(--text2); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dz-titel.offen { display: block; }
.dz-schritt { font-size: 11.5px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dz .fortschritt { margin-top: 4px; }
.dz.kompakt { padding: 8px 10px; }
.dz-zeile { display: flex; align-items: center; gap: 10px; }
.dz-zeile .dz-titel { flex: 1; min-width: 0; display: block; font-size: 12.5px; white-space: nowrap; text-overflow: ellipsis; }
.dz-wer { flex: none; font-size: 11.5px; font-weight: 520; color: var(--text3); }
.dz-zeit { flex: none; font-size: 11.5px; color: var(--text3); font-variant-numeric: tabular-nums; }
.dz-haken, .dz-fehler { flex: none; display: grid; color: var(--gut); }
.dz-fehler { color: var(--signal); }
.dz-haken svg, .dz-fehler svg { width: 11px; height: 11px; stroke-width: 3; }
.dz-schritte { padding: 2px 6px 2px 30px; }
@media (max-width: 899px) { .dz-kopf span { display: none; } .dock { margin-bottom: 6px; } }

/* ---------------------------------------------------------------- Aufgaben wie in der Mac-App (AufgabenView.swift) */
.frist { background: color-mix(in srgb, var(--text3) 12%, transparent); color: var(--text3); font-size: 11px; font-variant-numeric: tabular-nums; }
.frist.soon { background: color-mix(in srgb, var(--akzent-text) 12%, transparent); color: var(--akzent-text); }
.frist.over { background: color-mix(in srgb, var(--signal) 12%, transparent); color: var(--signal); }
.umschalter button svg { width: 13px; height: 13px; }
.umschalter b.leise { background: none; color: var(--text3); padding: 0; }
.umschalter button.an b.leise { color: var(--text2); }
.gruppe-kopf { margin: 18px 2px 6px; display: flex; gap: 6px; align-items: baseline; }
.gruppe-kopf span { font-weight: 560; letter-spacing: 0; }
.gruppe-kopf em { margin-left: auto; font-style: normal; text-transform: none; letter-spacing: 0; font-stretch: 100%; font-weight: 500; font-size: 11.5px; }
.leer.gross { padding: 80px 16px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.leer.gross b { font-size: 26px; font-weight: 360; letter-spacing: -1px; color: var(--text); }
.mzeile { align-items: center; }
.mzeile > button.inhalt { align-items: center; }
.mzeile .haken { align-self: flex-start; margin-top: 2px; }
.mzeile .rechts { display: flex; gap: 8px; align-items: center; flex: none; }
.mzeile .rechts .spalte-name { margin: 0; }
.mzeile.wartet .spalte-name { color: var(--akzent-text); }
.mzeile.zieht { opacity: .45; }
.mzeile[draggable="true"] { cursor: grab; }
.wer-platz { flex: none; align-self: flex-start; margin-top: 1px; display: grid; }
.wer-name { font-size: 11.5px; color: var(--text2); font-weight: 540; white-space: nowrap; }
.block-marke { display: inline-flex; gap: 4px; align-items: center; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
.block-marke svg { width: 10px; height: 10px; stroke-width: 2.4; }
.block-marke.extern { background: color-mix(in srgb, var(--text2) 12%, transparent); color: var(--text2); }
.block-marke.spaeter { background: color-mix(in srgb, var(--text3) 12%, transparent); color: var(--text3); }
.mensch-marke { display: inline-grid; place-items: center; flex: none; border-radius: 50%; background: var(--flaeche2); color: var(--text2); font-weight: 650; border: 1px solid var(--linie); line-height: 1; }
.heute-knopf { flex: none; display: inline-flex; gap: 5px; align-items: center; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--linie); font-size: 12px; font-weight: 580; color: var(--text2); background: var(--grund); }
.heute-knopf svg { width: 13px; height: 13px; }
.heute-knopf:hover { color: var(--akzent-text); border-color: color-mix(in srgb, var(--akzent-text) 40%, var(--linie)); }
.heute-knopf.aus svg { width: 11px; height: 11px; }
@media (min-width: 900px) { .mzeile { position: relative; } .mzeile .heute-knopf { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); opacity: 0; pointer-events: none; transition: opacity .15s; box-shadow: 0 0 0 6px var(--grund), -18px 0 14px 4px var(--grund); } .mzeile:hover .heute-knopf, .mzeile .heute-knopf:focus-visible { opacity: 1; pointer-events: auto; } }
.heute-ziel { border-radius: 14px; transition: background .15s, box-shadow .15s; }
.heute-ziel.bereit { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--akzent-text) 30%, transparent); }
.heute-ziel.drueber { background: color-mix(in srgb, var(--akzent) 7%, transparent); box-shadow: inset 0 0 0 1.5px var(--akzent-text); }
.heute-leer { margin: 2px 0 6px; padding: 16px 12px; border: 1px dashed var(--linie); border-radius: 12px; color: var(--text3); font-size: 13px; text-align: center; }
.personen { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 900px) { .personen { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); } }
.person-kachel { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.pk-kopf { display: flex; gap: 10px; align-items: center; padding: 0 2px 2px; }
.pk-kopf b { font-weight: 600; font-size: 14px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-kopf span { color: var(--text3); font-size: 12px; font-weight: 540; }
.pk-karte { text-align: left; background: var(--grund); border: 1px solid var(--linie); border-radius: 10px; padding: 9px 10px; display: flex; flex-direction: column; gap: 6px; }
.pk-karte:hover { border-color: color-mix(in srgb, var(--text3) 40%, var(--linie)); }
.pk-karte.an { border-color: color-mix(in srgb, var(--akzent) 60%, transparent); background: var(--flaeche2); }
.pk-titel { font-size: 13.5px; font-weight: 570; line-height: 1.3; }
.pk-meta { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.spalten-marke { display: inline-flex; gap: 5px; align-items: center; font-size: 11.5px; color: var(--text3); font-weight: 520; }
.spalten-marke svg { width: 12px; height: 12px; }
.kanban .spalte-kopf { align-items: center; }
.kanban .spalte-kopf svg { width: 12px; height: 12px; color: var(--text3); stroke-width: 2.2; }
.kanban .leer-spalte { height: 64px; display: grid; place-items: center; color: var(--text3); font-size: 12px; border-style: dashed; }
.bkarte .wer { display: flex; gap: 6px; align-items: center; font-weight: 540; }
.kdetail-kopf { justify-content: flex-start; gap: 6px; }
.kdetail-kopf svg { width: 12px; height: 12px; stroke-width: 2.2; }
.kdetail-kopf .zu-karte { margin-left: auto; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: var(--text3); }
.kdetail-kopf .zu-karte:hover { background: var(--flaeche2); }
.kdetail-kopf .zu-karte svg { width: 14px; height: 14px; }
.kdetail .meta .wer { display: inline-flex; gap: 6px; align-items: center; color: var(--text2); font-weight: 560; }
.kdetail .meta code { font: 10.5px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text3); }
.kdetail .aktionen .knopf { display: inline-flex; gap: 6px; align-items: center; justify-content: center; padding: 9px 14px; font-size: 13.5px; }
.kdetail .aktionen .knopf svg { width: 14px; height: 14px; }
.kdetail .kd-titel { font-size: 11.5px; font-weight: 600; color: var(--text3); margin-bottom: -4px; }
.kdetail .erklaerung { font-size: 14px; line-height: 1.5; }
.kdetail .verlauf-k { border-left: none; padding-left: 0; gap: 0; }
.kdetail .verlauf-k > div { position: relative; padding: 0 0 10px 16px; }
.kdetail .verlauf-k > div::before { content: ""; position: absolute; left: 0; top: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--text3); }
.kdetail .verlauf-k > div.neu::before { background: var(--akzent-text); }
.kdetail .verlauf-k > div:not(:last-child)::after { content: ""; position: absolute; left: 2px; top: 13px; bottom: 0; width: 1px; background: var(--linie); }
.kd-antwort { display: flex; gap: 8px; align-items: flex-end; padding: 6px 6px 6px 14px; border-radius: 18px; background: var(--flaeche2); margin-top: 4px; }
.kd-antwort textarea { flex: 1; border: 0; background: none; resize: none; outline: none; padding: 6px 0; font-size: 14px; min-height: 0; }
.kd-antwort .senden { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--akzent); color: var(--auf-akzent); }
.kd-antwort .senden svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.kd-antwort .senden:disabled { opacity: .5; }
@media (max-width: 899px) { .kd-antwort textarea, .kd-antwort textarea.feld { font-size: 16px; } }
@media (max-width: 899px) {
  .seiten-kopf .umschalter { width: 100%; }
  .umschalter button { flex: 1; justify-content: center; padding: 7px 4px; white-space: nowrap; gap: 5px; }
  .umschalter button svg { display: none; }
  .mzeile > button.inhalt { flex-direction: column; align-items: stretch; gap: 6px; }
  .mzeile .rechts { flex-wrap: wrap; }
  .heute-knopf { width: 34px; height: 34px; padding: 0; justify-content: center; align-self: center; border-radius: 50%; }
  .heute-knopf span { display: none; }
  .heute-knopf svg, .heute-knopf.aus svg { width: 16px; height: 16px; }
  .heute-knopf.aus { color: var(--akzent-text); border-color: color-mix(in srgb, var(--akzent-text) 45%, var(--linie)); background: color-mix(in srgb, var(--akzent) 9%, var(--grund)); }
}
/* Aufgaben: lange Titel, Zusammenfassungen und URLs nie breiter als die Spalte (Max 05.11.: am Handy horizontal scrollbar) */
.mzeile, .mzeile .text, .mzeile .titel, .mzeile .rechts, .gruppe, .person-kachel, .pk-karte, .pk-meta, .kdetail, .kdetail .meta, .bkarte { min-width: 0; }
.mzeile .titel b { min-width: 0; flex: 0 1 auto; }
.mzeile .titel .bmarke, .pk-meta .frist, .spalten-marke { flex: none; }
.mzeile .zus { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.pk-titel, .bkarte .titel { overflow-wrap: anywhere; }
.pk-titel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kdetail h2, .kdetail .erklaerung, .kdetail .verlauf-k, .kdetail .zeile-roh, .kdetail .felder dd { overflow-wrap: anywhere; min-width: 0; }
.kdetail .erklaerung pre, .kdetail .erklaerung table { max-width: 100%; overflow-x: auto; }
@media (max-width: 899px) {
  .mzeile .titel { flex-wrap: nowrap; }
  .bkarte .titel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .kanban .spalte { flex-basis: min(260px, calc(100vw - 64px)); min-width: 0; }
}
.blatt-inhalt .kdetail { clear: both; padding: 4px 0 0; }
/* PIN als Text mit Punkten (siehe PIN_FELD in app.js) */
input[data-pin] { -webkit-text-security: disc; text-security: disc; letter-spacing: .2em; }
.gewaehlt-paket { outline: 2px solid var(--akzent-text); outline-offset: 2px; border-radius: 14px; transition: outline-color .6s; }
/* ---------------------------------------------------------------- Gemeinsame Aufgaben (docs/aufgaben.md), Optik wie AufgabenView.swift */
.neu-aufgabe { flex: none; display: inline-flex; gap: 6px; align-items: center; padding: 6px 13px; border-radius: var(--r-pille); border: 1px solid var(--linie); font-size: 12.5px; font-weight: 580; color: var(--text2); background: var(--grund); white-space: nowrap; }
.neu-aufgabe svg { width: 13px; height: 13px; stroke-width: 2.2; }
.neu-aufgabe:hover { color: var(--text); border-color: color-mix(in srgb, var(--text3) 40%, var(--linie)); }
.dienst-stand { display: flex; gap: 5px; align-items: center; margin-top: 3px; }
.dienst-stand svg { width: 12px; height: 12px; flex: none; }
.dienst-fehler { margin-top: 8px; display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--signal) 9%, transparent); color: var(--text2); font-size: 12.5px; line-height: 1.4; max-width: 560px; overflow-wrap: anywhere; }
.dienst-fehler svg { width: 14px; height: 14px; flex: none; color: var(--signal); margin-top: 1px; }
.schloss { display: inline-grid; place-items: center; flex: none; color: var(--text3); }
.schloss svg { width: 12px; height: 12px; stroke-width: 2.1; }
.a-marke { display: inline-flex; gap: 4px; align-items: center; font-size: 11.5px; font-weight: 560; color: var(--akzent-text); white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.a-marke svg { width: 11px; height: 11px; flex: none; stroke-width: 2.2; }
.warte-auf { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.bkarte .oben-l { display: inline-flex; gap: 6px; align-items: center; min-width: 0; }
.bkarte .b-marken { display: flex; gap: 8px; flex-wrap: wrap; min-width: 0; }
.pk-meta .schloss, .pk-meta .a-marke { margin-right: auto; }
.pk-meta .spalten-marke + .schloss { margin-left: -2px; }
.vs-knoepfe { flex: none; display: flex; gap: 6px; align-items: center; }
.vs-knopf { display: inline-flex; gap: 5px; align-items: center; padding: 5px 12px; border-radius: var(--r-pille); border: 1px solid var(--linie); background: var(--grund); font-size: 12px; font-weight: 580; color: var(--text2); white-space: nowrap; }
.vs-knopf svg { width: 12px; height: 12px; stroke-width: 2.4; }
.vs-knopf.ja { background: var(--akzent); color: var(--auf-akzent); border-color: transparent; }
.vs-knopf:not(.ja):hover { color: var(--text); border-color: color-mix(in srgb, var(--text3) 40%, var(--linie)); }
.adetail .a-zeile { font-size: 14px; color: var(--text2); line-height: 1.45; margin-top: -4px; overflow-wrap: anywhere; }
.adetail .a-text { font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); }
.adetail .felder { margin: 0; }
.adetail .felder dd { margin: 0; overflow-wrap: anywhere; min-width: 0; }
.adetail .felder dt { color: var(--text3); font-weight: 560; }
.kd-privat { display: inline-flex; gap: 4px; align-items: center; margin-left: 4px; font-weight: 560; }
.kd-privat svg { width: 11px !important; height: 11px !important; }
.adetail .aktionen .knopf { flex: none; padding: 7px 13px; border-radius: var(--r-pille); font-size: 13px; }
.adetail .aktionen .knopf.offen { border-color: var(--akzent-text); color: var(--akzent-text); background: color-mix(in srgb, var(--akzent) 7%, var(--grund)); }
.adetail .a-leise { font-size: 12.5px; color: var(--text3); margin-top: -4px; }
.a-vorschlag { display: flex; flex-direction: column; gap: 10px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--akzent) 7%, transparent); border: 1px solid color-mix(in srgb, var(--akzent-text) 30%, var(--linie)); }
.a-vorschlag > div:first-child { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--text2); }
.a-vorschlag b { color: var(--text); font-weight: 600; }
.a-panel { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 12px; border: 1px solid var(--linie); background: var(--flaeche); min-width: 0; }
.a-panel > .versal { margin: 0; }
.a-label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 560; color: var(--text3); min-width: 0; }
.a-label[hidden] { display: none; }
.a-feld { width: 100%; box-sizing: border-box; min-width: 0; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--linie); background: var(--grund); color: var(--text); font: inherit; font-size: 16px; font-weight: 440; outline: none; }
.a-feld:focus { border-color: var(--akzent-text); }
textarea.a-feld { resize: vertical; line-height: 1.4; }
input[type="date"].a-feld { min-height: 40px; }
@media (min-width: 900px) { .a-feld { font-size: 14px; } }
.a-reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.a-knoepfe { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.a-knoepfe .knopf { flex: none; padding: 8px 16px; border-radius: var(--r-pille); font-size: 13.5px; }
.a-wahl { display: flex; flex-direction: column; gap: 2px; max-height: 280px; overflow-y: auto; overscroll-behavior-y: contain; }
.a-person { display: flex; gap: 10px; align-items: center; width: 100%; padding: 7px 8px; border-radius: 10px; text-align: left; }
.a-person:not(:disabled):hover { background: var(--flaeche2); }
.a-person > span:not(.avatar):not(.mensch-marke) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.a-person b { font-size: 13.5px; font-weight: 560; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-person i { font-style: normal; font-size: 11.5px; color: var(--text3); }
.a-person em { flex: none; font-style: normal; font-size: 11.5px; font-weight: 580; color: var(--akzent-text); }
.a-person:disabled { cursor: default; }
.a-person:disabled:not(.hat) { opacity: .5; }
.a-person.hat em { color: var(--text3); }
.a-staende { gap: 6px; }
.a-staende .chip { padding: 5px 11px; font-size: 12.5px; }
.a-neu { display: flex; flex-direction: column; gap: 12px; clear: both; }
.a-neu h2 { margin: 0 0 2px; }
.mit-sym { display: inline-flex; gap: 6px; align-items: center; }
.mit-sym svg { width: 13px; height: 13px; color: var(--text3); }
.dialog-karte textarea.a-feld { margin-top: 12px; }
@media (max-width: 899px) {
  .suche { font-size: 16px; }
  .neu-aufgabe { width: 34px; height: 34px; padding: 0; justify-content: center; border-radius: 50%; align-self: flex-start; margin-top: 2px; }
  .neu-aufgabe span { display: none; }
  .neu-aufgabe svg { width: 16px; height: 16px; }
  .mzeile.vorschlag { flex-wrap: wrap; }
  .mzeile.vorschlag > button.inhalt { flex-basis: calc(100% - 34px); }
  .vs-knoepfe { width: 100%; padding-left: 34px; box-sizing: border-box; }
  .vs-knopf { flex: 1; justify-content: center; padding: 8px 10px; font-size: 13px; }
  .a-reihe { grid-template-columns: 1fr; }
  .bkarte .b-marken { flex-wrap: nowrap; overflow: hidden; }
}

/* Fragenrunde (ask_user): ersetzt das Eingabefeld, Baustein FragenrundeKarte in Fragenrunde.swift */
.fragenrunde-ort { display: contents; }
.fragenrunde { margin: 8px 12px 10px; padding: 14px 16px 10px; border-radius: var(--r-karte); background: var(--flaeche); border: 1px solid var(--linie); }
.fr-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.fr-kopf b { font-size: 12px; font-weight: 600; color: var(--text2); }
.fr-kopf span { font-size: 12px; color: var(--text3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-text { font-size: 15px; line-height: 1.45; margin-bottom: 10px; }
.fr-text p { margin: 0 0 6px; }
.fr-optionen { display: flex; flex-direction: column; gap: 4px; }
.fr-option { display: flex; align-items: center; gap: 10px; text-align: left; padding: 8px 10px; border-radius: 10px; background: none; color: var(--text); font-size: 14px; border: 1px solid transparent; }
.fr-option:hover { background: var(--flaeche2); }
.fr-option:disabled { opacity: .55; }
.fr-option kbd { flex: none; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font: inherit; font-size: 11.5px; font-weight: 600; color: var(--text2); background: var(--flaeche2); }
.fr-option span { flex: 1; min-width: 0; }
.fr-option em { flex: none; font-style: normal; font-size: 11px; font-weight: 600; color: var(--akzent-text); }
.fr-option.gewaehlt { border-color: var(--akzent-text); }
.fr-option.gewaehlt kbd { background: var(--akzent); color: var(--auf-akzent); }
.fr-frei { display: flex; align-items: flex-end; gap: 8px; margin-top: 8px; }
.fr-frei textarea { flex: 1; resize: none; border: 1px solid var(--linie); background: var(--grund); border-radius: 12px; padding: 8px 12px; max-height: 110px; outline: none; font-size: 15px; color: var(--text); }
.fr-frei textarea:focus { border-color: var(--akzent-text); }
.fr-frei button { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--akzent); color: var(--auf-akzent); }
.fr-frei .mikro { background: var(--flaeche2); color: var(--text2); }
.fr-frei svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fr-frei button:disabled { opacity: .45; }
.fr-aufnahme { align-items: center; min-height: 38px; }
.fr-aufnahme .weg { background: none; color: var(--text3); }
.fr-aufnahme .rot { width: 10px; height: 10px; border-radius: 50%; background: var(--k-aufnahme); animation: aufnahme-puls 1.2s ease-in-out infinite; flex: none; }
.fr-aufnahme .zeit { flex: 1; font-variant-numeric: tabular-nums; color: var(--text2); font-size: 15px; }
.fragenrunde:not(.fr-mit-text) .fr-frei .los, .fragenrunde.fr-mit-text .fr-frei .mikro { display: none; }
.fr-hinweis { margin-top: 8px; font-size: 12.5px; color: var(--text2); }
.fr-fuss { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.fr-fuss button { display: inline-flex; align-items: center; gap: 4px; background: none; color: var(--text2); font-size: 12.5px; font-weight: 540; padding: 4px 6px; border-radius: 8px; }
.fr-fuss button:hover { color: var(--text); background: var(--flaeche2); }
.fr-fuss button:disabled { opacity: .45; }
.fr-fuss svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fr-aus { color: var(--text3) !important; }
.fr-holen { display: flex; width: fit-content; align-items: center; gap: 8px; margin: 6px 12px 2px; padding: 6px 12px; border-radius: 999px; background: var(--flaeche); border: 1px solid var(--linie); color: var(--text2); font-size: 12.5px; }
.fr-holen svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.1; }
.fr-holen b { font-weight: 600; color: var(--akzent-text); }
@media (min-width: 900px) { .fragenrunde, .fr-holen { margin-left: max(12px, calc((100% - 860px) / 2)); margin-right: max(12px, calc((100% - 860px) / 2)); } }

.fragen-ergebnis { max-width: 680px; margin-top: 12px; padding: 9px 14px; border-radius: 14px; border: 1px solid var(--linie); background: var(--flaeche); cursor: pointer; }
.fe-kopf { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.fe-kopf svg { width: 15px; height: 15px; fill: none; stroke: var(--gut); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fe-kopf b { font-weight: 560; }
.fe-kopf em { margin-left: auto; width: 14px; height: 14px; color: var(--text3); transition: transform .2s; }
.fe-kopf em svg { stroke: currentColor; width: 14px; height: 14px; }
.fragen-ergebnis.offen .fe-kopf em { transform: rotate(180deg); }
.fe-liste { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--linie); display: flex; flex-direction: column; gap: 6px; }
.fe-zeile { display: flex; gap: 12px; align-items: baseline; font-size: 13px; }
.fe-zeile span { flex: 0 1 44%; color: var(--text2); }
.fe-zeile b { flex: 1; min-width: 0; font-weight: 520; }
.fe-zeile b.art-uebersprungen { color: var(--text3); font-weight: 420; }
