/* ==========================================================================
   Anwendungen: Einstellungen (Windows-10-Stil), Fachanwendung, Verwaltung, Zubehör
   ========================================================================== */
.fa-sp { flex: 1; }
.mono, code { font-family: Consolas, "Lucida Console", "Courier New", monospace; }
.small { font-size: .9em; }
.tag { display: inline-block; padding: 0 6px; border-radius: 9px; background: var(--acc-l3); color: var(--acc-d2); font-size: .85em; }
html.dark .tag { background: #2c3e5c; color: #cfe0ff; }
.pill { display: inline-block; padding: 0 7px; border-radius: 9px; font-size: .85em; background: #e3e3e3; color: #333; white-space: nowrap; }
.pill.ok { background: #d6f2dc; color: #1d5a2a; } .pill.warn { background: #fff0c2; color: #6b4e00; } .pill.bad { background: #fbd5cf; color: #8a1d10; }
html.dark .pill { background: #3a3f48; color: #ddd; } html.dark .pill.ok { background: #1f4a2b; color: #b9ecc4; }
html.dark .pill.warn { background: #4d3e12; color: #f2df9f; } html.dark .pill.bad { background: #5a2019; color: #ffc2b8; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: #999; vertical-align: 1px; }
.dot.ok { background: #2fb344; } .dot.bad { background: #e0301e; }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 6px 0; }
dl.kv dt { color: var(--muted); } dl.kv dd { margin: 0; word-break: break-word; }
dl.kv.wide { grid-template-columns: minmax(150px, max-content) 1fr; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.chip { border: 1px solid var(--border-light); border-radius: 10px; padding: 0 8px; font-size: .88em; color: var(--muted); background: var(--panel); }
.chip.all { border-color: var(--acc); color: var(--acc); font-weight: bold; }
label.inline { display: inline-flex !important; align-items: center; gap: 5px; margin: 4px 12px 4px 0 !important; }
.copyrow { display: flex; gap: 6px; } .copyrow input { flex: 1; font-family: Consolas, monospace; font-size: 11px; }
.dlg-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; } .dlg-row > label { flex: 1; min-width: 120px; }
.upload-preview { display: block; max-width: 100%; max-height: 220px; margin: 0 auto 6px; border: 1px solid var(--border); object-fit: contain; background: #888; }
.app-toolbar { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-bottom: 1px solid var(--border-light); background: var(--win-bg); flex-wrap: wrap; }
.app-status { display: flex; gap: 8px; padding: 3px 8px; border-top: 1px solid var(--border-light); font-size: .92em; background: var(--win-bg); }
.print-frame { position: fixed; width: 0; height: 0; border: 0; left: -10px; top: -10px; }

/* ===================== Einstellungen (Windows 10) ===================== */
.win-body.w10 { background: var(--panel); overflow: hidden; }
.w10-app { position: relative; display: flex; height: 100%; font-family: "Segoe UI", var(--font); font-size: calc(var(--fs) + 1px); color: var(--panel-fg); }
.w10-nav { width: 250px; flex: none; display: flex; flex-direction: column; background: #f2f2f2; padding: 10px 0; overflow: auto; border-right: 1px solid #e3e3e3; }
html.dark .w10-nav { background: #1b1b1b; border-right-color: #2c2c2c; }
html.hc .w10-nav { background: #000; border-right: 1px solid #fff; }
.w10-navhome { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; padding: 8px 16px; border: 0; background: none; text-align: left; font-size: 1.05em; }
.w10-search, .w10-search-big { margin: 4px 14px 12px; padding: 6px 10px; border: 1px solid #999; background: var(--panel); color: var(--panel-fg); }
.w10-search-big { width: 100%; max-width: 420px; margin: 0 auto 26px; display: block; height: 34px; font-size: 1.05em; }
.w10-navitem { position: relative; display: flex; align-items: center; gap: 14px; padding: 9px 18px; border: 0; background: none; text-align: left; color: inherit; }
.w10-navitem .ico, .w10-navhome .ico { font-size: 16px; color: var(--panel-fg); }
.w10-navitem:hover, .w10-navhome:hover { background: rgba(0,0,0,.06); }
html.dark .w10-navitem:hover, html.dark .w10-navhome:hover { background: rgba(255,255,255,.07); }
.w10-navitem.on { font-weight: 600; }
.w10-navitem.on::before { content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 4px; background: var(--acc); }
.w10-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.w10-page { flex: 1; overflow: auto; padding: 18px 34px 80px; outline: none; }
.w10-burger { display: none; margin: 8px 12px 0; align-self: flex-start; border: 0; background: none; padding: 6px 8px; gap: 8px; align-items: center; }
.w10-h1 { font-family: "Segoe UI Light", "Segoe UI", var(--font); font-weight: 300; font-size: 28px; margin: 4px 0 18px; }
.w10-h1.center { text-align: center; margin-top: 18px; }
.w10-h2 { font-family: "Segoe UI Semibold", "Segoe UI", var(--font); font-weight: 600; font-size: 17px; margin: 26px 0 10px; }
.w10-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 8px 0; max-width: 720px; }
.w10-row.disabled { opacity: .5; }
.w10-rowtext { min-width: 0; }
.w10-label { margin-bottom: 2px; }
.w10-label.sub { margin-top: 14px; font-weight: 600; }
.w10-desc { color: var(--muted); font-size: .92em; margin: 2px 0 6px; max-width: 720px; }
.w10-block { margin: 6px 0 14px; max-width: 760px; }
.w10-control { flex: none; }
.w10-inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
.w10-list { margin: 0; padding-left: 18px; line-height: 1.8; }
.w10-toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.w10-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.w10-track { width: 44px; height: 20px; border-radius: 10px; border: 2px solid var(--panel-fg); position: relative; transition: background .15s; flex: none; }
.w10-knob { position: absolute; top: 3px; left: 3px; width: 10px; height: 10px; border-radius: 50%; background: var(--panel-fg); transition: left .15s; }
.w10-toggle input:checked + .w10-track { background: var(--acc); border-color: var(--acc); }
.w10-toggle input:checked + .w10-track .w10-knob { left: 27px; background: #fff; }
.w10-toggle input:focus-visible + .w10-track { outline: 2px solid var(--panel-fg); outline-offset: 2px; }
.w10-toggle.disabled { opacity: .45; cursor: default; }
.w10-state { min-width: 26px; }
.w10-radios { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.w10-radio { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.w10-radio input { margin-top: 3px; width: 16px; height: 16px; }
.w10-radio small { display: block; color: var(--muted); }
.w10-select { min-width: 220px; height: 30px; }
.w10-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; margin-top: 6px; }
.w10-check { display: flex; align-items: center; gap: 8px; } .w10-check img { width: 22px; height: 22px; }
.w10-btn { min-height: 30px; padding: 4px 16px; border: 2px solid transparent; background: #ccc; color: #000; display: inline-flex; align-items: center; gap: 6px; }
.w10-btn:hover { border-color: #7a7a7a; }
.w10-btn.primary { background: var(--acc); color: #fff; }
.w10-btn.danger { background: #e8d3d0; color: #7a1a0e; }
.w10-btn.small { min-height: 24px; padding: 1px 10px; font-size: .92em; }
html.dark .w10-btn { background: #3a3a3a; color: #fff; } html.dark .w10-btn.primary { background: var(--acc); }
html.dark .w10-btn.danger { background: #5a2520; color: #ffd2cb; }
html.hc .w10-btn { background: #000; color: #fff; border-color: #fff; }
.w10-form { display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.w10-form label { display: flex; flex-direction: column; gap: 3px; }
.w10-form input { height: 32px; }
.pw-checks { list-style: none; padding: 0; margin: 0; font-size: .92em; color: var(--muted); }
.pw-checks li::before { content: "○ "; }
.pw-checks li.ok { color: var(--ok); } .pw-checks li.ok::before { content: "✓ "; }
.w10-table { border-collapse: collapse; width: 100%; max-width: 820px; margin: 4px 0 10px; font-size: .95em; }
.w10-table th, .w10-table td { text-align: left; padding: 5px 8px; border-bottom: 1px solid var(--border-light); vertical-align: top; }
.w10-table th { font-weight: 600; color: var(--muted); }
.w10-table tr.bad td { color: var(--err); }
.w10-pending { position: absolute; left: 250px; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 10px 24px; background: var(--acc-l4); border-top: 2px solid var(--acc); color: var(--panel-fg); box-shadow: 0 -2px 8px rgba(0,0,0,.12); }
html.dark .w10-pending { background: #1d2a40; }
.w10-home { max-width: 980px; margin: 0 auto; }
.w10-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; }
.w10-tiles.small { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); max-width: 820px; }
.w10-tile { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border: 2px solid transparent; background: none; text-align: left; color: inherit; }
.w10-tile:hover { border-color: var(--border-light); background: rgba(0,0,0,.03); }
.w10-tile .ico { font-size: 28px; color: var(--acc); flex: none; }
.w10-tile b { display: block; font-weight: 400; font-size: 1.05em; }
.w10-tile small { color: var(--muted); }
.acct-card { display: flex; gap: 18px; align-items: flex-start; padding: 6px 0 10px; }
.acct-avatar { width: 84px; height: 84px; border-radius: 50%; background: var(--acc); color: #fff; display: grid; place-items: center; font-size: 30px; flex: none; }
.acct-name { font-size: 20px; font-weight: 600; }
.sessions-box, .logins-box, .data-box { max-width: 820px; }
.privacy-text { line-height: 1.55; } .privacy-text ul { padding-left: 18px; }
.nh-list { display: flex; flex-direction: column; gap: 4px; max-width: 820px; }
.nh-item { display: flex; gap: 10px; justify-content: space-between; padding: 8px 10px; border: 1px solid var(--border-light); border-left: 3px solid transparent; }
.nh-item.unread { border-left-color: var(--acc); background: var(--acc-l4); }
html.dark .nh-item.unread { background: #1d2a40; }
.nh-meta { font-size: .88em; color: var(--muted); } .nh-title { font-weight: 600; }
.nh-actions { display: flex; gap: 6px; align-items: flex-start; flex: none; }
.recent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; margin-bottom: 8px; }
.recent-item { display: flex; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--border-light); background: none; text-align: left; color: inherit; }
.recent-item img { width: 28px; height: 28px; } .recent-item small { display: block; color: var(--muted); }
.recent-item:hover { border-color: var(--acc); }
.sys-head { display: flex; gap: 16px; align-items: center; } .sys-head img { width: 64px; height: 64px; }
.sys-name { font-size: 22px; font-weight: 600; }
.support-text { white-space: normal; padding: 10px 12px; border-left: 3px solid var(--acc); background: var(--acc-l4); margin-bottom: 10px; }
html.dark .support-text { background: #1d2a40; }

/* Vorschau-Monitor */
.pm { width: 300px; margin: 0 0 8px; }
.pm-screen { position: relative; height: 176px; border: 10px solid #1e1e1e; border-radius: 6px 6px 0 0; overflow: hidden; background-color: #3a6ea5; }
.pm-stand { width: 90px; height: 16px; margin: 0 auto; background: linear-gradient(#3a3a3a, #1e1e1e); clip-path: polygon(15% 0, 85% 0, 100% 100%, 0 100%); }
.pm-icons { position: absolute; left: 8px; top: 8px; display: flex; flex-direction: column; gap: 7px; } .pm-icons i { width: 14px; height: 14px; background: rgba(255,255,255,.85); border-radius: 2px; }
.pm-win { position: absolute; left: 68px; top: 26px; width: 150px; height: 92px; background: var(--acc); padding: 0 2px 2px; border-radius: 4px 4px 0 0; box-shadow: 0 3px 8px rgba(0,0,0,.4); }
.pm-title { height: 13px; background: linear-gradient(var(--acc-l1), var(--acc)); margin: 0 -2px; border-radius: 4px 4px 0 0; }
.pm-body { height: calc(100% - 13px); background: #ece9d8; color: #000; font-size: 10px; padding: 4px; }
.pm.pm-dark .pm-body { background: #2a2d34; color: #eee; }
.pm-taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: 13px; background: linear-gradient(var(--acc-l1), var(--acc)); display: flex; justify-content: space-between; align-items: center; }
.pm-taskbar.top { top: 0; bottom: auto; }
.pm-start { width: 30px; height: 100%; background: linear-gradient(#4fb34f, #2e8a2e); border-radius: 0 6px 6px 0; }
.pm-clock { color: #fff; font-size: 8px; padding: 0 4px; }

/* Hintergrundauswahl */
.wp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin: 8px 0; max-width: 760px; }
.wp-tile { position: relative; padding: 3px; border: 2px solid transparent; cursor: pointer; background: var(--panel); outline: none; }
.wp-tile img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; background: #ccc; }
.wp-tile span { display: block; font-size: .88em; padding-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wp-tile em { color: var(--muted); font-style: normal; }
.wp-tile:hover, .wp-tile:focus-visible { border-color: var(--border); }
.wp-tile.selected { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc); }
.wp-del { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border: 1px solid #fff; border-radius: 50%; background: rgba(160,20,10,.85); color: #fff; font-weight: bold; line-height: 18px; padding: 0; }
.pos-grid { display: grid; grid-template-columns: repeat(3, 22px); gap: 3px; }
.pos-cell { width: 22px; height: 16px; border: 1px solid var(--border); background: var(--panel); padding: 0; }
.pos-cell.on { background: var(--acc); border-color: var(--acc-d1); }
.pos-cell:disabled { opacity: .4; }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; margin-top: 6px; max-width: 760px; }
.theme-card { display: flex; gap: 10px; align-items: center; padding: 6px; border: 2px solid var(--border-light); background: none; text-align: left; color: inherit; }
.theme-card.on { border-color: var(--acc); }
.theme-card small { display: block; color: var(--muted); }
.theme-sw { width: 44px; height: 30px; position: relative; flex: none; border-radius: 3px; }
.theme-sw i { position: absolute; right: 4px; bottom: 4px; width: 16px; height: 12px; border: 1px solid rgba(255,255,255,.6); }
.theme-sw i.light { background: #ece9d8; } .theme-sw i.dark { background: #2a2d34; }
.accent-grid { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin-top: 6px; max-width: 760px; }
.accent { width: 34px; height: 34px; border: 2px solid transparent; padding: 0; }
.accent.on { outline: 2px solid var(--panel-fg); outline-offset: 2px; }
.accent-custom { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; }
.accent-custom input { width: 40px; height: 32px; padding: 0; border: 1px solid var(--border); }
input[type="color"] { cursor: pointer; }

.w10-app.narrow .w10-nav { position: absolute; z-index: 5; top: 0; bottom: 0; left: 0; transform: translateX(-100%); transition: transform .15s; box-shadow: 2px 0 10px rgba(0,0,0,.3); }
.w10-app.narrow.nav-open .w10-nav { transform: none; }
.w10-app.narrow .w10-burger { display: inline-flex; }
.w10-app.narrow .w10-page { padding: 10px 14px 90px; }
.w10-app.narrow .w10-pending { left: 0; padding: 8px 12px; }
.w10-app.narrow .w10-row { flex-wrap: wrap; }
.w10-app.narrow .w10-h1 { font-size: 22px; }
.w10-app.narrow .acct-card { flex-direction: column; }

/* ===================== Fachanwendung (Intrapol-Stil) ===================== */
.win-body.fa-host { overflow: hidden; background: #dfe4ec; }
.fa { position: relative; display: flex; flex-direction: column; height: 100%; font-family: "Segoe UI", var(--font); font-size: calc(var(--fs) + 1px); color: #1d2733; outline: none;
  --fa-head: #173866; --fa-blue: #1d4f91; --fa-bg: #dfe4ec; --fa-card: #fff; --fa-line: #c7cfdb; --fa-side: #fff; --fa-sel: #cfdff2; --fa-muted: #5f6b7a; }
html.dark .fa { color: #dde4ee; --fa-head: #0d1c33; --fa-blue: #4f86d0; --fa-bg: #161c26; --fa-card: #1f2733; --fa-line: #334052; --fa-side: #1a212c; --fa-sel: #24385a; --fa-muted: #9aa7b8; }
html.hc .fa { color: #fff; --fa-head: #000; --fa-blue: #1aebff; --fa-bg: #000; --fa-card: #000; --fa-line: #fff; --fa-side: #000; --fa-sel: #00006b; --fa-muted: #ffff00; }
.fa-head { display: flex; align-items: center; gap: 8px; padding: 6px 12px; color: #fff; background: linear-gradient(180deg, #24508f, var(--fa-head)); flex: none; }
.fa-head img { width: 22px; height: 22px; }
.fa-head b { font-size: 1.05em; } .fa-sub { opacity: .85; font-size: .92em; }
.fa-user { font-size: .95em; } .fa-clock { font-size: .9em; opacity: .9; margin-left: 10px; }
.fa-menu { display: flex; gap: 2px; padding: 2px 6px; background: #f4f6f9; border-bottom: 1px solid var(--fa-line); flex: none; }
html.dark .fa-menu { background: #1d2430; }
.fa-menu button { border: 0; background: none; padding: 3px 9px; color: inherit; }
.fa-menu button:hover { background: var(--fa-sel); }
.fa-toolbar { display: flex; align-items: center; gap: 4px; padding: 4px 8px; background: #e9edf3; border-bottom: 1px solid var(--fa-line); flex: none; flex-wrap: wrap; }
html.dark .fa-toolbar { background: #1a212c; }
.fa-tb { display: inline-flex; align-items: center; gap: 5px; height: 27px; padding: 0 9px; border: 1px solid transparent; border-radius: 3px; background: none; color: inherit; }
.fa-tb:hover { background: #fff; border-color: var(--fa-line); }
html.dark .fa-tb:hover { background: #263142; }
.fa-tb.primary { background: linear-gradient(#2c62ad, var(--fa-blue)); color: #fff; font-weight: 600; border-color: #163d74; }
.fa-quick { display: flex; align-items: center; gap: 6px; border: 1px solid var(--fa-line); background: var(--fa-card); padding: 0 8px; height: 27px; border-radius: 3px; min-width: 0; }
.fa-quick input { border: 0 !important; outline: none; background: transparent; width: 230px; max-width: 40vw; min-height: 0; padding: 0; color: inherit; }
.fa-main { flex: 1; min-height: 0; display: flex; }
.fa-side { width: 230px; flex: none; overflow: auto; background: var(--fa-side); border-right: 1px solid var(--fa-line); padding: 8px 0 14px; }
.fa.noside .fa-side { display: none; }
.fa-sec { padding: 10px 14px 4px; font-size: .78em; letter-spacing: .06em; text-transform: uppercase; color: var(--fa-muted); }
.fa-nav { display: flex; align-items: center; gap: 10px; width: 100%; padding: 5px 16px; border: 0; background: none; text-align: left; color: inherit; }
.fa-nav .ico { color: var(--fa-blue); }
.fa-nav:hover { background: rgba(29,79,145,.08); }
.fa-nav.on { background: var(--fa-sel); font-weight: 600; box-shadow: inset 3px 0 0 var(--fa-blue); }
.fa-content { flex: 1; min-width: 0; overflow: auto; background: var(--fa-bg); outline: none; }
.fa-page { padding: 16px 18px 24px; max-width: 1500px; }
.fa-loading { padding: 30px; color: var(--fa-muted); }
.fa-h1 { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 600; margin: 4px 0 14px; }
.fa-h1 .ico { color: var(--fa-blue); }
.fa-pagehead { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.fa-btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 1px solid var(--fa-line); border-radius: 3px; background: var(--fa-card); color: inherit; }
.fa-btn:hover { border-color: var(--fa-blue); }
.fa-btn.primary { background: linear-gradient(#2c62ad, var(--fa-blue)); color: #fff; border-color: #163d74; }
.fa-btn.danger { color: #b3261e; border-color: #e3a49d; }
html.dark .fa-btn.danger { color: #ff8f80; border-color: #6d2a22; }
.fa-btn.big { height: 46px; font-size: 1.2em; padding: 0 20px; border-radius: 0 4px 4px 0; }
.fa-card { background: var(--fa-card); border: 1px solid var(--fa-line); border-radius: 4px; margin-bottom: 16px; overflow: hidden; }
.fa-card-h { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 2px solid var(--fa-blue); font-size: 1.05em; color: var(--fa-blue); font-weight: 500; }
html.dark .fa-card-h { color: #9cc0f2; }
.fa-card-f { padding: 8px 16px; border-top: 1px solid var(--fa-line); color: var(--fa-muted); font-size: .9em; background: rgba(0,0,0,.02); }
.fa-hero-head { display: flex; justify-content: space-between; gap: 10px; padding: 14px 18px 10px; border-bottom: 2px solid var(--fa-blue); flex-wrap: wrap; }
.fa-hero-k { color: var(--fa-blue); display: flex; gap: 6px; align-items: center; }
html.dark .fa-hero-k { color: #9cc0f2; }
.fa-hero h1 { margin: 6px 0 0; font-weight: 400; font-size: 22px; }
.fa-hero-r { text-align: right; color: var(--fa-muted); font-size: .92em; }
.fa-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
.fa-tile { padding: 14px 16px; border-right: 1px solid var(--fa-line); }
.fa-tile:last-child { border-right: 0; }
.fa-tile .ico { color: #5b8fd6; font-size: 16px; }
.fa-tile-n { font-size: 26px; margin: 6px 0 2px; }
.fa-tile-l { color: var(--fa-muted); font-size: .92em; }
.fa-sectitle { margin: 22px 0 10px; padding-left: 10px; border-left: 3px solid var(--fa-blue); letter-spacing: .08em; text-transform: uppercase; font-size: .85em; color: var(--fa-muted); }
.fa-progs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.fa-prog { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 12px 16px; min-height: 80px; background: var(--fa-card); border: 1px solid var(--fa-line); border-radius: 4px; text-align: left; color: inherit; }
.fa-prog .ico { font-size: 18px; color: var(--fa-blue); }
.fa-prog small { color: var(--fa-muted); }
.fa-prog:hover { border-color: var(--fa-blue); box-shadow: 0 2px 6px rgba(29,79,145,.15); }
.fa-note { color: var(--fa-muted); display: flex; gap: 6px; align-items: center; margin-top: 18px; }
.fa-mdt { display: flex; margin-bottom: 18px; }
.fa-mdt input { flex: 1; height: 46px; font-size: 1.35em; border: 1px solid var(--fa-line); padding: 0 14px; border-radius: 4px 0 0 4px; }
.fa-filter { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.fa-filter input { flex: 1; min-width: 180px; height: 34px; font-size: 1.05em; border-color: var(--fa-line); }
.fa-filter select { height: 34px; border-color: var(--fa-line); }
.fa-filter .fa-btn { height: 34px; }
.fa-tablewrap { overflow: auto; }
.fa-table { width: 100%; border-collapse: collapse; }
.fa-table th { text-align: left; padding: 9px 10px; font-size: .78em; letter-spacing: .07em; text-transform: uppercase; color: var(--fa-muted); font-weight: 600; background: rgba(0,0,0,.02); border-bottom: 1px solid var(--fa-line); white-space: nowrap; }
.fa-table td { padding: 8px 10px; border-bottom: 1px solid var(--fa-line); vertical-align: top; }
.fa-table tbody tr[data-open] { cursor: pointer; }
.fa-table tbody tr[data-open]:hover, .fa-table tbody tr[data-open]:focus { background: var(--fa-sel); outline: none; }
.fa-empty { text-align: center; padding: 26px 10px !important; color: var(--fa-muted); }
.fa-st { display: inline-block; padding: 1px 8px; border-radius: 9px; font-size: .85em; font-weight: 600; white-space: nowrap; }
.st-open { background: #e2e8f0; color: #33415c; } .st-progress { background: #ffe9a8; color: #6b4e00; } .st-done { background: #d3f0da; color: #1d5a2a; }
.st-alert { background: #fbd3cd; color: #8a1d10; } .st-muted { background: #ececec; color: #666; }
html.dark .st-open { background: #2c3a52; color: #cfe0ff; } html.dark .st-progress { background: #4d3e12; color: #f2df9f; } html.dark .st-done { background: #1f4a2b; color: #b9ecc4; }
html.dark .st-alert { background: #5a2019; color: #ffc2b8; } html.dark .st-muted { background: #333; color: #aaa; }
.fa-form .fa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px 16px; padding: 16px; }
.fa-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fa-field.wide { grid-column: 1 / -1; }
.fa-field label { font-size: .92em; color: var(--fa-muted); }
.fa-field input, .fa-field select, .fa-field textarea { height: 32px; border-color: var(--fa-line); width: 100%; }
.fa-field textarea { height: auto; }
.req { color: #c0392b; }
.fa-formmsg { padding: 0 16px; }
.fa-actions { display: flex; gap: 8px; padding: 0 16px 16px; flex-wrap: wrap; align-items: center; }
.fa-stattiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.fa-stat { background: var(--fa-card); border: 1px solid var(--fa-line); border-radius: 4px; padding: 14px; text-align: center; }
.fa-stat b { display: block; font-size: 26px; } .fa-stat span { color: var(--fa-muted); font-size: .92em; }
.fa-two, .fa-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.fa-money { text-align: center; padding-bottom: 14px; }
.fa-big { font-size: 34px; font-weight: 700; color: var(--fa-blue); margin: 14px 0 4px; }
.fa-chart { display: flex; align-items: flex-end; gap: 4px; height: 180px; padding: 14px 14px 30px; }
.fa-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.fa-col i { display: block; width: 100%; min-height: 1px; background: var(--fa-blue); border-radius: 2px 2px 0 0; }
.fa-col span { position: absolute; bottom: -20px; font-size: 10px; color: var(--fa-muted); white-space: nowrap; }
.fa-bars { padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.fa-barrow { display: grid; grid-template-columns: 120px 1fr 40px; gap: 10px; align-items: center; }
.fa-bar { height: 12px; background: rgba(0,0,0,.06); border-radius: 6px; overflow: hidden; }
.fa-bar i { display: block; height: 100%; background: var(--fa-blue); }
.fa-status { display: flex; align-items: center; gap: 0; background: #eef1f5; border-top: 1px solid var(--fa-line); font-size: .9em; flex: none; flex-wrap: wrap; }
html.dark .fa-status { background: #141a23; }
.fa-status > span { padding: 4px 12px; border-right: 1px solid var(--fa-line); display: inline-flex; gap: 6px; align-items: center; }
.fa-status .fa-sp { border: 0; }
.fa-status code { font-size: .95em; }
.fa-dropdown { position: absolute; z-index: 20; min-width: 220px; padding: 2px; background: var(--fa-card); border: 1px solid var(--fa-line); box-shadow: 2px 3px 8px rgba(0,0,0,.25); }
.fa-dropdown .ctx-item:hover { background: var(--fa-blue); color: #fff; }
html.compact .fa-side { position: absolute; z-index: 6; top: 0; bottom: 0; box-shadow: 2px 0 10px rgba(0,0,0,.25); }
html.compact .fa-main { position: relative; }
html.compact .fa-sub, html.compact .fa-clock, html.compact .fa-menu { display: none; }
@media (max-width: 700px) { .fa-status > span:nth-child(n+3) { display: none; } }
.print-body { overflow: visible; background: #fff; }
.fa.print { height: auto; display: block; color: #000; }
.print-head { font-size: 11px; color: #555; border-bottom: 1px solid #999; padding-bottom: 4px; margin-bottom: 10px; }
.fa.print .fa-btn, .fa.print .fa-actions, .fa.print .fa-filter, .fa.print .fa-mdt { display: none !important; }

/* ===================== Systemverwaltung ===================== */
.adm { display: flex; height: 100%; background: var(--win-bg); }
.adm-nav { width: 200px; flex: none; padding: 8px 0; background: linear-gradient(180deg, #7ba2e7, #6375d6); overflow: auto; }
html.dark .adm-nav { background: linear-gradient(180deg, #24324a, #1b2333); }
html.hc .adm-nav { background: #000; border-right: 1px solid #fff; }
.adm-tab { display: flex; gap: 8px; align-items: center; width: calc(100% - 16px); margin: 2px 8px; padding: 6px 10px; border: 0; border-radius: 3px; background: rgba(255,255,255,.85); color: #0c2f75; text-align: left; font-weight: bold; }
.adm-tab:hover { background: #fff; }
.adm-tab.on { background: #fff; box-shadow: inset 3px 0 0 var(--acc); color: #000; }
html.dark .adm-tab { background: rgba(255,255,255,.07); color: #cfe0ff; } html.dark .adm-tab.on { background: #2f4161; color: #fff; }
.adm-main { flex: 1; min-width: 0; overflow: auto; outline: none; }
.adm-pad { padding: 14px 16px 24px; }
.adm-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.adm-head h2 { margin: 0; font-size: 1.3em; display: flex; gap: 8px; align-items: center; color: #0c2f75; }
html.dark .adm-head h2 { color: #cfe0ff; } html.hc .adm-head h2 { color: #fff; }
.adm-form-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.adm-form-row label { display: flex; flex-direction: column; gap: 2px; font-size: .92em; }
.adm-form-row input, .adm-form-row select { width: 150px; }
.adm-filter { margin: 6px 0 8px; width: 280px; }
.adm-tablewrap { overflow: auto; }
.adm-table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--border); }
.adm-table th { text-align: left; padding: 4px 8px; font-weight: normal; background: linear-gradient(#fff, #ece9d8); border-bottom: 1px solid var(--border); border-right: 1px solid var(--border-light); white-space: nowrap; }
html.dark .adm-table th { background: linear-gradient(#353a43, #2a2e35); }
html.hc .adm-table th { background: #000; }
.adm-table td { padding: 4px 8px; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.adm-table tr.bad td { color: var(--err); }
.adm-table tr.unread td { font-weight: bold; }
.adm-table tr.sel td { background: var(--sel-bg); color: var(--sel-fg); }
.adm-table tbody tr[data-id] { cursor: pointer; }
.adm-table tbody tr[data-id]:hover td { background: var(--hover-bg); }
.adm-table tbody tr.sel:hover td { background: var(--sel-bg); }
.adm-actions { display: flex; gap: 4px; flex-wrap: wrap; }
.avatar-s { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--acc-l3); color: var(--acc-d2); font-size: 10px; font-weight: bold; margin-right: 4px; }
.adm-role { background: var(--panel); border: 1px solid var(--border-light); border-radius: 4px; padding: 10px 12px; margin-bottom: 10px; }
.adm-role-h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.perm-groups { max-height: 46vh; overflow: auto; margin-top: 8px; }
.perm-groups label.perm { display: flex !important; margin: 3px 0 !important; }
.adm-wps { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 18px; }
.adm-wp { background: var(--panel); border: 1px solid var(--border-light); border-radius: 4px; overflow: hidden; }
.adm-wp.off { opacity: .6; }
.adm-wp img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; background: #999; }
.adm-wp-b { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; padding: 8px; }
.adm-wp-b .wp-name { width: 100%; }
.adm-subtabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.adm-subtabs button { border: 1px solid var(--border); border-bottom: 0; background: var(--win-bg); padding: 4px 12px; border-radius: 3px 3px 0 0; color: inherit; }
.adm-subtabs button.on { background: var(--panel); font-weight: bold; position: relative; top: 1px; }
.adm-sys label { display: block; margin: 8px 0 2px; }
.adm-sys input[type="number"] { width: 100px; display: block; }
.adm-sys textarea { width: 100%; max-width: 520px; display: block; }
html.compact .adm { flex-direction: column; } html.compact .adm-nav { width: auto; display: flex; overflow-x: auto; padding: 4px; }
html.compact .adm-tab { width: auto; flex: none; margin: 2px; }
html.compact .adm-tab span { white-space: nowrap; }

/* ===================== Notizen ===================== */
.notes { display: flex; flex-direction: column; height: 100%; }
.notes-search { width: 200px; }
.notes-main { flex: 1; min-height: 0; display: flex; }
.notes-list { width: 240px; flex: none; margin: 0; padding: 4px; list-style: none; overflow: auto; background: var(--panel); border-right: 1px solid var(--border); }
.note-item { padding: 6px 8px; margin-bottom: 4px; border-left: 4px solid; cursor: pointer; background: var(--panel-2); }
.note-item b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.note-item small { display: block; color: var(--muted); font-size: .85em; }
.note-item span { display: block; font-size: .9em; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.note-item.on { outline: 2px solid var(--acc); }
.c-gelb { border-color: #e9c53a; } .c-blau { border-color: #4a8fe7; } .c-gruen { border-color: #4caf50; } .c-rosa { border-color: #e57399; } .c-grau { border-color: #9e9e9e; }
.notes-editor { flex: 1; min-width: 0; display: flex; }
.notes-empty { margin: auto; text-align: center; color: var(--muted); }
.notes-edit { flex: 1; display: flex; flex-direction: column; border-top: 6px solid; }
.notes-edit.c-gelb { background: #fff9c4; } .notes-edit.c-blau { background: #e3f0ff; } .notes-edit.c-gruen { background: #e5f5e6; } .notes-edit.c-rosa { background: #fde4ec; } .notes-edit.c-grau { background: #f0f0f0; }
html.dark .notes-edit { background: #26292f !important; }
.notes-head { display: flex; gap: 6px; padding: 8px; }
.notes-head .n-title { flex: 1; font-size: 1.15em; font-weight: bold; background: transparent; border-color: transparent; border-bottom: 1px solid rgba(0,0,0,.2); }
.n-body { flex: 1; resize: none; border: 0 !important; background: transparent; padding: 8px 12px; font-size: 1.05em; line-height: 1.55; outline: none !important; color: inherit; }
.notes-state { color: var(--muted); }
html.compact .notes-main { flex-direction: column; } html.compact .notes-list { width: auto; max-height: 34%; border-right: 0; border-bottom: 1px solid var(--border); }

/* ===================== Rechner ===================== */
.calc { display: flex; flex-direction: column; height: 100%; padding: 8px; gap: 8px; outline: none; background: var(--win-bg); }
.calc-disp { background: var(--input-bg); border: 1px solid var(--input-border); padding: 6px 8px; text-align: right; box-shadow: inset 1px 1px 2px rgba(0,0,0,.15); }
.calc-hist { min-height: 16px; font-size: .9em; color: var(--muted); }
.calc-cur { font-size: 26px; font-family: Consolas, "Lucida Console", monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calc-keys { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 5px; }
.calc-keys button { border: 1px solid #7c8ea7; border-radius: 3px; background: linear-gradient(#fff, #e3e9f3); font-size: 15px; color: #0b2b8a; min-height: 30px; }
.calc-keys button:hover { box-shadow: inset 0 0 0 2px #f8b636; }
.calc-keys button:active { background: linear-gradient(#d9e1ef, #fff); }
.calc-keys .fn { color: #a0290c; } .calc-keys .red { color: #c00; font-weight: bold; }
.calc-keys .op { color: #b00; font-weight: bold; }
.calc-keys .eq { grid-column: 1 / -1; background: linear-gradient(#e8f2ff, #c4d8f6); font-weight: bold; color: #b00; }
html.dark .calc-keys button { background: linear-gradient(#3e434c, #30343b); border-color: #555; color: #cfe0ff; }
html.dark .calc-keys .op, html.dark .calc-keys .eq, html.dark .calc-keys .fn { color: #ffb3a0; }
html.hc .calc-keys button { background: #000; color: #fff; border-color: #fff; }

/* ===================== Kalender ===================== */
.cal { display: flex; flex-direction: column; height: 100%; }
.cal-title { min-width: 150px; text-align: center; font-size: 1.1em; }
.cal-legend { display: flex; gap: 6px; align-items: center; font-size: .9em; color: var(--muted); }
.cal-legend .ev { display: inline-block; width: 12px; height: 10px; padding: 0; }
.cal-main { flex: 1; min-height: 0; display: flex; }
.cal-grid { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: auto repeat(6, minmax(0, 1fr)); background: var(--border-light); gap: 1px; border-right: 1px solid var(--border); }
.cal-wd { background: var(--win-bg); text-align: center; padding: 3px; font-weight: bold; }
.cal-cell { background: var(--panel); border: 0; padding: 2px 3px; text-align: left; display: flex; flex-direction: column; gap: 1px; overflow: hidden; color: inherit; min-height: 0; }
.cal-cell.other { background: var(--panel-2); color: var(--muted); }
.cal-cell.today .cal-n { background: var(--acc); color: #fff; border-radius: 9px; padding: 0 5px; }
.cal-cell.sel { box-shadow: inset 0 0 0 2px var(--acc); }
.cal-cell:hover { background: var(--hover-bg); }
.cal-n { font-weight: bold; align-self: flex-start; }
.ev { display: block; font-size: .82em; padding: 0 3px; border-radius: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev.personal { background: #d6e6ff; color: #0c3a87; border-left: 3px solid #2f6fe0; }
.ev.official { background: #ffe1cc; color: #7a3000; border-left: 3px solid #e2681b; }
.ev.more { color: var(--muted); }
html.dark .ev.personal { background: #1e3459; color: #cfe0ff; } html.dark .ev.official { background: #4a2a12; color: #ffd2b0; }
.cal-day { width: 290px; flex: none; overflow: auto; padding: 10px; background: var(--win-bg); }
.cal-day h3 { margin: 0 0 10px; font-size: 1.05em; }
.cal-ev { background: var(--panel); border: 1px solid var(--border-light); border-left: 4px solid #2f6fe0; padding: 6px 8px; margin-bottom: 8px; }
.cal-ev.official { border-left-color: #e2681b; }
.cal-ev-h { display: flex; justify-content: space-between; gap: 6px; }
.cal-desc { margin: 4px 0; white-space: pre-wrap; }
.cal-ev-a { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
html.compact .cal-main { flex-direction: column; } html.compact .cal-day { width: auto; max-height: 38%; }
html.compact .cal-legend { display: none; }
html.compact .cal-cell .ev { font-size: 0; height: 5px; padding: 0; }

/* ===================== Papierkorb ===================== */
.trash { display: flex; flex-direction: column; height: 100%; }
.trash-list { flex: 1; overflow: auto; background: var(--panel); }
.trash-empty { text-align: center; padding: 40px; color: var(--muted); } .trash-empty img { width: 64px; opacity: .8; }

/* ===================== Hilfe ===================== */
.help { display: flex; height: 100%; }
.help-nav { width: 200px; flex: none; display: flex; flex-direction: column; padding: 8px; gap: 2px; background: linear-gradient(180deg, #6a8ee0, #3c64c8); }
html.dark .help-nav { background: linear-gradient(180deg, #24324a, #1b2333); }
html.hc .help-nav { background: #000; border-right: 1px solid #fff; }
.help-nav button { text-align: left; border: 0; padding: 7px 10px; border-radius: 3px; background: rgba(255,255,255,.12); color: #fff; font-weight: bold; }
.help-nav button.on, .help-nav button:hover { background: #fff; color: #0c2f75; }
.help-body { flex: 1; overflow: auto; padding: 14px 22px 28px; background: var(--panel); line-height: 1.6; outline: none; }
.help-body h2 { margin-top: 0; color: #0c2f75; } html.dark .help-body h2 { color: #cfe0ff; } html.hc .help-body h2 { color: #fff; }
.help-body h3 { margin-bottom: 4px; }
html.compact .help { flex-direction: column; } html.compact .help-nav { width: auto; flex-direction: row; overflow-x: auto; }
html.compact .help-nav button { flex: none; }

/* ===================== Nachrichten ===================== */
.msg { display: flex; flex-direction: column; height: 100%; }
.msg-main { flex: 1; min-height: 0; display: flex; }
.msg-folders { width: 160px; flex: none; display: flex; flex-direction: column; padding: 6px; gap: 2px; background: var(--panel); border-right: 1px solid var(--border); }
.msg-folders button { text-align: left; border: 0; background: none; padding: 5px 8px; color: inherit; }
.msg-folders button.on { background: var(--sel-bg); color: var(--sel-fg); }
.msg-right { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.msg-list { height: 42%; min-height: 100px; overflow: auto; border-bottom: 3px double var(--border); }
.msg-view { flex: 1; overflow: auto; padding: 10px 14px; background: var(--panel); }
.msg-head { border-bottom: 1px solid var(--border-light); padding-bottom: 6px; margin-bottom: 8px; }
.msg-head h3 { margin: 0 0 4px; }
.msg-body { white-space: normal; line-height: 1.55; }
.m-rcpt { max-height: 140px; overflow: auto; border: 1px solid var(--input-border); background: var(--input-bg); padding: 4px 6px; display: flex; flex-direction: column; margin-top: 4px; }
.m-rcpt label { margin: 1px 0 !important; }
html.compact .msg-main { flex-direction: column; } html.compact .msg-folders { width: auto; flex-direction: row; border-right: 0; }

/* ===================== Behördenmitteilungen ===================== */
.ann { display: flex; flex-direction: column; height: 100%; }
.ann-list { flex: 1; overflow: auto; padding: 10px; }
.ann-item { background: var(--panel); border: 1px solid var(--border-light); border-left: 5px solid var(--acc); margin-bottom: 10px; }
.ann-item.prio-wichtig { border-left-color: #e2a21b; } .ann-item.prio-dringend { border-left-color: #d9372a; }
.ann-item.focus { box-shadow: 0 0 0 2px var(--acc); }
.ann-item header { display: flex; gap: 8px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--border-light); flex-wrap: wrap; }
.ann-item header b { font-size: 1.08em; }
.ann-body { padding: 10px 12px; line-height: 1.55; }
.ann-item footer { display: flex; gap: 6px; padding: 0 12px 10px; flex-wrap: wrap; }
.ann-item footer:empty { display: none; }
.ann-empty { text-align: center; padding: 30px; }
