/* Ansichten für Aufgaben: Bedienmuster nach monday.com, Farben aus DESIGN.md. */
[data-s=open]{--s:#c4c4c4;--st:#323338}[data-s=progress]{--s:#fdab3d;--st:#323338}[data-s=waiting]{--s:#a25ddc;--st:#fff}[data-s=done]{--s:#00c875;--st:#fff}[data-s=na]{--s:#676879;--st:#fff}
.tv-views{display:flex;gap:2px;border-bottom:1px solid var(--line);margin:0 0 18px;overflow-x:auto;scrollbar-width:none}
.tv-views button{border:0;border-radius:var(--radius) var(--radius) 0 0;min-height:44px;padding:8px 14px;font-weight:400;color:var(--muted);background:none;white-space:nowrap;display:flex;align-items:center;gap:7px;box-shadow:inset 0 -2px 0 transparent}
.tv-views button:hover{background:var(--surface);color:var(--ink)}
.tv-views button[aria-pressed=true]{color:var(--ink);font-weight:600;box-shadow:inset 0 -2px 0 var(--accent)}
.tv-views svg{width:16px;height:16px}
.tv-msg{min-height:18px;margin:-8px 0 4px;color:#754a00;font-size:12px}
/* Tabelle */
.tv-group{margin:0 0 28px}
.tv-ghead{display:flex;align-items:center;gap:8px;border:0;background:none;padding:4px 0;min-height:40px;color:var(--c);font-size:16px}
.tv-ghead svg{width:18px;height:18px;transition:transform .15s}.tv-ghead[aria-expanded=false] svg{transform:rotate(-90deg)}
.tv-ghead small{font-weight:400;margin-left:4px}
.tv-scroll{overflow-x:auto;border-left:6px solid var(--c);border-radius:var(--radius) 0 0 var(--radius)}
.tv-table{border-collapse:collapse;width:100%;min-width:930px;font-size:13px;table-layout:fixed}
.tv-table th,.tv-table td{border:1px solid var(--line);padding:0;height:40px;text-align:left;vertical-align:middle}
.tv-table thead th{font-weight:400;color:var(--muted);padding:0 10px;text-align:center}.tv-table thead th:first-child{text-align:left}
.tv-table tbody th{position:sticky;left:0;background:#fff;z-index:1;font-weight:400}
.tv-table tbody tr:hover th,.tv-table tbody tr:hover td{background:#f5f6f8}
.tv-table td.small{padding:0 10px}
.tv-title{border:0;background:none;text-align:left;font-weight:400;min-height:40px;width:100%;padding:6px 10px;border-radius:0}
.tv-title:hover{color:var(--accent)}
.tv-table input{border:0;border-radius:0;margin:0;min-height:40px;height:40px;padding:0 10px;background:transparent;text-align:center}
.tv-table input:hover{outline:1px solid #c3c6d4}.tv-table input:focus{outline:1px solid var(--accent);background:#fff}
.tv-table thead th:nth-child(2){width:140px}.tv-table thead th:nth-child(3){width:190px}.tv-table thead th:nth-child(4){width:150px}.tv-table thead th:nth-child(5){width:190px}
.tv-table td.small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tv-table .tv-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
select.tv-pill{appearance:none;-webkit-appearance:none;width:100%;margin:0;border:0;border-radius:0;min-height:40px;height:100%;padding:0 8px;text-align:center;text-align-last:center;background:var(--s);color:var(--st);font-weight:600;cursor:pointer}
select.tv-pill:hover{filter:brightness(.94)}select.tv-pill option{background:#fff;color:var(--ink)}
.tv-table tfoot td{border:0;height:34px;padding:6px 0}
.tv-bar{display:flex;height:22px;border-radius:var(--r-klein);overflow:hidden;gap:1px}.tv-bar span{background:var(--s);flex:1 1 0}
/* Kanban */
.tv-kanban{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(250px,1fr);gap:12px;overflow-x:auto;padding-bottom:12px;scroll-snap-type:x proximity}
.tv-col{background:var(--surface);border-radius:var(--radius);min-width:0;scroll-snap-align:start;display:flex;flex-direction:column;transition:box-shadow .1s}
.tv-col h2{margin:0;padding:10px 12px;border-radius:var(--radius) var(--radius) 0 0;background:var(--s);color:var(--st);font-size:14px}
.tv-col h2 span{font-weight:400;opacity:.85}
.tv-cards{padding:8px;display:flex;flex-direction:column;gap:8px;min-height:120px}
.tv-card{background:#fff;border-radius:var(--radius);padding:8px 10px 10px;box-shadow:0 1px 3px rgba(0,0,0,.12)}
.tv-card .small{margin:2px 0 8px 28px}
.tv-cardhead{display:flex;align-items:flex-start;gap:4px}
.tv-cardhead .tv-title{padding:4px 2px;min-height:32px;font-weight:600}
.tv-handle{flex:0 0 24px;height:32px;display:grid;place-items:center;color:var(--muted);cursor:grab;touch-action:none;user-select:none;border-radius:var(--r-klein)}
.tv-handle:hover{background:var(--surface)}
.tv-card select.tv-pill{border-radius:var(--r-klein);min-height:32px;height:32px;margin-left:28px;width:calc(100% - 28px)}
.tv-empty{color:var(--muted);font-size:12px;text-align:center;padding:24px 0;border:1px dashed #c3c6d4;border-radius:var(--radius);margin:0}
.tv-over{box-shadow:inset 0 0 0 2px var(--accent)}
.tv-dragging{opacity:.35}
.tv-ghost{position:fixed;left:0;top:0;z-index:20;pointer-events:none;box-shadow:0 8px 24px rgba(0,0,0,.2);rotate:2deg;margin:0}
/* Kalender */
.tv-calhead{display:flex;align-items:center;gap:8px;margin-bottom:12px;flex-wrap:wrap}.tv-calhead h2{margin:0 8px;font-size:18px;min-width:150px}
.tv-calhead button{min-height:40px;min-width:40px}
.tv-cal{border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.tv-week,.tv-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.tv-week span{padding:8px;font-size:12px;color:var(--muted);text-align:center;border-bottom:1px solid var(--line)}
.tv-day{min-height:104px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:4px;display:flex;flex-direction:column;gap:3px;min-width:0}
.tv-day:nth-child(7n){border-right:0}.tv-day.out{background:#fafbfc}.tv-day.out .tv-date{color:#b4b6c4}
.tv-date{font-size:12px;padding:2px 4px;align-self:flex-start;border-radius:var(--radius)}.tv-date em{display:none}
.tv-day.today .tv-date{background:var(--accent);color:#fff;font-weight:600}.tv-day.today .tv-date em{color:inherit}
.tv-chip{display:block;width:100%;min-height:28px;padding:3px 8px;border:0;border-radius:var(--r-klein);background:var(--s);color:var(--st);font-size:12px;font-weight:600;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;touch-action:none;cursor:grab}
.tv-chip.tv-ghost{width:auto;max-width:240px}
.tv-undated{margin-top:18px;padding:12px;border:1px dashed #c3c6d4;border-radius:var(--radius);display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.tv-undated h3{margin:0 8px 0 0;font-size:13px;width:100%}.tv-undated h3 span{font-weight:400;color:var(--muted)}
.tv-undated .tv-chip{width:auto;max-width:100%}
@media(max-width:700px){
 .tv-kanban{grid-auto-columns:82%}
 .tv-table{min-width:850px}
 .tv-views button{padding:8px 9px;gap:5px}
 .tv-week{display:none}.tv-days{grid-template-columns:1fr}
 .tv-day{min-height:0;border-right:0;padding:8px 4px}.tv-day.none:not(.today){display:none}.tv-day.out{display:none}
 .tv-date{font-weight:600}.tv-date em{display:inline;font-style:normal;font-weight:400;color:var(--muted)}
 .tv-chip{min-height:36px}
}
