/* AllTextr Designsystem: Bausteine. Nur Werte aus tokens.css, keine eigenen Farben oder Größen hier.
   Herkunft: diktat-detail-v1.html (abgenommen 05.11.2026). Ein Baustein für Diktate UND Meetings. */

* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); font-size: var(--fs-m); color: var(--ink); }
svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Schale: Kopfleiste, Navigation, Liste, Detail */
.win { width: 1440px; height: 900px; background: var(--bg); border-radius: var(--r-m); overflow: hidden;
       box-shadow: var(--shadow-3); display: grid; grid-template-rows: var(--top-h) 1fr; }
.top { display: grid; grid-template-columns: var(--rail-w) var(--list-w) 1fr auto; align-items: center; background: var(--surface); border-bottom: 1px solid var(--line); }
.logo { display: grid; place-items: center; }
.logo b { width: 28px; height: 28px; border-radius: var(--r-s); background: linear-gradient(135deg, var(--acc-mid), var(--acc-strong)); display: grid; place-items: center; color: var(--acc-ink); font-weight: 800; font-size: var(--fs-m); }
.brand { font-weight: var(--fw-title); font-size: var(--fs-l); padding-left: var(--s4); }
.brand span { color: var(--muted); font-weight: var(--fw-normal); }
.search { justify-self: center; width: 440px; height: 36px; border-radius: var(--r-pill); background: var(--hover); display: flex; align-items: center; gap: var(--s2); padding: 0 var(--s4); color: var(--faint); }
.user { display: flex; align-items: center; gap: var(--s3); padding-right: var(--s5); color: var(--muted); }
.ava { width: 32px; height: 32px; border-radius: 50%; background: var(--acc-soft); color: var(--acc-strong); display: grid; place-items: center; font-weight: 700; }
.rec { display: flex; align-items: center; gap: var(--s2); height: 32px; padding: 0 var(--s3) 0 var(--s2); border-radius: var(--r-pill); border: 1px solid var(--line); color: var(--ink); font-weight: var(--fw-strong); }
.rec i { width: 18px; height: 18px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px var(--signal-soft); }

.body { display: grid; grid-template-columns: var(--rail-w) var(--list-w) 1fr; min-height: 0; }
.rail { background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: var(--s2); padding: var(--s4) 0; }
.rail a { width: 40px; height: 40px; border-radius: var(--r-m); display: grid; place-items: center; color: var(--muted); }
.rail a.on { background: var(--acc-soft); color: var(--acc-strong); }
.rail .sp { flex: 1; }

/* Liste */
.list { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.list-head { padding: var(--s5) var(--s4) var(--s3); }
.list-head h2 { margin: 0 0 var(--s3); font-size: var(--fs-xl); font-weight: var(--fw-title); display: flex; align-items: center; justify-content: space-between; }
.list-head h2 small { font-size: var(--fs-s); font-weight: var(--fw-normal); color: var(--faint); margin-left: 6px; }
.tools { display: flex; gap: 2px; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--hover); border-radius: var(--r-pill); padding: 3px; }
.seg span { text-align: center; padding: 5px 0; border-radius: var(--r-pill); color: var(--muted); font-size: var(--fs-s); font-weight: var(--fw-normal); }
.seg span.on { background: var(--surface); color: var(--ink); font-weight: var(--fw-strong); box-shadow: 0 1px 2px rgba(26,22,51,.08); }
.items { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; border-top: 1px solid var(--line); }
.day { font-size: var(--fs-xs); color: var(--faint); font-weight: var(--fw-strong); padding: var(--s2) var(--s4) var(--s1); background: var(--bg); border-bottom: 1px solid var(--line); }
.row { padding: 9px var(--s4); border-bottom: 1px solid var(--line); position: relative; }
.row:hover, .row.hover { background: var(--hover); }
.row.on { background: var(--acc-soft); }
.row.on::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--acc-strong); }
.l1, .l2 { display: flex; align-items: baseline; gap: var(--s2); min-width: 0; }
.l1 b { flex: 1; min-width: 0; font-weight: var(--fw-strong); font-size: var(--fs-m); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.l1 time { color: var(--faint); font-size: var(--fs-xs); flex: none; font-variant-numeric: tabular-nums; }
.l2 { margin-top: 2px; }
.l2 p { flex: 1; min-width: 0; margin: 0; color: var(--muted); font-size: var(--fs-s); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.l2 small { color: var(--faint); font-size: var(--fs-xs); flex: none; font-variant-numeric: tabular-nums; }
.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; align-self: center; background: var(--dot-idle); }
.dot.done { background: var(--acc-strong); }
.tag { padding: 0 6px; border-radius: var(--r-pill); background: var(--acc-soft); color: var(--acc-strong); font-weight: var(--fw-strong); font-size: var(--fs-xs); flex: none; line-height: 16px; }
.row.on .tag { background: var(--surface); }
.tag.grey { background: var(--hover); color: var(--muted); }
.proj { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: var(--fs-xs); flex: none; }
.proj i { width: 6px; height: 6px; border-radius: 50%; background: var(--project); }
.legend { display: flex; gap: var(--s3); padding: var(--s2) var(--s4); color: var(--faint); font-size: var(--fs-xs); align-items: center; border-top: 1px solid var(--line); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.star { color: var(--project); flex: none; }
.star svg { width: 13px; height: 13px; fill: currentColor; stroke: none; }

/* Detail */
.detail { padding: var(--s5); min-height: 0; }
.panel { height: 100%; background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow-1); display: grid; grid-template-rows: auto auto 1fr auto; overflow: hidden; }
.d-head { padding: var(--s5) var(--s6) var(--s2); display: flex; align-items: flex-start; gap: var(--s4); background: var(--head-glow); }
.d-title { flex: 1; min-width: 0; }
.d-title h1 { margin: 0; font-size: var(--fs-xxl); font-weight: var(--fw-title); letter-spacing: -.01em; }
.d-title p { margin: var(--s1) 0 0; color: var(--muted); font-size: var(--fs-s); display: flex; gap: var(--s3); flex-wrap: wrap; }
.d-actions { display: flex; align-items: center; gap: var(--s2); }
.icon-btn { width: 36px; height: 36px; border-radius: var(--r-s); display: grid; place-items: center; color: var(--muted); }
.icon-btn.s { width: 30px; height: 30px; }
.icon-btn.s svg { width: 16px; height: 16px; }
.icon-btn:hover { background: var(--hover); }
.btn { height: 36px; padding: 0 var(--s4); border-radius: var(--r-s); display: inline-flex; align-items: center; gap: var(--s2); font-weight: var(--fw-strong); font-size: var(--fs-m); border: 0; font-family: inherit; }
.btn.pri { color: var(--acc-ink); background: linear-gradient(180deg, var(--acc-mid) 0%, var(--acc-strong) 100%); box-shadow: var(--shadow-acc); }
.btn.sec { color: var(--ink); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.btn.rec-btn { color: #fff; background: var(--signal); box-shadow: 0 0 0 4px var(--signal-soft); }
.btn.del { color: var(--danger); background: var(--danger-soft); box-shadow: 0 0 0 1px var(--danger-line); }

/* Karteireiter (Variante C, abgenommen) */
.tabs { display: flex; align-items: flex-end; padding: 0 var(--s6); height: 40px; border-bottom: 1px solid var(--line); }
.tab { position: relative; height: 32px; padding: 0 18px; margin-right: -8px; display: inline-flex; align-items: center; gap: var(--s2);
       color: var(--muted); font-weight: var(--fw-normal); background: var(--tab-idle); border: 1px solid var(--line); border-bottom: 0;
       border-radius: 10px 10px 0 0; box-shadow: 2px -1px 4px rgba(26,22,51,.04); }
.tab:nth-child(1) { z-index: 4; } .tab:nth-child(2) { z-index: 5; } .tab:nth-child(3) { z-index: 3; } .tab:nth-child(4) { z-index: 2; }
.tab.on { height: 38px; background: var(--surface); color: var(--ink); font-weight: var(--fw-strong); z-index: 6; margin-bottom: -1px;
          border-top: 3px solid var(--acc); box-shadow: 0 -4px 10px rgba(26,22,51,.06); }

.text { padding: var(--s5) var(--s6); font-size: var(--fs-l); line-height: var(--lh-read); color: var(--ink); overflow: hidden; }
.text p { margin: 0 0 var(--s4); }
.bar { display: flex; align-items: center; gap: var(--s2); padding: var(--s3) var(--s5); border-top: 1px solid var(--line); background: var(--surface-2); }
.ghost { height: 34px; padding: 0 var(--s3); border-radius: var(--r-s); display: inline-flex; align-items: center; gap: var(--s2); color: var(--ink); font-weight: var(--fw-normal); }
.ghost svg { width: 16px; height: 16px; color: var(--muted); }
.ghost:hover { background: var(--hover); }
.bar .sp { flex: 1; }
.bar small { color: var(--faint); font-size: var(--fs-s); }

/* Auswahl-Modus */
.sel .row { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; }
.sel .row > div { min-width: 0; }
.cb { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--dot-idle); flex: none; align-self: center; background: var(--surface); }
.cb.on { background: var(--acc-strong); border-color: var(--acc-strong); position: relative; }
.cb.on::after { content: ""; position: absolute; left: 4.5px; top: 1.5px; width: 4px; height: 8px; border: solid var(--acc-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.selbar { display: flex; align-items: center; gap: var(--s2); padding: var(--s3) var(--s4); border-top: 1px solid var(--line); background: var(--surface-2); }
.selbar span { flex: 1; color: var(--muted); white-space: nowrap; }
.selbar .b2 { flex: none; height: 32px; padding: 0 var(--s3); border-radius: var(--r-s); display: inline-flex; align-items: center; font-weight: var(--fw-strong); border: 1px solid var(--line); }
.selbar .b2.del { color: var(--danger); border-color: var(--danger-line); background: var(--danger-soft); }

/* Felder */
.field { height: 36px; border-radius: var(--r-s); background: var(--surface); box-shadow: 0 0 0 1px var(--line); display: flex; align-items: center; gap: var(--s2); padding: 0 var(--s3); color: var(--faint); min-width: 0; }
.field b { color: var(--ink); font-weight: var(--fw-normal); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.field svg { width: 16px; height: 16px; color: var(--muted); }
.label { font-size: var(--fs-xs); color: var(--muted); font-weight: var(--fw-strong); margin-bottom: var(--s1); }
.switch { width: 30px; height: 18px; border-radius: var(--r-pill); background: var(--dot-idle); position: relative; flex: none; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.switch.on { background: var(--acc-strong); }
.switch.on::after { left: 14px; }

/* Tooltip (Roman 11.11.2026, Regel in tokens.css): kurzer Satz beim Darüberfahren und bei Tastaturfokus */
[data-tip] { position: relative; }
[data-tip]:hover::after, [data-tip]:focus-visible::after, [data-tip].tip-zeigen::after {
  content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%);
  width: max-content; max-width: 240px; padding: 6px 9px; border-radius: 6px; background: var(--ink); color: var(--surface);
  font-size: var(--fs-xs); font-weight: var(--fw-normal); line-height: 1.4; white-space: normal; text-align: left;
  box-shadow: var(--shadow-2); z-index: 20; pointer-events: none; }


/* Fokus sichtbar (Grundregel Barrierefreiheit, 12.11.2026): jedes bedienbare Element zeigt beim Tastaturfokus einen Mint-Rahmen */
:where(a, button, input, textarea, select, [tabindex]):focus-visible { outline: 2px solid var(--acc-strong); outline-offset: 2px; }

/* App-Zeichen: drei Striche im Winkel des A, Mitte Mint (wie einstellungen-v1.html). SVG: viewBox="31 38 138 123",
   Pfade M49.19 143.3L99.19 56.7 (--mark-fg), M100 143.3L125 100 (--acc), M150.81 143.3L150.82 143.3 (--mark-fg), Strich 36, rund. */
.mark { width: 28px; height: 28px; border-radius: var(--r-s); background: var(--mark-bg); display: grid; place-items: center; box-shadow: 0 0 0 1px var(--line); flex: none; }
.mark svg { width: 15px; height: 13px; stroke-width: 36; }
.mark .m1 { stroke: var(--mark-fg); } .mark .m2 { stroke: var(--acc); }

/* Windows-11-Titelleiste (12.11.2026): über jedem Fenster. App-Zeichen, Titel, rechts Minimieren, Maximieren, Schließen.
   Maße wie Windows 11: 32 px hoch, Knöpfe 46 px breit, Symbole 10 px mit 1 px Linie. .winbar.dialog zeigt nur Schließen.
   In einem Grid-Fenster nimmt sie die ganze Breite (grid-column 1 / -1). Studio: .win.framed. */
.winbar { grid-column: 1 / -1; height: var(--winbar-h); display: flex; align-items: center; gap: var(--s2); padding-left: var(--s3);
          background: var(--surface); border-bottom: 1px solid var(--line); color: var(--ink); font-size: var(--fs-s); font-weight: 400; user-select: none; }
.winbar .mark { width: 16px; height: 16px; border-radius: 4px; box-shadow: none; }
.winbar .mark svg { width: 9px; height: 8px; }
.winbar .wb-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.winbar .wb-btns { display: flex; align-self: stretch; }
.winbar .wb-btns span { width: 46px; display: grid; place-items: center; color: var(--ink); }
.winbar .wb-btns span:hover { background: var(--hover); }
.winbar .wb-btns span.close:hover { background: var(--win-close); color: #fff; }
.winbar .wb-btns svg { width: 10px; height: 10px; stroke-width: 1; stroke-linecap: butt; stroke-linejoin: miter; }
.win.framed { grid-template-rows: var(--winbar-h) var(--top-h) 1fr; }
