:root {
  --bg: #FFFFFF;
  --primary: #798897;
  --primary-d: #68788a;
  --secondary: #443d3b;
  --card-bg: #F4F6F8;
  --line: #E6EAED;
  --text: #2C3539;
  --muted: #5a6b75;
  --ok: rgb(90, 146, 112);
  --err: #b94040;
  --p08: rgba(121, 136, 151, 0.08);
  --p14: rgba(121, 136, 151, 0.14);
  --p18: rgba(121, 136, 151, 0.18);
  --p30: rgba(121, 136, 151, 0.3);
  --warm: #443d3b;
  --warm-bg: #f6f2ef;
  --warm-line: rgba(68, 61, 59, 0.2);
  --r-s: 8px; --r-m: 10px; --r-l: 14px; --r-xl: 18px;
  --shadow-1: 0 1px 2px rgba(44, 53, 57, 0.04), 0 4px 14px rgba(121, 136, 151, 0.10);
  --shadow-2: 0 8px 24px rgba(121, 136, 151, 0.16);
  --shadow-3: 0 8px 28px rgba(121, 136, 151, 0.38);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font); color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; font-size: 15px; line-height: 1.5;
}
body::before {
  content: ""; position: fixed; inset: -20% -10% auto auto; width: 70vw; height: 70vw; z-index: -1;
  background: radial-gradient(circle, rgba(121, 136, 151, 0.09) 0%, transparent 68%); pointer-events: none;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.hidden { display: none !important; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 1px; text-decoration: none; color: var(--text); }
.brand img { height: 30px; width: auto; display: block; }
.brand span { font-weight: 700; font-size: 19px; letter-spacing: -0.02em; margin-top: 4px; }
.eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary); }
.shimmer {
  background: linear-gradient(90deg, var(--primary) 0%, #b0c4d0 45%, var(--primary) 56%, var(--primary) 100%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s ease-in-out infinite;
}
@keyframes shimmer { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: var(--r-m); padding: 12px 20px; font-weight: 600; font-size: 15px;
  background: var(--primary); color: #fff; transition: background .2s, transform .2s var(--ease), box-shadow .2s;
  box-shadow: 0 6px 22px rgba(121, 136, 151, 0.28);
}
.btn:hover { background: var(--primary-d); transform: translateY(-1px); box-shadow: var(--shadow-3); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: transparent; color: var(--muted); box-shadow: none; padding: 10px 12px; }
.btn.ghost:hover { background: var(--p08); color: var(--text); transform: none; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.field { display: block; width: 100%; border: 1px solid var(--p30); border-radius: var(--r-m); padding: 12px 14px;
  background: #fff; transition: border-color .2s, box-shadow .2s; }
.field:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--p14); }
textarea.field { resize: vertical; min-height: 92px; line-height: 1.5; }

/* ---------- Login ---------- */
#login { min-height: 100%; display: grid; grid-template-columns: 1.05fr 1fr; }
.login-art {
  position: relative; overflow: hidden; background: var(--card-bg);
  display: flex; flex-direction: column; justify-content: space-between; padding: 48px 56px;
}
.login-art .logo-big { position: absolute; right: -6%; bottom: -8%; width: 62%; opacity: .16; animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(-1.5deg); } }
.login-art h1 { font-size: clamp(34px, 4vw, 52px); line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; margin: 18px 0 16px; max-width: 12ch; }
.login-art p { color: var(--muted); max-width: 38ch; margin: 0; font-size: 16px; }
.login-art ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.login-art li { display: flex; gap: 12px; align-items: center; color: var(--text); font-weight: 500; }
.login-art li i { width: 30px; height: 30px; border-radius: 50%; background: #fff; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px var(--p14); color: var(--primary); font-style: normal; }
.login-art small { color: var(--muted); font-size: 13px; position: relative; }

.login-pane { display: grid; place-items: center; padding: 40px 24px; }
.login-box { width: 100%; max-width: 380px; }
.login-box h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.025em; margin: 10px 0 8px; }
.login-box p.lead { color: var(--muted); margin: 0 0 28px; }
.login-box label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.login-box .btn { width: 100%; margin-top: 16px; padding: 14px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 18px; display: flex; gap: 8px; align-items: flex-start; }
.code-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.code-row input { text-align: center; font-size: 22px; font-weight: 700; padding: 12px 0; letter-spacing: 0; }
.remember { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 14px; color: var(--muted); }
.remember input { accent-color: var(--primary); width: 16px; height: 16px; }
.linkish { background: none; border: 0; padding: 0; color: var(--primary-d); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--p30); }
.step { animation: rise .5s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- App shell ---------- */
header.top {
  position: sticky; top: 0; z-index: 20; height: 64px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; background: rgba(255, 255, 255, 0.93); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--p14);
}
.who { display: flex; align-items: center; gap: 12px; }
.who .company { text-align: right; line-height: 1.2; }
.who .company b { display: block; font-size: 14px; }
.who .company small { color: var(--muted); font-size: 12px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.avatar.cust { background: var(--warm); color: #fff; }
.avatar.team { background: var(--card-bg); box-shadow: inset 0 0 0 1px var(--p18); }
.avatar.team img { height: 18px; }
.avatar.person { background: var(--p14); color: var(--primary-d); width: 24px; height: 24px; font-size: 10px; box-shadow: 0 0 0 2px #fff; }

.board-head { padding: 34px 28px 18px; display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: flex-end; justify-content: space-between; max-width: 1640px; margin: 0 auto; }
.board-head h1 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; font-weight: 800; letter-spacing: -0.025em; margin: 8px 0 0; }

.tabs { display: none; }

/* ---------- Board ---------- */
.board {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 18px;
  padding: 8px 28px 120px; overflow-x: auto; max-width: 1640px; margin: 0 auto; align-items: start;
  scroll-snap-type: x proximity; scroll-padding-inline: 28px;
}
.col { background: var(--card-bg); border-radius: var(--r-xl); padding: 14px; box-shadow: inset 0 0 0 1px var(--p08); scroll-snap-align: start; min-height: 200px; }
.col-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 12px; }
.col-head h3 { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--secondary); display: flex; align-items: center; gap: 8px; }
.col-head h3 .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.col-head .count { font-size: 12px; font-weight: 700; color: var(--muted); background: #fff; border-radius: 99px; padding: 2px 9px; box-shadow: inset 0 0 0 1px var(--p14); }
.col.ideas .col-head h3 .dot { background: var(--warm); }
.col.done .col-head h3 .dot { background: var(--ok); }
.col-note { font-size: 12.5px; color: var(--muted); padding: 0 6px 12px; margin-top: -6px; }
.cards { display: grid; gap: 10px; }
.empty { font-size: 13px; color: var(--muted); text-align: center; padding: 26px 10px; border: 1.5px dashed var(--p18); border-radius: var(--r-l); }

.card {
  position: relative; text-align: left; width: 100%; border: 0; background: #fff; border-radius: var(--r-l); padding: 14px 14px 12px;
  box-shadow: var(--shadow-1), inset 0 0 0 1px var(--p14); transition: transform .25s var(--ease), box-shadow .25s;
  display: grid; gap: 10px;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--p18); }
.card .title { font-weight: 600; font-size: 14.5px; line-height: 1.35; letter-spacing: -0.005em; }
.card .meta { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12.5px; }
.card .meta .sp { flex: 1; }
.card .meta span { display: inline-flex; align-items: center; gap: 5px; }
.card .meta .due-soon { color: var(--err); font-weight: 600; }
.card .meta .new-c { color: var(--primary-d); font-weight: 700; }
.card.done-card .title { color: var(--muted); }
.labels { display: flex; flex-wrap: wrap; gap: 6px; }
.lbl { font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--p14); color: var(--primary-d); }
.lbl.c1 { background: rgba(90, 146, 112, 0.14); color: #3f7254; }
.lbl.c2 { background: rgba(185, 64, 64, 0.10); color: #a03838; }
.lbl.c3 { background: rgba(176, 142, 74, 0.15); color: #7d6430; }

/* customer-created card */
.card.mine { background: var(--warm-bg); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--warm-line); }
.card.mine::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--warm); }
.mine-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--warm); }
.mine-badge svg { width: 13px; height: 13px; }
.card.fresh { animation: pop .7s var(--ease); }
@keyframes pop { 0% { opacity: 0; transform: translateY(-8px) scale(.97); } 60% { opacity: 1; } 100% { transform: none; } }

/* ---------- FAB ---------- */
.fab {
  position: fixed; right: 28px; bottom: 28px; z-index: 30; height: 58px; padding: 0 22px 0 18px; border-radius: 99px; border: 0;
  display: inline-flex; align-items: center; gap: 10px; background: var(--secondary); color: #fff; font-weight: 700; font-size: 15px;
  box-shadow: 0 10px 30px rgba(68, 61, 59, 0.28); transition: transform .25s var(--ease), box-shadow .25s;
}
.fab:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(68, 61, 59, 0.34); }
.fab .plus { width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); display: grid; place-items: center; }
.fab .plus svg { width: 16px; height: 16px; }

/* ---------- Overlays ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(44, 53, 57, 0.28); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s; }
.scrim.on { opacity: 1; }
.drawer {
  position: fixed; z-index: 50; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: #fff;
  box-shadow: -20px 0 60px rgba(44, 53, 57, 0.14); transform: translateX(100%); transition: transform .4s var(--ease);
  display: flex; flex-direction: column;
}
.drawer.on { transform: none; }
.d-head { padding: 22px 26px 18px; border-bottom: 1px solid var(--p14); display: grid; gap: 12px; }
.d-top { display: flex; align-items: center; justify-content: space-between; }
.stack-pill { font-size: 12px; font-weight: 700; color: var(--primary-d); background: var(--p14); padding: 4px 10px; border-radius: 99px; display: inline-flex; gap: 6px; align-items: center; }
.x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--card-bg); display: grid; place-items: center; color: var(--muted); }
.x:hover { background: var(--p14); color: var(--text); }
.d-head h2 { margin: 0; font-size: 23px; line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--muted); }
.facts span { display: inline-flex; align-items: center; gap: 6px; }
.facts .people { display: inline-flex; }
.facts .people .avatar + .avatar { margin-left: -6px; }
.d-body { flex: 1; overflow-y: auto; padding: 22px 26px 12px; }
.d-body h4 { font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary); margin: 0 0 10px; }
.desc { color: var(--text); font-size: 14.5px; margin-bottom: 28px; }
.desc p { margin: 0 0 10px; }
.desc ul { margin: 0 0 10px; padding-left: 20px; }
.desc li { margin: 3px 0; }
.desc .check { list-style: none; padding-left: 0; }
.desc .check li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 8px; }
.desc .check li.open::before { content: "○"; color: var(--p30); }
.mine-note { display: flex; gap: 10px; align-items: center; background: var(--warm-bg); border: 1px solid var(--warm-line); border-radius: var(--r-m); padding: 10px 12px; font-size: 13px; color: var(--warm); margin-bottom: 22px; }

.thread { display: grid; gap: 16px; }
.msg { display: grid; grid-template-columns: 34px 1fr; gap: 12px; animation: rise .4s var(--ease); }
.msg .bubble { background: var(--card-bg); border-radius: 4px var(--r-l) var(--r-l) var(--r-l); padding: 10px 14px; }
.msg.cust .bubble { background: var(--warm-bg); box-shadow: inset 0 0 0 1px var(--warm-line); }
.msg .who-line { font-size: 12.5px; color: var(--muted); margin-bottom: 2px; }
.msg .who-line b { color: var(--text); font-size: 13.5px; margin-right: 6px; }
.msg .txt { font-size: 14.5px; white-space: pre-wrap; }
.no-msg { color: var(--muted); font-size: 14px; padding: 8px 0; }

.composer { border-top: 1px solid var(--p14); padding: 14px 26px 22px; background: rgba(255, 255, 255, 0.97); }
.composer .box { border: 1px solid var(--p30); border-radius: var(--r-l); transition: border-color .2s, box-shadow .2s; background: #fff; }
.composer .box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--p14); }
.composer textarea { width: 100%; border: 0; outline: 0; resize: none; padding: 12px 14px 4px; min-height: 52px; max-height: 180px; background: transparent; }
.composer .bar2 { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 8px 14px; font-size: 12px; color: var(--muted); }
.composer .btn { padding: 9px 16px; font-size: 14px; }
.composer .tools { display: flex; align-items: center; gap: 4px; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; flex: none; }
.icon-btn:hover { background: var(--p08); color: var(--text); }
.pending { display: flex; gap: 8px; padding: 4px 14px 4px; flex-wrap: wrap; }
.pending:empty { display: none; }
.pending .chip { position: relative; }
.pending img { width: 64px; height: 42px; object-fit: cover; border-radius: 6px; display: block; box-shadow: inset 0 0 0 1px var(--p18); }
.pending .chip button { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%; border: 0; background: var(--text); color: #fff; font-size: 11px; line-height: 1; display: grid; place-items: center; }

/* Avatare: sauber zentriert & überlappend */
.card .meta .people, .facts .people { display: inline-flex; align-items: center; gap: 0; }
.card .meta .avatar, .facts .avatar { display: grid; place-items: center; gap: 0; line-height: 1; }
.card .meta .avatar + .avatar, .facts .avatar + .avatar { margin-left: -7px; }

/* Anhänge */
.att-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 28px; }
.att { border: 0; padding: 0; background: #fff; border-radius: var(--r-m); overflow: hidden; box-shadow: inset 0 0 0 1px var(--p18); text-align: left; transition: transform .2s var(--ease), box-shadow .2s; cursor: zoom-in; }
.att:hover { transform: translateY(-2px); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--p18); }
.att img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--card-bg); }
.att .cap { display: block; font-size: 12px; padding: 7px 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.att.file { cursor: pointer; }
.att.file .fi { aspect-ratio: 16 / 10; display: grid; place-items: center; background: var(--card-bg); color: var(--primary-d); }
.att.file .fi b { font-size: 12px; letter-spacing: .08em; background: #fff; padding: 6px 10px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--p18); }
.msg .imgs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.msg .imgs img { width: 132px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; cursor: zoom-in; display: block; box-shadow: 0 0 0 1px var(--p18); }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(24, 29, 32, 0.88); display: grid; place-items: center; padding: 28px; opacity: 0; pointer-events: none; transition: opacity .25s; }
.lightbox.on { opacity: 1; pointer-events: auto; }
.lightbox figure { margin: 0; display: grid; gap: 12px; justify-items: center; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 80vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .4); background: #fff; }
.lightbox figcaption { color: rgba(255, 255, 255, .85); font-size: 14px; display: flex; gap: 14px; align-items: center; }
.lightbox figcaption a { color: #fff; font-weight: 600; }
.lightbox .x { position: absolute; top: 18px; right: 18px; background: rgba(255, 255, 255, .14); color: #fff; }
.drop { margin-top: 8px; border: 1.5px dashed var(--p30); border-radius: var(--r-m); padding: 14px; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13.5px; cursor: pointer; transition: border-color .2s, background .2s; }
.drop:hover, .drop.over { border-color: var(--primary); background: var(--p08); }
.drop b { color: var(--text); }

/* Neuigkeiten */
.bell { position: relative; width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; color: var(--muted); }
.bell:hover, .bell.on { background: var(--p08); color: var(--text); }
.bell b { position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--err); color: #fff; font-size: 10.5px; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }
.bell b:empty { display: none; }
.news { position: fixed; top: 70px; right: 20px; z-index: 45; width: min(390px, calc(100vw - 24px)); background: #fff; border-radius: var(--r-xl);
  box-shadow: 0 24px 60px rgba(44, 53, 57, .18), inset 0 0 0 1px var(--p14); opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .2s, transform .25s var(--ease); overflow: hidden; }
.news.on { opacity: 1; transform: none; pointer-events: auto; }
.news-h { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 20px 8px; }
.news-h h3 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.news-h button { font-size: 12.5px; }
.news ul { list-style: none; margin: 0; padding: 4px 8px 8px; max-height: 56vh; overflow: auto; }
.news li button { display: grid; grid-template-columns: 34px 1fr 8px; gap: 12px; align-items: start; text-align: left; width: 100%; border: 0; background: transparent; padding: 10px 12px; border-radius: var(--r-m); }
.news li button:hover { background: var(--card-bg); }
.news .ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--p14); color: var(--primary-d); }
.news .ic.ok { background: rgba(90, 146, 112, .14); color: #3f7254; }
.news .ic.warm { background: var(--warm-bg); color: var(--warm); box-shadow: inset 0 0 0 1px var(--warm-line); }
.news .t { font-size: 13.5px; line-height: 1.4; }
.news .w { font-size: 12px; color: var(--muted); margin-top: 2px; }
.news .u { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); margin-top: 6px; }
.news li.read .u { visibility: hidden; }
.news li.read .t { color: var(--muted); }
.news-foot { border-top: 1px solid var(--p14); padding: 12px 20px 14px; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 10px; background: var(--card-bg); }
.chg { position: absolute; top: 12px; right: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--p14); }

.modal {
  position: fixed; z-index: 50; left: 50%; top: 50%; width: min(520px, calc(100vw - 32px));
  transform: translate(-50%, -46%) scale(.98); opacity: 0; pointer-events: none; transition: transform .35s var(--ease), opacity .25s;
  background: #fff; border-radius: var(--r-xl); box-shadow: 0 30px 80px rgba(44, 53, 57, 0.22); padding: 26px;
}
.modal.on { transform: translate(-50%, -50%); opacity: 1; pointer-events: auto; }
.modal h2 { margin: 6px 0 6px; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.modal p.lead { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.modal label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 8px; }
.modal .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.dest { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 13px; color: var(--muted); }
.dest .stack-pill { background: var(--warm-bg); color: var(--warm); box-shadow: inset 0 0 0 1px var(--warm-line); }

.toast { position: fixed; z-index: 60; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; transition: all .35s var(--ease);
  background: var(--text); color: #fff; padding: 12px 18px; border-radius: var(--r-m); font-size: 14px; font-weight: 500; display: flex; gap: 10px; align-items: center; box-shadow: 0 12px 30px rgba(44, 53, 57, 0.25); }
.toast.on { transform: translate(-50%, 0); opacity: 1; }
.toast i { width: 20px; height: 20px; border-radius: 50%; background: var(--ok); display: grid; place-items: center; font-style: normal; font-size: 12px; }


/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  #login { grid-template-columns: 1fr; }
  .login-art { padding: 28px 24px 30px; min-height: auto; }
  .login-art h1 { font-size: 32px; margin-top: 22px; }
  .login-art ul, .login-art small { display: none; }
  .login-art .logo-big { width: 52%; right: -10%; bottom: -30%; }
  .login-pane { place-items: start center; padding-top: 32px; }
}
@media (max-width: 720px) {
  header.top { padding: 0 16px; height: 58px; }
  .who .company { display: none; }
  .board-head { padding: 22px 16px 12px; }
    .tabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px 16px 12px; position: sticky; top: 58px; z-index: 15;
    background: rgba(255, 255, 255, 0.93); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: none; border: 0; border-radius: 99px; padding: 7px 13px; font-size: 13px; font-weight: 600; background: var(--card-bg); color: var(--muted); display: flex; gap: 6px; align-items: center; }
  .tabs button span { font-size: 11px; opacity: .7; }
  .tabs button.on { background: var(--secondary); color: #fff; }
  .board { grid-auto-columns: calc(100vw - 32px); padding: 4px 16px 120px; gap: 12px; scrollbar-width: none; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; }
  .board::-webkit-scrollbar { display: none; }
  .fab { right: 16px; bottom: 18px; height: 56px; padding: 0 13px; }
  .fab .lbl-t { display: none; }
  .drawer { top: auto; left: 0; height: 92vh; width: auto; border-radius: 22px 22px 0 0; transform: translateY(100%); }
  .drawer::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--p30); }
  .d-head, .d-body, .composer { padding-left: 18px; padding-right: 18px; }
  .d-head { padding-top: 26px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }

/* ---------- Portal-Ergänzungen ---------- */
.brand img { height: 26px; margin-right: 1px; }
.brand span { margin-top: 3px; }
.opt { color: var(--muted); font-weight: 500; }
.form-error { color: var(--err); font-size: 13.5px; margin-top: 12px; min-height: 1em; }
.form-error:empty { display: none; }
.due-soon-f { color: var(--err); font-weight: 600; }
.lbl[data-c] { background: color-mix(in srgb, var(--lc) 16%, #fff); color: color-mix(in srgb, var(--lc) 62%, #1d2326); }
#m-pending { padding: 10px 0 0; }
.att.file { text-decoration: none; color: inherit; }
.msg .files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.msg .files a { font-size: 12.5px; font-weight: 600; color: var(--primary-d); background: #fff; border-radius: 99px; padding: 4px 10px; text-decoration: none; box-shadow: inset 0 0 0 1px var(--p18); }
.desc h1, .desc h2, .desc h3 { font-size: 16px; margin: 16px 0 6px; letter-spacing: -0.01em; }
.desc a { color: var(--primary-d); text-underline-offset: 3px; }
.desc code { background: var(--card-bg); padding: 1px 6px; border-radius: 6px; font-size: 13px; }
.desc .muted { color: var(--muted); }
.loading { display: grid; place-items: center; min-height: 60vh; color: var(--muted); font-size: 14px; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--p18); border-top-color: var(--primary); animation: spin .8s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn.busy { opacity: .7; pointer-events: none; }
.toast.err i { background: var(--err); }
.char { font-variant-numeric: tabular-nums; }
.char.over { color: var(--err); font-weight: 600; }
.login-art > *:not(.logo-big) { position: relative; z-index: 1; }
@media (max-width: 860px) { .login-art { gap: 26px; } }
