:root {
  --fir: #4a2f0c;
  --fir-2: #6b4518;
  --fir-soft: #f4e8d8;
  --amber: #ea7d1c;
  --amber-soft: #fde6cf;
  --bg: #f7f3ec;
  --card: #fffdf8;
  --line: #e6dccb;
  --ink: #1f1b16;
  --muted: #6f665a;
  --red: #b23a2b;
  --red-soft: #f8e1dc;
  --yellow: #b7841c;
  --yellow-soft: #f8edcf;
  --green: #2f7a4b;
  --green-soft: #dcefe2;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(40, 30, 10, .06), 0 4px 14px rgba(40, 30, 10, .05);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 16px/1.45 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--fir-2); }
img { max-width: 100%; display: block; }
.boot { height: 100vh; display: grid; place-items: center; font: 700 28px var(--serif); color: var(--fir); }

/* ---------- Layout */
.shell { min-height: 100vh; display: flex; }
.side { display: none; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; background: var(--fir); color: #f5efe4; padding: calc(10px + var(--safe-t)) 14px 10px; display: flex; align-items: center; gap: 10px; min-height: 56px; }
.top h1 { font: 600 18px var(--font); margin: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .brand { font: 700 19px var(--serif); letter-spacing: .5px; }
.top .brand small { font: 500 11px var(--font); opacity: .75; letter-spacing: .3px; display: block; margin-top: -2px; }
.icon-btn { background: none; border: 0; color: inherit; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; flex: none; }
.icon-btn:hover { background: rgba(255, 255, 255, .1); }
.icon-btn svg { width: 24px; height: 24px; }
.demo-pill { font-size: 11px; background: var(--amber); color: #fff; padding: 3px 8px; border-radius: 99px; font-weight: 600; letter-spacing: .3px; }
.content { padding: 16px 14px calc(92px + var(--safe-b)); max-width: 860px; width: 100%; margin: 0 auto; }
.content.wide { max-width: 1180px; }
.content.chat { padding-bottom: 0; flex: 1; display: flex; flex-direction: column; max-width: 860px; }

.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: var(--card); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); padding-bottom: var(--safe-b); }
.tabbar a { text-decoration: none; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 7px; font-size: 11px; font-weight: 600; position: relative; }
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a.on { color: var(--fir); }
.tabbar a.on svg { stroke-width: 2.3; }
.badge { background: var(--red); color: #fff; border-radius: 99px; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; padding: 0 5px; display: inline-grid; place-items: center; line-height: 1; }
.tabbar .badge { position: absolute; top: 3px; left: calc(50% + 6px); }

@media (min-width: 900px) {
  .side { display: flex; flex-direction: column; width: 248px; flex: none; background: var(--fir); color: #f5efe4; position: sticky; top: 0; height: 100vh; padding: 18px 12px; overflow-y: auto; }
  .side .logo { font: 700 24px var(--serif); padding: 6px 12px 2px; letter-spacing: .5px; }
  .side .logo small { display: block; font: 500 12px var(--font); opacity: .7; letter-spacing: .2px; margin-top: 2px; }
  .side nav { margin-top: 22px; display: flex; flex-direction: column; gap: 2px; }
  .side nav a { color: #e9e1d2; text-decoration: none; padding: 10px 12px; border-radius: 10px; display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: 15px; }
  .side nav a svg { width: 20px; height: 20px; opacity: .9; }
  .side nav a:hover { background: rgba(255, 255, 255, .08); }
  .side nav a.on { background: rgba(255, 255, 255, .14); color: #fff; }
  .side nav a .badge { margin-left: auto; }
  .side .sep { height: 1px; background: rgba(255, 255, 255, .12); margin: 12px 8px; }
  .side .me { margin-top: auto; display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .07); text-decoration: none; color: inherit; }
  .side .me small { display: block; opacity: .7; font-size: 12px; }
  .tabbar { display: none; }
  .top { background: var(--bg); color: var(--ink); border-bottom: 1px solid var(--line); padding-top: 12px; }
  .top .icon-btn:hover { background: rgba(0, 0, 0, .05); }
  .top .brand { display: none; }
  .content { padding: 22px 28px 40px; }
  .hide-desktop { display: none !important; }
}
@media (max-width: 899px) { .hide-mobile { display: none !important; } }

/* ---------- Bausteine */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card.pad { padding: 16px; }
.section-title { font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-weight: 700; margin: 22px 2px 8px; display: flex; align-items: center; gap: 8px; }
.section-title:first-child { margin-top: 4px; }
.section-title a { margin-left: auto; text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 600; text-decoration: none; }
h2.page { font: 700 26px var(--serif); margin: 2px 2px 4px; color: var(--fir); }
p.lead { color: var(--muted); margin: 0 2px 16px; }
.list { display: flex; flex-direction: column; }
.row { display: flex; gap: 12px; align-items: center; padding: 12px 14px; text-decoration: none; color: inherit; border-bottom: 1px solid var(--line); background: none; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left; cursor: pointer; }
.row:last-child { border-bottom: 0; }
.row:hover { background: rgba(0, 0, 0, .02); }
.row .grow { flex: 1; min-width: 0; }
.row .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .s { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .meta { color: var(--muted); font-size: 12px; text-align: right; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.row.unread .t { color: var(--fir); }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px; flex: none; letter-spacing: .3px; position: relative; }
.avatar.sm { width: 32px; height: 32px; font-size: 12px; }
.avatar.xl { width: 96px; height: 96px; font-size: 32px; }
.avatar.group { border-radius: 12px; background: var(--fir-2); }
.avatar.group svg { width: 22px; height: 22px; }
.btn { border: 0; border-radius: 12px; padding: 11px 16px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; background: var(--fir); color: #fff; min-height: 44px; }
.btn:hover { background: var(--fir-2); }
.btn.secondary { background: var(--fir-soft); color: var(--fir); }
.btn.amber { background: var(--amber); }
.btn.ghost { background: transparent; color: var(--fir); border: 1px solid var(--line); }
.btn.danger { background: var(--red-soft); color: var(--red); }
.btn.block { width: 100%; }
.btn.sm { padding: 7px 12px; min-height: 36px; font-size: 14px; border-radius: 10px; }
.btn svg { width: 20px; height: 20px; }
.btn:disabled { opacity: .5; cursor: default; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--fir-soft); color: var(--fir); white-space: nowrap; }
.chip.amber { background: var(--amber-soft); color: #8a5214; }
.chip.red { background: var(--red-soft); color: var(--red); }
.chip.yellow { background: var(--yellow-soft); color: #7d5a0f; }
.chip.green { background: var(--green-soft); color: var(--green); }
.chip.gray { background: #ece6db; color: var(--muted); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -2px; scrollbar-width: none; }
.filters button { border: 1px solid var(--line); background: var(--card); padding: 7px 13px; border-radius: 99px; font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; color: var(--muted); }
.filters button.on { background: var(--fir); border-color: var(--fir); color: #fff; }
.search { width: 100%; padding: 11px 14px 11px 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f665a' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 12px 50%/18px no-repeat; margin-bottom: 12px; }
.grid { display: grid; gap: 12px; }
@media (min-width: 700px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: repeat(3, 1fr); } }
.empty { text-align: center; color: var(--muted); padding: 30px 16px; }
.note { background: var(--amber-soft); color: #6d4210; border-radius: 12px; padding: 10px 14px; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; }
.note svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }

/* ---------- Formulare */
.form { display: flex; flex-direction: column; gap: 14px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: #3b342b; }
.field input[type=text], .field input[type=date], .field input[type=datetime-local], .field input[type=password], .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 16px; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .search:focus { outline: 2px solid var(--amber); outline-offset: 0; border-color: transparent; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--fir); }
.seg { display: flex; background: #ece6db; padding: 3px; border-radius: 12px; gap: 3px; }
.seg button { flex: 1; border: 0; background: none; padding: 9px 6px; border-radius: 9px; font-weight: 600; cursor: pointer; color: var(--muted); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.photo-pick { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.photo-pick img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Start */
.hello { margin: 4px 2px 16px; }
.hello h2 { font: 700 26px var(--serif); margin: 0; color: var(--fir); }
.hello p { margin: 2px 0 0; color: var(--muted); }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 6px; }
.quick a { text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 6px 10px; display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; text-align: center; box-shadow: var(--shadow); line-height: 1.2; }
.quick a span.ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--fir-soft); color: var(--fir); }
.quick a:nth-child(2) span.ic { background: var(--red-soft); color: var(--red); }
.quick a:nth-child(3) span.ic { background: var(--amber-soft); color: #8a5214; }
.quick a:nth-child(4) span.ic { background: #e4e8f2; color: #34508a; }
.quick svg { width: 22px; height: 22px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { padding: 14px; text-decoration: none; color: inherit; }
.stat b { display: block; font-size: 26px; font-family: var(--serif); color: var(--fir); }
.stat span { font-size: 13px; color: var(--muted); }
.news-card { padding: 0; overflow: hidden; text-decoration: none; color: inherit; display: block; }
.news-card .img { aspect-ratio: 16/7; background: var(--fir); }
.news-card .img img { width: 100%; height: 100%; object-fit: cover; }
.news-card .body { padding: 14px 16px; }
.news-card h3 { margin: 6px 0 4px; font-size: 18px; }
.news-card p { margin: 0; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .foot { display: flex; gap: 8px; align-items: center; margin-top: 10px; font-size: 13px; color: var(--muted); }
.unread-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); display: inline-block; flex: none; }
.article { white-space: pre-wrap; font-size: 17px; line-height: 1.55; }
.article-img { border-radius: 12px; overflow: hidden; margin: 12px 0; }
.readers { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Chat */
.chat-wrap { flex: 1; display: flex; flex-direction: column; min-height: calc(100vh - 56px - var(--safe-t)); }
.msgs { flex: 1; overflow-y: auto; padding: 14px 12px 10px; display: flex; flex-direction: column; gap: 3px; }
.day { align-self: center; font-size: 12px; color: var(--muted); background: #ebe3d4; padding: 3px 10px; border-radius: 99px; margin: 10px 0 6px; font-weight: 600; }
.msg { max-width: 78%; display: flex; gap: 8px; align-items: flex-end; }
.msg .bubble { background: var(--card); border: 1px solid var(--line); padding: 7px 11px 5px; border-radius: 16px 16px 16px 5px; box-shadow: 0 1px 1px rgba(0, 0, 0, .03); }
.msg .who { font-size: 12.5px; font-weight: 700; margin-bottom: 1px; }
.msg .txt { white-space: pre-wrap; word-wrap: break-word; }
.msg .time { font-size: 11px; color: var(--muted); text-align: right; margin-top: 2px; display: flex; gap: 4px; justify-content: flex-end; align-items: center; }
.msg .time svg { width: 15px; height: 15px; }
.msg .time .seen { color: #2f7ad0; }
.msg img.photo { border-radius: 10px; margin: 3px 0 2px; max-height: 320px; width: auto; cursor: zoom-in; }
.msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.msg.mine .bubble { background: #dcebdd; border-color: #c8ddc9; border-radius: 16px 16px 5px 16px; }
.msg .spacer { width: 32px; flex: none; }
.composer { position: sticky; bottom: 0; background: var(--bg); border-top: 1px solid var(--line); padding: 8px 10px calc(8px + var(--safe-b)); display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { flex: 1; border: 1px solid var(--line); border-radius: 22px; padding: 10px 16px; resize: none; max-height: 140px; background: #fff; font-size: 16px; min-height: 44px; }
.composer .icon-btn { color: var(--fir); background: var(--fir-soft); border-radius: 50%; width: 44px; height: 44px; }
.composer .send { background: var(--fir); color: #fff; }
.composer .pending { display: flex; align-items: center; gap: 6px; }
.composer .pending img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.chat-head { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; text-decoration: none; color: inherit; }
.chat-head .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-head .s { font-size: 12px; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Profil */
.profile { text-align: center; padding: 22px 16px; }
.profile .avatar { margin: 0 auto 10px; }
.profile h2 { margin: 0; font: 700 24px var(--serif); color: var(--fir); }
.profile .pos { color: var(--muted); }
.profile .status { margin-top: 8px; font-style: italic; color: #4c443a; }
.contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.contact a, .contact button { background: var(--fir-soft); color: var(--fir); text-decoration: none; border-radius: 12px; padding: 12px 4px; font-size: 13px; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; cursor: pointer; }
.contact svg { width: 22px; height: 22px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; padding: 14px 16px; }
.kv dt { color: var(--muted); font-size: 14px; }
.kv dd { margin: 0; font-weight: 500; }
.kv dd a { text-decoration: none; }

/* ---------- Termine */
.poll-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.opt:last-child { border-bottom: 0; }
.opt .date { width: 58px; flex: none; text-align: center; border-radius: 10px; background: var(--fir-soft); color: var(--fir); padding: 5px 0; line-height: 1.1; }
.opt .date b { display: block; font-size: 20px; font-family: var(--serif); }
.opt .date small { font-size: 11px; font-weight: 700; text-transform: uppercase; }
.opt .grow { flex: 1; min-width: 0; }
.opt .bar { height: 6px; border-radius: 3px; background: #ece6db; margin-top: 6px; overflow: hidden; display: flex; }
.opt .bar i { display: block; background: var(--green); }
.opt .bar i.m { background: #e0b34b; }
.opt.best .date { background: var(--fir); color: #fff; }
.opt.final { background: var(--green-soft); }
.vote { display: flex; gap: 4px; flex: none; }
.vote button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; display: grid; place-items: center; color: var(--muted); }
.vote button svg { width: 20px; height: 20px; }
.vote button.on.yes { background: var(--green); border-color: var(--green); color: #fff; }
.vote button.on.maybe { background: #e0b34b; border-color: #e0b34b; color: #fff; }
.vote button.on.no { background: var(--red); border-color: var(--red); color: #fff; }
.matrix { overflow-x: auto; }
.matrix table { border-collapse: collapse; font-size: 13px; min-width: 100%; }
.matrix th, .matrix td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.matrix th:first-child, .matrix td:first-child { text-align: left; position: sticky; left: 0; background: var(--card); }
.matrix .y { color: var(--green); font-weight: 700; }
.matrix .m { color: #b7841c; font-weight: 700; }
.matrix .n { color: var(--red); }
.opt-input { display: flex; gap: 8px; }
.opt-input input { flex: 1; }
.opt-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.opt-list div { display: flex; align-items: center; justify-content: space-between; background: var(--fir-soft); border-radius: 10px; padding: 8px 8px 8px 12px; font-weight: 600; color: var(--fir); }

/* ---------- Aufträge & Störungen */
.order { padding: 14px 16px; text-decoration: none; color: inherit; display: block; }
.order .head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.order .nr { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .3px; }
.order h3 { margin: 2px 0 2px; font-size: 16.5px; }
.order .cust { color: var(--muted); font-size: 14px; }
.order .foot { display: flex; gap: 14px; margin-top: 10px; font-size: 13px; color: #4c443a; flex-wrap: wrap; }
.order .foot span { display: inline-flex; align-items: center; gap: 5px; }
.order .foot svg { width: 16px; height: 16px; color: var(--muted); }
.due-today { color: var(--red); font-weight: 700; }
.prio { width: 10px; align-self: stretch; border-radius: 6px; flex: none; }
.prio.hoch { background: var(--red); }
.prio.mittel { background: #e0b34b; }
.prio.niedrig { background: #a7b8ab; }
.comments { display: flex; flex-direction: column; }
.comment { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.comment:last-child { border-bottom: 0; }
.comment .grow { flex: 1; min-width: 0; }
.comment .h { font-size: 13px; color: var(--muted); }
.comment .h b { color: var(--ink); }
.comment img { border-radius: 10px; margin-top: 6px; max-height: 260px; width: auto; cursor: zoom-in; }
.comment-form { padding: 12px 14px; border-top: 1px solid var(--line); display: flex; gap: 8px; align-items: flex-end; }
.comment-form textarea { flex: 1; min-height: 44px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; resize: vertical; background: #fff; }

/* ---------- Schichtplan */
.plan { overflow-x: auto; }
.plan table { border-collapse: collapse; width: 100%; font-size: 13px; }
.plan th { font-size: 12px; color: var(--muted); font-weight: 700; padding: 8px 6px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
.plan th.today { color: var(--fir); }
.plan td { padding: 6px; border-bottom: 1px solid var(--line); text-align: center; }
.plan td:first-child, .plan th:first-child { text-align: left; position: sticky; left: 0; background: var(--card); white-space: nowrap; min-width: 150px; }
.plan tr.me td { background: #f3f7f1; }
.plan tr.dep td { background: #f1ebe0; font-weight: 700; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; text-align: left; }
.sh { display: inline-block; min-width: 44px; padding: 3px 6px; border-radius: 7px; font-weight: 700; font-size: 12px; }
.sh.Früh { background: #fbe7c6; color: #87520e; }
.sh.Spät { background: #d9e2f3; color: #2f4a7d; }
.sh.Tag { background: var(--green-soft); color: var(--green); }
.sh.Tour { background: #eadff0; color: #6a3f7d; }
.sh.off { background: #f3d6d0; color: var(--red); }

/* ---------- Login */
.login { min-height: 100vh; background: radial-gradient(1200px 600px at 20% -10%, #2c5241 0%, var(--fir) 55%, #17291f 100%); color: #f5efe4; padding: calc(28px + var(--safe-t)) 16px 40px; }
.login .inner { max-width: 760px; margin: 0 auto; }
.login .logo { font: 700 40px var(--serif); letter-spacing: 1px; }
.login .logo small { display: block; font: 500 15px var(--font); opacity: .8; letter-spacing: .2px; margin-top: 2px; }
.login .intro { margin: 18px 0 22px; opacity: .9; max-width: 560px; }
.login .card { color: var(--ink); }
.persons { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; padding: 6px 12px 14px; }
.person { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; text-align: left; }
.person:hover { border-color: var(--amber); }
.person.on { border-color: var(--fir); background: var(--fir-soft); }
.person small { display: block; color: var(--muted); font-size: 12px; }
.dep-title { padding: 12px 14px 2px; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-weight: 700; }
.role-tag { font-size: 10px; background: var(--amber); color: #fff; border-radius: 6px; padding: 1px 5px; margin-left: 4px; font-weight: 700; vertical-align: middle; }

/* ---------- Sonstiges */
#toast { position: fixed; left: 50%; bottom: calc(86px + var(--safe-b)); transform: translateX(-50%) translateY(20px); background: #1f1b16; color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; z-index: 100; max-width: 90vw; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, .9); z-index: 200; display: grid; place-items: center; padding: 20px; cursor: zoom-out; }
.lightbox img { max-height: 92vh; max-width: 96vw; border-radius: 8px; }
.sheet-bg { position: fixed; inset: 0; background: rgba(20, 15, 5, .45); z-index: 150; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--bg); width: 100%; max-width: 760px; max-height: 86vh; overflow-y: auto; border-radius: 20px 20px 0 0; padding: 18px 0 calc(18px + var(--safe-b)); }
.sheet h3 { margin: 0 18px 4px; font: 700 21px var(--serif); color: var(--fir); }
.sheet p { margin: 0 18px 10px; color: var(--muted); font-size: 14px; }
@media (min-width: 900px) { .sheet-bg { align-items: center; } .sheet { border-radius: 20px; } }
.menu a, .menu button { display: flex; align-items: center; gap: 14px; padding: 14px 16px; text-decoration: none; color: inherit; border: 0; border-bottom: 1px solid var(--line); background: none; width: 100%; font-size: 16px; text-align: left; cursor: pointer; }
.menu a:last-child, .menu button:last-child { border-bottom: 0; }
.menu svg { width: 22px; height: 22px; color: var(--fir); flex: none; }
.menu .badge { margin-left: auto; }
.menu .chev { margin-left: auto; color: var(--muted); width: 18px; height: 18px; }
.wawi { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.wawi i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; box-shadow: 0 0 0 3px var(--green-soft); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mt { margin-top: 14px; }
.right { margin-left: auto; }

.in-chat .tabbar { display: none; }
.go-bar { position: sticky; bottom: 0; padding: 12px 16px calc(14px + var(--safe-b)); background: linear-gradient(to top, var(--card) 75%, rgba(255,253,248,0)); border-radius: 0 0 var(--radius) var(--radius); }

/* ---------- Firmen-Design Holz Bulter */
.top { background: #fff; color: var(--ink); border-bottom: 3px solid var(--amber); }
.top .icon-btn:hover { background: rgba(0, 0, 0, .05); }
.top .brand img { height: 30px; width: auto; }
.top .icon-btn { color: var(--fir); }
.chat-head .s { opacity: 1; color: var(--muted); }
@media (min-width: 900px) {
  .top { border-bottom: 1px solid var(--line); }
  .side { background: #fff; color: var(--ink); border-right: 1px solid var(--line); }
  .side .logo img { width: 100%; height: auto; display: block; }
  .side .logo small { color: var(--muted); opacity: 1; margin-top: 8px; }
  .side nav a { color: #3b342b; }
  .side nav a:hover { background: var(--fir-soft); }
  .side nav a.on { background: var(--amber); color: #fff; }
  .side .sep { background: var(--line); }
  .side .me { background: var(--fir-soft); }
}
.login { background: linear-gradient(180deg, #fff 0, #fff 210px, var(--bg) 210px); color: var(--ink); border-top: 6px solid var(--amber); }
.login .logo img { width: min(100%, 420px); height: auto; display: block; }
.login .logo small { color: var(--muted); margin-top: 10px; }
.login .intro { opacity: 1; color: #3b342b; }
.login .card { border-color: var(--line); }
.unread-dot { background: var(--amber); }
.msg.mine .bubble { background: #fde9d4; border-color: #f6d3ad; }
.news-card .img { background: #fff; }
