/* edesk.cloud – Stylesheet v2 (mobile-first) */
:root{
  --prim:#1a3a6b; --hell:#e8f0fb; --sek:#27ae60;
  --bg:#f0f2f5; --card:#fff; --line:#eee; --text:#1a1a1a; --muted:#888;
  --radius:12px;
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:16px}
body{font-family:'Segoe UI',system-ui,-apple-system,sans-serif;background:var(--bg);color:var(--text);line-height:1.5;min-height:100vh}
a{color:inherit;text-decoration:none}
input,select,textarea,button{font-family:inherit;font-size:14px}

/* ---- TOPBAR ---- */
.topbar{background:var(--prim);color:#fff;height:54px;display:flex;align-items:center;padding:0 14px;gap:10px;position:sticky;top:0;z-index:200}
.sidebar-toggle{background:none;border:none;color:rgba(255,255,255,.85);font-size:22px;cursor:pointer;padding:4px;display:flex}
.topbar-brand{font-size:19px;font-weight:800;letter-spacing:-.5px;color:#fff;display:flex;align-items:baseline;gap:1px}
.tb-brand-dot{opacity:.55}
.tb-brand-cloud{font-size:13px;font-weight:400;opacity:.75}
.tb-badge{font-size:11px;font-weight:700;color:rgba(255,255,255,.9);background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.25);
  padding:3px 9px;border-radius:8px;white-space:nowrap;display:inline-flex;align-items:center;gap:5px;line-height:1;cursor:pointer}
.tb-badge:hover{background:rgba(255,255,255,.25);color:#fff}
.topbar-spacer{flex:1}
.topbar-right{display:flex;align-items:center;gap:8px}
.tb-icon-btn{background:rgba(255,255,255,.12);border:none;color:#fff;width:34px;height:34px;border-radius:8px;cursor:pointer;
  display:flex;align-items:center;justify-content:center;font-size:18px}
.tb-icon-btn:hover{background:rgba(255,255,255,.22)}
.topbar-avatar{width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;color:#fff;flex-shrink:0}
.topbar-netz{display:none}

/* ---- LAYOUT ---- */
.app{display:flex;min-height:calc(100vh - 54px);position:relative}

/* ---- SIDEBAR (mobile: off-canvas) ---- */
.scrim{display:none;position:fixed;inset:54px 0 0 0;background:rgba(0,0,0,.4);z-index:140}
.scrim.open{display:block}
.sidebar{position:fixed;left:-250px;top:54px;bottom:0;width:240px;background:#fff;border-right:1px solid #ebebeb;
  display:flex;flex-direction:column;z-index:150;transition:left .22s ease}
.sidebar.open{left:0;box-shadow:4px 0 24px rgba(0,0,0,.14)}
.sidebar-inner{flex:1;padding:14px 0 8px;overflow-y:auto}
.nav-group{padding:0 10px;margin-bottom:12px}
.nav-group-label{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:#c0c0c0;padding:0 8px;margin-bottom:5px}
/* Text-only Navigation (edesk-Konvention: keine Icons in der Sidebar) */
.nav-item{display:block;padding:10px 12px;border-radius:8px;font-size:14px;color:#4a4a4a;cursor:pointer;transition:all .15s;position:relative}
.nav-item:hover{background:var(--hell);color:var(--prim)}
.nav-item.active{background:var(--hell);color:var(--prim);font-weight:600}
.nav-item.active::before{content:'';position:absolute;left:0;top:6px;bottom:6px;width:3px;background:var(--prim);border-radius:0 3px 3px 0}
.sidebar-footer{border-top:1px solid #f0f0f0;padding:10px 12px;display:flex;align-items:center;gap:9px}
.sidebar-avatar{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;color:#fff;flex-shrink:0}
.sidebar-user-name{font-size:12px;font-weight:600;color:#222}
.sidebar-user-rolle{font-size:11px;color:#999}
.btn-logout{margin-left:auto;background:none;border:none;color:#e74c3c;cursor:pointer;font-size:18px;padding:6px;display:flex}

/* ---- MAIN ---- */
.main{flex:1;padding:16px 14px 40px;min-width:0;width:100%}

/* ---- PAGE HEADER ---- */
.page-header{margin-bottom:16px}
.page-header h1{font-size:20px;font-weight:700;color:#111}
.page-header p{font-size:13px;color:var(--muted);margin-top:3px}

/* ---- STATS ---- */
.stats{display:grid;grid-template-columns:repeat(2,1fr);gap:11px;margin-bottom:20px}
.stat{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--line);border-radius:11px;padding:12px 13px;text-decoration:none}
.stat:active{transform:scale(.99)}
.stat-ico{width:36px;height:36px;border-radius:9px;display:flex;align-items:center;justify-content:center;font-size:18px;flex-shrink:0;background:var(--hell);color:var(--prim)}
.stat-val{font-size:22px;font-weight:800;line-height:1;color:var(--prim)}
.stat-label{font-size:11px;color:var(--muted);margin-top:3px}
.stat.warn .stat-ico{background:#fdeaea;color:#e74c3c}
.stat.warn .stat-val{color:#e74c3c}

/* ---- CARDS / SECTIONS ---- */
.section{margin-bottom:22px}
.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;gap:8px}
.section-head h2{font-size:15px;font-weight:600;color:#222}
.section-head .muted{font-size:11px;font-weight:600;color:var(--sek)}
.list{background:#fff;border-radius:var(--radius);border:1px solid var(--line);overflow:hidden}
.row{display:flex;align-items:center;gap:11px;padding:11px 13px;border-bottom:1px solid #f5f5f5;text-decoration:none;color:inherit}
.row:last-child{border-bottom:none}
.row:active{background:#fafafa}
.row-date{text-align:center;width:42px;flex-shrink:0}
.row-date .m{font-size:10px;color:#aaa;text-transform:uppercase}
.row-date .d{font-size:17px;font-weight:700;color:var(--prim);line-height:1}
.row-main{flex:1;min-width:0}
.row-title{font-weight:600;color:#111;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.row-sub{font-size:11px;color:#aaa;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.avatar{width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:10px;font-weight:700;flex-shrink:0;position:relative}
.dot{position:absolute;right:-1px;bottom:-1px;width:11px;height:11px;border-radius:50%;border:2px solid #fff}
.dot.on{background:var(--sek)} .dot.off{background:#ccc}

/* ---- BADGES / PILLS ---- */
.badge{display:inline-block;font-size:11px;font-weight:700;padding:3px 10px;border-radius:20px}
.rolle-pill{font-size:9px;font-weight:700;padding:2px 6px;border-radius:20px;text-transform:uppercase}
.rolle-superadmin{background:#fdecea;color:#c0392b}
.rolle-monteur{background:#f5f0e8;color:#6b4a1a}
.rolle-innendienst{background:#e8f8f0;color:#1a6b3a}
.rolle-gruppenleiter,.rolle-msb_admin{background:var(--hell);color:var(--prim)}
.status-pill{font-size:11px;font-weight:700;padding:4px 10px;border-radius:20px}
.status-offen{background:#fdecea;color:#c0392b}
.status-in_bearbeitung{background:#fdf3e8;color:#8a5500}
.status-geloest{background:#e8f8f0;color:#1a6b3a}
.status-geschlossen{background:#f0f0f0;color:#666}
.prio-hoch{background:#fdf3e8;color:#8a5500}
.prio-kritisch{background:#fdecea;color:#c0392b}
.prio-normal{background:#e8f4fd;color:#1a5a8b}
.prio-niedrig{background:#f0f0f0;color:#888}

/* ---- BUTTONS ---- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:11px 18px;border-radius:9px;font-size:14px;font-weight:600;cursor:pointer;border:none;width:100%;transition:opacity .2s}
.btn-primary{background:var(--prim);color:#fff}
.btn-primary:hover{opacity:.9}
.btn-outline{background:#fff;color:#555;border:1.5px solid #ddd}
.btn-sm{padding:8px 14px;font-size:13px;width:auto}

/* ---- FORMS ---- */
.field{margin-bottom:16px}
.field label{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:700;color:#666;margin-bottom:7px;text-transform:uppercase;letter-spacing:.4px}
.field input,.field select{width:100%;padding:12px 14px;border:1.5px solid #ddd;border-radius:9px;font-size:15px;outline:none;transition:border-color .2s;background:#fff;color:#111}
.field input:focus,.field select:focus{border-color:var(--prim)}

/* ---- ALERTS ---- */
.alert{display:flex;align-items:center;gap:10px;padding:12px 16px;border-radius:9px;font-size:13px;margin-bottom:16px;border:1px solid transparent}
.alert-err{background:#fdecea;color:#c0392b;border-color:#f5b8b0}
.alert-ok{background:#e8f8f0;color:#1a6b3a;border-color:#b8e8cc}
.empty{padding:36px 20px;text-align:center;color:#bbb;font-size:13px}

/* ---- LOGIN ---- */
.login-wrap{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;background:var(--prim);padding:20px}
.login-logo{color:#fff;font-size:30px;font-weight:800;letter-spacing:-1px;margin-bottom:18px}
.login-logo .sub{font-size:19px;font-weight:300;opacity:.7}
.login-card{background:#fff;border-radius:14px;padding:30px 26px 24px;width:100%;max-width:400px;box-shadow:0 24px 60px rgba(0,0,0,.25)}
.pw-wrap{position:relative}
.pw-wrap input{padding-right:44px}
.pw-toggle{position:absolute;right:10px;top:50%;transform:translateY(-50%);background:none;border:none;color:#bbb;cursor:pointer;font-size:19px;display:flex;padding:4px}
.remember{display:flex;align-items:center;gap:8px;font-size:13px;color:#666;cursor:pointer}
.remember input{width:16px;height:16px;accent-color:var(--prim)}
.login-foot{margin-top:18px;text-align:center;font-size:12px;color:rgba(255,255,255,.4)}

/* ---- CHANGELOG / STATUS ---- */
.cl-version{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:16px 18px;margin-bottom:14px}
.cl-head{display:flex;align-items:baseline;gap:10px;margin-bottom:12px;flex-wrap:wrap}
.cl-tag{font-size:15px;font-weight:800;color:var(--prim)}
.cl-datum{font-size:12px;color:#aaa}
.cl-titel{font-size:13px;color:#555;font-weight:600}
.cl-item{display:flex;align-items:flex-start;gap:10px;padding:7px 0;font-size:13px;color:#333}
.cl-typ{font-size:10px;font-weight:700;text-transform:uppercase;padding:2px 8px;border-radius:6px;flex-shrink:0;margin-top:1px}
.typ-neu{background:#e8f8f0;color:#1a6b3a}
.typ-fix{background:#fdf3e8;color:#8a5500}
.typ-aendern{background:var(--hell);color:var(--prim)}
.st-grid{display:grid;grid-template-columns:1fr;gap:11px;margin-bottom:20px}
.st-tile{background:#fff;border:1px solid var(--line);border-radius:11px;padding:14px 16px;display:flex;align-items:center;justify-content:space-between}
.st-tile .k{font-size:12px;color:var(--muted)}
.st-tile .v{font-size:15px;font-weight:700;color:#111}
.st-dot{width:9px;height:9px;border-radius:50%;display:inline-block;margin-right:7px}
.st-ok{background:var(--sek)} .st-bad{background:#e74c3c}

/* ---- DESKTOP ---- */
@media(min-width:900px){
  .sidebar-toggle{display:none}
  .scrim{display:none!important}
  .topbar{padding:0 20px;gap:14px}
  .topbar-netz{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:#fff;background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.25);padding:5px 12px;border-radius:8px}
  .topbar-netz .nd{width:7px;height:7px;border-radius:50%;background:var(--sek)}
  .app{padding-left:240px}
  .sidebar{position:fixed;left:0;box-shadow:none}
  .main{padding:24px 28px 48px}
  .stats{grid-template-columns:repeat(4,1fr);gap:14px}
  .dash-grid{display:grid;grid-template-columns:1fr 300px;gap:22px;align-items:start}
  .st-grid{grid-template-columns:repeat(2,1fr)}
  .btn{width:auto}
  .login-card{padding:36px 40px 30px}
}

/* ================= v1.0.2 – Topbar-Bausteine, Glocke, Menü, Modal, Log ================= */
.tb-version{gap:5px}
.tb-netz{font-weight:700}
.topbar-right{gap:7px}
/* Auf schmalen Screens Changelog/Status-Badges ausblenden (per Menü erreichbar) */
@media(max-width:640px){ .topbar-right > a.tb-badge{display:none} }

/* Avatar-Button + Status-Punkt */
.topbar-avatar{border:none;cursor:pointer;position:relative;padding:0}
.ava-dot{position:absolute;right:-1px;bottom:-1px;width:11px;height:11px;border-radius:50%;border:2px solid var(--prim)}
.sidebar-avatar .ava-dot{border-color:#fff}

/* Glocke */
.notif-wrap,.user-wrap{position:relative}
.notif-count{position:absolute;top:-4px;right:-4px;background:#e74c3c;color:#fff;min-width:16px;height:16px;border-radius:8px;font-size:9px;font-weight:700;display:flex;align-items:center;justify-content:center;padding:0 3px;border:1.5px solid var(--prim)}
.notif-dropdown{position:absolute;top:44px;right:0;width:min(340px,calc(100vw - 24px));background:#fff;border:1px solid #e8e8e8;border-radius:14px;box-shadow:0 16px 48px rgba(0,0,0,.18);z-index:500;display:none;overflow:hidden}
.notif-dropdown.open{display:block}
.notif-head{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;border-bottom:1px solid #f0f0f0}
.notif-head span{font-size:13px;font-weight:700;color:#222}
.notif-alle{font-size:12px;color:var(--prim);background:none;border:none;cursor:pointer;font-weight:600;font-family:inherit}
#notifListe{max-height:380px;overflow-y:auto}
.notif-item{display:flex;align-items:flex-start;gap:11px;padding:12px 16px;border-bottom:1px solid #f8f8f8;cursor:pointer;position:relative}
.notif-item:last-child{border-bottom:none}
.notif-item:hover{background:#fafafa}
.notif-ungelesen{background:#f0f5ff}
.notif-ungelesen:hover{background:#e8f0fb}
.notif-ico{width:34px;height:34px;border-radius:9px;display:flex;align-items:center;justify-content:center;font-size:17px;flex-shrink:0;background:#f0f0f0;color:#888}
.notif-ico.notif-info{background:#e8f4fd;color:#1a5a8b}
.notif-ico.notif-success{background:#e8f8f0;color:#1a6b3a}
.notif-ico.notif-warning{background:#fdf3e8;color:#8a5500}
.notif-ico.notif-error{background:#fdecea;color:#c0392b}
.notif-body{flex:1;min-width:0}
.notif-titel{font-size:13px;font-weight:600;color:#111;line-height:1.3}
.notif-text{font-size:12px;color:#777;margin-top:2px;line-height:1.4}
.notif-zeit{font-size:11px;color:#bbb;margin-top:3px}
.notif-dot{width:8px;height:8px;border-radius:50%;background:var(--prim);flex-shrink:0;margin-top:5px}
.notif-leer{padding:28px 20px;text-align:center;font-size:13px;color:#bbb}

/* Benutzermenü */
.user-menu{position:absolute;top:44px;right:0;width:230px;background:#fff;border:1px solid #e8e8e8;border-radius:12px;box-shadow:0 12px 40px rgba(0,0,0,.15);z-index:500;display:none;overflow:hidden}
.user-menu.open{display:block}
.user-menu-head{display:flex;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid #f0f0f0}
.um-name{font-size:13px;font-weight:600;color:#222}
.um-rolle{font-size:11px;color:#999}
.um-status{padding:9px 16px;font-size:12px;border-bottom:1px solid #f0f0f0}
.user-menu-item{display:flex;align-items:center;gap:10px;padding:11px 16px;font-size:13px;color:#444;text-decoration:none;width:100%;background:none;border:none;cursor:pointer;font-family:inherit;text-align:left}
.user-menu-item:hover{background:#f5f5f5}
.user-menu-item i{font-size:16px;color:#888}
.um-sep{height:1px;background:#f0f0f0}
.um-logout{color:#e74c3c}
.um-logout i{color:#e74c3c}

/* Modal (Status-Popup) */
.modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.35);z-index:9999;display:none;align-items:center;justify-content:center;padding:20px}
.modal-overlay.open{display:flex}
.modal{background:#fff;border-radius:14px;width:100%;max-width:420px;padding:20px;box-shadow:0 20px 60px rgba(0,0,0,.25)}
.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}
.modal-head h3{font-size:16px;font-weight:700;color:#222}
.modal-close{background:none;border:none;cursor:pointer;color:#999;font-size:18px}
.modal-lbl{display:block;font-size:11px;font-weight:700;color:#bbb;text-transform:uppercase;margin:14px 0 7px}
.modal input[type=text],.modal input[type=datetime-local]{width:100%;padding:10px 13px;border:1.5px solid #ddd;border-radius:8px;font-size:14px;outline:none}
.modal input:focus{border-color:var(--prim)}
.status-choices{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.status-choice input{position:absolute;opacity:0}
.status-choice span{display:flex;align-items:center;gap:7px;border:1.5px solid #ddd;border-radius:9px;padding:9px 11px;font-size:13px;color:#333;cursor:pointer}
.status-choice input:checked+span{border-color:var(--prim);background:var(--hell);font-weight:600}

/* Systemlog-Tabelle */
.log-toolbar{display:flex;gap:8px;margin-bottom:14px;flex-wrap:wrap}
.log-search{flex:1;min-width:200px;padding:10px 13px;border:1.5px solid #ddd;border-radius:8px;font-size:14px;outline:none}
.log-search:focus{border-color:var(--prim)}
.table-wrap{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow-x:auto}
table.data{width:100%;border-collapse:collapse;font-size:13px}
table.data th{text-align:left;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.4px;color:#8a929c;padding:8px 10px;border-bottom:1px solid #eef0f3;background:#fff;white-space:nowrap}
table.data td{padding:10px 14px;border-bottom:1px solid #f5f5f5;vertical-align:top}
table.data tr:last-child td{border-bottom:none}
table.data tr:hover td{background:#fafafa}
.log-ts{color:#999;white-space:nowrap;font-variant-numeric:tabular-nums}
.log-user{font-weight:600;color:#111;white-space:nowrap}
.log-aktion{display:inline-block;font-size:11px;font-weight:700;padding:3px 9px;border-radius:20px;background:var(--hell);color:var(--prim);white-space:nowrap}
.log-ip{color:#bbb;font-size:12px;white-space:nowrap}

/* ================= v1.0.3 ================= */
/* Version ohne Rahmen (nur Text) */
.tb-version{color:rgba(255,255,255,.7);font-size:12px;font-weight:600;text-decoration:none;white-space:nowrap}
.tb-version:hover{color:#fff}

/* Topbar-Buttons größer, passend zur Glocke (34px) */
.topbar-right{gap:8px}
.tb-btn{height:34px;display:inline-flex;align-items:center;padding:0 13px;border-radius:8px;font-size:13px;font-weight:600;color:rgba(255,255,255,.9);background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);text-decoration:none;white-space:nowrap}
.tb-btn:hover{background:rgba(255,255,255,.22);color:#fff}
.tb-netz{font-weight:700}
.tb-icon-btn{width:34px;height:34px}

/* MSB / Intranet Umschalter */
.ebene-switch{display:flex;align-items:center;height:34px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);border-radius:8px;padding:3px;gap:2px}
.ebene-switch .eb{padding:0 11px;height:26px;display:flex;align-items:center;border-radius:6px;font-size:12px;font-weight:600;color:rgba(255,255,255,.6);text-decoration:none}
.ebene-switch .eb:hover{color:#fff}
.ebene-switch .eb.aktiv{background:rgba(255,255,255,.22);color:#fff}

@media(max-width:640px){ .topbar-right .tb-btn:not(.tb-netz), .ebene-switch{display:none} }

/* Navigation mit Icons */
.nav-item{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:8px;font-size:14px;color:#4a4a4a;cursor:pointer;position:relative;transition:all .15s}
.nav-item i{font-size:18px;width:22px;text-align:center;flex-shrink:0}

/* Einklappbare Sidebar (Desktop) */
.sidebar.collapsed{width:64px}
.sidebar.collapsed .nav-group-label,.sidebar.collapsed .nav-item span,.sidebar.collapsed .profil-info,.sidebar.collapsed .profil-card > i{display:none}
.sidebar.collapsed .nav-item{justify-content:center;padding:10px}
.sidebar.collapsed .nav-item.active::before{display:none}
.sidebar.collapsed .sidebar-inner{overflow:visible}
.sidebar.collapsed .profil-card{justify-content:center;padding:10px}
.sidebar.collapsed .nav-item::after{content:attr(data-label);position:absolute;left:calc(100% + 8px);top:50%;transform:translateY(-50%);background:#fff;border:1px solid #e6e9ee;border-radius:8px;box-shadow:0 8px 30px rgba(20,40,80,.15);padding:6px 12px;font-size:13px;color:#4a4a4a;white-space:nowrap;opacity:0;pointer-events:none;z-index:300;transition:opacity .12s}
.sidebar.collapsed .nav-item:hover::after{opacity:1}
@media(min-width:900px){ .app:has(#sidebar.collapsed){padding-left:64px} }

/* Profil unten in der Navigation */
.sidebar-footer{border-top:1px solid #f0f0f0;position:relative;padding:0}
.profil-card{display:flex;align-items:center;gap:9px;padding:10px 12px;width:100%;background:none;border:none;cursor:pointer;font-family:inherit;text-align:left}
.profil-card:hover{background:#f8f8f8}
.profil-info{flex:1;min-width:0}
.profil-name{font-size:12px;font-weight:600;color:#222;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.profil-status{font-size:11px;display:flex;align-items:center;gap:4px}
.profil-popup{display:none;position:absolute;bottom:100%;left:8px;right:8px;background:#fff;border:1px solid #e0e0e0;border-radius:10px;box-shadow:0 -4px 20px rgba(0,0,0,.12);z-index:500;overflow:hidden;margin-bottom:4px}
.profil-popup.open{display:block}
.profil-item{display:flex;align-items:center;gap:10px;padding:10px 14px;font-size:13px;color:#333;text-decoration:none;width:100%;background:none;border:none;cursor:pointer;font-family:inherit;text-align:left}
.profil-item:hover{background:#f5f5f5}
.profil-item i{font-size:16px;color:#888;width:18px}
.profil-sep{height:1px;background:#f0f0f0}
.profil-logout{color:#e74c3c}
.profil-logout i{color:#e74c3c}

/* Pagination – immer sichtbar, ausgegraut bei 0/1 Seite */
.pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;flex-wrap:wrap}
.pg-info{font-size:12px;color:#aaa}
.pg-btns{display:flex;gap:4px;align-items:center;flex-wrap:wrap}
.pg{display:flex;align-items:center;justify-content:center;min-width:32px;height:32px;padding:0 8px;border-radius:8px;border:1.5px solid #ddd;background:#fff;color:#555;font-size:13px;font-weight:500;text-decoration:none}
.pg:hover{border-color:var(--prim);color:var(--prim)}
.pg.aktiv{background:var(--prim);border-color:var(--prim);color:#fff;font-weight:700}
.pg.disabled{color:#ccc;border-color:#eee;cursor:default}

/* Prio-Punkt */
.prio-dot{display:inline-block;width:10px;height:10px;border-radius:50%;flex-shrink:0}

/* Dashboard: 4 Kacheln (Breite Termine) + 1 (Breite Team) */
.dash-stats{display:grid;grid-template-columns:1fr;gap:12px;margin-bottom:20px}
.dash-stats-4{display:grid;grid-template-columns:repeat(2,1fr);gap:11px}
.dash-main{display:grid;grid-template-columns:1fr;gap:20px;align-items:start}
@media(min-width:900px){
  .dash-stats{grid-template-columns:1fr 320px}
  .dash-stats-4{grid-template-columns:repeat(4,1fr)}
  .dash-main{grid-template-columns:1fr 320px}
}

/* Ticket-Detail */
.tk-grid{display:grid;grid-template-columns:1fr;gap:16px;align-items:start}
@media(min-width:900px){ .tk-grid{grid-template-columns:1fr 320px} }
.tk-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:18px 20px;margin-bottom:16px}
.tk-card h2{font-size:14px;font-weight:600;color:#222;margin-bottom:12px}
.tk-title{font-size:19px;font-weight:700;color:#111}
.tk-nr{font-family:monospace;font-size:12px;font-weight:700;color:#1a3a6b}
.tk-desc{font-size:14px;color:#444;white-space:pre-wrap;line-height:1.6}
.tk-meta-row{display:flex;justify-content:space-between;align-items:center;padding:9px 0;border-bottom:1px solid #f5f5f5;font-size:13px}
.tk-meta-row:last-child{border-bottom:none}
.tk-meta-row .k{color:#999}
.tk-meta-row > *:not(.k){margin-left:auto;text-align:right}
.tk-meta-row select,.tk-meta-row input[type=date]{width:190px;max-width:60%;padding:6px 8px;border:1.5px solid #ddd;border-radius:7px;font-size:13px;text-align:right;text-align-last:right}
.tk-meta-row > span:not(.k){min-width:0;padding-right:2px}
.kommentar{display:flex;gap:10px;padding:12px 0;border-bottom:1px solid #f5f5f5}
.kommentar:last-child{border-bottom:none}
.kommentar .txt{font-size:13px;color:#333;white-space:pre-wrap;line-height:1.5}
.kommentar .meta{font-size:11px;color:#aaa;margin-top:3px}
.komm-form textarea{width:100%;padding:10px 13px;border:1.5px solid #ddd;border-radius:8px;font-size:14px;resize:vertical;min-height:70px;font-family:inherit;outline:none;margin-bottom:8px}
.komm-form textarea:focus{border-color:var(--prim)}

/* Formraster (Ticket anlegen) */
.form-grid{display:grid;grid-template-columns:1fr;gap:0 16px}
@media(min-width:700px){ .form-grid{grid-template-columns:1fr 1fr} }
.field textarea{width:100%;padding:11px 13px;border:1.5px solid #ddd;border-radius:8px;font-size:15px;outline:none;resize:vertical;min-height:120px;font-family:inherit}
.field textarea:focus{border-color:var(--prim)}

/* ================= v1.0.4 Fixes ================= */
/* Einklapp-Button auch am Desktop sichtbar */
@media(min-width:900px){ .sidebar-toggle{display:flex !important} }

/* Version: Hintergrund behalten, nur den hellen Rahmen entfernen */
.tb-version{height:32px;display:inline-flex;align-items:center;padding:0 11px;border-radius:8px;background:rgba(255,255,255,.14);border:none;color:#fff;font-size:12px;font-weight:600;text-decoration:none}
.tb-version:hover{background:rgba(255,255,255,.24);color:#fff}

/* Alle Topbar-Buttons einheitlich, etwas kleiner, KEIN heller Rahmen */
.tb-btn{height:32px;padding:0 12px;border:none;background:rgba(255,255,255,.14);font-size:12px}
.tb-btn:hover{background:rgba(255,255,255,.24)}
.tb-icon-btn{width:32px;height:32px;border:none;background:rgba(255,255,255,.14)}
.tb-icon-btn:hover{background:rgba(255,255,255,.24)}
.ebene-switch{height:32px;border:none;background:rgba(255,255,255,.14)}
.ebene-switch .eb{height:26px}
.topbar-right{gap:7px}

/* Panel + Formular-Container für Ticketseiten (Dashboard-Stil, ohne Card-Überschriften im Content) */
.panel{background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px 18px}
.form-wrap{background:#fff;border:1px solid var(--line);border-radius:12px;padding:20px}
.form-wrap .field:last-child{margin-bottom:0}

/* Empty-State mit Icon */
.empty i.big{font-size:34px;color:#ddd;display:block;margin-bottom:10px}

/* Filter-Felder am Handy volle Breite */
@media(max-width:640px){ .filter-bar{gap:8px} .filter-bar .search-input{width:100%;min-width:0} .filter-bar .filter-btn{width:100%} }

/* ================= v1.0.5 ================= */
/* Topbar-Buttons kleiner (Punkt 6) */
.tb-version,.tb-btn{height:26px;padding:0 10px;border-radius:8px;font-size:11px}
.ebene-switch{height:26px;padding:2px}
.ebene-switch .eb{height:22px;font-size:11px;padding:0 9px}
.tb-icon-btn{width:30px;height:30px}
.notif-count{top:-3px;right:-3px}

/* Toast */
.toast-wrap{position:fixed;top:64px;right:16px;z-index:9998;display:flex;flex-direction:column;gap:8px}
.toast{display:flex;align-items:center;gap:9px;background:#fff;border:1px solid #e2e6ec;border-left:4px solid var(--sek);border-radius:10px;padding:11px 15px;font-size:13px;color:#222;box-shadow:0 10px 30px rgba(0,0,0,.14);min-width:220px;max-width:340px;opacity:0;transform:translateX(20px);transition:all .28s}
.toast.show{opacity:1;transform:translateX(0)}
.toast i{font-size:18px;color:var(--sek)}
.toast-error{border-left-color:#e74c3c}
.toast-error i{color:#e74c3c}

/* Sortierbare Spaltenköpfe – einheitlich im SLA-Stil */
table.data th.sortable{cursor:pointer;user-select:none;white-space:nowrap}
table.data th.sortable:hover{background:#f5f7fa}
table.data th .pfeil{display:inline-block;width:0;height:0;margin-left:5px;vertical-align:middle;border-left:4px solid transparent;border-right:4px solid transparent}
table.data th.sorted.asc .pfeil{border-bottom:5px solid #1a3a6b}
table.data th.sorted.desc .pfeil{border-top:5px solid #1a3a6b}

/* Filterleiste hübscher (Punkt 3) */
.filterleiste{display:flex;gap:8px;flex-wrap:wrap;align-items:center;background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin-bottom:16px}
.filterleiste .fl-input{flex:1;min-width:180px;padding:9px 12px 9px 34px;border:1.5px solid #e2e4e8;border-radius:8px;font-size:13px;outline:none;background:#fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23aaa" stroke-width="2" stroke-linecap="round"><circle cx="11" cy="11" r="7"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg>') no-repeat 10px center}
.filterleiste .fl-input:focus{border-color:var(--prim)}
.filterleiste select{padding:9px 11px;border:1.5px solid #e2e4e8;border-radius:8px;font-size:13px;background:#fff;color:#555;cursor:pointer;outline:none}
.filterleiste select:focus{border-color:var(--prim)}
.fl-toggle{padding:9px 14px;border:1.5px solid #e2e4e8;border-radius:8px;font-size:13px;font-weight:600;color:#555;background:#fff;cursor:pointer;display:inline-flex;align-items:center;gap:6px}
.fl-toggle.active{border-color:var(--prim);background:var(--hell);color:var(--prim)}
@media(max-width:640px){ .filterleiste .fl-input,.filterleiste select,.fl-toggle{width:100%;min-width:0} }

/* Ticket-Verlauf (Historie) */
.verlauf{position:relative;padding-left:6px}
.vl-item{display:flex;gap:10px;padding:8px 0;font-size:12px}
.vl-dot{width:9px;height:9px;border-radius:50%;background:var(--prim);flex-shrink:0;margin-top:4px}
.vl-body{flex:1;min-width:0}
.vl-text{color:#333}
.vl-text b{color:#111}
.vl-zeit{color:#aaa;font-size:11px;margin-top:1px}
.vl-change{color:#666}
.vl-change .alt{color:#c0392b;text-decoration:line-through}
.vl-change .neu{color:#1a6b3a;font-weight:600}

/* Kommentar-Aktionen */
.kommentar{position:relative}
.komm-akt{display:flex;gap:8px;margin-top:4px}
.komm-akt button{background:none;border:none;color:#aaa;font-size:11px;cursor:pointer;display:inline-flex;align-items:center;gap:3px;padding:0}
.komm-akt button:hover{color:var(--prim)}
.komm-akt button.del:hover{color:#e74c3c}
.komm-edit{width:100%;padding:8px 11px;border:1.5px solid var(--prim);border-radius:8px;font-size:13px;font-family:inherit;resize:vertical;min-height:56px;outline:none;margin-top:6px}

/* Systemlog: Detailzeile klickbar */
table.data tr.klick{cursor:pointer}
.log-details-link{color:#222;font-weight:500}
tr.klick:hover .log-details-link{color:var(--prim);text-decoration:underline}
.log-level{display:inline-block;font-size:10px;font-weight:700;padding:2px 7px;border-radius:6px;text-transform:uppercase}
.lv-info{background:#e8f4fd;color:#1a5a8b}.lv-warning{background:#fdf3e8;color:#8a5500}.lv-error{background:#fdecea;color:#c0392b}

/* Dashboard: alte Anordnung */
.dash-cols{display:grid;grid-template-columns:1fr;gap:20px;align-items:start}
@media(min-width:900px){ .dash-cols{grid-template-columns:1fr 320px} }
.dash-2{display:grid;grid-template-columns:1fr;gap:20px}
@media(min-width:700px){ .dash-2{grid-template-columns:1fr 1fr} }
.mini-empty{padding:18px 14px;text-align:center;color:#bbb;font-size:13px}
.mini-empty i{font-size:20px;opacity:.5;display:block;margin-bottom:6px}
.akt-row{display:flex;gap:10px;padding:11px 13px;border-bottom:1px solid #f5f5f5;text-decoration:none;color:inherit}
.akt-row:last-child{border-bottom:none}
.akt-row:hover{background:#fafafa}
.akt-body{flex:1;min-width:0}
.akt-kopf{font-size:12px;font-weight:600;color:#111}
.akt-kopf .nr{color:var(--prim)}
.akt-text{font-size:12px;color:#888;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.akt-zeit{font-size:11px;color:#bbb;margin-top:2px}
.team-lastseen{font-size:10px;color:#bbb;line-height:1.35;margin-top:5px;padding-top:5px;border-top:1px solid #f0f0f0}

/* ================= v1.0.6 ================= */
/* Dropdowns/Selects einheitlich wie die Filterbar (weiß, gerundet) */
.tk-meta-row select, .field select, .field input[type=date], .modal select, .modal input[type=date]{
  border:1.5px solid #e2e4e8;border-radius:8px;padding:8px 11px;font-size:13px;background:#fff;color:#333;outline:none;font-family:inherit}
.tk-meta-row select:focus, .field select:focus, .field input[type=date]:focus{border-color:var(--prim)}
.tk-meta-row select{min-width:150px}

/* Ankündigungsbanner */
.ank-banner{display:flex;align-items:center;gap:10px;padding:10px 18px;font-size:13.5px;font-weight:500;position:sticky;top:54px;z-index:150}
.ank-banner i:first-child{font-size:18px;flex-shrink:0}
.ank-banner span{flex:1;min-width:0}
.ank-banner button{background:rgba(0,0,0,.08);border:none;color:inherit;width:26px;height:26px;border-radius:7px;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.ank-banner button:hover{background:rgba(0,0,0,.16)}
.ank-info{background:#e8f0fb;color:#1a3a6b}
.ank-warning{background:#fdf3e8;color:#8a5500}
.ank-success{background:#e8f8f0;color:#1a6b3a}

/* Tabs */
.tabs{display:flex;gap:4px;border-bottom:1px solid #eee;margin-bottom:18px;flex-wrap:wrap}
.tab{padding:9px 15px;font-size:13.5px;font-weight:600;color:#888;background:none;border:none;border-bottom:2px solid transparent;cursor:pointer;display:flex;align-items:center;gap:6px;font-family:inherit}
.tab.active{color:var(--prim);border-bottom-color:var(--prim)}

/* Rollen-Karten mit Modul-Schaltern */
.rolle-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px 18px;margin-bottom:14px}
.rolle-kopf{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.rolle-name{font-size:15px;font-weight:700;color:#111}
.rolle-anzahl{font-size:12px;color:#999}
.modul-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:8px}
.modul-toggle{display:flex;align-items:center;gap:9px;padding:9px 12px;border:1.5px solid #e2e4e8;border-radius:9px;cursor:pointer;font-size:13px;color:#555;user-select:none}
.modul-toggle input{display:none}
.modul-toggle .box{width:18px;height:18px;border-radius:5px;border:1.5px solid #ccc;display:flex;align-items:center;justify-content:center;color:#fff;flex-shrink:0;transition:all .12s}
.modul-toggle input:checked + .box{background:var(--prim);border-color:var(--prim)}
.modul-toggle input:checked + .box i{opacity:1}
.modul-toggle .box i{font-size:12px;opacity:0}
.modul-toggle.aktiv{border-color:var(--prim);background:var(--hell);color:var(--prim);font-weight:600}
.rolle-system{font-size:11px;color:#aaa;font-style:italic}

/* Profilseite */
.profil-head{display:flex;align-items:center;gap:16px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px 22px;margin-bottom:16px}
.profil-ava{width:64px;height:64px;border-radius:50%;color:#fff;font-size:22px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0;position:relative}
.profil-ava .dot{position:absolute;right:2px;bottom:2px;width:16px;height:16px;border-radius:50%;border:3px solid #fff}
.profil-h-name{font-size:20px;font-weight:700;color:#111}
.profil-h-sub{font-size:13px;color:#888;margin-top:2px}
.profil-kontakt-row{display:flex;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid #f5f5f5;font-size:13.5px}
.profil-kontakt-row:last-child{border-bottom:none}
.profil-kontakt-row .k{color:#999;display:flex;align-items:center;gap:7px}
.profil-kontakt-row .k i{color:#bbb}
.profil-kontakt-row a{color:var(--prim)}

/* Benutzer-/Einstellungen-Cards */
.einst-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px 20px;margin-bottom:16px;max-width:640px}
.einst-card h2{font-size:15px;font-weight:600;color:#222;margin-bottom:4px}
.einst-card p.hint{font-size:12px;color:#999;margin-bottom:14px}
.einst-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 0;border-bottom:1px solid #f5f5f5}
.einst-row:last-child{border-bottom:none}
.einst-row label{font-size:13.5px;color:#333}
.einst-row input[type=number]{width:90px;padding:8px 10px;border:1.5px solid #e2e4e8;border-radius:8px;font-size:13px;text-align:center}
.schalter{position:relative;width:44px;height:24px;flex-shrink:0}
.schalter input{display:none}
.schalter .track{position:absolute;inset:0;background:#ccc;border-radius:20px;transition:.2s}
.schalter .knob{position:absolute;top:3px;left:3px;width:18px;height:18px;background:#fff;border-radius:50%;transition:.2s}
.schalter input:checked + .track{background:var(--sek)}
.schalter input:checked + .track + .knob{left:23px}

/* kleine Helfer v1.0.6 */
.badge-primary{background:var(--hell);color:var(--prim)}
.table-action-btn{background:none;border:none;color:#aaa;cursor:pointer;font-size:16px;padding:5px;border-radius:6px}
.table-action-btn:hover{background:var(--hell);color:var(--prim)}
.field input[type=color]{width:100%;border:1.5px solid #ddd;border-radius:8px;cursor:pointer}

/* ================= v1.0.7 ================= */
.panel-actions{margin-top:12px}
.einst-card{max-width:none}  /* Einstellungen volle Breite */

/* Rolle-Kürzel rechts in Team-Zeile + Avatar-Punkt sicherstellen */
.rolle-kuerzel{font-size:10px;font-weight:700;letter-spacing:.5px;color:#8a929c;background:#f2f4f7;border-radius:6px;padding:2px 7px;flex-shrink:0}
.avatar{position:relative}
.avatar .dot{position:absolute;right:-1px;bottom:-1px;width:10px;height:10px;border-radius:50%;border:2px solid #fff}

/* Rechte-Raster */
table.rechte-tab{width:100%}
table.rechte-tab th{background:#fafbfc;font-size:11px;text-transform:uppercase;letter-spacing:.3px;color:#9aa5b1}
table.rechte-tab td{border-bottom:1px solid #f4f5f7}
.hak{display:inline-flex;cursor:pointer}
.hak input{display:none}
.hak-box{width:20px;height:20px;border-radius:6px;border:1.5px solid #cfd4da;display:flex;align-items:center;justify-content:center;color:#fff;transition:all .12s}
.hak-box i{font-size:13px;opacity:0}
.hak input:checked + .hak-box{background:var(--sek);border-color:var(--sek)}
.hak input:checked + .hak-box i{opacity:1}
.hak input:disabled + .hak-box{background:#eef0f3;border-color:#e2e4e8}
.hak input:disabled:checked + .hak-box{background:#9fb4cc;border-color:#9fb4cc}

/* Systemlog: farbiges Level zurück + Details truncate */
.log-level{display:inline-block;font-size:10px;font-weight:700;padding:2px 7px;border-radius:6px;text-transform:uppercase;letter-spacing:.3px}
.log-details-link{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Profil: Kontakt schmaler, Verfügbarkeit breiter */
.profil-grid{display:grid;grid-template-columns:1fr;gap:20px;align-items:start}
@media(min-width:900px){ .profil-grid{grid-template-columns:300px 1fr} }

/* ================= v1.0.8 Fixes ================= */
.main-col{flex:1;min-width:0;display:flex;flex-direction:column}
.ank-banner{position:static;top:auto;border-radius:0}   /* nicht mehr von Sidebar überdeckt */
.einst-row select{border:1.5px solid #e2e4e8;border-radius:8px;padding:8px 11px;font-size:13px;background:#fff;color:#333;outline:none;font-family:inherit}
.einst-row select:focus{border-color:var(--prim)}

/* ================= Aufgaben-Board ================= */
.board{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px}
.board-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px;align-items:start}
.lane{background:#f7f8fa;border-radius:12px;padding:10px;min-height:92px}
.lane.frei{background:#fdf6e6;border:1px dashed #e7d3a1}
.lane.ich{outline:2px solid var(--prim)}
.lane.over{background:#e8f0fb;outline:2px dashed var(--prim)}
.lane-head{display:flex;align-items:center;gap:8px;padding:2px 4px 10px}
.lane-av{width:26px;height:26px;border-radius:50%;color:#fff;font-size:10px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.lane-name{font-size:12.5px;font-weight:700;color:#333;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1}
.lane.frei .lane-name{color:#a9791b}
.lane-cnt{background:#e6e9ee;color:#6b7685;border-radius:20px;padding:1px 8px;font-size:11px;font-weight:700}
.lane-leer{text-align:center;color:#c8ccd2;font-size:11.5px;padding:10px 4px}
.pin{background:#fff;border:1px solid var(--line);border-radius:9px;padding:10px 11px;margin-bottom:9px;cursor:grab;box-shadow:0 1px 2px rgba(30,40,60,.06),0 7px 14px -9px rgba(30,40,60,.22)}
.pin.dragging{opacity:.4}
.pin-top{display:flex;align-items:center;gap:7px}
.pin-dot{width:9px;height:9px;border-radius:50%;flex-shrink:0}
.pin-titel{font-size:13px;font-weight:700;color:#222;text-decoration:none;line-height:1.3;flex:1}
.pin-titel:hover{color:var(--prim)}
.pin-rep{color:#c3b48a;font-size:12px}
.pin-meta{display:flex;align-items:center;justify-content:space-between;margin-top:6px;font-size:11.5px;color:#8a929c;font-weight:600}
.pin-meta .pin-spaet{color:#e74c3c}
.pin-ohne{color:#bcc2c9}
.pin-info{color:#c2c8d0;text-decoration:none}
.pin-info:hover{color:var(--prim)}
/* Timeline (Aufgaben-Verlauf) */
.tl{position:relative;padding-left:26px}
.tl::before{content:"";position:absolute;left:9px;top:4px;bottom:4px;width:2px;background:#eef0f3}
.tl-item{position:relative;padding:0 0 15px}
.tl-item:last-child{padding-bottom:0}
.tl-dot{position:absolute;left:-26px;top:0;width:20px;height:20px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:11px;color:#fff}
.tl-titel{font-size:13px;font-weight:600;color:#222}
.tl-meta{font-size:12px;color:#8a929c;margin-top:1px}
/* KPI-Kacheln + Zeitraum-Umschalter */
.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:14px;margin:4px 0 18px}
.kpi{background:#fff;border:1px solid var(--line);border-radius:12px;padding:15px 16px}
.kpi .n{font-size:26px;font-weight:800;color:#222;line-height:1}
.kpi .l{font-size:12px;color:#8a929c;margin-top:5px;font-weight:600}
.kpi.rot .n{color:#e74c3c}.kpi.gruen .n{color:#27ae60}
.zr{display:inline-flex;background:#f2f4f7;border-radius:9px;padding:3px}
.zr button{padding:6px 14px;font-size:12.5px;font-weight:600;color:#888;background:none;border:none;border-radius:7px;cursor:pointer}
.zr button.active{background:#fff;color:var(--prim);box-shadow:0 1px 3px rgba(20,40,80,.12)}
.vl-karte{display:flex;align-items:center;gap:14px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:13px 15px;margin-bottom:10px}
.vl-karte.pausiert{opacity:.55}
.vl-ico{width:38px;height:38px;border-radius:10px;flex-shrink:0;display:flex;align-items:center;justify-content:center;background:var(--hell);color:var(--prim);font-size:18px}
.badge-secondary{background:#f2f4f7;color:#6b7685}

/* ================= Teams ================= */
.team-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px}
.team-card{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden}
.team-head{display:flex;align-items:center;gap:12px;padding:14px 16px;color:#fff}
.team-kuerzel{background:rgba(255,255,255,.22);border-radius:9px;padding:7px 10px;font-weight:800;font-size:14px;letter-spacing:.5px;flex-shrink:0}
.team-name{font-size:15px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.team-besch{font-size:12px;opacity:.85;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.team-edit{background:rgba(255,255,255,.2);border:none;color:#fff;width:30px;height:30px;border-radius:8px;cursor:pointer;flex-shrink:0}
.team-edit:hover{background:rgba(255,255,255,.32)}
.team-body{padding:10px 12px 12px}
.team-cnt{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.4px;color:#9aa5b1;padding:2px 4px 8px}
.tm-row{display:flex;align-items:center;gap:10px;padding:7px 6px;border-radius:9px;text-decoration:none}
.tm-row:hover{background:#f6f8fa}
.tm-name{display:block;font-size:13px;font-weight:600;color:#222;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tm-rolle{display:block;font-size:11px;color:#9aa5b1}
.tm-lead{font-size:11px;font-weight:700;color:#e0a800;white-space:nowrap;display:flex;align-items:center;gap:3px}
.mem-list{max-height:210px;overflow:auto;border:1px solid var(--line);border-radius:10px;padding:6px}
.mem-check{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:8px;font-size:13px;color:#333;cursor:pointer}
.mem-check:hover{background:#f6f8fa}
.mem-check input{width:16px;height:16px}
.team-badge{display:inline-flex;align-items:center;gap:6px;padding:5px 11px;border-radius:20px;font-size:12.5px;font-weight:600;color:#fff}
.team-badge .lead{font-size:10px;opacity:.92}

/* Dashboard-Aktivität: Ticket-Titel */
.akt-titel{font-size:12.5px;font-weight:600;color:#333;margin:1px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.akt-text{font-size:12px;color:#8a929c;font-style:italic;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.team-rang{font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:#9aa5b1;padding:9px 4px 4px;display:flex;align-items:center;gap:4px}
.team-rang .ti{font-size:11px;color:#e0a800}
.data tr.inaktiv{opacity:.5}
.bearb-note{margin-top:10px;padding-top:9px;border-top:1px dashed #eceef1;font-size:11.5px;color:#9aa5b1;font-style:italic}
.tk-closed{display:flex;align-items:center;gap:10px;background:#fbeaea;color:#b93b34;border:1px solid #f3c4c0;border-radius:10px;padding:11px 14px;margin-bottom:16px;font-size:13px;font-weight:500}

/* Profil-Teams mit Mitgliedern */
.pt-team{background:#fff;border:1px solid var(--line);border-radius:12px;padding:13px 14px}
.pt-team-head{margin-bottom:10px}
.pt-mitglieder{display:flex;flex-wrap:wrap;gap:8px}
.pt-mit{display:flex;align-items:center;gap:8px;padding:5px 10px 5px 5px;border:1px solid var(--line);border-radius:20px;text-decoration:none;background:#fafbfc}
.pt-mit:hover{background:#f0f4fa;border-color:#d8e0ec}
.pt-mit-name{font-size:12.5px;font-weight:600;color:#333;white-space:nowrap}
/* Eingeklappte Sidebar-Fußzeile: nur Avatar */
.sidebar.collapsed .sidebar-footer .profil-info,.sidebar.collapsed .sidebar-footer .profil-card i{display:none!important}
.sidebar.collapsed .sidebar-footer .profil-card{justify-content:center;padding:8px}

/* Mehr-Button-Header auf Mobile: stapeln + Buttons füllen Breite */
@media(max-width:700px){
  .ph-flex{flex-direction:column;align-items:stretch!important}
  .ph-flex > div:last-child{width:100%;display:flex;flex-wrap:wrap;gap:8px}
  .ph-flex > div:last-child .btn{flex:1 1 auto;justify-content:center;min-width:0;width:auto!important}
  .board-grid{grid-template-columns:1fr}
}

/* Eingeklappte Sidebar: Benutzer-Fußzeile zeigt NUR das Avatar */
.sidebar.collapsed .profil-card .profil-info,
.sidebar.collapsed .profil-card .profil-name,
.sidebar.collapsed .profil-card .profil-status,
.sidebar.collapsed .profil-card > i{display:none!important}
.sidebar.collapsed .profil-card{justify-content:center!important;padding:8px!important}

/* ================= Schulungen ================= */
.schul-liste{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.schul-row{display:flex;align-items:center;gap:12px;padding:12px 14px;border-bottom:1px solid #f5f5f5;text-decoration:none}
.schul-row:last-child{border-bottom:none}
.schul-row:hover{background:#fafbfc}
.schul-ico{width:38px;height:38px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:18px;flex-shrink:0}
.schul-main{flex:1;min-width:0}
.schul-name{font-size:14px;font-weight:600;color:#111}
.schul-sub{font-size:11.5px;color:#999;margin-top:3px;display:flex;align-items:center;gap:5px}
.schul-right{display:flex;flex-direction:column;align-items:flex-end;gap:4px;flex-shrink:0}
.schul-tag{color:#fff;padding:2px 9px;border-radius:9px;font-size:11px;font-weight:600}
.schul-start{font-size:11.5px;color:#8a929c;white-space:nowrap}
.kat-block{margin-bottom:22px}
.kat-kopf{display:flex;align-items:center;gap:9px;margin:6px 0 12px;font-size:15px;font-weight:600;color:#222}
.kat-kopf .kat-badge{width:26px;height:26px;border-radius:7px;display:inline-flex;align-items:center;justify-content:center;color:#fff;flex-shrink:0}
.kat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px}
.kat-card{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden;display:flex;flex-direction:column}
.kat-top{height:74px;display:flex;align-items:center;justify-content:center}
.kat-body{padding:13px 14px;display:flex;flex-direction:column;flex:1}
.kat-titel{font-weight:700;color:#111;font-size:14px}
.kat-besch{font-size:12px;color:#999;margin-top:3px;line-height:1.4;flex:1}
.kat-akt{display:flex;align-items:center;gap:6px;margin-top:12px}
.kat-akt .btn{flex:1;height:34px}
.kat-akt .icon-btn{width:34px;height:34px;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:8px;color:#666;background:#fff;text-decoration:none;font-size:15px}
.kat-akt .icon-btn:hover{background:#f5f7fa;color:var(--prim)}
/* Player */
.pl-fortschritt{display:flex;gap:6px;margin:14px 0}
.pl-step{flex:1;height:5px;border-radius:3px;background:#e6e9ee}
.pl-step.done{background:var(--prim)}
.pl-abschnitt{background:#fff;border:1px solid var(--line);border-radius:12px;padding:20px 22px}
.pl-abschnitt h2{font-size:17px;color:#12294d;margin-bottom:10px}
.pl-inhalt{font-size:14px;line-height:1.7;color:#3a3a3a;white-space:pre-wrap}
.pl-frage{background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px 18px;margin-bottom:14px}
.pl-frage.falsch{border-color:#f3c4c0;background:#fdf6f5}
.pl-frage-text{font-size:14px;font-weight:600;color:#222;margin-bottom:10px}
.pl-opt{display:flex;align-items:center;gap:10px;padding:9px 12px;border:1.5px solid #e2e4e8;border-radius:9px;margin-bottom:7px;cursor:pointer;font-size:13.5px}
.pl-opt:hover{border-color:#b9c4d4}
.pl-opt input{width:16px;height:16px}
.pl-opt.sel{border-color:var(--prim);background:var(--hell)}

/* Badge-Varianten (Schulungen) */
.badge-success{background:#eafaf0;color:#1e8e4e}
.badge-warning{background:#fdf3e8;color:#c77c11}
.badge-danger{background:#fdeaea;color:#d0392b}

/* ===== Schulungs-Editor ===== */
.ed-el input, .ed-el textarea, .ed-folie textarea{width:100%;background:#fff;border:1.5px solid #e2e4e8;border-radius:8px;padding:8px 10px;font-size:13.5px;font-family:inherit;color:#222}
.ed-el input:focus, .ed-el textarea:focus, .ed-folie textarea:focus{outline:none;border-color:var(--prim)}
.ed-typ{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.4px;padding:3px 10px;border-radius:20px}
.ed-typ.abschnitt{background:#eef2f8;color:#1a3a6b}
.ed-typ.frage{background:#fdf3e8;color:#c77c11}
.ed-bild{border:1.5px dashed #d5dae2;border-radius:10px;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#fafbfc}
.ed-bild img{width:100%;height:100%;object-fit:cover}
.ed-folie{display:flex;gap:10px;align-items:flex-start;padding:10px;border:1px solid #eef0f3;border-radius:9px;margin-bottom:8px;background:#fcfcfd}
.ed-folie-nr{width:22px;height:22px;border-radius:50%;background:#1a3a6b;color:#fff;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:4px}
.ed-folie-bild{height:40px;border-radius:6px;border:1px solid #e2e4e8}
.int-row{display:flex;align-items:center;gap:8px;padding:5px 0;border-bottom:1px solid #f3f4f6}
.int-row span{flex:1;font-size:12.5px;color:#444}
.int-row input{width:80px;background:#fff;border:1.5px solid #e2e4e8;border-radius:7px;padding:5px 8px;font-size:13px;text-align:right}
.int-row input:focus{outline:none;border-color:var(--prim)}

/* ===== Player Folien/Zeit ===== */
.pl-zeit{font-size:12.5px;color:#5a6472;background:#eef2f8;padding:5px 10px;border-radius:8px;font-weight:600;white-space:nowrap}
.pl-folie-kopf{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}
.pl-folie-kopf h2{margin:0}
.pl-folie-nr{font-size:11px;color:#9aa5b1;font-weight:600;white-space:nowrap}
.pl-folie-bild{width:100%;max-height:340px;object-fit:contain;border-radius:10px;border:1px solid #eef0f3;margin-bottom:14px;background:#fafbfc}

/* ===== Katalog-Karten: breiter + Aktionszeile bündig ===== */
.kat-grid{grid-template-columns:repeat(auto-fill,minmax(288px,1fr))}
.kat-akt{flex-wrap:wrap}
.kat-top img{width:100%;height:100%;object-fit:cover}

/* Eingeklappt: Profil-Menü als vollständiges Flyout rechts neben der Leiste */
.sidebar.collapsed{overflow:visible}
.sidebar.collapsed .sidebar-footer{overflow:visible}
.sidebar.collapsed .profil-popup{left:calc(100% + 8px);right:auto;bottom:8px;width:210px;margin-bottom:0;box-shadow:0 8px 30px rgba(20,40,80,.18)}

/* Dashboard: Schulungen-fällig-Balken (volle Breite) */
.schul-dash-banner{display:flex;align-items:center;gap:14px;background:#fff;border:1px solid #eee;border-radius:12px;padding:13px 16px;margin-bottom:16px;text-decoration:none}
.schul-dash-banner:hover{box-shadow:0 3px 12px rgba(0,0,0,.05)}
.sdb-ico{width:36px;height:36px;border-radius:10px;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:19px}
.sdb-titel{font-size:14px;font-weight:700;color:#222}
.sdb-sub{font-size:12px;color:#888;margin-top:1px}
.ed-layout{background:#fff;border:1.5px solid #e2e4e8;border-radius:7px;padding:5px 8px;font-size:12.5px;color:#333;font-family:inherit}
.ed-layout:focus{outline:none;border-color:var(--prim)}

/* Player-Feedback & Folien-Layouts */
.pl-feedback{margin-top:12px;padding:10px 12px;border-radius:9px;font-size:13px;font-weight:600;display:flex;flex-direction:column;gap:4px}
.pl-feedback i{margin-right:4px}
.pl-feedback.falsch{background:#fdeaea;color:#c0392b}
.pl-feedback.richtig{background:#eafaf0;color:#1e8449}
.pl-begr{font-weight:400;color:#555;font-size:12.5px;line-height:1.5;margin-top:2px}
.pl-split{display:flex;gap:16px;align-items:flex-start;flex-wrap:wrap}
.pl-split > div{flex:1;min-width:200px}
.pl-split-bild .pl-folie-bild{margin-bottom:0}

/* ===== Schulungs-Editor: Folien-Canvas ===== */
.fo-wrap{border:1px solid #eef0f3;border-radius:10px;margin-bottom:12px;overflow:hidden;background:#fcfcfd}
.fo-bar{display:flex;align-items:center;gap:6px;padding:7px 9px;background:#f4f6f9;border-bottom:1px solid #eef0f3;flex-wrap:wrap}
.fo-bar .fo-nr{font-size:11px;font-weight:700;color:#8a929c;text-transform:uppercase;letter-spacing:.4px;margin-right:4px}
.fo-bar button{border:1px solid #dfe3ea;background:#fff;border-radius:7px;height:30px;padding:0 10px;font-size:12px;color:#444;cursor:pointer;display:inline-flex;align-items:center;gap:5px}
.fo-bar button:hover{background:#eef2f8;border-color:#c9d4e6}
.fo-bar .fo-del{margin-left:auto;color:#e74c3c}
.fo-bg-lbl{display:inline-flex;align-items:center;gap:4px;border:1px solid #dfe3ea;background:#fff;border-radius:7px;height:30px;padding:0 6px;cursor:pointer;color:#666;font-size:12px}
.fo-bg-lbl input[type=color]{width:22px;height:20px;border:none;background:none;padding:0;cursor:pointer}
.slide{position:relative;width:100%;max-width:680px;aspect-ratio:16/9;margin:12px auto;border:1px solid #d8dde5;border-radius:8px;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,.06);background-size:cover;background-position:center}
.slide .el{position:absolute;min-width:36px;border:1px dashed transparent;box-sizing:border-box}
.slide .el:hover{border-color:#9db8de}
.slide .el-grip{position:absolute;left:0;top:-16px;height:16px;display:none;align-items:center;gap:6px;background:var(--prim);color:#fff;font-size:11px;padding:0 6px;border-radius:4px 4px 0 0;cursor:move;z-index:20;line-height:1}
.slide .el:hover .el-grip{display:flex}
.slide .el-grip .el-del{background:#e74c3c;color:#fff;border:none;border-radius:3px;width:15px;height:13px;cursor:pointer;padding:0;font-size:11px;line-height:1;display:flex;align-items:center;justify-content:center}
.slide .el-body{outline:none;padding:3px 5px;font-size:15px;line-height:1.4;min-height:20px;cursor:text;color:#1a1a1a}
.slide .el-body:focus{background:rgba(26,58,107,.04)}
.slide .el-bild img{display:block;width:100%;height:auto;border-radius:4px;pointer-events:none;user-select:none}
.slide .el-rz{position:absolute;right:-7px;bottom:-7px;width:15px;height:15px;background:#fff;border:2px solid var(--prim);border-radius:50%;cursor:nwse-resize;display:none;z-index:25}
.slide .el:hover .el-rz{display:block}
.snap-line{position:absolute;background:#ff3b7f;z-index:60;pointer-events:none}
.snap-line.snap-v{width:1px;top:0;bottom:0}
.snap-line.snap-h{height:1px;left:0;right:0}

/* ===== Player: 16:9-Folie ===== */
.pl-slide{position:relative;width:100%;max-width:720px;aspect-ratio:16/9;margin:6px auto 4px;border:1px solid #e6e9ee;border-radius:10px;overflow:hidden;background-size:cover;background-position:center;box-shadow:0 2px 10px rgba(0,0,0,.05)}
.pl-el{position:absolute;box-sizing:border-box}
.pl-el img{display:block;width:100%;height:auto;border-radius:4px}
.pl-el-text{font-size:15px;line-height:1.45;color:#1a1a1a;padding:2px 4px}
@media(max-width:560px){.pl-el-text{font-size:13px}.slide .el-body{font-size:13px}}

/* ===== Canvas: Spezial-Elemente (Editor) ===== */
.slide .el-farbe{width:18px;height:14px;border:none;background:none;padding:0;cursor:pointer}
.slide .el-box .el-grip,.slide .el-nummer .el-grip{top:-16px}
.slide .el-nummer{aspect-ratio:auto}
.num-badge{width:100%;aspect-ratio:1;border-radius:50%;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:15px;line-height:1;outline:none;box-shadow:0 1px 3px rgba(0,0,0,.25)}
.slide .el-linie{z-index:5}
.slide .el-linie .li-grip{position:absolute;transform:translate(-50%,-50%);display:none;align-items:center;gap:4px;background:var(--prim);color:#fff;font-size:11px;padding:2px 5px;border-radius:5px;cursor:move;pointer-events:auto;z-index:31}
.slide .el-linie:hover .li-grip{display:flex}
.slide .el-linie .li-grip .li-arrow{background:#fff;color:var(--prim);border:none;border-radius:3px;width:16px;height:14px;cursor:pointer;padding:0;font-size:10px;line-height:1}
.slide .el-linie .li-grip .el-del{background:#e74c3c;color:#fff;border:none;border-radius:3px;width:15px;height:14px;cursor:pointer;padding:0;font-size:11px;line-height:1}
.slide .el-linie .li-ep{position:absolute;width:13px;height:13px;transform:translate(-50%,-50%);border-radius:50%;background:#fff;border:2px solid var(--prim);cursor:grab;pointer-events:auto;z-index:32}

/* ===== Canvas: Spezial-Elemente (Player) ===== */
.pl-slide .pl-nummer .num-badge{width:100%;aspect-ratio:1;border-radius:50%;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:15px;box-shadow:0 1px 3px rgba(0,0,0,.25)}

/* ===== Chat ===== */
.chat-wrap{display:flex;gap:14px;height:calc(100vh - 150px);min-height:420px}
.chat-side{width:230px;flex-shrink:0;background:#fff;border:1px solid #eee;border-radius:12px;display:flex;flex-direction:column;overflow:hidden}
.chat-side-head{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-bottom:1px solid #f0f0f0;font-size:12px;font-weight:700;color:#999;text-transform:uppercase;letter-spacing:.5px}
.chs-add{border:none;background:#eef2f8;color:#1a3a6b;width:26px;height:26px;border-radius:7px;cursor:pointer;display:flex;align-items:center;justify-content:center}
.ch-list{overflow-y:auto;padding:6px}
.ch-item{width:100%;display:flex;align-items:center;gap:8px;padding:9px 10px;border:none;background:none;border-radius:8px;cursor:pointer;font-size:13.5px;color:#444;text-align:left}
.ch-item:hover{background:#f5f7fa}
.ch-item.aktiv{background:#eef2f8;color:#1a3a6b;font-weight:600}
.ch-item .ch-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ch-item .ch-del{color:#c9ccd2;font-size:15px}
.ch-item .ch-del:hover{color:#e74c3c}
.chat-main{flex:1;display:flex;flex-direction:column;background:#fff;border:1px solid #eee;border-radius:12px;overflow:hidden;min-width:0}
.chat-head{padding:12px 16px;border-bottom:1px solid #f0f0f0}
.chat-head h2{font-size:15px;font-weight:700;color:#1a1a1a;margin:0}
.chat-head p{font-size:12px;color:#999;margin:2px 0 0}
.chat-msgs{flex:1;overflow-y:auto;padding:14px 16px;display:flex;flex-direction:column;gap:12px}
.chat-leer{margin:auto;text-align:center;color:#bbb;font-size:13px;display:flex;flex-direction:column;align-items:center;gap:8px}
.chat-leer i{font-size:34px;opacity:.5}
.msg{display:flex;gap:10px;max-width:82%}
.msg.eigen{flex-direction:row-reverse;align-self:flex-end;text-align:right}
.msg-av{width:34px;height:34px;border-radius:50%;flex-shrink:0;color:#fff;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center}
.msg-body{min-width:0}
.msg-kopf{display:flex;gap:8px;align-items:baseline;margin-bottom:2px}
.msg.eigen .msg-kopf{flex-direction:row-reverse}
.msg-name{font-size:12.5px;font-weight:700;color:#333}
.msg-zeit{font-size:11px;color:#bbb}
.msg-text{font-size:14px;line-height:1.45;color:#222;background:#f4f6f9;padding:8px 12px;border-radius:12px;display:inline-block;word-break:break-word}
.msg.eigen .msg-text{background:#1a3a6b;color:#fff}
.msg-text .mention{color:#1a3a6b;font-weight:600}
.msg.eigen .msg-text .mention{color:#cfe0ff}
.msg-sys{align-self:center;font-size:12px;color:#888;background:#f5f5f5;padding:5px 12px;border-radius:20px}
.chat-input{display:flex;gap:8px;padding:10px 12px;border-top:1px solid #f0f0f0;align-items:flex-end}
.chat-input textarea{flex:1;resize:none;border:1.5px solid #e2e4e8;border-radius:10px;padding:9px 12px;font-size:14px;font-family:inherit;max-height:120px;background:#fff;color:#222}
.chat-input textarea:focus{outline:none;border-color:var(--prim)}
@media(max-width:720px){.chat-wrap{flex-direction:column;height:auto}.chat-side{width:auto}.ch-list{display:flex;overflow-x:auto}.ch-item{white-space:nowrap}.chat-main{height:70vh}.msg{max-width:92%}}

/* Canvas: Auswahl (für Touch – kein Hover) */
.slide .el.sel{border-color:#9db8de}
.slide .el.sel .el-grip{display:flex}
.slide .el.sel .el-rz{display:block}
.slide .el-linie.sel .li-grip{display:flex}
.slide .el.sel .el-farbe{display:inline-block}
.slide .el-grip .el-mini,.slide .li-grip .el-mini{background:#fff;color:var(--prim);border:none;border-radius:3px;width:15px;height:14px;cursor:pointer;padding:0;font-size:12px;line-height:1;font-weight:700}
.slide .el-klemme{min-width:60px}

/* ===== Chat v2: links, kleiner, Mitglieder, Modal ===== */
.chat-side{padding:0;overflow-y:auto}
.chs-sec{padding:8px 6px;border-bottom:1px solid #f2f3f5}
.chs-sec:last-child{border-bottom:none}
.chs-head{display:flex;align-items:center;justify-content:space-between;padding:4px 8px 6px;font-size:11px;font-weight:700;color:#9aa2ac;text-transform:uppercase;letter-spacing:.5px}
.chs-leer{padding:4px 10px 8px;font-size:12px;color:#c0c5cc}
.mini-av{position:relative;width:24px;height:24px;border-radius:50%;flex-shrink:0;color:#fff;font-size:10px;font-weight:700;display:inline-flex;align-items:center;justify-content:center}
.pres{position:absolute;right:-1px;bottom:-1px;width:9px;height:9px;border-radius:50%;border:2px solid #fff}
.pres.on{background:#2ecc71}
.pres.off{background:#c3c8d0}
.mem-item{width:100%;display:flex;align-items:center;gap:9px;padding:6px 8px;border:none;background:none;border-radius:8px;cursor:pointer;text-align:left}
.mem-item:hover{background:#f5f7fa}
.mem-txt{min-width:0;display:flex;flex-direction:column;line-height:1.2}
.mem-name{font-size:13px;color:#3a3f47;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mem-status{font-size:11px;color:#a2a8b0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* kleinere, immer linksbündige Nachrichten */
.chat-msgs{gap:9px}
.msg{max-width:88%;gap:8px}
.msg.eigen{flex-direction:row;align-self:flex-start;text-align:left}
.msg.eigen .msg-kopf{flex-direction:row}
.msg-av{width:28px;height:28px;font-size:11px}
.msg-name{font-size:12px}
.msg-du{color:#b3b9c2;font-weight:500}
.msg-text{font-size:13px;padding:6px 10px;border-radius:10px}
.msg.eigen .msg-text{background:#e9eef6;color:#1f2d45}
.msg.eigen .msg-text .mention{color:#1a3a6b}
/* edesk-Modal */
.ed-modal-bg{position:fixed;inset:0;background:rgba(20,30,50,.5);z-index:9600;display:flex;align-items:center;justify-content:center;padding:18px}
.ed-modal{background:#fff;border-radius:14px;width:100%;max-width:400px;box-shadow:0 20px 60px rgba(0,0,0,.25);overflow:hidden}
.ed-modal-head{display:flex;align-items:center;justify-content:space-between;padding:15px 18px;border-bottom:1px solid #f0f1f3}
.ed-modal-head h3{margin:0;font-size:16px;font-weight:700;color:#1a1a1a}
.ed-modal-x{border:none;background:none;color:#aab;cursor:pointer;font-size:20px;display:flex}
.ed-modal-x:hover{color:#666}
.ed-modal-body{padding:16px 18px}
.ed-lbl{display:block;font-size:12px;font-weight:600;color:#6b7280;margin-bottom:5px}
.ed-inp{width:100%;border:1.5px solid #e2e4e8;border-radius:9px;padding:9px 12px;font-size:14px;font-family:inherit;background:#fff;color:#222}
.ed-inp:focus{outline:none;border-color:var(--prim)}
.ed-modal-foot{display:flex;justify-content:flex-end;gap:8px;padding:12px 18px 16px}

/* ===== Chat v3: Ungelesen, Menü, Popups, Mitglieder ===== */
.ch-item{position:relative}
.ch-item.hasnew .ch-name{font-weight:600;color:#1a1a1a}
.ch-mute{color:#c3c8d0;font-size:14px;margin-left:auto}
.ubadge{margin-left:auto;background:#1a3a6b;color:#fff;font-size:11px;font-weight:700;min-width:18px;height:18px;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;padding:0 5px}
.ch-mute + .ubadge{margin-left:6px}
.ubadge.ment{background:#e53935}
.chat-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.chat-head-txt{min-width:0}
.chat-menu-btn{border:none;background:none;color:#8a929c;cursor:pointer;width:34px;height:34px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:19px;flex-shrink:0}
.chat-menu-btn:hover{background:#f2f4f7;color:#1a3a6b}
.msg-av{cursor:pointer}
/* Popup-Menü */
.pop-bg{position:fixed;inset:0;z-index:9500}
.pop-menu{position:fixed;background:#fff;border:1px solid #e7e9ee;border-radius:11px;box-shadow:0 10px 34px rgba(0,0,0,.16);padding:5px;min-width:190px;z-index:9501}
.pop-item{display:flex;align-items:center;gap:9px;width:100%;border:none;background:none;padding:9px 11px;border-radius:8px;font-size:13.5px;color:#3a3f47;cursor:pointer;text-align:left}
.pop-item i{font-size:17px;color:#6b7280}
.pop-item:hover{background:#f4f6f9}
.pop-item.danger{color:#e53935}.pop-item.danger i{color:#e53935}
/* Mitglieder-Modal */
.mm-list{display:flex;flex-direction:column;gap:2px}
.mm-row{display:flex;align-items:center;gap:9px;padding:6px 4px;border-radius:8px}
.mm-row:hover{background:#f6f8fa}
.mm-name{flex:1;min-width:0;font-size:13.5px;color:#333;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mm-tag{font-size:10.5px;background:#eef2f8;color:#1a3a6b;padding:1px 6px;border-radius:5px;font-weight:600;margin-left:4px}
.mm-x{border:none;background:none;color:#c3c8d0;cursor:pointer;font-size:17px;display:flex;padding:3px}
.mm-x:hover{color:#e53935}
.mm-add{border:1px solid #dfe3ea;background:#fff;color:#1a3a6b;border-radius:7px;padding:4px 10px;font-size:12.5px;cursor:pointer;display:inline-flex;align-items:center;gap:4px}
.mm-add:hover{background:#eef2f8}
.km-check{display:flex;align-items:flex-start;gap:8px;font-size:12.5px;color:#555;cursor:pointer;line-height:1.35}
.km-check input{margin-top:2px}

/* Dashboard-Chat-Widget */
.dc-row{display:flex;align-items:center;gap:9px;padding:8px 6px;border-radius:8px;text-decoration:none}
.dc-row:hover{background:#f5f7fa}
.dc-av,.dc-hash{width:30px;height:30px;border-radius:50%;flex-shrink:0;color:#fff;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center}
.dc-hash{background:#eef2f8;color:#1a3a6b;font-size:16px}
.dc-name{font-size:13px;font-weight:600;color:#2a2f36;white-space:nowrap;flex-shrink:0;max-width:38%;overflow:hidden;text-overflow:ellipsis}
.dc-prev{flex:1;min-width:0;font-size:12px;color:#a2a8b0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dc-row .ubadge{margin-left:0}

/* ===== Chat v4: Status, Hinweis, Emoji, Reaktionen, Upload ===== */
.chat-hint{align-items:center;gap:7px;background:#fff7e6;border:1px solid #ffe2a8;color:#8a6d1f;font-size:12.5px;padding:8px 12px;margin:0 0 -2px;border-radius:8px}
.chat-hint i{font-size:15px}
.chat-input{align-items:flex-end;gap:6px}
.ci-btn{border:none;background:#f2f4f7;color:#5a6472;width:36px;height:36px;border-radius:9px;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:18px;flex-shrink:0}
.ci-btn:hover{background:#e7ebf1;color:#1a3a6b}
.anhang-box{align-items:center;gap:10px;padding:8px 10px;background:#f5f7fa;border:1px solid #e7ebf1;border-radius:10px;margin-bottom:8px}
.av-img{height:46px;border-radius:6px}
.av-file{display:flex;align-items:center;gap:6px;font-size:13px;color:#444}
.av-x{margin-left:auto;border:none;background:#e7ebf1;color:#666;width:26px;height:26px;border-radius:7px;cursor:pointer;display:flex;align-items:center;justify-content:center}
.av-x:hover{background:#e53935;color:#fff}
/* Emoji-Panel */
.pop-panel{position:fixed;background:#fff;border:1px solid #e7e9ee;border-radius:12px;box-shadow:0 10px 34px rgba(0,0,0,.16);padding:8px;z-index:9501}
.emoji-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:2px;max-width:230px}
.emoji-grid.quick{grid-template-columns:repeat(4,1fr)}
.emoji-b{border:none;background:none;font-size:20px;width:38px;height:36px;border-radius:8px;cursor:pointer}
.emoji-b:hover{background:#f2f4f7}
/* Nachricht: Reagieren-Button + Reaktionen */
.msg-react{border:none;background:none;color:#c3c8d0;cursor:pointer;font-size:15px;padding:0 2px;opacity:0;transition:opacity .12s}
.msg:hover .msg-react,.msg-react:focus{opacity:1}
.msg-react:hover{color:#1a3a6b}
.reak-host:empty{display:none}
.reak-row{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}
.reak{border:1px solid #e4e7ec;background:#fff;border-radius:12px;padding:1px 8px;font-size:13px;cursor:pointer;line-height:1.5}
.reak span{font-size:11px;color:#888;font-weight:600}
.reak.ich{background:#eef2fb;border-color:#c3d4ee}
.reak.ich span{color:#1a3a6b}
/* Bild-/Datei-Nachricht */
.msg-bild img{max-width:230px;max-height:230px;border-radius:10px;display:block;margin-top:2px;cursor:pointer}
.msg-datei{display:inline-flex;align-items:center;gap:7px;background:#f4f6f9;border:1px solid #e7ebf1;border-radius:9px;padding:8px 12px;font-size:13px;color:#1a3a6b;text-decoration:none;margin-top:2px}
.msg-datei:hover{background:#eef2f8}
.msg.eigen .msg-datei{background:#e9eef6}

/* ===== Chat v5: 3-Spalten + Editor + Lightbox ===== */
.chat-wrap3{display:flex;gap:12px;height:calc(100vh - 150px);min-height:440px}
.chat-col{width:230px;flex-shrink:0;background:#fff;border:1px solid #eee;border-radius:12px;overflow-y:auto}
.chat-right{width:250px}
.chat-wrap3 .chat-main{flex:1;display:flex;flex-direction:column;background:#fff;border:1px solid #eee;border-radius:12px;overflow:hidden;min-width:0}
.lade-alt{text-align:center;color:#c3c8d0;padding:6px;font-size:18px}
/* Lightbox */
.lb-bg{position:fixed;inset:0;background:rgba(10,15,25,.86);z-index:9700;display:flex;align-items:center;justify-content:center;padding:24px}
.lb-img{max-width:94vw;max-height:90vh;border-radius:8px;box-shadow:0 10px 50px rgba(0,0,0,.5)}
.lb-x{position:absolute;top:16px;right:18px;background:rgba(255,255,255,.12);border:none;color:#fff;width:42px;height:42px;border-radius:50%;cursor:pointer;font-size:22px;display:flex;align-items:center;justify-content:center}
.lb-x:hover{background:rgba(255,255,255,.25)}
/* Bild-Editor */
.be-modal{background:#fff;border-radius:14px;width:min(96vw,900px);max-height:92vh;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 20px 60px rgba(0,0,0,.3)}
.be-bar{display:flex;align-items:center;gap:5px;padding:10px 12px;border-bottom:1px solid #eef0f3;flex-wrap:wrap}
.be-t,.be-a{width:34px;height:34px;border:1px solid #e2e4e8;background:#fff;border-radius:8px;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#555;font-size:17px}
.be-t.aktiv{background:#1a3a6b;border-color:#1a3a6b;color:#fff}
.be-t:hover,.be-a:hover{background:#eef2f8}
.be-colors{display:flex;gap:4px;margin:0 6px}
.be-col{width:22px;height:22px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px #d0d4da;cursor:pointer}
.be-col.aktiv{box-shadow:0 0 0 2px #1a3a6b}
.be-canvaswrap{flex:1;overflow:auto;background:#33383f;display:flex;align-items:center;justify-content:center;padding:14px}
#beCv{max-width:100%;max-height:74vh;background:#fff;box-shadow:0 4px 20px rgba(0,0,0,.4);touch-action:none;cursor:crosshair}
@media(max-width:900px){.chat-wrap3{flex-direction:column;height:auto}.chat-col{width:auto}.chat-col .chs-sec{display:inline-block}.chat-left,.chat-right{max-height:none}.chat-wrap3 .chat-main{height:66vh}}

/* ===== Chat v7: Rahmen weg + Nachrichten-Status ===== */
.chat-wrap3 .chat-col,.chat-wrap3 .chat-main{border:none;box-shadow:0 1px 3px rgba(20,30,50,.06)}
.msg-status{display:inline-flex;align-items:center;gap:5px;margin-top:5px;font-size:11.5px;font-weight:600;padding:2px 9px;border-radius:12px;width:fit-content}
.msg-status i{font-size:14px}
.st-bearb{background:#fff4e0;color:#b9770f}
.st-fertig{background:#e6f6ec;color:#1f9d55}
.st-versch{background:#eef2fb;color:#3d5a99}
.st-erl{background:#eceff2;color:#5a6472}
.status-host:empty{display:none}
.msg.eigen .msg-status{margin-left:0}

/* Chat v8: Bild ohne Rahmen + Invite-Inline + Editor-Werkzeuge */
.msg-bild{border:none;background:transparent;padding:0;margin:0;cursor:pointer;display:inline-block;line-height:0}
.msg-bild img{border:none;outline:none}
.mm-choice{display:inline-flex;gap:5px;margin-left:auto}
.mm-c{border:1px solid #dfe3ea;background:#fff;color:#1a3a6b;border-radius:7px;padding:4px 9px;font-size:12px;cursor:pointer;display:inline-flex;align-items:center;gap:4px}
.mm-c:hover{background:#eef2f8}
.be-thick{display:inline-flex;gap:3px;margin:0 4px}
.be-th{width:30px;height:30px;border:1px solid #e2e4e8;background:#fff;border-radius:7px;cursor:pointer;display:flex;align-items:center;justify-content:center}
.be-th.aktiv{background:#1a3a6b;border-color:#1a3a6b}
.be-th .dot{background:#555;border-radius:50%}
.be-th.aktiv .dot{background:#fff}
.be-hint{font-size:11.5px;color:#8a929c;padding:0 12px 8px}

/* Chat: Datums-Trenner */
.datum-trenner{display:flex;align-items:center;justify-content:center;margin:10px 0 6px;position:sticky;top:6px;z-index:3;pointer-events:none}
.datum-trenner span{background:#eef1f5;color:#7a828d;font-size:11.5px;font-weight:600;padding:3px 12px;border-radius:12px;box-shadow:0 1px 2px rgba(0,0,0,.05)}

/* Bild-Editor: eigene Farbe + Füllung */
.be-cust{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border:1px solid #e2e4e8;border-radius:7px;cursor:pointer;color:#666;overflow:hidden;position:relative}
.be-cust input[type=color]{position:absolute;inset:-4px;width:140%;height:140%;border:none;padding:0;cursor:pointer;opacity:0}
.be-cust i{pointer-events:none}
.be-fill{display:inline-flex;align-items:center;gap:4px;margin-left:6px;padding-left:8px;border-left:1px solid #eef0f3}
.be-fill-lbl{font-size:11px;color:#8a929c}
.be-fillnone{width:28px;height:28px;border:1px solid #e2e4e8;background:#fff;border-radius:7px;cursor:pointer;color:#888;display:flex;align-items:center;justify-content:center}
.be-fillnone.aktiv{background:#1a3a6b;border-color:#1a3a6b;color:#fff}
.be-fill .be-cust input[type=color]{opacity:1}

/* Bild-Editor: interaktive Textfelder */
.be-stage{position:relative;display:inline-block;max-width:100%;line-height:0}
.be-tb{position:absolute;min-width:28px;border:1px dashed transparent;border-radius:4px;line-height:1.2;z-index:5}
.be-tb:hover,.be-tb:focus-within{border-color:#9db8de;z-index:10}
.be-tb-in{outline:none;padding:4px 6px;font-weight:700;white-space:pre-wrap;min-width:24px;min-height:1em;cursor:text;font-family:'Segoe UI',sans-serif}
.be-tb-move{position:absolute;left:-1px;top:-19px;height:18px;padding:0 6px;display:none;align-items:center;background:var(--prim);color:#fff;font-size:12px;border-radius:4px 4px 0 0;cursor:move}
.be-tb:hover .be-tb-move,.be-tb:focus-within .be-tb-move{display:flex}
.be-tb-rz{position:absolute;right:-7px;bottom:-7px;width:14px;height:14px;background:#fff;border:2px solid var(--prim);border-radius:50%;cursor:ns-resize;display:none}
.be-tb:hover .be-tb-rz,.be-tb:focus-within .be-tb-rz{display:block}
.be-tb-x{position:absolute;right:-9px;top:-19px;width:18px;height:18px;background:#e53935;color:#fff;border:none;border-radius:50%;cursor:pointer;font-size:12px;line-height:1;display:none;align-items:center;justify-content:center;padding:0}
.be-tb:hover .be-tb-x,.be-tb:focus-within .be-tb-x{display:flex}

/* 1.6.5 Fixes */
.be-th .dot{display:inline-block}
.be-modal{width:min(97vw,960px)!important}
.msg-react{opacity:.4!important}
.msg:hover .msg-react{opacity:1!important}
.chat-anfang{display:flex;align-items:center;justify-content:center;gap:6px;color:#9aa2ac;font-size:12px;padding:10px 8px 4px;text-align:center}

/* SLA-Auswertung */
.sla-tbl th{font-size:11px;color:#8a929c;text-transform:uppercase;letter-spacing:.4px;text-align:left;padding:8px 10px;border-bottom:1px solid #eef0f3;white-space:nowrap}
.sla-tbl td{padding:9px 10px;border-bottom:1px solid #f4f5f7;font-size:13.5px}
.prio-dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px}
.p-dringend{background:#e53935}.p-hoch{background:#e67e22}.p-normal{background:#3d8bd4}.p-niedrig{background:#9aa2ac}
.quote-badge{font-weight:700;font-size:12px;padding:1px 8px;border-radius:10px}
.q-gut{background:#e6f6ec;color:#1f9d55}.q-mittel{background:#fff4e0;color:#b9770f}.q-schlecht{background:#fdecea;color:#e53935}
.quote-gut{color:#1f9d55}.quote-mittel{color:#b9770f}.quote-schlecht{color:#e53935}
.sla-bad{color:#e53935;font-weight:600}

/* Avatar-Bild-Upload im Profil */
.profil-ava-wrap{position:relative;display:inline-block}
.ava-edit,.ava-del{position:absolute;bottom:0;width:30px;height:30px;border-radius:50%;border:2px solid #fff;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:15px;box-shadow:0 2px 6px rgba(0,0,0,.2)}
.ava-edit{right:0;background:#1a3a6b;color:#fff}
.ava-edit:hover{background:#264d86}
.ava-del{right:34px;background:#fff;color:#e53935}
.ava-del:hover{background:#fdecea}

/* SLA-Diagramme */
.sla-mobile{display:none}
.sla-charts{display:grid;grid-template-columns:auto 1fr 1fr;gap:22px;align-items:center}
.donut-wrap{display:flex;gap:10px}
.donut-box{width:118px}
.donut{width:118px;height:118px}
.donut-val{font-size:23px;font-weight:800;fill:#1a2b45}
.donut-lbl{font-size:12px;fill:#8a929c;font-weight:600}
.chart-col{min-width:0}
.chart-title{font-size:12px;color:#8a929c;font-weight:700;text-transform:uppercase;letter-spacing:.4px;margin-bottom:10px}
.hbar-row{display:grid;grid-template-columns:96px 160px 1fr;align-items:center;gap:12px;margin:7px 0;font-size:13px}
.hbar-lbl{display:flex;align-items:center;white-space:nowrap}
.hbar-track{height:14px;background:#eef1f5;border-radius:7px;overflow:hidden}
.hbar-fill{height:100%;border-radius:7px;transition:width .4s}
.hbar-val{text-align:left;font-weight:700;font-size:12.5px;color:#4a5568;white-space:nowrap}
.zbar-track{position:relative;height:14px;background:#eef1f5;border-radius:7px}
.zbar-ist{position:absolute;left:0;top:0;height:100%;background:#3d8bd4;border-radius:7px}
.zbar-ist.over{background:#e53935}
.zbar-ziel{position:absolute;top:-3px;width:2px;height:20px;background:#1a2b45}
.zbar-ziel::after{content:'';position:absolute;top:-3px;left:-2px;width:6px;height:6px;border-radius:50%;background:#1a2b45}
@media(max-width:820px){.sla-charts{grid-template-columns:1fr}.donut-wrap{justify-content:center}}
@media(max-width:720px){.sla-content{display:none}.sla-mobile{display:block}}

/* SLA: klarere Verletzungen */
.sla-ok{color:#1f9d55;font-weight:600;white-space:nowrap}
.sla-ueber{color:#e53935;font-weight:600;font-size:12.5px;white-space:nowrap}
.sla-tbl .muted{color:#9aa2ac}

/* ===== Auftrag-Modul ===== */
.filter-bar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.such-feld{position:relative;flex:1;min-width:220px}
.such-feld i{position:absolute;left:11px;top:50%;transform:translateY(-50%);color:#9aa2ac}
.such-feld input{width:100%;padding:9px 12px 9px 34px;border:1px solid var(--line);border-radius:9px;background:#fff}
.chip-row{display:flex;gap:6px;flex-wrap:wrap}
.chip{border:1px solid var(--line);background:#fff;color:#5a6472;border-radius:16px;padding:6px 14px;font-size:13px;cursor:pointer}
.chip.aktiv{background:#1a3a6b;border-color:#1a3a6b;color:#fff}
.auf-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px}
.auf-karte{text-align:left;background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px;cursor:pointer;display:flex;flex-direction:column;gap:7px;transition:box-shadow .12s,border-color .12s}
.auf-karte:hover{box-shadow:0 4px 16px rgba(20,30,50,.08);border-color:#c9d3e2}
.auf-top{display:flex;justify-content:space-between;align-items:center;gap:8px}
.auf-nr{font-weight:700;color:#1a2b45;font-size:13.5px}
.auf-status{font-size:11.5px;font-weight:700;padding:2px 9px;border-radius:11px;white-space:nowrap}
.auf-kunde{font-weight:600;color:#111;font-size:15px}
.auf-meta{display:flex;gap:14px;flex-wrap:wrap;color:#6b7280;font-size:12.5px}
.auf-meta i{font-size:14px;margin-right:2px}
.auf-akt{margin-top:2px;font-size:12.5px;color:#5a6472;border-top:1px solid #f2f4f7;padding-top:7px}
.muted{color:#9aa2ac}
.auf-form{max-width:none}
.feld-grid{display:flex;flex-direction:column;gap:12px}
.feld-2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.form-foot{display:flex;justify-content:flex-end;gap:10px;margin-top:8px}
.auf-detail{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start}
.auf-col{display:flex;flex-direction:column;gap:16px;min-width:0}
.info-row{display:flex;gap:12px;padding:7px 0;border-bottom:1px solid #f4f5f7;font-size:14px}
.info-row:last-child{border-bottom:none}
.info-row .k{color:#8a929c;min-width:96px;flex-shrink:0}
.stat-btn{border:none;cursor:pointer;display:inline-flex;align-items:center;gap:4px}
.auf-ta{width:100%;min-height:88px;border:1px solid var(--line);border-radius:9px;padding:10px;font:inherit;resize:vertical;background:#fff}
.ta-foot{display:flex;justify-content:flex-end;margin-top:8px}
.verlauf{display:flex;flex-direction:column}
.verl-item{display:flex;gap:11px;padding:10px 0;border-bottom:1px solid #f4f5f7}
.verl-item:last-child{border-bottom:none}
.verl-ico{width:34px;height:34px;border-radius:9px;display:flex;align-items:center;justify-content:center;font-size:17px;flex-shrink:0}
.verl-body{flex:1;min-width:0}
.verl-top{display:flex;justify-content:space-between;gap:8px}
.verl-label{font-weight:600;color:#1a2b45;font-size:14px}
.verl-ts{color:#9aa2ac;font-size:12px;white-space:nowrap}
.verl-sub{color:#8a929c;font-size:12.5px}
.verl-bem{margin-top:4px;font-size:13.5px;color:#374151;background:#f7f8fa;border-radius:7px;padding:7px 10px}
.bild-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px}
.bild-item{position:relative;display:flex;flex-direction:column;gap:6px}
.bild-thumb{width:100%;height:110px;border:none;border-radius:9px;background-size:cover;background-position:center;cursor:pointer;background-color:#eef1f5}
.bild-notiz{width:100%;min-height:42px;border:1px solid var(--line);border-radius:7px;padding:6px 8px;font:inherit;font-size:12.5px;resize:vertical;background:#fff}
.bild-del{position:absolute;top:6px;right:6px;width:26px;height:26px;border:none;border-radius:7px;background:rgba(0,0,0,.55);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center}
.bild-del:hover{background:#e53935}
.akt-choose{display:flex;flex-direction:column;gap:6px}
.akt-opt{display:flex;align-items:center;gap:9px;text-align:left;border:1px solid var(--line);background:#fff;border-radius:9px;padding:10px 12px;cursor:pointer;font-size:14px}
.akt-opt:hover{background:#f5f7fa}
.akt-opt.aktiv{border-color:#1a3a6b;background:#eef2fb}
.akt-opt i{font-size:18px}
.ed-grp{font-weight:700;color:#1a2b45;margin:14px 0 4px;font-size:13px;border-bottom:1px solid #eef0f3;padding-bottom:4px}
.btn.danger{color:#e53935;border-color:#f0c4c2}
.btn.danger:hover{background:#fdecea}
@media(max-width:800px){.auf-detail{grid-template-columns:1fr}}

/* SLA-Tabellen: volle Breite, einzeilig */
.sla-tbl{width:100%;border-collapse:collapse}
.sla-tbl th,.sla-tbl td{white-space:nowrap}
.sla-tbl td .muted{white-space:nowrap}

/* Auftrag-Detail: volle Breite, mobile-first */
.auf-stack{display:flex;flex-direction:column;gap:16px;max-width:none}
.info-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px}
.info-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px 16px}
.ic-head{display:flex;align-items:center;gap:7px;font-weight:700;color:#1a2b45;font-size:14px;margin-bottom:8px;padding-bottom:8px;border-bottom:1px solid #f2f4f7}
.ic-head i{color:#5a6472}
.ao-2col{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.bild-badge{position:absolute;top:6px;left:6px;width:24px;height:24px;border-radius:7px;background:rgba(26,58,107,.85);color:#fff;display:flex;align-items:center;justify-content:center;font-size:13px}
.bild-thumb{position:relative;height:150px}
/* Auftrag-Formular breiter, 2-spaltig */
.auf-form{max-width:none}
.auf-form .section{margin-bottom:14px}
@media(min-width:760px){.auf-form .feld-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.auf-form .feld-grid .feld-2,.auf-form .feld-grid .field:first-child{grid-column:1 / -1}}
@media(max-width:760px){.ao-2col{grid-template-columns:1fr}}

/* Auftrag-Detail: volle Breite + Threads */
.auf-detail{max-width:none}
.info-leer{color:#9aa2ac;font-size:13.5px;padding:4px 0}
.thread{display:flex;flex-direction:column;gap:9px;margin-bottom:10px}
.thread:empty{margin:0}
.thread-item{background:#f7f8fa;border:1px solid #eef0f3;border-radius:9px;padding:9px 11px}
.thr-top{display:flex;justify-content:space-between;gap:8px;align-items:baseline}
.thr-user{font-weight:600;color:#1a2b45;font-size:13px}
.thr-ts{color:#9aa2ac;font-size:11.5px;white-space:nowrap}
.thr-text{margin-top:4px;font-size:14px;color:#22303f;white-space:pre-wrap;word-break:break-word}
.thr-akt{display:flex;gap:4px;justify-content:flex-end;margin-top:5px}
.thr-akt button{border:none;background:none;color:#9aa2ac;cursor:pointer;padding:2px 5px;border-radius:6px;font-size:14px}
.thr-akt button:hover{background:#eceff3;color:#e53935}
.thread-add{border-top:1px solid #f2f4f7;padding-top:10px}

/* Stammdaten-Dialog: 2-spaltig, kompakter */
.ed-form .ef{display:flex;flex-direction:column;gap:4px;margin-bottom:10px}
.ed-form .feld-2{margin-bottom:0}
.ed-form .ed-grp{margin:14px 0 8px}
.ed-form .ed-lbl{margin:0}

/* Auftrag: Bilder-Kachel + kleinere Aktions-Icons + Verlauf-Löschen + Thread-Icons sichtbar */
.bild-add{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;height:150px;border:2px dashed #cbd5e1;border-radius:9px;background:#f8fafc;color:#5a6472;cursor:pointer;font-size:12px;font-weight:600}
.bild-add:hover{border-color:#1a3a6b;color:#1a3a6b;background:#eef2fb}
.bild-add i{font-size:32px}
.bild-del{width:22px;height:22px;font-size:12px;top:5px;right:5px}
.verl-item{position:relative}
.verl-del{position:absolute;top:8px;right:0;border:none;background:none;color:#c7ccd4;cursor:pointer;padding:3px 6px;border-radius:6px;font-size:15px;line-height:1}
.verl-del:hover{background:#fdecea;color:#e53935}
.thr-akt button{color:#8a929c}
.thr-akt button:hover{color:#e53935;background:#eceff3}
.auf-nr-txt{font-weight:600;color:#1a2b45;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Verfügbarkeits-Icon auf Avataren */
.av-badge{position:absolute;right:-3px;bottom:-3px;width:15px;height:15px;border-radius:50%;background:#fff;box-shadow:0 0 0 1.5px #fff;display:flex;align-items:center;justify-content:center;font-size:11px;line-height:1}
.av-badge i{font-size:12px}
.av-badge-lg{width:26px;height:26px;right:-2px;bottom:-2px;box-shadow:0 0 0 2.5px #fff}
.av-badge-lg i{font-size:20px}

/* Profil: Bild-Aktionen kleiner, Status-Icon groß & klickbar */
.profil-ava{position:relative;cursor:pointer}
.ava-edit,.ava-del{width:26px;height:26px;font-size:12px}
.ava-edit i,.ava-del i{font-size:13px}

/* Neue Ticket-Status */
.status-in_betracht{background:#eef2fb;color:#1a3a6b}
.status-in_entwicklung{background:#e8f1fb;color:#1a5a8b}

/* SLA: Abstand über Überblick + einzeilige Verletzungen */
.sla-abstand{margin-top:22px}
.sla-zeile{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;flex-wrap:nowrap}
.sla-ueber{color:#e53935;font-weight:600;font-size:12.5px;white-space:nowrap}
.sla-tbl th.sortable{cursor:pointer;user-select:none}
.sla-tbl th.sortable:hover{background:#f5f7fa}
.sla-tbl th .pfeil{display:inline-block;width:0;height:0;margin-left:5px;vertical-align:middle;border-left:4px solid transparent;border-right:4px solid transparent}
.sla-tbl th.sorted.asc .pfeil{border-bottom:5px solid #1a3a6b}
.sla-tbl th.sorted.desc .pfeil{border-top:5px solid #1a3a6b}

/* Auswertungs-Tabellen: kleiner Avatar in Zellen */
.u-zelle{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.avatar.av-sm{width:26px;height:26px;font-size:10px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:#fff;flex-shrink:0}
.avatar.av-sm .av-badge{width:12px;height:12px;right:-2px;bottom:-2px}
.avatar.av-sm .av-badge i{font-size:10px}

/* Dashboard: Aktivität einklappbar + Archiv-Hinweis */
.section-head.klapp{cursor:pointer;user-select:none}
.klapp-btn{border:none;background:none;color:#8a929c;cursor:pointer;padding:2px 6px;border-radius:6px;font-size:16px}
.klapp-btn:hover{background:#eef1f5;color:#1a3a6b}
.list.zu{display:none}
.akt-hinweis{display:flex;align-items:center;gap:7px;color:#8a929c;font-size:12.5px;padding:9px 2px 2px;border-top:1px solid #f2f4f7;margin-top:6px}

/* Aufgaben-Verlauf: Satzform mit Avatar */
.tl-item .tl-body{flex:1;min-width:0}
.tl-item .tl-meta{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.tl-item .tl-meta .avatar.av-sm{width:20px;height:20px;font-size:9px}
.tl-item .tl-meta .avatar.av-sm .av-badge{width:10px;height:10px;right:-2px;bottom:-2px}
.tl-item .tl-meta .avatar.av-sm .av-badge i{font-size:8px}


/* Verfügbarkeits-Kreis auf Avataren (klein, rund, überall) */
.av-dot{position:absolute;right:-2px;bottom:-2px;width:11px;height:11px;border-radius:50%;box-shadow:0 0 0 2px #fff;display:block}
.av-dot-lg{width:22px;height:22px;right:2px;bottom:2px;box-shadow:0 0 0 3px #fff}
.avatar.av-sm .av-dot{width:9px;height:9px;box-shadow:0 0 0 1.5px #fff}
.tl-item .tl-meta .avatar.av-sm .av-dot{width:8px;height:8px}

/* Einstellungen: Profilbild + Profil-Link */
.pb-zeile{display:flex;gap:18px;align-items:center;flex-wrap:wrap}
.pb-vorschau{width:84px;height:84px;border-radius:50%;background-size:cover;background-position:center;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:26px;flex-shrink:0}
.pb-akt{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.pb-hinweis{width:100%;color:#8a929c;font-size:12.5px}
.ava-link{display:inline-flex;align-items:center;gap:6px;margin-top:8px;font-size:12.5px;color:#1a3a6b;text-decoration:none}
.ava-link:hover{text-decoration:underline}

/* Stammdaten-Dialog: fast volle Breite, kein Scrollen */
.ed-modal.ed-wide{max-width:none;width:calc(100vw - 120px);max-height:calc(100vh - 120px);margin:60px auto;display:flex;flex-direction:column;overflow:hidden}
.ed-modal.ed-wide .ed-modal-body{flex:1;overflow:auto;padding-bottom:6px}
.ed-modal.ed-wide .ed-form{grid-template-columns:auto 1fr auto 1fr;gap:12px 20px;align-items:center}
.ed-modal.ed-wide .ed-form .ed-grp.gspan{grid-column:1 / -1}
@media(max-width:1100px){.ed-modal.ed-wide{width:calc(100vw - 40px);margin:20px auto;max-height:calc(100vh - 40px)}.ed-modal.ed-wide .ed-form{grid-template-columns:auto 1fr}}
@media(max-width:640px){.ed-modal.ed-wide .ed-form{grid-template-columns:1fr}.ed-modal.ed-wide .ed-lbl{margin-top:6px}}


/* Hinweis/Notiz: Aktionen sichtbar mit Text */
.thr-btn{display:inline-flex;align-items:center;gap:5px;border:1px solid var(--line);background:#fff;color:#5a6472;border-radius:7px;padding:4px 10px;font-size:12px;font-weight:600;cursor:pointer;font-family:inherit}
.thr-btn:hover{background:#f2f5f9;color:#1a3a6b;border-color:#c9d3e2}
.thr-btn.thr-del:hover{background:#fdecea;color:#e53935;border-color:#f0c4c2}
.thr-akt{gap:6px}
/* Dialog: Label links neben Feld */
.ed-form .ed-lbl{margin:0;white-space:nowrap;color:#5a6472;font-size:13px}
.ed-form .ed-grp.gspan{grid-column:1 / -1}
/* Dashboard: Meine Tickets */
.mt-row{display:flex;align-items:center;gap:10px;padding:9px 2px;border-bottom:1px solid #f4f5f7;text-decoration:none;color:inherit}
.mt-row:last-child{border-bottom:none}
.mt-row:hover{background:#f8fafc}
.mt-prio{width:6px;height:26px;border-radius:3px;flex-shrink:0}
.mt-main{flex:1;min-width:0;display:flex;flex-direction:column}
.mt-titel{font-size:13.5px;color:#111;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mt-sub{font-size:11.5px;color:#9aa2ac}
.mehr-link{font-size:12.5px;color:#1a3a6b;text-decoration:none}
.mehr-link:hover{text-decoration:underline}
/* Verfügbarkeits-Punkt kleiner (wie früher) */
.av-dot{width:9px;height:9px;right:-1px;bottom:-1px;box-shadow:0 0 0 1.5px #fff}
.av-dot-lg{width:14px;height:14px;right:4px;bottom:4px;box-shadow:0 0 0 2px #fff}

/* Einheitliche KPI-Reihe über Übersichten */
.kpi-reihe{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px}
.kpi-reihe:empty{display:none}
@media(max-width:760px){.kpi-reihe{grid-template-columns:repeat(2,1fr)}}

/* Verlinkte Nutzer-Zellen */
a.u-zelle{color:inherit;text-decoration:none}
a.u-zelle:hover{color:inherit;text-decoration:none}
a.avatar.av-sm{text-decoration:none}

/* SLA/Auswertung: Balken schmaler, Zeitwert einzeilig */

.hbar-row .hbar-val{white-space:nowrap;text-align:left;font-variant-numeric:tabular-nums}


/* Benutzer: Rollen-Spalte breit genug fürs Icon */
.zelle-rolle{white-space:nowrap;min-width:150px}
.rolle-badge{white-space:nowrap;display:inline-flex;align-items:center;gap:5px}

/* Auftrag-neu: volle Breite, mehrspaltig */
.auf-form{max-width:none}
.auf-form .feld-grid{grid-template-columns:repeat(3,1fr)}
@media(max-width:1100px){.auf-form .feld-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.auf-form .feld-grid{grid-template-columns:1fr}}

/* Dashboard: Untertitel innerhalb einer Box (z.B. zugewiesene Tickets unter Terminen) */
.dash-untertitel{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px;font-weight:600;color:#5a6472;margin:16px 0 6px;padding-top:12px;border-top:1px solid #f0f2f5}
.dash-untertitel .mehr-link{font-weight:500}

/* ===== Kalender ===== */
.kal-toolbar{display:flex;align-items:center;gap:12px;margin-bottom:14px;flex-wrap:wrap}
.kal-nav-group{display:flex;align-items:center;gap:6px}
.kal-nav-btn{display:inline-flex;align-items:center;gap:5px;padding:7px 14px;border:1.5px solid var(--line,#e2e6ea);border-radius:8px;font-size:13px;font-weight:600;color:#444;background:#fff;cursor:pointer;white-space:nowrap}
.kal-nav-btn:hover{border-color:var(--prim,#1a3a6b);color:var(--prim,#1a3a6b)}
.kal-nav-today{background:var(--prim,#1a3a6b);color:#fff;border-color:var(--prim,#1a3a6b)}
.kal-nav-today:hover{color:#fff}
.kal-nav-titel{font-size:16px;font-weight:700;color:#111;padding:0 10px;white-space:nowrap}
.kal-view-switcher{display:flex;border:1.5px solid var(--line,#e2e6ea);border-radius:8px;overflow:hidden}
.kal-view-btn{padding:7px 14px;font-size:13px;font-weight:600;color:#555;background:#fff;border:none;border-right:1px solid var(--line,#e2e6ea);cursor:pointer;white-space:nowrap}
.kal-view-btn:last-child{border-right:none}
.kal-view-btn:hover{background:#f5f7fa}
.kal-view-btn.active{background:var(--prim,#1a3a6b);color:#fff}
.kal-actions{display:flex;gap:8px;margin-left:auto;align-items:center}
.kal-grid{display:grid;grid-template-columns:repeat(7,1fr);border:1px solid #eee;border-radius:10px;overflow:hidden;background:#fff}
.kal-head{background:#fafbfc;border-bottom:1px solid #eee;border-right:1px solid #f0f0f0;padding:8px;font-size:11px;font-weight:700;color:#999;text-align:center;text-transform:uppercase}
.kal-head:last-child{border-right:none}
.kal-cell{border-right:1px solid #f0f0f0;border-bottom:1px solid #f0f0f0;padding:6px;min-height:96px;cursor:pointer}
.kal-cell:nth-child(7n+7){border-right:none}
.kal-cell:hover{background:#fafbfd}
.kal-cell-other{background:#fcfcfc;color:#ccc}
.kal-cell-heute{box-shadow:inset 0 0 0 2px var(--prim,#1a3a6b)}
.kal-cell-num{font-size:12px;font-weight:700;color:#555;margin-bottom:4px}
.kal-cell-num-heute{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;background:var(--prim,#1a3a6b);color:#fff}
.kal-termin{display:block;font-size:10.5px;color:#fff;border-radius:4px;padding:2px 5px;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration:none;cursor:pointer}
.kal-t-zeit{font-size:9.5px;font-weight:700;opacity:.85;margin-right:3px}
.kal-mehr-chip{font-size:10px;color:#999;margin-top:2px;cursor:pointer}
.kal-mehr-chip:hover{color:var(--prim,#1a3a6b)}
.kal-legende{display:flex;flex-wrap:wrap;gap:14px;align-items:center;margin-top:14px;font-size:12px;color:#666}
.kal-leg-titel{font-weight:700;color:#888}
.kal-leg-item{display:inline-flex;align-items:center;gap:6px}
.kal-leg-dot{width:11px;height:11px;border-radius:50%}
.te-grid{display:grid;grid-template-columns:auto 1fr;gap:11px 14px;align-items:center}
.te-grid .ed-lbl{margin:0;white-space:nowrap;color:#5a6472;font-size:13px}
@media(max-width:768px){.kal-toolbar{flex-direction:column;align-items:stretch}.kal-actions{margin-left:0}.kal-cell{min-height:70px}}

/* Pagination-Buttons */
.pager{display:flex;gap:6px;flex-wrap:wrap;justify-content:center;margin-top:14px}
.pager-btn{min-width:34px;height:34px;padding:0 10px;border:1px solid var(--line,#e2e6ea);background:#fff;border-radius:8px;font-size:13px;font-weight:600;color:#5a6472;cursor:pointer}
.pager-btn:hover{border-color:var(--prim,#1a3a6b);color:var(--prim,#1a3a6b)}
.pager-btn.aktiv{background:var(--prim,#1a3a6b);color:#fff;border-color:var(--prim,#1a3a6b)}

/* Dashboard: zugewiesene Tickets als row (Statuspill rechts, Nummernkasten links) */
.row-date .m{font-size:11px;font-weight:700;text-transform:none}
.dash-untertitel{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px;font-weight:600;color:#5a6472;margin:14px 0 2px;padding-top:12px;border-top:1px solid #f0f2f5}

/* aufgaben-sla: Bearbeitungszeit-Balken breiter, weniger Leerraum */
.sla-charts .chart-col:last-child .hbar-row{grid-template-columns:96px minmax(180px,1fr) auto}
.sla-charts .chart-col .hbar-row{grid-template-columns:96px minmax(140px,1fr) auto}

/* Einheitliche Sortierköpfe – aktive Spalte blau hervorgehoben (data + sla-tbl) */
table.data th.sortable:hover,.sla-tbl th.sortable:hover{background:#eaf1fb;color:#1a3a6b}
table.data th.sorted,.sla-tbl th.sorted{background:#1a3a6b;color:#fff}
table.data th.sorted .pfeil,.sla-tbl th.sorted .pfeil{border-bottom-color:#fff}
table.data th.sorted.asc .pfeil,.sla-tbl th.sorted.asc .pfeil{border-bottom:5px solid #fff;border-top:0}
table.data th.sorted.desc .pfeil,.sla-tbl th.sorted.desc .pfeil{border-top:5px solid #fff;border-bottom:0}

/* Topbar To-do-Button */
.tb-todo{display:inline-flex;align-items:center;gap:6px;margin-left:8px;padding:5px 11px;border-radius:8px;font-size:12.5px;font-weight:600;color:#1a3a6b;background:#eaf1fb;text-decoration:none;white-space:nowrap}
.tb-todo:hover{background:#dbe8fa}
.tb-todo i{font-size:15px}
@media(max-width:600px){.tb-todo-txt{display:none}.tb-todo{padding:5px 8px}}

/* To-do-Liste */
.td-neu{display:flex;gap:9px;margin-bottom:16px;flex-wrap:wrap;align-items:center}
.td-input{flex:1;min-width:220px;padding:10px 13px;border:1.5px solid var(--line,#e2e6ea);border-radius:9px;font-size:14px;font-family:inherit}
.td-input:focus{outline:none;border-color:var(--prim,#1a3a6b)}
.td-prio-sel{padding:10px 12px;border:1.5px solid var(--line,#e2e6ea);border-radius:9px;font-size:13px;font-family:inherit;background:#fff}
.td-stats{display:flex;gap:10px;align-items:center;margin-bottom:14px;flex-wrap:wrap}
.td-chip{font-size:13px;color:#5a6472}
.td-chip b{color:#1a3a6b}
.td-toggle{margin-left:auto;border:1px solid var(--line,#e2e6ea);background:#fff;border-radius:8px;padding:6px 12px;font-size:12.5px;font-weight:600;color:#5a6472;cursor:pointer}
.td-toggle:hover,.td-toggle.aktiv{border-color:var(--prim,#1a3a6b);color:var(--prim,#1a3a6b)}
.td-liste{background:#fff;border:1px solid #eef0f3;border-radius:11px;overflow:hidden}
.td-row{display:flex;align-items:flex-start;gap:12px;padding:13px 15px;border-bottom:1px solid #f3f5f7}
.td-row:last-child{border-bottom:none}
.td-row:hover{background:#fafbfd}
.td-check{border:none;background:none;cursor:pointer;color:#c3c8d0;padding:0;font-size:22px;line-height:1;margin-top:1px}
.td-check .ti-circle-check-filled{color:#27ae60}
.td-check:hover{color:#1a3a6b}
.td-main{flex:1;min-width:0}
.td-text{font-size:14px;color:#222;line-height:1.4;word-break:break-word}
.td-meta{font-size:11.5px;color:#9aa2ac;margin-top:4px;display:flex;align-items:center;gap:6px}
.td-prio-dot{width:9px;height:9px;border-radius:50%;flex-shrink:0}
.td-done .td-text{text-decoration:line-through;color:#aab1ba}
.td-akt{display:flex;gap:5px;flex-shrink:0}
.td-abtn{border:1px solid var(--line,#e2e6ea);background:#fff;border-radius:7px;width:30px;height:30px;display:flex;align-items:center;justify-content:center;color:#8a929c;cursor:pointer}
.td-abtn:hover{background:#f2f5f9;color:#1a3a6b;border-color:#c9d3e2}
.td-abtn.td-del:hover{background:#fdecea;color:#e53935;border-color:#f0c4c2}
.td-edit{display:flex;gap:8px;align-items:center;flex-wrap:wrap}

/* ===== Gateways-Modul ===== */
.demo-hinweis{background:#fff8ec;border:1px solid #f4e2c4;color:#8a6d3b;border-radius:8px;padding:8px 14px;font-size:13px;margin-bottom:18px;display:flex;align-items:center;gap:8px}
.badge-gruen{background:#e6f7ec;color:#1f9d55}
.badge-grau{background:#eef0f3;color:#8a929c}
.sig-line{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.sig-bars{display:inline-flex;align-items:flex-end;gap:2px;height:16px}
.sig-bar{width:4px;background:#e2e6ea;border-radius:1px}
.sig-bar:nth-child(1){height:5px}.sig-bar:nth-child(2){height:8px}.sig-bar:nth-child(3){height:12px}.sig-bar:nth-child(4){height:16px}
.sig-dbm{font-size:11.5px;color:#888;font-variant-numeric:tabular-nums}
.risk-chip{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;white-space:nowrap}
.risk-dot{width:9px;height:9px;border-radius:50%}
.st-kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin-bottom:20px}
.st-kpi{background:#fff;border:1px solid #eef0f3;border-radius:10px;padding:14px 16px}
.st-kpi .label{font-size:12px;color:#8a929c;margin-bottom:4px}
.st-kpi .value{font-size:24px;font-weight:700;color:#1a2b48}
.st-kpi.prio{display:flex;align-items:center;gap:10px}
.st-kpi.prio .dot,.st-kpi .k-top .dot{width:11px;height:11px;border-radius:50%;flex-shrink:0}
.st-kpi .k-top{display:flex;align-items:center;gap:7px;margin-bottom:4px}
.leds{display:flex;gap:14px}
.led{display:flex;flex-direction:column;align-items:center;gap:3px;font-size:10px;color:#888}
.led .bulb{width:14px;height:14px;border-radius:50%;box-shadow:0 0 0 2px #fff,0 0 4px rgba(0,0,0,.15)}
.led .bulb.blink{animation:ledblink 1.4s ease-in-out infinite}
@keyframes ledblink{50%{opacity:.35}}

.bereich-titel{font-size:15px;font-weight:600;color:#222;margin:22px 0 12px}
.pill{display:inline-flex;align-items:center;gap:5px;font-size:11.5px;font-weight:600;padding:2px 9px;border-radius:20px;white-space:nowrap}

.tele{display:flex;flex-direction:column}
.tele .row{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid #f3f5f7;font-size:13px}
.tele .row:last-child{border-bottom:none}
.tele .row .k{color:#8a929c}
@media(max-width:820px){.gw-detail-grid{grid-template-columns:1fr!important}}

.karten-legende{display:flex;gap:18px;flex-wrap:wrap;margin-bottom:12px;font-size:12.5px;color:#666}
.kl-item{display:inline-flex;align-items:center;gap:6px}
.kl-dot{width:12px;height:12px;border-radius:50%;box-shadow:0 0 0 2px #fff,0 0 3px rgba(0,0,0,.2)}

/* Gateways/Störungen: kompaktere breite Tabellen, kein Rechts-Scrollen */
.st-kpi-grid{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}
body.gw-schmal .data th,body.gw-schmal .data td{padding:7px 9px;font-size:12.5px}
body.gw-schmal .data{font-size:12.5px}
.table-wrap{max-width:100%;overflow-x:auto}

/* Todo: Fälligkeit */
.td-faellig{padding:7px 10px;border:1px solid var(--line,#e2e6ea);border-radius:8px;font-size:13px;background:#fff;color:#444}
.td-faellig-txt{color:#e67e22;font-weight:600}
.td-faellig-ueber{color:#e74c3c;font-weight:700}

/* Aufgaben-Lane: Name/Avatar verlinkt, ohne Hover-Effekt */
a.lane-name-link{color:inherit;text-decoration:none}
a.lane-name-link:hover{color:inherit;text-decoration:none}
a.lane-av{cursor:pointer}

/* Navigations-Badge (z.B. offene Schulungen) */
.nav-item .nav-badge{margin-left:auto;background:#e74c3c;color:#fff;font-size:11px;font-weight:700;min-width:18px;height:18px;padding:0 5px;border-radius:9px;display:inline-flex;align-items:center;justify-content:center}

/* ===== Kalender-Verwaltung ===== */
.kv-tabs{display:flex;gap:4px;border-bottom:2px solid #eef0f3;margin-bottom:18px}
.kv-tab{padding:9px 18px;font-size:13px;font-weight:600;color:#888;background:none;border:none;border-bottom:2px solid transparent;margin-bottom:-2px;cursor:pointer}
.kv-tab:hover{color:#1a3a6b}
.kv-tab.active{color:#1a3a6b;border-bottom-color:#1a3a6b}
.ort-chip{display:inline-block;background:#eef2f8;color:#3a5a80;font-size:11.5px;padding:2px 9px;border-radius:12px;margin:1px 0}
.kal-farb-dot{width:11px;height:11px;border-radius:50%;flex-shrink:0}
.chk-zeile{display:flex;align-items:center;gap:8px;font-size:13px;color:#444;cursor:pointer}
.chk-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:8px}

/* Zurück-Link (einheitlich) */
.zurueck-link{font-size:13px;color:#1a5a8b;text-decoration:none;display:inline-flex;align-items:center;gap:2px}
.zurueck-link:hover{text-decoration:underline}
/* Kalender-Verwaltung Menü-Kacheln */
.kv-menu{display:flex;flex-direction:column;gap:12px;max-width:640px}
.kv-karte{display:flex;align-items:center;gap:16px;padding:18px 20px;background:#fff;border:1px solid #e6e9ee;border-radius:12px;text-decoration:none;color:inherit;transition:border-color .15s,box-shadow .15s}
.kv-karte:hover{border-color:#1a5a8b;box-shadow:0 2px 10px rgba(26,90,139,.08)}
.kv-karte-ico{width:46px;height:46px;border-radius:11px;display:flex;align-items:center;justify-content:center;font-size:22px;flex-shrink:0}
.kv-karte-titel{font-size:15px;font-weight:600;color:#1a2b48}
.kv-karte-sub{font-size:12.5px;color:#8a929c;margin-top:2px}
.kv-karte-pfeil{margin-left:auto;color:#c5ccd4;font-size:20px}

/* ===== Dispo Woche/Tag ===== */
.dispo-scroll{overflow-x:auto;border:1px solid #e6e9ee;border-radius:10px}
.dispo-tbl{border-collapse:collapse;width:100%;min-width:640px;font-size:12.5px}
.dispo-tbl th{background:#f7f9fb;padding:8px 10px;text-align:center;font-weight:600;color:#33475b;border-bottom:2px solid #e6e9ee;border-right:1px solid #eef0f3;white-space:nowrap}
.dispo-tbl th.dispo-eck{text-align:left;position:sticky;left:0;z-index:2;background:#f7f9fb;min-width:150px}
.dispo-tbl th.dispo-heute{background:#eef5ff;color:#1a5a8b}
.dispo-datum{font-size:11px;color:#9aa2ac;font-weight:400;margin-top:1px}
.dispo-mon{padding:8px 10px;border-bottom:1px solid #eef0f3;border-right:1px solid #eef0f3;white-space:nowrap;position:sticky;left:0;background:#fff;z-index:1}
.dispo-mon-name{font-weight:600;color:#222;margin-left:6px}
.dispo-rolle{display:inline-block;font-size:10px;color:#8e44ad;background:#f3ebfa;padding:1px 6px;border-radius:8px;margin-left:6px;text-transform:capitalize}
.dispo-zelle{vertical-align:top;padding:5px;border-bottom:1px solid #eef0f3;border-right:1px solid #eef0f3;min-width:120px;height:74px;cursor:pointer;transition:background .1s}
.dispo-zelle:hover{background:#fafcff}
.dispo-zelle-tag{height:auto;min-height:200px;min-width:180px}
.dispo-tag th{min-width:180px}
.dispo-termin{background:#fff;border:1px solid #e6e9ee;border-left:3px solid #1a5a8b;border-radius:5px;padding:4px 7px;margin-bottom:4px;cursor:pointer;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.dispo-termin:hover{box-shadow:0 2px 5px rgba(0,0,0,.1)}
.dt-zeit{font-size:11px;color:#1a5a8b;font-weight:600}
.dt-titel{font-size:12px;color:#222;font-weight:500;line-height:1.25}
.dt-ort{font-size:11px;color:#9aa2ac}
.dispo-blocker{color:#fff;border-radius:5px;padding:3px 7px;margin-bottom:4px;font-size:11.5px;font-weight:600;cursor:pointer}
.dispo-blocker i{font-size:12px}
.dispo-leer{color:#c5ccd4;font-size:18px;text-align:center;padding:6px;cursor:pointer;border-radius:5px}
.dispo-leer:hover{background:#eef5ff;color:#1a5a8b}

/* ===== Dispo Zeitraster (Outlook-Stil, 6-20 Uhr, kein vertikales Scroll) ===== */
.dispo-legende{display:flex;flex-wrap:wrap;gap:8px 14px;margin-bottom:10px;padding:8px 12px;background:#f7f9fb;border:1px solid #e6e9ee;border-radius:8px}
.dl-item{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;color:#33475b}
.dl-dot{width:11px;height:11px;border-radius:50%;display:inline-block;flex-shrink:0}
.dl-rolle{font-size:10px;color:#8e44ad;background:#f3ebfa;padding:1px 6px;border-radius:8px;text-transform:capitalize}
.zr-wrap{border:1px solid #e6e9ee;border-radius:10px;overflow-x:auto;overflow-y:hidden;position:relative;background:#fff}
.zr-grid{display:grid;min-width:min-content}
.zr-kopf{display:contents}
.zr-kopf>div{position:sticky;top:0;z-index:5;background:#f7f9fb;border-bottom:1px solid #dfe4ea;padding:6px 6px;text-align:center;font-weight:600;font-size:12px;color:#33475b}
.zr-kopf2>div{top:31px;border-bottom:2px solid #dfe4ea;padding:3px 4px;font-size:11px}
.zr-eck{position:sticky;left:0;z-index:6!important;border-right:1px solid #e6e9ee}
.zr-eck2{z-index:7!important}
.zr-tag-kopf{border-right:2px solid #dfe4ea}
.zr-tag-kopf.zr-heute{background:#eef5ff;color:#1a5a8b}
.zr-kopf-tag{border-right:1px solid #eef0f3}
.zr-kopf-tag.zr-heute{background:#eef5ff;color:#1a5a8b}
.zr-kopf-dat{font-weight:400;color:#9aa2ac;font-size:11px}
.zr-mon-kopf{display:flex;align-items:center;justify-content:center;gap:3px;border-right:1px solid #eef0f3}
.zr-mon-kopf:nth-child(odd){background:#fbfcfd}
.zr-mon-kuerzel{font-size:10.5px;color:#66707c}
.zr-body{display:contents}
.zr-achse,.zr-spalte{padding-top:8px}
.zr-achse{position:sticky;left:0;z-index:4;background:#fbfcfd;border-right:1px solid #e6e9ee}
.zr-stunde{position:relative;border-bottom:1px solid #f0f2f5}
.zr-uhr{position:absolute;top:-7px;right:6px;font-size:10.5px;color:#9aa2ac;background:#fbfcfd;padding:0 2px}
.zr-achse .zr-stunde:first-child .zr-uhr{top:3px}
.zr-spalte{position:relative;border-right:1px solid #eef0f3;cursor:pointer}
.zr-woche-multi .zr-spalte:nth-child(5n+1){border-right:2px solid #dfe4ea}
.zr-linie{position:absolute;left:0;right:0;height:1px;background:#f4f6f8}
.zr-pause{position:absolute;left:0;right:0;background:repeating-linear-gradient(45deg,#fff4e6,#fff4e6 5px,#ffe9cc 5px,#ffe9cc 10px);border-top:1px dashed #f0b862;border-bottom:1px dashed #f0b862;pointer-events:none;z-index:1}
.zr-pause span{position:absolute;left:3px;top:1px;font-size:9px;color:#c47d1a;font-weight:600}
.zr-blocker-flaeche{position:absolute;top:0;left:0;right:0;border:1px solid;border-radius:3px;cursor:pointer;z-index:2}
.zr-blk-label{position:absolute;top:2px;left:2px;right:2px;color:#fff;font-size:10.5px;font-weight:600;padding:1px 5px;border-radius:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.zr-blk-label i{font-size:10px}
.zr-termin{position:absolute;background:#eef5ff;border:1px solid #dbe7f5;border-left:3px solid #1a5a8b;border-radius:4px;padding:2px 5px;overflow:hidden;cursor:pointer;z-index:3;box-shadow:0 1px 2px rgba(0,0,0,.05)}
.zr-termin:hover{box-shadow:0 3px 8px rgba(0,0,0,.16);z-index:4}
.zr-t-zeit{font-size:10px;color:#1a5a8b;font-weight:600;line-height:1.15}
.zr-t-titel{font-size:11.5px;color:#222;font-weight:500;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.zr-t-ort{font-size:10px;color:#9aa2ac;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.zr-jetzt{position:absolute;left:0;right:-2px;height:2px;background:#e2001a;pointer-events:none;z-index:6}
.zr-ohnezeit{padding:3px;border-right:1px solid #eef0f3;background:#fafbfc}
.zr-chip{background:#eef2f7;border:1px solid #dde3ea;border-radius:4px;padding:2px 5px;font-size:10.5px;margin:2px 0;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.zr-chip:hover{background:#e0e8f2}

/* Aufgaben Offen/Erledigt Tabs */
.tab-cnt{display:inline-block;min-width:18px;padding:0 5px;margin-left:5px;background:#e6ebf2;color:#556;border-radius:9px;font-size:11px;font-weight:600;text-align:center}
.kal-view-btn.active .tab-cnt{background:rgba(255,255,255,.25);color:#fff}

/* Route-Box im Termin-Detail (Kalender) */
.route-titel{font-size:13px;font-weight:600;color:#33475b;margin-bottom:7px;display:flex;align-items:center;gap:6px}
.route-box{background:#f8faff;border:1px solid #e6eef8;border-radius:10px;padding:12px 14px}
.route-lade{font-size:12.5px;color:#999}
.route-zeile{display:flex;gap:10px;align-items:flex-start;margin-bottom:8px}
.route-zeile:last-child{margin-bottom:0}
.route-ico{width:26px;height:26px;border-radius:50%;background:#9fb6cf;color:#fff;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:13px}
.route-lbl{font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.4px;color:#999;margin-bottom:1px}
.route-adr{font-size:13px;font-weight:600;color:#222}
.route-meta{display:flex;flex-wrap:wrap;gap:14px;margin-top:8px;padding-top:8px;border-top:1px solid #e9eef5;font-size:12px;color:#667}
.route-meta span{display:flex;align-items:center;gap:4px}
.route-los{margin-top:8px;padding:7px 11px;background:#eef5ff;border:1px solid #cfe0f5;border-radius:8px;font-size:13px;color:#1a3a6b;display:flex;align-items:center;gap:6px;flex-wrap:wrap}

/* Terminüberschneidung-Warnung */
.ueber-warn{background:#fff8f0;border:1px solid #f0c896;border-radius:9px;padding:11px 13px}
.uw-titel{font-size:13px;font-weight:700;color:#c47d1a;display:flex;align-items:center;gap:6px;margin-bottom:5px}
.uw-text{font-size:12.5px;color:#7a5a2a;margin-bottom:4px}
.uw-liste{margin:0 0 4px;padding-left:20px;font-size:12.5px;color:#33475b}
.uw-liste li{margin-bottom:2px}

/* Live-Ansicht (wo ist jeder Monteur gerade) */
.live-kopf{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;font-size:14px;font-weight:600;color:#33475b;margin-bottom:14px}
.live-auto{font-size:11.5px;font-weight:400;color:#9aa2ac;margin-left:6px}
.live-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
.live-karte{background:#fff;border:1px solid #e6e9ee;border-radius:10px;padding:12px 14px;box-shadow:0 1px 3px rgba(0,0,0,.04)}
.live-top{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.live-top .avatar{width:38px;height:38px;font-size:13px;flex-shrink:0}
.live-top>div{flex:1;min-width:0}
.live-name{font-size:14px;font-weight:600;color:#1a3a6b;text-decoration:none}
.live-name:hover{text-decoration:underline}
.live-status{font-size:12px;font-weight:600;display:flex;align-items:center;gap:4px;margin-top:1px;color:#66707c}
.live-cnt{background:#eef2f7;color:#556;border-radius:9px;min-width:22px;height:22px;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600;flex-shrink:0}
.live-info{font-size:12.5px;color:#33475b;line-height:1.4;border-top:1px solid #f0f2f5;padding-top:8px}
.live-wo{color:#9aa2ac;font-size:11.5px}
.live-zeit{font-size:11.5px;color:#667;margin-top:2px;display:flex;align-items:center;gap:4px}
.live-frei{color:#9aa2ac}

/* Blocker-Balken-Zeile über der Uhrzeit (Woche/Tag) */
.zr-kopf-blk>div{background:#fbfcfd;border-bottom:1px solid #eef0f3;padding:2px 3px}
.zr-eck-blk{color:#c47d1a;text-align:center;z-index:7!important}
.zr-blk-zelle{border-right:1px solid #eef0f3;display:flex;flex-direction:column;gap:2px;min-height:8px}
.zr-woche-multi .zr-blk-zelle:nth-child(5n+1){border-right:2px solid #dfe4ea}
.zr-blk-balken{color:#fff;font-size:10px;font-weight:600;padding:2px 5px;border-radius:3px;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}
/* Tagesansicht: Termin-Titel komplett zeigen (umbrechen statt abschneiden) */
.zr-tag-modus .zr-t-titel{white-space:normal;overflow:visible;line-height:1.25}
.zr-tag-modus .zr-termin{overflow:visible;height:auto!important;min-height:38px}
.live-int{width:auto;display:inline-block;padding:3px 8px;font-size:12.5px;font-weight:400}
.live-ist{color:#27ae60;font-weight:700}
.live-farb{display:inline-block;width:10px;height:10px;border-radius:50%;vertical-align:middle;margin-right:4px}
.live-status-badge{font-size:12.5px;font-weight:600;display:inline-flex;align-items:center;gap:4px}
