/* Schriftgroesse/Massstab (Punkt 15): alle Masse sind calc(Npx * var(--s)); --s kommt aus <html data-size=...>, gesetzt vor dem ersten Zeichnen. */
:root { --s: .9; }                        /* Normal = Zimbra-Classic-Groesse (Anwender 22.11.) */
:root[data-size="klein"] { --s: .82; }
:root[data-size="mittel"] { --s: 1; }       /* bisheriges Normal */
:root[data-size="gross"] { --s: 1.15; }
:root[data-size="sehrgross"] { --s: 1.3; }
/* LUN Mail - Grundstil (0.13.0: einziges Design „Klassisch“ baut darauf auf, css/klassisch.css): Box statt vollflaechig, kompakte Zeilen, abgestufte Grautoene. */
:root {
  --page: #d4cfc6; --card: #ffffff; --card2: #f7f5f2; --card3: #efebe5; --line: #ddd7cd; --line2: #e9e4dc;
  --text: #2b2925; --muted: #69645b; --accent: #8a6a2f; --accent-2: #705626; --accent-on: #ffffff;
  --sel: #f1e6cd; --sel-line: #d9c38f; --hover: #f3f0eb; --unread: #2b2925;
  --bar: #78705f; --bar-text: #ffffff; --bar-hover: rgba(255,255,255,.16); --bar-active: #c9c2b6; --bar-active-text: #2b2925;
  --head: #c9c2b6; --head-grad: linear-gradient(#d3cdc2, #c4bdb0); --head-text: #2b2925;
  --flag: #c0532f; --danger: #a33b2b; --ok: #4d7a3a;
  --shadow: 0 calc(2px * var(--s)) calc(14px * var(--s)) rgba(0,0,0,.18); --radius: calc(6px * var(--s));
  --input: #ffffff; --input-line: #cfc8bc;
  color-scheme: light;
}
[data-theme="dark"] {
  --page: #141311; --card: #242321; --card2: #2a2825; --card3: #302e2a; --line: #3a3630; --line2: #34312c;
  --text: #e8e4dd; --muted: #9c958a; --accent: #c9a04f; --accent-2: #d8b366; --accent-on: #1d1b18;
  --sel: #3b3426; --sel-line: #6b5a35; --hover: #2f2d29; --unread: #f3efe8;
  --bar: #3a3630; --bar-text: #ece7df; --bar-hover: rgba(255,255,255,.08); --bar-active: #55504a; --bar-active-text: #f3efe8;
  --head: #36322c; --head-grad: linear-gradient(#3b3731, #322e29); --head-text: #e8e4dd;
  --flag: #e07a52; --danger: #d0675a; --ok: #8bb874;
  --shadow: 0 calc(2px * var(--s)) calc(14px * var(--s)) rgba(0,0,0,.5);
  --input: #1d1c1a; --input-line: #46413a;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--page); color: var(--text); font: calc(12.5px * var(--s))/1.4 system-ui, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif; overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
svg.i { width: calc(15px * var(--s)); height: calc(15px * var(--s)); flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: calc(-3px * var(--s)); }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* ---------- Kopfleiste ---------- */
#topbar { height: calc(42px * var(--s)); background: var(--bar); color: var(--bar-text); display: flex; align-items: center; gap: calc(4px * var(--s)); padding: 0 calc(12px * var(--s)); }
#topbar .logo { display: flex; align-items: center; gap: calc(7px * var(--s)); font-weight: 700; font-size: calc(14px * var(--s)); margin-right: calc(14px * var(--s)); letter-spacing: calc(.2px * var(--s)); }
#topbar .logo b { background: var(--accent); color: #fff; border-radius: calc(5px * var(--s)); padding: calc(2px * var(--s)) calc(6px * var(--s)); font-size: calc(12px * var(--s)); }
[data-theme="dark"] #topbar .logo b { color: #1d1b18; }
#topbar nav { display: flex; gap: calc(2px * var(--s)); }
#topbar nav a { color: var(--bar-text); text-decoration: none; padding: calc(6px * var(--s)) calc(11px * var(--s)); border-radius: calc(5px * var(--s)); display: flex; align-items: center; gap: calc(6px * var(--s)); cursor: pointer; }
#topbar nav a:hover { background: var(--bar-hover); }
#topbar nav a.on { background: var(--bar-active); color: var(--bar-active-text); font-weight: 600; }
#topbar .sp { flex: 1; }
#topbar .search { display: flex; align-items: center; background: rgba(255,255,255,.92); color: #2b2925; border-radius: calc(5px * var(--s)); padding: 0 calc(8px * var(--s)); height: calc(28px * var(--s)); width: calc(340px * var(--s)); gap: calc(6px * var(--s)); }
[data-theme="dark"] #topbar .search { background: #24221f; color: var(--text); border: 1px solid #4a453e; }
#topbar .search input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; }
#topbar .tb { background: transparent; border: 0; color: var(--bar-text); height: calc(30px * var(--s)); min-width: calc(30px * var(--s)); border-radius: calc(5px * var(--s)); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: calc(6px * var(--s)); padding: 0 calc(7px * var(--s)); }
#topbar .tb:hover { background: var(--bar-hover); }
#topbar .user { font-size: calc(12px * var(--s)); opacity: .92; padding: 0 calc(4px * var(--s)) 0 calc(8px * var(--s)); white-space: nowrap; }
#topbar .demo { background: #c9a04f; color: #1d1b18; border-radius: calc(4px * var(--s)); padding: 1px calc(6px * var(--s)); font-size: calc(11px * var(--s)); font-weight: 600; margin-left: calc(6px * var(--s)); }

/* ---------- Box ---------- */
#main { height: calc(100vh - calc(42px * var(--s))); padding: calc(10px * var(--s)) calc(12px * var(--s)) calc(12px * var(--s)); }
.box { max-width: calc(1580px * var(--s)); height: 100%; margin: 0 auto; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  display: grid; grid-template-columns: var(--sidew, calc(212px * var(--s))) minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); position: relative; }
.box.nosb { grid-template-columns: minmax(0, 1fr); }
.side { background: var(--card2); border-right: 1px solid var(--line); overflow-y: auto; display: flex; flex-direction: column; min-height: 0; }
.side .new { margin: calc(10px * var(--s)) calc(10px * var(--s)) calc(6px * var(--s)); }
.shead { background: var(--head-grad); color: var(--head-text); font-weight: 600; font-size: calc(11.5px * var(--s)); padding: calc(4px * var(--s)) calc(10px * var(--s)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; margin-top: calc(6px * var(--s)); letter-spacing: calc(.2px * var(--s)); }
.content { display: flex; flex-direction: column; min-width: 0; min-height: 0; }

/* Ordnerbaum */
.tree { list-style: none; margin: calc(2px * var(--s)) 0; padding: 0; }
.tree li > .f { display: flex; align-items: center; gap: calc(6px * var(--s)); padding: calc(3px * var(--s)) calc(10px * var(--s)) calc(3px * var(--s)) calc(calc(8px * var(--s)) + var(--d, 0) * calc(16px * var(--s))); cursor: pointer; border-left: calc(3px * var(--s)) solid transparent; white-space: nowrap;
  height: calc(26px * var(--s)); font-size: calc(12px * var(--s)); }
.tree li > .f:hover { background: var(--hover); }
.tree li > .f.on { background: var(--sel); border-left-color: var(--accent); font-weight: 600; }
.tree li > .f.drop { background: var(--accent); color: var(--accent-on); }
.tree li > .f .n { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.tree li > .f .c { font-size: calc(12px * var(--s)); font-weight: 700; color: var(--accent); margin-left: calc(3px * var(--s)); }
.tree li > .f .tw { width: calc(12px * var(--s)); text-align: center; color: var(--muted); font-size: calc(10px * var(--s)); margin-left: calc(-4px * var(--s)); margin-right: calc(-3px * var(--s)); }
.tree .f .fi { display: inline-flex; color: var(--muted); }
.tree .f svg.i { width: calc(16px * var(--s)); height: calc(16px * var(--s)); }
.tree .f.on .fi:not([style]) { color: var(--accent); }
/* Ordnerfarbe wie Zimbra Classic: gefuelltes Ordnersymbol in der Farbe (color 0-9 bzw. rgb) */
.tree .f.farbig .fi svg.i { fill: color-mix(in srgb, currentColor 70%, transparent); stroke: color-mix(in srgb, currentColor 65%, #000); }
/* ungelesen wie Classic: Name fett, Zahl in Klammern */
.tree .f.hasun .n { font-weight: 700; flex: none; max-width: calc(100% - calc(60px * var(--s))); }
.tree li > .f .c { flex: 1; }
.tree li > .f.hasun .c::before { content: '('; }
.tree li > .f.hasun .c::after { content: ')'; }

/* Knoepfe */
.btn { text-decoration: none; color: var(--text); display: inline-flex; align-items: center; gap: calc(6px * var(--s)); height: calc(27px * var(--s)); padding: 0 calc(10px * var(--s)); border-radius: calc(5px * var(--s)); border: 1px solid var(--input-line); background: var(--card);
  cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--hover); }
.btn.pri { background: var(--accent); border-color: var(--accent); color: var(--accent-on) !important; font-weight: 600; }
.btn.pri:hover { background: var(--accent-2); }
.btn.wide { width: calc(100% - calc(20px * var(--s))); justify-content: center; height: calc(30px * var(--s)); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--hover); border-color: var(--line); }
.btn.danger { color: var(--danger); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.on { background: var(--sel); border-color: var(--sel-line); }
.seg { display: inline-flex; border: 1px solid var(--input-line); border-radius: calc(5px * var(--s)); overflow: hidden; }
.seg button { border: 0; background: var(--card); height: calc(25px * var(--s)); padding: 0 calc(10px * var(--s)); cursor: pointer; border-right: 1px solid var(--input-line); }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--sel); font-weight: 600; }
.seg button:hover:not(.on) { background: var(--hover); }

/* Werkzeugleiste */
.toolbar { height: calc(38px * var(--s)); flex: none; display: flex; align-items: center; gap: calc(5px * var(--s)); padding: 0 calc(10px * var(--s)); border-bottom: 1px solid var(--line); background: var(--card2); }
.toolbar .sp { flex: 1; }
.toolbar .ttl { font-weight: 600; font-size: calc(13.5px * var(--s)); margin-right: calc(6px * var(--s)); white-space: nowrap; }
.toolbar .sep { width: 1px; height: calc(20px * var(--s)); background: var(--line); margin: 0 calc(3px * var(--s)); }
.toolbar .cnt { color: var(--muted); font-size: calc(11.5px * var(--s)); white-space: nowrap; }

/* Menue */
.menu { position: fixed; z-index: 5000; background: var(--card); border: 1px solid var(--line); border-radius: calc(6px * var(--s)); box-shadow: var(--shadow); padding: calc(4px * var(--s)) 0; min-width: calc(190px * var(--s)); max-height: 60vh; overflow-y: auto; }
.menu div { padding: calc(5px * var(--s)) calc(14px * var(--s)); cursor: pointer; display: flex; align-items: center; gap: calc(8px * var(--s)); white-space: nowrap; }
.menu div:hover { background: var(--hover); }
.menu div.sub { padding-left: calc(30px * var(--s)); }

/* ---------- Mail ---------- */
.panes { flex: 1; min-height: 0; display: grid; position: relative; }
.panes.right { grid-template-columns: var(--listw, minmax(calc(380px * var(--s)), 46%)) minmax(0, 1fr); }
.panes.bottom { grid-template-rows: var(--listh, minmax(calc(160px * var(--s)), 42%)) minmax(0, 1fr); }
.panes.off { grid-template-columns: minmax(0, 1fr); }
.list { overflow-y: auto; min-height: 0; border-right: 1px solid var(--line); }
.panes.bottom .list { border-right: 0; border-bottom: 1px solid var(--line); }
.lhead { position: sticky; top: 0; z-index: 2; display: grid; height: calc(24px * var(--s)); align-items: center; background: var(--head-grad); color: var(--head-text); font-size: calc(11.5px * var(--s)); font-weight: 600;
  border-bottom: 1px solid var(--line); }
.list.ez .row, .list.ez .lhead { grid-template-columns: calc(26px * var(--s)) calc(20px * var(--s)) var(--c-von, minmax(calc(110px * var(--s)), calc(170px * var(--s)))) minmax(0, 1fr) var(--c-at, calc(20px * var(--s))) var(--c-gr, calc(52px * var(--s))) var(--c-dat, calc(84px * var(--s))) calc(16px * var(--s)); column-gap: calc(4px * var(--s)); padding-right: calc(10px * var(--s)); }
.panes.right .list.ez .row, .panes.right .list.ez .lhead { grid-template-columns: calc(26px * var(--s)) calc(18px * var(--s)) var(--c-von, minmax(calc(90px * var(--s)), calc(150px * var(--s)))) minmax(0, 1fr) var(--c-at, calc(18px * var(--s))) var(--c-gr, calc(52px * var(--s))) var(--c-dat, calc(64px * var(--s))) calc(16px * var(--s)); }
.row { display: grid; align-items: center; height: calc(26px * var(--s)); border-bottom: 1px solid var(--line2); cursor: default; user-select: none; }
.row:hover { background: var(--hover); }
.row.sel { background: var(--sel); }
.row.cur { box-shadow: inset calc(3px * var(--s)) 0 0 var(--accent); }
.row.unread .fr, .row.unread .su { font-weight: 700; color: var(--unread); }
.row > * { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.row .ck, .lhead .ck { display: flex; justify-content: center; }
.row input[type=checkbox], .lhead input[type=checkbox] { margin: 0; accent-color: var(--accent); }
.row .fl { color: var(--line); cursor: pointer; display: flex; justify-content: center; }
.row .fl:hover { color: var(--muted); }
.row .fl.on { color: var(--flag); }
.row .fl.on svg { fill: var(--flag); }
.row .su .sn { color: var(--muted); font-weight: 400; margin-left: calc(6px * var(--s)); }
.row .su .cn { display: inline-block; font-size: calc(10.5px * var(--s)); font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: calc(8px * var(--s)); padding: 0 calc(5px * var(--s)); margin-right: calc(5px * var(--s)); line-height: calc(15px * var(--s)); }
.row .at { color: var(--muted); display: flex; justify-content: center; }
.row .dt { text-align: right; color: var(--muted); font-size: calc(11.5px * var(--s)); }
.row.unread .dt { color: var(--text); font-weight: 700; }
.row .dot { display: inline-block; width: calc(7px * var(--s)); height: calc(7px * var(--s)); border-radius: 50%; background: var(--accent); margin-right: calc(5px * var(--s)); vertical-align: 1px; }
.empty { padding: calc(40px * var(--s)) calc(20px * var(--s)); text-align: center; color: var(--muted); }
.daysep { padding: calc(3px * var(--s)) calc(10px * var(--s)) calc(3px * var(--s)) calc(32px * var(--s)); font-size: calc(11px * var(--s)); font-weight: 600; color: var(--muted); background: var(--card2); border-bottom: 1px solid var(--line2); }

/* Lesebereich */
.reader { overflow-y: auto; min-height: 0; background: var(--card3); }
.reader .rhead { background: var(--card); border-bottom: 1px solid var(--line); padding: calc(9px * var(--s)) calc(14px * var(--s)) calc(8px * var(--s)); position: sticky; top: 0; z-index: 2; }
.reader .rhead h2 { margin: 0 0 calc(6px * var(--s)); font-size: calc(15px * var(--s)); font-weight: 600; line-height: 1.3; }
.reader .rhead .acts { display: flex; gap: calc(5px * var(--s)); flex-wrap: wrap; }
.reader .msgs { padding: calc(10px * var(--s)) calc(12px * var(--s)) calc(18px * var(--s)); display: flex; flex-direction: column; gap: calc(8px * var(--s)); }
.msg { background: var(--card); border: 1px solid var(--line); border-radius: calc(6px * var(--s)); overflow: hidden; }
.msg .mh { display: flex; align-items: center; gap: calc(9px * var(--s)); padding: calc(7px * var(--s)) calc(11px * var(--s)); cursor: pointer; }
.msg.open .mh { border-bottom: 1px solid var(--line2); }
.av { width: calc(28px * var(--s)); height: calc(28px * var(--s)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: calc(11px * var(--s)); font-weight: 700; color: #fff; flex: none; }
.msg .who { flex: 1; min-width: 0; }
.msg .who > div:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg .who .nm { font-weight: 600; }
.msg .who .em { color: var(--muted); margin-left: calc(4px * var(--s)); font-size: calc(11.5px * var(--s)); }
.msg .who .to { color: var(--muted); font-size: calc(11.5px * var(--s)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg .who .pv { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg .md { color: var(--muted); font-size: calc(11.5px * var(--s)); white-space: nowrap; flex: none; }
.msg .mb { padding: calc(10px * var(--s)) calc(14px * var(--s)) calc(12px * var(--s)); }
.msg .mb iframe { width: 100%; border: 0; display: block; min-height: calc(60px * var(--s)); background: transparent; }
.msg .atts { display: flex; flex-wrap: wrap; gap: calc(6px * var(--s)); padding: 0 calc(14px * var(--s)) calc(10px * var(--s)); }
.chip { display: inline-flex; align-items: center; gap: calc(6px * var(--s)); border: 1px solid var(--line); background: var(--card2); border-radius: calc(5px * var(--s)); padding: calc(3px * var(--s)) calc(8px * var(--s)); font-size: calc(11.5px * var(--s)); text-decoration: none; color: var(--text); max-width: calc(260px * var(--s)); }
.chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip .sz { color: var(--muted); }
a.chip:hover { border-color: var(--sel-line); background: var(--sel); }
/* 0.15.1 Freigaben verwalten: verwaiste/nicht erreichbare Freigaben deutlich markieren */
.freig-warn { border: 1px solid var(--danger, #b3261e); border-left-width: 4px; background: color-mix(in srgb, var(--danger, #b3261e) 8%, var(--card)); color: var(--text); padding: calc(8px * var(--s)) calc(10px * var(--s)); border-radius: calc(5px * var(--s)); margin-bottom: calc(12px * var(--s)); font-size: calc(12.5px * var(--s)); }
.kchip.freig-weg { --k: var(--danger, #b3261e); background: color-mix(in srgb, var(--danger, #b3261e) 12%, transparent); color: var(--danger, #b3261e); border: 1px solid currentColor; font-weight: 600; }
table.freig td:last-child { text-align: right; white-space: nowrap; }
:is(.callist, .tree) .kal-weg { color: var(--danger, #b3261e); display: inline-flex; margin-left: 4px; }
:is(.callist, .tree) .kal-weg { font-weight: 700; border: 1px solid currentColor; border-radius: 50%; width: calc(14px * var(--s)); height: calc(14px * var(--s)); justify-content: center; align-items: center; font-size: calc(10px * var(--s)); flex: none; }
.msg .mact { display: flex; gap: calc(4px * var(--s)); }
.reader .none { height: 100%; display: flex; align-items: center; justify-content: center; color: var(--muted); flex-direction: column; gap: calc(8px * var(--s)); }
.reader .none svg.i { width: calc(42px * var(--s)); height: calc(42px * var(--s)); stroke-width: 1.2; opacity: .5; }

/* ---------- Dialoge ---------- */
#overlay:empty { display: none; }
.dlgbg { position: fixed; inset: 0; background: rgba(30,28,25,.42); z-index: 50; display: flex; align-items: center; justify-content: center; padding: calc(20px * var(--s)); }
.dlg { background: var(--card); border-radius: calc(7px * var(--s)); box-shadow: 0 calc(8px * var(--s)) calc(40px * var(--s)) rgba(0,0,0,.35); display: flex; flex-direction: column; max-height: 100%; max-width: 100%; border: 1px solid var(--line); overflow: hidden; }
.dlg .dt { background: var(--bar); color: var(--bar-text); height: calc(34px * var(--s)); display: flex; align-items: center; padding: 0 calc(6px * var(--s)) 0 calc(12px * var(--s)); font-weight: 600; flex: none; }
.dlg .dt .sp { flex: 1; }
.dlg .dt button { background: transparent; border: 0; color: inherit; width: calc(28px * var(--s)); height: calc(26px * var(--s)); border-radius: calc(4px * var(--s)); cursor: pointer; }
.dlg .dt button:hover { background: var(--bar-hover); }
.dlg .db { padding: calc(12px * var(--s)) calc(14px * var(--s)); overflow-y: auto; min-height: 0; }
.dlg .df { display: flex; gap: calc(6px * var(--s)); padding: calc(9px * var(--s)) calc(14px * var(--s)); border-top: 1px solid var(--line); background: var(--card2); flex: none; align-items: center; }
.dlg .df .sp { flex: 1; }
.form { display: grid; grid-template-columns: calc(92px * var(--s)) minmax(0, 1fr); gap: calc(7px * var(--s)) calc(10px * var(--s)); align-items: center; }
.form label { color: var(--muted); text-align: right; }
.form .full { grid-column: 1 / -1; }
.inp, select.inp, textarea.inp { height: calc(28px * var(--s)); border: 1px solid var(--input-line); background: var(--input); border-radius: calc(4px * var(--s)); padding: 0 calc(8px * var(--s)); outline: 0; width: 100%; }
textarea.inp { height: auto; padding: calc(6px * var(--s)) calc(8px * var(--s)); resize: vertical; }
.inp:focus { border-color: var(--accent); box-shadow: 0 0 0 calc(2px * var(--s)) color-mix(in srgb, var(--accent) 22%, transparent); }
.inrow { display: flex; gap: calc(6px * var(--s)); align-items: center; }
.inrow .inp { width: auto; }
.chk { display: inline-flex; align-items: center; gap: calc(5px * var(--s)); color: var(--text) !important; text-align: left !important; }
.chk input { accent-color: var(--accent); margin: 0; }

/* Empfaengerfeld */
.rcpt { display: flex; flex-wrap: wrap; gap: calc(4px * var(--s)); align-items: center; min-height: calc(28px * var(--s)); border: 1px solid var(--input-line); background: var(--input); border-radius: calc(4px * var(--s)); padding: calc(2px * var(--s)) calc(4px * var(--s)); position: relative; cursor: text; }
.rcpt:focus-within { border-color: var(--accent); }
.rcpt .tag { display: inline-flex; align-items: center; gap: calc(4px * var(--s)); background: var(--sel); border: 1px solid var(--sel-line); border-radius: calc(11px * var(--s)); padding: 0 calc(4px * var(--s)) 0 calc(8px * var(--s)); height: calc(20px * var(--s)); font-size: calc(11.5px * var(--s)); }
.rcpt .tag button { border: 0; background: transparent; cursor: pointer; color: var(--muted); padding: 0 calc(2px * var(--s)); line-height: 1; }
.rcpt input { border: 0; outline: 0; background: transparent; flex: 1; min-width: calc(120px * var(--s)); height: calc(22px * var(--s)); }
.ac { position: absolute; left: calc(-1px * var(--s)); right: calc(-1px * var(--s)); top: 100%; margin-top: calc(2px * var(--s)); background: var(--card); border: 1px solid var(--line); border-radius: calc(5px * var(--s)); box-shadow: var(--shadow); z-index: 70; }
.ac div { padding: calc(5px * var(--s)) calc(9px * var(--s)); cursor: pointer; display: flex; gap: calc(8px * var(--s)); }
.ac div.on, .ac div:hover { background: var(--sel); }
.ac div .em { color: var(--muted); }

/* Verfassen */
.compose { width: calc(880px * var(--s)); height: min(calc(660px * var(--s)), calc(100vh - calc(40px * var(--s)))); }
.compose .db { display: flex; flex-direction: column; gap: calc(6px * var(--s)); padding: calc(10px * var(--s)) calc(14px * var(--s)) 0; flex: 1; }
.compose .form { grid-template-columns: calc(56px * var(--s)) minmax(0, 1fr); gap: calc(5px * var(--s)) calc(8px * var(--s)); }
.rte-tb { display: flex; gap: calc(2px * var(--s)); padding: calc(4px * var(--s)); border: 1px solid var(--input-line); border-bottom: 0; border-radius: calc(4px * var(--s)) calc(4px * var(--s)) 0 0; background: var(--card2); flex-wrap: wrap; }
.rte-tb button { border: 1px solid transparent; background: transparent; height: calc(25px * var(--s)); min-width: calc(27px * var(--s)); border-radius: calc(4px * var(--s)); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0 calc(5px * var(--s)); }
.rte-tb button:hover { background: var(--hover); border-color: var(--line); }
.rte-tb .sep { width: 1px; background: var(--line); margin: calc(3px * var(--s)) calc(3px * var(--s)); }
.rte-tb select { height: calc(25px * var(--s)); border: 1px solid var(--input-line); border-radius: calc(4px * var(--s)); background: var(--input); }
.rte { flex: 1; min-height: calc(160px * var(--s)); border: 1px solid var(--input-line); border-radius: 0 0 calc(4px * var(--s)) calc(4px * var(--s)); padding: calc(10px * var(--s)) calc(12px * var(--s)); overflow-y: auto; outline: 0; background: var(--input); line-height: 1.5; }
.rte p { margin: 0 0 calc(8px * var(--s)); }
.rte blockquote { margin: calc(6px * var(--s)) 0; padding-left: calc(10px * var(--s)); border-left: calc(3px * var(--s)) solid var(--line); color: var(--muted); }
.compose .attl { display: flex; flex-wrap: wrap; gap: calc(5px * var(--s)); padding: calc(6px * var(--s)) 0; min-height: calc(10px * var(--s)); }
.compose .attl .chip button { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 0; }
.compose.drag .rte { outline: calc(2px * var(--s)) dashed var(--accent); }

/* ---------- Kalender ---------- */
.cal { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.wk { flex: 1; min-height: 0; display: grid; grid-template-rows: auto auto minmax(0, 1fr); }
.wk .dh, .wk .ad { display: grid; border-bottom: 1px solid var(--line); }
.wk .dh > div { padding: calc(4px * var(--s)) calc(8px * var(--s)); font-weight: 600; font-size: calc(12px * var(--s)); border-left: 1px solid var(--line); background: var(--card2); }
.wk .dh > div .dn { color: var(--muted); font-weight: 400; margin-right: calc(4px * var(--s)); }
.wk .dh > div.today { color: var(--accent); background: var(--sel); }
.wk .ad > div { border-left: 1px solid var(--line); min-height: calc(24px * var(--s)); padding: calc(2px * var(--s)); display: flex; flex-direction: column; gap: calc(2px * var(--s)); }
.wk .ad > div:first-child, .wk .dh > div:first-child { border-left: 0; font-size: calc(10.5px * var(--s)); color: var(--muted); font-weight: 400; display: flex; align-items: center; justify-content: flex-end; padding-right: calc(6px * var(--s)); background: transparent; }
.wk .grid { overflow-y: auto; display: grid; position: relative; }
.wk .hrs > div { height: calc(40px * var(--s)); font-size: calc(10.5px * var(--s)); color: var(--muted); text-align: right; padding-right: calc(6px * var(--s)); transform: translateY(calc(-7px * var(--s))); }
.wk .col { position: relative; border-left: 1px solid var(--line); background-image: repeating-linear-gradient(to bottom, var(--line2) 0 1px, transparent 1px calc(20px * var(--s)), var(--line) calc(20px * var(--s)) calc(21px * var(--s)), transparent calc(21px * var(--s)) calc(40px * var(--s))); background-position: 0 calc(-1px * var(--s)); }
.wk .col.today { background-color: color-mix(in srgb, var(--sel) 45%, transparent); }
.wk .col.we { background-color: var(--card2); }
.ev { position: absolute; left: calc(2px * var(--s)); right: calc(3px * var(--s)); border-radius: calc(4px * var(--s)); padding: calc(2px * var(--s)) calc(5px * var(--s)); font-size: calc(11.5px * var(--s)); overflow: hidden; cursor: pointer; border-left: calc(3px * var(--s)) solid; line-height: 1.3; }
.ev b { font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; font-size: calc(11px * var(--s)); }
.ev:hover { filter: brightness(.97); z-index: 3; }
.evd { border-radius: calc(4px * var(--s)); padding: 1px calc(6px * var(--s)); font-size: calc(11.5px * var(--s)); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: calc(3px * var(--s)) solid; }
.nowline { position: absolute; left: 0; right: 0; height: calc(2px * var(--s)); background: var(--flag); z-index: 4; pointer-events: none; }
.nowline::before { content: ''; position: absolute; left: calc(-4px * var(--s)); top: calc(-3px * var(--s)); width: calc(8px * var(--s)); height: calc(8px * var(--s)); border-radius: 50%; background: var(--flag); }
.mo { flex: 1; display: grid; grid-template-rows: auto repeat(6, minmax(0, 1fr)); min-height: 0; }
.mo .mh, .mo .mr { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.mo .mh div { padding: calc(4px * var(--s)) calc(8px * var(--s)); font-weight: 600; background: var(--card2); border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); }
.mo .mr > div { border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: calc(2px * var(--s)) calc(3px * var(--s)); overflow: hidden; display: flex; flex-direction: column; gap: calc(2px * var(--s)); min-height: 0; cursor: default; }
.mo .mr > div .n { font-size: calc(11.5px * var(--s)); padding: 1px calc(3px * var(--s)); color: var(--muted); }
.mo .mr > div.oth { background: var(--card2); }
.mo .mr > div.oth .n { opacity: .55; }
.mo .mr > div.today .n { background: var(--accent); color: var(--accent-on); border-radius: calc(9px * var(--s)); align-self: flex-start; padding: 0 calc(7px * var(--s)); font-weight: 700; }
.mini { padding: calc(6px * var(--s)) calc(10px * var(--s)) calc(4px * var(--s)); }
.mini .mt { display: flex; align-items: center; justify-content: space-between; font-weight: 600; margin-bottom: calc(3px * var(--s)); }
.mini .mt button { border: 0; background: transparent; cursor: pointer; color: var(--muted); padding: calc(2px * var(--s)) calc(6px * var(--s)); border-radius: calc(4px * var(--s)); }
.mini .mt button:hover { background: var(--hover); }
.mini table { width: 100%; border-collapse: collapse; font-size: calc(11px * var(--s)); text-align: center; }
.mini th { color: var(--muted); font-weight: 400; padding: 1px 0; }
.mini td { padding: calc(2px * var(--s)) 0; cursor: pointer; border-radius: calc(3px * var(--s)); }
.mini td:hover { background: var(--hover); }
.mini td.o { color: var(--muted); opacity: .6; }
.mini td.t { background: var(--accent); color: var(--accent-on); font-weight: 700; }
.mini tr.w td:not(.t) { background: var(--sel); }
.callist { list-style: none; margin: calc(4px * var(--s)) 0; padding: 0; }
.callist li { display: flex; align-items: center; gap: calc(8px * var(--s)); padding: calc(3px * var(--s)) calc(12px * var(--s)); }
.callist .sw { width: calc(11px * var(--s)); height: calc(11px * var(--s)); border-radius: calc(3px * var(--s)); flex: none; }

/* ---------- Kontakte ---------- */
.ct { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(calc(300px * var(--s)), 40%) minmax(0, 1fr); }
.ct .clist { overflow-y: auto; border-right: 1px solid var(--line); }
.crow { display: flex; align-items: center; gap: calc(9px * var(--s)); padding: 0 calc(12px * var(--s)); height: calc(28px * var(--s)); border-bottom: 1px solid var(--line2); cursor: pointer; }
.crow:hover { background: var(--hover); }
.crow.sel { background: var(--sel); box-shadow: inset calc(3px * var(--s)) 0 0 var(--accent); }
.crow .av { width: calc(21px * var(--s)); height: calc(21px * var(--s)); font-size: calc(9.5px * var(--s)); }
.crow .nm { font-weight: 600; white-space: nowrap; }
.crow .co { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.lettr { padding: calc(2px * var(--s)) calc(12px * var(--s)); font-size: calc(11px * var(--s)); font-weight: 700; color: var(--accent); background: var(--card2); border-bottom: 1px solid var(--line2); position: sticky; top: 0; }
.cdet { overflow-y: auto; background: var(--card3); padding: calc(14px * var(--s)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: calc(6px * var(--s)); max-width: calc(720px * var(--s)); }
.card .ch { display: flex; align-items: center; gap: calc(12px * var(--s)); padding: calc(12px * var(--s)) calc(14px * var(--s)); border-bottom: 1px solid var(--line2); }
.card .ch .av { width: calc(46px * var(--s)); height: calc(46px * var(--s)); font-size: calc(16px * var(--s)); }
.card .ch h2 { margin: 0; font-size: calc(16px * var(--s)); }
.card .ch .sub { color: var(--muted); }
.card .cb { padding: calc(10px * var(--s)) calc(14px * var(--s)) calc(14px * var(--s)); }
.kv { display: grid; grid-template-columns: calc(120px * var(--s)) minmax(0, 1fr); gap: calc(5px * var(--s)) calc(12px * var(--s)); }
.kv dt { color: var(--muted); text-align: right; }
.kv dd { margin: 0; }
.card .sh { font-size: calc(11.5px * var(--s)); font-weight: 600; color: var(--muted); margin: calc(10px * var(--s)) 0 calc(5px * var(--s)); border-bottom: 1px solid var(--line2); padding-bottom: calc(3px * var(--s)); }

/* ---------- Aufgaben ---------- */
.tk { flex: 1; overflow-y: auto; }
.tk .add { display: flex; gap: calc(6px * var(--s)); padding: calc(8px * var(--s)) calc(10px * var(--s)); border-bottom: 1px solid var(--line); background: var(--card); }
.trow { display: grid; grid-template-columns: calc(30px * var(--s)) minmax(0, 1fr) calc(90px * var(--s)) calc(100px * var(--s)) calc(30px * var(--s)); align-items: center; height: calc(30px * var(--s)); border-bottom: 1px solid var(--line2); padding-right: calc(8px * var(--s)); }
.trow:hover { background: var(--hover); }
.trow input[type=checkbox] { justify-self: center; accent-color: var(--accent); }
.trow.done .tn { text-decoration: line-through; color: var(--muted); }
.trow .tn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: text; }
.trow .due { color: var(--muted); font-size: calc(11.5px * var(--s)); }
.trow .due.late { color: var(--danger); font-weight: 600; }
.prio { font-size: calc(11px * var(--s)); border-radius: calc(9px * var(--s)); padding: 0 calc(7px * var(--s)); border: 1px solid var(--line); justify-self: start; }
.prio.high { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.prio.low { color: var(--muted); }
.trow .x { opacity: 0; }
.trow:hover .x { opacity: 1; }

/* ---------- LUN-Apps ---------- */
.apps { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--card3); }
.apps .frame { flex: 1; margin: calc(10px * var(--s)); border: 1px solid var(--line); border-radius: calc(6px * var(--s)); background: var(--card); overflow: hidden; display: flex; flex-direction: column; }
.apps .frame iframe { flex: 1; border: 0; width: 100%; }
.ph { flex: 1; display: flex; align-items: center; justify-content: center; }
.ph .pc { max-width: calc(520px * var(--s)); text-align: center; color: var(--muted); padding: calc(24px * var(--s)); border: 1px dashed var(--input-line); border-radius: calc(8px * var(--s)); background: var(--card2); }
.ph .pc .ic { width: calc(54px * var(--s)); height: calc(54px * var(--s)); border-radius: calc(12px * var(--s)); background: var(--accent); color: var(--accent-on); display: flex; align-items: center; justify-content: center; margin: 0 auto calc(10px * var(--s)); }
.ph .pc .ic svg.i { width: calc(28px * var(--s)); height: calc(28px * var(--s)); }
.ph .pc h3 { color: var(--text); margin: 0 0 calc(4px * var(--s)); font-size: calc(15px * var(--s)); }
.ph .pc code { background: var(--card3); padding: 1px calc(5px * var(--s)); border-radius: calc(3px * var(--s)); font-size: calc(11.5px * var(--s)); }
.applist .f .url { color: var(--muted); font-size: calc(10.5px * var(--s)); }

/* ---------- Einstellungen ---------- */
.set { flex: 1; overflow-y: auto; background: var(--card3); padding: calc(14px * var(--s)); }
.set .card { margin-bottom: calc(12px * var(--s)); }
.set .card .ch { padding: calc(8px * var(--s)) calc(14px * var(--s)); background: var(--head-grad); color: var(--head-text); border-radius: calc(6px * var(--s)) calc(6px * var(--s)) 0 0; }
.set .card .ch h2 { font-size: calc(13px * var(--s)); }
.set .card .cb { padding: calc(12px * var(--s)) calc(14px * var(--s)); }
.set .form { grid-template-columns: calc(170px * var(--s)) minmax(0, 1fr); }
.set .rte { min-height: calc(90px * var(--s)); border-radius: 0 0 calc(4px * var(--s)) calc(4px * var(--s)); }

/* ---------- Anmeldung ---------- */
.loginwrap { height: calc(100vh - calc(42px * var(--s))); display: flex; align-items: center; justify-content: center; }
.login { width: calc(380px * var(--s)); }
.login .db { padding: calc(18px * var(--s)) calc(20px * var(--s)); }
.login .form { grid-template-columns: 1fr; gap: calc(4px * var(--s)); }
.login .form label { text-align: left; margin-top: calc(6px * var(--s)); }
.login .err { color: var(--danger); margin-top: calc(10px * var(--s)); min-height: calc(18px * var(--s)); }
.login .hint { color: var(--muted); font-size: calc(11.5px * var(--s)); margin-top: calc(8px * var(--s)); }

/* Meldung */
#toast { position: fixed; left: 50%; bottom: calc(22px * var(--s)); transform: translateX(-50%); z-index: 5100; display: flex; flex-direction: column; gap: calc(6px * var(--s)); align-items: center; pointer-events: none; }
#toast div { background: #3a3630; color: #f3efe8; padding: calc(7px * var(--s)) calc(14px * var(--s)); border-radius: calc(6px * var(--s)); box-shadow: var(--shadow); pointer-events: auto; display: flex; gap: calc(10px * var(--s)); align-items: center; }
#toast div.err { background: var(--danger); color: #fff; }
#toast div button { background: transparent; border: 0; color: #e6c37a; cursor: pointer; font-weight: 600; }
.dragghost { position: fixed; top: calc(-100px * var(--s)); background: var(--accent); color: #fff; padding: calc(3px * var(--s)) calc(9px * var(--s)); border-radius: calc(4px * var(--s)); font-size: calc(12px * var(--s)); }

/* ---------- schmalere Fenster (Tablet) ---------- */
@media (max-width: 1280px) {
  #topbar .search { width: calc(240px * var(--s)); }
  #topbar .user { display: none; }
}
@media (max-width: 1100px) {
  .box { grid-template-columns: var(--sidew, calc(178px * var(--s))) minmax(0, 1fr); }
  #topbar nav a { padding: calc(6px * var(--s)) calc(8px * var(--s)); }
  #topbar .logo span { display: none; }
  .panes.right { grid-template-columns: var(--listw, minmax(calc(320px * var(--s)), 48%)) minmax(0, 1fr); }
  .panes.right .list.ez .row, .panes.right .list.ez .lhead { grid-template-columns: calc(24px * var(--s)) calc(16px * var(--s)) var(--c-von, minmax(calc(80px * var(--s)), calc(120px * var(--s)))) minmax(0, 1fr) var(--c-at, calc(16px * var(--s))) var(--c-gr, calc(52px * var(--s))) var(--c-dat, calc(56px * var(--s))) calc(16px * var(--s)); }
  .toolbar .lbl, .reader .acts .lbl, .msg .who .em { display: none; }
  .compose { width: 96vw; }
  .ct { grid-template-columns: minmax(calc(250px * var(--s)), 42%) minmax(0, 1fr); }
}
@media (max-width: 860px) {
  #main { padding: calc(6px * var(--s)); }
  .box { grid-template-columns: minmax(0, 1fr); }
  .box > .side { display: none; }
  .box.sbopen > .side { display: flex; position: fixed; top: calc(48px * var(--s)); left: calc(6px * var(--s)); bottom: calc(6px * var(--s)); width: calc(230px * var(--s)); z-index: 40; box-shadow: var(--shadow); }
  #topbar nav a .lbl { display: none; }
  #topbar .search { width: calc(170px * var(--s)); }
  .panes.right { grid-template-columns: minmax(0, 1fr); }
  .panes.right .reader { display: none; }
  .split { display: none; }
  .panes.right.reading .list { display: none; }
  .panes.right.reading .reader { display: block; }
}
.sbtoggle { display: none !important; }
@media (max-width: 860px) { .sbtoggle { display: inline-flex !important; } }

/* ---------- Trennleisten zum Ziehen (unsichtbar, beim Darueberfahren eine Linie) ---------- */
.split { position: absolute; z-index: 6; touch-action: none; }
.split.sx { width: calc(8px * var(--s)); cursor: col-resize; }
.split.sy { height: calc(8px * var(--s)); cursor: row-resize; }
.split::after { content: ''; position: absolute; background: var(--accent); opacity: 0; transition: opacity .12s; }
.split.sx::after { left: calc(3px * var(--s)); width: calc(2px * var(--s)); top: 0; bottom: 0; }
.split.sy::after { top: calc(3px * var(--s)); height: calc(2px * var(--s)); left: 0; right: 0; }
.split:hover::after, .split.drag::after { opacity: .7; }
.panes:not(.right) > .split.list-x, .panes:not(.bottom) > .split.list-y { display: none; }
body.dragging-x, body.dragging-x * { cursor: col-resize !important; user-select: none; }
body.dragging-y, body.dragging-y * { cursor: row-resize !important; user-select: none; }

/* ---------- LUN-Apps als eigene Knoepfe in der Kopfleiste (nur Symbol, Name als Tooltip) ---------- */
#topbar nav .navsep { width: 1px; height: calc(20px * var(--s)); background: rgba(255,255,255,.35); margin: 0 calc(6px * var(--s)); align-self: center; }
#topbar nav a.app { padding: calc(6px * var(--s)) calc(8px * var(--s)); }
#topbar nav a.app .lbl { display: none; }

/* ---------- Suchbereich im Suchfeld (Dieser Ordner / + Unterordner / Alle Ordner) ---------- */
#topbar .search .scope { display: inline-flex; align-items: center; gap: calc(3px * var(--s)); border: 0; border-left: 1px solid var(--input-line); background: transparent;
  color: var(--muted); height: calc(20px * var(--s)); padding: 0 calc(2px * var(--s)) 0 calc(8px * var(--s)); margin-right: calc(-2px * var(--s)); cursor: pointer; font-size: calc(11.5px * var(--s)); white-space: nowrap; }
#topbar .search .scope:hover { color: var(--accent); }
#topbar .search .scope svg.i { width: calc(12px * var(--s)); height: calc(12px * var(--s)); }

/* ---------- Menues: Trennlinie, gesperrt, Ueberschrift, Farbfelder ---------- */
.menu hr.msep { border: 0; border-top: 1px solid var(--line); margin: calc(4px * var(--s)) 0; }
.menu div.dis { opacity: .45; cursor: default; }
.menu div.dis:hover { background: transparent; }
.menu div.mhead { opacity: 1; font-size: calc(11px * var(--s)); font-weight: 600; color: var(--muted); padding-top: calc(2px * var(--s)); padding-bottom: calc(2px * var(--s)); }
.menu div.danger { color: var(--danger); }
.menu div.farbe { padding-left: calc(14px * var(--s)); }
.menu div.farbe::after { content: ''; width: calc(12px * var(--s)); height: calc(12px * var(--s)); border-radius: calc(3px * var(--s)); margin-left: auto; border: 1px solid rgba(0,0,0,.25); }
.menu div.farbe.f0::after { background: transparent; border-style: dashed; }
.menu div.f1::after { background: #5b9bf2; } .menu div.f2::after { background: #43eded; } .menu div.f3::after { background: #6acb9e; }
.menu div.f4::after { background: #ba86e5; } .menu div.f5::after { background: #f66666; } .menu div.f6::after { background: #f8fa33; }
.menu div.f7::after { background: #fe98d3; } .menu div.f8::after { background: #bebebe; } .menu div.f9::after { background: #fdbc55; }
.menu.ctx { min-width: calc(220px * var(--s)); }

/* ---------- Kalender: Blaetterleiste wie Zimbra Classic (Heute | < Zeitraum > | Ansichten) ---------- */
#c-tb .btn.today { font-weight: 600; border-color: var(--accent); color: var(--accent); }
#c-tb .btn.today svg.i { color: var(--aktion); }
#c-tb .pager { display: inline-flex; align-items: center; gap: calc(6px * var(--s)); }
#c-tb .pager .ttl { margin: 0 calc(4px * var(--s)); min-width: calc(220px * var(--s)); text-align: center; }
#c-tb .btn.pg { width: calc(30px * var(--s)); padding: 0; justify-content: center; }
.mini td.sel { outline: calc(2px * var(--s)) solid var(--accent); outline-offset: calc(-2px * var(--s)); font-weight: 700; }
.mini td.wb { background: var(--sel); }
.mini tr.w td:not(.wb):not(.t) { background: transparent; }
.wk .dh > div[data-hd] { cursor: pointer; }
.wk .dh > div.sel { box-shadow: inset 0 calc(-3px * var(--s)) 0 var(--accent); }
.mo .mr > div.sel { box-shadow: inset 0 0 0 calc(2px * var(--s)) var(--accent); }
.mo .mr > div .n { cursor: pointer; }
.mo .mr > div .n:hover { text-decoration: underline; }
/* Liste */
.clist { flex: 1; overflow-y: auto; min-height: 0; }
.clist .lday { position: sticky; top: 0; z-index: 1; padding: calc(5px * var(--s)) calc(12px * var(--s)); font-weight: 600; font-size: calc(12px * var(--s)); background: var(--card2); border-bottom: 1px solid var(--line); }
.clist .lday .ldn { color: var(--muted); font-weight: 400; }
.clist .lday.today { color: var(--accent); }
.clist .lday.sel { box-shadow: inset calc(3px * var(--s)) 0 0 var(--accent); }
.clist .lrow { display: grid; grid-template-columns: calc(110px * var(--s)) calc(12px * var(--s)) minmax(0, 1fr) minmax(0, 30%) calc(120px * var(--s)); gap: calc(8px * var(--s)); align-items: center; padding: 0 calc(12px * var(--s)); height: calc(30px * var(--s));
  border-bottom: 1px solid var(--line2); cursor: pointer; }
.clist .lrow:hover { background: var(--hover); }
.clist .lrow > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clist .lt { color: var(--muted); font-size: calc(11.5px * var(--s)); }
.clist .ldot { width: calc(10px * var(--s)); height: calc(10px * var(--s)); border-radius: 50%; }
.clist .ln { font-weight: 600; }
.clist .ll, .clist .lc { color: var(--muted); font-size: calc(11.5px * var(--s)); }
.clist .lmore { padding: calc(14px * var(--s)); text-align: center; color: var(--muted); font-size: calc(11.5px * var(--s)); cursor: pointer; }

/* ---------- Kategorien (Zimbra-Tags) ---------- */
.kdots { display: inline-flex; gap: calc(2px * var(--s)); margin-right: calc(5px * var(--s)); vertical-align: 0; }
.kdot { width: calc(8px * var(--s)); height: calc(8px * var(--s)); border-radius: calc(2px * var(--s)); display: inline-block; }
.kchip { display: inline-flex; align-items: center; gap: calc(4px * var(--s)); height: calc(20px * var(--s)); padding: 0 calc(7px * var(--s)); border-radius: calc(10px * var(--s)); font-size: calc(11.5px * var(--s)); margin: 0 calc(4px * var(--s)) calc(2px * var(--s)) 0; cursor: pointer;
  background: color-mix(in srgb, var(--k) 22%, var(--card)); border: 1px solid color-mix(in srgb, var(--k) 70%, transparent); color: var(--text); white-space: nowrap; }
.kchip::before { content: ''; width: calc(8px * var(--s)); height: calc(8px * var(--s)); border-radius: calc(2px * var(--s)); background: var(--k); }
.katwahl { display: flex; flex-wrap: wrap; align-items: center; gap: calc(2px * var(--s)); min-height: calc(28px * var(--s)); }
.katwahl .btn { height: calc(22px * var(--s)); padding: 0 calc(6px * var(--s)); font-size: calc(11.5px * var(--s)); }
.katlist li.kat { cursor: pointer; border-radius: calc(4px * var(--s)); }
.katlist li.kat:hover { background: var(--hover); }
.katlist li.kat.on { background: var(--sel); font-weight: 600; }
.katlist li.alle { color: var(--muted); font-size: calc(11.5px * var(--s)); }
.menu div.kat::after { content: ''; width: calc(12px * var(--s)); height: calc(12px * var(--s)); border-radius: calc(3px * var(--s)); margin-left: auto; background: var(--k); }
.katverw .krow { display: flex; align-items: center; gap: calc(8px * var(--s)); padding: calc(4px * var(--s)) calc(2px * var(--s)); border-bottom: 1px solid var(--line2); }
.katverw .kfarbe { width: calc(18px * var(--s)); height: calc(18px * var(--s)); border-radius: calc(4px * var(--s)); border: 1px solid rgba(0,0,0,.2); cursor: pointer; padding: 0; }
.katverw .kn { flex: 1; }
.btn.danger-pri { background: var(--danger) !important; border-color: var(--danger) !important; }
.clist .lc .kchip { cursor: default; height: calc(18px * var(--s)); font-size: calc(11px * var(--s)); }
.mini td.t.wb, .mini td.t.sel { background: var(--accent); color: var(--accent-on); }

/* ---------- eingebettete LUN-Apps (iframes bleiben in #appdock geladen) ---------- */
#appdock { position: fixed; z-index: 20; background: var(--card); }
#appdock[hidden] { display: none; }
#appdock iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.apps.eingebettet .frame { margin: 0; border: 0; border-radius: 0; }
.toolbar.appbar { height: calc(34px * var(--s)); }
.toolbar.appbar .btn { height: calc(24px * var(--s)); }

/* ---------- Kontakte: A-Z-Leiste, grosses Bearbeiten-Fenster ---------- */
.ct .clistw { display: flex; min-height: 0; border-right: 1px solid var(--line); }
.ct .clistw .clist { flex: 1; border-right: 0; }
.abc { display: flex; flex-direction: column; flex: none; width: calc(30px * var(--s)); overflow-y: auto; border-right: 1px solid var(--line2); background: var(--card2); padding: calc(2px * var(--s)) 0; }
.abc button { border: 0; background: transparent; font-size: calc(10.5px * var(--s)); font-weight: 600; color: var(--accent); padding: calc(2px * var(--s)) 0; cursor: pointer; line-height: 1.25; }
.abc button:first-child { font-size: calc(9.5px * var(--s)); color: var(--muted); }
.abc button:disabled { color: var(--muted); opacity: .4; cursor: default; font-weight: 400; }
.abc button.on { background: var(--accent); color: var(--accent-on); border-radius: calc(3px * var(--s)); }
.crow .kt { margin-left: auto; display: inline-flex; }
.crow .kt .kchip { height: calc(16px * var(--s)); font-size: calc(10.5px * var(--s)); margin: 0 0 0 calc(3px * var(--s)); padding: 0 calc(5px * var(--s)); }
.av.big { width: calc(46px * var(--s)); height: calc(46px * var(--s)); font-size: calc(16px * var(--s)); }
.av.grp { background: var(--muted); color: #fff; }
.av.grp svg.i { width: 60%; height: 60%; }
.card .kats { margin-top: calc(4px * var(--s)); }
.card .notes { white-space: pre-wrap; }
.kontaktdlg { max-height: calc(100vh - calc(40px * var(--s))); }
.kform .khead { display: flex; align-items: center; gap: calc(14px * var(--s)); padding: calc(4px * var(--s)) 0 calc(12px * var(--s)); border-bottom: 1px solid var(--line2); margin-bottom: calc(8px * var(--s)); }
.kform .khead .av { width: calc(64px * var(--s)); height: calc(64px * var(--s)); font-size: calc(22px * var(--s)); }
.kform .kname { font-size: calc(17px * var(--s)); font-weight: 600; }
.kform .kgrp { margin: calc(10px * var(--s)) 0 calc(4px * var(--s)); }
.kform .kgt { font-size: calc(11.5px * var(--s)); font-weight: 600; color: var(--accent); border-bottom: 1px solid var(--line2); padding-bottom: calc(3px * var(--s)); margin-bottom: calc(6px * var(--s)); }
.kform .kgf { display: grid; grid-template-columns: 1fr 1fr; gap: calc(6px * var(--s)) calc(14px * var(--s)); }
.kform .kgf label { display: flex; flex-direction: column; gap: calc(2px * var(--s)); font-size: calc(11.5px * var(--s)); color: var(--muted); }
.kform .kgf label.voll { grid-column: 1 / -1; }
.kform .kmehr { margin: calc(12px * var(--s)) 0 calc(4px * var(--s)); }

/* ---------- Kalender: Arbeitszeit, Ziehen, Anzeigen als, Einladungen, Terminplanung, Druck ---------- */
:root { --offhours: rgba(60, 50, 30, .045); }
[data-theme="dark"] { --offhours: rgba(0, 0, 0, .22); }
.wk .col { background-color: var(--card); }
.wk .hrs > div { height: auto; }
.ev { touch-action: none; }
.ev.ziehen { opacity: .85; box-shadow: 0 calc(4px * var(--s)) calc(14px * var(--s)) rgba(0,0,0,.25); z-index: 10; cursor: grabbing; }
.ev .rs { position: absolute; left: 0; right: 0; bottom: 0; height: calc(6px * var(--s)); cursor: ns-resize; }
.ev:hover .rs { background: linear-gradient(transparent calc(2px * var(--s)), color-mix(in srgb, currentColor 30%, transparent) calc(2px * var(--s)) calc(4px * var(--s)), transparent calc(4px * var(--s))); }
svg.i.evi { width: calc(11px * var(--s)); height: calc(11px * var(--s)); margin-right: calc(3px * var(--s)); vertical-align: calc(-1px * var(--s)); opacity: .75; }
.ev.fb-t, .evd.fb-t { background-image: repeating-linear-gradient(135deg, transparent 0 calc(5px * var(--s)), rgba(255,255,255,.45) calc(5px * var(--s)) calc(9px * var(--s))) !important; }
.ev.fb-f, .evd.fb-f { opacity: .7; border-left-style: dotted !important; }
.ev.fb-o, .evd.fb-o { border-left-color: #8764b8 !important; }
.ev.offen, .evd.offen { outline: 1px dashed color-mix(in srgb, var(--text) 45%, transparent); outline-offset: calc(-1px * var(--s)); }
.ev.ro, .evd.ro { cursor: default; font-style: italic; }
.mini td.ft { color: var(--danger); }
.wk.split .kalkopf { display: flex; align-items: center; gap: calc(6px * var(--s)); font-weight: 600; }
.wk .z2 { color: var(--muted); font-size: calc(10px * var(--s)); }
.wk .dh > div.z2 { justify-content: center; }
.termindlg { max-height: calc(100vh - calc(30px * var(--s))); }
.termindlg .form { grid-template-columns: calc(100px * var(--s)) minmax(0, 1fr); }
.inrow.wrap { flex-wrap: wrap; row-gap: calc(4px * var(--s)); }
.recx { display: inline-flex; align-items: center; gap: calc(4px * var(--s)); }
.tagw { font-size: calc(11.5px * var(--s)); gap: calc(2px * var(--s)) !important; }
.einl { background: var(--sel); border: 1px solid var(--sel-line); border-radius: calc(6px * var(--s)); padding: calc(8px * var(--s)) calc(10px * var(--s)); margin-bottom: calc(10px * var(--s)); display: flex; flex-direction: column; gap: calc(6px * var(--s)); }
.einl .einlk { display: flex; gap: calc(6px * var(--s)); align-items: center; flex-wrap: wrap; }
.einl .einlk .sp { flex: 1; }
.plan { border: 1px solid var(--line); border-radius: calc(5px * var(--s)); padding: calc(6px * var(--s)); margin-top: calc(6px * var(--s)); overflow-x: auto; }
.plan .pz { display: grid; grid-template-columns: calc(120px * var(--s)) repeat(26, minmax(calc(12px * var(--s)), 1fr)); align-items: center; gap: 1px; }
.plan .pz > span:first-child { font-size: calc(11.5px * var(--s)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: calc(4px * var(--s)); }
.plan .pz > span { font-size: calc(10px * var(--s)); color: var(--muted); }
.plan .pz > span.voll { border-left: 1px solid var(--line); padding-left: calc(2px * var(--s)); }
.plan .pz i { height: calc(16px * var(--s)); background: var(--card2); border: 1px solid var(--line2); cursor: pointer; }
.plan .pz i.b-B { background: #5b9bf2; } .plan .pz i.b-T { background: repeating-linear-gradient(135deg, #5b9bf2 0 calc(3px * var(--s)), #cfe0fb calc(3px * var(--s)) calc(6px * var(--s))); }
.plan .pz i.b-O { background: #8764b8; } .plan .pz i.b-N { background: #bebebe; }
.plan .pz i.wahl { outline: calc(2px * var(--s)) solid var(--accent); outline-offset: calc(-1px * var(--s)); }
.raeume { margin-top: calc(8px * var(--s)); max-height: calc(300px * var(--s)); overflow-y: auto; }
.raeume .krow { cursor: pointer; }
.raeume .krow:hover { background: var(--hover); }
.kchip button { border: 0; background: transparent; cursor: pointer; color: var(--muted); padding: 0 0 0 calc(2px * var(--s)); }
.chip button { border: 0; background: transparent; cursor: pointer; color: var(--muted); padding: 0 calc(2px * var(--s)); }
#a-atts { display: flex; flex-wrap: wrap; gap: calc(4px * var(--s)); align-items: center; }
#a-atts .btn { height: calc(24px * var(--s)); font-size: calc(11.5px * var(--s)); }
/* Erinnerungen */
#erinnerung { position: fixed; right: calc(16px * var(--s)); bottom: calc(16px * var(--s)); z-index: 80; display: flex; flex-direction: column; gap: calc(8px * var(--s)); width: calc(340px * var(--s)); }
#erinnerung .er { background: var(--card); border: 1px solid var(--line); border-left: calc(4px * var(--s)) solid var(--accent); border-radius: calc(6px * var(--s)); box-shadow: var(--shadow); padding: calc(10px * var(--s)) calc(12px * var(--s)); }
#erinnerung .er h4 { margin: 0 0 calc(2px * var(--s)); font-size: calc(13px * var(--s)); display: flex; gap: calc(6px * var(--s)); align-items: center; }
#erinnerung .er .w { color: var(--muted); font-size: calc(11.5px * var(--s)); margin-bottom: calc(8px * var(--s)); }
#erinnerung .er .k { display: flex; gap: calc(6px * var(--s)); flex-wrap: wrap; }
/* Drucken: nur der Kalender (bzw. die aktuelle Ansicht) */
@media print {
  #topbar, .side, .toolbar .btn, .toolbar .seg, #toast, #erinnerung, .split, #appdock { display: none !important; }
  body, #main, .box, .content { height: auto !important; overflow: visible !important; background: #fff !important; box-shadow: none !important; }
  .box { display: block !important; border: 0 !important; }
  .wk .grid, .clist, .cal { overflow: visible !important; height: auto !important; }
  .ev, .evd { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
/* Kategorien im Ordnerbereich und im Lesebereich */
.shead.katkopf { cursor: pointer; justify-content: flex-start; gap: calc(6px * var(--s)); }
.shead.katkopf .tw2 { font-size: calc(10px * var(--s)); color: var(--muted); width: calc(10px * var(--s)); }
.tree .ksw { display: inline-block; width: calc(12px * var(--s)); height: calc(12px * var(--s)); border-radius: calc(3px * var(--s)); margin: calc(2px * var(--s)); }
.rkats { margin: calc(-2px * var(--s)) 0 calc(6px * var(--s)); }
.einl.rein { margin: calc(8px * var(--s)) calc(12px * var(--s)) 0; }
.einl.rein textarea { resize: vertical; }

/* Schriftgroessen-Knopf */
#topbar .tb .aa { font-weight: 700; font-size: calc(15px * var(--s)); line-height: 1; }
#topbar .tb .aa small { font-size: calc(10px * var(--s)); }

/* ---------- Lesebereich wie Zimbra Classic (Punkt 16): grauer Kopf, Adress-Knoepfe, Inhalt randlos ---------- */
.reader { background: var(--card); }
.reader .rhead { background: var(--card2); border-bottom: 0; padding: calc(12px * var(--s)) calc(16px * var(--s)) calc(8px * var(--s)); }
.reader .rhead h2 { font-size: calc(18px * var(--s)); font-weight: 700; margin: 0 0 calc(6px * var(--s)); }
.reader .msgs { padding: 0; gap: 0; }
.msg { border: 0; border-radius: 0; border-bottom: 1px solid var(--line); background: var(--card); overflow: visible; }
.msg.zu .mh { padding: calc(6px * var(--s)) calc(16px * var(--s)); gap: calc(10px * var(--s)); }
.msg.zu .mh .av { width: calc(24px * var(--s)); height: calc(24px * var(--s)); font-size: calc(10px * var(--s)); }
.msg.zu .nm { font-weight: 600; white-space: nowrap; }
.msg.zu .pv { flex: 1; min-width: 0; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg.open .mh.mkopf { background: var(--card2); border-bottom: 1px solid var(--line); align-items: flex-start; padding: calc(8px * var(--s)) calc(16px * var(--s)) calc(12px * var(--s)); gap: calc(12px * var(--s)); cursor: default; }
.msg .av.mav { width: calc(52px * var(--s)); height: calc(52px * var(--s)); font-size: calc(18px * var(--s)); }
.msg .vonz { font-size: calc(14px * var(--s)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg .vonz .em { font-size: calc(12px * var(--s)); }
.msg .adr { display: flex; flex-wrap: wrap; gap: calc(3px * var(--s)) calc(4px * var(--s)); align-items: center; margin-top: calc(4px * var(--s)); font-size: calc(12px * var(--s)); }
.msg .adr .lb { color: var(--muted); width: calc(30px * var(--s)); flex: none; }
.adrchip { border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: calc(11px * var(--s)); padding: 0 calc(9px * var(--s)); height: calc(21px * var(--s)); font-size: calc(11.5px * var(--s)); cursor: pointer; white-space: nowrap; }
.adrchip:hover { border-color: var(--accent); color: var(--accent); }
.msg .rechts { display: flex; flex-direction: column; align-items: flex-end; gap: calc(6px * var(--s)); flex: none; }
.msg .atts { padding: calc(8px * var(--s)) calc(16px * var(--s)); background: var(--card2); border-bottom: 1px solid var(--line); margin: 0; }
.msg .mb { padding: calc(14px * var(--s)) calc(18px * var(--s)) calc(20px * var(--s)); }

/* ---------- Liste: zarte Zebra-Zeilen, Lesekreis rechts (Punkt 17) ---------- */
:root { --zebra: rgba(0, 0, 0, .022); }
[data-theme="dark"] { --zebra: rgba(255, 255, 255, .028); }
.row.z:not(.sel):not(:hover) { background: var(--zebra); }
.row .rd { width: calc(9px * var(--s)); height: calc(9px * var(--s)); border-radius: 50%; border: calc(1.5px * var(--s)) solid var(--line); justify-self: center; align-self: center; cursor: pointer; box-sizing: border-box; }
.row .rd:hover { border-color: var(--accent); transform: scale(1.25); }
.row.unread .rd { background: var(--accent); border-color: var(--accent); }
.lhead > span:last-child { }

/* ---------- Liste einzeilig (Spalten, sortierbar, Breite ziehbar) / mehrzeilig (Punkt 18) ---------- */
.row .gr { text-align: right; color: var(--muted); font-size: calc(11px * var(--s)); }
.lhead > span[data-sort] { cursor: pointer; position: relative; user-select: none; }
.lhead > span[data-sort]:hover { color: var(--accent); }
.lhead > span[data-sort].on::after { content: ' ▾'; font-size: calc(9px * var(--s)); }
.lhead > span[data-sort].on.auf::after { content: ' ▴'; }
.lhead .cres { position: absolute; right: calc(-4px * var(--s)); top: 0; bottom: 0; width: calc(8px * var(--s)); cursor: col-resize; z-index: 3; }
.lhead .cres:hover { background: color-mix(in srgb, var(--accent) 35%, transparent); }
.list.zz .lhead { display: none; }
.list.zz .row { grid-template-columns: calc(28px * var(--s)) minmax(0, 1fr) auto var(--c-dat, auto) calc(16px * var(--s)); grid-template-areas: "ck fr at dt rd" "ck su fl gr rd";
  height: auto; padding: calc(5px * var(--s)) calc(10px * var(--s)) calc(5px * var(--s)) calc(2px * var(--s)); column-gap: calc(6px * var(--s)); row-gap: 1px; }
.list.zz .row .ck { grid-area: ck; align-self: start; padding-top: calc(2px * var(--s)); }
.list.zz .row .fr { grid-area: fr; }
.list.zz .row .su { grid-area: su; }
.list.zz .row .at { grid-area: at; }
.list.zz .row .dt { grid-area: dt; }
.list.zz .row .fl { grid-area: fl; justify-content: flex-end; }
.list.zz .row .gr { grid-area: gr; }
.list.zz .row .rd { grid-area: rd; }
.list.zz .row .su .sn { display: inline; }
.list.zz .daysep { padding-left: calc(30px * var(--s)); }

/* Leisten zusammenruecken (js/util.js passeAn): Stufe fuer Stufe weniger Beschriftung */
#topbar.eng1 nav a .lbl { display: none; }
#topbar.eng1 nav a { padding: calc(6px * var(--s)) calc(8px * var(--s)); }
#topbar.eng2 .user { display: none; }
#topbar.eng3 .search { width: calc(200px * var(--s)); }
#topbar.eng4 .logo span, #topbar.eng4 .demo { display: none; }
#topbar.eng4 .search { width: calc(150px * var(--s)); }
#topbar.eng5 .search .scope span { display: none; }
#topbar.eng5 nav a.app { padding: calc(6px * var(--s)) calc(4px * var(--s)); }
.toolbar.eng1 .chk .lbl { display: none; }
.toolbar.eng2 .n2 .lbl { display: none; }
.toolbar.eng2 .n2 { padding: 0 calc(7px * var(--s)); }
.toolbar.eng3 .lbl { display: none; }
.toolbar.eng3 .btn { padding: 0 calc(7px * var(--s)); }
.toolbar.eng4 .cnt { display: none; }
.toolbar.eng5 .ttl { max-width: calc(140px * var(--s)); overflow: hidden; text-overflow: ellipsis; }
.toolbar.eng5 .chk { display: none; }
.toolbar.eng6 .sep { display: none; }
.toolbar.eng6 .seg button { padding: 0 calc(6px * var(--s)); }
#c-tb.eng2 .pager .ttl { min-width: 0; }
#c-tb.eng3 .pager .ttl .cnt { display: none; }
#c-tb.eng4 .btn.today span { display: none; }
/* Leisten: Elemente nicht stauchen (sonst werden Knoepfe unsichtbar schmal) - passeAn() blendet stattdessen Beschriftungen aus */
.toolbar > *:not(.sp):not(.ttl), #topbar > *:not(.sp) { flex-shrink: 0; }
#c-tb.eng3 [data-n=print], #c-tb.eng3 [data-n=split] { display: none; }
#c-tb.eng5 #c-views button { padding: 0 calc(5px * var(--s)); font-size: calc(11px * var(--s)); }
#c-tb.eng7 [data-n=reload] { display: none; }
.toolbar.eng7 .seg[title="Listenansicht"] { display: none; }

/* Ordner ohne eigene Farbe: gefuelltes Ordnersymbol in einer ruhigen Standardfarbe (wie farbige Ordner, nur andere Farbe);
   Systemordner behalten ihr Symbol, in kraeftiger Linienfarbe (Anwender 22.11.) */
:root { --ordner: #a89f90; --ordner-sys: #6f685d; }
[data-theme="dark"] { --ordner: #8a8173; --ordner-sys: #b0a99d; }
.tree .f .fi.ord:not([style]) { color: var(--ordner); }
.tree .f .fi.ord svg.i { fill: color-mix(in srgb, currentColor 88%, transparent); stroke: color-mix(in srgb, currentColor 65%, #000); }   /* 0.13.0: 88 % statt 70 % - Ordnersymbol >= 3:1 auf der Flaeche */
.tree .f .fi.sys:not([style]) { color: var(--ordner-sys); }
.tree .f.on .fi.sys:not([style]) { color: var(--accent); }

/* ---------- Verfassen im Lesebereich / schwebendes Fenster ---------- */
.cmp { display: flex; flex-direction: column; min-height: 0; height: 100%; background: var(--card); }
.cmp .cmp-kopf { display: flex; align-items: center; gap: calc(4px * var(--s)); padding: calc(6px * var(--s)) calc(10px * var(--s)); border-bottom: 1px solid var(--line2); background: var(--card2); font-weight: 600; }
.cmp .cmp-kopf .sp, .cmp .cmp-leiste .sp { flex: 1; }
.cmp .cmp-leiste { display: flex; align-items: center; gap: calc(4px * var(--s)); padding: calc(6px * var(--s)) calc(10px * var(--s)); border-bottom: 1px solid var(--line2); flex-wrap: wrap; }
.cmp .cmp-felder { padding: calc(8px * var(--s)) calc(12px * var(--s)) calc(4px * var(--s)); grid-template-columns: calc(70px * var(--s)) minmax(0, 1fr); gap: calc(5px * var(--s)) calc(8px * var(--s)); }
.cmp .vonbtn { height: calc(24px * var(--s)); padding: 0 calc(4px * var(--s)); font-weight: 400; }
.cmp .cmp-info { padding: 0 calc(12px * var(--s)); display: flex; gap: calc(4px * var(--s)); flex-wrap: wrap; }
.cmp .cmp-ed { display: flex; flex-direction: column; flex: 1; min-height: calc(160px * var(--s)); padding: calc(6px * var(--s)) calc(12px * var(--s)) 0; }
.cmp .attl { padding: calc(6px * var(--s)) calc(12px * var(--s)); }
.reader.verfassen { display: flex; flex-direction: column; overflow: hidden; }
.reader.verfassen > .cmp { flex: 1; }
.cmp-fenster { position: fixed; z-index: 55; background: var(--card); border: 1px solid var(--line); border-radius: calc(8px * var(--s)); box-shadow: 0 calc(10px * var(--s)) calc(40px * var(--s)) rgba(0,0,0,.35);
  display: flex; flex-direction: column; overflow: hidden; min-width: calc(420px * var(--s)); min-height: calc(320px * var(--s)); }
.cmp-fenster.max { left: calc(8px * var(--s)) !important; top: calc(8px * var(--s)) !important; width: calc(100vw - calc(16px * var(--s))) !important; height: calc(100vh - calc(16px * var(--s))) !important; }
.cmp-fenster .cmp-fkopf { display: flex; align-items: center; gap: calc(4px * var(--s)); padding: calc(4px * var(--s)) calc(6px * var(--s)) calc(4px * var(--s)) calc(12px * var(--s)); background: var(--bar); color: var(--bar-text); cursor: move; user-select: none; font-weight: 600; }
.cmp-fenster .cmp-fkopf .btn { color: var(--bar-text); }
.cmp-fenster .cmp-fkopf .btn:hover { background: var(--bar-hover); }
.cmp-fenster .cmp-fkopf .sp { flex: 1; }
.cmp-fenster .cmp-finhalt { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.cmp-fenster .rz { position: absolute; z-index: 2; }
.cmp-fenster .rz-n, .cmp-fenster .rz-s { left: calc(8px * var(--s)); right: calc(8px * var(--s)); height: calc(6px * var(--s)); cursor: ns-resize; } .cmp-fenster .rz-n { top: calc(-3px * var(--s)); } .cmp-fenster .rz-s { bottom: calc(-3px * var(--s)); }
.cmp-fenster .rz-e, .cmp-fenster .rz-w { top: calc(8px * var(--s)); bottom: calc(8px * var(--s)); width: calc(6px * var(--s)); cursor: ew-resize; } .cmp-fenster .rz-e { right: calc(-3px * var(--s)); } .cmp-fenster .rz-w { left: calc(-3px * var(--s)); }
.cmp-fenster .rz-ne, .cmp-fenster .rz-nw, .cmp-fenster .rz-se, .cmp-fenster .rz-sw { width: calc(12px * var(--s)); height: calc(12px * var(--s)); }
.cmp-fenster .rz-ne { top: calc(-3px * var(--s)); right: calc(-3px * var(--s)); cursor: nesw-resize; } .cmp-fenster .rz-sw { bottom: calc(-3px * var(--s)); left: calc(-3px * var(--s)); cursor: nesw-resize; }
.cmp-fenster .rz-nw { top: calc(-3px * var(--s)); left: calc(-3px * var(--s)); cursor: nwse-resize; } .cmp-fenster .rz-se { bottom: calc(-3px * var(--s)); right: calc(-3px * var(--s)); cursor: nwse-resize; }
#cmp-leiste { position: fixed; right: calc(16px * var(--s)); bottom: 0; z-index: 56; display: flex; gap: calc(6px * var(--s)); }
#cmp-leiste .cmp-chip { border: 1px solid var(--line); border-bottom: 0; background: var(--bar); color: var(--bar-text); border-radius: calc(6px * var(--s)) calc(6px * var(--s)) 0 0; padding: calc(6px * var(--s)) calc(12px * var(--s)); cursor: pointer; max-width: calc(240px * var(--s));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-flex; gap: calc(6px * var(--s)); align-items: center; }
/* ---------- Hinweise im Lesebereich ---------- */
.hinweis { display: flex; align-items: center; gap: calc(8px * var(--s)); padding: calc(6px * var(--s)) calc(16px * var(--s)); font-size: calc(12px * var(--s)); border-bottom: 1px solid var(--line2); }
.hinweis.extern { background: color-mix(in srgb, #e6b800 14%, var(--card)); }
.hinweis.alarm { background: color-mix(in srgb, var(--danger) 18%, var(--card)); color: var(--text); font-weight: 600; }
.hinweis.bilder { background: var(--card2); }
.hinweis.wichtig { background: color-mix(in srgb, var(--flag) 12%, var(--card)); }
.hinweis .btn { height: calc(22px * var(--s)); font-size: calc(11.5px * var(--s)); }
/* ---------- Kopfzeilen, Vorschau ---------- */
.kopfdlg { height: min(80vh, calc(760px * var(--s))); }
pre.kopfz { margin: 0; font: calc(12px * var(--s))/1.45 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; word-break: break-all; color: var(--muted); }
pre.kopfz .wichtig { color: var(--text); font-weight: 600; }
pre.kopfz .alarm { color: var(--danger); }
.vorschau { height: min(88vh, calc(900px * var(--s))); }
.vorschau .db { padding: 0; display: flex; }
.vorschau iframe { flex: 1; border: 0; width: 100%; min-height: 70vh; }
.vorschau .vbild { flex: 1; display: flex; align-items: center; justify-content: center; background: var(--card3); padding: calc(10px * var(--s)); }
.vorschau .vbild img { max-width: 100%; max-height: 74vh; }
/* ---------- Einstellungen wie Classic: links Bereiche ---------- */
.set.einst { display: grid; grid-template-columns: calc(230px * var(--s)) minmax(0, 1fr); gap: calc(14px * var(--s)); align-items: start; }
.set.einst #s-nav { position: sticky; top: 0; display: flex; flex-direction: column; gap: 1px; background: var(--card); border: 1px solid var(--line); border-radius: calc(6px * var(--s)); padding: calc(4px * var(--s)); }
.set.einst #s-nav a { display: flex; align-items: center; gap: calc(8px * var(--s)); padding: calc(6px * var(--s)) calc(10px * var(--s)); border-radius: calc(4px * var(--s)); cursor: pointer; color: var(--text); text-decoration: none; }
.set.einst #s-nav a:hover { background: var(--hover); }
.set.einst #s-nav a.on { background: var(--sel); font-weight: 600; }
.set.einst .sbody { max-width: calc(860px * var(--s)); }
.regel { display: flex; align-items: center; gap: calc(8px * var(--s)); padding: calc(6px * var(--s)) calc(2px * var(--s)); border-bottom: 1px solid var(--line2); }
.regel .rt { flex: 1; min-width: 0; }
.rconds { display: flex; flex-direction: column; gap: calc(4px * var(--s)); margin: calc(4px * var(--s)) 0 calc(8px * var(--s)) calc(102px * var(--s)); }
.regeldlg { max-height: calc(100vh - calc(40px * var(--s))); }
table.tasten { border-collapse: collapse; } table.tasten td { padding: calc(3px * var(--s)) calc(10px * var(--s)) calc(3px * var(--s)) 0; }
kbd { font: calc(11.5px * var(--s)) ui-monospace, Consolas, monospace; border: 1px solid var(--line); border-bottom-width: calc(2px * var(--s)); border-radius: calc(4px * var(--s)); padding: 1px calc(5px * var(--s)); background: var(--card2); }
.quota { height: calc(6px * var(--s)); border-radius: calc(3px * var(--s)); background: var(--line2); margin-top: calc(4px * var(--s)); max-width: calc(300px * var(--s)); overflow: hidden; } .quota i { display: block; height: 100%; background: var(--accent); }
.siglist .krow, #s-wb .krow, #s-konten .krow { display: flex; align-items: center; gap: calc(8px * var(--s)); padding: calc(4px * var(--s)) calc(2px * var(--s)); border-bottom: 1px solid var(--line2); }
#s-wb .krow .kn, .siglist .kn, #s-konten .kn { flex: 1; }
#topbar .search .qadv { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 0 calc(2px * var(--s)); display: inline-flex; }
#topbar .search .qadv:hover { color: var(--accent); }
/* ---------- Datumsgruppen in der Liste: Band, zuklappbar ---------- */
:root { --gruppe: #eae6df; } [data-theme="dark"] { --gruppe: #2c2a27; }
.daysep { position: sticky; top: calc(24px * var(--s)); z-index: 1; background: var(--gruppe) !important; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line) !important; cursor: pointer;
  font-weight: 700 !important; font-size: calc(11.5px * var(--s)) !important; color: var(--text) !important; display: flex; align-items: center; gap: calc(4px * var(--s)); padding: calc(3px * var(--s)) calc(10px * var(--s)) calc(3px * var(--s)) calc(8px * var(--s)) !important; }
.daysep .tw { width: calc(14px * var(--s)); color: var(--muted); font-size: calc(10px * var(--s)); }
.daysep .gz { color: var(--muted); font-weight: 400; }
.list.zz .daysep { top: 0; }
.klhead .tabs .gruppen { border: 0; background: transparent; cursor: pointer; color: var(--muted); padding: 0 calc(4px * var(--s)); height: calc(28px * var(--s)); border-radius: calc(4px * var(--s)); }
.klhead .tabs .gruppen.on { color: var(--accent); background: var(--sel); }
/* Drucken nur der E-Mail */
@media print {
  body.druck-mail #main .side, body.druck-mail #m-list, body.druck-mail .toolbar, body.druck-mail .rhead .acts, body.druck-mail .mact, body.druck-mail .hinweis { display: none !important; }
  body.druck-mail .panes { display: block !important; } body.druck-mail .reader { overflow: visible !important; }
}
body.eigenesfenster { overflow: hidden; }
body.eigenesfenster #app > .cmp { height: 100vh; }
body.eigenesfenster .cmp .cmp-kopf { background: var(--bar); color: var(--bar-text); }
body.eigenesfenster .cmp .cmp-kopf .btn { color: var(--bar-text); }

/* ---------- Kategorienfarben: Palette direkt ---------- */
.menu.farbpal { padding: calc(8px * var(--s)) calc(12px * var(--s)) calc(12px * var(--s)); width: calc(220px * var(--s)); box-sizing: content-box; }
.farbpal .fp-kopf { font-weight: 600; margin-bottom: calc(4px * var(--s)); }
.fp-titel { font-size: calc(11px * var(--s)); color: var(--muted); margin: calc(6px * var(--s)) 0 calc(4px * var(--s)); }
.fp-grid { display: grid; grid-template-columns: repeat(6, calc(26px * var(--s))); gap: calc(6px * var(--s)); }
.fp { width: calc(26px * var(--s)); height: calc(26px * var(--s)); border-radius: calc(5px * var(--s)); border: 1px solid rgba(0,0,0,.18); cursor: pointer; padding: 0; }
.fp:hover { transform: scale(1.1); }
.fp.on { outline: calc(2px * var(--s)) solid var(--text); outline-offset: calc(2px * var(--s)); }
.fp-eigen { display: flex; gap: calc(6px * var(--s)); align-items: center; }
.fp-eigen input[type=color] { width: calc(34px * var(--s)); height: calc(28px * var(--s)); padding: 0; border: 1px solid var(--line); border-radius: calc(4px * var(--s)); background: none; cursor: pointer; }
.fp-eigen .inp { width: calc(84px * var(--s)); }
.fp-inline .fp-grid { grid-template-columns: repeat(9, calc(26px * var(--s))); }
.menu.katmenue div.kat::after { display: none; }
.menu div.kat .kpunkt { margin-left: auto; width: calc(16px * var(--s)); height: calc(16px * var(--s)); border-radius: 50%; border: calc(2px * var(--s)) solid var(--card); box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; flex: none; }
.menu div.kat .kpunkt:hover { box-shadow: 0 0 0 calc(2px * var(--s)) var(--accent); }
.kmehr { margin-left: auto; border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 0 calc(2px * var(--s)); height: calc(18px * var(--s)); display: inline-flex; align-items: center; border-radius: calc(3px * var(--s)); opacity: 0; }
.f:hover .kmehr, .kat:hover .kmehr, .kmehr:focus { opacity: 1; }
.kmehr:hover { background: var(--hover); color: var(--text); }
@media (hover: none) { .kmehr { opacity: 1; } }
.katlist li.kat { display: flex; align-items: center; gap: calc(6px * var(--s)); } .katlist li.kat .kn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#m-kats .kneu { color: var(--muted); } #m-kats .kneu:hover { color: var(--text); }
.katverw .krow .btn[data-farbe] { height: calc(26px * var(--s)); }
/* Palette: die allgemeinen Menue-Zeilen-Regeln (.menu div) nicht anwenden */
.menu.farbpal div { padding: 0; cursor: default; white-space: normal; }
.menu.farbpal div:hover { background: transparent; }
.menu.farbpal .fp-kopf { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu.farbpal .fp-titel { display: block; }
.menu.farbpal .fp-grid, .fp-inline .fp-grid { display: grid; }
.menu.farbpal .fp-eigen { display: flex; }
.fp-eigen .inp { flex: 1; min-width: 0; }
.fp-eigen input[type=color] { flex: none; }
.fp { flex: none; }
/* Aktions-Symbole einheitlich (Anwender 22.11.): LUN = gedecktes Grau (Textfarbe gedimmt), in allen Leisten und im Lesebereich gleich */
:root { --aktion: color-mix(in srgb, var(--text) 75%, var(--card)); }
.toolbar .btn:not(.pri) svg.i, .msg .mact .btn svg.i, .reader .rhead .btn svg.i, .reader .btn.ghost svg.i, .cmp .cmp-leiste .btn:not(.pri) svg.i,
.cmp .cmp-kopf .btn svg.i, .rte-tb svg.i { color: var(--aktion); }
.toolbar .btn.pri svg.i { color: inherit; }

/* ---------- Bedingte Formatierung (Zeilen einfaerben; hell + dunkel lesbar) ---------- */
.row.fz-tx .fr, .row.fz-tx .su, .fzmuster.fz-tx { color: color-mix(in srgb, var(--fz) 88%, var(--text)) !important; }
[data-theme="dark"] .row.fz-tx .fr, [data-theme="dark"] .row.fz-tx .su, [data-theme="dark"] .fzmuster.fz-tx { color: color-mix(in srgb, var(--fz) 55%, #ffffff) !important; }
.row.fz-tx .sn { color: var(--muted) !important; }
.row.fz-hg:not(.sel):not(.cur), .fzmuster.fz-hg { background: color-mix(in srgb, var(--fz) 13%, var(--card)) !important; }
[data-theme="dark"] .row.fz-hg:not(.sel):not(.cur), [data-theme="dark"] .fzmuster.fz-hg { background: color-mix(in srgb, var(--fz) 24%, var(--card)) !important; }
.row.fz-b .fr, .row.fz-b .su, .fzmuster.fz-b { font-weight: 700 !important; }
.fzmuster { display: inline-flex; align-items: center; justify-content: center; width: calc(44px * var(--s)); height: calc(24px * var(--s)); border-radius: calc(4px * var(--s)); border: 1px solid var(--line); font-size: calc(12px * var(--s)); flex: none; }
.fz-farben { display: flex; gap: calc(6px * var(--s)); align-items: center; flex-wrap: wrap; }
.fz-farben input[type=color] { width: calc(30px * var(--s)); height: calc(26px * var(--s)); padding: 0; border: 1px solid var(--line); border-radius: calc(4px * var(--s)); background: none; }
.fz-vorschau { border: 1px solid var(--line); border-radius: calc(4px * var(--s)); overflow: hidden; }
.fz-vorschau .row { display: flex; gap: calc(12px * var(--s)); padding: calc(6px * var(--s)) calc(10px * var(--s)); }
.regeldlg .kfarbe { width: calc(24px * var(--s)); height: calc(24px * var(--s)); border-radius: calc(4px * var(--s)); border: 1px solid rgba(0,0,0,.2); cursor: pointer; padding: 0; flex: none; }
table.tasten th { text-align: left; padding: calc(10px * var(--s)) 0 calc(3px * var(--s)); font-size: calc(12px * var(--s)); color: var(--muted); border-bottom: 1px solid var(--line2); }

/* ---------- Freigaben, Gruppen ---------- */
.tree .f .c.sum { font-weight: 600; color: var(--muted); }
.tree .f.gr .n { font-weight: 600; }
.qordner { display: inline-block; max-width: calc(140px * var(--s)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; font-size: calc(11px * var(--s)); font-weight: 600;
  color: color-mix(in srgb, var(--k) 85%, var(--text)); background: color-mix(in srgb, var(--k) 14%, transparent); border-radius: calc(3px * var(--s)); padding: 0 calc(5px * var(--s)); margin-right: calc(6px * var(--s)); }
[data-theme="dark"] .qordner { color: color-mix(in srgb, var(--k) 55%, #fff); background: color-mix(in srgb, var(--k) 26%, transparent); }
.shead.grkopf, .shead.freikopf { display: flex; align-items: center; justify-content: space-between; }

/* Kategorie-Darstellung: Auswahl */
.seg.kstil button { font-size: calc(11.5px * var(--s)); padding: 0 calc(8px * var(--s)); }
.fp-stil .seg.kstil { display: flex !important; padding: 0 !important; } .fp-stil .seg.kstil button { flex: 1; padding: 0 calc(4px * var(--s)); white-space: nowrap; }
.menu.farbpal { width: calc(300px * var(--s)); } .menu.farbpal .fp-grid { grid-template-columns: repeat(8, calc(26px * var(--s))); }
.katverw .kstilsel { width: auto; height: calc(28px * var(--s)); }
/* Aufklapp-Pfeile groesser und gut klickbar (Anwender 22.11.): Zeichen ~13px, Klickflaeche 20x20, skaliert mit AA */
.tree li > .f .tw, [data-design="klassisch"] .tree li > .f .tw, .shead.katkopf .tw2, .daysep .tw, .callist .tw {
  width: calc(20px * var(--s)); height: calc(20px * var(--s)); min-width: calc(20px * var(--s)); flex: none; display: inline-flex; align-items: center; justify-content: center;
  font-size: calc(13px * var(--s)); line-height: 1; color: color-mix(in srgb, var(--text) 70%, var(--card)); border-radius: calc(4px * var(--s)); cursor: pointer; }
.tree li > .f .tw { margin-left: calc(-6px * var(--s)); margin-right: calc(-2px * var(--s)); }
.tree li > .f .tw:empty { cursor: default; }
.tree li > .f .tw:not(:empty):hover, .shead.katkopf .tw2:hover, .daysep .tw:hover { background: var(--hover); color: var(--text); }
/* Ordnerbaum kompakt wie Zimbra Classic (Anwender 22.11.): Zeile ~23 px bei Standardgroesse, Einzug 14 px je Ebene, Symbole 16 px, Zahl rechtsbuendig */
.tree li > .f, [data-design="klassisch"] .tree li > .f { height: calc(26px * var(--s)); min-height: 0; padding-top: 0; padding-bottom: 0;
  padding-left: calc(calc(6px * var(--s)) + var(--d, 0) * calc(14px * var(--s))); padding-right: calc(8px * var(--s)); gap: calc(5px * var(--s)); }
.tree li > .f .fi svg.i, [data-design="klassisch"] .tree li > .f .fi svg.i { width: calc(16px * var(--s)); height: calc(16px * var(--s)); }
.tree li > .f .c { margin-left: auto; text-align: right; }
.tree li > .f .n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.tree li > .f .tw, [data-design="klassisch"] .tree li > .f .tw { margin-left: calc(-4px * var(--s)); margin-right: calc(-3px * var(--s)); }
/* Ziehen im Ordnerbaum: Linie zwischen Eintraegen bzw. Rahmen = hinein */
.side .drop-vor { box-shadow: inset 0 2px 0 var(--accent); }
.side .drop-nach { box-shadow: inset 0 -2px 0 var(--accent); }
.side .shead.drop-vor { box-shadow: 0 -2px 0 var(--accent); } .side .shead.drop-nach { box-shadow: 0 2px 0 var(--accent); }
.side .shead[draggable="true"] { cursor: grab; }
/* neues Verfassen (.cmp): volle Breite/Hoehe des Lesebereichs bzw. Fensters - alte Dialog-Masse von .compose nicht anwenden */
.compose.cmp { width: auto; max-width: none; height: auto; flex: 1; min-width: 0; }
.cmp-fenster .compose.cmp, body.eigenesfenster .compose.cmp { height: 100%; }
@media (max-width: 700px) { .compose.cmp { width: auto; } }
/* Verfassen-Leiste: bei schmalem Lesebereich nur Symbole (Senden behält die Beschriftung), kein Umbruch */
.compose.cmp { container-type: inline-size; }
.cmp .cmp-leiste { flex-wrap: nowrap; overflow: hidden; }
@container (max-width: 860px) { .cmp .cmp-leiste .btn:not([data-send]) .lbl { display: none; } }
.zform .geaendert { outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 1px; }

/* 52 Listendichte */
html[data-dichte="kompakt"] .list.ez .row { height: calc(22px * var(--s)) !important; }
html[data-dichte="luftig"] .list.ez .row { height: calc(40px * var(--s)) !important; }
html[data-dichte="kompakt"] .list.zz .row { padding-top: calc(3px * var(--s)) !important; padding-bottom: calc(3px * var(--s)) !important; }
html[data-dichte="luftig"] .list.zz .row { padding-top: calc(12px * var(--s)) !important; padding-bottom: calc(12px * var(--s)) !important; }
/* 53 Knoepfe-Editor, 61 Groessen */
.knopfliste .krow { display: flex; align-items: center; gap: calc(8px * var(--s)); padding: calc(3px * var(--s)) calc(2px * var(--s)); border-bottom: 1px solid var(--line2); max-width: calc(460px * var(--s)); }
.knopfliste .krow .btn { height: calc(24px * var(--s)); padding: 0 calc(6px * var(--s)); }
table.groessen { border-collapse: collapse; min-width: calc(420px * var(--s)); } table.groessen th, table.groessen td { text-align: left; padding: calc(3px * var(--s)) calc(14px * var(--s)) calc(3px * var(--s)) 0; border-bottom: 1px solid var(--line2); }
table.groessen td:nth-child(n+2), table.groessen th:nth-child(n+2) { text-align: right; }

/* 46 Benachrichtigungen */
#topbar .meldbtn { position: relative; }
#topbar .meldbtn .mz { position: absolute; top: calc(3px * var(--s)); right: calc(2px * var(--s)); min-width: calc(15px * var(--s)); height: calc(15px * var(--s)); border-radius: calc(8px * var(--s)); background: var(--danger); color: #fff; font-size: calc(10px * var(--s)); font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 calc(3px * var(--s)); }
.menu.meldmenue { width: calc(360px * var(--s)); padding: 0; max-height: 70vh; }
.menu.meldmenue div { white-space: normal; cursor: default; }
.menu.meldmenue .mm-kopf { display: flex; justify-content: space-between; align-items: center; padding: calc(8px * var(--s)) calc(12px * var(--s)); font-weight: 600; border-bottom: 1px solid var(--line2); }
.menu.meldmenue .mm { display: flex; gap: calc(10px * var(--s)); align-items: flex-start; padding: calc(8px * var(--s)) calc(12px * var(--s)); border-bottom: 1px solid var(--line2); cursor: pointer; }
.menu.meldmenue .mm.neu { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.menu.meldmenue .mm .mt { display: flex; flex-direction: column; gap: 1px; padding: 0; min-width: 0; } .menu.meldmenue .mm small { color: var(--muted); }
/* 45 Hilfe */
.hilfe details { border-bottom: 1px solid var(--line2); padding: calc(6px * var(--s)) 0; } .hilfe summary { cursor: pointer; font-weight: 600; } .hilfe p { margin: calc(6px * var(--s)) 0 calc(2px * var(--s)) calc(16px * var(--s)); }

/* 33 globale Suche, 36 Anhaenge, 34 Lesefenster, 35 Ziel in der App-Leiste */
.gsuche .gs section { margin-bottom: calc(12px * var(--s)); } .gsuche .gs h3 { font-size: calc(13px * var(--s)); display: flex; align-items: center; gap: calc(6px * var(--s)); margin: 0 0 calc(4px * var(--s)); }
.gsuche .gs h3 .btn { margin-left: auto; height: calc(24px * var(--s)); }
.gsuche .gz { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) auto; gap: calc(10px * var(--s)); padding: calc(5px * var(--s)) calc(6px * var(--s)); border-bottom: 1px solid var(--line2); cursor: pointer; }
.gsuche .gz:hover { background: var(--hover); } .gsuche .gz span, .gsuche .gz b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .gsuche .gz small { color: var(--muted); }
.anhaenge .anl td:first-child { white-space: nowrap; } .anhaenge .anl { width: 100%; }
#topbar nav a.drop { outline: 2px dashed var(--accent); outline-offset: -2px; }
body.lesefenster { overflow: auto; background: var(--card); }
/* 0.12.0 Lesefenster = gleiche Darstellung wie der Lesebereich (.reader/.rhead/.msg aus js/lesekarte.js); nur Rahmen/Hoehe/Knoepfe anders */
body.lesefenster .reader.lesefenster-reader { height: 100vh; border-radius: 0 !important; box-shadow: none !important; overflow-y: auto; }
body.lesefenster .reader .rhead { display: flex; align-items: flex-start; gap: calc(10px * var(--s)); flex-wrap: wrap; border-radius: 0 !important; }
body.lesefenster .reader .rhead h2 { flex: 1 1 auto; min-width: 0; }
body.lesefenster .reader .rhead .acts { display: flex !important; }
@media print { body.lesefenster .reader .rhead .acts, body.lesefenster .msg .mact, body.lesefenster .hinweis { display: none !important; } body.lesefenster .reader.lesefenster-reader { height: auto; overflow: visible; } }
body.lesefenster > #app > .compose.cmp { height: 100vh; }
/* 43 Barrierefreiheit: sichtbarer Tastaturfokus, Sprunglink, weniger Bewegung */
:focus-visible { outline: 2px solid var(--accent) !important; outline-offset: 1px; }
/* 0.15.1 Schreibfenster (Anwender, Bild 83): Textfeld mit dezentem Fokus (1 px Akzent + weicher Schein) statt 2-px-Rahmen; andere Elemente behalten den deutlichen Fokus */
.rte:focus, .rte:focus-visible, :root[data-scheme] .rte.rte:is(:focus, :focus-visible) { outline: 0 !important; border-color: var(--accent) !important; box-shadow: 0 0 0 calc(2px * var(--s)) color-mix(in srgb, var(--accent) 18%, transparent); }
.rte { padding: max(14px, calc(14px * var(--s))) max(16px, calc(16px * var(--s))) !important; }
.rte > p:first-child { min-height: 1.5em; }
.rte .lun-sig { margin: calc(16px * var(--s)) 0 calc(18px * var(--s)); }
.rte .lun-sig > p:first-child { margin-bottom: calc(4px * var(--s)); }
.rte .lun-sig + p, .rte .lun-sig + div { margin-top: calc(14px * var(--s)); }
.rte blockquote { margin: calc(10px * var(--s)) 0 calc(10px * var(--s)) calc(2px * var(--s)) !important; padding: calc(4px * var(--s)) 0 calc(4px * var(--s)) calc(14px * var(--s)) !important; }
.row:focus-visible, .tree .f:focus-visible { outline-offset: -2px; }
.skiplink { position: absolute; left: -9999px; top: 4px; z-index: 6000; background: var(--card); color: var(--text); padding: 6px 12px; border: 2px solid var(--accent); border-radius: 6px; }
.skiplink:focus { left: 8px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
/* ---------- 31 Mobilansicht (< 700 px): eine Spalte, App-Leiste unten, Liste zweizeilig, Lesen mit "Zur Liste" ---------- */
@media (max-width: 700px) {
  #topbar, [data-design="klassisch"] #topbar { gap: 2px; padding: 0 6px; }
  #topbar .logo span, #topbar .demo, #topbar .user, #schemabtn, #sizebtn, #topbar .search .scope, #topbar .search .qadv { display: none !important; }
  #topbar .search, [data-design="klassisch"] #topbar .search { position: static; transform: none; flex: 1; min-width: 0; width: auto !important; }
  #topbar nav, [data-design="klassisch"] #topbar nav { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; top: auto; width: auto; height: calc(56px + env(safe-area-inset-bottom, 0px));
    padding: 4px 4px env(safe-area-inset-bottom, 0px); display: flex; flex-direction: row; justify-content: space-around; align-items: stretch; gap: 0;
    background: var(--bar, var(--card)); border-top: 1px solid var(--line); box-shadow: 0 -2px 8px rgba(0,0,0,.08); }
  [data-design="klassisch"] #topbar nav { background: var(--rahmen); }
  #topbar nav a, [data-design="klassisch"] #topbar nav a { flex: 1; flex-direction: column; justify-content: center; align-items: center; gap: 2px; padding: 4px 2px; font-size: 10.5px; border-radius: 8px; }
  #topbar nav a .lbl, [data-design="klassisch"] #topbar nav a .lbl { display: block !important; }
  #topbar nav a.app, #topbar nav .navsep { display: none !important; }
  #main, [data-design="klassisch"] #main { margin: 0; border-radius: 0; border: 0; padding: 4px 4px 0; height: calc(100vh - 48px - 56px - env(safe-area-inset-bottom, 0px)); }
  .box > .side { display: none; }
  .box.sbopen > .side { display: flex; position: fixed; top: 48px; left: 0; bottom: 56px; width: min(300px, 86vw); z-index: 50; box-shadow: var(--shadow); background: var(--card); }
  .panes, .panes.right, .panes.bottom, .panes.off { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: minmax(0, 1fr) !important; }
  .panes .reader { display: none !important; } .panes.reading .reader { display: block !important; } .panes.reading .list { display: none !important; }
  .split { display: none !important; }
  .reader [data-back] { display: inline-flex !important; float: none !important; margin-bottom: 6px; }
  .toolbar, [data-design="klassisch"] .toolbar { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .toolbar .lbl, .toolbar .ttl, .toolbar .cnt, #m-tb [data-lf], #m-tb [data-p] { display: none !important; }
  #m-tb .seg { display: none !important; }
  .klhead .tabs { overflow-x: auto; white-space: nowrap; }
  .cmp-fenster { left: 0 !important; top: 0 !important; width: 100vw !important; height: 100vh !important; border-radius: 0; }
  .cmp .cmp-felder { grid-template-columns: 54px minmax(0, 1fr); }
  .dlg { width: 100vw !important; max-width: 100vw; max-height: 100vh; border-radius: 0; }
  .dlgbg { padding: 0; }
  .ct { grid-template-columns: minmax(0, 1fr) !important; }
  .set.einst { grid-template-columns: minmax(0, 1fr); } .set.einst #s-nav { position: static; flex-direction: row; overflow-x: auto; }
  .set.einst #s-nav a { white-space: nowrap; }
}

/* Konto/Sicherheit (LUN-Reiter) */
.lunbox p { margin: 0 0 calc(8px * var(--s)); } .lunbox .form { max-width: calc(520px * var(--s)); margin-bottom: calc(8px * var(--s)); }
.lunhinweis { font-size: calc(12px * var(--s)); margin: 0 0 calc(8px * var(--s)); }
.lunmeldung { margin-top: calc(8px * var(--s)); min-height: 1em; } .lunmeldung.ok { color: var(--ok); } .lunmeldung.fehler { color: var(--danger); font-weight: 600; }
.lunliste { margin-bottom: calc(8px * var(--s)); }
/* 0.14.1 VPN-Karte nativ (kein iframe, waechst mit dem Inhalt) */
.vpnschritte { margin: calc(8px * var(--s)) 0; padding-left: calc(20px * var(--s)); display: grid; gap: calc(8px * var(--s)); }
#ls-vl .btn.danger { color: var(--danger, #c4314b); }

/* 42 Chat-Anwesenheit */
.praes { display: inline-block; width: calc(8px * var(--s)); height: calc(8px * var(--s)); border-radius: 50%; margin-right: calc(4px * var(--s)); vertical-align: middle; flex: none; box-shadow: 0 0 0 1px var(--card); }
.praes.online { background: #13a10e; } .praes.unavailable { background: #e0a800; } .praes.offline { background: #8a8886; }

/* 47/49 Aktentasche */
.aktliste .row.akt, .aktliste .lhead.akt { display: grid; grid-template-columns: calc(28px * var(--s)) minmax(0, 1fr) calc(90px * var(--s)) calc(110px * var(--s)); height: calc(30px * var(--s)); align-items: center; }
.aktliste .row.akt .gr, .aktliste .row.akt .dt { text-align: right; padding-right: calc(10px * var(--s)); color: var(--muted); }
.aktliste.drag { outline: 2px dashed var(--accent); outline-offset: -4px; }
.chipgr { display: inline-flex; align-items: center; gap: 0; } .chipgr .akt { height: calc(24px * var(--s)); padding: 0 calc(4px * var(--s)); }
.aktwahl { max-height: 50vh; overflow: auto; margin-top: calc(8px * var(--s)); display: flex; flex-direction: column; gap: calc(4px * var(--s)); }

/* Versionsnummer neben dem Logo */
#topbar .logo .ver { font-size: calc(11px * var(--s)); font-weight: 400; opacity: .7; margin-left: calc(2px * var(--s)); align-self: flex-end; padding-bottom: calc(2px * var(--s)); }
@media (max-width: 700px) { #topbar .logo .ver { display: none !important; } }
/* Bereichskoepfe links: alle gleich ausgerichtet (Pfeil an gleicher Stelle), zuklappbar, Summe in Klammern */
.side .shead[data-bereich] { display: flex; align-items: center; justify-content: flex-start; gap: calc(6px * var(--s)); cursor: pointer; padding-left: calc(6px * var(--s)) !important; }
.side .shead[data-bereich] .tw2 { flex: none; width: calc(14px * var(--s)); text-align: center; font-size: calc(11px * var(--s)); color: var(--muted); }
.side .shead[data-bereich] .kt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.side .shead[data-bereich] .bsum { color: var(--muted); font-weight: 600; } .side .shead[data-bereich] .bsum:empty { display: none; }
.side .shead[data-bereich] .btn { margin-left: auto; flex: none; }
.side .shead[data-bereich] .tw2 { min-width: calc(14px * var(--s)) !important; width: calc(14px * var(--s)) !important; height: auto !important; margin: 0 !important; display: inline-block !important; }
/* 0.11 Identitaeten (Einstellungen -> Konten und Absender) */
.idliste .idrow { display: flex; align-items: center; gap: calc(8px * var(--s)); padding: calc(5px * var(--s)) calc(4px * var(--s)); border-bottom: 1px solid var(--line2); }
.idliste .idrow.on { background: var(--sel); }
.idliste .idrow .kn { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 0 calc(8px * var(--s)); align-items: baseline; }
.idliste .idregel { color: var(--muted); font-size: calc(12px * var(--s)); flex-basis: 100%; }
.idliste .idstd { font-size: calc(12px * var(--s)); font-weight: 600; color: var(--accent-2, var(--accent)); padding: 0 calc(8px * var(--s)); }
.idliste .idplatz { width: calc(30px * var(--s)); }
.ideditor { margin-top: calc(10px * var(--s)); }
.idordner { max-height: calc(180px * var(--s)); overflow: auto; border: 1px solid var(--line); border-radius: calc(4px * var(--s)); padding: calc(4px * var(--s)) calc(8px * var(--s)); margin-top: calc(4px * var(--s)); }
.idordner label.chk { display: block; text-align: left; }
/* 0.11 Neuigkeiten im Dialog „Über LUN Mail“ (eingebettet, keine .md-Dateien) */
.rn-kopf { font-size: calc(14px * var(--s)); margin: calc(12px * var(--s)) 0 calc(4px * var(--s)); }
.rnotes { max-height: calc(420px * var(--s)); overflow: auto; border: 1px solid var(--line); border-radius: calc(4px * var(--s)); padding: calc(4px * var(--s)) calc(10px * var(--s)); }
.rn-version summary { cursor: pointer; font-weight: 600; padding: calc(4px * var(--s)) 0; }
.rn-version ul { margin: calc(2px * var(--s)) 0 calc(6px * var(--s)); padding-left: calc(18px * var(--s)); }
.rn-version li { margin: calc(2px * var(--s)) 0; line-height: 1.45; }
.rn-titel { font-weight: 600; color: var(--muted); margin-top: calc(4px * var(--s)); }
/* 0.11 Speicherplatz: Kontingent-Balken (ab 80 % gelb, ab 95 % rot), Ordnerliste sortierbar, Anteil; Kurzanzeige unten im Ordnerbereich */
.quota.gross { height: calc(10px * var(--s)); max-width: calc(480px * var(--s)); }
.quota.knapp i { background: #c87f0a; } .quota.voll i { background: #c42b1c; }
.speicher .sp-zeile { margin-bottom: calc(4px * var(--s)); } .speicher .sp-warn { margin-top: calc(6px * var(--s)); font-weight: 600; color: #a4262c; }
[data-theme="dark"] .speicher .sp-warn { color: #ff9a92; }
.speicher.knapp .sp-warn { color: #8a5a00; } [data-theme="dark"] .speicher.knapp .sp-warn { color: #f5c26b; }
table.groessen th[data-sort] { cursor: pointer; user-select: none; } table.groessen th[data-sort].on { color: var(--text); }
table.groessen .sp-anteil { display: inline-block; width: calc(60px * var(--s)); height: calc(6px * var(--s)); background: var(--line2); border-radius: 3px; overflow: hidden; vertical-align: middle; }
table.groessen .sp-anteil i { display: block; height: 100%; background: var(--accent); }
table.groessen .sp-akt { white-space: nowrap; text-align: right; } table.groessen .sp-frei { font-size: calc(11px * var(--s)); --k: #69797e; }
.sidequota { margin: auto calc(8px * var(--s)) calc(8px * var(--s)); padding: calc(6px * var(--s)) calc(8px * var(--s)); border: 0; background: transparent; color: var(--muted); text-align: left;
  font-size: calc(12px * var(--s)); cursor: pointer; border-radius: calc(4px * var(--s)); display: flex; flex-direction: column; gap: calc(3px * var(--s)); }
.sidequota:hover { background: var(--hover); color: var(--text); } .sidequota .quota { display: block; margin-top: 0; max-width: none; }
.sidequota.voll { color: #a4262c; } [data-theme="dark"] .sidequota.voll { color: #ff9a92; }
/* Einstellungen: Gruppenkoepfe in der Navigation */
.set.einst #s-nav .s-navkopf { font-size: calc(11.5px * var(--s)); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: calc(10px * var(--s)) calc(10px * var(--s)) calc(3px * var(--s)); }
.set.einst #s-nav .s-navkopf:first-child { padding-top: calc(4px * var(--s)); }
.kontoinfo { margin-bottom: calc(12px * var(--s)); }
@media (max-width: 700px) { .set.einst #s-nav .s-navkopf { display: none; } }
.speicher + table.groessen { width: 100%; }
table.groessen th:nth-child(n+2), table.groessen td:nth-child(n+2) { white-space: nowrap; width: 1%; }
table.groessen .sp-akt .btn { height: calc(22px * var(--s)); padding: 0 calc(7px * var(--s)); }
table.groessen td:first-child .sp-frei { margin-left: calc(4px * var(--s)); }
/* 0.11 Regel-Filter */
.rfilter { display: flex; flex-wrap: wrap; gap: calc(6px * var(--s)); align-items: center; margin-bottom: calc(8px * var(--s)); }
.rfilter .rf-q { flex: 1 1 calc(260px * var(--s)); min-width: calc(200px * var(--s)); }
.rfilter .rf-sel { width: auto; max-width: calc(220px * var(--s)); }
.rfilter .rf-zahl { color: var(--muted); font-size: calc(12.5px * var(--s)); white-space: nowrap; margin-left: auto; }
.rf-hinweis { font-size: calc(12px * var(--s)); margin: 0 0 calc(6px * var(--s)); }
.regel.aus .rt b { color: var(--muted); font-weight: 600; }
.regel .rgriff { cursor: grab; color: var(--muted); letter-spacing: -2px; user-select: none; }
.regel .rnr { color: var(--muted); font-size: calc(12px * var(--s)); min-width: calc(22px * var(--s)); text-align: right; }
.regel.zieht { opacity: .5; } .regel.ziel { box-shadow: inset 0 2px 0 var(--accent); }
.regel a.rziel { color: var(--accent-2, var(--accent)); text-decoration: none; border-bottom: 1px dotted currentColor; }
.form > label.oben { align-self: start; padding-top: calc(4px * var(--s)); }
/* 0.11.1: Menues (auch Rechtsklick) passen sich dem Inhalt an – nie waagrecht scrollen; senkrecht nur, wenn hoeher als das Fenster */
.menu { overflow-x: hidden; overflow-y: auto; max-height: calc(100vh - 16px); max-width: calc(100vw - 16px); box-sizing: border-box; overscroll-behavior: contain; }
.menu:not(.schemamenue):not(.farbpal):not(.meldmenue):not(.ordnerpick) { width: max-content; min-width: min(calc(200px * var(--s)), calc(100vw - 16px)); max-width: min(calc(360px * var(--s)), calc(100vw - 16px)); }
.menu:not(.schemamenue):not(.farbpal):not(.meldmenue):not(.ordnerpick) > div { min-width: 0; }
.menu:not(.schemamenue):not(.farbpal):not(.meldmenue):not(.ordnerpick) > div > span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu:not(.schemamenue):not(.farbpal):not(.meldmenue):not(.ordnerpick) > div > svg.i { flex: none; }
.menu.farbpal { box-sizing: content-box; width: calc(300px * var(--s)); max-width: calc(100vw - 40px); }
.menu.farbpal .fp-grid { grid-template-columns: repeat(auto-fill, calc(26px * var(--s))); }   /* so viele je Reihe, wie passen */
.menu.farbpal .fp-stil .seg { display: flex; flex-wrap: wrap; }
/* 0.11.2 Ordnerauswahl als Baum: Postfaecher zugeklappt, Ordner nach Aufklappen, Suche, Haekchen */
.ow-such { width: 100%; margin-bottom: calc(6px * var(--s)); }
.ow-baum { max-height: calc(260px * var(--s)); overflow-y: auto; overflow-x: hidden; border: 1px solid var(--line); border-radius: calc(4px * var(--s)); padding: calc(3px * var(--s)) 0; background: var(--card); }
.ow-pf, .ow-z { display: flex !important; align-items: center; gap: calc(6px * var(--s)); padding: calc(3px * var(--s)) calc(8px * var(--s)) !important; cursor: pointer; white-space: nowrap; min-width: 0; }
.ow-pf { font-weight: 600; } .ow-pf .ow-zahl { margin-left: auto; font-weight: 400; font-size: calc(12px * var(--s)); color: var(--accent-2, var(--accent)); }
[data-theme="dark"] .ow-pf .ow-zahl { color: var(--accent); }
.ow-z { padding-left: calc(8px * var(--s) + var(--d, 0) * 16px * var(--s)) !important; }
.ow-z .ow-n, .ow-pf .ow-n { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ow-pf:hover, .ow-z:hover { background: var(--hover); } .ow-z.on:not(:has(input)) { background: var(--sel); font-weight: 600; } .ow-z.aus { opacity: .45; cursor: default; }
.ow-tw { width: calc(12px * var(--s)); flex: none; color: var(--muted); font-size: calc(10px * var(--s)); text-align: center; }
.ow-z input[type=checkbox] { margin: 0; pointer-events: none; }
.menu.ordnerpick { width: min(calc(340px * var(--s)), calc(100vw - 16px)); padding: calc(8px * var(--s)); cursor: default; }
.menu.ordnerpick div { padding: 0; white-space: nowrap; } .menu.ordnerpick > div:hover { background: transparent; }
.menu.ordnerpick .ow-kopf { display: block; font-weight: 600; margin-bottom: calc(6px * var(--s)); }
.menu.ordnerpick .ow-box, .menu.ordnerpick .ow-baum { display: block; }
.menu.ordnerpick .ow-baum { max-height: min(calc(360px * var(--s)), calc(100vh - 140px)); }

/* ===== 0.13.0 Antwortleiste am Ende der Nachricht (Lesebereich + Lesefenster, gleiche Klassen; abschaltbar: html[data-antwortleiste="aus"]) ===== */
.msg .antwortleiste { display: flex; flex-wrap: wrap; gap: calc(8px * var(--s)); padding: calc(10px * var(--s)) calc(18px * var(--s)) calc(16px * var(--s));
  border-top: 1px solid var(--lese-trenn, var(--line2)); background: var(--lese-inhalt, var(--card)); }
.msg .antwortleiste .btn { height: calc(30px * var(--s)); padding: 0 calc(14px * var(--s)); border-radius: calc(15px * var(--s)); border-color: var(--line); background: transparent; color: var(--text); }
.msg .antwortleiste .btn svg.i { color: var(--accent); }
.msg .antwortleiste .btn:hover { background: var(--hover); border-color: var(--accent); }
[data-design="klassisch"] .msg .antwortleiste { padding-left: calc(24px * var(--s)); padding-right: calc(24px * var(--s)); }
:root[data-antwortleiste="aus"] .msg .antwortleiste { display: none !important; }
@media print { .msg .antwortleiste { display: none !important; } }

/* ===== 0.13.0 Eingebettete Apps: kein Banner, EIN Rahmen (die Box der Arbeitsflaeche), iframe randlos und buendig darin ===== */
.box.appbox .content > .apps { grid-row: 1 / -1 !important; }
.apps.eingebettet { background: transparent !important; }
.box.appbox .apps .frame, .apps.eingebettet .frame { margin: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: transparent !important; padding: 0 !important; }   /* auch beim Hinweis „kann hier nicht eingebettet werden“ nur EIN Rahmen */
#appdock { overflow: hidden; }   /* Rundung = die der App-Box (js/app.js uebernimmt border-radius) */

/* ===== 0.13.0 Vorschau (Aktentasche-Vorschaubereich + Anhang-Dialog, js/mailplus.js vorschauIn) ===== */
.vs-dlg { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.vs-dlg, .akt-vorschau { --vs-pad: calc(12px * var(--s)); }
.vs-kopf { display: flex; align-items: center; gap: calc(10px * var(--s)); padding: calc(8px * var(--s)) var(--vs-pad); background: var(--lese-kopf, var(--card3)); border-bottom: 1px solid var(--lese-trenn, var(--line2)); flex-wrap: wrap; }
.vs-name { flex: 1 1 calc(160px * var(--s)); min-width: 0; font-weight: 600; font-size: calc(14px * var(--s)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.vs-knoepfe { display: flex; gap: calc(6px * var(--s)); flex-wrap: wrap; }
.vs-inhalt { flex: 1; min-height: 0; display: flex; overflow: auto; background: var(--lese-inhalt, var(--card)); }
.vs-inhalt iframe { flex: 1; border: 0; width: 100%; min-height: calc(300px * var(--s)); background: #fff; }
.vs-inhalt.vbild { align-items: center; justify-content: center; padding: var(--vs-pad); background: var(--card3); }
.vs-inhalt.vbild img { max-width: 100%; max-height: 100%; object-fit: contain; background: repeating-conic-gradient(#0000000d 0 25%, transparent 0 50%) 0 0 / 16px 16px; }
.vs-text { margin: 0; padding: var(--vs-pad); width: 100%; font: calc(12.5px * var(--s))/1.5 ui-monospace, "Cascadia Mono", "DejaVu Sans Mono", Consolas, monospace; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.vs-datei { flex-direction: column; align-items: center; justify-content: flex-start; gap: calc(14px * var(--s)); padding: calc(28px * var(--s)) var(--vs-pad); }
.vs-symbol svg.i { width: calc(56px * var(--s)); height: calc(56px * var(--s)); color: var(--accent); stroke-width: 1.2; }
.vs-meta { display: grid; gap: calc(4px * var(--s)); min-width: min(100%, calc(320px * var(--s))); font-size: calc(13px * var(--s)); }
.vs-meta > div:not(.vs-info) { display: grid; grid-template-columns: calc(80px * var(--s)) 1fr; gap: calc(10px * var(--s)); }
.vs-info { margin-top: calc(8px * var(--s)); max-width: calc(380px * var(--s)); line-height: 1.45; }
.vs-laedt { padding: var(--vs-pad); }
.vorschau .db:has(.vs-dlg) { flex-direction: column; }
.akt-vorschau { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.akt-vorschau > .none { margin: auto; color: var(--muted); padding: calc(20px * var(--s)); text-align: center; }
#at-panes { flex: 1; min-height: 0; }
#at-panes.off .akt-vorschau { display: none; }
#at-panes.bottom .list { border-right: 0; }
#at-list:focus { outline: none; }
#at-list:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
[data-design="klassisch"] #at-panes { gap: calc(8px * var(--s)); }
[data-design="klassisch"] .akt-vorschau { background: var(--card); border-radius: calc(8px * var(--s)); box-shadow: var(--shadow); }
@media (max-width: 700px) { #at-panes.right, #at-panes.bottom { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; } #at-panes .akt-vorschau { display: none; } }

/* ===== 0.13.0 Chat (Element) als schwebendes Fenster (js/chatfenster.js): ein Rahmen, Theme-Farben, verschiebbar, Groesse aenderbar ===== */
#chatfenster { position: fixed; z-index: 70; right: calc(16px * var(--s)); bottom: calc(16px * var(--s)); width: min(calc(460px * var(--s)), calc(100vw - 32px)); height: min(calc(640px * var(--s)), calc(100vh - 80px));
  display: flex; flex-direction: column; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: calc(10px * var(--s)); overflow: hidden;
  box-shadow: 0 calc(12px * var(--s)) calc(40px * var(--s)) rgba(0,0,0,.28); }
#chatfenster[hidden] { display: none; }
#chatfenster .cf-kopf { display: flex; align-items: center; gap: calc(4px * var(--s)); height: calc(38px * var(--s)); padding: 0 calc(4px * var(--s)) 0 calc(12px * var(--s)); background: var(--bar, var(--card3)); color: var(--bar-text, var(--text));
  cursor: move; user-select: none; flex: none; touch-action: none; }
#chatfenster .cf-titel { display: flex; align-items: center; gap: calc(8px * var(--s)); font-weight: 600; font-size: calc(13.5px * var(--s)); }
#chatfenster .cf-kopf .sp { flex: 1; }
#chatfenster .cf-kopf .tb { width: calc(30px * var(--s)); height: calc(30px * var(--s)); border: 0; background: transparent; color: inherit; border-radius: calc(6px * var(--s)); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
#chatfenster .cf-kopf .tb:hover { background: var(--bar-hover, var(--hover)); }
#chatfenster .cf-inhalt { flex: 1; min-height: 0; display: flex; background: var(--card); }
#chatfenster .cf-inhalt iframe { flex: 1; border: 0; width: 100%; height: 100%; display: block; }
#chatfenster .cf-hinweis { margin: auto; display: flex; flex-direction: column; align-items: center; gap: calc(8px * var(--s)); padding: calc(24px * var(--s)); text-align: center; color: var(--muted); }
#chatfenster .cf-hinweis svg.i { width: calc(40px * var(--s)); height: calc(40px * var(--s)); color: var(--accent); }
#chatfenster .cf-hinweis b { color: var(--text); }
#chatfenster .cf-griff { position: absolute; right: 0; bottom: 0; width: calc(18px * var(--s)); height: calc(18px * var(--s)); cursor: nwse-resize; touch-action: none;
  background: linear-gradient(135deg, transparent 55%, var(--line) 55% 62%, transparent 62% 72%, var(--line) 72% 79%, transparent 79%); }
#chatfenster.mini { height: auto !important; width: calc(260px * var(--s)) !important; top: auto !important; left: auto !important; right: calc(16px * var(--s)) !important; bottom: calc(16px * var(--s)) !important; }
#chatfenster.mini .cf-inhalt { height: 0; flex: none; overflow: hidden; }   /* iframe bleibt geladen */
#chatfenster.mini .cf-griff { display: none; }
#chatfenster.mini .cf-kopf { cursor: pointer; }
@media (max-width: 700px) {
  #chatfenster:not(.mini) { left: 0 !important; top: 0 !important; right: 0 !important; bottom: 0 !important; width: auto !important; height: auto !important; border-radius: 0; border: 0; }
  #chatfenster .cf-griff { display: none; }
}

/* ===== 0.13.1 Chat als Reiter (wie Zimbra Classic „Teams“): voll, buendig ab der App-Leiste, ohne Kopf/Rahmen; Diagnose bei Endlos-Laden ===== */
#chatfenster.reiter { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; z-index: 20; }
#chatfenster.reiter .cf-kopf, #chatfenster.reiter .cf-griff { display: none; }
#chatfenster .cf-diag { width: min(100%, calc(560px * var(--s))); height: calc(160px * var(--s)); font: calc(11px * var(--s))/1.4 ui-monospace, monospace; background: var(--card2); color: var(--text); border: 1px solid var(--line); border-radius: calc(4px * var(--s)); }
/* 0.13.1 eingebettete App randlos (Dock liegt buendig ab der App-Leiste ueber der Arbeitsflaeche) */
#appdock { border-radius: 0 !important; }
/* 0.13.2 Kontakt-Detail: Name einzeilig, Symbol-Knoepfe, zweispaltige Abschnitte nur mit Inhalt; Bearbeiten mit E-Mail-/Telefonlisten */
.kdet .kd-kopf { display: flex; align-items: center; gap: calc(14px * var(--s)); padding: calc(16px * var(--s)) calc(18px * var(--s)); border-bottom: 1px solid var(--line2); }
.kdet .kd-kopf .av, .kdet .kd-bild { width: calc(64px * var(--s)); height: calc(64px * var(--s)); flex: none; font-size: calc(22px * var(--s)); font-weight: 600; border-radius: 50%; object-fit: cover; }
.kdet .kd-name { flex: 1; min-width: 0; }
.kdet .kd-name h2 { margin: 0; font-size: calc(20px * var(--s)); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kdet .kd-name .sub { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: calc(2px * var(--s)); }
.kdet .kd-knoepfe { display: flex; gap: calc(4px * var(--s)); flex: none; align-self: flex-start; }
.kdet .kd-knoepfe .btn { width: calc(32px * var(--s)); padding: 0; justify-content: center; }
.kdet .kd-felder { display: grid; grid-template-columns: repeat(auto-fit, minmax(calc(280px * var(--s)), 1fr)); gap: calc(4px * var(--s)) calc(24px * var(--s)); }
.kdet .kd-ab { min-width: 0; }
.kdet .kd-ab h3 { font-size: calc(12px * var(--s)); font-weight: 600; color: var(--accent); margin: calc(10px * var(--s)) 0 calc(6px * var(--s)); padding-bottom: calc(3px * var(--s)); border-bottom: 1px solid var(--line2); }
.kdet .kd-ab:has(.notes) { grid-column: 1 / -1; }
.kdet .kd-kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: calc(5px * var(--s)) calc(12px * var(--s)); margin: 0; }
.kdet .kd-kv dt { color: var(--muted); }
.kdet .kd-kv dd { margin: 0; overflow-wrap: anywhere; }
.kdet .notes { white-space: pre-wrap; }
.kform .kliste { display: flex; flex-direction: column; gap: calc(5px * var(--s)); }
.kform .kzeile { display: flex; gap: calc(6px * var(--s)); align-items: center; }
.kform .kzeile select { flex: 0 0 calc(150px * var(--s)); }
.kform .kzeile input { flex: 1; min-width: 0; }
.kform .kplus { align-self: flex-start; }
@media (max-width: 600px) {
  .kform .kgf { grid-template-columns: 1fr; }
  .kform .kzeile select { flex-basis: calc(110px * var(--s)); }
  .kdet .kd-kopf { flex-wrap: wrap; } .kdet .kd-knoepfe { order: 3; flex-basis: 100%; }
  .kdet .kd-kv { grid-template-columns: 1fr; gap: 0; } .kdet .kd-kv dd { margin-bottom: calc(6px * var(--s)); }
}
/* 0.13.2 Spalten der Mailliste: ein-/ausblenden (Rechtsklick auf Listenkopf/Gruppenzeile), Breite ziehen auch per Tastatur/Touch */
.lhead .cres { touch-action: none; }
.lhead .cres:focus-visible { background: color-mix(in srgb, var(--accent) 55%, transparent); outline: none; }
.list.aus-vorschau .row .sn, .list.aus-kat .row .kdots { display: none; }
.list.ez.aus-groesse { --c-gr: 0px; } .list.ez.aus-anhang { --c-at: 0px; }
.list.ez:is(.aus-groesse) :is(.row .gr, .lhead [data-sort="size"]), .list.ez.aus-anhang .row .at, .list.aus-kennz .row .fl { visibility: hidden; overflow: hidden; }
.list.zz.aus-groesse .row .gr, .list.zz.aus-anhang .row .at { display: none; }
.daysep:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
/* 0.14.1 Erinnerungsarten im Termin-Dialog (Anzeige / E-Mail / SMS) */
.termindlg .erarten, .erarten { display: flex; flex-wrap: wrap; align-items: center; gap: calc(4px * var(--s)) calc(14px * var(--s)); margin-top: calc(6px * var(--s)); }
.erarten .chk.aus { opacity: .55; }
.erarten .erhinweis { flex-basis: 100%; font-size: calc(11.5px * var(--s)); }
/* 0.14.1 Einstellungen ohne innere Scrollbereiche (Anwender: „da muss man scrollen in der Seite“) - Karten wachsen mit dem Inhalt */
.set :is(.idordner, .rnotes) { max-height: none; overflow: visible; }
.set .lunliste { overflow-x: auto; }
/* 0.14.2 Knopf „Chat“ in der Kopfleiste (Classic LunKBtn): Symbol + „Chat“, Zaehler ungelesener Nachrichten, Punkt im Meeting, offen = hervorgehoben */
#topbar .tb.chatbtn { position: relative; width: auto !important; min-width: 0; padding: 0 calc(10px * var(--s)) 0 calc(8px * var(--s)); gap: calc(5px * var(--s)); display: inline-flex; align-items: center;
  background: var(--accent); color: var(--accent-on, #fff) !important; border-radius: calc(6px * var(--s)); font-weight: 700; font-size: calc(13px * var(--s)); }
#topbar .tb.chatbtn:hover { filter: brightness(1.08); }
#topbar .tb.chatbtn.on { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent-on, #fff) 55%, transparent); filter: brightness(.88); }
#topbar .tb.chatbtn .lbl { display: inline; }
#topbar .tb.chatbtn .cb-zahl { position: absolute; top: calc(-5px * var(--s)); right: calc(-5px * var(--s)); min-width: calc(17px * var(--s)); height: calc(17px * var(--s)); padding: 0 calc(4px * var(--s));
  box-sizing: border-box; border-radius: 999px; background: #d13438; color: #fff; font-size: calc(10.5px * var(--s)); font-weight: 700; line-height: calc(17px * var(--s)); text-align: center; }
#topbar .tb.chatbtn .cb-zahl.punkt { min-width: calc(11px * var(--s)); width: calc(11px * var(--s)); height: calc(11px * var(--s)); padding: 0; top: calc(-3px * var(--s)); right: calc(-3px * var(--s)); background: #f0a830; }
#topbar .tb.chatbtn .cb-punkt { width: calc(8px * var(--s)); height: calc(8px * var(--s)); border-radius: 50%; background: #2fbf5b; }
#topbar .tb.chatbtn [hidden] { display: none !important; }
@media (max-width: 700px) { #topbar .tb.chatbtn .lbl { display: none; } }
/* Fensterkopf wie Classic: im Reiter nur die Meeting-Knoepfe oben mittig; gross = fast ganze Flaeche */
#chatfenster .cf-kopf .tb.cf-zurueck { width: auto; padding: 0 calc(10px * var(--s)); background: #2fbf5b; color: #fff; font-size: calc(12px * var(--s)); }
#chatfenster .cf-kopf .tb.aus { opacity: .55; }
#chatfenster.gross:not(.reiter):not(.mini) { left: calc(24px * var(--s)) !important; top: calc(70px * var(--s)) !important; right: calc(24px * var(--s)) !important; bottom: calc(24px * var(--s)) !important; width: auto !important; height: auto !important; }
#chatfenster.gross .cf-griff { display: none; }
#chatfenster.reiter.meeting .cf-kopf { display: flex !important; position: absolute; top: calc(8px * var(--s)); left: 50%; transform: translateX(-50%); height: calc(32px * var(--s)); z-index: 5; border-radius: calc(6px * var(--s)); }
#chatfenster.reiter.meeting .cf-kopf > :not(.cf-zurueck):not([data-cf="liste"]) { display: none !important; }
/* 0.15 Kalender: „Neues Online-Meeting“ direkt unter „Neuer Termin“, gleiche Breite, Sekundaerknopf */
/* 0.15.1 (Anwender): „Neues Online-Meeting“ wie „Neuer Termin“ (Vollflaeche), Abstand wie zwischen gestapelten Knoepfen */
.box > .side .btn.wide.new:has(+ .meetneu) { margin-bottom: calc(5px * var(--s)) !important; }
.box > .side .btn.wide.meetneu { margin-top: 0 !important; }
/* 0.15 Kategorie- und Regel-Einfaerbung der Zeile geht vor den Zeilenfarben der Designs (Farbreihen, Regler, Layouts) - Anwender: „Zeilen einfärben
   geht nimmer in Kategorien, werden von Designs überschrieben“. Ton der Kategorie auf der Zeilenflaeche des Themes (--card der Liste), auf hellen Zeilen
   kraeftiger als auf dunklen; markierte Zeile behaelt die Auswahl, die Kategorie bleibt als Streifen links sichtbar. Schrift: automatischer Kontrast. */
:root[data-design][data-theme] .list .row.fz.fz-hg:not(.sel):not(.cur) { background: color-mix(in oklab, var(--fz) 16%, var(--card)) !important; }
:root[data-design][data-theme="dark"] .list .row.fz.fz-hg:not(.sel):not(.cur) { background: color-mix(in oklab, var(--fz) 28%, var(--card)) !important; }
:root[data-design][data-theme] .list .row.fz.fz-hg:is(.sel, .cur) { box-shadow: inset calc(5px * var(--s)) 0 0 var(--fz) !important; }
/* 0.15 Kalender und Kontakte im Verhaeltnis zur Mailliste (Anwender: „Kalender ist eine Spur zu klein, alles im Verhältnis zu Mail-Inbox“):
   Grundschrift wie die Mailzeile (13 px × Skala), Koepfe/Zahlen proportional; dichte Layouts uebernehmen ihre Listengroesse unten. */
.ev { font-size: calc(13px * var(--s)) !important; }
.ev span { font-size: calc(12px * var(--s)) !important; }
.wk .dh > div { font-size: calc(13px * var(--s)) !important; }
.wk .ad > div:first-child, .wk .dh > div:first-child, .wk .zt, .wk .hours > div { font-size: calc(11.5px * var(--s)) !important; }
.mo .mr > div .n { font-size: calc(12.5px * var(--s)) !important; }
.mo .mh > div { font-size: calc(12.5px * var(--s)) !important; }
.clist .lrow, .crow .nm, .crow .co { font-size: calc(13px * var(--s)) !important; }
/* 0.15 Kategorie-Chips in der Mail: klickbar, × beim Ueberfahren */
.kchip.kchip-weg { cursor: pointer; position: relative; padding-right: calc(16px * var(--s)); }
.kchip.kchip-weg .kchip-x { position: absolute; right: calc(2px * var(--s)); top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: inherit; cursor: pointer;
  font-size: calc(12px * var(--s)); line-height: 1; padding: 0 calc(2px * var(--s)); opacity: 0; }
.kchip.kchip-weg:is(:hover, :focus-within) .kchip-x { opacity: .85; }
@media (hover: none) { .kchip.kchip-weg .kchip-x { opacity: .7; } }
/* 0.15 Listenkopf: sichtbare Trenner an jeder Spaltengrenze (ziehbar, col-resize), Sortier-Knopf, zweizeilige Kopfzeile */
.lhead .cres::after, .lhead2 .cres::after { content: ''; position: absolute; left: 50%; top: 22%; bottom: 22%; width: 1px; background: var(--line); }
.lhead .cres:hover::after, .lhead2 .cres:hover::after { background: var(--accent); width: 2px; }
.lhead > span[data-sort="subj"] { position: relative; }
.list .klhead .sortknopf { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: calc(12px * var(--s)); padding: 0 calc(6px * var(--s)); cursor: pointer; white-space: nowrap; flex: none; }
.list .klhead .sortknopf:hover { color: var(--accent); }
.list .lhead2 { display: none; }
.list.zz .lhead2 { display: grid; grid-template-columns: calc(28px * var(--s)) minmax(0, 1fr) var(--c-dat, auto) calc(16px * var(--s)); align-items: center; height: calc(22px * var(--s));
  padding: 0 calc(10px * var(--s)) 0 calc(2px * var(--s)); font-size: calc(11.5px * var(--s)); color: var(--muted); border-bottom: 1px solid var(--line2); }
.list.zz .lhead2 > span[data-sort] { cursor: pointer; position: relative; white-space: nowrap; overflow: hidden; }
.list.zz .lhead2 > span.r { text-align: right; padding-left: calc(8px * var(--s)); overflow: visible; }
.list.zz .lhead2 > span.on { color: var(--text); font-weight: 600; }
.list.zz .lhead2 .cres { position: absolute; left: calc(-4px * var(--s)); top: 0; bottom: 0; width: calc(8px * var(--s)); cursor: col-resize; touch-action: none; }
.list.zz .row .dt { min-width: 0; overflow: hidden; text-overflow: clip; text-align: right; }
/* Nachladen + Zaehler (live: „ich kann nicht nachladen“, „er sollte auch anzeigen, wie viel ich grad seh“) */
.list .mehrladen { display: flex; justify-content: center; padding: calc(10px * var(--s)); }
.list .klhead .lzahl { font-size: calc(11.5px * var(--s)); color: var(--muted); padding: 0 calc(10px * var(--s)) calc(3px * var(--s)); text-align: right; white-space: nowrap; }
/* 0.15 Fett wie Zimbra Classic (700 statt 600; Anwender: „wenn sie fett ist besser lesbar“) */
.list .row.unread :is(.fr, .su), .box > .side .tree li > .f.hasun :is(.n, .c) { font-weight: 700; }
/* 0.15 Ordnerzaehler wie Classic „Posteingang (2)“ (html[data-ordnerzahl="klammer"], Standard ausser Outlook-Designs): Zahl in Klammern direkt
   hinter dem Namen, Name und Zahl fett, ohne Ungelesene keine Klammer; Outlook-Designs: Zahl rechtsbuendig wie bisher */
:root[data-ordnerzahl="klammer"] .box > .side .tree li > .f.hasun .n { flex: 0 1 auto !important; max-width: none; }
:root[data-ordnerzahl="klammer"] .box > .side .tree li > .f .c:not(.sum) { margin-left: calc(4px * var(--s)) !important; color: inherit !important; font-weight: 700; flex: none; }
:root[data-ordnerzahl="klammer"] .box > .side .tree li > .f .c:not(.sum)::before { content: '('; } :root[data-ordnerzahl="klammer"] .box > .side .tree li > .f .c:not(.sum)::after { content: ')'; }
:root[data-ordnerzahl="klammer"] .box > .side .tree li > .f .c:not(.sum) { background: none !important; padding: 0 !important; min-width: 0 !important; border-radius: 0 !important; }
/* 0.15 Hauptknoepfe links oben abgerundet (Anwender: „den Neue-E-Mail-Button mach den abgerundet“): Neue E-Mail, Neuer Termin, Neues Online-Meeting,
   Neuer Kontakt …; Zimbra Classic wie carbon (4 px) */
:root .box > .side .btn.wide.new, :root .box > .side .btn.pri.wide { border-radius: calc(7px * var(--s)) !important; }
:root[data-scheme="zimbra"] .box > .side .btn.wide.new, :root[data-scheme="zimbra"] .box > .side .btn.pri.wide { border-radius: 4px !important; }
/* 0.15 Layout „Zimbra Classic“: Mailliste wie Classic/carbon gemessen (Zeile 23 px, Schrift 12 px, Baumzeile 24 px, Spaltenkopf 26 px bei Normal) */
:root[data-layout="zimbra"][data-design="klassisch"] .list.ez .row { height: calc(25.55px * var(--s)) !important; min-height: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; }
:root[data-layout="zimbra"][data-design="klassisch"] .list.ez .row :is(.fr, .su, .dt, .gr, .sn) { font-size: calc(13.33px * var(--s)) !important; line-height: 1.25; }
:root[data-layout="zimbra"][data-design="klassisch"] .list.ez .lhead { height: calc(28.9px * var(--s)) !important; font-size: calc(13.33px * var(--s)) !important; }
:root:root[data-layout="zimbra"][data-design="klassisch"] .box > .side .tree li > .f { height: calc(26.67px * var(--s)) !important; min-height: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; }
:root[data-layout="zimbra"][data-design="klassisch"] .box > .side .tree li > .f :is(.n, .c) { font-size: calc(13.33px * var(--s)) !important; }
/* alle Zeilen einer einzeiligen Liste gleich hoch (Symbole, Kategorie-Punkte, Anhang duerfen die Hoehe nicht treiben) */
.list.ez .row > * { min-height: 0; max-height: 100%; overflow: hidden; }
.list.ez .row .kdots, .list.ez .row .cn, .list.ez .row svg.i { vertical-align: middle; }
/* 0.15 zweite Kopfzeile der Liste: Sortierung links, Zaehler rechts (Reiterzeile bleibt frei, nichts abgeschnitten) */
.list .klhead .lzeile { display: flex; align-items: center; gap: calc(8px * var(--s)); padding: 0 calc(6px * var(--s)) calc(2px * var(--s)); min-height: calc(20px * var(--s)); }
.list .klhead .lzeile .lzahl { margin-left: auto; padding: 0 calc(4px * var(--s)); }
.list .klhead .lzeile .sortknopf { padding-left: calc(2px * var(--s)); }
/* ===== 0.15.1 Chat-Popup: Minimieren = nur Titelzeile unten rechts (wie Teams/Gmail), Zahl ungelesener Chats im Titel und am Reiter „Chat“ ===== */
#chatfenster.mini { width: calc(280px * var(--s)) !important; bottom: 0 !important; right: calc(16px * var(--s)) !important; border-bottom: 0; border-radius: calc(8px * var(--s)) calc(8px * var(--s)) 0 0; }
#chatfenster.mini .cf-kopf { height: calc(34px * var(--s)); border-bottom: 0; }
#chatfenster.mini, #chatfenster.mini .cf-inhalt { margin: 0 !important; padding: 0 !important; }
#chatfenster.mini .cf-inhalt { border: 0 !important; min-height: 0 !important; }
#chatfenster.mini .cf-kopf .tb:not([data-cf="mini"]):not([data-cf="zu"]) { display: none !important; }
#chatfenster .cf-titel .cf-zahl { min-width: calc(17px * var(--s)); height: calc(17px * var(--s)); padding: 0 calc(5px * var(--s)); box-sizing: border-box; border-radius: 999px; background: #d13438; color: #fff;
  font-size: calc(10.5px * var(--s)); font-weight: 700; line-height: calc(17px * var(--s)); text-align: center; }
#chatfenster .cf-titel .cf-zahl.punkt { min-width: calc(9px * var(--s)); width: calc(9px * var(--s)); height: calc(9px * var(--s)); padding: 0; background: #f0a830; }
#chatfenster .cf-titel .cf-zahl[hidden], #topbar nav a .cn-zahl[hidden] { display: none !important; }
#topbar nav a[data-m="app:chat"] { position: relative; }
#topbar nav a .cn-zahl { position: absolute; top: calc(2px * var(--s)); right: calc(4px * var(--s)); min-width: calc(16px * var(--s)); height: calc(16px * var(--s)); padding: 0 calc(4px * var(--s)); box-sizing: border-box;
  border-radius: 999px; background: #d13438; color: #fff; font-size: calc(10px * var(--s)); font-weight: 700; line-height: calc(16px * var(--s)); text-align: center; pointer-events: none; }
#topbar nav a .cn-zahl.punkt { min-width: calc(9px * var(--s)); width: calc(9px * var(--s)); height: calc(9px * var(--s)); padding: 0; background: #f0a830; }
/* minimierte Schreibfenster-Leiste (ebenfalls unten rechts) links neben die minimierte Chat-Zeile */
body:has(#chatfenster.mini:not([hidden])) #cmp-leiste { right: calc(304px * var(--s)); }
@media (max-width: 700px) { #chatfenster.mini { width: auto !important; left: 0 !important; right: 0 !important; bottom: calc(56px + env(safe-area-inset-bottom, 0px)) !important; border-radius: 0; } }

/* 24.11.2026 Anwender: Umschalter zu Zimbra Classic raus (kommt in 0.15.2 in die Quelle) */
#classicbtn { display: none !important; }
