/* ==========================================================================
   Orga-Plattform 3 – Ergänzungen: Anmeldung, Mein Tag, Kalender, Räume,
   Zeiterfassung, Ablage, E-Mail, Benutzer & Rechte, Profil, Mobil, Druck
   ========================================================================== */

:root { --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Helvetica Neue", Arial, sans-serif;
  --font-head: -apple-system, BlinkMacSystemFont, "SF Pro Display", Inter, "Helvetica Neue", Arial, sans-serif; }
kbd { font: 600 11px/1 var(--font-body); padding: 3px 5px; border-radius: 5px; border: 1px solid var(--line); background: var(--soft); color: var(--muted); margin-left: 4px; }
.btn.wide { width: 100%; justify-content: center; }
.btn.danger:hover { filter: brightness(1.08); }
.sep-dot { color: var(--muted); margin: 0 6px; }
.pre { white-space: pre-wrap; }
code.wrap { white-space: normal; word-break: break-all; }
.c { text-align: center !important; }
.inp.ro { display: flex; align-items: center; background: color-mix(in srgb, var(--soft) 60%, var(--surface)); }
.tabs.scroll { overflow-x: auto; scrollbar-width: none; } .tabs.scroll::-webkit-scrollbar { display: none; }
.tab { white-space: nowrap; }
.sheet-body.scroll { max-height: calc(100vh - 160px); overflow: auto; }
.scroll-x { overflow-x: auto; }
.plain-list { margin: 0; padding-left: 18px; line-height: 1.7; }
.plain-list ul { padding-left: 18px; }
.hl-card { border-color: color-mix(in srgb, var(--warn) 40%, var(--line)); background: #FFFBF2; }
details > summary { cursor: pointer; }

/* ---------- Avatare --------------------------------------------------------- */
.av-img, .av-txt { width: 36px; height: 36px; border-radius: 99px; flex: none; object-fit: cover; display: inline-grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; }
.av-img.sm, .av-txt.sm { width: 30px; height: 30px; font-size: 11.5px; }
.av-img.xl, .av-txt.xl { width: 84px; height: 84px; font-size: 28px; }
.ch-av.img, .msg-av.img { object-fit: cover; display: block; background: var(--soft); }
.ch-av-wrap { position: relative; display: inline-flex; flex: none; }
.ch-av-wrap > i { position: absolute; right: -3px; bottom: -3px; width: 9px; height: 9px; border-radius: 99px; background: #9A9AA0; border: 2px solid var(--surface); }
.ch-av-wrap > i.on { background: #2BAC76; }
.person-cell { display: flex; align-items: center; gap: 10px; }
.person-cell b { display: block; } .person-cell small { color: var(--muted); font-size: 12.5px; }

/* ---------- Anmeldung -------------------------------------------------------- */
.auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px 16px;
  background: radial-gradient(1100px 600px at 15% -10%, #E9E4D8, transparent), radial-gradient(900px 500px at 110% 110%, #DDE6EE, transparent), #F4F3EF; }
.auth-card { width: min(460px, 100%); background: #fff; border-radius: 22px; padding: 34px 36px 28px; box-shadow: var(--shadow-lg); animation: rise .35s var(--ease) both; }
.auth-card h1 { font-size: 28px; margin: 22px 0 6px; letter-spacing: -.02em; }
.auth-card .lead { color: var(--muted); margin: 0 0 18px; font-size: 15px; }
.auth-form { grid-template-columns: repeat(6, 1fr); gap: 14px 12px; }
.auth-form .btn { grid-column: span 6; margin-top: 6px; }
.auth-msg { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; font-size: 14px; margin-bottom: 14px; }
.auth-msg .icon { width: 17px; height: 17px; margin-top: 1px; }
.auth-msg.err { background: #FDECEC; color: #9B1C1C; } .auth-msg.ok { background: #E8F5EE; color: #17643F; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px; margin-top: 18px; font-size: 14px; }
.auth-foot { display: flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 12.5px; color: var(--muted); text-align: center; }
.auth-foot .icon { width: 14px; height: 14px; }
.pw-wrap { position: relative; } .pw-wrap .inp { padding-right: 44px; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
.code-inp { font-size: 26px !important; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; height: 56px !important; }
.choice-list { display: grid; gap: 10px; margin: 8px 0 4px; }
.choice { display: flex; gap: 14px; align-items: flex-start; text-align: left; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; }
.choice:hover { border-color: #1D1D1F; box-shadow: var(--shadow-sm); }
.choice > .icon { width: 22px; height: 22px; margin-top: 2px; }
.choice b { display: block; font-size: 15px; } .choice small { color: var(--muted); font-size: 13px; line-height: 1.4; display: block; }

/* ---------- Seitenleiste ---------------------------------------------------- */
.side-foot { width: 100%; border: 0; border-top: 1px solid rgba(255, 255, 255, .08); background: transparent; color: inherit; text-align: left; cursor: pointer; }
.side-foot:hover { background: rgba(255, 255, 255, .06); }
.side-foot .av-txt, .side-foot .av-img { box-shadow: 0 0 0 2px rgba(255, 255, 255, .12); }
.nav-burger { display: none; margin-left: auto; color: inherit; }
.ctx.single .ctx-btn { cursor: default; } .ctx.single .ctx-btn:hover { background: none; }
.ctx-rolle { margin-left: auto; font-size: 11px; opacity: .6; }
.nav-badge.soft { background: rgba(255, 255, 255, .2); }

/* ---------- Banner ---------------------------------------------------------- */
.banner { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 16px; border-radius: 14px; border: 1px solid #F1D6A6; background: #FFF6E5; color: #6B4300; margin-bottom: 14px; font-size: 14.5px; }
.banner > .icon:first-child { width: 20px; height: 20px; flex: none; }
.banner span { flex: 1; } .banner > .icon:last-child { width: 16px; height: 16px; opacity: .6; }
.banner.warn { background: #F1F5FF; border-color: #CCD9F5; color: #23407A; }
.banner.plain { background: var(--surface); border-color: var(--line); color: var(--text); }
button.banner:hover { filter: brightness(.98); }

/* ---------- Mein Tag ---------------------------------------------------------- */
.tag-head { align-items: flex-end; }
.kicker { margin: 0 0 4px; font-size: 13px; font-weight: 650; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.tag-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.tag-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; min-width: 0; }
.tag-col section .section-head { margin-bottom: 8px; }
.uhr { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 0; border-left: 5px solid #C9C6BE; }
.uhr.an { border-left-color: var(--ok); background: linear-gradient(90deg, #EEF8F2, var(--surface) 50%); }
.uhr.pause { border-left-color: var(--warn); background: linear-gradient(90deg, #FFF6E7, var(--surface) 50%); }
.uhr-kopf { display: flex; align-items: center; gap: 12px; min-width: 0; }
.uhr-kopf b { display: block; font-size: 16px; } .uhr-kopf small { color: var(--muted); font-size: 13px; }
.uhr-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--soft); flex: none; }
.uhr.an .uhr-ic { background: var(--ok); color: #fff; } .uhr.pause .uhr-ic { background: var(--warn); color: #fff; }
.uhr-ic .icon { width: 21px; height: 21px; }
.uhr-knopf { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.quick-grid .quick-card { padding: 12px 14px; border-radius: 14px; }
.quick-grid .quick-card .qi { width: 38px; height: 38px; }
.termin-row { width: 100%; text-align: left; cursor: pointer; }
.t-zeit { width: 64px; flex: none; font-weight: 650; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.t-zeit small { display: block; font-weight: 500; color: var(--muted); font-size: 11.5px; }
.t-strich { width: 4px; align-self: stretch; border-radius: 4px; flex: none; }
.t-strich.big { display: inline-block; width: 6px; height: 22px; margin-right: 4px; vertical-align: middle; }
.mini-sep { font-size: 11.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 8px 4px 0; }
.org-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-top: 6px; }
.org-mini { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-align: left; }
.org-mini:hover { border-color: var(--c); box-shadow: var(--shadow-sm); }
.om-logo { width: 54px; height: 36px; display: grid; place-items: center; flex: none; overflow: hidden; }
.om-logo img { max-width: 54px; max-height: 34px; object-fit: contain; } .om-logo .wordmark { font-size: 11px; line-height: 1.1; white-space: normal; text-align: center; overflow-wrap: anywhere; }
.om-txt b { display: block; font-size: 14px; } .om-txt small { color: var(--muted); font-size: 12px; }
@media (max-width: 1000px) { .tag-grid { grid-template-columns: 1fr; } }

/* ---------- Suche ------------------------------------------------------------ */
.suche-erg { display: grid; gap: 6px; margin-top: 12px; max-height: 60vh; overflow: auto; }
.suche-erg .doc-row { width: 100%; min-width: 0; text-align: left; cursor: pointer; }
.suche-erg .doc-row .txt { flex: 1 1 auto; min-width: 0; }

/* ---------- Gemeinsame Bausteine -------------------------------------------- */
.copy-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.copy-fields > div { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 10px 44px 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); min-width: 0; }
.copy-fields > div.wide { grid-column: 1 / -1; }
.copy-fields > div.hl { border-color: #E2B24C; background: #FFF9EA; }
.copy-fields small { color: var(--muted); font-size: 12px; } .copy-fields code { font-size: 14px; overflow-wrap: anywhere; }
.copy-fields .icon-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.kv-list { display: grid; gap: 6px; }
.kv-list > div { display: flex; gap: 16px; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.kv-list > div > span { color: var(--muted); flex: none; } .kv-list b { text-align: right; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.set-list { display: grid; gap: 10px; }
.set-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.set-row:last-child { border-bottom: 0; }
.set-row > div { flex: 1; min-width: 0; } .set-row b { display: block; } .set-row small { color: var(--muted); font-size: 13px; display: block; }
.set-row.danger b { color: var(--danger); }
.pick-people { display: flex; flex-wrap: wrap; gap: 6px; }
.person-pick { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 4px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; }
.person-pick .ch-av { width: 24px; height: 24px; border-radius: 99px; font-size: 10px; }
.person-pick.on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, #fff); font-weight: 600; }
.plattform-box { margin-top: 18px; padding: 14px 16px; border-radius: 14px; border: 1.5px dashed color-mix(in srgb, var(--brand) 40%, var(--line)); background: color-mix(in srgb, var(--brand) 4%, var(--surface)); }
.org-info { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 14px; }
.org-info .logo-prev { max-width: 160px; max-height: 70px; object-fit: contain; }
.rechte-mini { display: flex; flex-wrap: wrap; gap: 6px; }
.rechte-mini .badge .icon { width: 13px; height: 13px; margin-right: 4px; }
.rechte-tab td, .rechte-tab th { padding: 7px 8px; }
.rechte-tab td:first-child { display: flex; align-items: center; gap: 8px; }
.rechte-tab .icon { width: 16px; height: 16px; color: var(--muted); }
.rechte-tab input[type=radio] { width: 18px; height: 18px; accent-color: #1D1D1F; cursor: pointer; }
.qr { display: grid; place-items: center; margin: 6px 0 12px; }
.qr img { width: 220px; height: 220px; image-rendering: pixelated; border: 10px solid #fff; border-radius: 12px; box-shadow: var(--shadow); }
.profil-kopf { display: flex; gap: 18px; align-items: center; margin-bottom: 16px; }
.profil-kopf p { margin: 6px 0 0; }
.zf-wahl { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.zf { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--line); border-radius: 14px; }
.zf.on { border-color: var(--ok); background: #F2FAF5; }
.zf b { display: flex; align-items: center; gap: 8px; } .zf small { color: var(--muted); font-size: 13px; flex: 1; }
.chat-main.drop, .drop-ziel.drop { outline: 3px dashed color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: -8px; }
.att-img { border: 0; padding: 0; background: none; border-radius: 10px; overflow: hidden; max-width: 320px; cursor: zoom-in; }
.att-img img { display: block; max-width: 320px; max-height: 240px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.att-chip img { width: 22px; height: 22px; object-fit: cover; border-radius: 4px; }
.ro-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.ro-fieldset button[data-act]:not([data-act^="str-tab"]) { display: none; }

/* ---------- Kalender ---------------------------------------------------------- */
.kal-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.kal-titel { margin: 0 0 0 6px; font-size: 20px; letter-spacing: -.01em; }
.kal-monat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.kal-kopf, .kal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.kal-kopf div { padding: 8px 10px; font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 1px solid var(--line); }
.kal-tag { min-height: 112px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); cursor: pointer; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.kal-tag:nth-child(7n) { border-right: 0; }
.kal-tag:hover { background: color-mix(in srgb, var(--soft) 50%, transparent); }
.kal-tag.we { background: color-mix(in srgb, var(--soft) 35%, var(--surface)); }
.kal-tag.fremd .kal-nr { color: #B7B4AC; }
.kal-nr { font-size: 13px; font-weight: 650; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 99px; }
.kal-tag.heute .kal-nr { background: var(--brand); color: var(--brand-ink); }
.kal-items { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kal-chip { display: block; width: 100%; text-align: left; border: 0; border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); color: var(--text);
  border-radius: 5px; padding: 2px 6px; font-size: 12px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.kal-chip.voll { background: var(--c); color: #fff; border-left-color: transparent; }
.kal-chip.feiertag { background: #EFEEEA; color: #666; border-left-color: #B9B6AE; }
.kal-chip:hover { filter: brightness(.96); }
.kal-mehr { font-size: 11.5px; color: var(--muted); padding-left: 6px; }
.kal-abw { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: #7A5300; background: #FFF4D6; border-radius: 5px; padding: 1px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.kal-abw .icon { width: 12px; height: 12px; }
.kal-woche { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.kw-kopf, .kw-ganz, .kw-raster { display: grid; grid-template-columns: 56px repeat(7, minmax(0, 1fr)); }
.kw-kopf div { padding: 10px 8px; font-size: 13px; border-bottom: 1px solid var(--line); text-align: center; }
.kw-kopf div.heute { color: var(--brand); font-weight: 700; }
.kw-ganz > div { padding: 4px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; min-height: 30px; min-width: 0; }
.kw-ganz > div:first-child { justify-content: center; color: var(--muted); }
.kw-zeit span { display: block; font-size: 11px; color: var(--muted); text-align: right; padding-right: 6px; transform: translateY(-7px); }
.kw-spalte { position: relative; border-left: 1px solid var(--line); background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--h) - 1px), var(--line) calc(var(--h) - 1px), var(--line) var(--h)); cursor: pointer; }
.kw-spalte.heute { background-color: color-mix(in srgb, var(--brand) 4%, transparent); }
.kal-block { position: absolute; border: 0; border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 14%, #fff); border-radius: 6px; padding: 3px 6px; text-align: left; overflow: hidden; font-size: 12px; line-height: 1.3; cursor: pointer; }
.kal-block b { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kal-block small { color: var(--muted); font-size: 11px; }
.kal-block:hover { box-shadow: var(--shadow); z-index: 2; }
.kal-liste-tag { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 12px; align-items: start; }
.kl-datum { text-align: center; padding-top: 8px; } .kl-datum b { display: block; font-size: 24px; line-height: 1; }
.kl-datum small { color: var(--muted); font-size: 12px; } .kl-datum.heute b { color: var(--brand); }
.kl-items { display: grid; gap: 6px; }
@media (max-width: 760px) { .kal-tag { min-height: 74px; } .kal-chip { font-size: 10.5px; padding: 1px 3px; } .kal-abw { display: none; } }

/* ---------- Räume ------------------------------------------------------------ */
.bel-plan { width: 100%; border-collapse: collapse; min-width: 860px; }
.bel-plan th, .bel-plan td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); vertical-align: top; padding: 6px; }
.bel-plan thead th { font-size: 12.5px; font-weight: 650; text-align: left; color: var(--muted); background: color-mix(in srgb, var(--soft) 40%, var(--surface)); }
.bel-plan thead th.heute { color: var(--brand); }
.bel-plan tbody th { text-align: left; width: 180px; font-weight: 500; } .bel-plan tbody th b { display: block; font-size: 14px; } .bel-plan tbody th small { color: var(--muted); font-size: 12px; }
.bel-plan td { min-width: 110px; height: 64px; cursor: pointer; }
.bel-plan td:hover { background: color-mix(in srgb, var(--soft) 50%, transparent); }
.bel-plan td.heute { background: color-mix(in srgb, var(--brand) 4%, transparent); }
.bel { display: block; width: 100%; text-align: left; border: 0; border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); border-radius: 6px; padding: 3px 6px; margin-bottom: 3px; font-size: 12px; }
.bel small { display: block; color: var(--muted); font-size: 11px; } .bel b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bel.fremd { background: repeating-linear-gradient(45deg, #F2F1ED, #F2F1ED 6px, #E9E8E3 6px, #E9E8E3 12px); border-left-color: #AAA; cursor: default; }
.ap { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--ok); } .ap .icon { width: 12px; height: 12px; } .ap.voll { color: var(--danger); }
.raum-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.raum-card { border-top: 5px solid var(--c); margin: 0; display: flex; flex-direction: column; gap: 8px; }
.rc-kopf { display: flex; gap: 12px; align-items: center; } .rc-kopf > div { flex: 1; min-width: 0; }
.rc-kopf b { display: block; font-size: 15px; } .rc-kopf small { color: var(--muted); font-size: 12.5px; }
.rc-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); flex: none; }
.rc-daten { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; } .rc-daten span { display: inline-flex; align-items: center; gap: 5px; } .rc-daten .icon { width: 14px; height: 14px; }
.raum-card .muted-note { margin: 0; }
.raum-card .btn { align-self: flex-start; }

/* ---------- Zeiterfassung ------------------------------------------------------ */
.zt-mon { min-width: 130px; text-align: center; font-size: 14.5px; }
.zt-tab td { vertical-align: top; padding-top: 7px; padding-bottom: 7px; }
.zt-tab tr.we td { background: color-mix(in srgb, var(--soft) 40%, transparent); }
.zt-tab tr.heute td { background: color-mix(in srgb, var(--brand) 6%, transparent); }
.zt-tab tr.leer td { color: var(--muted); }
.zt-zeiten { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.zt-eintrag { border: 1px solid var(--line); background: var(--surface); border-radius: 7px; padding: 2px 8px; font-size: 13px; font-variant-numeric: tabular-nums; }
.zt-eintrag[data-act]:hover { border-color: #999; }
.uhr + .tiles, .card.uhr { margin-bottom: 14px; }

/* ---------- Ablage --------------------------------------------------------------- */
.abl { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 16px; align-items: start; }
.abl-baum { padding: 12px; position: sticky; top: 16px; max-height: calc(100vh - 40px); overflow: auto; }
.abl-baum .search { margin-bottom: 10px; }
.abl-tree { display: grid; gap: 1px; }
.abl-kb { display: flex; align-items: center; gap: 6px; width: 100%; border: 0; background: none; padding: 5px 8px 5px calc(6px + var(--t) * 16px); border-radius: 8px; text-align: left; font-size: 13.5px; }
.abl-kb:hover { background: var(--soft); } .abl-kb.on { background: var(--brand); color: var(--brand-ink); }
.abl-kb > span:not(.abl-auf) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.abl-kb small { color: inherit; opacity: .55; font-size: 11.5px; }
.abl-kb .icon { width: 15px; height: 15px; flex: none; }
.abl-auf { width: 16px; height: 16px; display: grid; place-items: center; flex: none; } .abl-auf .icon { width: 12px; height: 12px; }
.abl-frist { display: flex; align-items: center; gap: 8px; width: 100%; border: 1px solid #F1D6A6; background: #FFF6E5; color: #6B4300; border-radius: 9px; padding: 7px 10px; margin-bottom: 10px; font-size: 13px; }
.abl-frist.on { background: #6B4300; color: #fff; } .abl-frist .icon { width: 15px; height: 15px; }
.abl-inhalt { padding: 14px 16px; min-height: 360px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 14px; margin-bottom: 12px; color: var(--muted); }
.crumbs .link { font-size: 14px; } .crumbs .icon { width: 15px; height: 15px; vertical-align: -2px; }
.abl-ordner { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-bottom: 14px; }
.abl-o { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--soft) 40%, var(--surface)); text-align: left; }
.abl-o:hover { border-color: #999; } .abl-o > .icon { width: 22px; height: 22px; color: #C28B16; flex: none; }
.abl-o b { display: block; font-size: 13.5px; } .abl-o small { color: var(--muted); font-size: 12px; } .abl-o span { min-width: 0; }
.abl-name { display: flex; align-items: center; gap: 10px; border: 0; background: none; text-align: left; padding: 0; width: 100%; }
.abl-name > .icon { width: 20px; height: 20px; color: var(--muted); flex: none; }
.abl-name b { display: block; font-size: 14px; font-weight: 600; } .abl-name small { display: block; color: var(--muted); font-size: 12px; }
.abl-name:hover b { text-decoration: underline; }
.abl-tab td { vertical-align: middle; }
@media (max-width: 900px) { .abl { grid-template-columns: 1fr; } .abl-baum { position: static; max-height: 300px; } }

/* ---------- E-Mail ----------------------------------------------------------------- */
.mail { display: grid; grid-template-columns: 220px 380px minmax(0, 1fr); height: 100vh; background: var(--surface); }
.mail-side { border-right: 1px solid var(--line); padding: 16px 12px; display: flex; flex-direction: column; gap: 10px; background: color-mix(in srgb, var(--soft) 55%, var(--surface)); min-width: 0; }
.mail-ordner { display: grid; gap: 1px; flex: 1; overflow: auto; align-content: start; }
.mo { display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 7px 10px; border-radius: 8px; font-size: 14px; text-align: left; color: var(--muted); }
.mo span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mo:hover { background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text); } .mo.on { background: var(--brand); color: var(--brand-ink); }
.mo .icon { width: 16px; height: 16px; flex: none; }
.mail-side-foot { border-top: 1px solid var(--line); padding-top: 10px; }
.mail-liste { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.ml-suche { display: flex; gap: 6px; align-items: center; padding: 12px; border-bottom: 1px solid var(--line); } .ml-suche .search { flex: 1; }
.ml-items { flex: 1; overflow: auto; }
.ml { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 10px 14px 10px 18px; position: relative; }
.ml:hover { background: color-mix(in srgb, var(--soft) 60%, transparent); }
.ml.on { background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.ml.neu::before { content: ""; position: absolute; left: 6px; top: 16px; width: 7px; height: 7px; border-radius: 99px; background: var(--accent); }
.ml-kopf { display: flex; justify-content: space-between; gap: 8px; } .ml-kopf b { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml.neu .ml-kopf b { font-weight: 700; } .ml-kopf small { color: var(--muted); font-size: 12px; flex: none; }
.ml-betreff { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; gap: 4px; align-items: center; }
.ml.neu .ml-betreff { color: var(--text); }
.ml-betreff .icon { width: 13px; height: 13px; flex: none; } .ml .flag { color: var(--danger); display: inline-flex; }
.ml-seiten { justify-content: center; padding: 10px; }
.mail-lesen { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: auto; }
.mail-kopf { padding: 18px 22px 12px; border-bottom: 1px solid var(--line); }
.mail-kopf h2 { margin: 0 0 10px; font-size: 20px; letter-spacing: -.01em; overflow-wrap: anywhere; }
.mk-zeilen { display: grid; gap: 2px; font-size: 13.5px; } .mk-zeilen span { display: inline-block; width: 52px; color: var(--muted); }
.mk-tools { margin-top: 12px; }
.mail-anh { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 22px 0; } .mail-anh .att { max-width: 280px; }
.mail-hinweis { padding: 8px 22px 0; margin: 0; }
.mail-frame { flex: 1; width: 100%; min-height: 420px; border: 0; background: #fff; }
.mail-text { white-space: pre-wrap; font: 14.5px/1.55 var(--font-body); padding: 18px 22px; margin: 0; overflow-wrap: anywhere; }
@media (max-width: 1200px) { .mail { grid-template-columns: 190px 300px minmax(0, 1fr); } }
@media (max-width: 900px) { .mail { grid-template-columns: 1fr; height: auto; } .mail-side, .mail-liste { border-right: 0; border-bottom: 1px solid var(--line); } .ml-items { max-height: 50vh; } }

/* ---------- Mobil: Seitenleiste wird Kopfzeile -------------------------------------- */
@media (max-width: 760px) {
  .shell, .shell.compact { grid-template-columns: 1fr; }
  .side { position: sticky; top: 0; z-index: 30; height: auto; flex-direction: column; }
  .side-top { padding: 12px 16px; }
  .side-title { display: inline !important; }
  .nav-burger { display: inline-grid; }
  .side .ctx { padding: 0 12px 10px; } .side .ctx-name { display: inline !important; }
  .side .side-nav, .side .side-foot { display: none; }
  .side.offen .side-nav { display: flex; max-height: 65vh; } .side.offen .side-foot { display: flex; }
  .side.offen .nav-item { justify-content: flex-start; padding: 10px; } .side.offen .nav-item span { display: inline !important; }
  .side.offen .nav-sep { display: block !important; } .side.offen .sf-txt { display: block !important; }
  .page { padding: 20px 16px 50px; }
  .page-head { flex-direction: column; align-items: stretch; } .page-head h1 { font-size: 26px; }
  .page-tools { justify-content: flex-start; }
  .quick-grid { grid-template-columns: 1fr; }
  .two-col, .home-cols { grid-template-columns: 1fr !important; }
  .chat { grid-template-columns: 1fr; height: auto; } .chat-side { max-height: 30vh; overflow: auto; } .chat-main { height: 70vh; }
  .auth-card { padding: 26px 20px; }
  .sheet { width: 100% !important; }
  .form-grid { grid-template-columns: repeat(2, 1fr) !important; } .field { grid-column: span 2 !important; }
}

/* ---------- Druck --------------------------------------------------------------------- */
@media print {
  .side, .page-tools, .tabs, .org-switch, .filter-bar, #toast-root, .oc-add, .row-end, .btn { display: none !important; }
  .shell { display: block; } .page { padding: 0; max-width: none; animation: none; }
  body { background: #fff; } .card { box-shadow: none; break-inside: avoid; }
  .oc-wrap { overflow: visible; }
}

.empty-big .btn .icon { width: 18px; height: 18px; stroke-width: 1.8; }
.mod-dots { flex-wrap: wrap; }
.oa-body { min-width: 0; }
.abl-auf .icon.zu { transform: rotate(-90deg); }
.card-list { grid-template-columns: minmax(0, 1fr); }

/* ===================== 3.2: Fristen mit Dokumenten, Projekte, Gremien, Personal ===================== */
.frist-edit { grid-template-columns: 24px minmax(160px, 1fr) 150px 250px 120px 124px 34px 34px; }
.frist-aktion { display: flex; justify-content: flex-end; min-width: 0; }
.frist-edit .due { white-space: nowrap; }
.frist-info { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; min-width: 0; }
.frist-info small { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.frist-info small .icon { width: 13px; height: 13px; }
.frist-info small.auto { color: #7C3AED; } .frist-info small.warn { color: var(--danger); }
.badge.bad { --b: #C62828; }
button.badge.as-btn, .badge.as-btn { border: 0; cursor: pointer; font: inherit; font-size: 12px; font-weight: 650; }
.soll-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.soll { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.soll .t { flex: 1; min-width: 0; display: flex; flex-direction: column; } .soll .t small { color: var(--muted); font-size: 12px; }
.soll.ok { border-color: color-mix(in srgb, var(--ok) 35%, var(--line)); } .soll.fehlt .t small { color: var(--danger); }
.soll .tick { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; flex: none; color: transparent; }
.soll .tick.on { background: var(--ok); border-color: var(--ok); color: #fff; } .soll .tick .icon { width: 13px; height: 13px; stroke-width: 3; }
.tbl.vorlage td { vertical-align: top; } .tbl.vorlage .inp.sm { min-width: 80px; }
.sb-abschnitt textarea { font-size: 14.5px; line-height: 1.55; }
/* Gremien */
.gr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.gr-leute { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 10px 0; }
.gr-person { display: inline-flex; align-items: center; gap: 8px; } .gr-person > span { display: flex; flex-direction: column; } .gr-person small { color: var(--muted); font-size: 12px; }
.top-karte .top-kopf { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.top-karte .top-kopf .inp { font-weight: 600; font-size: 15px; }
.top-nr { flex: none; font-weight: 700; font-size: 12px; letter-spacing: .04em; color: var(--brand-ink); background: var(--brand); border-radius: 6px; padding: 4px 8px; }
.top-aufgaben { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chips-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.pick.ent { background: #FFF6E8; border-color: #F1D3A6; color: var(--warn); text-decoration: line-through; }
.abst-karte { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px dashed var(--line); }
.abst-karte:first-of-type { border-top: 0; } .abst-karte > div { display: flex; flex-direction: column; min-width: 0; } .abst-karte small { color: var(--muted); }
.zitat { display: block; font-style: italic; color: var(--text); opacity: .85; margin-top: 4px; white-space: pre-line; }
.zitat-gross { margin: 0 0 14px; padding: 12px 16px; border-left: 3px solid var(--brand); background: var(--soft, #F5F4F0); border-radius: 0 10px 10px 0; font-size: 15px; white-space: pre-line; }
.abst-knoepfe .btn { min-width: 110px; justify-content: center; }
.frist-row.as-btn { width: 100%; text-align: left; border: 0; background: var(--surface); cursor: pointer; font: inherit; color: inherit; }
/* Personal */
.tbl.pv td { vertical-align: top; } .tbl.pv tr.klick { cursor: pointer; } .tbl.pv tr.klick:hover td { background: color-mix(in srgb, var(--brand) 5%, transparent); }
.neg { color: var(--danger); }
/* Organigramm: Rollen anklickbar */
.oc-rolle { all: unset; display: flex; flex-direction: column; gap: 1px; width: 100%; cursor: pointer; border-radius: 6px; padding: 2px 4px; margin: -2px -4px; }
.oc-rolle:hover { background: color-mix(in srgb, var(--f, #555) 10%, transparent); }
.oc-rolle small { color: var(--muted); font-size: 11.5px; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .frist-edit { grid-template-columns: 24px 1fr auto auto; }
  .frist-edit > input[type=date], .frist-edit .frist-info, .frist-edit .frist-aktion { grid-column: 2 / -1; justify-content: flex-start; }
  .gr-grid { grid-template-columns: minmax(0, 1fr); }
  .abst-karte { flex-direction: column; align-items: stretch; }
}

/* 3.3 – Ablage auf diesem Mac */
.warn-text { color: var(--warn, #b45309); }
.warn-text .ic, .warn-text svg { vertical-align: -2px; }
.tbl.mac-ablage td { vertical-align: top; }
.tbl.mac-ablage td:first-child { white-space: nowrap; }
.tbl.mac-ablage code.wrap { font-size: 12px; }
.banner.plain .btn { margin-left: auto; flex-shrink: 0; }

/* 3.4 – Ordnerstruktur als Organigramm */
.ap-wrap .oc-unit { max-width: 280px; min-width: 200px; }
.ap-wurzel .oc-head { cursor: default; }
.ap-arten { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px; }
.ap-art { font-size: 10.5px; font-weight: 650; line-height: 1.5; padding: 0 6px; border-radius: 99px; background: color-mix(in srgb, var(--f, #555) 12%, #fff); color: color-mix(in srgb, var(--f, #555) 75%, #000); white-space: nowrap; }
.ap-tree, .ap-tree ul { list-style: none; margin: 0; padding: 0; }
.ap-tree { padding: 6px 8px 4px; border-top: 1px solid #F0EEE9; }
.ap-tree ul { margin-left: 12px; padding-left: 8px; border-left: 1px dashed #DDD9D0; }
.ap-tree li { display: block; padding: 0; border: 0; font-size: 12.5px; }
.ap-item { all: unset; display: block; width: 100%; box-sizing: border-box; cursor: pointer; border-radius: 6px; padding: 4px 6px; }
.ap-item:hover, .ap-item:focus-visible { background: color-mix(in srgb, var(--f, #555) 9%, transparent); }
.ap-name { display: flex; align-items: center; gap: 5px; font-weight: 550; color: var(--text); }
.ap-name .icon { width: 14px; height: 14px; color: var(--muted); flex: none; }
.ap-name.dyn { font-style: italic; color: var(--muted); }
.ap-unit .ap-add { display: flex; }
.ap-neu-karte { border: 1.5px dashed #CFCBC2; background: transparent; border-radius: 12px; padding: 14px 18px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.ap-neu-karte:hover { border-color: var(--text); color: var(--text); }
.ap-neu-karte .icon { width: 15px; height: 15px; }
.ap-gruppe { margin: 8px 0; } .ap-gruppe > small { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 5px; }
.ap-hilfe { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.55; } .ap-hilfe li { margin-bottom: 6px; }
.ap-arten-tbl td { vertical-align: top; } .ap-arten-tbl code.wrap { font-size: 12px; }
@media print { .ap-neu-karte, .ap-add { display: none !important; } }
.ap-wrap { padding: 24px; margin-bottom: 12px; }
.ap-oc { display: flex; flex-direction: column; align-items: center; }
.ap-wurzel { min-width: 220px; max-width: 420px; text-align: center; }
.ap-wurzel .oc-head { text-align: center; }
.ap-stamm { width: 2px; height: 20px; background: #CFCBC2; }
.ap-feld { width: 100%; border-top: 2px solid #CFCBC2; padding-top: 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; align-items: start; }
.ap-feld > .ap-unit { max-width: none; min-width: 0; }
.ap-feld > .ap-neu-karte { min-height: 64px; justify-content: center; }
.ap-pfad { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 5px; font-size: 13px; }
.ap-pfad span { background: var(--bg, #F4F2EE); border-radius: 5px; padding: 1px 6px; }
.ap-pfad i { font-style: normal; color: var(--muted); }

/* 3.5 – Ordnerstruktur per Drag & Drop */
.ap-kopf { cursor: pointer; user-select: none; }
.ap-item { user-select: none; }
[draggable="true"] { -webkit-user-drag: element; }
.ap-art[draggable="true"] { cursor: grab; }
.ap-ziehe { opacity: .45; }
.ap-drop-in { outline: 2px dashed var(--f, #3A3A3A); outline-offset: -2px; background: color-mix(in srgb, var(--f, #3A3A3A) 12%, #fff) !important; }
.ap-item.ap-drop-vor { box-shadow: inset 0 3px 0 var(--f, #3A3A3A); }
.ap-item.ap-drop-nach { box-shadow: inset 0 -3px 0 var(--f, #3A3A3A); }
.ap-kopf.ap-drop-vor { box-shadow: inset 4px 0 0 var(--f, #3A3A3A); }
.ap-kopf.ap-drop-nach { box-shadow: inset -4px 0 0 var(--f, #3A3A3A); }
.ap-wurzel.ap-drop-in, .ap-neu-karte.ap-drop-in { outline: 2px dashed var(--f, #3A3A3A); }
.ap-baukasten { padding: 12px 16px; margin-bottom: 12px; }
.ap-bk-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 6px; font-size: 13.5px; }
.ap-bk-zeile > b { display: inline-flex; align-items: center; gap: 5px; margin-right: 4px; }
.ap-bk-zeile > b .icon { width: 14px; height: 14px; }
.ap-bk { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); background: var(--surface, #fff); border-radius: 8px; padding: 5px 10px; font-size: 13px; font-weight: 600; cursor: grab; user-select: none; }
.ap-bk .icon { width: 14px; height: 14px; color: var(--muted); }
.ap-bk.dyn { font-style: italic; }
.ap-bk:hover { border-color: var(--text); }
.ap-art.frei { --f: #B26A00; font-size: 12px; padding: 2px 8px; cursor: grab; }
.ap-baukasten .muted-note { margin: 4px 0 0; }
.ap-vorlagen { display: grid; gap: 10px; margin-top: 10px; }
.ap-baukasten { position: sticky; top: 8px; z-index: 5; box-shadow: var(--shadow-sm); }

/* ---------- 3.6 Werkzeuge (Hub) ---------------------------------------------- */
.grow { flex: 1; }
.btn.danger-text { color: var(--danger, #C62828); }
.wz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.wz-card { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.wz-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.wz-card h3 { margin: 0 0 4px; font-size: 17px; }
.wz-card header small { color: var(--muted); font-size: 12.5px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.wz-card footer { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.wz-card footer > small { flex-basis: 100%; }
.wz-meldung { margin: 0; font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: flex-start; }
.wz-meldung .icon { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.wz-meldung.err { color: var(--danger, #C62828); }
.wz-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.wz-tile { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--surface); }
.wz-tile p { margin: 4px 0 0; font-size: 12px; color: var(--muted); line-height: 1.35; }
.wz-zahl, .wz-mini { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.wz-zahl b { font-size: 24px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.wz-zahl small, .wz-mini small { font-size: 12px; color: var(--muted); }
a.wz-zahl:hover small, a.wz-mini:hover small { text-decoration: underline; }
.wz-zahl.warn b, .wz-mini.warn b { color: var(--warn); }
.wz-zahl.bad b, .wz-mini.bad b { color: var(--danger, #C62828); }
.wz-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.wz-row .txt { flex: 1; min-width: 120px; }
.wz-row .txt strong { display: block; font-size: 14.5px; }
.wz-row .txt small { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 4px; }
.wz-row .txt small.wz-fehler { color: var(--danger, #C62828); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wz-minis { display: flex; gap: 14px; }
.wz-mini { align-items: flex-end; text-align: right; }
.wz-mini b { font-size: 16px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.wz-mini small { font-size: 11px; white-space: nowrap; }
.wz-dot { width: 9px; height: 9px; border-radius: 99px; background: #C9C6BE; flex: none; }
.wz-dot.ok { background: var(--ok); } .wz-dot.warnung { background: var(--warn); }
.wz-dot.fehler, .wz-dot.unerreichbar { background: var(--danger, #C62828); }
.wz-dot.link { background: transparent; border: 2px solid #C9C6BE; width: 7px; height: 7px; }
@media (max-width: 760px) { .wz-minis { display: none; } .wz-grid { grid-template-columns: 1fr; } }

/* ---------- 3.7: Ordnerstruktur – Import, vertraulich, Regeln ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ap-marke { display: inline-flex; margin-left: 6px; color: var(--muted); vertical-align: -2px; }
.ap-marke .icon { width: 14px; height: 14px; }
.ap-regeln { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.ap-regeln summary { cursor: pointer; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.ap-regeln summary .icon { width: 16px; height: 16px; }
.ap-regeln[open] summary { margin-bottom: 10px; }
.abl-kb .ap-marke, .abl-o .ap-marke { margin-left: 4px; }
/* 3.7: Ablage – Dateien auf Ordner ziehen */
[data-abl-ziel].drop-hier { outline: 2px dashed var(--accent, var(--brand)); outline-offset: -2px; background: color-mix(in srgb, var(--accent, var(--brand)) 10%, transparent); }
tr[data-abl-eintrag] { cursor: grab; }
tr[data-abl-eintrag]:active { cursor: grabbing; }
@media (prefers-reduced-motion: reduce) { [data-abl-ziel].drop-hier { transition: none; } }
/* 3.7: Mein Tag anpassen, Normal/Erweitert, Version */
.mt-bearbeiten .tag-col { min-height: 120px; border-radius: var(--radius); outline: 2px dashed transparent; }
.mt-bearbeiten .tag-col:hover { outline-color: var(--line); }
.mt-kachel { border: 2px dashed var(--line); border-radius: var(--radius); background: var(--surface); padding: 8px 10px 10px; }
.mt-kachel + .mt-kachel { margin-top: 12px; }
.mt-kachel.zieht { opacity: .45; }
.mt-griff { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; cursor: grab; padding-bottom: 6px; }
.mt-griff > span:first-child { display: inline-flex; gap: 6px; align-items: center; }
.mt-knoepfe { display: inline-flex; gap: 4px; align-items: center; }
.mt-knoepfe .icon-btn { min-width: 36px; min-height: 36px; font-size: 16px; }
.mt-inhalt { opacity: .7; max-height: 260px; overflow: hidden; }
.mt-aus { margin-top: 14px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--btn-radius, 10px); overflow: hidden; }
.seg-b { border: 0; background: transparent; padding: 7px 12px; font: inherit; font-size: 13.5px; color: var(--muted); cursor: pointer; min-height: 36px; }
.seg-b.on { background: var(--brand); color: var(--brand-ink, #fff); }
.seg-b:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.side-version { display: block; width: 100%; text-align: left; border: 0; background: transparent; color: #8E8E96; font: inherit; font-size: 11.5px; padding: 6px 16px; cursor: pointer; }
.side-version:hover { color: #E9E9EC; }
.mod-profile { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
.mod-profile small { flex-basis: 100%; }
.rueck-zeile { padding: 8px 0; border-bottom: 1px solid var(--line); }
@media (prefers-reduced-motion: reduce) { .mt-kachel, .seg-b { transition: none !important; } }
.ap-import-tbl { table-layout: fixed; width: 100%; }
.ap-import-tbl th:first-child { width: 38%; }
.ap-import-tbl td { overflow-wrap: anywhere; vertical-align: top; }
.rueck-zeile small, .ap-regeln code, .sheet-body code.wrap { overflow-wrap: anywhere; }
.backdrop > .sheet { min-width: 0; max-width: 100%; }
/* 3.7: Ordnerstruktur auf dem Handy ohne seitliches Scrollen (WCAG 1.4.10) */
.ap-arten-tbl { table-layout: fixed; width: 100%; }
.ap-arten-tbl td, .ap-arten-tbl th { overflow-wrap: anywhere; }
.ap-arten-tbl th:last-child, .ap-arten-tbl td:last-child { width: 96px; }
@media (max-width: 760px) {
  .banner { flex-wrap: wrap; }
  .banner > span { flex: 1 1 220px; min-width: 0; }
  .ap-arten-tbl th:first-child { width: 34%; }
}
/* 3.7: lange Ordnernamen im Baum dürfen die Seite auf dem Handy nicht verbreitern */
.abl-tree { grid-template-columns: minmax(0, 1fr); }
.abl-baum, .abl-inhalt { min-width: 0; }
@media (max-width: 900px) { .abl { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .abl-inhalt { overflow-x: auto; } .abl-tab th:nth-child(3), .abl-tab td:nth-child(3) { display: none; } }

/* 3.8: Assistenten (Dokument, Onboarding, Offboarding) und breite Tabellen am Handy einspaltig, ohne seitliches Scrollen */
@media (max-width: 760px) {
  .workspace, .workspace.no-aside, .main .workspace { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 14px 12px 40px; }
  .rail { position: static; }
  .rail-list { display: flex; gap: 4px 16px; overflow-x: auto; padding: 2px 2px 6px; }
  .rail-list::before { display: none; }
  .rail-btn { padding: 4px 0; white-space: nowrap; width: auto; }
  .rail-sub { display: none; }
  .stage-body { padding: 20px 16px 18px; }
  .stage-foot { padding: 12px 16px; flex-wrap: wrap; }
  .stage h2 { font-size: 24px; }
  .success .file { display: flex; } .success .file strong { overflow-wrap: anywhere; }
  .tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: thin; }
  .tabs .tab { white-space: nowrap; }
  .tbl.map { display: block; overflow-x: auto; }
  .step-edit { grid-template-columns: 22px minmax(0, 1fr) 36px; }
  .step-edit > .inp:nth-of-type(2) { grid-column: 2 / -1; }
  .path-row { flex-wrap: wrap; }
  .wk-schritt { padding: 16px; }
  /* Häkchen-Zeilen und Hinweise mit „span 6“ erzeugten am Handy leere Spalten – alles volle Breite */
  .form-grid > * { grid-column: 1 / -1 !important; }
}
/* 3.9: Kalender-Liste und breite Tabellen in Karten am Handy */
.kl-items, .termin-row .txt { min-width: 0; }
.termin-row .txt strong, .termin-row .txt small { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .card > table.tbl, .card.pad > table.tbl, section.card > table.tbl { display: block; overflow-x: auto; }
}

/* 4.2 Server-Check */
.check-liste { list-style: none; margin: 8px 0 12px; padding: 0; display: grid; gap: 0; }
.check-zeile { display: grid; grid-template-columns: 112px 1fr auto; gap: 12px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.check-zeile:last-child { border-bottom: 0; }
.check-text { min-width: 0; overflow-wrap: anywhere; }
.check-knopf { justify-self: end; }
@media (max-width: 640px) {
  .check-zeile { grid-template-columns: 1fr; gap: 6px; }
  .check-knopf { justify-self: start; }
}

/* 4.3 Logo der Plattform */
.app-logo-img { width: 28px; height: 28px; border-radius: 8px; object-fit: contain; flex: none; display: block; background: #fff; }
.app-mark.big .app-logo-img { width: 34px; height: 34px; }
.logo-wahl { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.logo-wahl .logo-vorschau { width: 72px; height: 72px; border-radius: 14px; border: 1px solid var(--line); background: #fff;
  display: grid; place-items: center; overflow: hidden; flex: none; }
.logo-wahl .logo-vorschau img { width: 100%; height: 100%; object-fit: contain; }
.logo-wahl .logo-vorschau .dot { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff;
  background: conic-gradient(from 200deg, #CE1127, #FFC000, #6F8D62, #18788F, #173E6A, #9B696B, #CE1127); }
.logo-wahl .row-start { flex-wrap: wrap; }
.auth-form .auth-bleiben { grid-column: 1 / -1; margin: 2px 0 4px; }

/* 4.3 Assistent „Organisation anlegen“ */
.oa-schritte { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; padding: 0; margin: 4px 0 14px; }
.oa-schritte li { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.oa-schritte li.on { color: var(--ink, #1D1D1F); border-color: currentColor; font-weight: 600; }
.oa-schritte li.fertig { color: #17693F; }
.oa-nr { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--soft, #F2F2F4); font-size: 12px; }
.oa-nr .icon { width: 13px; height: 13px; }
.oa-frage { font-size: 19px; margin: 0 0 6px; }
.oa-arten { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; margin-top: 12px; }
.oa-arten .choice.on { border-color: var(--brand, #2B5F8A); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand, #2B5F8A) 25%, transparent); }
.oa .sub-title { margin-top: 20px; }
.oa-knoepfe { margin-top: 22px; gap: 10px; flex-wrap: wrap; }
.auth-card.breit { width: min(980px, 100%); max-width: none; }
.auth-card.breit .page-head { margin-bottom: 4px; }
@media (max-width: 640px) { .oa-arten { grid-template-columns: 1fr; } }

/* 4.3 Abläufe je Projekt */
.ab-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.ab-karte { display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; min-width: 0; }
.ab-karte:hover, .ab-karte:focus-visible { border-color: var(--brand, #2B5F8A); }
.ab-karte .txt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ab-karte strong { overflow-wrap: anywhere; } .ab-karte small { color: var(--muted); overflow-wrap: anywhere; }
.ab-bild { overflow-x: auto; padding-bottom: 6px; }
.ab-raster { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(190px, 1fr)); grid-template-rows: auto repeat(var(--z), auto);
  column-gap: 14px; row-gap: 30px; min-width: min-content; padding-bottom: 8px; }
.ab-bahn { grid-row: 1 / -1; background: var(--bg); border-radius: 12px; margin: 0 -7px -8px; }
.ab-rolle { grid-row: 1; position: relative; z-index: 1; padding: 10px 10px 8px; font-weight: 650; font-size: 13.5px; border-bottom: 2px solid var(--bd); overflow-wrap: anywhere; color: #1D1D1F; }
.ab-box { position: relative; z-index: 1; display: flex; gap: 10px; align-items: flex-start; background: #fff; color: #1D1D1F; border: 1.5px solid var(--bd);
  border-radius: 10px; padding: 10px 12px; margin: 0 6px; box-shadow: 0 1px 2px rgba(0,0,0,.06); min-width: 0; }
.ab-box.frage { border-style: dashed; border-width: 2px; }
.ab-linien { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; color: #6E6E73; overflow: visible; }
.ab-linien path.ab-weg { fill: none; stroke: currentColor; stroke-width: 1.6; }
.ab-nr { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: #1D1D1F; color: #fff; }
.ab-nr.frage { border-radius: 4px; transform: rotate(45deg); width: 20px; height: 20px; margin: 2px; }
.ab-nr.frage { font-size: 0; } .ab-nr.frage::after { content: "?"; font-size: 12px; transform: rotate(-45deg); }
.ab-text { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ab-text b { font-size: 14px; overflow-wrap: anywhere; }
.ab-text p { margin: 0; font-size: 13px; line-height: 1.4; white-space: pre-line; overflow-wrap: anywhere; }
.ab-text small { font-size: 12.5px; color: #4A4A4F; display: inline-flex; gap: 4px; align-items: center; }
.ab-text small .icon { width: 13px; height: 13px; }
.ab-unterlagen { display: flex; flex-wrap: wrap; gap: 4px; }
.ab-dok { display: inline-flex; gap: 4px; align-items: center; font-size: 12px; padding: 2px 7px; border-radius: 999px; background: #F2F2F4; overflow-wrap: anywhere; }
.ab-dok .icon { width: 12px; height: 12px; }
.ab-wege { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; }
.ab-ja { color: #17693F; font-weight: 600; } .ab-nein { color: #B3261E; font-weight: 600; }
/* Liste: Bildschirmleser immer, am Handy statt der Bahnen */
.ab-liste { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ab-bild.nur-liste .ab-liste, .ab-liste-zeigen .ab-liste { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal; }
.ab-liste li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1.5px solid var(--bd, var(--line)); border-radius: 10px; background: #fff; color: #1D1D1F; position: relative; }
.ab-liste li.frage { border-style: dashed; border-width: 2px; }
.ab-bild.nur-liste .ab-liste { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.ab-bild.nur-liste .ab-liste li + li::before, .ab-liste-zeigen .ab-liste li + li::before { content: "↓"; position: absolute; top: -19px; left: 18px; color: #6E6E73; font-size: 14px; line-height: 1; }
.ab-meta > div { align-items: flex-start; } .ab-meta b { white-space: pre-line; overflow-wrap: anywhere; text-align: right; }
.ab-edit-liste { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 12px; }
.ab-edit { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; }
.ab-edit-kopf { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ab-edit-kopf .icon-btn[disabled] { opacity: .35; }
@media (max-width: 760px) {
  .ab-raster { display: none; }
  .ab-bild .ab-liste { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal;
    list-style: none; padding: 0; display: flex; flex-direction: column; gap: 18px; }
  .ab-bild .ab-liste li + li::before { content: "↓"; position: absolute; top: -19px; left: 18px; color: #6E6E73; font-size: 14px; line-height: 1; }
  .ab-meta > div { flex-direction: column; } .ab-meta b { text-align: left; }
}
@media print { .ab-bild { overflow: visible; } }
/* Überschriften, auf die nach einem Seitenwechsel der Fokus springt (für Bildschirmleser), brauchen keinen Rahmen */
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus, h3[tabindex="-1"]:focus, h4[tabindex="-1"]:focus { outline: none; }
/* 4.3 Ablage: wird gerade bearbeitet */
.abl-in-arbeit { display: inline-flex !important; align-items: center; gap: 4px; margin-top: 3px; padding: 2px 8px; border-radius: 999px;
  background: #FFF4C7; color: #5C4300 !important; font-weight: 600; width: fit-content; }
.abl-in-arbeit .icon { width: 12px; height: 12px; }
/* 4.3: sichtbarer Fokus bei den Baustein-Karten (Kontrollkästchen ist versteckt) */
.mod-card:has(input:focus-visible) { outline: 3px solid var(--brand, #2B5F8A); outline-offset: 2px; }
/* 4.4 Ordner einlesen */
.ein-lbl { display: block; font-size: 13px; font-weight: 600; color: var(--text); }
.ein-mit { border: 0; padding: 0; margin: 4px 0 0; display: flex; flex-direction: column; gap: 6px; }
.ein-mit legend { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; padding: 0; }
.ein-pfad { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ein-info { margin: 6px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; line-height: 1.45; }
.ein-laeufe { display: flex; flex-direction: column; gap: 12px; }
.ein-lauf { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; background: var(--surface); }
.ein-lauf-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ein-lauf-kopf small { flex-basis: 100%; }
.ein-balken { height: 8px; border-radius: 99px; background: var(--soft); overflow: hidden; border: 1px solid var(--line); }
.ein-balken i { display: block; height: 100%; background: var(--brand); transition: width .4s; }
.ein-fehler { margin: 0; color: var(--danger); font-weight: 600; }
.ein-knoepfe { flex-wrap: wrap; gap: 8px; }
.ein-hinweis { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.ein-baustein { display: inline-flex; align-items: center; gap: 8px; }
.ein-alle { gap: 8px; margin-bottom: 10px; }
.ein-zeilen { display: flex; flex-direction: column; }
.ein-zeile { display: flex; gap: 10px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.ein-zeile:first-child { border-top: 0; }
.ein-zeile.erledigt .ein-datei { color: var(--muted); }
.ein-check { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.ein-inhalt { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.ein-inhalt > small { display: block; }
.ein-datei { display: flex; align-items: center; gap: 6px; font-weight: 600; overflow-wrap: anywhere; cursor: default; }
label.ein-datei { cursor: pointer; }
.ein-datei .icon { width: 16px; height: 16px; flex: none; color: var(--muted); }
.ein-felder { flex-wrap: wrap; gap: 8px; align-items: center; }
.ein-felder .sel-sm { max-width: min(100%, 460px); }
.ein-beleg { display: inline-block; align-self: flex-start; max-width: 100%; overflow-wrap: anywhere; padding: 2px 8px; border-radius: 6px; background: #EAF6EE; color: #17693F; font-size: 12.5px; line-height: 1.4; }
.ein-beleg.unsicher { background: #FFF4C7; color: #5C4300; }
.inp.ein-unsicher { border-color: #B98900; background: #FFFBEA; }
.ein-seiten { flex-wrap: wrap; gap: 6px; margin-top: 12px; }
@media (max-width: 760px) {
  .ein-felder .sel-sm { max-width: 100%; width: 100%; }
  .ein-hinweis { flex-direction: column; align-items: flex-start; }
}

/* 4.5: Pflicht-Einrichtung der Authenticator-App auf der Anmeldeseite */
.auth-form .app-schritte { grid-column: 1 / -1; margin: 0; line-height: 1.6; }
.auth-form .app-schritte li { margin-bottom: 10px; }
.auth-form .app-schritte .qr { margin: 10px 0 6px; justify-content: start; }
.auth-form .app-schritte .qr img { width: 180px; height: 180px; }
.auth-form .app-schritte code { word-break: break-all; }
.auth-form .app-schritte .app-link { display: inline-flex; margin: 0 0 8px; grid-column: auto; }
