:root{color-scheme:light;box-sizing:border-box;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}html{scroll-padding-top:env(safe-area-inset-top,0px)}body{margin:0;padding:0;font:14px -apple-system,BlinkMacSystemFont,sans-serif;background:#fff;color:#000}img{max-width:100%}[hidden]:not([hidden=until-found i]){display:none!important}


:root{
  --bg:#F6F7F9; --surface:#FFFFFF; --surface-2:#EFF1F4; --surface-3:#E4E7EC;
  --line:#DFE3E9; --line-soft:#E9ECF1;
  --text:#1B1F26; --text-2:#5A6472; --text-3:#8A93A2;
  --accent:#4C6FE7; --accent-soft:#EAEEFC; --accent-text:#3355CC;
  --green:#18A06A; --green-soft:#E4F5ED; --green-text:#0F7A4F;
  --amber:#E0A211; --amber-soft:#FCF2DC; --amber-text:#8F6405;
  --red:#DC4A41;   --red-soft:#FBE8E7;   --red-text:#B3322A;
  --shadow:0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.10);
  --shadow-lg:0 4px 12px rgba(16,24,40,.10), 0 12px 28px rgba(16,24,40,.08);
  --radius:10px; --radius-sm:7px;
  --sans:"Source Sans 3", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display:"Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#15181D; --surface:#1D2128; --surface-2:#242932; --surface-3:#2E343E;
    --line:#2F353F; --line-soft:#272C35;
    --text:#E7EAEF; --text-2:#A2ABB9; --text-3:#727C8B;
    --accent:#7A96F0; --accent-soft:#242C46; --accent-text:#A6B9F7;
    --green:#3FBF8B; --green-soft:#183025; --green-text:#5FD3A4;
    --amber:#EDB53C; --amber-soft:#332810; --amber-text:#F0C566;
    --red:#EE6259;   --red-soft:#3A1E1C;   --red-text:#F58880;
    --shadow:0 1px 2px rgba(0,0,0,.32), 0 1px 3px rgba(0,0,0,.24);
    --shadow-lg:0 4px 14px rgba(0,0,0,.40), 0 14px 32px rgba(0,0,0,.30);
  }
}
:root[data-theme="dark"]{
  --bg:#15181D; --surface:#1D2128; --surface-2:#242932; --surface-3:#2E343E;
  --line:#2F353F; --line-soft:#272C35;
  --text:#E7EAEF; --text-2:#A2ABB9; --text-3:#727C8B;
  --accent:#7A96F0; --accent-soft:#242C46; --accent-text:#A6B9F7;
  --green:#3FBF8B; --green-soft:#183025; --green-text:#5FD3A4;
  --amber:#EDB53C; --amber-soft:#332810; --amber-text:#F0C566;
  --red:#EE6259;   --red-soft:#3A1E1C;   --red-text:#F58880;
  --shadow:0 1px 2px rgba(0,0,0,.32), 0 1px 3px rgba(0,0,0,.24);
  --shadow-lg:0 4px 14px rgba(0,0,0,.40), 0 14px 32px rgba(0,0,0,.30);
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);font-family:var(--sans);font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased}
h1,h2,h3,h4{font-family:var(--display);margin:0;text-wrap:balance;letter-spacing:-.01em}
button{font-family:inherit;font-size:inherit;color:inherit}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:4px}
@media (prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;transition-duration:.01ms!important}}

.app{display:grid;grid-template-columns:232px 1fr;min-height:100vh}
.sidebar{background:var(--surface);border-right:1px solid var(--line);display:flex;flex-direction:column;gap:3px;padding:16px 12px;position:sticky;top:0;height:100vh;overflow-y:auto}
.brand{display:flex;align-items:center;gap:10px;padding:6px 8px 14px}
.brand-mark{width:28px;height:28px;border-radius:8px;background:var(--accent);color:#fff;display:grid;place-items:center;font-family:var(--display);font-weight:700;font-size:13px;flex:none}
.brand-name{font-family:var(--display);font-weight:600;font-size:15px;letter-spacing:-.02em;line-height:1.15}
.brand-sub{font-size:11px;color:var(--text-3)}
.nav-label{font-size:10.5px;font-weight:600;letter-spacing:.09em;text-transform:uppercase;color:var(--text-3);padding:14px 8px 6px}
.nav-item{display:flex;align-items:center;gap:10px;width:100%;padding:8px 10px;border:0;border-radius:var(--radius-sm);background:transparent;color:var(--text-2);cursor:pointer;text-align:left;font-weight:500;transition:background .12s,color .12s}
.nav-item:hover{background:var(--surface-2);color:var(--text)}
.nav-item[aria-current="true"]{background:var(--accent-soft);color:var(--accent-text);font-weight:600}
.nav-item svg{width:17px;height:17px;flex:none}
.nav-badge{margin-left:auto;font-size:11px;font-weight:600;background:var(--red);color:#fff;border-radius:9px;padding:0 6px;font-variant-numeric:tabular-nums}
.nav-proj{display:flex;align-items:center;gap:9px;width:100%;padding:6px 10px;border:0;border-radius:var(--radius-sm);background:transparent;color:var(--text-2);cursor:pointer;text-align:left;font-size:13px;transition:background .12s,color .12s}
.nav-proj:hover{background:var(--surface-2);color:var(--text)}
.nav-proj[aria-current="true"]{background:var(--surface-2);color:var(--text);font-weight:600}
.nav-proj span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sidebar-foot{margin-top:auto;padding-top:12px;border-top:1px solid var(--line-soft)}
.me{display:flex;align-items:center;gap:9px;padding:6px 8px}
.me-name{font-weight:600;font-size:13px;line-height:1.2}
.me-role{font-size:11px;color:var(--text-3)}

.main{min-width:0;display:flex;flex-direction:column}
.topbar{display:flex;align-items:center;gap:16px;padding:13px 26px;border-bottom:1px solid var(--line);background:var(--surface);position:sticky;top:0;z-index:20}
.page-title{font-size:17px;font-weight:600}
.page-sub{font-size:12.5px;color:var(--text-3);margin-top:1px}
.topbar-right{margin-left:auto;display:flex;align-items:center;gap:8px}
.content{padding:22px 26px 56px;max-width:1440px;width:100%}

.btn{display:inline-flex;align-items:center;gap:7px;padding:7px 13px;border-radius:var(--radius-sm);border:1px solid var(--line);background:var(--surface);cursor:pointer;font-weight:600;font-size:13px;transition:background .12s,border-color .12s}
.btn:hover{background:var(--surface-2)}
.btn-primary{background:var(--accent);border-color:var(--accent);color:#fff}
.btn-primary:hover{filter:brightness(.94)}
.btn-icon{padding:0;width:32px;height:32px;justify-content:center}
.btn svg{width:15px;height:15px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.avatar{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-family:var(--display);font-size:10.5px;font-weight:600;color:#fff;flex:none;letter-spacing:.02em}
.avatar.lg{width:34px;height:34px;font-size:12.5px}
.avatar.sm{width:21px;height:21px;font-size:9px}

.status{display:inline-flex;align-items:center;gap:6px;font-size:11.5px;font-weight:600;padding:3px 9px 3px 7px;border-radius:20px;white-space:nowrap}
.status::before{content:"";width:7px;height:7px;border-radius:50%;flex:none}
.status.gruen{background:var(--green-soft);color:var(--green-text)}
.status.gruen::before{background:var(--green)}
.status.gelb{background:var(--amber-soft);color:var(--amber-text)}
.status.gelb::before{background:var(--amber)}
.status.rot{background:var(--red-soft);color:var(--red-text)}
.status.rot::before{background:var(--red)}
.dot{width:9px;height:9px;border-radius:50%;flex:none;display:inline-block}
.dot.gruen{background:var(--green)} .dot.gelb{background:var(--amber)} .dot.rot{background:var(--red)}

.bar{height:6px;border-radius:4px;background:var(--surface-3);overflow:hidden}
.bar > i{display:block;height:100%;border-radius:4px}
.bar.gruen > i{background:var(--green)} .bar.gelb > i{background:var(--amber)} .bar.rot > i{background:var(--red)}
.num{font-variant-numeric:tabular-nums}
.muted{color:var(--text-2)}
.tiny{font-size:11.5px}
.sect-head{display:flex;align-items:baseline;gap:10px;margin:26px 0 12px}
.sect-head:first-child{margin-top:0}
.sect-head h2{font-size:14.5px;font-weight:600}
.sect-head .hint{font-size:12px;color:var(--text-3)}
.view{display:none}
.view.on{display:block}



/* ---------- Kanban ---------- */
.board-scroll{overflow-x:auto;padding:0 26px 14px;margin:0 -26px}
.board{display:flex;gap:14px;align-items:flex-start;min-width:min-content}
.col{background:var(--surface-2);border-radius:var(--radius);width:286px;flex:none;display:flex;flex-direction:column;max-height:calc(100vh - 210px)}
.col-head{display:flex;align-items:center;gap:8px;padding:11px 13px 9px}
.col-title{font-family:var(--display);font-weight:600;font-size:13px;letter-spacing:.01em}
.col-count{font-size:11px;font-weight:600;color:var(--text-3);background:var(--surface-3);border-radius:10px;padding:0 7px;font-variant-numeric:tabular-nums}
.col-hours{margin-left:auto;font-size:11px;color:var(--text-3);font-variant-numeric:tabular-nums}
.col-body{display:flex;flex-direction:column;gap:8px;padding:0 9px 9px;overflow-y:auto;min-height:56px}
.col-body.drop{outline:2px dashed var(--accent);outline-offset:-3px;border-radius:var(--radius-sm)}
.kcard{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-sm);padding:10px 11px;box-shadow:var(--shadow);cursor:grab;display:flex;flex-direction:column;gap:8px;transition:box-shadow .12s,transform .12s;text-align:left;width:100%;font:inherit}
.kcard:hover{box-shadow:var(--shadow-lg);transform:translateY(-1px)}
.kcard:active{cursor:grabbing}
.kcard.dragging{opacity:.42}
.kcard-top{display:flex;align-items:flex-start;gap:8px}
.kcard-title{font-weight:600;font-size:13.5px;line-height:1.35;flex:1}
.kcard-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:11.5px;color:var(--text-2)}
.kcard-meta .mi{display:inline-flex;align-items:center;gap:4px}
.kcard-meta svg{width:13px;height:13px;opacity:.75}
.kcard-foot{display:flex;align-items:center;gap:8px}
.kcard-foot .bar{flex:1}
.kcard-hours{font-size:11px;color:var(--text-2);font-variant-numeric:tabular-nums;white-space:nowrap}
.tag{font-size:10.5px;font-weight:600;padding:2px 7px;border-radius:5px;background:var(--surface-2);color:var(--text-2);white-space:nowrap}
.due-rot{color:var(--red-text);font-weight:600}
.due-gelb{color:var(--amber-text);font-weight:600}

/* ---------- Dashboard ---------- */
.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin-bottom:6px}
.kpi{padding:14px 15px}
.kpi-label{font-size:11px;color:var(--text-3);font-weight:600;letter-spacing:.05em;text-transform:uppercase}
.kpi-value{font-family:var(--display);font-size:26px;font-weight:600;letter-spacing:-.02em;margin-top:5px;font-variant-numeric:tabular-nums;display:flex;align-items:baseline;gap:7px}
.kpi-unit{font-size:13px;font-weight:500;color:var(--text-3);letter-spacing:0}
.kpi-note{font-size:12px;color:var(--text-2);margin-top:4px}

.pgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:13px}
.pcard{padding:15px 16px 14px;display:flex;flex-direction:column;gap:11px;cursor:pointer;transition:box-shadow .14s,transform .14s;text-align:left;font:inherit;position:relative;overflow:hidden;color:inherit}
.pcard::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px}
.pcard.gruen::before{background:var(--green)} .pcard.gelb::before{background:var(--amber)} .pcard.rot::before{background:var(--red)}
.pcard:hover{box-shadow:var(--shadow-lg);transform:translateY(-1px)}
.pcard-head{display:flex;align-items:flex-start;gap:10px}
.pcard-name{font-family:var(--display);font-weight:600;font-size:15px;line-height:1.25}
.pcard-client{font-size:12px;color:var(--text-3);margin-top:2px}
.pcard-reason{font-size:12px;color:var(--text-2);background:var(--surface-2);border-radius:6px;padding:6px 9px;line-height:1.4}
.pcard-rows{display:flex;flex-direction:column;gap:7px}
.prow{display:flex;align-items:center;gap:9px;font-size:12.5px}
.prow-label{color:var(--text-3);width:72px;flex:none;font-size:11.5px}
.prow .bar{flex:1}
.prow-val{font-variant-numeric:tabular-nums;color:var(--text-2);white-space:nowrap;font-size:12px}
.pcard-foot{display:flex;align-items:center;gap:8px;padding-top:9px;border-top:1px solid var(--line-soft)}
.stack{display:flex}
.stack .avatar{margin-left:-6px;border:2px solid var(--surface)}
.stack .avatar:first-child{margin-left:0}
.override{display:inline-flex;align-items:center;gap:4px;font-size:10.5px;font-weight:600;color:var(--text-3);border:1px dashed var(--line);border-radius:5px;padding:1px 6px}

/* ---------- Tabellen ---------- */
.tablewrap{overflow-x:auto;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow)}
table{border-collapse:collapse;width:100%;font-size:13px;min-width:660px}
th{text-align:left;font-family:var(--display);font-weight:600;font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--text-3);padding:10px 14px;border-bottom:1px solid var(--line);background:var(--surface-2);white-space:nowrap}
td{padding:10px 14px;border-bottom:1px solid var(--line-soft);vertical-align:middle}
tr:last-child td{border-bottom:0}
tbody tr:hover{background:var(--surface-2)}
td.r,th.r{text-align:right;font-variant-numeric:tabular-nums}
.cellname{display:flex;align-items:center;gap:9px}
.linkish{color:var(--accent-text);font-weight:600;cursor:pointer;background:none;border:0;padding:0;text-align:left;font-size:inherit;font-family:inherit}
.linkish:hover{text-decoration:underline}

.load{display:flex;align-items:center;gap:10px;min-width:200px}
.loadbar{flex:1;height:8px;border-radius:4px;background:var(--surface-3);position:relative;overflow:visible}
.loadbar > i{display:block;height:100%;border-radius:4px}
.loadbar > u{position:absolute;top:-3px;bottom:-3px;width:2px;background:var(--text-3);opacity:.5}
.pill{font-size:11px;font-weight:600;padding:2px 8px;border-radius:20px;background:var(--surface-2);color:var(--text-2);white-space:nowrap}
.pill.rot{background:var(--red-soft);color:var(--red-text)}
.pill.gelb{background:var(--amber-soft);color:var(--amber-text)}
.pill.gruen{background:var(--green-soft);color:var(--green-text)}

.seg{display:inline-flex;background:var(--surface-2);border-radius:var(--radius-sm);padding:2px;gap:2px}
.seg button{border:0;background:transparent;padding:5px 11px;border-radius:5px;font-size:12.5px;font-weight:600;color:var(--text-2);cursor:pointer}
.seg button[aria-pressed="true"]{background:var(--surface);color:var(--text);box-shadow:var(--shadow)}

/* ---------- Modal ---------- */
.scrim{position:fixed;inset:0;background:rgba(12,16,22,.46);display:none;align-items:flex-start;justify-content:center;padding:44px 20px;z-index:60;overflow-y:auto}
.scrim.on{display:flex}
.modal{background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow-lg);width:100%;max-width:660px;overflow:hidden;height:max-content}
.modal-head{padding:18px 20px 14px;border-bottom:1px solid var(--line-soft);display:flex;align-items:flex-start;gap:12px}
.modal-title{font-size:17px;font-weight:600;line-height:1.3;flex:1}
.modal-body{padding:18px 20px 22px;display:flex;flex-direction:column;gap:18px}
.modal-close{border:0;background:transparent;cursor:pointer;color:var(--text-3);padding:4px;line-height:0;border-radius:5px}
.modal-close:hover{background:var(--surface-2);color:var(--text)}
.modal-close svg{width:17px;height:17px}
.fgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(148px,1fr));gap:14px}
.field-label{font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--text-3);margin-bottom:5px}
.field-val{font-size:13.5px;display:flex;align-items:center;gap:7px}
.sub-list{display:flex;flex-direction:column;gap:1px}
.sub{display:flex;align-items:center;gap:10px;padding:7px 9px;border-radius:6px}
.sub:hover{background:var(--surface-2)}
.sub input{width:15px;height:15px;accent-color:var(--accent);cursor:pointer;flex:none}
.sub-name{flex:1;font-size:13px}
.sub.done .sub-name{text-decoration:line-through;color:var(--text-3)}
.sub-h{font-size:11.5px;color:var(--text-3);font-variant-numeric:tabular-nums}
.hint-box{background:var(--surface-2);border-radius:8px;padding:11px 13px;font-size:12.5px;color:var(--text-2);line-height:1.5}
.hint-box b{color:var(--text);font-weight:600}
.empty{padding:30px;text-align:center;color:var(--text-3);font-size:13px}

@media (max-width:900px){
  .app{grid-template-columns:1fr}
  .sidebar{position:static;height:auto;flex-direction:row;flex-wrap:wrap;align-items:center;border-right:0;border-bottom:1px solid var(--line);gap:6px}
  .nav-label,.sidebar-foot,.brand-sub{display:none}
  .brand{padding:0 10px 0 4px}
  .nav-item{width:auto}
  .content{padding:18px 16px 48px}
  .board-scroll{padding:0 16px 14px;margin:0 -16px}
  .topbar{padding:12px 16px}
}



/* ---------- Karte: Farbtags, Priorität ---------- */
.kcard{position:relative}
.ftags{display:flex;gap:3px;position:absolute;top:8px;right:9px}
.ftag{width:26px;height:6px;border-radius:3px;flex:none}
.kcard.hatftags .kcard-top{padding-right:70px}
.prio{display:inline-flex;align-items:center;gap:3px;font-size:11px;font-weight:600}
.prio svg{width:12px;height:12px}
.blockinfo{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:600;color:var(--red-text)}
.wdh{display:inline-flex;align-items:center;gap:3px;font-size:11px;color:var(--text-3)}
.mitwirkende{display:flex;margin-left:2px}
.mitwirkende .avatar{margin-left:-5px;border:2px solid var(--surface)}

/* ---------- Spaltenverwaltung ---------- */
.col-head{cursor:default}
.col-menu{border:0;background:transparent;color:var(--text-3);cursor:pointer;padding:2px 4px;border-radius:4px;line-height:0}
.col-menu:hover{background:var(--surface-3);color:var(--text)}
.col-menu svg{width:15px;height:15px}
.col.ziehen{opacity:.5}
.col.dropziel{outline:2px dashed var(--accent);outline-offset:3px}
.col-fertig{font-size:9.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--green-text);background:var(--green-soft);border-radius:4px;padding:1px 5px}
.spalte-neu{width:210px;flex:none}
.spalte-neu button{width:100%;padding:12px;border:1.5px dashed var(--line);background:transparent;border-radius:var(--radius);color:var(--text-3);cursor:pointer;font-weight:600;font-size:13px;display:flex;align-items:center;justify-content:center;gap:7px}
.spalte-neu button:hover{border-color:var(--accent);color:var(--accent-text);background:var(--accent-soft)}
.spalte-neu svg{width:15px;height:15px}

/* ---------- Modal: breiter, zweispaltig ---------- */
.modal.gross{max-width:940px}
.modal-split{display:grid;grid-template-columns:1fr 330px;gap:0;align-items:start}
.modal-left{padding:18px 20px 24px;display:flex;flex-direction:column;gap:17px;min-width:0}
.modal-right{padding:18px 20px 24px;border-left:1px solid var(--line-soft);background:var(--surface-2);display:flex;flex-direction:column;gap:15px;min-height:100%}
@media (max-width:820px){ .modal-split{grid-template-columns:1fr} .modal-right{border-left:0;border-top:1px solid var(--line-soft)} }

.beschreibung{font-size:13.5px;line-height:1.6;color:var(--text-2);white-space:pre-wrap}
.tabs{display:flex;gap:2px;border-bottom:1px solid var(--line);margin-bottom:2px}
.tabs button{border:0;background:transparent;padding:8px 13px;font-size:13px;font-weight:600;color:var(--text-3);cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-1px}
.tabs button:hover{color:var(--text)}
.tabs button[aria-selected="true"]{color:var(--accent-text);border-bottom-color:var(--accent)}
.tabpanel{display:none;padding-top:14px}
.tabpanel.on{display:block}

/* ---------- Chat ---------- */
.chat{display:flex;flex-direction:column;gap:13px;max-height:340px;overflow-y:auto;padding-right:4px}
.msg{display:flex;gap:10px}
.msg-body{flex:1;min-width:0}
.msg-head{display:flex;align-items:baseline;gap:8px;margin-bottom:2px}
.msg-name{font-weight:600;font-size:13px}
.msg-zeit{font-size:11px;color:var(--text-3)}
.msg-text{font-size:13.5px;line-height:1.55;color:var(--text-2);word-wrap:break-word}
.mention{background:var(--accent-soft);color:var(--accent-text);font-weight:600;border-radius:4px;padding:0 3px}
.chat-leer{font-size:13px;color:var(--text-3);padding:14px 0;text-align:center}
.chat-eingabe{display:flex;gap:9px;align-items:flex-start;margin-top:14px;padding-top:14px;border-top:1px solid var(--line-soft);position:relative}
.chat-feld{flex:1;min-height:64px;border:1px solid var(--line);border-radius:8px;padding:9px 11px;font-family:inherit;font-size:13.5px;background:var(--surface);color:var(--text);resize:vertical;line-height:1.5}
.chat-feld:focus{outline:2px solid var(--accent);outline-offset:-1px;border-color:transparent}
.chat-hinweis{font-size:11px;color:var(--text-3);margin-top:6px}
.mentionbox{position:absolute;bottom:100%;left:44px;margin-bottom:6px;background:var(--surface);border:1px solid var(--line);border-radius:9px;box-shadow:var(--shadow-lg);padding:5px;z-index:10;min-width:230px;max-height:200px;overflow-y:auto}
.mentionbox button{display:flex;align-items:center;gap:9px;width:100%;border:0;background:transparent;padding:7px 9px;border-radius:6px;cursor:pointer;text-align:left;font-size:13px}
.mentionbox button:hover,.mentionbox button.aktiv{background:var(--accent-soft);color:var(--accent-text)}

/* ---------- Dateien ---------- */
.dateiliste{display:flex;flex-direction:column;gap:6px}
.datei{display:flex;align-items:center;gap:11px;padding:9px 11px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}
.datei-ico{width:32px;height:32px;border-radius:7px;display:grid;place-items:center;font-size:9.5px;font-weight:700;color:#fff;flex:none;letter-spacing:.02em;font-family:var(--display)}
.datei-n{flex:1;min-width:0}
.datei-name{font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.datei-meta{font-size:11px;color:var(--text-3);margin-top:1px}
.datei-akt{display:flex;gap:3px;flex:none}
.ibtn{border:0;background:transparent;color:var(--text-3);cursor:pointer;padding:5px;border-radius:5px;line-height:0}
.ibtn:hover{background:var(--surface-2);color:var(--text)}
.ibtn svg{width:15px;height:15px}
.quelle{font-size:9.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;padding:1px 5px;border-radius:4px;background:var(--surface-2);color:var(--text-3)}
.quelle.dropbox{background:#E8F1FE;color:#0061FE}
:root[data-theme="dark"] .quelle.dropbox{background:#16294A;color:#7FB0FF}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .quelle.dropbox{background:#16294A;color:#7FB0FF}}
.ablage{border:1.5px dashed var(--line);border-radius:9px;padding:18px;text-align:center;color:var(--text-3);font-size:13px;cursor:pointer;transition:border-color .15s,background .15s}
.ablage:hover{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-text)}
.ablage svg{width:22px;height:22px;margin-bottom:5px;display:block;margin-left:auto;margin-right:auto}

/* ---------- Auswahl-Chips ---------- */
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chip{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);background:var(--surface);border-radius:20px;padding:4px 10px;font-size:12.5px;cursor:pointer;font-weight:500}
.chip:hover{background:var(--surface-2)}
.chip[aria-pressed="true"]{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-text);font-weight:600}
.chip-x{border:0;background:transparent;cursor:pointer;color:var(--text-3);padding:0;margin-left:2px;line-height:0;border-radius:50%}
.chip-x:hover{color:var(--red-text)}
.chip-x svg{width:11px;height:11px;display:block}
.chip .sw{width:11px;height:11px;border-radius:3px;flex:none}

/* ---------- Glocke ---------- */
.glocke{position:relative}
.glocke-punkt{position:absolute;top:4px;right:4px;width:8px;height:8px;border-radius:50%;background:var(--red);border:1.5px solid var(--surface)}
.popover{position:absolute;top:calc(100% + 8px);right:0;width:370px;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow-lg);z-index:70;overflow:hidden;display:none}
.popover.on{display:block}
.pop-head{padding:12px 15px;border-bottom:1px solid var(--line-soft);display:flex;align-items:center;gap:9px}
.pop-head h3{font-size:14px;font-weight:600;flex:1}
.pop-liste{max-height:400px;overflow-y:auto}
.meldung{display:flex;gap:10px;padding:11px 15px;border-bottom:1px solid var(--line-soft);cursor:pointer;text-align:left;width:100%;border:0;background:transparent;font:inherit;color:inherit}
.meldung:hover{background:var(--surface-2)}
.meldung:last-child{border-bottom:0}
.meldung.neu{background:var(--accent-soft)}
.meldung.neu:hover{filter:brightness(.97)}
.meldung-text{flex:1;font-size:13px;line-height:1.45}
.meldung-zeit{font-size:11px;color:var(--text-3);margin-top:3px}
.meldung-ico{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;flex:none;background:var(--surface-2);color:var(--text-2)}
.meldung-ico svg{width:14px;height:14px}

/* ---------- Suche ---------- */
.suchfeld{position:relative;width:270px}
.suchfeld input{width:100%;padding:7px 11px 7px 32px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface-2);font-family:inherit;font-size:13px;color:var(--text)}
.suchfeld input:focus{outline:2px solid var(--accent);outline-offset:-1px;background:var(--surface)}
.suchfeld > svg{position:absolute;left:10px;top:50%;transform:translateY(-50%);width:15px;height:15px;color:var(--text-3);pointer-events:none}
.suchergebnis{position:absolute;top:calc(100% + 6px);left:0;width:440px;background:var(--surface);border:1px solid var(--line);border-radius:11px;box-shadow:var(--shadow-lg);z-index:70;max-height:420px;overflow-y:auto;display:none}
.suchergebnis.on{display:block}
.streffer{display:flex;gap:11px;align-items:flex-start;padding:10px 14px;cursor:pointer;width:100%;border:0;background:transparent;text-align:left;font:inherit;color:inherit;border-bottom:1px solid var(--line-soft)}
.streffer:last-child{border-bottom:0}
.streffer:hover{background:var(--surface-2)}
.sart{font-size:9.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--text-3);background:var(--surface-2);border-radius:4px;padding:2px 6px;flex:none;margin-top:2px}
.stitel{font-size:13px;font-weight:600}
.szusatz{font-size:11.5px;color:var(--text-3);margin-top:1px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ---------- Kalender / Zeitleiste ---------- */
.zeitleiste{overflow-x:auto;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow)}
.zl-grid{min-width:900px;position:relative}
.zl-kopf{display:grid;border-bottom:1px solid var(--line);background:var(--surface-2);position:sticky;top:0;z-index:2}
.zl-kw{padding:7px 4px;text-align:center;font-size:10.5px;font-weight:600;color:var(--text-3);border-right:1px solid var(--line-soft);font-variant-numeric:tabular-nums}
.zl-kw.heute{background:var(--accent-soft);color:var(--accent-text)}
.zl-zeile{display:grid;border-bottom:1px solid var(--line-soft);min-height:38px;position:relative;align-items:center}
.zl-zeile:last-child{border-bottom:0}
.zl-zeile:hover{background:var(--surface-2)}
.zl-label{padding:8px 13px;font-size:12.5px;display:flex;align-items:center;gap:8px;border-right:1px solid var(--line);position:sticky;left:0;background:var(--surface);z-index:1;min-width:0}
.zl-zeile:hover .zl-label{background:var(--surface-2)}
.zl-label span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.zl-balken{position:absolute;height:19px;border-radius:5px;display:flex;align-items:center;padding:0 8px;font-size:10.5px;font-weight:600;color:#fff;white-space:nowrap;overflow:hidden;cursor:pointer;box-shadow:var(--shadow)}
.zl-balken:hover{filter:brightness(1.08)}
.zl-heute{position:absolute;top:0;bottom:0;width:2px;background:var(--red);opacity:.75;z-index:3;pointer-events:none}
.zl-gruppe{padding:9px 13px;font-family:var(--display);font-weight:600;font-size:12.5px;background:var(--surface-2);border-bottom:1px solid var(--line);display:flex;align-items:center;gap:8px;position:sticky;left:0}

/* ---------- Profil / Einstellungen ---------- */
.radio-liste{display:flex;flex-direction:column;gap:7px}
.radio{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;cursor:pointer;background:var(--surface)}
.radio:hover{background:var(--surface-2)}
.radio input{margin-top:2px;accent-color:var(--accent);width:15px;height:15px;flex:none}
.radio-t{font-size:13px;font-weight:600}
.radio-d{font-size:12px;color:var(--text-3);margin-top:2px;line-height:1.45}
.radio[data-gewaehlt="true"]{border-color:var(--accent);background:var(--accent-soft)}
.eingabe{width:100%;padding:8px 11px;border:1px solid var(--line);border-radius:7px;font-family:inherit;font-size:13.5px;background:var(--surface);color:var(--text)}
.eingabe:focus{outline:2px solid var(--accent);outline-offset:-1px}

/* ---------- Sonstiges ---------- */
.leer{padding:44px 20px;text-align:center;color:var(--text-3)}
.leer svg{width:34px;height:34px;opacity:.4;margin-bottom:10px}
.leer-t{font-size:14px;font-weight:600;color:var(--text-2);margin-bottom:4px}
.grp{display:flex;flex-direction:column;gap:9px}
.archiv-hinweis{display:flex;align-items:center;gap:9px;background:var(--surface-2);border-radius:8px;padding:10px 13px;font-size:12.5px;color:var(--text-2);margin-bottom:14px}
.archiv-hinweis svg{width:16px;height:16px;flex:none}
.toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);background:var(--text);color:var(--bg);padding:10px 18px;border-radius:8px;font-size:13px;font-weight:600;box-shadow:var(--shadow-lg);z-index:100;opacity:0;transition:opacity .2s,transform .2s;pointer-events:none}
.toast.on{opacity:1;transform:translateX(-50%) translateY(-4px)}



/* ---------- Bereichsumschalter (oberste Ebene) ---------- */
.bereichswahl{display:flex;flex-direction:column;gap:2px;padding:0 0 10px}
.bereich-btn{display:flex;align-items:center;gap:10px;width:100%;padding:9px 10px;border:0;border-radius:var(--radius-sm);background:transparent;color:var(--text-2);cursor:pointer;text-align:left;font-weight:600;font-size:13.5px;transition:background .12s,color .12s}
.bereich-btn:hover{background:var(--surface-2);color:var(--text)}
.bereich-btn[aria-current="true"]{background:var(--accent);color:#fff}
.bereich-btn .bicon{width:19px;height:19px;flex:none}
.bereich-btn .bwarn{margin-left:auto;font-size:10.5px;font-weight:700;background:var(--red);color:#fff;border-radius:9px;padding:1px 6px;font-variant-numeric:tabular-nums}
.bereich-btn[aria-current="true"] .bwarn{background:#fff;color:var(--red-text)}
.bereichs-trenner{height:1px;background:var(--line);margin:8px 4px 10px}

.bereich-block{display:flex;flex-direction:column}
.bereich-btn .chevron{width:15px;height:15px;flex:none;margin-left:auto;transition:transform .15s;opacity:.65}
.bereich-btn .chevron.auf{transform:rotate(90deg)}
.bereich-btn .bwarn ~ .chevron{margin-left:0}
.bereich-btn[aria-current="true"] .chevron{opacity:.9}
.unterliste{display:none;flex-direction:column;gap:1px;padding:2px 0 4px}
.unterliste.auf{display:flex}
.unterpunkt{display:flex;align-items:center;gap:9px;width:100%;padding:6px 10px 6px 30px;border:0;border-radius:var(--radius-sm);background:transparent;color:var(--text-2);cursor:pointer;text-align:left;font-size:12.5px;font-weight:500;transition:background .12s,color .12s}
.unterpunkt:hover{background:var(--surface-2);color:var(--text)}
.unterpunkt[aria-current="true"]{background:var(--surface-2);color:var(--text);font-weight:600}
.unterpunkt span:not(.unterpunkt-zahl){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.unterpunkt svg{width:14px;height:14px;flex:none}
.unterpunkt-zahl{margin-left:auto;font-size:10.5px;color:var(--text-3);font-variant-numeric:tabular-nums;flex:none}

/* ---------- Gesperrter Bereich (keine Freischaltung) ---------- */
.gesperrt-hinweis{max-width:460px;margin:60px auto;text-align:center;display:flex;flex-direction:column;align-items:center;gap:12px}
.gesperrt-hinweis svg{width:40px;height:40px;color:var(--text-3)}
.gesperrt-hinweis h3{font-size:16px;font-weight:600}
.gesperrt-hinweis p{color:var(--text-2);font-size:13.5px;line-height:1.55}

/* ---------- Content-Kalender als Tabelle (Redaktion / Social / Seitenpflege) ---------- */
.ctablewrap{overflow-x:auto;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow)}
.ctable{border-collapse:collapse;width:100%;font-size:13px;min-width:900px}
.ctable colgroup .col-titel{width:auto}

/* Der Tabellenkopf scrollt normal mit - ein zweiter Sticky-Fixpunkt zusätzlich
   zur App-Topbar führte je nach Zoom/Fensterbreite zu Überlappungen. Nur die
   KW-Kopfzeile bleibt beim Scrollen sichtbar, direkt unter der App-Topbar. */
.ctable thead th{background:var(--surface-2);border-bottom:1px solid var(--line);text-align:left;font-family:var(--display);font-weight:600;font-size:11px;letter-spacing:.05em;text-transform:uppercase;color:var(--text-3);padding:10px 14px;white-space:nowrap}
.ctable thead th.c-status{text-align:right}

.kw-kopf-row td{padding:0;border-bottom:1px solid var(--line);background:var(--surface-2);position:sticky;top:0;z-index:2}
.kw-gruppe:not(:first-child) .kw-kopf-row td{border-top:1px solid var(--line)}
.kw-kopf{display:flex;align-items:center;gap:10px;width:100%;padding:11px 16px;border:0;background:transparent;cursor:pointer;text-align:left;font:inherit;color:inherit}
.kw-kopf:hover{background:var(--surface-3)}
.kw-chevron{width:15px;height:15px;flex:none;transition:transform .15s;opacity:.6}
.kw-chevron.auf{transform:rotate(90deg)}
.kw-titel{font-family:var(--display);font-weight:700;font-size:14px}
.kw-datum{font-size:12px;color:var(--text-3);font-variant-numeric:tabular-nums}
.kw-aktuell{font-size:10px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;background:var(--accent);color:#fff;border-radius:5px;padding:2px 7px}
.kw-count{margin-left:auto;font-size:12px;color:var(--text-3);font-variant-numeric:tabular-nums}

.crow td{padding:9px 14px;border-bottom:1px solid var(--line-soft);vertical-align:middle}
.crow:hover td{background:var(--surface-2)}
.crow.rot-rand td:first-child{box-shadow:inset 3px 0 0 var(--red)}
.crow:last-child td{border-bottom:0}
.crow.hold-grau{opacity:.55}
.crow.hold-grau:hover{opacity:.85}
.crow.hold-grau .ctitel{color:var(--text-2)}

.c-projekt{color:var(--text-2);white-space:nowrap;max-width:160px;overflow:hidden;text-overflow:ellipsis}
.c-titel{display:flex;align-items:center;gap:8px;min-width:220px}
.teufel{font-size:14px;flex:none}
.ctitel{font-weight:600;font-size:13.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.c-tag{white-space:nowrap}
.ctag{font-size:10px;font-weight:700;padding:2px 7px;border-radius:12px;white-space:nowrap;display:inline-block}
.c-datum{font-size:12px;white-space:nowrap;font-variant-numeric:tabular-nums}
.c-wer{white-space:nowrap}
.c-wer > *{display:inline-flex;align-items:center;gap:7px}
.csperre{font-size:10px;color:var(--text-3);border:1px dashed var(--line);border-radius:5px;padding:1px 6px;white-space:nowrap}
.c-status{white-space:nowrap;text-align:right}
.c-status .cstatus-wahl{display:inline-block}
.cstatus-badge{display:inline-flex;align-items:center;justify-content:center;gap:5px;font-size:11.5px;font-weight:600;padding:4px 10px 4px 8px;border-radius:20px;white-space:nowrap;border:0;cursor:pointer;min-width:118px;box-sizing:border-box}
.cstatus-badge svg{width:13px;height:13px}
.cmenu{border:0;background:transparent;color:var(--text-3);cursor:pointer;padding:5px;border-radius:5px;line-height:0;flex:none;margin-left:4px}
.cmenu:hover{background:var(--surface-2);color:var(--text)}
.cmenu svg{width:16px;height:16px}

/* Zeiterfassung in der Seitenpflege-Tabellenzeile */
.zeit-zeile{display:flex;align-items:center;gap:8px}
.timer-btn{display:inline-flex;align-items:center;gap:5px;border:1px solid var(--line);background:var(--surface);border-radius:14px;padding:2px 9px 2px 7px;font-size:10.5px;font-weight:600;color:var(--text-2);cursor:pointer;white-space:nowrap}
.timer-btn:hover{background:var(--surface-2)}
.timer-btn svg{width:11px;height:11px}
.timer-btn.laeuft{background:var(--red-soft);border-color:transparent;color:var(--red-text)}
.timer-btn.laeuft svg{color:var(--red)}
.zeit-verbrauch{white-space:nowrap}

/* Status-Dropdown direkt in der Zeile */
.cstatus-wahl{position:relative}
.cstatus-menu{position:absolute;top:calc(100% + 5px);right:0;background:var(--surface);border:1px solid var(--line);border-radius:9px;box-shadow:var(--shadow-lg);z-index:50;padding:5px;min-width:190px;display:none;text-align:left}
.cstatus-menu.on{display:block}
.cstatus-menu button{display:flex;align-items:center;gap:8px;width:100%;border:0;background:transparent;padding:7px 9px;border-radius:6px;cursor:pointer;text-align:left;font-size:12.5px;font-weight:600}
.cstatus-menu button:hover{background:var(--surface-2)}
.cstatus-menu svg{width:14px;height:14px}

/* ---------- Sales: Pipeline-Kanban ---------- */
.deal-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-bottom:20px}
.pipeline-scroll{overflow-x:auto;padding-bottom:12px;margin:0 -26px;padding-left:26px;padding-right:26px}
.pipeline{display:flex;gap:14px;min-width:min-content}
.pcol{background:var(--surface-2);border-radius:var(--radius);width:236px;flex:none}
.pcol.fertig-spalte{background:var(--green-soft)}
.pcol.verloren-spalte{background:var(--surface-2);opacity:.85}
.pcol-head{padding:11px 13px 8px;display:flex;align-items:center;gap:7px}
.pcol-title{font-family:var(--display);font-weight:600;font-size:13px}
.pcol-sum{margin-left:auto;font-size:11px;color:var(--text-3);font-variant-numeric:tabular-nums}
.pcol-body{display:flex;flex-direction:column;gap:8px;padding:0 9px 9px}
.dcard{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-sm);padding:10px 11px;box-shadow:var(--shadow);cursor:pointer;display:flex;flex-direction:column;gap:6px}
.dcard:hover{box-shadow:var(--shadow-lg)}
.dcard-firma{font-weight:600;font-size:13.5px}
.dcard-kontakt{font-size:11.5px;color:var(--text-3)}
.dcard-wert{font-family:var(--display);font-weight:700;font-size:15px;font-variant-numeric:tabular-nums}
.dcard-meta{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--text-2)}
.wahrsch-ring{width:26px;height:26px;border-radius:50%;flex:none;display:grid;place-items:center;font-size:9px;font-weight:700}

/* ---------- Persönliches Sales-Board (To Do/Doing/Done) ---------- */
.mini-board{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin-top:8px}
.mini-col{background:var(--surface-2);border-radius:var(--radius);padding:11px}
.mini-col h4{font-size:12.5px;font-weight:600;margin-bottom:9px;display:flex;align-items:center;gap:7px}
.mini-card{background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:9px 10px;font-size:12.5px;margin-bottom:7px;box-shadow:var(--shadow);cursor:grab}
.mini-card:active{cursor:grabbing}
.mini-card.dragging{opacity:.4}
@media (max-width:700px){.mini-board{grid-template-columns:1fr}}



/* ---------- Bereichs-Landingpage ---------- */
.bwelcome{
  position:relative; overflow:hidden; border-radius:16px;
  min-height:calc(100vh - 160px);
  display:flex; align-items:flex-end;
  padding:0; isolation:isolate;
}
.bwelcome-inner{
  position:relative; z-index:2; padding:52px 56px 56px; max-width:640px;
}
.bwelcome-eyebrow{
  font-size:12.5px; font-weight:700; letter-spacing:.09em; text-transform:uppercase;
  color:rgba(255,255,255,.78); margin-bottom:14px;
}
.bwelcome-titel{
  font-family:var(--display); font-size:clamp(34px,5vw,54px); font-weight:700;
  color:#fff; letter-spacing:-.02em; text-wrap:balance; line-height:1.04; margin-bottom:16px;
  text-shadow:0 2px 24px rgba(0,0,0,.25);
}
.bwelcome-spruch{
  font-size:17px; color:rgba(255,255,255,.92); line-height:1.5; margin-bottom:30px; max-width:480px;
}
.bwelcome-hint{
  display:inline-flex; align-items:center; gap:10px; font-size:13px; font-weight:600;
  color:#fff; background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.28);
  backdrop-filter:blur(6px); border-radius:30px; padding:10px 18px;
}
.bwelcome-hint svg{width:16px;height:16px;flex:none}

/* Agenturprojekte: gedecktes Blaupausen-Blau, feines technisches Liniennetz,
   diagonale Board-Spalten-Andeutung */
.bwelcome.bgAgentur{ background:linear-gradient(160deg,#0F2A5C 0%,#173B78 45%,#204987 100%); }
.bwelcome.bgAgentur::before{
  content:""; position:absolute; inset:0; z-index:0;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size:38px 38px;
  mask-image:radial-gradient(ellipse 90% 90% at 30% 40%, #000 40%, transparent 85%);
}
.bwelcome.bgAgentur::after{
  content:""; position:absolute; z-index:1; inset:-10% -10% -10% 30%;
  background:
    repeating-linear-gradient(100deg, rgba(255,255,255,.05) 0 2px, transparent 2px 130px),
    linear-gradient(115deg, transparent 55%, rgba(79,140,255,.35) 100%);
  opacity:.9;
}

/* Sales: warmer Verlauf mit aufsteigenden Trichter-Formen, Bewegung nach oben rechts */
.bwelcome.bgSales{ background:linear-gradient(155deg,#7A2E12 0%,#B5501C 42%,#E08A2E 100%); }
.bwelcome.bgSales::before{
  content:""; position:absolute; z-index:0; inset:0;
  background:
    radial-gradient(closest-side, rgba(255,214,150,.55), transparent) 82% 18% / 46% 60% no-repeat,
    radial-gradient(closest-side, rgba(255,180,110,.35), transparent) 62% 55% / 36% 50% no-repeat;
}
.bwelcome.bgSales::after{
  content:""; position:absolute; z-index:1; right:-6%; bottom:-14%; width:62%; aspect-ratio:1/1;
  background:
    conic-gradient(from 210deg at 50% 50%, rgba(255,255,255,.16), transparent 30%),
    repeating-radial-gradient(circle at 50% 100%, rgba(255,255,255,.08) 0 2px, transparent 2px 26px);
  border-radius:50%;
  mask-image:radial-gradient(closest-side, #000 60%, transparent 100%);
}

@media (max-width:720px){
  .bwelcome-inner{ padding:34px 26px 38px }
}



/* ---------- Gimmicks: kurzer Feier-/Warn-Moment, kein Dauerzustand ---------- */
.gimmick-overlay{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center;pointer-events:none;opacity:0;transition:opacity .25s}
.gimmick-overlay.on{opacity:1}
.gimmick-karte{background:var(--surface);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow-lg);padding:28px 40px;text-align:center;transform:scale(.85);transition:transform .25s cubic-bezier(.34,1.56,.64,1)}
.gimmick-overlay.on .gimmick-karte{transform:scale(1)}
.gimmick-emoji{font-size:52px;line-height:1;display:block;margin-bottom:10px}
.gimmick-emoji.feier{animation:gimmick-wackel .6s ease-in-out}
.gimmick-text{font-family:var(--display);font-weight:700;font-size:15px}
@keyframes gimmick-wackel{0%,100%{transform:rotate(0)}25%{transform:rotate(-8deg)}75%{transform:rotate(8deg)}}
@media (prefers-reduced-motion:reduce){.gimmick-emoji.feier{animation:none}}

/* Regenbogen-Verlauf hinter dem Einhorn */
.gimmick-karte.regenbogen{background:linear-gradient(100deg,#FFD166,#EF476F,#9B5DE5,#4C6FE7,#2EC4B6);position:relative;overflow:hidden}
.gimmick-karte.regenbogen::before{content:"";position:absolute;inset:0;background:var(--surface);opacity:.88}
.gimmick-karte.regenbogen > *{position:relative}



/* ---------- Team-Dashboard: Personen nebeneinander, Tickets pro Tag ---------- */
.team-scroll{overflow-x:auto;padding-bottom:12px}
.team-grid{display:flex;gap:12px;min-width:min-content;align-items:flex-start}
.team-spalte{background:var(--surface-2);border-radius:var(--radius);width:216px;flex:none}
.team-kopf{display:flex;align-items:center;gap:9px;padding:12px 13px 10px}
.team-kopf .team-name{font-family:var(--display);font-weight:600;font-size:13.5px}
.team-kopf .team-rolle{font-size:11px;color:var(--text-3)}
.team-tag-block{padding:0 9px 10px}
.team-tag-label{font-size:10.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--text-3);padding:8px 4px 6px}
.team-ticket{background:var(--surface);border:1px solid var(--line);border-radius:7px;padding:8px 9px;margin-bottom:6px;font-size:12.5px;box-shadow:var(--shadow);cursor:pointer}
.team-ticket:hover{box-shadow:var(--shadow-lg)}
.team-ticket.hold-grau{opacity:.5}
.team-ticket-titel{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.team-ticket-meta{display:flex;align-items:center;gap:6px;margin-top:4px;font-size:10.5px;color:var(--text-3)}
.team-spalte.breit{width:252px;display:flex;flex-direction:column;max-height:calc(100vh - 215px)}
.team-spalte.breit .team-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.team-liste{padding:0 9px 4px;overflow-y:auto;min-height:40px}
.team-ticket-zusatz{font-size:11px;color:var(--text-3);margin-top:1px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.team-leer{padding:10px 4px;font-size:11.5px;color:var(--text-3);font-style:italic}
.team-summe{font-size:11px;color:var(--text-3);padding:0 13px 10px;border-top:1px solid var(--line);margin-top:2px;padding-top:8px}



/* ---------- Fulfillment: Übergabe gewonnener Deals ---------- */
.ful-karte{padding:16px 18px;display:flex;flex-direction:column;gap:12px;margin-bottom:14px}
.ful-kopf{display:flex;align-items:flex-start;gap:12px}
.ful-firma{font-family:var(--display);font-weight:700;font-size:16px}
.ful-meta{font-size:12px;color:var(--text-3);margin-top:2px}
.ful-wert{font-family:var(--display);font-weight:700;font-size:18px;margin-left:auto;white-space:nowrap}
.ful-teilaufgaben{display:flex;flex-direction:column;gap:7px}
.ful-teil{display:flex;align-items:center;gap:10px;padding:9px 11px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}
.ful-teil.erledigt{background:var(--green-soft);border-color:transparent}
.ful-teil-titel{flex:1;font-size:13px;font-weight:500;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ful-teil.erledigt .ful-teil-titel{text-decoration:line-through;color:var(--text-3)}
.ful-ziel-wahl{font-size:11.5px;border:1px solid var(--line);border-radius:6px;padding:4px 8px;background:var(--surface);color:var(--text-2);max-width:200px}
.ful-teil-loeschen{border:0;background:transparent;color:var(--text-3);cursor:pointer;padding:3px;line-height:0;border-radius:5px;flex:none}
.ful-teil-loeschen:hover{background:var(--surface-2);color:var(--red-text)}
.ful-teil-loeschen svg{width:14px;height:14px}
.ful-neu-zeile{display:flex;gap:8px}
.ful-fortschritt{font-size:11.5px;color:var(--text-3)}
.ful-abgerechnet{opacity:.55}
