/* Ekasit ToDo – Modul-Stile auf Basis von ekasit.css (0.4.1). Alle Farben über die Ekasit-Variablen. */

.sym { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sym.s9 { width: 9px; height: 9px; } .sym.s10 { width: 10px; height: 10px; } .sym.s11 { width: 11px; height: 11px; } .sym.s12 { width: 12px; height: 12px; } .sym.s13 { width: 13px; height: 13px; } .sym.s14 { width: 14px; height: 14px; } .sym.s16 { width: 16px; height: 16px; } .sym.s18 { width: 18px; height: 18px; } .sym.s20 { width: 20px; height: 20px; } .sym.s36 { width: 36px; height: 36px; }
.logo-svg { fill: currentColor; stroke: none; }

/* Untermenü mit Zählern */
.untermenue a { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.untermenue a .zahl { background: transparent; color: var(--side-muted); font-weight: 500; font-size: 12px; min-width: 0; height: auto; padding: 0; }
.untermenue a .zahl.err { color: var(--rot); font-weight: 700; }
.untermenue a.on .zahl { color: var(--side-sub-on-text); }

/* Kopfleiste: Suche schmaler, damit Uhren Platz haben */
.kopfleiste .suche { width: 300px; flex-basis: 300px; }
.kopfleiste .benutzer { cursor: pointer; }

/* Inhalt: Liste + Schublade */
.todo-raster { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.todo-raster.mit-schublade { grid-template-columns: minmax(0, 1fr) 400px; }
.todo-liste { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.seitenkopf .pills { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.seitenkopf h1 small { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 8px; }

/* Schnelleingabe */
.schnell { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; }
.feld { min-width: 0; }
.feld input { width: 0; }
.schnell .zeile-eingabe { display: flex; gap: 10px; align-items: center; }
.schnell .feld { flex: 1 1 auto; height: 42px; }
.schnell .feld input { font-size: 14px; }
.schnell .feld .ib { width: 30px; height: 30px; border: 0; color: var(--muted); }
.schnell .feld .ib:hover { color: var(--text); }
.schnell .feld .ib.an { color: var(--link); }
.schnell .knopf { height: 42px; }
.schnell .verstanden { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); min-height: 20px; padding-left: 4px; }
.schnell .verstanden .yuna { display: inline-flex; align-items: center; gap: 6px; color: var(--purple-text); font-weight: 600; }
.schnell .verstanden .yuna .logo-svg { width: 14px; height: 14px; }
.schnell .optionen { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 12px; }
.wahlpille { display: inline-flex; border: 1px solid var(--ghost-line); border-radius: 999px; padding: 2px; gap: 2px; }
.wahlpille[hidden] { display: none; }
.wahlpille button { border: 0; background: transparent; color: var(--muted); border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 600; }
.wahlpille button.on { background: var(--lila); color: #fff; }
.wahlpille button.on.warn { background: var(--gelb); color: #3a2a00; }
.wahlpille button.on.grey { background: var(--grey-bg); color: var(--text); }

/* Filter-Reiter + Ansichten */
.filterzeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.filterzeile .reiter { flex: 1 1 auto; min-width: 0; border-bottom: 0; }
.filterzeile .reiter a { padding: 8px 14px; border-bottom-width: 2px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.filterzeile .reiter a .zahl { height: 18px; min-width: 18px; font-size: 10px; background: var(--grey-bg); color: var(--grey-text); }
.filterzeile .reiter a.on .zahl { background: var(--purple-bg); color: var(--purple-text); }
.ansichten a { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; border: 1px solid var(--ghost-line); color: var(--muted); cursor: pointer; background: transparent; }
.chip:hover { color: var(--text); background: var(--ghost-hover); }
.chip.on { border-color: var(--lila); color: var(--link); background: var(--purple-bg); }
.chip .farbe { width: 8px; height: 8px; border-radius: 50%; }
.chip .x { opacity: .6; }

/* Gruppen und Zeilen */
.gruppe { display: grid; gap: 8px; }
.gruppe .abschnitt { display: flex; align-items: center; gap: 8px; padding: 4px 2px 0; }
.gruppe .abschnitt .zahl { font-size: 10px; height: 18px; min-width: 18px; background: var(--grey-bg); color: var(--grey-text); }
.aufgabe-zeile { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 10px; cursor: pointer; transition: border-color .12s, background .12s; }
.aufgabe-zeile:hover { background: var(--hover); }
.aufgabe-zeile.on { border-color: rgba(163,67,255,.55); background: var(--card-2); }
.aufgabe-zeile.frisch { animation: frisch 1.2s ease-out; }
@keyframes frisch { from { box-shadow: 0 0 0 3px rgba(163,67,255,.55); } to { box-shadow: 0 0 0 0 rgba(163,67,255,0); } }
.aufgabe-zeile.erledigt-zeile .tx { text-decoration: line-through; color: var(--muted); }
.aufgabe-zeile.zurueck-erhalten { border-color: rgba(78,204,72,.6); }
.aufgabe-zeile .titel { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 500; }
.aufgabe-zeile .titel .tx { overflow: hidden; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.aufgabe-zeile .titel { flex-wrap: wrap; }
.aufgabe-zeile .titel .stern { color: var(--gelb); display: inline-flex; }
.aufgabe-zeile .titel .stern .sym { fill: currentColor; }
.aufgabe-zeile .unterzeile { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); margin-top: 3px; flex-wrap: wrap; }
.aufgabe-zeile .unterzeile .mini { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.aufgabe-zeile .meta { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.aufgabe-zeile .meta .mini { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; color: var(--muted); }
.kreis { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--muted); flex: 0 0 20px; display: inline-flex; align-items: center; justify-content: center; color: #021e56; background: transparent; cursor: pointer; padding: 0; }
.kreis:hover { border-color: var(--gruen); }
.kreis.ok { border-color: var(--gruen); background: var(--gruen); }
.kreis.warn { border-color: var(--gelb); background: var(--gelb); }
.kreis.gesperrt { border-color: var(--lila); color: var(--link); cursor: not-allowed; }
.kreis .sym { stroke-width: 3; }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--cyan); color: #021e56; font-weight: 600; font-size: 10px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; border: 2px solid var(--card); box-sizing: content-box; }
.avatar.b { background: var(--gelb); } .avatar.c { background: var(--lila); color: #fff; } .avatar.d { background: var(--gruen); } .avatar.e { background: var(--magenta); color: #fff; } .avatar.team { background: var(--grau); color: #fff; border-radius: 8px; } .avatar.gast { background: var(--gelb); border-radius: 8px; } .avatar.yuna { background: var(--navy); color: var(--purple-text); border: 2px solid var(--lila); }
.avatare { display: inline-flex; }
.avatare .avatar + .avatar { margin-left: -8px; }
.pill .sym { width: 12px; height: 12px; }
.pill.gruen-rueck { background: var(--ok-bg); color: var(--ok-text); border: 1px solid rgba(78,204,72,.5); }
.etikett-punkt { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.leer { padding: 32px 20px; }

/* Tafel */
.tafel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.tafel .spalte-k { padding: 12px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-height: 160px; align-content: start; min-width: 0; }
.tafelkarte, .tafelkarte .titel { min-width: 0; }
.tafelkarte .titel .ellipse { min-width: 0; flex: 1 1 auto; white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.gruppe, .schublade, .block, .todo-seite, .projekt-k, .vorlage-k, .ki-kasten, .ki-kasten .eintrag, .verlauf { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.tafel .spalte-k.ziel { outline: 2px dashed var(--lila); outline-offset: -2px; }
.tafel .spaltenkopf { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 6px; font-weight: 600; font-size: 13px; }
.tafel .spaltenkopf .zahl { background: var(--grey-bg); color: var(--grey-text); }
.tafelkarte { background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 8px; cursor: grab; }
.tafelkarte:hover { border-color: rgba(163,67,255,.5); }
.tafelkarte.on { border-color: var(--lila); }
.tafelkarte .titel { font-weight: 500; font-size: 13px; display: flex; gap: 6px; align-items: center; }
.tafelkarte .unten { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.tafelkarte .unten .pills { display: flex; gap: 4px; flex-wrap: wrap; }
.tafelkarte.ziehe { opacity: .5; }

/* Schublade (Detail) */
.schublade { position: sticky; top: calc(var(--top-h) + 20px); display: grid; gap: 14px; padding: 16px 18px 18px; align-content: start; max-height: calc(100vh - var(--top-h) - 44px); overflow: auto; }
.schublade .kopf-s { display: flex; align-items: flex-start; gap: 8px; }
.schublade .kopf-s h2 { font-size: 16px; font-weight: 600; flex: 1 1 auto; min-width: 0; line-height: 1.3; }
.schublade .kopf-s h2 input { width: 100%; background: transparent; border: 0; border-bottom: 1px dashed transparent; font: inherit; color: inherit; outline: none; padding: 0; }
.schublade .kopf-s h2 input:hover, .schublade .kopf-s h2 input:focus { border-bottom-color: var(--ghost-line); }
.schublade .kopf-s .ib { border: 0; color: var(--muted); }
.schublade .kopf-s .ib:hover { color: var(--text); }
.schublade .reiter a { padding: 8px 12px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.schublade .reiter a .zahl { height: 18px; min-width: 18px; font-size: 10px; background: var(--grey-bg); color: var(--grey-text); }
.schublade .pills { display: flex; gap: 6px; flex-wrap: wrap; }
.schublade .kv { grid-template-columns: 96px minmax(0, 1fr); gap: 8px 12px; align-items: center; font-size: 13px; }
.schublade .kv dt { color: var(--muted); font-size: 12px; }
.schublade .kv dd { min-width: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.schublade .kv select, .schublade .kv input[type=datetime-local], .schublade .kv input[type=text] { background: var(--input-bg); border: 1px solid var(--input-line); border-radius: 8px; color: var(--text); font-size: 12px; height: 32px; padding: 0 8px; max-width: 100%; }
.schublade .kv select option { color: #1f2a4a; }
.schublade .feldname textarea { min-height: 64px; width: 100%; }
.schublade .block { display: grid; gap: 8px; }
.schublade .block .ueber { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.schublade .block .ueber .ib { width: 26px; height: 26px; border: 0; color: var(--muted); }
.teil { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.teil .kreis { width: 18px; height: 18px; flex-basis: 18px; }
.teil.an span.tx { text-decoration: line-through; color: var(--muted); }
.teil .tx { flex: 1 1 auto; min-width: 0; }
.teil .ib { width: 24px; height: 24px; border: 0; color: var(--muted); opacity: 0; }
.teil:hover .ib { opacity: 1; }
.neu-zeile { display: flex; gap: 8px; }
.neu-zeile .feld { flex: 1 1 auto; height: 34px; }
.neu-zeile .feld input { font-size: 12px; }
.medien { display: flex; gap: 8px; flex-wrap: wrap; }
.medien .m { position: relative; width: 84px; height: 64px; border-radius: 8px; background: var(--input-bg); border: 1px solid var(--input-line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10px; color: var(--muted); cursor: pointer; overflow: hidden; }
.medien .m img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.medien .m .unterschrift { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(2,30,86,.75); color: #fff; font-size: 9px; padding: 2px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.medien .m.plus { border-style: dashed; background: transparent; }
.medien .m.beleg { border-color: var(--gruen); }
.medien .m.ki-bild { border-color: var(--lila); color: var(--purple-text); }
.medien .m.ki-bild .skizze { position: absolute; inset: 0; }
.medien .m.audio { width: 150px; flex-direction: row; gap: 6px; padding: 0 8px; color: var(--text); }
.medien .m.audio .ib { width: 26px; height: 26px; border: 0; color: var(--link); }
.medien .m.audio .balken { flex: 1 1 auto; }
.ki-kasten { border: 1px solid var(--lila); background: var(--purple-bg); border-radius: 10px; padding: 10px 12px; display: grid; gap: 8px; }
.ki-kasten .kikopf { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--purple-text); font-size: 12px; cursor: pointer; }
.ki-kasten .kikopf .logo-svg { width: 16px; height: 16px; }
.ki-kasten .kikopf .platz { flex: 1 1 auto; }
.ki-kasten .eintrag { display: grid; gap: 6px; font-size: 12px; padding-top: 6px; border-top: 1px dashed rgba(163,67,255,.35); }
.ki-kasten .eintrag:first-of-type { border-top: 0; padding-top: 0; }
.ki-kasten .eintrag .zeit { font-size: 11px; color: var(--muted); }
.ki-kasten .eintrag .art { font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--purple-text); }
.ki-kasten .ki-knoepfe { display: flex; gap: 6px; flex-wrap: wrap; }
.ki-kasten .ki-knoepfe .knopf { height: 28px; padding: 0 10px; font-size: 11px; }
.ki-kasten .frage { display: flex; gap: 6px; }
.ki-kasten .frage .feld { flex: 1 1 auto; height: 32px; }
.ki-kasten .frage .feld input { font-size: 12px; }
.ki-kasten.leer-ki { padding: 8px 12px; }
.ki-kasten.leer-ki .eintrag, .ki-kasten.leer-ki .ki-knoepfe, .ki-kasten.leer-ki .frage { display: none; }
.ki-kasten.leer-ki.auf .eintrag, .ki-kasten.leer-ki.auf .ki-knoepfe, .ki-kasten.leer-ki.auf .frage { display: flex; }
.hinw { display: flex; gap: 8px; align-items: flex-start; border-radius: 8px; padding: 8px 10px; font-size: 12px; }
.hinw.warn { background: var(--warn-bg); border: 1px solid rgba(236,180,3,.4); color: var(--warn-text); }
.hinw.ok { background: var(--ok-bg); border: 1px solid rgba(78,204,72,.35); color: var(--ok-text); }
.hinw.info { background: var(--info-bg); border: 1px solid rgba(69,170,242,.4); color: var(--info-text); }
.hinw.purple { background: var(--purple-bg); border: 1px solid rgba(163,67,255,.45); color: var(--purple-text); }
.knoepfe { display: flex; gap: 6px; flex-wrap: wrap; }
.knoepfe .knopf.err { background: var(--rot); }
.kommentar { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; font-size: 13px; }
.kommentar .wer { font-weight: 600; font-size: 12px; display: flex; gap: 8px; align-items: baseline; }
.kommentar .wer small { font-weight: 400; color: var(--muted); font-size: 11px; }
.kommentar .text { white-space: pre-wrap; }
.verlauf .zeitleiste .eintrag .text b { font-weight: 600; }
.verlauf .zeitleiste .eintrag .text small { display: block; color: var(--muted); font-size: 11px; }
.beleg-daten { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 4px 10px; font-size: 12px; }
.beleg-daten dt { color: var(--muted); } .beleg-daten dd { margin: 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11px; word-break: break-all; }
.zeiterfassung { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.zeiterfassung .uhrzeit { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; font-weight: 600; }
.karte-mini { position: relative; height: 120px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--input-bg); }
.karte-mini svg { width: 100%; height: 100%; display: block; }
.karte-mini .nadel { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); color: var(--rot); }
.karte-mini .nadel .sym { fill: currentColor; stroke: #fff; stroke-width: 1; width: 28px; height: 28px; }

/* Vollbild-Seite */
.vollbild { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.vollbild .schublade { position: static; max-height: none; }
.vollbild .haupt-k { padding: 20px 22px; display: grid; gap: 16px; }
.vollbild .haupt-k h1 { font-size: 22px; }
.vollbild .rechts { display: grid; gap: 16px; }

/* Einstellungen, Projekte, Vorlagen, Wiederkehrend, Etiketten */
.todo-seite { display: grid; gap: 16px; }
.todo-seite .karte.innen { display: grid; gap: 12px; }
.projekt-k { display: grid; gap: 10px; padding: 16px 18px; }
.projekt-k .kopf-p { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.projekt-k .kopf-p h3 { font-size: 15px; }
.projekt-k .fortschritt { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.projekt-k .fortschritt .balken { flex: 1 1 auto; }
.projekt-k .aufgaben-kurz { display: grid; gap: 4px; }
.projekt-k .aufgaben-kurz a { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.projekt-k .aufgaben-kurz a:hover { background: var(--hover); }
.vorlage-k { display: grid; gap: 8px; padding: 14px 16px; }
.vorlage-k .titel-v { font-weight: 600; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.vorlage-k ul { margin: 0; padding-left: 18px; font-size: 12px; color: var(--muted); display: grid; gap: 2px; }
.rechte-tabelle td, .rechte-tabelle th { text-align: center; }
.rechte-tabelle td:first-child, .rechte-tabelle th:first-child { text-align: left; }
.rechte-tabelle .z { display: inline-flex; width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--ghost-line); align-items: center; justify-content: center; cursor: pointer; }
.rechte-tabelle .z.e { background: var(--lila); border-color: var(--lila); color: #fff; }
.etikett-zeile { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.etikett-zeile:last-child { border-bottom: 0; }
.etikett-zeile input[type=color] { width: 28px; height: 28px; border: 0; background: transparent; padding: 0; cursor: pointer; }
.etikett-zeile .name-e { flex: 1 1 auto; }
.etikett-zeile .zahl-e { font-size: 12px; color: var(--muted); }
.kennzahlen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.startkarte .liste-k a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; color: var(--text); cursor: pointer; }
.startkarte .liste-k a:hover { background: var(--hover); }

/* Meldungen (Glocke) */
.meldungen-fenster { position: fixed; top: calc(var(--top-h) + 6px); right: 90px; width: 380px; max-height: 70vh; overflow: auto; z-index: 45; box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.meldungen-fenster .mk { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); font-weight: 600; }
.meldungen-fenster .mk a { font-size: 12px; cursor: pointer; }
.meldungen-fenster .m-eintrag { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line-2); font-size: 13px; cursor: pointer; }
.meldungen-fenster .m-eintrag:hover { background: var(--hover); }
.meldungen-fenster .m-eintrag.neu { background: var(--purple-bg); }
.meldungen-fenster .m-eintrag small { display: block; color: var(--muted); font-size: 11px; }

/* Modal-Inhalte */
.modal .karte { max-width: 560px; }
.modal .teil .formular { grid-template-columns: minmax(0, 1fr); }
.modal .kopfzeile h3 { font-size: 16px; }
.modal .ib.schliessen { border: 0; }
.modal .gast-link { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; background: var(--code-bg); padding: 8px 10px; border-radius: 8px; word-break: break-all; }
.modal .vorlagen-wahl a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 8px; cursor: pointer; color: var(--text); }
.modal .vorlagen-wahl a:hover { background: var(--hover); }
.modal .feld.mehrzeilig { height: auto; min-height: 38px; }
.modal .feld.mehrzeilig textarea { flex: 1 1 auto; background: transparent; border: 0; outline: none; color: var(--text); min-height: 60px; resize: vertical; }
.modal textarea { width: 100%; }
.modal .wahl-liste { display: grid; gap: 6px; }
.modal .wahl-liste label { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-size: 13px; }
.modal .wahl-liste label:has(input:checked) { border-color: var(--lila); background: var(--purple-bg); }
.modal input[type=checkbox], .modal input[type=radio] { accent-color: var(--lila); width: 16px; height: 16px; margin: 0; }

/* Toast */
.meldung { display: flex; }
.meldung[hidden] { display: none; }

/* Prototyp-Leiste */
.prototyp-leiste { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; gap: 14px; padding: 6px 16px; background: var(--card); border-top: 1px solid var(--line); font-size: 12px; flex-wrap: wrap; }
.prototyp-leiste label { display: flex; align-items: center; gap: 6px; }
.prototyp-leiste select { background: var(--input-bg); border: 1px solid var(--input-line); border-radius: 6px; color: var(--text); font-size: 12px; height: 28px; padding: 0 6px; }
.prototyp-leiste select option { color: #1f2a4a; }
.inhalt { padding-bottom: 70px; }

/* Druckansicht (PDF) */
@media print {
  .seitenleiste, .kopfleiste, .prototyp-leiste, .meldungen-fenster, .toast, .knoepfe, .schublade .reiter { display: none !important; }
  body { background: #fff; color: #000; }
  .inhalt { padding: 0; }
  .karte { border-color: #ccc; box-shadow: none; }
}

@media (max-width: 1280px) {
  .todo-raster.mit-schublade { grid-template-columns: minmax(0, 1fr); }
  .schublade { position: static; max-height: none; }
  .vollbild { grid-template-columns: minmax(0, 1fr); }
  .kennzahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .tafel { grid-template-columns: minmax(0, 1fr); }
  .kopfleiste .suche { width: 200px; flex-basis: 200px; }
}
@media (max-width: 640px) {
  .schnell .zeile-eingabe { flex-wrap: wrap; }
  .schnell .feld { flex: 1 1 100%; }
  .schnell .verstanden { white-space: normal; }
  .schnell .verstanden .muted { white-space: normal; }
  .filterzeile .reiter a { padding: 8px 10px; }
  .aufgabe-zeile { grid-template-columns: 22px minmax(0, 1fr); }
  .aufgabe-zeile .meta { grid-column: 2; justify-content: flex-start; }
  .kennzahlen { grid-template-columns: minmax(0, 1fr); }
  .meldungen-fenster { right: 8px; left: 8px; width: auto; }
}

/* ---------- 0.1.1 (v2): Darstellung auf schmalen Bildschirmen */
/* Titel in der Schublade: mehrzeilig statt abgeschnitten */
.schublade .kopf-s h2 textarea { display: block; width: 100%; background: transparent; border: 0; border-bottom: 1px dashed transparent; font: inherit; color: inherit; outline: none; padding: 0; margin: 0; resize: none; overflow: hidden; line-height: 1.3; field-sizing: content; }
.schublade .kopf-s h2 textarea:hover, .schublade .kopf-s h2 textarea:focus { border-bottom-color: var(--ghost-line); }
.schublade .kopf-s h2 textarea[readonly] { cursor: default; }
/* Filter-Reiter umbrechen, kein Scrollbalken */
.filterzeile .reiter, .schublade .reiter { flex-wrap: wrap; row-gap: 2px; }
/* Prototyp-Leiste: einzeilig, Hinweistext nur breit */
.prototyp-leiste { gap: 8px 12px; padding: 6px 12px; }
.prototyp-leiste .pill.fassung { background: var(--purple-bg); color: var(--purple-text); }
@media (max-width: 960px) {
  .prototyp-leiste { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .prototyp-leiste::-webkit-scrollbar { display: none; }
  .prototyp-leiste > * { flex: 0 0 auto; }
  .prototyp-leiste .hinweis-text, .prototyp-leiste .pill.beispiel { display: none; }
}
@media (max-width: 640px) {
  .prototyp-leiste label .text { display: none; }
  .prototyp-leiste select { max-width: 160px; }
}
/* Schublade als Überlagerung von rechts, wenn kein Platz für zwei Spalten ist */
@media (max-width: 1280px) {
  .todo-raster.mit-schublade::before { content: ""; position: fixed; inset: 0; background: rgba(2,10,40,.55); z-index: 34; }
  .todo-raster.mit-schublade .schublade { position: fixed; top: 0; right: 0; bottom: 0; width: min(480px, 100vw); height: 100vh; height: 100dvh; max-height: none; z-index: 36; border-radius: 0; border-right: 0; box-shadow: -16px 0 40px rgba(0,0,0,.4); overflow: auto; padding-bottom: 90px; }
}
@media (max-width: 640px) {
  .seitenkopf { flex-wrap: wrap; }
  .seitenkopf .aktionen { flex-wrap: wrap; }
  .tafel .spalte-k { min-height: 100px; }
  .vollbild .haupt-k { padding: 16px 14px; }
  .schublade { padding: 14px 14px 16px; }
  .schublade .kv { grid-template-columns: minmax(0, 1fr); gap: 4px 0; }
  .schublade .kv dt { margin-top: 6px; }
  .beleg-daten { grid-template-columns: minmax(0, 1fr); }
  .medien .m.audio { width: 100%; }
}
