/* esave Dashboard – gestaltet nach dem esave Corporate Identity Framework v1.0
   Farben: esave Green #97BF0D (Primär), Dark #09211E, Light #16413B, Olive #757A45
   Schrift: Helvetica Neue (Oberfläche) */
:root {
  --green: #97BF0D;
  --green-ink: #4F6607;
  --green-tint: #EEF5DA;
  --dark: #09211E;
  --light: #16413B;
  --olive: #757A45;
  --olive-tint: #EFEFE6;
  --bg: #F4F6F2;
  --surface: #FFFFFF;
  --line: #DCE2D9;
  --line-strong: #C3CCC0;
  --text: #09211E;
  --muted: #5A6864;
  --danger: #B3261E;
  --danger-tint: #FBEAE8;
  --radius: 10px;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sidebar: 252px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 var(--font); color: var(--text); background: var(--bg); }
a { color: var(--light); }
a:hover { color: var(--dark); }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 700; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.ic { width: 18px; height: 18px; flex: none; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.block { display: block; }
.nowrap { white-space: nowrap; }
.plain { padding-left: 18px; margin: 6px 0 0; }
.plain li { margin: 2px 0; }

/* ── Sidebar ─────────────────────────────── */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar); background: var(--dark); color: #fff;
  display: flex; flex-direction: column; padding: 22px 14px 0; z-index: 30; overflow-y: auto;
  border-bottom: 6px solid var(--green);
}
.brand { display: block; padding: 6px 10px 26px; }
.brand img { width: 128px; display: block; }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; position: relative; z-index: 1; }
.nav-group { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.45); padding: 18px 12px 6px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 8px; color: rgba(255,255,255,.82); text-decoration: none; font-size: 14.5px; position: relative; }
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { background: var(--light); color: #fff; font-weight: 700; }
.nav-item.active::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--green); }
.nav-item.active .ic { color: var(--green); }
.nav-item.soon { opacity: .5; cursor: default; }
.nav-item em { margin-left: auto; font-style: normal; font-size: 11px; border: 1px solid rgba(255,255,255,.3); border-radius: 20px; padding: 0 7px; }
.dots { flex: 1; min-height: 80px; margin: 16px -14px 0; opacity: .55;
  background-image: radial-gradient(circle, var(--green) 1.6px, transparent 2.2px); background-size: 19px 23px; background-position: 4px 6px;
  -webkit-mask-image: radial-gradient(ellipse at 85% 80%, #000 0%, transparent 65%); mask-image: radial-gradient(ellipse at 85% 80%, #000 0%, transparent 65%); }
.me { display: flex; align-items: center; gap: 8px; padding: 14px 4px 16px; border-top: 1px solid rgba(255,255,255,.1); }
.me-link { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; color: #fff; text-decoration: none; padding: 4px; border-radius: 8px; }
.me-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.me-link b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-link small { display: block; font-size: 12px; color: rgba(255,255,255,.6); }
.me form { margin: 0; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; border: 0; background: transparent; color: inherit; cursor: pointer; }
.sidebar .icon-btn { color: rgba(255,255,255,.7); }
.icon-btn:hover { background: rgba(127,127,127,.15); }
.nav-toggle, .menu-btn { display: none; }

/* ── Hauptbereich ────────────────────────── */
.main { margin-left: var(--sidebar); min-height: 100vh; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 16px; padding: 26px 36px 18px; }
.titles { flex: 1; min-width: 0; }
.topbar h1 { font-size: 26px; letter-spacing: -.01em; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--dark); text-decoration: underline; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.content { padding: 4px 36px 48px; display: flex; flex-direction: column; gap: 18px; max-width: 1400px; width: 100%; }
.flash { margin: 0 36px 14px; padding: 11px 14px; border-radius: 8px; font-size: 14px; border: 1px solid; }
.content .flash, .auth-box .flash, .card .flash { margin: 0 0 14px; }
.flash.ok { background: var(--green-tint); border-color: #CFE29A; color: var(--green-ink); }
.flash.err { background: var(--danger-tint); border-color: #F0C2BD; color: var(--danger); }
.flash code.secret { margin-left: 6px; }

/* ── Buttons ─────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 15px; border-radius: 8px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--dark); font: 600 14px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--dark); color: var(--dark); }
.btn.primary { background: var(--green); border-color: var(--green); color: var(--dark); font-weight: 700; }
.btn.primary:hover { background: #A7CE1F; border-color: #A7CE1F; }
.btn.primary:disabled { opacity: .45; cursor: not-allowed; }
.btn.danger { color: var(--danger); border-color: #E6B3AE; }
.btn.danger:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn.block { width: 100%; }
.btn.link { border: 0; background: none; color: var(--muted); padding: 0; height: auto; margin-top: 14px; font-weight: 400; text-decoration: underline; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(151,191,13,.55); outline-offset: 1px; }

/* ── Karten & Raster ─────────────────────── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.card.flush { padding: 0; overflow-x: auto; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card-h h3 { font-size: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.grid-2.wide-left { grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); }
.section-title { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: 10px; }
.empty { color: var(--muted); padding: 18px 22px; margin: 0; }
.empty-state { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty-state .ic { width: 40px; height: 40px; color: var(--olive); }
.empty-state .big { font-size: 56px; font-weight: 700; color: var(--dark); margin: 0; }

/* ── Übersicht ───────────────────────────── */
.hero { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; }
.hero > div { min-width: 0; max-width: 40rem; }
.eyebrow { margin: 0 0 4px; color: var(--olive); font-size: 13px; }
.hero h2 { font-size: 22px; line-height: 1.35; overflow-wrap: break-word; }
@media (max-width: 420px) { .hero h2 { font-size: 20px; } }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: var(--dark); display: flex; flex-direction: column; position: relative; overflow: hidden; }
.kpi::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.kpi:hover::after { transform: scaleX(1); }
.kpi span { font-size: 13px; color: var(--muted); }
.kpi b { font-size: 34px; line-height: 1.15; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.kpi small { color: var(--muted); font-size: 12.5px; }
.kpi.attn b { color: var(--olive); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 92px 1fr auto; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); align-items: baseline; }
.timeline li:first-child { border-top: 0; }
.timeline time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13.5px; }
.timeline a { font-weight: 600; text-decoration: none; color: var(--dark); }
.timeline .muted { font-size: 13.5px; }
.quick { display: flex; flex-wrap: wrap; gap: 10px; }
.modules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.module { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--dark); position: relative; }
.module .ic { width: 26px; height: 26px; color: var(--green-ink); margin-bottom: 8px; }
.module b { font-size: 16px; }
.module span { font-size: 13.5px; color: var(--muted); }
.module em { position: absolute; top: 16px; right: 16px; font-style: normal; }
.module:not(.off):hover { border-color: var(--green); }
.module.off { background: transparent; border-style: dashed; }
.module.off .ic { color: var(--muted); }

/* ── Chips, Badges, Avatare ──────────────── */
.chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 20px; background: #E7EBE5; color: var(--muted); white-space: nowrap; }
.chip.st-aktiv { background: var(--green-tint); color: var(--green-ink); }
.chip.st-geplant { background: #E1ECEA; color: var(--light); }
.chip.st-kuendigung { background: var(--olive-tint); color: #5B5F33; }
.chip.st-aus { background: #ECEDEC; color: #6B6F6E; }
.badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 11px; font-size: 12px; font-weight: 700; padding: 0 6px; }
.badge.warn { background: var(--olive); color: #fff; }
.avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--light); color: #fff; font-weight: 700; font-size: 13px; flex: none; letter-spacing: .02em; }
.avatar.sm { width: 32px; height: 32px; font-size: 12px; background: var(--green); color: var(--dark); }
.avatar.lg { width: 64px; height: 64px; font-size: 22px; }

/* ── Tabellen & Filter ───────────────────── */
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filters input[type=search] { flex: 1 1 260px; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #FAFBF9; }
.table td { padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table tr.rowlink { cursor: pointer; }
.table tr.rowlink:hover td { background: #F7FAEF; }
.table tr.inactive td { opacity: .55; }
.table td a { text-decoration: none; }
.table td .ic { vertical-align: -3px; width: 16px; height: 16px; color: var(--olive); }
.person { display: flex; align-items: center; gap: 12px; color: var(--dark); }
.person b { display: block; }
.person small { color: var(--muted); font-size: 12.5px; }
.row-actions { text-align: right; white-space: nowrap; }
.row-actions > * { display: inline-block; vertical-align: middle; margin: 2px 0 2px 6px; }
.row-actions form, form.inline { margin: 0; }
.row-actions > form { margin-left: 6px; }
.table select { height: 32px; font-size: 13.5px; padding: 0 32px 0 8px; max-width: 240px; text-overflow: ellipsis; }
.table select:disabled { background-image: none; padding-right: 8px; color: var(--muted); }

/* ── Formulare ───────────────────────────── */
input, select, textarea { font: inherit; color: var(--text); background: #fff; border: 1px solid var(--line-strong); border-radius: 8px; height: 40px; padding: 0 12px; width: 100%; }
textarea { height: auto; padding: 10px 12px; resize: vertical; }
select { appearance: none; padding-right: 32px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2309211E' stroke-width='1.6'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center; }
input:hover, select:hover, textarea:hover { border-color: var(--olive); }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--light); vertical-align: -3px; }
input[type=file] { height: auto; padding: 7px; }
.filters select, .filters input { width: auto; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: 14px; }
.stack label small, .field small { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.stack label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
.row { display: flex; gap: 8px; }
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px 12px; margin: 0; display: flex; flex-direction: column; gap: 8px; }
legend { font-weight: 600; font-size: 14px; padding: 0 4px; }

.emp-form { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: start; }
.section-nav { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 2px; }
.section-nav a { padding: 8px 12px; border-radius: 6px; text-decoration: none; color: var(--muted); font-size: 14px; border-left: 3px solid transparent; }
.section-nav a:hover, .section-nav a.on { color: var(--dark); background: var(--surface); border-left-color: var(--green); }
.form-sections { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.form-sections .card { scroll-margin-top: 20px; }
.fgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 16px; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > label { font-weight: 600; font-size: 13.5px; }
.field .req { color: var(--olive); font-style: normal; margin-left: 2px; }
.w1 { grid-column: span 1; } .w2 { grid-column: span 2; } .w3 { grid-column: span 3; } .w4 { grid-column: span 4; }
.field.check { justify-content: end; }
.field.check label { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13.5px; height: 40px; }
.field.has-err input, .field.has-err select { border-color: var(--danger); background: #FFFAF9; }
.field small.err { color: var(--danger); }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; }
.form-actions.sticky { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 30%); padding: 18px 0 14px; }
.settings { display: flex; flex-direction: column; gap: 18px; max-width: 900px; }
.upload { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.upload .field { flex: 0 1 220px; font-weight: 600; font-size: 13.5px; }
.upload .grow { flex: 1 1 240px; }

/* ── Dossier ─────────────────────────────── */
.dossier-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; position: relative; overflow: hidden; }
.dossier-head::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--green); }
.who { flex: 1 1 220px; }
.who h2 { font-size: 21px; }
.who p { margin: 3px 0 0; color: var(--muted); }
.facts { display: flex; gap: 28px; margin: 0; flex-wrap: wrap; }
.facts dt { font-size: 12px; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14.5px; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--dark); }
.tabs a.active { color: var(--dark); border-bottom-color: var(--green); }
.hints { display: flex; flex-direction: column; gap: 6px; }
.hint { padding: 9px 14px 9px 36px; border-radius: 8px; font-size: 14px; position: relative; }
.hint::before { content: ""; position: absolute; left: 14px; top: 50%; width: 9px; height: 9px; border-radius: 50%; transform: translateY(-50%); }
.hint.warn { background: var(--olive-tint); color: #4C4F2A; }
.hint.warn::before { background: var(--olive); }
.hint.info { background: #E8EEEC; color: var(--light); }
.hint.info::before { background: var(--light); }
.dossier-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin: 0; }
.kv div.wide { grid-column: 1 / -1; }
.kv dt { font-size: 12.5px; color: var(--muted); }
.kv dd { margin: 2px 0 0; overflow-wrap: anywhere; white-space: pre-line; }
.kv dd.missing { color: var(--olive); font-style: italic; }
.danger-zone { margin-top: 18px; color: var(--muted); font-size: 14px; }
.danger-zone summary { cursor: pointer; }
.danger-zone p { max-width: 640px; }

/* ── Konto ───────────────────────────────── */
.steps { padding-left: 20px; display: flex; flex-direction: column; gap: 10px; margin: 0 0 14px; }
code.secret { display: block; font-size: 17px; letter-spacing: .08em; background: var(--green-tint); color: var(--dark); padding: 8px 12px; border-radius: 6px; margin: 6px 0 4px; word-break: break-all; }
.flash code.secret { display: inline-block; font-size: 15px; margin: 0 0 0 6px; padding: 2px 8px; }
h4 { margin: 20px 0 0; font-size: 14px; }

/* ── Anmeldung ───────────────────────────── */
body.auth { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(380px, 1fr); min-height: 100vh; background: var(--surface); }
.auth-art { background: var(--dark); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; border-bottom: 10px solid var(--green); }
.auth-art img { width: 180px; position: relative; z-index: 1; }
.auth-art p { font-size: 30px; line-height: 1.25; font-weight: 700; margin: 0; position: relative; z-index: 1; max-width: 420px; }
.dots.big { position: absolute; inset: 0; margin: 0; opacity: .8; background-size: 26px 31px;
  -webkit-mask-image: radial-gradient(ellipse at 88% 18%, #000 0%, transparent 55%); mask-image: radial-gradient(ellipse at 88% 18%, #000 0%, transparent 55%); }
.auth-panel { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px 24px; }
.auth-box { width: 100%; max-width: 370px; }
.auth-box h1 { font-size: 24px; margin-bottom: 4px; }
.auth-box > .muted { margin: 0 0 22px; }
.auth-logo { display: none; width: 120px; margin-bottom: 28px; }
.auth-panel footer { margin-top: 40px; font-size: 12px; color: var(--muted); }

/* ── Responsiv ───────────────────────────── */
@media (max-width: 1100px) {
  .kpis, .modules { grid-template-columns: repeat(2, 1fr); }
  .dossier-grid, .grid-2, .grid-2.wide-left { grid-template-columns: 1fr; }
  .hide-md { display: none; }
}
@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(0,0,0,.3); }
  .nav-toggle:checked ~ .sidebar { transform: none; }
  .main { margin-left: 0; }
  .menu-btn { display: inline-grid; margin-left: -8px; }
  .topbar { padding: 16px 16px 12px; flex-wrap: wrap; }
  .topbar h1 { font-size: 21px; }
  .topbar .actions { order: 3; width: 100%; justify-content: flex-start; }
  .topbar .actions:empty { display: none; }
  .content { padding: 4px 16px 40px; }
  .flash { margin: 0 16px 12px; }
  .emp-form { grid-template-columns: 1fr; }
  .section-nav { display: none; }
  .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w3, .w4 { grid-column: span 2; }
  body.auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-logo { display: block; }
}
@media (max-width: 560px) {
  .kpis, .modules { grid-template-columns: 1fr 1fr; }
  .kpi b { font-size: 28px; }
  .modules { grid-template-columns: 1fr; }
  .fgrid { grid-template-columns: 1fr; }
  .w1, .w2, .w3, .w4 { grid-column: span 1; }
  .kv { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  .facts { gap: 18px; }
  .actions .btn { padding: 0 11px; }
  .timeline li { grid-template-columns: 82px 1fr; }
  .timeline li .muted { grid-column: 2; }
}
@media print {
  .sidebar, .topbar .actions, .tabs, .menu-btn, .danger-zone { display: none; }
  .main { margin: 0; }
}

/* ══ Geräte-Anpassungen: PC, Surface, iPad, iPhone, Android ══════════════ */

/* Schrift: Helvetica Neue ist auf Mac, iPhone und iPad vorhanden.
   Für Windows und Android die lizenzierten Schriftdateien aus der Synology nach
   public/fonts/ kopieren (HelveticaNeue-Roman.woff2, HelveticaNeue-Bold.woff2). */
@font-face { font-family: "esave Sans"; font-weight: 400; font-display: swap;
  src: local("Helvetica Neue"), local("HelveticaNeue"), url("/static/fonts/HelveticaNeue-Roman.woff2") format("woff2"); }
@font-face { font-family: "esave Sans"; font-weight: 700; font-display: swap;
  src: local("Helvetica Neue Bold"), local("HelveticaNeue-Bold"), url("/static/fonts/HelveticaNeue-Bold.woff2") format("woff2"); }
:root { --font: "esave Sans", "Helvetica Neue", Helvetica, Arial, Roboto, "Segoe UI", sans-serif; }

html { -webkit-tap-highlight-color: rgba(151,191,13,.2); }
body { overflow-x: hidden; }
input[type=date] { -webkit-appearance: none; appearance: none; min-height: 40px; line-height: 38px; text-align: left; }
input[type=date]::-webkit-date-and-time-value { text-align: left; }
input[type=search] { -webkit-appearance: none; appearance: none; }

/* Notch und Home-Leiste bei iPhone / Vollbild-App */
.sidebar { padding-top: calc(22px + env(safe-area-inset-top)); padding-left: calc(14px + env(safe-area-inset-left)); }
.me { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
.form-actions.sticky { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }

/* Touch-Bedienung (Finger statt Maus): iPad, iPhone, Android, Surface im Tablet-Modus */
@media (pointer: coarse) {
  .btn { height: 44px; padding: 0 16px; }
  .btn.sm { height: 40px; padding: 0 12px; }
  input, select, textarea { font-size: 16px; }   /* verhindert automatisches Zoomen auf iPhone/iPad */
  input:not([type=checkbox]):not([type=file]), select { height: 44px; }
  input[type=date] { min-height: 44px; line-height: 42px; }
  input[type=file] { min-height: 44px; }
  .table select { height: 40px; font-size: 16px; }
  input[type=checkbox] { width: 22px; height: 22px; }
  .stack label.check, .field.check label { min-height: 44px; }
  .nav-item { padding: 12px; }
  .tabs a { padding: 13px 14px; }
  .icon-btn { width: 44px; height: 44px; }
  .section-nav a { padding: 11px 12px; }
  .table td { padding-top: 13px; padding-bottom: 13px; }
  .kpi::after { display: none; }
}

/* Breite Tablets (iPad quer, Surface): zweispaltige Admin-Seiten früher umbrechen */
@media (max-width: 1440px) {
  .grid-2.wide-left { grid-template-columns: 1fr; }
}

/* Tablet hoch (iPad, Surface hoch): Formular ohne Seitennavigation, 2 Spalten */
@media (max-width: 1024px) and (min-width: 861px) {
  .emp-form { grid-template-columns: 1fr; }
  .section-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .section-nav a { border-left: 0; border-bottom: 3px solid transparent; }
  .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w3, .w4 { grid-column: span 2; }
  .content, .topbar { padding-left: 24px; padding-right: 24px; }
  .flash { margin-left: 24px; margin-right: 24px; }
}

/* Smartphones: Tabellen werden zu Karten statt seitlich zu scrollen */
@media (max-width: 700px) {
  .table.cards thead { display: none; }
  .table.cards, .table.cards tbody { display: block; }
  .table.cards tr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .table.cards tr:last-child { border-bottom: 0; }
  .table.cards td { display: block; padding: 0; border: 0; }
  .table.cards td:first-child { flex: 1 1 100%; }
  .table.cards td.hide-sm, .table.cards td.hide-md { display: none; }
  .table.cards .row-actions { flex: 1 1 100%; text-align: left; white-space: normal; margin-top: 6px; }
  .table.cards .row-actions > *, .table.cards .row-actions > form { margin: 0 6px 6px 0; }
  .table.cards td.nowrap { font-size: 13px; color: var(--muted); }
  .card.flush { overflow-x: visible; }
  .filters > * { flex: 1 1 100%; width: 100% !important; }
  .filters select { flex: 1 1 45%; }
  .upload .field, .upload .btn { flex: 1 1 100%; }
  .dossier-head { gap: 14px; }
  .facts { width: 100%; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tabs { overflow-x: auto; scrollbar-width: none; }
  .tabs a { white-space: nowrap; }
  .actions .btn { flex: 1 1 auto; }
  .form-actions .btn { flex: 1; }
  .topbar { padding-top: calc(14px + env(safe-area-inset-top)); }
}

/* Sehr kleine Geräte (iPhone SE, kleine Android) */
@media (max-width: 360px) {
  .kpis { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .content { padding-left: 12px; padding-right: 12px; }
  .card { padding: 16px; }
}

/* Smartphone quer: Höhe ist knapp */
@media (max-height: 500px) and (orientation: landscape) {
  .form-actions.sticky { position: static; }
  .auth-panel { padding: 16px; }
}

/* ══ Dokumentenablage ═══════════════════════════════════════════════════ */
.doc-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.doc-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--dark); font-size: 13.5px; font-weight: 600; }
.doc-nav a span { min-width: 20px; height: 20px; border-radius: 10px; background: var(--green-tint); color: var(--green-ink); font-size: 12px; display: inline-grid; place-items: center; padding: 0 6px; }
.doc-nav a:hover { border-color: var(--green); }
.docs-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.doc-group { scroll-margin-top: 16px; }
.doc-group .pad, .card.flush > .pad { padding: 18px 22px 2px; }
.doc-group .card-h { margin-bottom: 12px; flex-wrap: wrap; }
.pad-x { padding: 0 22px 16px; margin: 0; }
.count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 11px; background: #E7EBE5; color: var(--muted); font-size: 12px; padding: 0 6px; margin-left: 4px; vertical-align: 2px; }
.card-h-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.card-h-actions form { margin: 0; }
.doc-link { display: flex; gap: 10px; align-items: flex-start; color: var(--dark); }
.doc-link .ic { margin-top: 2px; }
.doc-link b { display: block; font-weight: 600; }
.doc-link small { color: var(--muted); font-size: 12.5px; }
.doc-group .table td:first-child { width: 60%; }
.abs-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.abs-summary div { background: var(--bg); border-radius: 8px; padding: 10px 14px; display: flex; flex-direction: column; }
.abs-summary span { font-size: 12.5px; color: var(--muted); }
.abs-summary b { font-size: 20px; font-variant-numeric: tabular-nums; }
.abs-summary small { font-size: 12px; color: var(--muted); }
.pct { display: inline-block; min-width: 52px; text-align: center; padding: 2px 8px; border-radius: 20px; background: var(--olive-tint); color: #4C4F2A; font-weight: 700; font-size: 13px; }
.upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.upload-grid .field { font-weight: 600; font-size: 13.5px; }
.upload-grid .wide, .upload-grid .absence-fields { grid-column: 1 / -1; }
.absence-fields { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px 14px; padding: 12px; background: var(--olive-tint); border-radius: 8px; }
.absence-fields[hidden], [data-not-absence][hidden] { display: none; }
.upload-actions { display: flex; justify-content: flex-end; gap: 8px; }
.upload-card { padding: 0; }
.upload-card summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 14px 18px; cursor: pointer; }
.upload-card summary::-webkit-details-marker { display: none; }
.upload-card[open] summary { border-bottom: 1px solid var(--line); }
.upload-card[open] summary .btn { background: var(--surface); border-color: var(--line-strong); }
.upload-card form { padding: 18px; }
.upload-card .upload-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.upload-card .absence-fields { grid-column: 1 / -1; }
.doc-group:target { outline: 3px solid var(--green); outline-offset: 2px; }
.doc-group:focus { outline: none; }
@media (max-width: 1100px) { .upload-card .upload-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 1360px) { .hide-lg { display: none; } }
@media (max-width: 700px) {
  .upload-grid, .upload-card .upload-grid { grid-template-columns: 1fr; }
  .absence-fields { grid-template-columns: 1fr 1fr; }
  .absence-fields label:last-child { grid-column: 1 / -1; }
  .upload-card summary { padding: 12px 14px; }
  .upload-card form { padding: 14px; }
  .abs-summary { grid-template-columns: 1fr; }
  .doc-group .pad, .card.flush > .pad { padding: 16px 16px 2px; }
  .pad-x { padding: 0 16px 14px; }
  .doc-group .table td:first-child { width: auto; }
  .doc-nav { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .doc-nav a { white-space: nowrap; }
  .upload-actions .btn { flex: 1; }
}

/* Dokumentlisten bis Tablet-Breite (Surface hoch, iPhone quer) als Karten */
@media (max-width: 1024px) {
  .doc-group .table.cards thead { display: none; }
  .doc-group .table.cards, .doc-group .table.cards tbody { display: block; }
  .doc-group .table.cards tr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 12px 22px; border-bottom: 1px solid var(--line); }
  .doc-group .table.cards tr:last-child { border-bottom: 0; }
  .doc-group .table.cards td { display: block; padding: 0; border: 0; width: auto; }
  .doc-group .table.cards td:first-child { flex: 1 1 100%; }
  .doc-group .table.cards td.hide-sm, .doc-group .table.cards td.hide-md, .doc-group .table.cards td.hide-lg { display: none; }
  .doc-group .table.cards .row-actions { margin-left: auto; text-align: right; }
  .doc-group .table.cards .row-actions > *, .doc-group .table.cards .row-actions > form { margin: 0 0 0 6px; }
}
@media (max-width: 700px) {
  .doc-group .table.cards tr { padding: 12px 16px; }
  .doc-group .table.cards .row-actions { flex: 1 1 100%; margin: 6px 0 0; text-align: left; }
  .doc-group .table.cards .row-actions > *, .doc-group .table.cards .row-actions > form { margin: 0 6px 6px 0; }
}
@media (max-width: 360px) {
  .doc-nav { margin: 0 -12px; padding: 0 12px 4px; }
}
.row-actions > a.btn, .row-actions > form > .btn { display: inline-flex; vertical-align: middle; }

/* ══ Assistent «Mitarbeiter einstellen» ══════════════════════════════════ */
dialog.wizard { padding: 0; border: 0; border-radius: 14px; width: min(980px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); height: min(820px, calc(100dvh - 32px));
  background: var(--surface); color: var(--text); box-shadow: 0 24px 80px rgba(9,33,30,.35); overflow: hidden; }
dialog.wizard[open] { display: flex; }
dialog.wizard::backdrop { background: rgba(9,33,30,.62); backdrop-filter: blur(2px); }
.wz-form { display: flex; flex-direction: column; width: 100%; min-height: 0; }
.wz-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 24px 8px; background: var(--dark); color: #fff; position: relative; }
.wz-head::after { content: ""; position: absolute; right: 60px; top: 0; bottom: 0; width: 220px; opacity: .5;
  background-image: radial-gradient(circle, var(--green) 1.6px, transparent 2.2px); background-size: 17px 19px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%); pointer-events: none; }
.wz-head h2 { font-size: 21px; }
.wz-head .eyebrow { color: var(--green); }
.wz-head .icon-btn { color: #fff; font-size: 18px; position: relative; z-index: 1; }
.wz-progress { list-style: none; margin: 0; padding: 10px 18px 14px; display: flex; gap: 4px; background: var(--dark); overflow-x: auto; scrollbar-width: none; }
.wz-progress li { flex: 1 0 auto; }
.wz-progress button { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 100%; min-width: 64px; background: none; border: 0; color: rgba(255,255,255,.55); cursor: pointer; font: 600 11px/1.2 var(--font); padding: 2px; }
.wz-progress button:disabled { cursor: default; opacity: .6; }
.wz-progress span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid rgba(255,255,255,.35); font-size: 12px; }
.wz-progress em { font-style: normal; max-width: 92px; text-align: center; white-space: normal; }
.wz-progress li.done span { background: var(--light); border-color: var(--green); color: var(--green); }
.wz-progress li.on button { color: #fff; }
.wz-progress li.on span { background: var(--green); border-color: var(--green); color: var(--dark); }
.wz-flash { margin: 12px 24px 0 !important; }
.wz-body { flex: 1; overflow-y: auto; padding: 22px 24px 28px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.wz-title { display: flex; align-items: center; gap: 10px; font-size: 19px; margin-bottom: 16px; }
.wz-title span { width: 30px; height: 30px; border-radius: 50%; background: var(--green-tint); color: var(--green-ink); display: grid; place-items: center; font-size: 14px; }
.wz-intro { margin: -8px 0 16px; max-width: 640px; }
.wz-sub { margin: 22px 0 12px; font-size: 14.5px; }
.wz-foot { display: flex; align-items: center; gap: 10px; padding: 14px 24px; border-top: 1px solid var(--line); background: #FAFBF9; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
.wz-foot .wz-count { flex: 1; text-align: center; }
.wz-foot .btn:disabled { opacity: .4; cursor: default; }
.reco { margin-top: 18px; border-radius: 10px; padding: 14px 16px; background: var(--bg); border-left: 4px solid var(--line-strong); font-size: 14px; }
.reco:empty { display: none; }
.reco.active { background: var(--green-tint); border-left-color: var(--green); }
.reco ul { margin: 8px 0 10px; padding-left: 18px; }
.reco ul.warn { color: #5B5F33; }
.reco p { margin: 6px 0 0; }
.reco .tarif { display: inline-block; background: var(--dark); color: var(--green); padding: 1px 9px; border-radius: 6px; letter-spacing: .04em; }
.reco-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.reco-grid div { display: flex; flex-direction: column; }
.reco-grid span { font-size: 12.5px; color: var(--muted); }
.reco-grid b { font-size: 17px; }
.reco-grid small { color: var(--muted); font-size: 12px; }
.wz-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.wz-summary section { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.wz-summary h5 { margin: 0 0 6px; font-size: 14px; }
.wz-summary dl { margin: 0; display: grid; gap: 4px; font-size: 13.5px; }
.wz-summary dl div { display: grid; grid-template-columns: 42% 1fr; gap: 8px; }
.wz-summary dt { color: var(--muted); }
.wz-summary dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--dark); cursor: pointer; display: flex; justify-content: space-between; width: 100%; }
.link-btn span { font-weight: 600; font-size: 12.5px; color: var(--light); text-decoration: underline; }
[data-cond][hidden] { display: none !important; }

/* Kinderliste */
.kinder-editor { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.kinder-rows { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.kinder-rows:empty { display: none; }
.kind-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto minmax(0, 1fr) auto; gap: 10px; align-items: center; background: var(--bg); border-radius: 8px; padding: 8px 10px; }
.k-ausb-l { display: flex; align-items: center; gap: 6px; font-weight: 400; font-size: 13.5px; white-space: nowrap; }
.k-info { text-align: right; }

/* Dossier: Auswertung */
.auswertung { grid-column: 1 / -1; background: linear-gradient(90deg, var(--green-tint), var(--surface) 60%); }
.auswertung .kv { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.auswertung dd b { font-size: 15px; }
@media (max-width: 1100px) { .auswertung .kv { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (max-width: 700px) {
  dialog.wizard { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .wz-head { padding: calc(14px + env(safe-area-inset-top)) 16px 6px; }
  .wz-head h2 { font-size: 18px; }
  .wz-progress { padding: 8px 10px 12px; }
  .wz-progress em { display: none; }
  .wz-progress button { min-width: 32px; }
  .wz-body { padding: 18px 16px 24px; }
  .wz-foot { padding-left: 16px; padding-right: 16px; }
  .wz-foot .btn { flex: 1; }
  .wz-foot .wz-count { display: none; }
  .wz-flash { margin: 10px 16px 0 !important; }
  .reco-grid { grid-template-columns: 1fr; }
  .wz-summary { grid-template-columns: 1fr; }
  .kind-row { grid-template-columns: 1fr 1fr; }
  .kind-row .k-info { grid-column: 1; text-align: left; }
  .kind-row button { justify-self: end; }
  .auswertung .kv { grid-template-columns: 1fr; }
}
@media (max-height: 520px) and (orientation: landscape) {
  dialog.wizard { height: 100dvh; max-height: 100dvh; width: 100vw; max-width: 100vw; border-radius: 0; }
  .wz-head { padding-top: 8px; } .wz-head .eyebrow { display: none; } .wz-progress em { display: none; }
}
.wz-foot [hidden] { display: none !important; }
.wz-body { overflow-x: hidden; }
select { max-width: 100%; text-overflow: ellipsis; }
.wz-body .fgrid > .field { min-width: 0; }
@media (pointer: coarse) {
  .wz-progress button { min-height: 44px; min-width: 40px; justify-content: center; }
  .wz-progress span { width: 32px; height: 32px; }
}
.stack .row label { flex: 1; min-width: 0; }
.un-preview { margin: -4px 0 0; }
.un-preview b { color: var(--dark); font-size: 14px; }

/* Adressvorschläge */
.addr-wrap { position: relative; }
.addr-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); list-style: none; margin: 0; padding: 4px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; box-shadow: 0 12px 30px rgba(9,33,30,.16); max-height: 280px; overflow-y: auto; }
.addr-list li { padding: 9px 10px; border-radius: 6px; cursor: pointer; display: flex; gap: 8px; justify-content: space-between; font-size: 14px; }
.addr-list li span { color: var(--muted); white-space: nowrap; }
.addr-list li:hover, .addr-list li.on { background: var(--green-tint); }
/* Notfallkontakte */
.list-editor { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.list-rows { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.kontakt-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; align-items: center; background: var(--bg); border-radius: 8px; padding: 8px 10px; }
@media (max-width: 700px) { .kontakt-row { grid-template-columns: 1fr 1fr; } .kontakt-row .c-name { grid-column: 1 / -1; } .kontakt-row button { justify-self: end; } }
/* Assistent: übersprungene Schritte, Konto */
.wz-progress li.skip { opacity: .35; }
.wz-progress li.skip span { border-style: dashed; }
.konto-info .reco { margin-top: 0; }
.wz-intro .btn { margin-left: 6px; vertical-align: middle; }
.konto-flash code.secret { display: inline-block; margin: 6px 12px 0 4px; }
.sign-chip { margin: 6px 0 0 26px; }
.pdf-flash { display: flex; align-items: center; gap: 14px; justify-content: space-between; flex-wrap: wrap; }
.field.check > span { display: flex; align-items: center; gap: 8px; font-weight: 600; min-height: 40px; }
.stelle-grid .form-actions { margin-top: 16px; }
[data-sign-only][hidden] { display: none !important; }
.wz-submits { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 700px) { .wz-submits { flex: 2; } .wz-submits .btn { flex: 1; padding: 0 8px; } }
.leitung-table td, .leitung-table th { padding: 6px 8px; }
.leitung-table input { height: 38px; }
.archiv { margin-top: 10px; }
.sig-fields { margin-top: 6px; }
@media (max-width: 700px) { .leitung-table thead { display: none; } .leitung-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px 0; } .leitung-table td:first-child { grid-column: 1 / -1; } }
.card-h { flex-wrap: wrap; }
.grid-2 > * { min-width: 0; }
.card-h h3 { min-width: 0; overflow-wrap: anywhere; }
/* Dokumentlisten bis Laptop-Breite als Karten, damit Statusanzeige und Knöpfe Platz haben */
@media (max-width: 1280px) {
  .doc-group .table.cards thead { display: none; }
  .doc-group .table.cards, .doc-group .table.cards tbody { display: block; }
  .doc-group .table.cards tr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 12px 22px; border-bottom: 1px solid var(--line); }
  .doc-group .table.cards tr:last-child { border-bottom: 0; }
  .doc-group .table.cards td { display: block; padding: 0; border: 0; width: auto; }
  .doc-group .table.cards td:first-child { flex: 1 1 100%; }
  .doc-group .table.cards td.hide-sm, .doc-group .table.cards td.hide-md, .doc-group .table.cards td.hide-lg { display: none; }
  .doc-group .table.cards .row-actions { margin-left: auto; white-space: normal; }
}
.row-actions { white-space: normal; }
.sig-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.sig-one { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sig-one .sig-free { grid-template-columns: 1fr 1fr; background: var(--bg); padding: 10px; border-radius: 8px; }
.sig-free[hidden] { display: none !important; }
@media (max-width: 700px) { .sig-grid { grid-template-columns: 1fr; } }

/* Checkliste Einführung */
.progress { height: 8px; background: #E7EBE5; border-radius: 4px; overflow: hidden; margin: -4px 0 14px; }
.progress span { display: block; height: 100%; background: var(--green); border-radius: 4px; transition: width .3s; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 8px 16px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.checklist li:first-child { border-top: 0; }
.cl-main { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 14.5px; }
.cl-main input { width: 20px; height: 20px; flex: none; accent-color: var(--light); }
.checklist li.is-done .cl-main span { color: var(--muted); }
.cl-meta { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
.cl-meta input { height: 36px; font-size: 13.5px; }
.cl-by { white-space: nowrap; }
.cl-del { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.cl-del input { width: 16px; height: 16px; }
.cl-add { margin: 14px 0 4px; }
@media (max-width: 900px) {
  .checklist li { grid-template-columns: 1fr; }
  .cl-meta { grid-template-columns: 1fr 1fr; padding-left: 32px; }
  .cl-by, .cl-del { grid-column: auto; }
}
@media (pointer: coarse) { .cl-meta input { height: 44px; font-size: 16px; } .cl-main { min-height: 44px; } .cl-main input { width: 24px; height: 24px; } }
.field.mt { margin-top: 14px; }

/* Benefits */
.intro { margin: -6px 0 0; }
.benefits-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.benefit-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.benefit .card-h h3 { display: flex; align-items: center; gap: 8px; }
.benefit .card-h h3 .ic { color: var(--green-ink); }
.benefit.inactive { opacity: .6; }
.benefit-kurz { margin: 0 0 10px; }
.anleitung { background: var(--bg); border-radius: 8px; padding: 10px 14px; margin: 8px 0; }
.anleitung summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.anleitung ol { margin: 8px 0 2px; padding-left: 20px; }
.anleitung li { margin: 3px 0; }
.benefit-new { position: sticky; top: 16px; }
.benefit-form .row label { flex: 1; }
.cl-sub { display: flex; align-items: center; gap: 8px; margin: 20px 0 4px; font-size: 14.5px; }
.cl-sub a { font-weight: 400; margin-left: auto; }
.cl-main a { margin-left: 6px; }
@media (max-width: 1100px) { .benefits-layout { grid-template-columns: 1fr; } .benefit-new { position: static; order: -1; } }

/* Einführungsgespräch */
.cl-info { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.cl-main span { display: block; }
.gespraech { display: flex; flex-direction: column; gap: 14px; padding-bottom: 90px; }
.gs-intro { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.gs-intro h2 { font-size: 20px; }
.gs-intro p { margin: 2px 0 0; }
.gs-filter { margin-left: auto; display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.gs-filter input { width: 20px; height: 20px; }
.gs-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.gs-card { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--line-strong); border-radius: var(--radius); padding: 18px 20px; transition: border-color .2s, background .2s; }
.gs-card.is-done { border-left-color: var(--green); background: #FAFCF5; }
.gs-card.is-done h3 { color: var(--muted); }
.gs-num { width: 36px; height: 36px; border-radius: 50%; background: var(--green-tint); color: var(--green-ink); display: grid; place-items: center; font-weight: 700; }
.gs-card.is-done .gs-num { background: var(--green); color: var(--dark); }
.gs-body h3 { font-size: 17px; display: flex; align-items: center; gap: 8px; }
.gs-info { margin: 6px 0 0; font-size: 15px; line-height: 1.5; }
.gs-steps { background: var(--bg); border-radius: 8px; padding: 10px 14px; margin-top: 10px; font-size: 14.5px; }
.gs-steps ol { margin: 6px 0 0; padding-left: 20px; }
.gs-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.gs-facts div { background: var(--olive-tint); border-radius: 8px; padding: 6px 10px; }
.gs-facts dt { font-size: 11.5px; color: var(--olive); }
.gs-facts dd { margin: 0; font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.gs-note { margin-top: 12px; height: 38px; font-size: 14px; }
.gs-check { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--muted); min-width: 84px; }
.gs-check input { width: 34px; height: 34px; accent-color: var(--light); }
.gs-card.is-done .gs-check { color: var(--green-ink); }
.gs-sub { display: flex; align-items: center; gap: 8px; font-size: 16px; margin-top: 12px; }
.gs-bar { position: fixed; left: var(--sidebar); right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 12px 36px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(9,33,30,.06); }
.gs-progress { flex: 1; min-width: 140px; }
.gs-progress .progress { margin: 0 0 4px; }
@media (max-width: 860px) { .gs-bar { left: 0; padding-left: 16px; padding-right: 16px; flex-wrap: wrap; } .gs-progress { flex: 1 1 100%; } .gs-bar .btn { flex: 1; } }
@media (max-width: 560px) { .gs-card { grid-template-columns: minmax(0, 1fr) auto; padding: 14px; } .gs-num { display: none; } .gespraech { padding-bottom: 150px; } }
[data-gs-card][hidden] { display: none !important; }

/* Gespräche & Austritt */
.gs-tab { align-items: start; }
.mag-date { font-size: 28px; font-weight: 700; margin: 0; font-variant-numeric: tabular-nums; }
.mag-form { margin-top: 10px; flex-wrap: wrap; }
.mag-form select, .mag-form input { width: auto; flex: 1 1 140px; }
.austritt-card summary { cursor: pointer; list-style: none; }
.austritt-card summary::-webkit-details-marker { display: none; }
.austritt-card summary h3 { font-size: 16px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.austritt-card[open] summary { margin-bottom: 14px; }
.austritt-form .row input { flex: 1; }
.gs-split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 18px; margin-top: 14px; }
.leitfaden > div { background: var(--green-tint); border-radius: 10px; padding: 14px 16px; }
.leitfaden > div[hidden] { display: none; }
.leitfaden ol { margin: 8px 0 0; padding-left: 20px; }
.leitfaden li { margin: 6px 0; font-size: 14.5px; }
.gs-fields { display: flex; flex-direction: column; gap: 10px; }
.gs-fields .field { font-weight: 600; font-size: 13.5px; }
.gs-history { display: flex; flex-direction: column; gap: 12px; }
.gs-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.gs-cols > div { background: var(--bg); border-radius: 8px; padding: 10px 12px; }
.gs-cols .pos { border-left: 4px solid var(--green); }
.gs-cols .neg { border-left: 4px solid var(--olive); }
.gs-cols p { margin: 4px 0 0; white-space: pre-line; font-size: 14px; }
@media (max-width: 900px) { .gs-split { grid-template-columns: 1fr; } }

/* 2.2: Hinweis Kündigungsfrist */
.warn-text { color: #b3261e; }
.warn-text b { color: inherit; }

/* 2.2: Tabs auf schmalen Handys horizontal wischbar, Notizfelder ohne iOS-Zoom */
.tabs { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: 0 0 auto; }
@media (pointer: coarse) { .gs-note { font-size: 16px; height: 44px; } }

/* ── Organisation (2.3) ───────────────────────────────── */
.org-tabs { margin-bottom: 18px; }
.org-chart { --c: #8f8f8f; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px; overflow-x: auto; }
.org-head { display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; padding-bottom: 22px; }
.org-head::after { content: ""; position: absolute; bottom: 0; left: 50%; height: 22px; border-left: 2px solid var(--line-strong); }
.org-spitze { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.org-spitze .org-box { background: var(--c); color: #fff; border-color: var(--c); min-width: 200px; text-align: center; }
.org-spitze .org-box a, .org-stab .org-box a { color: #fff; }
.org-stab { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.org-stab-unit { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; background: var(--c); color: #fff; border-radius: 999px; padding: 8px 16px; }
.org-stab-name { font-weight: 700; font-size: 13px; margin-right: 4px; }
.org-stab .org-box { background: transparent; border: 0; color: #fff; padding: 2px 6px; box-shadow: none; }
.org-stab .org-box .org-vakant { color: rgba(255,255,255,.75); }
.org-cols { display: grid; grid-template-columns: repeat(var(--n, 7), minmax(128px, 1fr)); gap: 10px; border-top: 2px solid var(--line-strong); padding-top: 18px; position: relative; }
.org-col { --c: #8cc63f; min-width: 0; position: relative; }
.org-col::before { content: ""; position: absolute; top: -18px; left: 50%; height: 18px; border-left: 2px solid var(--line-strong); }
.org-unit { background: var(--c); color: #fff; font-size: 13px; font-weight: 700; text-align: center; padding: 10px 8px; border-radius: 6px; margin: 0 0 10px; }
.org-note { font-size: 12px; color: var(--muted); margin: 0 0 6px; }
.org-tree, .org-tree ul { list-style: none; margin: 0; padding: 0; }
.org-tree ul { margin: 8px 0 0 8px; padding-left: 10px; }
.org-tree li { margin: 0 0 8px; position: relative; }
.org-tree ul > li::before { content: ""; position: absolute; left: -10px; top: -8px; height: 26px; width: 10px; border-left: 2px solid var(--line-strong); border-bottom: 2px solid var(--line-strong); border-bottom-left-radius: 4px; }
.org-tree ul > li:not(:last-child)::after { content: ""; position: absolute; left: -10px; top: 16px; bottom: -8px; border-left: 2px solid var(--line-strong); }
.org-box { overflow-wrap: anywhere; hyphens: auto; }
.org-box { border: 1px solid color-mix(in srgb, var(--c) 45%, #fff); border-left: 4px solid var(--c); background: color-mix(in srgb, var(--c) 9%, #fff); border-radius: 6px; padding: 8px 10px; font-size: 13px; line-height: 1.35; display: flex; flex-direction: column; gap: 2px; }
.org-box.lead { background: var(--c); color: #fff; border-color: var(--c); }
.org-box.lead a, .org-box.lead .org-vakant { color: #fff; }
.org-box b { font-weight: 700; }
.org-people a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.org-vakant { color: var(--muted); font-style: italic; }
.org-gebiete { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.org-gebiet { align-self: flex-start; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--c); color: #09211E; text-decoration: none; }
.org-ohne { font-size: 12px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 6px; }
.org-swatch { --c: #8cc63f; display: inline-block; width: 14px; height: 14px; border-radius: 4px; background: var(--c); vertical-align: -2px; margin-right: 8px; }
.org-edit { margin-top: 26px; }
.org-edit-unit { padding: 0; }
.org-edit-unit > summary { padding: 14px 18px; cursor: pointer; }
.org-edit-unit[open] > summary { border-bottom: 1px solid var(--line); }
.org-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.org-row label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 600; flex: 1 1 160px; min-width: 0; }
.org-row label.check { flex-direction: row; align-items: center; flex: 0 0 auto; padding-bottom: 9px; color: var(--text); }
.org-row input.num { width: 70px; }
.org-row label:has(input.num) { flex: 0 0 80px; }
.org-row label:has(input[type=color]) { flex: 0 0 70px; }
.org-row input[type=color] { width: 56px; height: 38px; padding: 2px; }
.org-row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.org-row-info { flex-basis: 100%; color: var(--muted); font-size: 12px; margin-top: -4px; }
.org-row.new { background: var(--green-tint); }
.org-edit > .org-row.new { border-radius: 12px; border: 1px solid var(--line); }
.org-del { padding: 12px 18px; }
.btn.danger { color: var(--danger); }

/* Verkaufsgebiete */
.gebiete { display: grid; gap: 16px; }
.ch-map { display: grid; grid-template-columns: repeat(8, minmax(34px, 56px)); grid-auto-rows: minmax(34px, 50px); gap: 4px; justify-content: center; padding: 10px 0; }
.ch-tile { display: flex; align-items: center; justify-content: center; border-radius: 6px; font-weight: 700; font-size: 13px; color: #09211E; background: #e9ece6; border: 1px solid rgba(0,0,0,.06); }
.ch-tile.leer { background: repeating-linear-gradient(45deg, #f3f3f0, #f3f3f0 4px, #e2e2dc 4px, #e2e2dc 8px); color: var(--muted); }
.ch-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; justify-content: center; }
.gebiete-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.gebiet { --c: #8cc63f; border-top: 5px solid var(--c); }
.regionen { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0 0 12px; font-size: 14px; }
.regionen dt { font-weight: 700; }
.regionen dd { margin: 0; }
.gebiet-team { font-size: 14px; display: grid; gap: 3px; border-top: 1px solid var(--line); padding-top: 10px; }
.gebiet-team a { color: inherit; }
.gebiet-edit { margin-top: 12px; }
.gebiet-edit > summary { cursor: pointer; font-weight: 600; color: var(--green-ink); }
.gebiet-new h3 { margin: 0; }

@media (max-width: 1100px) {
  .org-cols { grid-template-columns: repeat(var(--n, 7), minmax(150px, 1fr)); }
}
/* Tablet hoch und Handy: Abteilungen untereinander */
@media (max-width: 820px) {
  .org-chart { padding: 14px; overflow: visible; }
  .org-cols { grid-template-columns: 1fr 1fr; border-top: 0; padding-top: 4px; }
  .org-col::before, .org-head::after { display: none; }
  .org-head { padding-bottom: 14px; }
  .org-spitze .org-box { min-width: 0; width: 100%; }
  .org-spitze { width: 100%; }
}
@media (max-width: 560px) {
  .org-cols { grid-template-columns: 1fr; }
  .org-stab-unit { border-radius: 12px; }
  .ch-map { grid-template-columns: repeat(8, minmax(0, 1fr)); grid-auto-rows: 38px; gap: 3px; }
  .ch-tile { font-size: 11px; }
  .regionen { grid-template-columns: 1fr; gap: 0 0; }
  .regionen dd { margin-bottom: 6px; }
  .org-row { padding: 12px; }
  .org-row label { flex-basis: 100%; }
}
@media print {
  @page { size: A4 landscape; margin: 10mm; }
  .sidebar, .topbar .actions, .menu-btn, .org-tabs, .org-edit, .flash, .gebiet-edit, .gebiet-new { display: none !important; }
  .main { margin: 0 !important; padding: 0 !important; }
  .org-chart { border: 0; padding: 0; overflow: visible; }
  .org-cols { grid-template-columns: repeat(var(--n, 7), 1fr) !important; gap: 6px; }
  .org-box { font-size: 9px; padding: 4px 6px; }
  .org-unit { font-size: 10px; padding: 6px 4px; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Reglement bearbeiten */
.reg-edit { position: relative; }
.reg-edit > summary { list-style: none; cursor: pointer; }
.reg-edit > summary::-webkit-details-marker { display: none; }
.reg-edit[open] > form { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; width: min(340px, 86vw); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; box-shadow: 0 12px 30px rgba(9,33,30,.16); text-align: left; }
@media (max-width: 560px) { .reg-edit[open] > form { position: static; width: 100%; margin-top: 8px; box-shadow: none; } }
.card:has(.reg-edit[open]), .table:has(.reg-edit[open]), .table:has(.reg-edit[open]) td { overflow: visible; }

/* ── Anleitungen (Design «Guideline Dokument») ─────────── */
:root { --an-bg: #16201C; --an-green: #8CC63F; }
.chip.st-entwurf { background: #ECEDE6; color: var(--olive); }
.chip.st-pruefung { background: #FFF1CC; color: #7A5600; }
.chip.st-freigegeben { background: #E3F0F8; color: #1F5E85; }
.chip.st-veroeffentlicht { background: var(--green-tint); color: var(--green-ink); }
.an-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.an-filters input[type=search] { flex: 1 1 220px; }
.an-filters select { flex: 0 1 220px; }
.an-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-bottom: 18px; }
.an-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s; }
.an-card:hover { box-shadow: 0 8px 22px rgba(9,33,30,.10); transform: translateY(-1px); }
.an-thumb { height: 140px; background: var(--an-bg); display: flex; align-items: center; justify-content: center; color: var(--an-green); overflow: hidden; position: relative; }
.an-thumb::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, var(--an-green) 1.3px, transparent 1.9px); background-size: 17px 19px; opacity: .45;
  -webkit-mask-image: radial-gradient(ellipse at 95% 0%, #000 0%, transparent 60%); mask-image: radial-gradient(ellipse at 95% 0%, #000 0%, transparent 60%); pointer-events: none; }
.an-thumb img { width: 100%; height: 100%; object-fit: cover; }
.an-thumb .ic { width: 38px; height: 38px; }
.an-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.an-card-body small { color: var(--green-ink); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.an-card-body b { font-size: 16px; }
.an-card-body > span:not(.an-meta) { color: var(--muted); font-size: 14px; }
.an-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.an-todo ul li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.an-todo ul li:last-child { border: 0; }

/* Dokument-Ansicht */
.an-doc { max-width: 980px; margin: 0 auto 24px; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(9,33,30,.08); }
.an-cover { position: relative; background: var(--an-bg); color: #fff; min-height: 420px; padding: 44px 48px 0; display: flex; flex-direction: column; }
.an-dots { position: absolute; inset: 0; background-image: radial-gradient(circle, var(--an-green) 1.6px, transparent 2.3px); background-size: 22px 24px; background-position: 6px 8px; opacity: .85;
  -webkit-mask-image: radial-gradient(ellipse at 92% 8%, #000 0%, transparent 52%); mask-image: radial-gradient(ellipse at 92% 8%, #000 0%, transparent 52%); pointer-events: none; }
.an-logo { position: relative; width: 170px; }
.an-cover-text { position: relative; margin-top: auto; padding: 60px 0 34px; max-width: 640px; }
.an-cover h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08; font-weight: 700; margin: 0 0 8px; color: #fff; }
.an-sub { font-size: 20px; margin: 0; }
.an-cover hr { border: 0; border-top: 1px solid var(--an-green); margin: 22px 0 16px; }
.an-kat { color: var(--an-green); font-size: 20px; margin: 0; }
.an-titelbild { position: absolute; right: 40px; bottom: 26px; max-width: 46%; max-height: 260px; object-fit: contain; filter: drop-shadow(0 14px 22px rgba(0,0,0,.35)); }
.an-band { position: relative; margin: 0 -48px; background: var(--an-green); color: #fff; padding: 14px 48px 16px; display: flex; flex-direction: column; font-size: 13px; line-height: 1.35; }
.an-pages { padding: 44px 48px 0; position: relative; }
.an-pages::before { content: ""; position: absolute; top: 0; right: 0; width: 46%; height: 200px; background-image: radial-gradient(circle, #DDE2DA 1.4px, transparent 2px); background-size: 20px 22px;
  -webkit-mask-image: radial-gradient(ellipse at 100% 0%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse at 100% 0%, #000 0%, transparent 70%); pointer-events: none; }
.an-pages h2 { font-size: 26px; font-weight: 400; margin: 0 0 12px; display: flex; gap: 12px; align-items: baseline; position: relative; }
.an-nr { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; border-radius: 50%; background: var(--an-green); color: var(--an-bg); font-size: 15px; font-weight: 700; flex: 0 0 auto; transform: translateY(-3px); }
.an-intro, .an-step { margin-bottom: 44px; position: relative; }
.an-intro p, .an-text p { font-size: 16px; line-height: 1.55; margin: 0 0 10px; white-space: pre-line; }
.an-step-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.an-step.no-img .an-step-row { grid-template-columns: 1fr; }
.an-img { display: block; border-radius: 6px; overflow: hidden; background: #F1F3EE; }
.an-img img { width: 100%; display: block; }
.an-foot { margin: 0 -48px; background: var(--an-green); color: #fff; padding: 10px 48px; font-size: 13px; }
.an-workflow { margin-bottom: 18px; }
.an-stepper { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 0 14px; padding: 0; counter-reset: s; }
.an-stepper li { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); padding: 8px 10px; border-radius: 8px; background: #F1F3EE; }
.an-stepper li span { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line-strong); font-size: 12px; flex: 0 0 auto; }
.an-stepper li.done { color: var(--green-ink); background: var(--green-tint); }
.an-stepper li.done span { background: var(--green); border-color: var(--green); color: #fff; }
.an-stepper li.cur { color: #fff; background: var(--an-bg); }
.an-stepper li.cur span { background: var(--an-green); border-color: var(--an-green); color: var(--an-bg); }
.an-wf-info { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
.an-wf-info p { margin: 0; }
.an-wf-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.an-wf-actions form.inline { display: inline; }
.an-reject { position: relative; }
.an-reject > summary { list-style: none; }
.an-reject > summary::-webkit-details-marker { display: none; }
.an-reject[open] > form { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; width: min(320px, 86vw); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; box-shadow: 0 12px 30px rgba(9,33,30,.16); }
.an-viewtabs { margin: 14px 0 -8px; }
.an-log { max-width: 980px; width: 100%; margin: 0 auto 24px; box-sizing: border-box; }
.an-log > summary { cursor: pointer; }
.an-log li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.an-log time { color: var(--muted); }
.an-comment { display: inline-block; margin-top: 4px; padding: 6px 10px; background: #FFF6DD; border-radius: 8px; }
.an-benefit { margin-top: 14px; gap: 8px; }

/* Editor */
.an-edit .section-title { margin-top: 22px; }
.an-steps { display: grid; gap: 14px; margin-bottom: 12px; }
.an-edit-step-h { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.an-edit-step-h input { flex: 1; font-weight: 600; }
.an-step-tools { display: flex; gap: 2px; }
.an-edit-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.an-edit-text { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.an-edit-text textarea { flex: 1; min-height: 170px; }
.an-bild-field { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: start; }
.an-bild-prev { grid-column: 1 / -1; min-height: 170px; border: 1.5px dashed var(--line-strong); border-radius: 10px; display: flex; align-items: center; justify-content: center; background: #F7F8F5; overflow: hidden; color: var(--muted); }
.an-bild-prev > span { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.an-bild-prev img { max-width: 100%; max-height: 300px; display: block; }
.an-bild-btn { justify-self: start; cursor: pointer; }
.fgrid .an-bild-field .an-bild-prev { min-height: 120px; }

@media (max-width: 820px) {
  .an-cover { padding: 28px 22px 0; min-height: 360px; }
  .an-band, .an-foot { margin: 0 -22px; padding-left: 22px; padding-right: 22px; }
  .an-pages { padding: 30px 22px 0; }
  .an-titelbild { position: relative; right: auto; bottom: auto; max-width: 100%; margin: 0 0 18px auto; }
  .an-step-row, .an-edit-row { grid-template-columns: 1fr; gap: 14px; }
  .an-stepper { grid-template-columns: repeat(2, 1fr); }
  .an-pages h2 { font-size: 22px; }
}
@media (max-width: 560px) {
  .an-logo { width: 130px; }
  .an-cover-text { padding: 40px 0 24px; }
  .an-sub, .an-kat { font-size: 17px; }
  .an-intro p, .an-text p { font-size: 15px; }
  .an-filters select { flex: 1 1 100%; }
}
@media print {
  .an-workflow, .an-log { display: none !important; }
  .an-doc { box-shadow: none; max-width: none; }
}

/* ── Organigramm im esave CI (2.4) ─────────────────────── */
.org-chart { --spine: #8CC63F; position: relative; background: #fff; }
.org-chart::before { content: ""; position: absolute; top: 0; right: 0; width: 45%; height: 230px; pointer-events: none;
  background-image: radial-gradient(circle, #8CC63F 1.5px, transparent 2.1px); background-size: 21px 23px; opacity: .55;
  -webkit-mask-image: radial-gradient(ellipse at 100% 0%, #000 0%, transparent 68%); mask-image: radial-gradient(ellipse at 100% 0%, #000 0%, transparent 68%); }
.org-head { position: relative; padding-bottom: 26px; }
.org-head::after { border-left: 2px solid var(--spine); height: auto; top: 0; bottom: 0; transform: translateX(-1px); }
.org-spitze { position: relative; z-index: 1; gap: 14px; }
.org-spitze .org-box { background: #16201C; border: 0; border-bottom: 3px solid #8CC63F; color: #fff; min-width: 230px; padding: 12px 16px; border-radius: 4px; }
.org-spitze .org-box b { font-size: 14px; letter-spacing: .02em; }
.org-spitze .org-box .org-vakant, .org-spitze .org-box a { color: rgba(255,255,255,.8); }
/* Stabsstelle: seitlich an der Hauptlinie, gestrichelt angebunden */
.org-stabrow { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; width: 100%; margin-top: 16px; }
.org-stab { display: flex; justify-content: flex-start; padding-left: 46px; position: relative; }
.org-stab::before { content: ""; position: absolute; left: 0; top: 50%; width: 46px; border-top: 2px dashed var(--spine); }
.org-stab-unit { display: flex; flex-direction: column; align-items: stretch; gap: 0; background: #fff; color: #09211E; border: 1.5px solid #16201C; border-radius: 4px; padding: 0; min-width: 220px; overflow: hidden; }
.org-stab-name { display: block; background: #16413B; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 7px 12px; margin: 0; }
.org-stab .org-box { background: #fff; color: #09211E; border: 0; border-top: 1px solid #DCE2D9; border-radius: 0; padding: 8px 12px; }
.org-stab .org-box:first-of-type { border-top: 0; }
.org-stab .org-box.lead { background: #EEF5DA; color: #09211E; }
.org-stab .org-box a, .org-stab .org-box.lead a { color: #09211E; }
.org-stab .org-box .org-vakant { color: var(--muted); }
.org-cols { border-top: 2px solid var(--spine); }
.org-col::before { border-left: 2px solid var(--spine); }
.org-unit { background: #16201C; color: #fff; border-bottom: 3px solid #8CC63F; border-radius: 4px; font-size: 13px; letter-spacing: .01em; }
.org-box { --c: #8CC63F; background: #fff; border: 1px solid #DCE2D9; border-left: 3px solid #8CC63F; border-radius: 4px; color: #09211E; }
.org-box.lead { background: #8CC63F; border-color: #8CC63F; color: #09211E; }
.org-box.lead a, .org-box.lead .org-vakant { color: #09211E; }
.org-box.lead .org-vakant { opacity: .7; }
.org-tree ul > li::before, .org-tree ul > li:not(:last-child)::after { border-color: #B9C7A8; }
.org-gebiet { background: var(--c); color: var(--on-c, #09211E); }
.org-note { color: var(--olive); font-weight: 600; text-transform: uppercase; font-size: 11px; letter-spacing: .04em; }
@media (max-width: 820px) {
  .org-head::after { display: none; }
  .org-stabrow { grid-template-columns: 1fr; margin-top: 10px; }
  .org-stabrow > div:first-child { display: none; }
  .org-stab { padding-left: 0; justify-content: stretch; }
  .org-stab::before { display: none; }
  .org-stab-unit { width: 100%; }
}

/* Verkaufsgebiete im CI */
.gebiet { border-top: 0; padding-top: 0; overflow: hidden; }
.gebiet > .card-h { margin: 0 -22px 14px; padding: 14px 22px; background: #16201C; color: #fff; border-bottom: 4px solid var(--c); }
.gebiet > .card-h h3 { color: #fff; }
.gebiet > .card-h .chip { background: rgba(255,255,255,.12); color: #fff; }
.gebiet .org-swatch, .ch-legend .org-swatch { background: var(--c); border: 1px solid rgba(255,255,255,.35); }
.ch-tile { border-radius: 4px; font-size: 12.5px; letter-spacing: .02em; }
.gebiete-map { position: relative; overflow: hidden; }
.gebiete-map::before { content: ""; position: absolute; top: 0; right: 0; width: 40%; height: 180px; pointer-events: none; background-image: radial-gradient(circle, #8CC63F 1.4px, transparent 2px); background-size: 20px 22px; opacity: .4;
  -webkit-mask-image: radial-gradient(ellipse at 100% 0%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse at 100% 0%, #000 0%, transparent 70%); }
@media (max-width: 560px) { .gebiet > .card-h { margin: 0 -16px 12px; padding: 12px 16px; } }
.org-spitze .org-box.lead { background: #16201C; border-color: #16201C; border-bottom: 3px solid #8CC63F; color: #fff; }
.org-spitze .org-box.lead a, .org-spitze .org-box.lead .org-vakant { color: rgba(255,255,255,.85); opacity: 1; }
.org-note { text-transform: none; letter-spacing: 0; font-size: 12px; }

/* ── Mitarbeitergespräch (Bogen) ───────────────────────── */
.mag-list { margin-bottom: 18px; }
.mag-boegen li { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mag-boegen li:last-child { border: 0; }
.mag-links { margin-left: auto; display: flex; gap: 6px; }
.mag-head { margin-bottom: 14px; }
.mag-ro { padding: 10px 0 4px; font-weight: 600; border-bottom: 1px solid var(--line); min-height: 38px; }
.mag-phasen { margin-bottom: 14px; }
.mag-phasen-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mag-phase { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; padding: 12px; border-radius: 10px; background: #F4F6F2; border: 1px solid var(--line); font-size: 14px; }
.mag-phase input { grid-column: 1 / -1; }
.mag-phase small { grid-column: 1 / -1; color: var(--muted); }
.mag-phase .an-nr { transform: none; background: #fff; border: 1px solid var(--line-strong); color: var(--muted); }
.mag-phase.done { background: var(--green-tint); border-color: #CFE3A1; }
.mag-phase.done .an-nr { background: var(--green); border-color: var(--green); color: #fff; }
.mag-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.mag-side { position: sticky; top: 16px; }
.mag-item { margin-bottom: 12px; }
.mag-item-h { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; font-size: 15px; }
.mag-item-h .an-nr { transform: none; }
.mag-wert-text { margin: 0 0 6px; }
.mag-eval { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 14px; margin-top: 10px; padding-top: 12px; border-top: 1px dashed var(--line); }
.mag-rates { display: flex; flex-direction: column; gap: 8px; }
.mag-rate { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.mag-rate select { font-size: 16px; font-weight: 700; }
.mag-comments { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mag-comments .field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.mag-table td, .mag-table th { padding: 8px 6px; font-size: 14px; }
.mag-total td { font-weight: 700; border-top: 2px solid var(--dark); }
.mag-skala { list-style: none; padding: 0; margin: 12px 0 0; font-size: 12.5px; color: var(--muted); display: grid; gap: 3px; }
.mag-skala b { display: inline-block; width: 20px; color: var(--dark); }
@media (max-width: 1100px) { .mag-layout { grid-template-columns: 1fr; } .mag-side { position: static; order: -1; } }
@media (max-width: 820px) { .mag-phasen-grid { grid-template-columns: 1fr; } .mag-eval { grid-template-columns: 1fr; } .mag-rates { flex-direction: row; } .mag-rate { flex: 1; } }
@media (max-width: 560px) { .mag-comments { grid-template-columns: 1fr; } .mag-links { margin-left: 0; } }
/* Felder als <label class="field"> (Mitarbeitergespräch, Verkaufsgebiete): Eingabefelder nicht strecken */
label.field { font-weight: 600; font-size: 14px; align-self: start; }
label.field > input, label.field > select { flex: 0 0 auto; height: 40px; }
label.field > small { font-weight: 400; }
.mag-side .table th { text-transform: none; letter-spacing: 0; font-size: 12px; }
.mag-layout { grid-template-columns: minmax(0, 1fr) 360px; }
.mag-table { width: 100%; table-layout: auto; }
.mag-table td:first-child { white-space: nowrap; }
.mag-rate select { flex: 0 0 auto; height: 40px; }
.mag-rates { align-items: stretch; align-self: start; }
.mag-comments .field textarea { flex: 0 0 auto; }
label.field > textarea, label.field > input, label.field > select, .mag-rate select, .an-edit-text textarea { font-weight: 400; }
.mag-rate select { font-weight: 700; }
@media (max-width: 1100px) { .mag-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .mag-table td, .mag-table th { padding: 6px 4px; font-size: 13px; } .mag-table td:first-child { white-space: normal; } .mag-phase { min-width: 0; } }
.benefit-anl { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 10px 14px; border-radius: 10px; background: #16201C; color: #fff; text-decoration: none; }
.benefit-anl .ic { color: #8CC63F; width: 22px; height: 22px; flex: 0 0 auto; }
.benefit-anl span { display: flex; flex-direction: column; }
.benefit-anl small { color: #8CC63F; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.benefit-anl em { margin-left: auto; font-style: normal; color: #8CC63F; font-size: 18px; }
.an-linked { max-width: 980px; margin: 0 auto 12px; display: flex; gap: 8px; align-items: center; color: var(--green-ink); font-weight: 600; }

/* ── Prozessbeschriebe ─────────────────────────────────── */
.pz-list { list-style: none; margin: 0; padding: 0; }
.pz-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.pz-list li:last-child { border: 0; }
.pz-list li > a { display: flex; gap: 14px; align-items: center; text-decoration: none; color: inherit; flex: 1 1 320px; min-width: 0; }
.pz-list li > a span:last-child { display: flex; flex-direction: column; min-width: 0; }
.pz-list small { color: var(--muted); }
.pz-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pz-nr { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 30px; padding: 0 8px; border-radius: 6px; background: #16201C; color: #8CC63F; font-weight: 700; font-size: 13px; }
.pz-nr.big { height: 36px; min-width: 56px; font-size: 16px; margin-right: 12px; vertical-align: 4px; }
.pz-doc-card { padding: 0; overflow: hidden; max-width: 1100px; }
.pz-head { display: flex; flex-wrap: wrap; gap: 18px 30px; justify-content: space-between; padding: 26px 28px; background: #16201C; color: #fff; position: relative; overflow: hidden; }
.pz-head::after { content: ""; position: absolute; top: 0; right: 0; width: 40%; height: 100%; pointer-events: none; background-image: radial-gradient(circle, #8CC63F 1.4px, transparent 2px); background-size: 20px 22px; opacity: .5;
  -webkit-mask-image: radial-gradient(ellipse at 100% 0%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse at 100% 0%, #000 0%, transparent 70%); }
.pz-head > * { position: relative; z-index: 1; }
.pz-head h2 { color: #fff; font-size: 26px; margin: 4px 0 6px; }
.pz-kicker { margin: 0; color: #8CC63F; font-size: 13px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.pz-zweck { margin: 0; max-width: 640px; color: rgba(255,255,255,.85); }
.pz-facts { display: grid; grid-template-columns: auto auto; gap: 4px 14px; margin: 0; font-size: 14px; align-self: end; }
.pz-facts dt { color: rgba(255,255,255,.65); }
.pz-facts dd { margin: 0; font-weight: 600; }
.pz-wrap { position: relative; overflow-x: auto; }
.pz-arrows { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
.pz-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.pz-table th { text-align: left; font-weight: 600; font-size: 15px; padding: 10px 14px; border-bottom: 1px solid #B9C7A8; border-right: 1px solid #DCE2D9; background: #F4F6F2; }
.pz-table td { vertical-align: middle; padding: 18px 14px; border-right: 1px solid #DCE2D9; }
.pz-table th:last-child, .pz-table td:last-child { border-right: 0; }
.pz-table th:nth-child(1), .pz-flow { width: 32%; }
.pz-table th:nth-child(2), .pz-desc { width: 34%; }
.pz-table th:nth-child(3), .pz-resp { width: 10%; font-weight: 600; }
.pz-flow { padding: 18px 56px 18px 24px !important; }
.pz-desc p { margin: 0 0 6px; }
.pz-sub td { padding-top: 6px; padding-bottom: 12px; }
.pz-shape { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 58px; padding: 10px 14px; font-size: 14px; background: #E3EFCB; color: #09211E; border: 1.5px solid #8CC63F; max-width: 230px; margin: 0 auto; }
.pz-shape.pz-start, .pz-shape.pz-ende { border-radius: 12px; background: #16201C; color: #fff; border-color: #16201C; }
.pz-shape.pz-ende { border-bottom: 3px solid #8CC63F; }
.pz-shape.pz-schritt { border-radius: 3px; min-height: 70px; }
.pz-shape.pz-entscheid { border: 0; background: transparent; min-height: 104px; width: 220px; padding: 0 34px; }
.pz-shape.pz-entscheid::before { content: ""; position: absolute; inset: 0; background: #E3EFCB; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); z-index: -1; }
.pz-shape.pz-entscheid::after { content: ""; position: absolute; inset: 0; background: #8CC63F; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%, 1.5px 50%, 50% calc(100% - 2px), calc(100% - 1.5px) 50%, 50% 2px, 1.5px 50%); z-index: -1; }
.pz-shape.pz-entscheid span { font-size: 13px; line-height: 1.25; }
.pz-docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pz-docs a { color: #1F5E85; text-decoration: underline; text-underline-offset: 2px; }
.pz-bar { max-width: 1100px; }
.pz-edit-step[data-typ=entscheid] { border-left: 4px solid #8CC63F; }
.pz-edit-step .an-edit-step-h select { flex: 0 0 210px; }
.pz-ent { border-top: 1px dashed var(--line); padding-top: 12px; }
.pz-docfield select { margin-top: 6px; font-weight: 400; }
@media (max-width: 760px) {
  .pz-table, .pz-table tbody, .pz-table tr, .pz-table td { display: block; width: auto !important; min-width: 0; }
  .pz-table thead { display: none; }
  .pz-table tr { border-bottom: 1px solid var(--line); padding: 12px 16px; position: relative; }
  .pz-table td { border: 0; padding: 4px 0 !important; }
  .pz-flow:empty { display: none !important; }
  .pz-row:not(.pz-sub):not(:last-child) .pz-flow::after { content: "↓"; display: block; text-align: center; color: #4F6607; font-weight: 700; margin-top: 6px; }
  .pz-resp:not(:empty)::before { content: "Verantwortlich: "; font-weight: 400; color: var(--muted); }
  .pz-shape { max-width: none; }
  .pz-edit-step .an-edit-step-h { flex-wrap: wrap; }
  .pz-edit-step .an-edit-step-h select { flex: 1 1 100%; order: 3; }
}
@media print {
  .pz-bar { display: none !important; }
  .pz-doc-card { border: 0; box-shadow: none; max-width: none; }
  .pz-table { min-width: 0; }
}

/* ── Messen & Events ───────────────────────────────────── */
.chip.st-austritt { background: #FBE3E1; color: #9B1C14; }
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-bottom: 18px; }
.ev-card { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; text-decoration: none; color: inherit; transition: box-shadow .15s; }
.ev-card:hover { box-shadow: 0 8px 22px rgba(9,33,30,.10); }
.ev-card.off { opacity: .6; }
.ev-date { flex: 0 0 62px; height: 62px; border-radius: 10px; background: #16201C; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; border-bottom: 3px solid #8CC63F; }
.ev-date b { font-size: 17px; }
.ev-date small { color: #8CC63F; font-size: 11px; }
.ev-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ev-body > small { color: var(--green-ink); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.ev-body > b { font-size: 16px; }
.ev-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; align-items: center; }
.ev-due li { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ev-due li:last-child { border: 0; }
.ev-due li .muted { grid-column: 2; }
.ev-due li .chip { grid-row: 1; grid-column: 3; }
.ev-due li.late time { color: var(--danger); font-weight: 700; }
.ev-hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 24px 26px; margin-bottom: 14px; border-radius: 12px; background: #16201C; color: #fff; position: relative; overflow: hidden; }
.ev-hero::after { content: ""; position: absolute; top: 0; right: 0; width: 45%; height: 100%; pointer-events: none; background-image: radial-gradient(circle, #8CC63F 1.4px, transparent 2px); background-size: 20px 22px; opacity: .5; -webkit-mask-image: radial-gradient(ellipse at 100% 0%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse at 100% 0%, #000 0%, transparent 70%); }
.ev-hero > * { position: relative; z-index: 1; }
.ev-hero h2 { color: #fff; margin: 4px 0; font-size: 26px; }
.ev-hero p { margin: 0; color: rgba(255,255,255,.85); }
.ev-hero .chip { background: #8CC63F; color: #09211E; }
.ev-over { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.ev-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.ev-facts dt { color: var(--muted); }
.ev-facts dd { margin: 0; font-weight: 600; }
.ev-facts.big dd { font-size: 18px; }
.ev-progress { margin-top: 14px; display: grid; gap: 6px; }
.ev-todos { list-style: none; margin: 0; padding: 0; }
.ev-todos li { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.ev-todos li.done .ev-todo-main b { text-decoration: line-through; color: var(--muted); }
.ev-check { width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--line-strong); background: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; cursor: pointer; flex: 0 0 auto; padding: 0; }
li.done .ev-check { background: var(--green); border-color: var(--green); }
.ev-todo-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ev-todo-main small { color: var(--muted); }
.ev-note { font-style: italic; }
.ev-kosten .num { text-align: right; white-space: nowrap; }
.ev-kosten .ev-kat td { background: #F4F6F2; }
.ev-pos { padding-left: 26px !important; }
.ev-pos small { display: block; color: var(--muted); }
.ev-kosten-edit { display: flex; gap: 6px; justify-content: flex-end; }
.ev-kosten-edit input { width: 110px; text-align: right; height: 34px; }
.ev-files { display: grid; gap: 10px; margin-bottom: 8px; }
.ev-files.gallery { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.ev-file { display: flex; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.gallery .ev-file { flex-direction: column; align-items: stretch; }
.ev-thumb { display: block; border-radius: 6px; overflow: hidden; background: #F1F3EE; flex: 0 0 auto; }
.gallery .ev-thumb { aspect-ratio: 4 / 3; }
.ev-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-ext { width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; background: #16201C; color: #8CC63F; font-weight: 700; font-size: 12px; text-decoration: none; }
.gallery .ev-ext { width: auto; height: auto; }
.ev-file-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ev-file-meta a { color: inherit; overflow-wrap: anywhere; }
.ev-file-meta small { color: var(--muted); }
.ev-news { display: grid; gap: 12px; margin-bottom: 14px; }
.ev-new { display: grid; grid-template-columns: 200px 1fr; gap: 18px; align-items: start; }
.ev-new:not(:has(img)) { grid-template-columns: 1fr; }
.ev-new img { width: 100%; border-radius: 8px; }
.ev-new h3 { margin: 0 0 6px; }
.ev-vorlage { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; display: grid; gap: 8px; }
.ev-vorlage legend { font-weight: 700; padding: 0 6px; }
.ev-del { margin-top: 24px; }
@media (max-width: 560px) {
  .ev-grid { grid-template-columns: 1fr; }
  .ev-due li { grid-template-columns: 1fr auto; }
  .ev-due li .muted { grid-column: 1; }
  .ev-due li .chip { grid-column: 2; }
  .ev-new { grid-template-columns: 1fr; }
  .ev-kosten-edit input { width: 84px; }
}
.ev-progress .progress { margin: 0; }

/* ── Zeiterfassung ─────────────────────────────────────── */
.zt-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
.zt-stempel { position: relative; overflow: hidden; }
.zt-now { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.zt-dot { width: 12px; height: 12px; border-radius: 50%; background: #C3CCC0; flex: 0 0 auto; }
.zt-anwesend .zt-dot { background: #8CC63F; box-shadow: 0 0 0 4px rgba(140,198,63,.25); }
.zt-pause .zt-dot { background: #E8A317; box-shadow: 0 0 0 4px rgba(232,163,23,.2); }
.zt-clock { margin-left: auto; font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.zt-actions { display: flex; gap: 10px; margin: 16px 0; flex-wrap: wrap; }
.zt-actions form { flex: 1 1 140px; }
.zt-btn { width: 100%; height: 56px; font-size: 17px; }
.zt-btn.big { height: 64px; font-size: 19px; }
.zt-today { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 2px 28px; margin: 0 0 10px; }
.zt-today dt { color: var(--muted); font-size: 12px; grid-row: 1; }
.zt-today dd { margin: 0; font-size: 20px; font-weight: 700; grid-row: 2; font-variant-numeric: tabular-nums; }
.zt-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-content: start; }
.zt-kpis > p { grid-column: 1 / -1; margin: 0; }
.zt-kpi { background: #16201C; color: #fff; border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 2px; border-bottom: 3px solid #8CC63F; }
.zt-kpi span { font-size: 12px; color: #8CC63F; font-weight: 600; }
.zt-kpi b { font-size: 26px; font-variant-numeric: tabular-nums; }
.zt-kpi small { color: rgba(255,255,255,.7); font-size: 12px; }
.zt-kpi.warn { border-bottom-color: #E5261B; }
.zt-month { margin-bottom: 14px; }
.zt-month .card-h h3 { display: flex; align-items: center; gap: 8px; }
.zt-table td { vertical-align: middle; }
.zt-table .num, .zt-team .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.zt-table tr.zt-frei td { background: #F6F7F4; color: var(--muted); }
.zt-table tr.zt-heute td { background: var(--green-tint); }
.zt-table tfoot td { font-weight: 700; border-top: 2px solid var(--dark); }
.num.neg { color: var(--danger); }
.num.pos { color: var(--green-ink); }
/* 2.37: Die Zelle bleibt eine Tabellenzelle (kein Flex am td), damit alle Zellen einer Zeile gemeinsam vertikal zentriert sind */
.zt-table td.zt-blocks { vertical-align: middle; }
.zt-blocks-in { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin: 0; padding: 0; }
.zt-blocks-in:empty { display: none; }
.zt-chip { font-size: 12px; padding: 2px 7px; border-radius: 6px; background: #E3EFCB; font-variant-numeric: tabular-nums; }
.zt-chip.pause { background: #FFF1CC; }
.zt-abs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.zt-antraege li, .zt-antrag { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.zt-antraege li:last-child, .zt-antrag:last-child { border: 0; }
.zt-decide { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; max-width: 420px; }
.zt-decide input { flex: 1 1 160px; }
.zt-tag .zt-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.zt-tag .zt-row select { flex: 0 0 180px; }
.zt-tag .zt-row input { flex: 0 0 130px; }
.zt-status { font-size: 13px; }
.zt-status.zt-anwesend { color: var(--green-ink); font-weight: 700; }
.zt-status.zt-pause { color: #7A5600; font-weight: 700; }
.zt-bars { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; align-items: end; height: 180px; padding-top: 16px; }
.zt-bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; position: relative; }
.zt-bar-v { width: 70%; background: #16413B; border-radius: 4px 4px 0 0; border-top: 3px solid #8CC63F; min-height: 2px; }
.zt-bar small { font-size: 11px; color: var(--muted); }
.zt-bar em { position: absolute; top: -2px; font-style: normal; font-size: 10px; color: var(--muted); }
@media (max-width: 1100px) { .zt-top, .zt-abs { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .zt-kpis { grid-template-columns: 1fr 1fr; }
  .zt-kpis .zt-kpi:last-of-type { grid-column: 1 / -1; }
  .zt-kpi b { font-size: 22px; }
  .zt-clock { font-size: 22px; }
  .zt-today { gap: 2px 18px; }
  .zt-table th:nth-child(2), .zt-table td:nth-child(2) { max-width: 120px; }
  .zt-tag .zt-row { flex-wrap: wrap; }
  .zt-tag .zt-row select { flex: 1 1 100%; }
  .zt-tag .zt-row input { flex: 1 1 100px; }
  .zt-antraege li, .zt-antrag { flex-direction: column; }
  .zt-decide { max-width: none; width: 100%; }
}
/* Breite Tabellen scrollen in ihrer Karte, nie die ganze Seite */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.card.flush:has(> .table-wrap), .card.flush:has(> .pz-wrap) { overflow: hidden; }
@media (max-width: 560px) {
  .zt-table { font-size: 13px; }
  .zt-table td, .zt-table th { padding: 8px 6px; }
  .zt-table td:last-child .btn { padding: 0 8px; }
  .ev-kosten td, .ev-kosten th { padding: 8px 6px; font-size: 13px; }
}
.cl-main { min-width: 0; overflow-wrap: anywhere; }
.cl-item, .cl-row { min-width: 0; max-width: 100%; }
@media (pointer: coarse) { .ev-check { width: 40px; height: 40px; } .ev-todos .icon-btn { width: 40px; height: 40px; } }
.doc-cat-new { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 0 2px; border-top: 1px dashed var(--line); margin-top: 12px; }
.doc-cat-new input { flex: 1 1 200px; }
.doc-cat-new select { flex: 0 1 200px; }
.link-sm { font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.link-sm:hover { color: var(--green-ink); }
.benefit-new > summary { list-style: none; cursor: pointer; display: inline-flex; }
.benefit-new > summary::-webkit-details-marker { display: none; }
.benefit-new:not([open]) { background: transparent; border: 0; padding: 0; box-shadow: none; }
.benefit-new[open] > summary { margin-bottom: 14px; }
.user-rechte { position: relative; }
.user-rechte > summary { list-style: none; }
.user-rechte > summary::-webkit-details-marker { display: none; }
.user-rechte[open] > form { position: absolute; right: 0; top: calc(100% + 6px); z-index: 6; width: min(360px, 88vw); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; box-shadow: 0 12px 30px rgba(9,33,30,.16); text-align: left; }
.card:has(.user-rechte[open]), .table:has(.user-rechte[open]), .table:has(.user-rechte[open]) td { overflow: visible; }
@media (max-width: 560px) { .user-rechte[open] > form { position: static; width: 100%; box-shadow: none; } }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; margin-bottom: 12px; }
.seg a { padding: 7px 14px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; background: #fff; }
.seg a + a { border-left: 1px solid var(--line-strong); }
.seg a.active { background: #16201C; color: #fff; }
.org-box.is-vakant:not(.lead) { border-style: dashed; }
.org-people sup { color: var(--green-ink); font-weight: 700; }
.org-zusatz { background: #FAFBF8; }
.warn-card { border-left: 4px solid #E5261B; }
.leitfaden-box { background: var(--green-tint); border-radius: 10px; padding: 12px 16px; }
.leitfaden-box ol { margin: 8px 0 0; padding-left: 20px; }
/* ── Innovationen & Ideen ── */
.idee-new > summary { list-style: none; cursor: pointer; display: inline-flex; }
.idee-new > summary::-webkit-details-marker { display: none; }
.idee-new:not([open]) { background: transparent; border: 0; padding: 0; margin-bottom: 14px; }
.idee-new[open] > summary { margin-bottom: 14px; }
.ideen { list-style: none; margin: 0; padding: 0; }
.idee { display: flex; align-items: center; gap: 12px; padding: 10px 22px; border-top: 1px solid var(--line); }
.idee-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.idee-main small { color: var(--muted); }
.idee-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; font-size: 14px; }
.idee-meta .link-sm { margin-left: 8px; }
.idee.done .idee-main b { text-decoration: line-through; color: var(--muted); }
.idee.editing { display: block; background: #FAFBF8; }
.ideen-done > summary { cursor: pointer; padding: 12px 0; font-weight: 600; }
.ideen-done .idee { padding-left: 0; padding-right: 0; }
@media (max-width: 560px) { .idee { flex-wrap: wrap; padding: 10px 16px; } .idee-meta { width: 100%; justify-content: flex-start; padding-left: 52px; } }
/* ── Diagramme & Finanzen ── */
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .cg { stroke: #E4E8E1; stroke-width: 1; }
.chart .cy { font-size: 11px; fill: var(--muted); text-anchor: end; }
.chart .cx { font-size: 11px; fill: var(--muted); text-anchor: middle; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.fin-top { align-items: center; }
.fin-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.fin-charts { margin-bottom: 0; }
.fin-table th, .fin-table td { white-space: nowrap; font-size: 13px; padding: 7px 8px; }
.fin-table tbody th { font-weight: 600; text-align: left; }
.fin-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.fin-strong td, .fin-strong th { font-weight: 700; }
.fin-diff td { border-top: 1px solid var(--line-strong); }
.fin-input input { height: 36px; text-align: right; min-width: 120px; }
.fin-edit > summary { cursor: pointer; }
.fin-import { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); gap: 8px; flex-wrap: wrap; align-items: center; }
@media (max-width: 1100px) { .fin-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .fin-kpis { grid-template-columns: 1fr 1fr; } }
.fin-kpis .kpi b { font-size: 24px; white-space: nowrap; }
.chart-legend span { white-space: nowrap; }
.chart { max-width: 100%; }
/* Menü-Gruppen (aufklappbar) */
.nav-sec { margin: 2px 0; }
.nav-sec > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; border-radius: 8px; user-select: none; }
.nav-sec > summary::-webkit-details-marker { display: none; }
.nav-sec > summary::after { content: ""; margin-left: auto; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
.nav-sec[open] > summary::after { transform: rotate(45deg); }
.nav-sec > summary:hover { color: #fff; background: rgba(255,255,255,.04); }
.nav-sec > summary small { font-size: 10px; letter-spacing: 0; background: rgba(255,255,255,.1); border-radius: 10px; padding: 0 6px; }
.nav-sec[open] > summary small { display: none; }
.nav-sec[data-active] > summary { color: var(--green); }
.nav-sec .nav-item { margin-left: 4px; }
/* Checkliste-Vorlage als Liste */
.cl-editor { list-style: none; margin: 8px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; }
.cl-editor > li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.cl-editor > li:last-child { border-bottom: 0; }
.cle-nr { flex: 0 0 24px; height: 24px; border-radius: 50%; background: var(--green-tint); color: var(--green-ink); font-size: 12px; font-weight: 700; display: grid; place-items: center; margin-top: 6px; }
.cle-text { display: flex; flex-direction: column; gap: 2px; }
.cle-text small { color: var(--muted); }
.cle-fields { flex: 1; display: grid; gap: 4px; min-width: 0; }
.cle-fields input { font-weight: 600; height: 36px; }
.cle-fields textarea { resize: none; min-height: 34px; font-size: 13.5px; color: var(--muted); overflow: hidden; }
.cle-actions { display: flex; gap: 4px; margin-top: 4px; }
.cle-btn { border: 1px solid var(--line); background: var(--surface); border-radius: 6px; min-width: 28px; height: 28px; cursor: pointer; color: var(--dark); font-size: 13px; }
.cle-btn:hover { border-color: var(--green); }
.cle-add { justify-content: flex-start; }
.cle-add .cle-btn { padding: 0 12px; color: var(--green-ink); font-weight: 600; }
@media (max-width: 640px) { .cl-editor > li { flex-wrap: wrap; } .cle-actions { margin-left: 36px; } }

/* ── Feine Grundtypografie (zentral, gilt in allen Bereichen) ──
   Schrift und Grössen hier anpassen: --fs (Grundschrift), --fs-label, --ctl-h (Höhe Felder/Buttons) */
:root { --fs: 14px; --fs-label: 12.5px; --ctl-h: 36px; --w-label: 500; --w-head: 600; }
body { font-size: var(--fs); }
h1, h2, h3, h4 { font-weight: var(--w-head); }
.topbar h1 { font-size: 22px; }
.card-h h3, .card h3 { font-size: 15px; }
.field > label, label.field, .field.check label { font-weight: var(--w-label); font-size: var(--fs-label); color: #33433F; }
label.field { gap: 4px; }
input, select, textarea { font-size: var(--fs); border-color: #CDD5CA; border-radius: 7px; }
input, select { height: var(--ctl-h); }
label.field > input, label.field > select { height: var(--ctl-h); }
input[type=date], input[type=time] { min-height: var(--ctl-h); line-height: calc(var(--ctl-h) - 2px); }
input[type=checkbox] { height: 16px; width: 16px; }
.field.check label { height: var(--ctl-h); }
.btn { height: var(--ctl-h); font-size: 13.5px; }
.btn.primary { font-weight: 600; }
.btn.sm { height: 30px; font-size: 12.5px; }
.nav-item { font-size: 14px; }
.nav-item.active { font-weight: 600; }
.card { padding: 18px 20px; }
.fgrid { row-gap: 12px; }

/* ── Produktion: Dashboard ─────────────────── */
.pd-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pd-card { padding: 14px 16px 10px; display: flex; flex-direction: column; }
.pd-card header { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; min-height: 22px; }
.pd-card header h3 { font-size: 14px; }
.pd-card footer { margin-top: 2px; font-size: 11.5px; }
.pd-total { margin-left: auto; font-weight: 600; font-size: 15px; }
.pd-total small { font-weight: 400; color: var(--muted); font-size: 11.5px; }
.pd-bsp { margin-left: auto; }
.pd-svg { width: 100%; height: auto; display: block; margin-top: 4px; }
.pd-hint { margin: 0 0 10px; }
.pd-fin { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pd-fin .kpi { padding: 10px 14px; }
.pd-fin .kpi b { font-size: 20px; font-weight: 600; }
.pd-fin .kpi b.neg { color: var(--danger); }
.pd-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 14px; }
.pd-side { padding: 14px 16px; }
.pd-side header { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.pd-side header h3 { font-size: 14px; }
.pd-side header .link-sm { margin-left: auto; }
.wx { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wx-day { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 4px 0; }
.wx-day + .wx-day { border-left: 1px solid var(--line); }
.wx-day b { font-size: 13px; font-weight: 600; }
.wx-t { font-weight: 600; font-size: 14px; }
.pd-list { list-style: none; margin: 0; padding: 0; }
.pd-list li { display: flex; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.pd-list li:last-child { border-bottom: 0; }
.pd-list time, .pd-list b { flex: 0 0 auto; min-width: 74px; font-weight: 600; }
.pd-list li.today time { color: var(--green-ink); }
.pd-list li.void span { text-decoration: line-through; color: var(--muted); }


.pd-edit > summary { cursor: pointer; }
.pd-edit form.filters { margin: 12px 0 8px; }
.pd-etable input { width: 64px; height: 32px; padding: 0 6px; text-align: right; }
.pd-etable th, .pd-etable td { padding: 4px 4px; }
.flash.warn { background: #FFF6DB; border-color: #F0D78C; color: #6B4E00; }
@media (max-width: 1100px) { .pd-row { grid-template-columns: 1fr 1fr; } .pd-wetter { grid-column: 1 / -1; } }
@media (max-width: 900px) { .pd-cards { grid-template-columns: 1fr; } .pd-fin { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .pd-row { grid-template-columns: 1fr; } .wx { gap: 4px; } }

/* TV-Ansicht 16:9: ohne Menü, alles auf eine Bildschirmhöhe */
body.tv .sidebar, body.tv .menu-btn, body.tv .flash { display: none; }
body.tv .main { margin-left: 0; padding: 0; }
body.tv .topbar { padding: 14px 28px 6px; }
body.tv .content { padding: 6px 28px 20px; max-width: none; }
body.tv .tv-clock { font-size: 26px; font-weight: 600; margin-left: auto; }
body.tv .tv-exit { opacity: .35; }
body.tv .tv-exit:hover { opacity: 1; }
body.tv .pd-cards, body.tv .pd-row, body.tv .pd-fin { gap: 12px; }

@media (min-aspect-ratio: 16/10) and (min-width: 1200px) { body.tv .pd-svg { max-height: 21vh; } }

/* ── Personalplanung / Geräteplan: Wochenraster ── */
.pl-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 12px; }
.pl-bar.pad { margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.pl-bar b { margin: 0 6px; font-weight: 600; }
.pl-grid { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; }
.pl-grid th, .pl-grid td { border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); padding: 6px 8px; vertical-align: top; text-align: left; }
.pl-grid thead th { font-weight: 600; font-size: 12.5px; background: #F7F9F5; position: sticky; top: 0; }
.pl-grid thead th a { color: inherit; text-decoration: none; }
.pl-grid thead th a:hover { text-decoration: underline; }
.pl-grid .pl-name { width: 190px; border-left: 0; font-weight: 400; }
.pl-grid .pl-name b { font-weight: 600; display: block; }
.pl-grid .pl-name small { display: block; color: var(--muted); font-size: 11.5px; }
/* 2.53: Leitung/Stv. Produktion zuunterst, nur Anwesenheit */
.pl-grid .pl-g-lt .pl-gh th { background: #F4F5F2; }
.pl-grid .pl-g-lt .pl-lt-hint { font-weight: 400; }
/* 2.54: Mein Einsatzplan (nur lesen) */
.mp-table td .mp-da { color: var(--text, inherit); font-weight: 600; }
.mp-table td.mp-abs { color: var(--muted); font-style: italic; }
.mp-table tr.today th, .mp-table tr.today td { background: rgba(151, 191, 13, .08); }
.pl-grid th.today, .pl-grid td.today { background: #F3F8E6; }
.pl-grid thead th.today { color: var(--green-ink); box-shadow: inset 0 -2px 0 var(--green); }
.pl-gh th { background: var(--bg); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--light); font-weight: 600; padding: 8px; border-left: 0; }
.pl-gh small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.pl-zeit { display: flex; flex-wrap: wrap; gap: 2px 6px; color: var(--light); font-size: 12px; }
.pl-abs { display: inline-block; background: var(--danger-tint); color: var(--danger); border-radius: 4px; padding: 0 6px; font-size: 12px; font-weight: 600; }
.pl-frei { color: #9AA39E; font-size: 12px; }
.pl-warn { color: #8A5A00; font-size: 12px; }
p.pl-warn { margin: 4px 0; }
td.pl-off { background: repeating-linear-gradient(135deg, #fff, #fff 6px, #F6F7F5 6px, #F6F7F5 12px); }
.pl-task { display: inline-flex; align-items: center; gap: 4px; margin: 4px 4px 0 0; padding: 1px 4px 1px 7px; border-radius: 5px; background: var(--green-tint); color: var(--dark); font-size: 12px; line-height: 1.5; max-width: 100%; }
.pl-task em { font-style: normal; font-size: 10px; font-weight: 700; color: var(--green-ink); }
.pl-task small { color: var(--muted); }
.pl-task.void { background: #EEF0ED; text-decoration: line-through; color: var(--muted); }
.pl-x { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 14px; line-height: 1; padding: 0 2px; }
.pl-x:hover { color: var(--danger); }
.pl-add { display: inline-block; position: relative; margin-top: 4px; }
.pl-add > summary { list-style: none; cursor: pointer; width: 22px; height: 22px; border: 1px dashed var(--line-strong); border-radius: 5px; display: grid; place-items: center; color: var(--muted); font-size: 14px; }
.pl-add > summary::-webkit-details-marker { display: none; }
.pl-add > summary:hover { border-color: var(--green); color: var(--green-ink); }
.pl-add-form { position: absolute; z-index: 20; left: 0; top: 26px; width: 240px; background: #fff; border: 1px solid var(--line-strong); border-radius: 8px; box-shadow: 0 8px 24px rgba(9,33,30,.14); padding: 10px; display: grid; gap: 6px; }
.pl-add-form label { display: grid; gap: 2px; font-size: 12px; color: var(--muted); }
.pl-add-form label.check { display: flex; gap: 6px; align-items: center; color: var(--dark); }
.pl-add-form input, .pl-add-form select { height: 32px; font-size: 13px; }
.pl-grid td:nth-last-child(-n+2) .pl-add-form { left: auto; right: 0; }
.pl-grid.kompakt td { padding: 4px 8px; }
.pl-days { list-style: none; margin: 0; padding: 0; }
.pl-day { display: grid; grid-template-columns: 220px 150px 1fr; gap: 12px; align-items: center; padding: 8px 16px; border-top: 1px solid var(--line); }
.pl-day-name b { display: block; font-weight: 600; }
.pl-day-name small { font-size: 11.5px; }
.pl-day-zeit { font-size: 12.5px; color: var(--light); }
.pl-day-tasks { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pl-day-tasks .pl-task { margin: 0; }
.pl-inline { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pl-inline select, .pl-inline input { height: 30px; width: auto; font-size: 13px; padding: 0 8px; }
.pl-inline select { padding-right: 26px; background-position: right 8px center; }
.pl-inline input[name=text] { width: 160px; }
.pl-exts { list-style: none; margin: 0; padding: 0; }
.pl-ext { display: grid; grid-template-columns: 1.4fr 1fr auto auto; gap: 12px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--line); }
.pl-ext b { display: block; font-weight: 600; }
.pl-ext small { font-size: 12px; }
.pl-ext.inaktiv b { color: var(--muted); }
.pl-matrix { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px 10px; margin: 0; }
.pl-matrix legend { font-size: 12.5px; color: #33433F; padding: 0 4px; }
.pl-matrix table { border-collapse: collapse; width: 100%; max-width: 520px; }
.pl-matrix th, .pl-matrix td { text-align: center; padding: 5px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.pl-matrix tbody th { background: var(--green-tint); width: 70px; }
.pl-matrix thead th { font-weight: 600; }
.pl-abslist { list-style: none; margin: 0 0 12px; padding: 0; }
.pl-abslist li { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.pl-abslist li b { min-width: 110px; font-weight: 600; }
.pl-abslist li.inaktiv input[name=name] { color: var(--muted); }
.pl-absform { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pl-absform input, .pl-absform select { width: auto; height: 32px; font-size: 13px; }
.pl-absform select { padding-right: 28px; }
.pl-absform label { display: flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--muted); }
.pl-absform input[name=name] { min-width: 240px; }
.pl-pos { width: 64px !important; }
.pl-del { display: flex; gap: 12px; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.pl-zeiten { display: grid; grid-template-columns: 260px 1fr; gap: 14px; align-items: start; }
.pl-zeiten > div { display: grid; gap: 14px; }
.pl-plist { list-style: none; margin: 0; padding: 0 0 6px; }
.pl-plist a { display: block; padding: 7px 16px; text-decoration: none; color: var(--dark); border-left: 3px solid transparent; }
.pl-plist a b { display: block; font-weight: 500; }
.pl-plist small { font-size: 11.5px; }
.pl-plist li.active a { background: var(--green-tint); border-left-color: var(--green); }
.pl-plist a:hover { background: #F7F9F5; }
@media (max-width: 900px) {
  .pl-day { grid-template-columns: 1fr; gap: 4px; }
  .pl-ext { grid-template-columns: 1fr auto; }
  .pl-zeiten { grid-template-columns: 1fr; }
  .pl-grid { table-layout: auto; min-width: 760px; }
}

/* ── Geräteplan: Eingabe links, Plan Mitte, Geräte rechts ── */
.gp-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr) 220px; gap: 14px; align-items: start; }
.gp-layout.readonly { grid-template-columns: minmax(0, 1fr) 220px; }
.gp-form, .gp-geraete { padding: 14px 16px; }
.gp-fields { display: grid; gap: 8px; }
.gp-fields label { display: grid; gap: 3px; font-size: 12.5px; color: #33433F; }
.gp-fields input:not([type=checkbox]), .gp-fields select { height: 34px; min-width: 0; max-width: 100%; }
.gp-fields > *, .gp-2 > *, .gp-form { min-width: 0; }
.gp-fields input[type=date], .gp-fields input[type=time] { padding: 0 8px; font-size: 13px; }
.gp-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gp-rec { border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px 8px; display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0; }
.gp-rec legend { font-size: 12px; padding: 0 4px; }
.gp-rec label.check { display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--dark); }
.gp-fields .form-actions { margin-top: 4px; }
.gp-grid td { min-height: 46px; }
.gp-e { display: block; margin: 0 0 4px; padding: 3px 6px; border-radius: 5px; background: #E6EFEC; border-left: 3px solid var(--light); font-size: 12px; line-height: 1.35; position: relative; }
.gp-e b { font-weight: 600; white-space: nowrap; }
.gp-e small { display: block; color: var(--muted); }
.gp-e em { font-style: normal; color: var(--danger); margin-left: 2px; }
.gp-e.sperr { background: var(--danger-tint); border-left-color: var(--danger); color: #7A1A14; }
.gp-legend .gp-e { display: inline-block; margin-right: 6px; }
.gp-edit { text-decoration: none; color: var(--muted); font-size: 12px; margin-left: 4px; }
.gp-edit:hover { color: var(--green-ink); }
.gp-grid td { padding: 5px 5px; }
.gp-e { font-size: 11.5px; }
.gp-glist, .gp-slist { list-style: none; margin: 0; padding: 0; }
.gp-glist li { display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--line); }
.gp-glist a { flex: 1; display: block; padding: 7px 4px; text-decoration: none; color: var(--dark); }
.gp-glist a b { font-weight: 500; display: block; }
.gp-glist small { font-size: 11.5px; }
.gp-glist li.active a b { color: var(--green-ink); font-weight: 600; }
.gp-glist li.inaktiv a { color: var(--muted); }
.gp-h4 { font-size: 12.5px; margin: 14px 0 6px; font-weight: 600; }
.gp-slist li { display: flex; align-items: center; gap: 4px; }
.gp-slist .gp-e { flex: 1; }
.gp-verw { margin-top: 12px; }
.gp-verw > summary { list-style: none; }
.gp-verw .gp-fields { margin: 10px 0; }
.gp-gedit { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 8px 0; border-top: 1px solid var(--line); }
.gp-gedit input { height: 30px; font-size: 12.5px; }
.gp-gedit label { grid-column: 1 / -1; font-size: 12px; display: flex; gap: 6px; align-items: center; }
@media (max-width: 1250px) { .gp-layout { grid-template-columns: 260px minmax(0, 1fr); } .gp-geraete { grid-column: 1 / -1; } .gp-layout.readonly { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .gp-layout, .gp-layout.readonly { grid-template-columns: 1fr; } .gp-grid { min-width: 700px; } }
.danger-link { color: var(--danger) !important; } button.link-sm { border: 0; background: none; cursor: pointer; padding: 0; font: inherit; font-size: 13px; }

[hidden] { display: none !important; }
.gp-rec { display: grid !important; grid-template-columns: repeat(4, auto); justify-content: start; gap: 4px 12px; }
.gp-rec label.check { display: inline-flex !important; }
.gp-rec-hint { grid-column: 1 / -1; font-size: 11.5px; }
.gp-fields label > small { font-size: 11.5px; }
.rm-table th, .rm-table td { font-size: 13px; vertical-align: top; }
.rm-table tbody th { font-weight: 500; max-width: 360px; }
.rm-table small { font-weight: 400; font-size: 11.5px; }
.rm-0 { color: #A3ACA8; }
.rm-1 { color: var(--light); }
.rm-2 { color: var(--green-ink); font-weight: 600; }
.rm-table tbody th { text-transform: none; letter-spacing: 0; color: var(--dark); font-size: 13px; } .rm-table thead th { white-space: nowrap; }

/* ── Bewerbungen ─────────────────────────── */
.bw-head { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; }
.bw-head h2 { font-size: 20px; }
.bw-head p { margin: 4px 0 0; }
.bw-head-r { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.bw-notiz { background: var(--olive-tint); border-radius: 6px; padding: 6px 10px; white-space: pre-line; }
.bw-stepper { margin: 0; }
.an-stepper li.stop span { background: #ECEDEC; color: #6B6F6E; }
.bw-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.bw-col { display: grid; gap: 14px; min-width: 0; }
.bw-step { border-top: 1px solid var(--line); padding: 10px 0 4px; }
.bw-step:first-of-type { border-top: 0; }
.bw-step > summary { cursor: pointer; padding: 2px 0; }
.bw-mail { display: grid; gap: 8px; margin-top: 10px; }
.bw-mail textarea { font-size: 13.5px; line-height: 1.5; }
.bw-3 { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 8px; }
.bw-rate { display: grid; gap: 8px; margin-top: 8px; }
.bw-ktable { border-collapse: collapse; width: 100%; }
.bw-ktable th { text-align: left; font-weight: 500; font-size: 13px; padding: 4px 8px 4px 0; }
.bw-ktable td { padding: 3px 0; width: 190px; }
.bw-ktable select { height: 32px; font-size: 13px; }
.bw-bewlist, .bw-files, .bw-log, .bw-bars { list-style: none; margin: 0; padding: 0; }
.bw-bewlist li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.bw-note { font-weight: 600; margin-left: 4px; }
.bw-krit { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 12px; color: var(--muted); margin-top: 3px; }
.bw-bewlist p { margin: 4px 0 0; white-space: pre-line; }
.bw-files li { display: flex; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.bw-files li a { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.bw-up { margin-top: 10px; }
.bw-up input[type=file] { max-width: 260px; }
.bw-log li { display: grid; grid-template-columns: 112px 1fr; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.bw-log time { color: var(--muted); font-size: 12px; }
.bw-log pre, .bw-preview pre { white-space: pre-wrap; font: 12.5px/1.5 var(--font); background: #F7F9F5; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; margin: 6px 0 0; }
.bw-bars li { display: grid; grid-template-columns: 170px 1fr 36px; gap: 10px; align-items: center; padding: 5px 0; font-size: 13px; }
.bw-bars b { text-align: right; }
@media (max-width: 1000px) { .bw-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .bw-head { flex-direction: column; } .bw-head-r { align-items: flex-start; } .bw-3 { grid-template-columns: 1fr 1fr; } .bw-3 label:last-child { grid-column: 1 / -1; } .bw-log li { grid-template-columns: 1fr; gap: 0; } .bw-bars li { grid-template-columns: 110px 1fr 30px; } }
.bw-bars .progress { margin: 0; }
.an-stepper.bw-stepper { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.bw-stepper li { font-size: 12.5px; padding-left: 8px; padding-right: 6px; }
@media (max-width: 900px) { .an-stepper.bw-stepper { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 520px) { .an-stepper.bw-stepper { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Touch-Geräte: grössere Felder und Buttons */
@media (pointer: coarse) { :root { --ctl-h: 42px; } .btn.sm { height: 36px; } .pl-x { font-size: 18px; padding: 4px 6px; } }
.tabs { overflow-x: auto; scrollbar-width: none; }
.tabs a { white-space: nowrap; }
.pl-zeiten > * { min-width: 0; }
@media (pointer: coarse) { input, select, textarea { font-size: 16px; } }
.benefits .row, form .row { flex-wrap: wrap; }
@media (max-width: 900px) { .pl-zeiten { grid-template-columns: minmax(0, 1fr); } }
.card-h { flex-wrap: wrap; row-gap: 4px; }
.cl-meta { min-width: 0; }
@media (max-width: 1000px) { .cl-meta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .cl-del { white-space: normal; } }
.pl-zeiten > div, .bw-col { grid-template-columns: minmax(0, 1fr); } select { max-width: 100%; }
.form-actions { flex-wrap: wrap; }
.rm-3 { color: var(--green-ink); font-weight: 700; }
.rr-table { font-size: 12.5px; }
.rr-table th, .rr-table td { padding: 6px 6px; vertical-align: middle; }
.rr-table thead th { text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 600; color: var(--dark); }
.rr-table .rr-g { text-align: center; background: var(--green-tint); border-left: 2px solid #fff; }
.rr-table .rr-a { font-weight: 500; min-width: 118px; vertical-align: bottom; }
.rr-table tbody th { font-weight: 400; min-width: 150px; position: sticky; left: 0; background: #fff; z-index: 1; text-transform: none; letter-spacing: 0; }
.rr-table select { height: 30px; font-size: 12px; padding: 0 20px 0 6px; background-position: right 6px center; min-width: 104px; } .rr-table select:not(.rr-set) { color: var(--muted); }
.rr-table select.rr-set { border-color: var(--green); background-color: var(--green-tint); font-weight: 600; }
.rr-table .rr-admin { color: var(--muted); text-align: center; }
.rr-table tr.inaktiv th b { color: var(--muted); }
/* Menü: feste Gruppen */
div.nav-sec { margin: 0 0 2px; }
div.nav-sec .nav-group { padding: 14px 12px 4px; }
div.nav-sec:first-child .nav-group { padding-top: 0; }
/* Umsatz & Bestellungen: Wochen / Währungen */
.fin-kurse { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px 14px; }
.fin-kurs-in { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.fin-kurs-in input { text-align: right; }
.fin-wt th, .fin-wt td { padding: 5px 6px; }
.fin-wt input { height: 32px; text-align: right; min-width: 90px; padding: 0 8px; }
.fin-wt tbody th { font-weight: 600; white-space: nowrap; text-transform: none; letter-spacing: 0; color: var(--dark); }
.fin-wt tbody th small { font-weight: 400; }
.fin-wt tr.today th { color: var(--green-ink); }
.fin-wt tr.today td, .fin-wt tr.today th { background: #F3F8E6; }
.fin-wt tr.fin-mw th, .fin-wt tr.fin-mw td { background: #FAFBF8; }
.fin-wt td[data-fin-sum] { font-weight: 600; white-space: nowrap; min-width: 110px; }
.fin-total { margin-left: auto; font-size: 14px; } .fin-total b { font-weight: 600; }
.fin-msum { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 36px; }
.fin-msum > div:not(.form-actions) { display: flex; flex-direction: column; } .fin-msum span { font-size: 12.5px; color: var(--muted); } .fin-msum b { font-size: 20px; font-weight: 600; }
.fin-msum .form-actions { margin-left: auto; }
.fin-mform { display: grid; gap: 14px; }
.pd-row2 { grid-template-columns: 1fr; }
.pd-finw-body { display: grid; gap: 8px; }
.pd-finw-sum { margin: 0; display: grid; gap: 8px; }
.pd-finw-sum div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.pd-finw-sum dt { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 6px; } .pd-finw-sum dd { margin: 0; font-weight: 600; text-align: right; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; } .sw-u { background: #8CC63F; } .sw-b { background: #16413B; }
.pd-vtable th, .pd-vtable td { padding: 6px 7px; font-size: 12.5px; }
.pd-vtable tbody th { text-transform: none; letter-spacing: 0; color: var(--dark); font-weight: 600; white-space: nowrap; }
.pd-vtable tr.cur td { font-weight: 600; } .pd-vtable tr.diff th { font-weight: 400; color: var(--muted); }
.pd-vtable td.neg { color: var(--danger); } .pd-vtable td.pos { color: #4E7A1F; }
@media (max-width: 760px) { .pd-finw-body { grid-template-columns: 1fr; } }

.pd-row.mit-fin { grid-template-columns: 1.3fr 1.2fr 1fr 1fr; }
.pd-finw-sum div { padding-bottom: 4px; } .pd-finw-sum dd { font-size: 13px; } .pd-finw-sum dt { font-size: 12px; }
.pd-finw-sum dd small { display: block; font-weight: 400; font-size: 11px; }
@media (max-width: 1300px) { .pd-row.mit-fin { grid-template-columns: 1fr 1fr; } .pd-row.mit-fin .pd-wetter { grid-column: auto; } }
@media (max-width: 640px) { .pd-row.mit-fin { grid-template-columns: 1fr; } }
body.tv .pd-card .pd-svg { max-height: 160px; }
body.tv .pd-finw .pd-svg { max-height: 120px; }
body.tv .pd-fin .kpi { padding: 6px 14px; } body.tv .pd-fin .kpi b { font-size: 18px; }
body.tv .content { gap: 12px; }
body.tv .pd-card footer { display: none; }

/* ── TV 16:9: alles auf einen Bildschirm, keine Bedienung nötig ── */
body.tv { height: 100vh; overflow: hidden; cursor: none; font-size: clamp(12px, 1.35vh, 22px); }
body.tv .main { height: 100vh; min-height: 0; }
body.tv .topbar { padding: 1.2vh 1.6vw .6vh; min-height: 0; }
body.tv .topbar h1 { font-size: 2.6vh; }
body.tv .tv-clock { font-size: 3.4vh; font-weight: 600; margin-left: auto; font-variant-numeric: tabular-nums; }
body.tv .tv-kw { font-size: 2vh; color: var(--muted); }
body.tv .tv-exit { opacity: 0; } body.tv .tv-exit:focus, body.tv .tv-exit:hover { opacity: 1; }
body.tv .content { padding: 0 1.6vw 1.6vh; max-width: none; flex: 1; min-height: 0; gap: 0; }
.tv-grid { display: grid; grid-template-columns: 23fr 52fr 25fr; gap: 1.2vh 1vw; height: 100%; min-height: 0; }
.tv-col { display: flex; flex-direction: column; gap: 1.2vh; min-height: 0; min-width: 0; }
.tv-card { font-size: 1.55vh; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 1.1vh .9vw; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.tv-card h3 { font-size: 1.1em; font-weight: 600; margin: 0 0 .6vh; display: flex; gap: .6vw; align-items: baseline; flex-wrap: wrap; }
.tv-sub { font-weight: 400; color: var(--muted); font-size: 1.5vh; }
.tv-left .tv-card { flex: 1 1 0; } .tv-left .tv-card .pd-svg { flex: 1; min-height: 0; height: 100%; max-height: none; }
.tv-left .tv-kpi { flex: 0 0 auto; flex-direction: row; align-items: baseline; gap: .8vw; flex-wrap: wrap; }
.tv-kpi b { font-size: 2.6vh; font-weight: 600; } .tv-kpi span { color: var(--muted); font-size: 1.5vh; } .tv-kpi .neg { color: var(--danger); } .tv-kpi .pos { color: #4E7A1F; }
.tv-center .tv-plan { flex: 1; }
.tv-plan .table-wrap { overflow: hidden; flex: 1; }
.tv-plan .pl-grid { font-size: .95em; }
.tv-plan h3 { font-size: 1.15em; }
.tv-plan .pl-grid th, .tv-plan .pl-grid td { padding: .35em .4em; font-size: 1em; }
.tv-plan .pl-grid thead th { font-size: 1.05em; }
.tv-plan .pl-grid .pl-name { width: 20%; } .tv-plan .pl-name small, .tv-plan .pl-zeit { font-size: .85em; }
.tv-plan .pl-task { font-size: .9em; } .tv-plan .pl-gh th { font-size: .8em; padding: .4vh .45vw; }
.tv-right .tv-card { flex: 0 0 auto; }
.tv-right .tv-auf { flex: 1 1 0; }
.tv-card ul { list-style: none; margin: 0; padding: 0; }
.tv-card li { display: flex; gap: .7vw; justify-content: space-between; padding: .3em 0; border-bottom: 1px solid var(--line); font-size: 1em; }
.tv-card li:last-child { border-bottom: 0; }
.tv-card li time, .tv-card li b { font-weight: 600; }
.tv-auf li { justify-content: flex-start; } .tv-auf li b { min-width: 38%; } .tv-auf li.void span { text-decoration: line-through; color: var(--muted); }
.tv-empty { color: var(--muted); font-size: 1.5vh; margin: .4vh 0; }
.tv-abfuhr.alarm { background: var(--danger); border-color: var(--danger); color: #fff; animation: tv-puls 2s ease-in-out infinite; }
.tv-abfuhr.alarm li { border-color: rgba(255,255,255,.3); }
.tv-alarm { font-size: 2.6vh; font-weight: 700; margin: .2vh 0 .8vh; }
.tv-abfuhr.vorwarn { border: 2px solid #E0A100; background: #FFF6DB; }
.tv-vorwarn { font-size: 1.9vh; font-weight: 600; color: #7A5600; margin: .2vh 0 .6vh; }
@keyframes tv-puls { 50% { box-shadow: 0 0 0 .6vh rgba(179,38,30,.25); } }
@media (prefers-reduced-motion: reduce) { .tv-abfuhr.alarm { animation: none; } }
.tv-wetter .wx { gap: .4vw; } .tv-wetter .wx-day b { font-size: 1.5vh; } .tv-wetter .wx-day svg { width: 4.4vh; height: 4.4vh; } .tv-wetter .wx-t { font-size: 1.8vh; } .tv-wetter .wx-day small { font-size: 1.25vh; }
.tv-fin li.cur { color: var(--green-ink); font-weight: 600; }
.tv-sum { display: flex; gap: .6vw; align-items: baseline; flex-wrap: wrap; margin: .6vh 0 0; font-size: 1.55vh; } .tv-sum b { font-size: 2vh; } .tv-sum small { color: var(--muted); }
.tv-bsp { background: #FFF1CC; color: #7A5600; font-size: 1.3vh; padding: 0 .5vw; border-radius: 10px; font-weight: 600; }
/* Abfuhr-Hinweis auch im normalen Dashboard */
.pd-alarm { border: 2px solid var(--danger); background: var(--danger-tint); }
.pd-alarm-tag { margin-left: auto; background: var(--danger); color: #fff; font-weight: 700; font-size: 12.5px; padding: 1px 8px; border-radius: 10px; }
.pd-vorwarn { border: 2px solid #E0A100; }
.pd-vorwarn-tag { margin-left: auto; background: #FFF1CC; color: #7A5600; font-weight: 600; font-size: 12.5px; padding: 1px 8px; border-radius: 10px; }

.tv-left svg text { font-size: 14px; }
.tv-plan .pl-grid tbody tr:not(.pl-gh) th, .tv-plan .pl-grid tbody td { height: 1px; }
.tv-plan .pl-frei, .tv-plan .pl-abs, .tv-plan .pl-warn, .tv-plan .pl-name small { font-size: .85em; } .tv-plan .pl-task em { font-size: .75em; } .tv-plan .pl-name b { font-size: 1em; }
.tv-wetter .wx p { font-size: 1em; }
.tv-hinweis { flex: 1 1 auto !important; justify-content: center; }
.tv-hinweis p, .tv-hinweis-c p { font-size: 1.3em; margin: .3em 0; }
.tv-hinweis .tv-empty, .tv-hinweis-c .tv-empty { font-size: 1em; }
.tv-hinweis-c { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; max-width: 70%; margin: 0 auto; }

/* ── TV 16:9, Aufbau wie Bildreferenz ── */
body.tv .topbar { display: none; }
body.tv .content { padding: 0; height: 100vh; }
.tvx { height: 100vh; display: grid; grid-template-areas: 'head' 'bsp' 'top' 'mid' 'wx'; grid-template-rows: auto auto 29vh minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); gap: 1.1vh; padding: 0 .8vw 1vh; font-size: 1.5vh; }
.tvx-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; background: #fff; margin: 0 -.8vw; padding: .9vh 1.2vw; border-bottom: 1px solid var(--line); border-top: 3px solid var(--dark); }
.tvx-logo { height: 4vh; }
.tvx-when { display: flex; gap: 1vw; align-items: baseline; font-size: 1.9vh; }
.tvx-when b { font-weight: 500; } .tvx-when [data-clock] { font-weight: 700; font-size: 2.4vh; font-variant-numeric: tabular-nums; } .tvx-when small { color: var(--muted); font-size: 1.5vh; }
.tvx-exit { justify-self: end; font-size: 1.3vh; color: var(--muted); opacity: 0; text-decoration: none; } .tvx-exit:hover, .tvx-exit:focus { opacity: 1; }
.tvx-bsp { background: var(--green-tint); margin: -1.1vh -.8vw 0; padding: .5vh 1vw; font-size: 1.4vh; font-weight: 600; letter-spacing: .05em; }
.tvx-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 1.2vh 1vw; min-height: 0; min-width: 0; overflow: hidden; display: flex; flex-direction: column; }
.tvx-top { display: grid; grid-template-columns: 1fr 1fr; gap: .8vw; min-height: 0; }
.tvx-top .tvx-card { border-top: 4px solid var(--green); }
.tvx-top .pd-svg { flex: 1; min-height: 0; width: 100%; height: 100%; }
.tvx-top svg text { font-size: 15px; }
.tvx-eye { margin: 0; font-size: 1.15vh; letter-spacing: .12em; text-transform: uppercase; color: var(--olive); font-weight: 600; }
.tvx-h { display: flex; justify-content: space-between; align-items: baseline; gap: 1vw; }
.tvx-card h3 { font-size: 2.1vh; font-weight: 700; margin: .2vh 0; }
.tvx-h span { color: var(--dark); font-size: 1.45vh; }
.tvx-sub { margin: 0; font-size: 1.4vh; } .tvx-sub .neg, .tvx-vgl.neg { color: var(--danger); } .tvx-sub .pos, .tvx-vgl.pos { color: #4E7A1F; }
.tvx-legend { margin: 0; font-size: 1.2vh; display: flex; align-items: center; gap: .4vw; color: var(--dark); }
.tvx-strich { display: inline-block; width: 1.6vh; border-top: 2px dashed #7E8A85; margin-left: .8vw; }
.tvx-mid { display: grid; grid-template-columns: 13fr 62fr 18fr; gap: .8vw; min-height: 0; }
.tvx-left, .tvx-right { display: flex; flex-direction: column; gap: 1.1vh; min-height: 0; }
.tvx-kpi { flex: 0 0 auto; }
.tvx-left .tvx-kpi:first-child { border-top: 4px solid var(--green); }
.tvx-big { font-size: 3.6vh; font-weight: 700; margin: .4vh 0 .8vh; letter-spacing: -.01em; }
.tvx-row { display: flex; justify-content: space-between; align-items: baseline; margin: 0; font-size: 1.35vh; } .tvx-row b { font-size: 2.2vh; }
.tvx-prog { height: .8vh; margin: .6vh 0; }
.tvx-small { font-size: 1.3vh; color: var(--muted); margin: .3vh 0; }
.tvx-vgl { font-size: 2vh; font-weight: 700; margin: .4vh 0 0; }
.tvx-list { list-style: none; margin: .4vh 0 0; padding: 0; }
.tvx-list li { display: flex; justify-content: space-between; gap: .6vw; padding: .5vh 0; border-bottom: 1px solid var(--line); font-size: 1.5vh; }
.tvx-list li:last-child { border-bottom: 0; } .tvx-list li.cur { color: var(--green-ink); font-weight: 600; }
.tvx-abfuhr .tvx-list li { flex-direction: column; gap: 0; } .tvx-abfuhr .tvx-list b { font-size: 1.6vh; }
.tvx-plan { font-size: 1.5vh; }
.tvx-plan .tvx-h h3 { font-size: 2.4vh; margin-bottom: .8vh; }
.tvx-plan .table-wrap { overflow: hidden; }
.tvx-plan .pl-grid { font-size: .95em; }
.tvx-plan .pl-grid th, .tvx-plan .pl-grid td { padding: .45em .5em; font-size: 1em; }
.tvx-plan .pl-grid .pl-name { width: 16%; }
.tvx-plan .pl-name small, .tvx-plan .pl-zeit, .tvx-plan .pl-frei, .tvx-plan .pl-abs, .tvx-plan .pl-warn { font-size: .85em; }
.tvx-plan .pl-task { font-size: .9em; } .tvx-plan .pl-gh th { font-size: .75em; }
.tvx-abfuhr { flex: 0 0 auto; }
.tvx-abfuhr.alarm { border: 3px solid var(--danger); background: var(--danger); color: #fff; animation: tv-puls 2s ease-in-out infinite; }
.tvx-alarm { color: var(--danger); font-size: 2.6vh !important; }
/* 2.48: Abfuhr heute vollflächig rot, damit sie nicht übersehen wird */
.tvx-abfuhr.alarm .tvx-alarm, .tvx-abfuhr.alarm .tvx-eye, .tvx-abfuhr.alarm .tvx-list li, .tvx-abfuhr.alarm .tvx-list b, .tvx-abfuhr.alarm a, .tvx-abfuhr.alarm .tvx-small { color: #fff !important; }
.tvx-abfuhr.alarm .tvx-alarm { font-size: 3vh !important; font-weight: 800; }
.tvx-abfuhr.alarm .tvx-list li { border-color: rgba(255,255,255,.35); }
@media (prefers-reduced-motion: reduce) { .tvx-abfuhr.alarm { animation: none; } }
.abfuhr-heute { background: var(--danger); color: #fff; border-radius: 10px; padding: .8em 1em; margin: 0 0 1em; font-size: 1.15em; }
tr.abfuhr-heute-row td { background: #FDEDEB; color: var(--danger); font-weight: 600; }
.tvx-abfuhr.vorwarn { border: 3px solid #E0A100; background: #FFF8E3; }
.tvx-vorwarn { color: #7A5600; }
.tvx-hinweis { border-top: 1px solid var(--line); padding-top: .5vh; }
.tvx-auf { flex: 1 1 0; }
/* 2.84 (Saskia 6u-1): Name oben, Aufgaben darunter über die volle Breite; ab 7 Personen zweispaltig */
.tvx-auf .tvx-list li { flex-direction: column; justify-content: flex-start; gap: 0; break-inside: avoid; } .tvx-auf .tvx-list b { min-width: 0; font-size: 1.6vh; } .tvx-auf .tvx-list span { width: 100%; }
.tvx-auf .tvx-list.tvx-zwei { column-count: 2; column-gap: 1.4vw; } .tvx-auf .tvx-list.tvx-zwei li { display: flex; } .tvx-auf li.void span { text-decoration: line-through; color: var(--muted); }
.tvx-wetter { flex-direction: row; align-items: center; gap: 2vw; padding: 1vh 1.4vw; }
.tvx-wl { flex: 0 0 auto; } .tvx-wl h3 { font-size: 2vh; }
.wx-row { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); }
.wx-row .wx-day { flex-direction: row; justify-content: center; gap: 1vw; border: 0 !important; }
.wx-row .wx-day b { font-size: 1.6vh; } .wx-row .wx-day svg { width: 4.6vh; height: 4.6vh; } .wx-row .wx-t { font-size: 2.6vh; } .wx-row .wx-day small { font-size: 1.3vh; }
.tvx-quelle { flex: 0 0 auto; }

.tvx-head { grid-area: head; } .tvx-bsp { grid-area: bsp; } .tvx-top { grid-area: top; } .tvx-mid { grid-area: mid; } .tvx-wetter { grid-area: wx; }
.tvx-left { overflow: hidden; } .tvx-left .tvx-kpi { flex: 0 1 auto; }
.tvx-mid-n { font-size: 2.8vh; font-weight: 700; margin: .3vh 0; }
.tvx-big { font-size: 3.2vh; }
body.tv { font-size: 1.4vh; }
.tvx-wetter { min-height: 8vh; max-height: 11vh; } .tvx-wetter .wx p { white-space: nowrap; }

/* 2.7: volle Breite überall; Menügruppen aufklappbar */
.content { max-width: none; }
.settings { max-width: none; }
details.nav-sec > summary.nav-group { display: flex; align-items: center; cursor: pointer; list-style: none; padding: 14px 12px 4px; }
details.nav-sec > summary.nav-group::-webkit-details-marker { display: none; }
details.nav-sec > summary.nav-group::after { content: ""; margin-left: auto; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); opacity: .6; transition: transform .15s; }
details.nav-sec:not([open]) > summary.nav-group::after { transform: rotate(-45deg); }
details.nav-sec > summary.nav-group:hover { color: #fff; }
details.nav-sec:first-child > summary.nav-group { padding-top: 0; }

/* 2.7 – Personalplanung VM / NM (grössere Darstellung) */
.pl-big .pl-grid { font-size: 14px; }
.pl-big .pl-grid .pl-name { width: 210px; }
.pl-big .pl-grid thead th { font-size: 13.5px; padding: 9px 8px; }
.pl-big .pl-grid .pl-name b { font-size: 14.5px; }
.pl-hts { display: grid; grid-template-columns: 1fr; gap: 3px; }
.pl-ht { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 4px; min-height: 26px; padding: 2px 5px; border-radius: 5px; border: 1px solid transparent; }
.pl-ht.da { background: #F3F8E6; border-color: #DCEAB8; }
.pl-ht.weg { background: transparent; color: #A6ADA9; }
.pl-htl { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; color: var(--green-ink); min-width: 22px; }
.pl-ht.weg .pl-htl { color: #B5BCB8; font-weight: 600; }
.pl-ht .pl-task { margin: 0; }
.pl-ht .pl-add { margin-top: 0; }
.pl-grid:not(.mit-aufg) .pl-hts { grid-template-columns: 1fr 1fr; }
.pl-grid:not(.mit-aufg) .pl-ht { justify-content: center; min-height: 22px; }
.pl-tag td, .pl-tag th { vertical-align: middle; }
.pl-tag select, .pl-tag input { height: 34px; font-size: 13.5px; width: 100%; max-width: 260px; }
.pl-tag td > div { display: grid; gap: 4px; }
.pl-htab td.c, .pl-htab th.c { text-align: center; }
.pl-htab input[type=checkbox] { width: 18px; height: 18px; }
.pl-htab tbody td:nth-child(2n) { border-left: 1px solid var(--line); }
.table th.c, .table td.c, td.c, th.c { text-align: center; }
/* Einsätze */
.ez-table td.c { white-space: nowrap; }
.ez-form [data-ez-neu][hidden] { display: none; }
.zt-einfach { max-width: 560px; }
.zt-einfach .zt-actions .btn { min-height: 56px; font-size: 18px; min-width: 160px; }
.pre { white-space: pre-wrap; }

/* 2.7 – Geräteplan als Wochenraster 07–19 Uhr, volle Breite */
.gp-plan { margin-bottom: 16px; }
.gp-plan .pl-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gp-legend { margin-left: auto; display: inline-flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.gp-ev-l { display: inline-block; padding: 1px 8px; border-radius: 4px; background: var(--green-tint); border-left: 3px solid var(--green); color: var(--dark); }
.gp-ev-l.sperr { background: repeating-linear-gradient(135deg, #F1F2F0, #F1F2F0 5px, #E4E7E2 5px, #E4E7E2 10px); border-left-color: #7E8A85; }
.gp-ev-l.konflikt { background: #FDEDEB; border-left-color: var(--danger); }
.gp-time { display: grid; grid-template-columns: 56px repeat(5, minmax(0, 1fr)); grid-template-rows: auto 672px; border-top: 1px solid var(--line); }
.gp-th { padding: 10px 8px; font-weight: 600; font-size: 13.5px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #F7F9F5; }
.gp-th.today { color: var(--green-ink); box-shadow: inset 0 -2px 0 var(--green); }
.gp-corner { border-left: 0; }
.gp-hours { display: grid; grid-template-rows: repeat(12, 1fr); }
.gp-hours span { font-size: 11.5px; color: var(--muted); text-align: right; padding: 0 8px; transform: translateY(-7px); }
.gp-hours span:first-child { transform: none; }
.gp-day { position: relative; display: grid; grid-template-rows: repeat(12, 1fr); border-left: 1px solid var(--line); }
.gp-day.today { background: #FAFCF5; }
.gp-day > i { border-bottom: 1px solid #EEF0EC; }
.gp-day > i:nth-child(odd) { border-bottom-color: #E3E7E0; }
.gp-ev { position: absolute; left: 2px; right: 2px; overflow: hidden; display: flex; flex-direction: column; gap: 0; padding: 3px 6px; border-radius: 5px; font-size: 12px; line-height: 1.3; text-decoration: none; color: var(--dark); background: var(--green-tint); border-left: 4px solid var(--green); box-shadow: 0 1px 2px rgba(9,33,30,.08); }
.gp-ev b { font-weight: 700; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gp-ev span, .gp-ev small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gp-ev small { color: var(--muted); font-size: 11px; }
.gp-ev .gp-t { white-space: normal; }
a.gp-ev:hover { filter: brightness(.97); outline: 2px solid var(--green); }
.gp-ev.sperr { background: repeating-linear-gradient(135deg, #F1F2F0, #F1F2F0 6px, #E4E7E2 6px, #E4E7E2 12px); border-left-color: #7E8A85; color: #4B5753; }
.gp-ev.konflikt { box-shadow: 0 0 0 2px var(--danger) inset; }
.gp-c1 { border-left-color: #16413B; background-color: #E3ECEA; } .gp-c2 { border-left-color: #E0A100; background-color: #FFF4D6; } .gp-c3 { border-left-color: #2F7DA8; background-color: #E2EFF6; }
.gp-c4 { border-left-color: #8E4FA0; background-color: #F2E7F5; } .gp-c5 { border-left-color: #C8551E; background-color: #FBE9DF; } .gp-c6 { border-left-color: #4E7A1F; background-color: #E9F1DD; } .gp-c7 { border-left-color: #6B7672; background-color: #ECEFEC; }
.gp-ev.sperr.gp-c1, .gp-ev.sperr.gp-c2, .gp-ev.sperr.gp-c3, .gp-ev.sperr.gp-c4, .gp-ev.sperr.gp-c5, .gp-ev.sperr.gp-c6, .gp-ev.sperr.gp-c7 { background-color: transparent; }
.gp-bottom { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; align-items: start; }
.gp-bottom.readonly { grid-template-columns: minmax(0, 1fr); }
.gp-form .gp-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 12px; }
.gp-form .gp-fields label { display: grid; gap: 3px; font-size: 13px; }
.gp-form .gp-wide { grid-column: 1 / -1; }
.gp-form .gp-rec { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.gp-chips { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.gp-chip { display: inline-block; padding: 4px 10px; border-radius: 6px; border-left: 4px solid var(--green); background: var(--green-tint); color: var(--dark); text-decoration: none; font-size: 13px; font-weight: 600; }
.gp-chip.active { outline: 2px solid var(--dark); }
.gp-chip.inaktiv { opacity: .55; font-weight: 400; }
.gp-slist { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.gp-slist li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.gp-verw { margin-top: 10px; }
.gp-gtab { margin-top: 8px; } .gp-gtab td { padding: 4px 0; border: 0; }
.gp-gedit { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 28px auto; gap: 6px; align-items: center; }
.gp-gedit input:not([type=checkbox]) { height: 32px; font-size: 13px; }
.gp-gbtn { display: inline-flex; gap: 4px; align-items: center; }
@media (max-width: 900px) {
  .gp-bottom, .gp-form .gp-fields { grid-template-columns: minmax(0, 1fr); }
  .gp-time { grid-template-rows: auto 560px; }
  .gp-ev b { font-size: 11px; } .gp-ev span:not(.gp-t), .gp-ev small { display: none; }
  .gp-legend { margin-left: 0; }
}

/* 2.7 – Cockpit: oben drei Diagramme; gleiche Anordnung im Dashboard */
.tvx-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tvx-h .link-sm { font-size: 12px; }
.tvx-auf .tvx-list li.frei span { color: var(--muted); font-style: italic; }
.tvx-auf .tvx-list li { align-items: baseline; }
.tvx-auf .tvx-list span { text-align: right; }
.tvx-plan .pl-hts { gap: .25em; }
.tvx-plan .pl-ht { min-height: 1.6em; padding: .1em .3em; }
.tvx-plan .pl-htl { font-size: .8em; }
.tvx.dash { height: auto; padding: 0; grid-template-rows: auto auto minmax(240px, 32vh) minmax(480px, auto) auto; font-size: 14px; gap: 14px; }
.tvx.dash .tvx-top, .tvx.dash .tvx-mid { gap: 14px; }
.tvx.dash .tvx-left, .tvx.dash .tvx-right { gap: 14px; }
.tvx.dash .tvx-card { padding: 14px 16px; }
.tvx.dash .tvx-eye { font-size: 11px; } .tvx.dash .tvx-card h3 { font-size: 17px; } .tvx.dash .tvx-h span { font-size: 13px; }
.tvx.dash .tvx-sub, .tvx.dash .tvx-small, .tvx.dash .tvx-legend, .tvx.dash .tvx-row { font-size: 12.5px; } .tvx.dash .tvx-row b { font-size: 17px; }
.tvx.dash .tvx-big { font-size: 26px; } .tvx.dash .tvx-list li { font-size: 13.5px; padding: 5px 0; }
.tvx.dash .tvx-prog { height: 7px; margin: 6px 0; }
.tvx.dash .tvx-plan { font-size: 13.5px; } .tvx.dash .tvx-plan .tvx-h h3 { font-size: 18px; margin-bottom: 8px; }
.tvx.dash .tvx-plan .table-wrap { overflow: auto; }
.tvx.dash .tvx-mid { grid-template-columns: minmax(200px, 15fr) minmax(0, 58fr) minmax(220px, 20fr); }
.tvx.dash .tvx-wetter { max-height: none; min-height: 0; padding: 12px 16px; }
.tvx.dash .tvx-wl h3 { font-size: 16px; }
.tvx.dash .tvx-bsp { margin: 0; border-radius: 8px; font-size: 13px; }
@media (max-width: 1100px) {
  .tvx.dash .tvx-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tvx.dash .tvx-top > :last-child { grid-column: 1 / -1; }
  .tvx.dash .tvx-mid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tvx.dash .tvx-plan { grid-column: 1 / -1; grid-row: 1; }
  .tvx.dash { grid-template-rows: auto; }
  .tvx.dash .tvx-top .tvx-card { min-height: 240px; }
}
@media (max-width: 700px) {
  .tvx.dash .tvx-top, .tvx.dash .tvx-mid { grid-template-columns: minmax(0, 1fr); }
  .tvx.dash .tvx-wetter { flex-direction: column; align-items: stretch; }
}
.gp-chip.gp-c1 { border-left-color: #16413B; background: #E3ECEA; } .gp-chip.gp-c2 { border-left-color: #E0A100; background: #FFF4D6; } .gp-chip.gp-c3 { border-left-color: #2F7DA8; background: #E2EFF6; }
.gp-chip.gp-c4 { border-left-color: #8E4FA0; background: #F2E7F5; } .gp-chip.gp-c5 { border-left-color: #C8551E; background: #FBE9DF; } .gp-chip.gp-c6 { border-left-color: #4E7A1F; background: #E9F1DD; } .gp-chip.gp-c7 { border-left-color: #6B7672; background: #ECEFEC; }
.gp-form .gp-fields label small { display: inline; }
.tvx.dash .tvx-top svg text { font-size: 17px; }
.tvx.dash .wx-row .wx-day { gap: 10px; } .tvx.dash .wx-row .wx-day b { font-size: 14px; } .tvx.dash .wx-row .wx-day svg { width: 34px; height: 34px; }
.tvx.dash .wx-row .wx-t { font-size: 20px; white-space: nowrap; } .tvx.dash .wx-row .wx-day small { font-size: 12px; }
.tvx.dash .tvx-wetter .wx p { white-space: nowrap; }
.tvx.dash .tvx-wetter { gap: 20px; }
@media (max-width: 1100px) { .tvx.dash .wx-row { grid-template-columns: 1fr; gap: 6px; } .tvx.dash .wx-row .wx-day { justify-content: flex-start; } }

/* 2.7 – Dossier-Karten als Mauerwerk: unterschiedliche Höhen, schliessen nach oben auf */
.dossier-grid { display: block; columns: 2; column-gap: 18px; }
.dossier-grid > * { break-inside: avoid; margin: 0 0 18px; display: inline-block; width: 100%; vertical-align: top; }
@media (min-width: 1700px) { .dossier-grid { columns: 3; } }
@media (max-width: 900px) { .dossier-grid { columns: 1; } }
.dossier-zugang { margin-left: auto; align-self: center; }
.mut-ol { list-style: none; margin: 0; padding: 0; }
.mut-ol li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.mut-ol li:last-child { border-bottom: 0; }
.mut-ol time { color: var(--muted); font-variant-numeric: tabular-nums; }
.zs-box { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.zs-box summary { cursor: pointer; }
.zs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 16px; margin-top: 10px; }
.zs-grid fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px 8px; margin: 0; }
.zs-grid legend { font-size: 12px; font-weight: 600; color: var(--olive); padding: 0 4px; }
.zs-grid label.check { display: flex; gap: 6px; align-items: center; font-size: 13px; padding: 2px 0; }
.sb-dl { margin: 8px 0 0; } .sb-dl > div { padding: 6px 0; border-bottom: 1px solid var(--line); } .sb-dl dt { font-size: 12px; color: var(--muted); font-weight: 600; } .sb-dl dd { margin: 2px 0 0; font-size: 13.5px; }
.sb-rm { margin: 10px 0; padding: 8px 10px; border-radius: 6px; background: var(--green-tint); font-size: 13.5px; } .sb-rm.aenderung { background: #FFF4D6; }
.sb-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; margin-top: 12px; }
.sb-wunsch > summary { list-style: none; } .sb-wunsch > summary::-webkit-details-marker { display: none; }
.sb-wunsch[open] { flex: 1 1 100%; } .sb-wunsch form { margin-top: 10px; max-width: 640px; }
.mag-leitfaden { margin-top: 10px; } .mag-leitfaden ol { margin: 6px 0 0 18px; }
.sb-flash { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; } .sb-flash > span:last-child { display: inline-flex; gap: 6px; }
.gs-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 14px; align-content: start; }
.gs-fields .field { display: grid; gap: 4px; width: 100%; }
.gs-fields textarea { width: 100%; min-height: 110px; box-sizing: border-box; }
@media (max-width: 1100px) { .gs-fields { grid-template-columns: minmax(0, 1fr); } }
/* 2.7 – Bewerbungen: einheitliche Feldhöhen, «(optional)» in der Labelzeile, Anforderungsprofil */
.bw-sform .field { display: grid; grid-template-rows: auto 40px; align-content: start; gap: 4px; }
.bw-sform .field > span.muted, .bw-sform .f-lab > span.muted { font-weight: 400; font-size: 12px; }
.bw-sform .field[hidden] { display: none; }
.bw-sform .field input, .bw-sform .field select { height: 40px; }
.bw-profil { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px 10px; margin: 4px 0 0; }
.bw-profil legend { font-weight: 600; padding: 0 4px; }
.bw-ptab td, .bw-ptab th { padding: 4px 6px; vertical-align: middle; }
.bw-ptab input, .bw-ptab select { height: 34px; width: 100%; font-size: 13px; }
.bw-ptab th:first-child { width: 30%; } .bw-ptab th.c { width: 130px; }
.bw-pbew th.c { width: 110px; }
.bw-h4 { margin: 12px 0 4px; font-size: 13.5px; }
.bw-note.neg { color: var(--danger); }
.table td.c, .table th.c { text-align: center; }

/* 2.7 – Jahres-, Team- und Firmenkalender */
.zk-grid { border-collapse: collapse; width: 100%; table-layout: fixed; font-size: 12px; }
.zk-grid th, .zk-grid td { border: 1px solid var(--line); text-align: center; padding: 0; height: 28px; }
.zk-grid thead th { background: #F7F9F5; font-weight: 600; font-size: 11.5px; line-height: 1.1; padding: 3px 0; }
.zk-grid thead th small { display: block; font-weight: 400; color: var(--muted); font-size: 10px; }
.zk-grid tbody th { text-align: left; padding: 0 8px; font-weight: 600; white-space: nowrap; background: #fff; }
.zk-jahr tbody th { width: 92px; } .zk-jahr thead th:first-child { width: 92px; }
.zk-team .zk-name { width: 190px; text-align: left; padding: 0 8px; overflow: hidden; text-overflow: ellipsis; }
.zk-team tbody th a { color: inherit; text-decoration: none; } .zk-team tbody th a:hover { text-decoration: underline; }
.zk-team td.c { width: 44px; font-weight: 600; } .zk-team thead th:last-child { width: 44px; }
.zk-gh th { background: var(--bg) !important; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--light); height: 24px; }
.zk-x { background: #F1F2F0; }
.k-we { background: #F3F4F2; } .k-ft { background: #E3ECEA; color: #16413B; font-weight: 700; font-size: 10px; } .k-bf { background: #E9F1DD; color: #4E7A1F; font-size: 10px; font-weight: 700; }
.k-fer { background: #97BF0D; color: #fff; font-weight: 700; } .k-kra { background: #F4C7C3; color: #8C1D18; font-weight: 700; } .k-wb { background: #CFE3F0; color: #1F5A80; font-weight: 700; }
.k-gz { background: #FFF0C2; color: #7A5600; font-weight: 700; } .k-and { background: #E4E0EC; color: #4B3C6B; font-weight: 700; }
.k-ant { background: repeating-linear-gradient(135deg, #fff, #fff 4px, #E8F0D0 4px, #E8F0D0 8px); color: var(--green-ink); font-weight: 700; }
.zk-heute { box-shadow: inset 0 0 0 2px var(--dark); }
.zk-leg { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 10px 0 14px; }
.zk-c { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 4px; border-radius: 3px; font-size: 10.5px; border: 1px solid var(--line); }
.zk-firma { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.zk-list { list-style: none; margin: 0; padding: 0; } .zk-list li { display: flex; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.zk-list time { min-width: 150px; color: var(--muted); font-variant-numeric: tabular-nums; } .zk-list li span:nth-child(2) { flex: 1; }
@media (max-width: 900px) { .zk-grid { table-layout: auto; min-width: 900px; } }
.bw-sform .field { display: block; }
.bw-sform .field > input, .bw-sform .field > select { display: block; width: 100%; margin-top: 4px; }
.bw-sform .field > span.muted, .bw-sform .f-lab > span.muted { margin-left: 2px; }

/* 2.7 – Meetings */
.mt-plist { list-style: none; margin: 0; padding: 0; } .mt-plist li { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line); }
.mt-plist li:last-child { border-bottom: 0; } .mt-plist li.done .mt-p b { text-decoration: line-through; color: var(--muted); }
.mt-p { display: flex; flex-direction: column; min-width: 0; flex: 1; } .mt-p.ueber small { color: var(--danger); }
.mt-ttab td { padding: 4px 6px; } .mt-ttab input, .mt-ttab select { height: 34px; width: 100%; font-size: 13.5px; }
.mt-ttab th:first-child, .mt-ttab td:first-child { width: 56px; } .mt-ttab th:last-child, .mt-ttab td:last-child { width: 72px; } .mt-ttab th:nth-child(3) { width: 140px; } .mt-ttab th:nth-child(4) { width: 200px; }
.mt-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; } .mt-head h2 { margin: 0 0 4px; }
.mt-tn { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.mt-tr-h { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; } .mt-tr-h b { font-size: 15px; }
.mt-2 { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 12px; } .mt-2 textarea { width: 100%; }
.mt-beschluss { background: var(--green-tint); border-radius: 6px; padding: 6px 10px; }
.mt-newp { margin-top: 8px; display: grid; gap: 6px; } .mt-prow { display: grid; grid-template-columns: minmax(0, 1fr) 200px 160px; gap: 6px; } .mt-prow input, .mt-prow select { height: 34px; width: 100%; font-size: 13px; }
@media (max-width: 900px) { .mt-2, .mt-prow { grid-template-columns: minmax(0, 1fr); } }
.pz-edit label.field { display: block; } .pz-edit label.field > input, .pz-edit label.field > select, .pz-edit label.field > textarea { display: block; width: 100%; margin-top: 4px; }
.pz-edit .req { display: inline; margin-left: 2px; }
.pz-docfield select { margin-top: 6px; }
@media (max-width: 1100px) { .pz-edit-step .fgrid > .w1, .pz-edit-step .fgrid > .w2 { grid-column: span 4; } }
/* 2.7 – Touch-Geräte: neue Eingabefelder gross genug und ohne iOS-Zoom */
@media (pointer: coarse) {
  .bw-ptab input, .bw-ptab select, .mt-ttab input, .mt-ttab select, .mt-prow input, .mt-prow select, .gp-gedit input, .pl-tag select, .pl-tag input,
  .gp-form .gp-fields input, .gp-form .gp-fields select, .pl-add-form input, .pl-add-form select, .pl-absform input, .pl-absform select, .bw-rate select, .bw-up select, .bw-up input { font-size: 16px; min-height: 44px; }
  .zs-grid input[type=checkbox], .mt-tn input[type=checkbox], .pl-htab input[type=checkbox], .pl-matrix input[type=checkbox], .ez-form input[type=checkbox], .bw-actions input[type=checkbox], .mt-form input[type=checkbox] { width: 24px; height: 24px; }
  .zs-grid label.check, .mt-tn label.check { min-height: 40px; }
  .ez-table + *, .pl-x { min-width: 36px; min-height: 36px; }
}
.k-art { font-weight: 700; color: #fff; background: #8E4FA0; }

/* 2.8 – Zeiterfassung: Startseite */
.zc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-bottom: 16px; align-items: stretch; }
.zc { display: flex; flex-direction: column; margin: 0; }
.zc .card-h h3 { margin: 0; }
.zc-status { display: flex; align-items: center; gap: 8px; font-weight: 600; margin: 4px 0 12px; }
.zc-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-around; padding: 8px 0 12px; }
.zc-btn { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; min-width: 96px; padding: 12px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--dark); font-size: 13px; cursor: pointer; text-decoration: none; }
.zc-btn svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.zc-btn.primary { background: var(--green); border-color: var(--green); color: var(--dark); font-weight: 700; }
.zc-btn:hover { border-color: var(--green); }
.zc-today { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: auto 0 0; border-top: 1px solid var(--line); padding-top: 10px; }
.zc-today dt, .zc-kv dt { font-size: 12px; color: var(--muted); } .zc-today dd { margin: 2px 0 0; font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.zc-stempel.kompakt .zc-today { display: none; }
.zc-chart { width: 100%; height: auto; }
.zc-kv { margin: 8px 0 4px; } .zc-kv > div { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.zc-kv dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; } .zc-kv dd.pos { color: #3D7A1F; } .zc-kv dd.neg, .zc-kv .neg { color: var(--danger); }
.zc-ferien-body { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; } .zc-donut { width: 170px; height: 170px; flex: 0 0 auto; }
.zc-leg { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 150px; } .zc-leg li { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13.5px; } .zc-leg li b { margin-left: auto; font-variant-numeric: tabular-nums; }
.zc-leg .sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; } .zc-leg-total { border-top: 1px solid var(--line); margin-top: 4px; font-weight: 600; }
.zc-abt { margin-bottom: 10px; } .zc-abt h4 { margin: 0 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--olive); }
.zc-abt ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.zc-p { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; background: #F3F4F2; font-size: 13px; } .zc-p small { color: var(--muted); }
.zc-p i, .zc-i { width: 8px; height: 8px; border-radius: 50%; background: #B5BCB8; display: inline-block; } .zc-p.anwesend i, .zc-i.anwesend { background: #43A047; } .zc-p.pause i, .zc-i.pause { background: #E0A100; }
.zc-p.anwesend { background: #E9F5E1; } .zc-leg-p { display: flex; gap: 6px; align-items: center; margin-top: auto; }
.zt-zeugnis { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.zt-hinw { margin: 6px 0 0 18px; color: #8A5A00; font-size: 13px; }
.zt-pend-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; } .zt-pend-h p { margin: 0; }
.zt-regeln td, .zt-arten td { padding: 4px 6px; vertical-align: middle; } .zt-regeln input:not([type=checkbox]), .zt-arten input:not([type=checkbox]):not([type=color]), .zt-arten select { height: 34px; width: 100%; font-size: 13.5px; }
.zt-regeln th small, .zt-arten th small { display: block; font-weight: 400; text-transform: none; letter-spacing: 0; }
.zt-arten input[type=color] { width: 44px; height: 34px; padding: 2px; } .zt-arten tr.inaktiv { opacity: .55; } .zt-arten td:nth-child(2) { width: 64px; }
.zt-ausw .zk-c { color: #fff; }
.zt-absform [data-zt-ablauf] { background: var(--green-tint); border-radius: 6px; padding: 8px 10px; } .zt-absform [data-zt-ablauf]:empty { display: none; }
/* Mein Wochenplan */
.wp-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.wp-tag { border: 1px solid var(--line); border-radius: 8px; padding: 8px; } .wp-tag.heute { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.wp-tag h4 { margin: 0 0 6px; font-size: 13px; } .wp-ht { display: grid; gap: 1px; padding: 6px; border-radius: 6px; margin-bottom: 4px; font-size: 13px; }
.wp-ht.da { background: #F3F8E6; } .wp-ht.weg { background: #F7F8F6; color: var(--muted); } .wp-ht b { font-size: 11px; color: var(--green-ink); } .wp-ht em { font-style: normal; font-weight: 600; }
.wp-abs { color: var(--danger); font-weight: 600; margin: 0; }
@media (max-width: 700px) { .wp-grid { grid-template-columns: minmax(0, 1fr); } }
.ez-zeiten { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; } .ez-zrow { display: flex; gap: 6px; align-items: center; margin: 4px 0; } .ez-zrow input { width: 120px; }
/* 2.8 – TV: oberer Teil kleiner, damit bis 15 Personen im Wochenplan Platz haben */
.tvx:not(.dash) { grid-template-rows: auto auto 19vh minmax(0, 1fr) auto; }
.tvx:not(.dash) .tvx-top .tvx-card { padding: .8vh .8vw; }
.tvx:not(.dash) .tvx-top .tvx-card h3 { font-size: 1.7vh; } .tvx:not(.dash) .tvx-top .tvx-sub { font-size: 1.2vh; } .tvx:not(.dash) .tvx-top .tvx-legend { display: none; }
.tvx:not(.dash) .tvx-wetter { min-height: 6.5vh; max-height: 8vh; padding: .6vh 1.2vw; }
.tvx:not(.dash) .tvx-plan .pl-grid th, .tvx:not(.dash) .tvx-plan .pl-grid td { padding: .25em .45em; }
.tvx:not(.dash) .tvx-plan .pl-name small { display: inline; margin-left: .4em; }
.home-stempel, .home-persoenlich { display: grid; grid-template-columns: minmax(220px, 0.9fr) minmax(260px, 1.15fr) minmax(240px, 1fr); gap: 16px; margin-bottom: 18px; }
@media (max-width: 1100px) { .home-stempel, .home-persoenlich { grid-template-columns: minmax(0, 1fr); } }
.fin-ziel { display: grid; grid-template-columns: minmax(220px, 320px) minmax(0, 1fr); gap: 14px; align-items: end; padding: 12px 0; } .fin-ziel label { display: grid; gap: 4px; font-weight: 600; } .fin-ziel p { margin: 0; }
@media (max-width: 700px) { .fin-ziel { grid-template-columns: minmax(0, 1fr); } }
.tvx-left .tvx-kpi { border-top: 4px solid var(--green); }
/* 2.8 – Diagramme dezenter im esave-Stil */
.chart svg { max-height: 250px; }
.chart .cg { stroke: #EDF0EA; stroke-dasharray: 2 4; }
.chart .cg:first-of-type { stroke: #D6DBD3; stroke-dasharray: none; }
.chart .cy, .chart .cx { font-size: 10.5px; fill: #7C8A85; }
.chart rect { fill-opacity: .9; }
.chart-legend { font-size: 12px; }
.tvx:not(.dash) .tvx-top svg text { font-size: 15px; }
.tvx-row b { white-space: nowrap; }
body.tv .tvx .tvx-plan .pl-grid .pl-name small { display: inline; margin-left: .4em; }
body.tv .tvx .tvx-plan .pl-grid .pl-name b { display: inline; }
.tvx-offen { margin: .6vh 0 0; font-size: 1.35vh; color: var(--muted); line-height: 1.4; } .tvx-offen b { color: var(--dark); font-weight: 600; }
.tvx.dash .tvx-offen { font-size: 13px; }
/* 2.8 – Abwesenheit als Ereignis */
.ev-form form { display: grid; gap: 14px; max-width: 760px; }
.ev-feld { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 6px 14px; align-items: start; }
.ev-l { font-weight: 600; color: var(--green-ink); padding-top: 8px; font-size: 13.5px; }
.ev-feld > :not(.ev-l) { grid-column: 2; }
.ev-personen { border: 1px solid var(--line); border-radius: 8px; padding: 8px; display: grid; gap: 6px; }
.ev-plist { max-height: 190px; overflow: auto; display: grid; gap: 2px; } .ev-plist label { display: flex; gap: 8px; align-items: center; padding: 3px 4px; font-size: 13.5px; } .ev-plist label[hidden] { display: none; }
.ev-datum { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .ev-datum input { width: 170px; }
.ev-wdh, .ev-anr { display: grid; gap: 8px; margin-top: 8px; } .ev-wdh [hidden], .ev-anr [hidden] { display: none !important; }
.ev-wdh label, .ev-anr label { display: grid; gap: 3px; font-size: 13px; } .ev-wt { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; } .ev-wt label { display: flex; gap: 4px; align-items: center; }
.ev-n { width: 80px !important; display: inline-block; } .ev-t { width: 140px; } .ev-inl { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 13px; } .ev-inl input[type=time] { width: 130px; }
.ev-zeitart { display: grid; gap: 6px; } .ev-zeitart select { height: auto; padding: 4px; } .ev-zeitart option { padding: 4px 6px; }
.ev-direkt { display: flex; gap: 8px; align-items: center; }
@media (max-width: 700px) { .ev-feld { grid-template-columns: minmax(0, 1fr); } .ev-feld > :not(.ev-l) { grid-column: 1; } .ev-l { padding-top: 0; } }

/* ── 2.9 MA-Infos ───────────────────────────────────────── */
.mi-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.mi-top p { margin: 0; }
.mi-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.mi-list { display: grid; gap: 12px; }
.mi-side { display: grid; gap: 12px; }
.mi-karte { padding: 14px 18px; border-left: 3px solid transparent; }
.mi-karte.wichtig, .mi-detail.wichtig { border-left-color: #C2410C; }
.mi-karte.neu { border-left-color: var(--green, #8DB72E); }
.mi-h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mi-karte h3 { margin: 6px 0 4px; font-size: 16px; }
.mi-karte h3 a { color: inherit; text-decoration: none; }
.mi-karte h3 a:hover { text-decoration: underline; }
.mi-termin { margin: 2px 0; font-size: 13px; color: var(--green-ink); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mi-termin svg { width: 15px; height: 15px; }
.mi-termin.big { font-size: 15px; margin: 12px 0; }
.mi-text { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.mi-text-voll { margin: 12px 0; line-height: 1.55; white-space: pre-wrap; }
.mi-termine ul li { display: grid; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--line, #E3E7E1); }
.mi-termine ul li:last-child { border-bottom: 0; }
.mi-termine time { font-size: 12px; color: var(--muted); }
.mi-admin summary { cursor: pointer; }
.mi-admin .check { display: block; margin: 4px 0; }
.mi-empf .mi-abt { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; }
.mi-empf .mi-abt.aus { opacity: .45; }
.mi-home { margin: 0 0 18px; }
.mi-home-h { display: flex; justify-content: space-between; align-items: baseline; }
.mi-home-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.mi-home .mi-karte { margin: 0; }
@media (max-width: 900px) { .mi-layout { grid-template-columns: 1fr; } }
.ev-zeitart select[size] { background-image: none; padding-right: 10px; height: auto; }

/* ── 2.10 Übersicht «Team heute» ────────────────────────── */
.th-card { margin-bottom: 18px; }
.th-card .card-h { flex-wrap: wrap; gap: 8px; }
.th-sum { display: flex; gap: 6px; flex-wrap: wrap; }
.th-k { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #F3F4F2; color: var(--muted); }
.th-k i { width: 8px; height: 8px; border-radius: 50%; background: #B5BCB8; }
.th-k.an { background: #E9F5E1; color: #2E6B1F; } .th-k.an i { background: #43A047; }
.th-k.pa { background: #FFF5DB; color: #7A5A00; } .th-k.pa i { background: #E0A100; }
.th-k.gb { background: var(--green-tint); color: var(--green-ink); } .th-k svg { width: 14px; height: 14px; }
.th-hinweis { margin: 0 0 10px; font-size: 13px; color: var(--olive); }
.th-grid { display: grid; grid-template-columns: 1.3fr 1fr .9fr; gap: 22px; }
.th-col { min-width: 0; }
.th-col h4 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--olive); font-weight: 700; }
.th-col h4.th-sub { margin-top: 14px; }
.th-abt { margin-bottom: 8px; }
.th-abt h5 { margin: 0 0 4px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.th-col ul { list-style: none; margin: 0; padding: 0; }
.th-abt ul { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.th-p { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.th-abt .th-p { padding: 2px 10px 2px 2px; border-radius: 999px; background: #F3F4F2; }
.th-col > ul > .th-p { padding: 4px 0; border-bottom: 1px solid var(--line); }
.th-col > ul > .th-p:last-child { border-bottom: 0; }
.th-av { flex: none; width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 10.5px; font-weight: 700; background: #DDE2DA; color: var(--light); }
.th-p.an .th-av { background: #43A047; color: #fff; } .th-p.pause .th-av { background: #E0A100; color: #fff; }
.th-abt .th-p.an { background: #E9F5E1; } .th-abt .th-p.pause { background: #FFF5DB; }
.th-n { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.th-abt .th-n { flex-direction: row; gap: 6px; align-items: baseline; }
.th-n small { font-size: 12px; color: var(--muted); }
.th-plain li { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; padding: 4px 0; font-size: 13.5px; }
.th-plain li svg { width: 15px; height: 15px; color: var(--olive); flex: none; }
.th-plain li.th-heute { background: var(--green-tint); margin: 0 -8px; padding: 6px 8px; border-radius: 8px; }
.th-plain li.th-heute svg { color: var(--green-ink); }
.th-dot { width: 9px; height: 9px; border-radius: 50%; background: #B5BCB8; flex: none; }
.th-fehlt { margin-top: 14px; } .th-fehlt summary { cursor: pointer; list-style: none; } .th-fehlt summary::-webkit-details-marker { display: none; }
.th-fehlt summary h4 { display: inline; } .th-fehlt summary::after { content: ' ▾'; color: var(--muted); font-size: 11px; }
.th-fehlt p { margin: 6px 0 0; }
.th-fuss { margin: 12px 0 0; }
@media (max-width: 1100px) { .th-grid { grid-template-columns: 1fr 1fr; } .th-grid .th-col:first-child { grid-column: 1 / -1; } }
@media (max-width: 640px) { .th-grid { grid-template-columns: 1fr; } }

/* ── 2.11 Menü-Zähler, TV-Rahmen ────────────────────────── */
.nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--green); color: var(--dark); font-size: 11.5px; font-weight: 800; display: inline-grid; place-items: center; }
body.tv-rahmen { margin: 0; background: var(--dark); overflow: hidden; }
.tv-frame { position: fixed; inset: 0; width: 100vw; height: 100vh; border: 0; display: block; background: var(--bg); }
.tv-start { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(9,33,30,.82); z-index: 5; }
.tv-start[hidden] { display: none; }
.tv-start-box { text-align: center; color: #fff; padding: 40px 56px; border-radius: 18px; background: var(--dark); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.tv-start-box img { height: 46px; margin-bottom: 14px; }
.tv-start-box h2 { margin: 0 0 22px; font-size: 26px; }
.tv-start-box .btn { font-size: 18px; padding: 14px 30px; }
.tv-start-box p { margin: 18px 0 0; color: rgba(255,255,255,.75); font-size: 14px; }
.tv-start-box kbd { border: 1px solid rgba(255,255,255,.5); border-radius: 4px; padding: 1px 6px; font-family: inherit; }
.tv-hinweis { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 5; padding: 8px 16px; border-radius: 999px; background: rgba(9,33,30,.78); color: rgba(255,255,255,.88); font-size: 13px; pointer-events: none; }
.tv-hinweis[hidden] { display: none; }
.tv-hinweis kbd { border: 1px solid rgba(255,255,255,.5); border-radius: 4px; padding: 0 5px; font-family: inherit; }
body.tv-maus-weg, body.tv-maus-weg * { cursor: none !important; }

/* 2.11: Übersicht – Zeiterfassung und Kontostand kompakt */
@media (min-width: 900px) {
  .home-stempel, .home-persoenlich { grid-template-columns: minmax(220px, 0.9fr) minmax(260px, 1.15fr) minmax(240px, 1fr); align-items: start; gap: 14px; }
}
@media (max-width: 899px) {
  .home-stempel, .home-persoenlich { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 12px; }
  .home-persoenlich .card, .home-stempel .card { min-width: 0; padding: 14px 16px; }
  .zc-donut { width: min(180px, 100%); height: auto; }
  .home-persoenlich .zc-chart, .home-stempel .zc-chart { max-height: 88px; }
}
.home-stempel .card, .home-persoenlich .card { padding: 14px 18px; }
.home-stempel .card-h, .home-persoenlich .card-h { margin-bottom: 6px; }
.home-stempel .card-h h3, .home-persoenlich .card-h h3 { font-size: 15px; }
.home-stempel .zt-clock, .home-persoenlich .zt-clock { font-size: 20px; }
.home-stempel .zc-status, .home-persoenlich .zc-status { margin: 0 0 8px; font-size: 14px; color: var(--text); }
.home-stempel .zc-actions, .home-persoenlich .zc-actions { justify-content: flex-start; gap: 8px; padding: 0 0 6px; }
.home-stempel .zc-btn, .home-persoenlich .zc-btn { flex-direction: row; min-width: 0; padding: 7px 14px; gap: 8px; font-size: 14px; border-radius: 8px; }
.home-stempel .zc-btn svg, .home-persoenlich .zc-btn svg { width: 18px; height: 18px; stroke-width: 1.9; }
.home-stempel .zc-stempel .small, .home-persoenlich .zc-stempel .small { margin: 4px 0 0; }
.zc-konto.kompakt .zc-chart { width: 100%; height: auto; max-height: 100px; display: block; margin: 2px 0 6px; }
.zc-konto.kompakt .zc-kv { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; }
.zc-konto.kompakt .zc-kv > div { display: flex; gap: 8px; align-items: baseline; border: 0; padding: 0; font-size: 12.5px; }
.zc-konto.kompakt .zc-kv dd { font-size: 13.5px; }
.zc-konto.kompakt > p.small { margin: 6px 0 0; font-size: 12px; }
.auswertung .kv { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px 22px; }
.auswertung dd small { hyphens: auto; overflow-wrap: break-word; }
@media (max-width: 1100px) { .auswertung .kv { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); } }
@media (max-width: 640px) { .auswertung .kv { grid-template-columns: 1fr 1fr; } }
/* Formulare: Beschriftungen einer Zeile gleich hoch, damit Eingabefelder auf einer Linie bleiben (z. B. bei «optional») */
.f-lab { display: block; }
.f-lab > span.muted, .f-lab > small { font-weight: 400; }
.fgrid > .field.check, .fgrid > label.field.check { align-self: start; justify-content: flex-start; }
.fgrid > .field.check > label, .fgrid > label.field.check > label { height: var(--ctl-h, 40px); }
.th-plain li.th-vorbei { opacity: .55; }
/* Legende Kalender: Spalten statt Fliesstext */
.zk-legende { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 16px 32px; padding: 14px 0 18px; border-top: 1px solid var(--line); margin-top: 8px; }
.zk-legende h4 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--olive); }
.zk-legende ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 18px; }
.zk-legende > div:last-child ul { grid-template-columns: 1fr; }
.zk-legende li { display: flex; align-items: center; gap: 8px; font-size: 13px; min-width: 0; }
.zk-legende li .zk-c { flex: none; }
@media (max-width: 900px) { .zk-legende { grid-template-columns: 1fr; } .zk-legende > div:last-child ul { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); } }
.zk-legende li .zk-c { min-width: 28px; text-align: center; justify-content: center; }
.zt-eigen { margin: 0 0 14px; padding: 9px 12px; border-radius: 8px; background: var(--olive-tint); color: #33433F; }
/* Kalender: Umschalter Meine · Team · Alle */
.zk-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; margin-right: 14px; flex: none; }
.zk-switch a { padding: 6px 14px; font-size: 13.5px; font-weight: 600; color: #33433F; text-decoration: none; border-right: 1px solid var(--line); background: #fff; }
.zk-switch a:last-child { border-right: 0; }
.zk-switch a.on { background: var(--dark); color: #fff; }
.zk-switch a:hover:not(.on) { background: var(--green-tint); }
.zk-hinw { margin: 6px 0 0; }
.sb-ul { margin: 2px 0 0; padding-left: 18px; } .sb-ul li { margin: 2px 0; }
.sb-bem { margin: 0 0 14px; padding: 10px 14px; border-radius: 8px; background: #FFF8E1; font-size: 13.5px; } .sb-bem ul { margin: 6px 0 8px; padding-left: 18px; }
.sb-fix { margin: 0; padding: 9px 0; color: #33433F; }
/* 2.13: Wochenplan dezenter – nur Namen leicht betont, Halbtage und Kopf normal */
.pl-grid .pl-name b { font-weight: 600; }
.pl-grid thead th, .pl-grid thead th a { font-weight: 500; }
.pl-grid thead th.today, .pl-grid thead th.today a { font-weight: 600; }
.pl-grid .pl-htl { font-weight: 500; letter-spacing: .03em; }
.pl-grid .pl-ht.da { color: #4F6607; }
.pl-grid .pl-task { font-weight: 500; }
.pl-grid .pl-gh th { font-weight: 600; }
body.tv .pl-grid .pl-name b { font-weight: 600; }
body.tv .pl-grid .pl-htl { font-weight: 500; }
/* Monatsrapport */
.zt-rapport .rp-offen { padding: 10px 0; border-bottom: 1px solid var(--line); }
.zt-rapport .rp-offen:last-of-type { border-bottom: 0; }
.zt-rapport .rp-offen > p { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 8px; }
.rp-sign { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; }
.rp-sign .check { align-self: center; }
.rp-pw { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; } .rp-pw input { width: 220px; }
.rp-bem { margin-top: 8px; } .rp-bem textarea { width: 100%; }
.rp-liste li { display: flex; gap: 10px; align-items: center; padding: 4px 0; flex-wrap: wrap; }
.rp-neu { display: flex; gap: 8px; margin-top: 10px; }
.rp-pend li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--line); }
.rp-antw { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .rp-antw input { min-width: 240px; }
.rp-home { display: flex; align-items: center; gap: 12px; padding: 12px 18px; margin-bottom: 14px; text-decoration: none; color: inherit; border-left: 3px solid var(--green); }
.rp-home svg { width: 22px; height: 22px; color: var(--green-ink); } .rp-home span { display: flex; flex-direction: column; } .rp-home small { color: var(--muted); }
/* 2.14: Dashboard wie TV – obere drei Karten flacher, Hauptteil mit Wochenplan grösser */
.tvx.dash { grid-template-rows: auto auto clamp(170px, 21vh, 220px) minmax(440px, auto) auto; }
.tvx.dash .tvx-top .tvx-card { padding: 10px 14px; border-top-width: 3px; }
.tvx.dash .tvx-top .tvx-h h3 { font-size: 15px; }
.tvx.dash .tvx-top .tvx-sub { margin: 0 0 2px; }
.tvx.dash .tvx-top .tvx-legend { margin: 2px 0 0; }
.tvx.dash .tvx-top svg text { font-size: 13px; }
.tvx.dash .tv-empty { font-size: 13px; margin: 10px 0; }
.tvx.dash .tvx-left .tvx-card, .tvx.dash .tvx-right .tvx-card { padding: 12px 14px; }
@media (max-width: 1100px) { .tvx.dash .tvx-top .tvx-card { min-height: 180px; } }
/* Firmenkalender */
.zk-ft input[name$="_name"] { min-width: 160px; }
.zk-n { width: 90px; }
.zk-ft td { vertical-align: middle; }
.zk-neu { margin-top: 12px; }
.zk-edit { display: inline-block; margin-left: auto; } .zk-edit summary { cursor: pointer; }
.zk-edit-f { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.zk-list li { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.zk-bf { margin-top: 10px; } .zk-bf-f { margin: 10px 0; }
.zk-regeln { grid-column: 1 / -1; }
.zk-firma { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }
.zk-firma .zk-list li { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto auto auto; gap: 10px; align-items: center; }
.zk-firma .zk-list li > .muted.small { white-space: nowrap; text-align: right; }
.zk-einmalig { grid-column: 1 / -1; }
@media (max-width: 640px) { .zk-firma { grid-template-columns: 1fr; } .zk-firma .zk-list li { grid-template-columns: 1fr auto; } }
.zk-firma > * { min-width: 0; }
/* 2.15: Personalplanung – grössere Felder; Zuweisen als Dialog in der Mitte (wird nicht mehr von der Tabelle abgeschnitten) */
.pl-grid:not(.kompakt) .pl-ht { min-height: 34px; padding: 4px 8px; gap: 6px; }
.pl-grid:not(.kompakt) .pl-hts { display: grid; gap: 6px; }
.pl-grid:not(.kompakt) td { padding: 6px; }
.pl-grid:not(.kompakt) .pl-name { padding: 10px; }
.pl-grid:not(.kompakt) .pl-htl { font-size: 12px; min-width: 24px; }
.pl-grid:not(.kompakt) .pl-task { font-size: 13px; padding: 3px 8px; }
.pl-grid:not(.kompakt) .pl-add > summary { width: 28px; height: 28px; font-size: 16px; }
.pl-add[open] > summary::before { content: ''; position: fixed; inset: 0; background: rgba(9,33,30,.35); z-index: 90; cursor: default; }
.pl-add[open] .pl-add-form, .pl-grid td:nth-last-child(-n+2) .pl-add[open] .pl-add-form { position: fixed; z-index: 91; left: 50%; right: auto; top: 50%; transform: translate(-50%, -50%); width: min(440px, calc(100vw - 32px)); padding: 20px 22px; gap: 12px; border-radius: 12px; box-shadow: 0 24px 60px rgba(9,33,30,.3); }
.pl-add-form > b { font-size: 16px; }
.pl-add-form label { font-size: 13px; gap: 4px; color: #33433F; font-weight: 600; } .pl-add-form label .muted { font-weight: 400; }
.pl-add-form input, .pl-add-form select { height: 42px; font-size: 14.5px; width: 100%; }
.pl-add-act { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
/* Präsenz externe Einsätze */
.pr-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; } .pr-top p { margin: 0; max-width: 760px; }
.pr-grid td { vertical-align: top; padding: 6px; }
.pr-ht { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 2px 6px; padding: 4px 6px; border-radius: 6px; margin-bottom: 4px; background: #F6F7F4; }
.pr-ht > span { font-size: 11.5px; font-weight: 600; color: var(--olive); }
.pr-ht select { height: 32px; font-size: 13px; padding: 0 8px; }
.pr-ht small { grid-column: 2; font-size: 11.5px; }
.pr-ht.pr-da { background: #E9F5E1; } .pr-ht.pr-weg { background: #FCE8E6; } .pr-ht.leer { opacity: .6; }
.pr-frei { background: repeating-linear-gradient(135deg, #F6F7F4 0 6px, #fff 6px 12px); }
.pr-det { margin-top: 10px; } .pr-det summary { cursor: pointer; }
.pr-zeilen li { display: grid; grid-template-columns: 110px auto 1fr; gap: 10px; align-items: center; padding: 3px 0; }
.ez-akt { display: flex; gap: 8px; flex-wrap: wrap; }
.pr-home { display: flex; align-items: center; gap: 12px; padding: 12px 18px; margin-bottom: 14px; text-decoration: none; color: inherit; border-left: 3px solid #E0A100; }
.addr-wrap { display: block; width: 100%; } .addr-wrap > input { width: 100%; }
.mail-vorschlaege { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.mail-vorschlag { background: none; border: 0; padding: 4px 0 0; cursor: pointer; text-align: left; color: var(--green-ink); text-decoration: underline; font-size: 12.5px; }
/* Stückzahlen: Jahresdiagramm dezent und flach */
.sz-jahre .pd-svg { width: 100%; height: auto; max-height: 190px; display: block; }
.sz-jahre svg text { font-size: 12px; }
[hidden] { display: none !important; }
.fgrid-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
/* Organisationen */
.org-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 16px; margin-bottom: 16px; }
.org-grid > * { min-width: 0; }
.org-card.inaktiv { opacity: .6; }
.org-h4 { margin: 10px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--olive); }
.org-kl li { padding: 5px 0; border-bottom: 1px solid var(--line); } .org-kl li.inaktiv { opacity: .55; } .org-kl summary { cursor: pointer; }
.org-k { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.3fr auto auto; gap: 6px; margin-top: 8px; align-items: center; }
.org-k input, .org-k select { height: 34px; font-size: 13px; min-width: 0; }
.org-edit { margin-top: 12px; } .org-f { margin-top: 10px; }
@media (max-width: 640px) { .org-grid { grid-template-columns: 1fr; } .org-k { grid-template-columns: 1fr 1fr; } .fgrid-sub { grid-template-columns: 1fr; } }
.org-kl { list-style: none; margin: 0; padding: 0; } .org-kl summary { list-style: none; } .org-kl summary::-webkit-details-marker { display: none; } .org-kl summary::after { content: ' ✎'; color: var(--muted); font-size: 11px; }
/* Vergleich aller Jahre (Bestellungen/Umsatz) – kompakt */
.fin-vgl .chart { margin-bottom: 10px; }
.fin-vgl-t { font-size: 12px; } .fin-vgl-t th, .fin-vgl-t td { padding: 4px 6px; white-space: nowrap; }
.fin-vgl-t thead th { font-size: 11px; }
.fin-vgl-t td.fin-max { background: #E3F1C9; color: #2E5200; font-weight: 600; }
/* Kennzahlen + Fokus Restjahr nebeneinander (wie Umsatz-Dashboard) */
.fin-kz-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.fin-kz-grid > * { min-width: 0; }
.fin-fokus { background: #FFFBEA; border-color: #F1E3B0; }
.fin-fokus ul li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid #EFE6C2; font-size: 13.5px; }
.fin-fokus ul li b { font-size: 15px; }
@media (max-width: 1100px) { .fin-kz-grid { grid-template-columns: 1fr; } }
.fin-kz-grid .fin-table { font-size: 12px; } .fin-kz-grid .fin-table th, .fin-kz-grid .fin-table td { padding-left: 5px; padding-right: 5px; }
.fin-fokus ul li b { white-space: nowrap; }
/* 2.20: Diagramme füllen die Breite bei fester Höhe (kein Leerraum links/rechts, weniger Scrollen) */
.chart-f { display: grid; grid-template-columns: 38px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 6px; max-height: none; }
.chart-f .chart-y { position: relative; grid-row: 1; grid-column: 1; }
.chart-f .chart-area { grid-row: 1; grid-column: 2; position: relative; padding-bottom: 18px; }
.chart-f .chart-area svg { width: 100%; height: 200px; max-height: none; display: block; overflow: visible; }
.chart-f .chart-x { position: absolute; left: 0; right: 0; bottom: 0; height: 16px; }
.chart-f .cx, .chart-f .cy { position: absolute; font-size: 11px; color: #7C8A85; white-space: nowrap; line-height: 1; }
.chart-f .cx { transform: translateX(-50%); top: 4px; }
.chart-f .cy { right: 0; transform: translateY(-50%); }
.chart-f .chart-legend { grid-column: 1 / -1; grid-row: 2; }
.chart-f rect { fill-opacity: .9; }
.kpis.fin-kpis { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
/* 2.20: neue Elemente konsequent im esave-CI (Grün, Dunkelgrün, Olive) */
.fin-fokus { background: var(--olive-tint); border-color: var(--line); }
.fin-fokus ul li { border-bottom-color: #E2E3D6; }
.fin-vgl-t td.fin-max { background: #E3EBCB; color: var(--green-ink); }
.sb-bem { background: var(--olive-tint); }
.pr-home { border-left-color: var(--olive); }
.th-k.an { background: var(--green-tint); color: var(--green-ink); } .th-k.an i { background: #8CC63F; }
.th-k.aus i { background: #5B6B66; } .th-k.alt { background: #F8E8E4; color: #8A3B2E; } .th-k.alt i { background: #C4564A; } .th-k.off i { background: #C3CCC0; }
.th-p.an .th-state { color: #2E6B1F; } .th-state { display: block; font-size: 12px; color: var(--muted); }
.th-foto, .th-av img, .th-foto.lg { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; } .th-foto.lg { width: 72px; height: 72px; }
.zc-i.ausgegangen { background: #5B6B66; } .zc-i.veraltet { background: #C4564A; } .zc-i.offline { background: #C3CCC0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.th-k.pa { background: var(--olive-tint); color: var(--olive); } .th-k.pa i { background: var(--olive); }
.th-p.an .th-av { background: #8CC63F; color: var(--dark); } .th-p.pause .th-av { background: var(--olive); color: #fff; }
.th-abt .th-p.an { background: var(--green-tint); } .th-abt .th-p.pause { background: var(--olive-tint); }
.zc-p.anwesend i, .zc-i.anwesend { background: #8CC63F; } .zc-p.pause i, .zc-i.pause { background: var(--olive); } .zc-p.anwesend { background: var(--green-tint); }
.pr-ht.pr-da { background: var(--green-tint); } .pr-ht.pr-weg { background: #F3E9E7; }
.chart-f .cx, .chart-f .cy { color: var(--muted); }
.mi-karte.wichtig, .mi-detail.wichtig { border-left-color: var(--olive); }
.nav-badge { background: var(--green); color: var(--dark); }
.th-plain li.th-heute { background: var(--green-tint); }
.chip.mi-wichtig { background: var(--dark); color: #fff; }

/* 2.21 Stellenprozente im Organigramm (esave CI) */
.org-quote { font-size: 11.5px; color: #16413B; }
.org-quote b { font-weight: 700; color: #4F6607; }
.org-quote.is-ueber, .org-warn { color: #757A45; }
.org-box.is-teil { border-left-style: dashed; }
.org-box.lead .org-quote, .org-spitze .org-quote, .org-stab .org-quote { color: #fff; }
/* 2.21 Rollenrechte bearbeitbar, Stellenplan/Lohn in den Kennzahlen */
.rm-table th:first-child { min-width: 230px; }
.rm-table td { min-width: 150px; }
.rm-table select { width: 100%; min-width: 140px; }
.rm-table select.rr-set { background-color: #E3EBCB; border-color: #8CC63F; }
.zt-kpirow + .card .table td.num, .card .table td.num, .card .table th.num { white-space: nowrap; }
.table tr.sum td { border-top: 2px solid #16413B; }
.sp-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; align-items: start; margin-bottom: 16px; }
@media (max-width: 1200px) { .sp-grid { grid-template-columns: minmax(0, 1fr); } }
.table td.sp-vak { color: #4F6607; font-weight: 700; }

/* Login: Passwort merken + Face ID */
.auth-box label.check.remember { display: flex; align-items: center; gap: 10px; flex-direction: row; font-weight: 500; cursor: pointer; }
.auth-box .passkey-login { margin-top: 14px; display: grid; gap: 10px; }
.auth-box .passkey-login[hidden] { display: none; }
.auth-box .or { display: flex; align-items: center; gap: 10px; color: var(--muted, #6b7a78); font-size: 13px; }
.auth-box .or::before, .auth-box .or::after { content: ""; flex: 1; border-top: 1px solid #DDE3E1; }

/* Lesbarkeit mit bestehenden Markenfarben, gemessen 08.11.2026.
   Olive #757A45 auf Fläche #F4F6F2 = 4.17:1, unter 4.5:1 für normale Schrift.
   Kleine Status- und Bereichstitel daher in --text #09211E (15.47:1) oder --muted #5A6864 (5.37:1).
   Olive bleibt für Flächen und Icons neben dem Wort. Weiss auf Limette #97BF0D = 2.15:1;
   Primärbuttons bleiben --dark auf --green (7.83:1). */
.nav-group { color: var(--bg); font-size: 12px; letter-spacing: .06em; }
.th-col h4, .th-hinweis, .th-k.pa { color: var(--text); }
.th-k { font-size: 14px; }
.th-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.th-row { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.th-row .th-av, .th-row .th-av img { width: 32px; height: 32px; font-size: 12px; }
.th-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.th-name { font-size: 15px; color: var(--text); }
.th-state { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--text); }
.th-state .ic { width: 16px; height: 16px; }
.th-time { font-size: 14px; color: var(--muted); }
.th-row.alt .th-state { color: var(--danger); }
.th-grid.nur-status { grid-template-columns: minmax(0, 1fr); }
.home-aktionen { margin: 0 0 16px; }
.art-liste { display: grid; gap: 6px; max-height: 320px; overflow: auto; }
.art-row { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); width: 100%; text-align: left; font: inherit; cursor: pointer; }
.art-row .art-name { font-size: 16px; font-weight: 700; }
.art-row .art-kurz { margin-left: auto; font-size: 14px; color: var(--muted); }
.art-row .art-tick { width: 1.2em; color: var(--green-ink); font-weight: 700; visibility: hidden; }
.art-row.is-on { border-color: var(--light); background: var(--green-tint); }
.art-row.is-on .art-tick { visibility: visible; }
.art-row input { width: 22px; height: 22px; flex: none; }
.ev-zahl { font-size: 18px; font-weight: 700; color: var(--text); margin: 0 0 8px; }
.feld-fehler { color: var(--danger); font-size: 14px; margin: 4px 0 0; }
.ev-direkt-wahl { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 12px 0; }
.ev-anr-wahl, .ev-kredit { display: grid; gap: 8px; margin: 8px 0; }
.abs-uebersicht { border: 0; border-radius: 14px; padding: 22px; max-width: 560px; color: var(--text); }
.abs-uebersicht::backdrop { background: rgba(9, 33, 30, .45); }
.abs-dl { display: grid; gap: 8px; margin: 12px 0; }
.abs-dl div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px; }
.abs-dl dt { color: var(--muted); }
.basis-tabs { display: none; }
@media (max-width: 860px) {
  .basis-tabs { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--surface); border-top: 1px solid var(--line); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); gap: 4px; }
  .basis-tabs a, .basis-tabs label { flex: 1; min-height: 44px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 12px; font-weight: 700; color: var(--text); text-decoration: none; line-height: 1.2; }
  .basis-tabs a.on { color: var(--green-ink); }
  .content { padding-bottom: 88px; }
}

/* 2.36 Anmerkungen 09.11.2026: Geräteplan-Formular – Beschriftung als ein Element, Eingabefelder einer Zeile bündig */
.gp-form .gp-fields label { align-content: end; }
.gp-form .gp-fields .gp-lbl { display: block; }
.gp-form .gp-fields .gp-lbl small { display: inline; }
.gp-edit-hint { margin: 0; }
.gp-slist li { flex-wrap: wrap; }
.gp-sedit { flex-basis: 100%; margin: 2px 0 8px; }
.gp-sedit > summary { cursor: pointer; color: var(--green-ink); font-size: 12px; list-style: none; }
.gp-sedit > summary::-webkit-details-marker { display: none; }
.gp-sform { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
.gp-sform label { display: grid; gap: 2px; font-size: 12px; }
.gp-sform input, .gp-sform select { height: 30px; font-size: 12.5px; min-width: 0; }
.gp-sform .gp-wide { grid-column: 1 / -1; }
.vg-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
.vg-pick label { display: grid; gap: 2px; font-size: 12px; }
.vg-pick select { min-width: 0; }
@media (max-width: 600px) { .vg-pick, .gp-sform { grid-template-columns: 1fr; } }

/* 2.36 Produktmanagement */
.pm-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.pm-nav a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 650; font-size: 13px; }
.pm-nav a.on { background: var(--dark); color: #fff; border-color: var(--dark); }
.pm-status { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.pm-rot { background: #FBEAE8; color: #9B1C1C; }
.pm-gelb { background: #F8E7B0; color: #09211E; }
.pm-gruen { background: #E7F2C2; color: #16413B; }
.pm-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 14px; }
@media (max-width: 900px) { .pm-grid { grid-template-columns: 1fr; } }
.pm-diff { font-size: 13px; }
.pm-diff del { color: #9B1C1C; }
.pm-diff ins { color: #16413B; text-decoration: none; font-weight: 700; }

/* ── 2.37 (09.11.2026): Monatsliste, Ferienvorschau, Wer ist da?, Info-Popups, Regelhinweise ── */
.zt-table tbody td { vertical-align: middle; height: 50px; }
.zt-table tbody td > * { vertical-align: middle; }
@media (max-width: 560px) { .zt-table tbody td { height: 44px; } }
/* Info-Popup: Hover, Tastaturfokus und Tippen (app.js setzt .open für Touch) */
.tip { position: relative; display: inline-flex; vertical-align: middle; }
.tip-btn { border: 0; background: none; padding: 0 2px; margin: 0; font: inherit; font-size: 14px; line-height: 1; color: var(--olive); cursor: help; border-radius: 50%; min-width: 22px; min-height: 22px; }
.tip-btn:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.tip-box { display: none; position: absolute; z-index: 40; left: 50%; top: calc(100% + 6px); transform: translateX(-50%); width: max-content; max-width: min(280px, 80vw); padding: 8px 10px; border-radius: 8px; background: #171E1C; color: #fff; font-size: 12.5px; font-weight: 400; line-height: 1.4; text-transform: none; letter-spacing: 0; text-align: left; box-shadow: 0 6px 18px rgba(0,0,0,.18); white-space: normal; }
.tip:hover .tip-box, .tip:focus-within .tip-box, .tip.open .tip-box { display: block; }
@media (hover: none) { .tip:focus-within:not(.open) .tip-box, .tip:hover:not(.open) .tip-box { display: none; } }
.zc-fer-kv .tip-box { left: auto; right: 0; transform: none; }
/* Ferienvorschau: Ring links, Text rechts, Label und Zahl in sauberen Spalten, linksbündig */
.zc-ferien-body { flex-wrap: nowrap; align-items: center; justify-content: flex-start; gap: 14px; min-width: 0; }
.zc-ferien-body .zc-donut { width: clamp(104px, 38%, 170px); height: auto; flex: 0 0 auto; }
.zc-fer-kv { list-style: none; margin: 0; padding: 0; min-width: 0; flex: 0 1 auto; display: grid; grid-template-columns: max-content minmax(1.6em, max-content) 22px; column-gap: 8px; row-gap: 6px; align-items: center; justify-content: start; font-size: 14px; }
.zc-fer-kv li { display: contents; }
.zc-fer-l { text-align: left; font-weight: 600; color: var(--dark); }
.zc-fer-v { text-align: left; font-variant-numeric: tabular-nums; }
@media (max-width: 420px) { .zc-ferien-body { flex-wrap: wrap; } .zc-ferien-body .zc-donut { width: 140px; } }
/* Wer ist da?: Punkt ohne Ring/Schein, eingestempelt leuchtend grün; Abwesenheit als kurzer Text */
.zc-p i, .zc-i { box-shadow: none; }
.zc-p.anwesend i, .zc-i.anwesend { background: #34C759; box-shadow: none; }
.zc-p.abwesend i, .zc-i.abwesend { background: #74C0E3; }
.zc-p small.zc-abw { color: var(--muted); font-size: 12px; }
.zc-team .card-h h3 { display: inline-flex; align-items: center; gap: 4px; }
.zc-leg-tip { display: flex; flex-direction: column; gap: 4px; }
.zc-leg-tip span { display: inline-flex; align-items: center; gap: 6px; }
.zc-leg-tip .zc-i.offline { background: #C3CCC0; }
/* Regelhinweise */
.rh-list { list-style: none; margin: 0; padding: 0; } .rh-list > li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.rh-list > li:last-child { border-bottom: 0; }
.rh-list .rh-kopf { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.rh-quitt { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-top: 6px; }
.rh-quitt .field { margin: 0; } .rh-quitt .field.grow { flex: 1 1 240px; }
.rh-live { border-left: 4px solid var(--danger); }
.fr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.fr-grid fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 0; }
.fr-grid legend { font-weight: 700; padding: 0 4px; }
.fr-td { columns: 2 180px; margin: 6px 0 0; padding: 0; list-style: none; } .fr-td li { break-inside: avoid; }
.fr-grid .w-num { width: 5.5em; display: inline-block; margin: 0 4px; }

/* 2.38-Kandidat: eingeschränkte Einsatzfähigkeit (Teil-Arbeitsunfähigkeit) in der Personalplanung */
.pl-eing{display:block;margin-top:4px;padding:2px 6px;border-radius:6px;background:#FFF4D6;color:#7A5600;font-size:11px;line-height:1.3;white-space:normal}

/* 2.40-Kandidat – Wochenplan Dashboard/TV: Name und Zusatz bleiben immer im Feld (zwei Zeilen, kein Umbruch, … bei Überlänge) */
.pl-grid.kompakt th.pl-name-k { max-width: 1px; overflow: hidden; }
.pl-grid.kompakt .pl-name-k b, .pl-grid.kompakt .pl-name-k small,
.tvx:not(.dash) .tvx-plan .pl-grid .pl-name-k small, body.tv .tvx .tvx-plan .pl-grid .pl-name-k small,
body.tv .tvx .tvx-plan .pl-grid .pl-name-k b { display: block; margin-left: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pl-grid.kompakt .pl-name-k small { font-size: .78em; color: var(--muted); font-weight: 400; line-height: 1.25; }

/* 2.41 Firmenanzeige und Firmenumschalter (nur bei mehreren Firmen) */
.sidebar .firma{padding:10px 16px 14px;border-top:1px solid rgba(255,255,255,.08);display:flex;flex-direction:column;gap:4px}
.sidebar .firma small{opacity:.7;text-transform:uppercase;letter-spacing:.04em;font-size:11px}
.sidebar .firma b{color:#fff}
.sidebar .firma .btn.link{color:#8CC63F;padding:0;text-align:left}

/* 2.42-Kandidat – Wochenplan Dashboard/TV: zweite Zeile (Pensum, Beschränkung, «bis») immer vollständig sichtbar, kleiner; Umbruch nur zwischen den Teilen, kein «…». Name (Zeile 1) bleibt einzeilig mit «…». */
.pl-grid.kompakt .pl-name-k small.pl-z2,
.tvx:not(.dash) .tvx-plan .pl-grid .pl-name-k small.pl-z2,
body.tv .tvx .tvx-plan .pl-grid .pl-name-k small.pl-z2 { display: block; margin-left: 0; white-space: normal; overflow: visible; text-overflow: clip; max-width: 100%; font-size: .7em; line-height: 1.25; overflow-wrap: normal; word-break: normal; }
.pl-name-k small.pl-z2 .pl-seg { white-space: nowrap; }
/* 2.49: Name und Zusatz bleiben im Feld; zu lange zweite Zeile mit «…» kürzen (vollständiger Text im title). */
.pl-grid.kompakt .pl-name-k small.pl-z2,
.tvx:not(.dash) .tvx-plan .pl-grid .pl-name-k small.pl-z2,
body.tv .tvx .tvx-plan .pl-grid .pl-name-k small.pl-z2 { display: block; margin-left: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; font-size: .7em; line-height: 1.25; }
/* 2.44: Kontostand-Karte mit einem Wert (Überstunden/Minusstunden) */
.zc-konto-244 .zc-kontostand dd { font-size: 22px; }
.zc-konto-244 .zc-kontostand dt { font-size: 13px; color: var(--ink, inherit); }
.zc-konto-244 .zc-woche dd small { font-weight: 400; }
.zc-konto-244.kompakt .zc-kontostand dd { font-size: 15px; }

/* ── 2.50: Dokumente erstellen (Verträge, Reglemente, Kundendokumente) und Tabellen im Text ── */
.dok-text p { font-size: 15.5px; line-height: 1.55; margin: 0 0 10px; }
.dok-text .dok-ul { margin: 0 0 10px; padding-left: 22px; }
.dok-text .dok-ul li { font-size: 15.5px; line-height: 1.5; margin: 2px 0; }
.dok-tab-wrap { overflow-x: auto; margin: 6px 0 18px; }
.dok-tab-titel { font-weight: 700; margin: 0 0 6px !important; }
.dok-tab { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.4; background: #fff; }
.dok-tab th, .dok-tab td { border: 1px solid #D5DCD2; padding: 8px 10px; text-align: left; vertical-align: top; }
.dok-tab thead th { background: var(--an-bg, #16201C); color: #fff; font-weight: 700; border-color: var(--an-bg, #16201C); }
.dok-tab tbody tr:nth-child(even) td { background: #F5F7F2; }
.dok-tab tbody th { background: #EEF5DA; font-weight: 700; }
.an-text .dok-tab-wrap, .pz-desc .dok-tab-wrap { margin-top: 4px; }
.dok-pages { padding-bottom: 0; }
.dok-brief { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 34px; position: relative; }
.dok-logo { width: 150px; }
.dok-abs { font-style: normal; font-size: 12.5px; line-height: 1.45; color: var(--muted, #5A6864); text-align: left; min-width: 190px; }
.dok-empf { font-style: normal; font-size: 15px; line-height: 1.45; margin: 0 0 28px; }
.dok-ort { margin: 0 0 22px; font-size: 15px; }
.dok-titel { font-size: 26px; line-height: 1.2; margin: 0 0 4px; font-weight: 700; position: relative; }
.dok-untertitel { margin: 0 0 22px; font-size: 16px; color: var(--green-ink, #4F7A1C); }
.dok-einl { margin-bottom: 18px; }
.dok-abschnitt { margin: 0 0 18px; break-inside: avoid-page; }
.dok-abschnitt h2 { font-size: 17px; font-weight: 700; margin: 0 0 6px; display: flex; gap: 0; align-items: baseline; }
.dok-nr { display: inline-block; min-width: 46px; color: var(--an-bg, #16201C); }
.dok-text.eingerueckt { padding-left: 46px; }
.dok-umbruch { border-top: 1px dashed var(--line-strong, #C9D0C5); margin: 22px 0; }
.dok-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; }
.dok-hinweis p { margin: 0; }
.dok-neu { position: relative; }
.dok-neu > summary { list-style: none; cursor: pointer; }
.dok-neu > summary::-webkit-details-marker { display: none; }
.dok-neu-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 290px; background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: 0 12px 30px rgba(9,33,30,.16); display: flex; flex-direction: column; }
.dok-neu-menu a { padding: 9px 12px; border-radius: 8px; text-decoration: none; color: inherit; }
.dok-neu-menu a:hover { background: var(--green-tint, #EEF5DA); }
/* Editor */
.tab-tool { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 6px; font-weight: 400; font-size: 13px; }
.tab-tool label, .dok-add-tab label { display: inline-flex; gap: 4px; align-items: center; font-weight: 400; font-size: 13px; }
.tab-tool input[type=number], .dok-add-tab input[type=number] { width: 62px; }
.dok-bloecke { display: grid; gap: 12px; margin-bottom: 12px; }
.dok-blk-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.dok-blk-art { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--green-ink, #4F7A1C); }
.dok-blk-titel { width: 100%; font-weight: 600; margin-bottom: 8px; box-sizing: border-box; }
.dok-blk textarea { width: 100%; box-sizing: border-box; }
.dok-blk-umbruch { background: #F7F8F5; }
.dok-tab-opt { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-bottom: 8px; }
.dok-tab-akt { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.dok-grid-wrap { overflow-x: auto; }
.dok-grid { border-collapse: collapse; width: 100%; }
.dok-grid td { border: 1px solid var(--line, #DCE2D9); padding: 0; min-width: 110px; }
.dok-grid td textarea { border: 0; border-radius: 0; min-height: 44px; resize: vertical; font-size: 13.5px; padding: 6px 8px; }
.dok-grid tr:first-child td textarea { font-weight: 600; background: #F5F7F2; }
.dok-add { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.dok-add-tab { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 4px 10px 4px 4px; border: 1px solid var(--line); border-radius: 10px; }
@media (max-width: 820px) {
  .dok-brief { flex-direction: column; }
  .dok-text.eingerueckt { padding-left: 0; }
  .dok-nr { min-width: 34px; }
}
@media print {
  @page { size: A4; margin: 16mm 16mm 18mm; }
  .dok-doc { border-radius: 0; box-shadow: none; max-width: none; margin: 0; }
  .dok-doc .an-cover { min-height: 250mm; break-after: page; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .dok-doc .an-pages { padding: 0; }
  .dok-doc .an-pages::before { display: none; }
  .dok-umbruch { border: 0; margin: 0; break-after: page; }
  .dok-tab thead th, .dok-tab tbody th, .dok-tab tbody tr:nth-child(even) td, .dok-foot { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .dok-tab tr { break-inside: avoid; }
  .dok-foot { margin: 24px 0 0; }
}

/* 2.51: Dokumente erstellen – Auswahl «Neu erstellen», Vorlagen, fertige Dokumente */
.dok-neu-wahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 4px 0 10px; }
.dok-neu-k { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: inherit; background: var(--surface); transition: box-shadow .15s, border-color .15s; }
.dok-neu-k:hover, .dok-neu-k:focus-visible { border-color: var(--light); box-shadow: 0 6px 18px rgba(9,33,30,.10); }
.dok-neu-k .ic { flex: 0 0 auto; margin-top: 2px; }
.dok-neu-k span { display: flex; flex-direction: column; min-width: 0; }
.dok-neu-k small { color: var(--muted); }
.dok-fertig > summary { cursor: pointer; padding: 14px 22px; }
.dok-fertig .pz-list { border-top: 1px solid var(--line); }

/* 2.52: Arbeitstage VM / NM – eingeplant · erlaubt */
.pl-htab .pl-ht-pen { white-space: nowrap; }
.pl-htab .pl-ht-max { color: var(--muted, #5b6b69); font-size: .8em; }
.pl-htab tr.pl-over th, .pl-htab tr.pl-over td { background: rgba(200, 40, 40, .08); }
.pl-htab tr.pl-over [data-ht-prozent] { color: #b3261e; font-weight: 700; }
.pl-htab .pl-ht-warn { color: #b3261e; font-weight: 600; font-size: .8em; }
.pl-ht-regel { max-width: 980px; }
[data-ht-warn][hidden], [data-ht-msg][hidden] { display: none !important; }
/* 2.55: Rolle und Rechte dieser Person – manuelle Anpassungen sichtbar */
.badge.pr-badge { display: inline-block; height: auto; line-height: 1.5; border-radius: 10px; font-size: 11px; font-weight: 600; padding: 0 8px; background: #E3EBCB; color: #3d5a12; border: 1px solid #8CC63F; }
.pr-table select { min-width: 150px; }
.pr-table select.rr-set { background-color: #E3EBCB; border-color: #8CC63F; font-weight: 600; }
.pr-table tr.pr-man th { box-shadow: inset 3px 0 0 #8CC63F; }
.pr-table .badge.muted { display: inline-block; height: auto; font-weight: 500; font-size: 11px; background: transparent; color: var(--muted); padding: 0 4px; }

/* ── 2.56: Unterschriften in Verträgen (Kunde links, Firma rechts; 1 oder 2 je Seite) und A4 für alle Dokumente ── */
.dok-unterschriften { display: grid; grid-template-columns: 1fr 1fr; gap: 14mm; margin: 34px 0 10px; break-inside: avoid; page-break-inside: avoid; }
.dok-us-label { font-weight: 700; font-size: 15px; margin: 0 0 4px; }
.dok-us-feld { display: flex; flex-direction: column; margin-top: 34px; }
.dok-us-linie { display: block; border-bottom: 1px solid #09211E; height: 0; }
.dok-us-feld small { font-size: 12.5px; color: var(--muted, #5A6864); margin-top: 4px; }
.dok-us-edit { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.dok-us-edit label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.dok-us-edit input { width: 100%; box-sizing: border-box; }
/* Bildschirm: Dokument in A4-Breite (210 mm), wie es gedruckt wird */
.dok-doc { max-width: 210mm; }
@media (max-width: 720px) {
  .dok-unterschriften { grid-template-columns: 1fr 1fr; gap: 18px; }
  .dok-us-edit { grid-template-columns: 1fr; }
}
@media print {
  @page { size: A4 portrait; margin: 16mm 16mm 18mm; }
  .basis-tabs, .nav-toggle { display: none !important; }
  body:has(.dok-doc, .an-doc, .pz-doc-card) :is(.topbar, .flash, .sidebar, .menu-btn) { display: none !important; }
  body:has(.dok-doc, .an-doc, .pz-doc-card), body:has(.dok-doc, .an-doc, .pz-doc-card) :is(.main, .content) { background: #fff !important; min-height: 0 !important; }
  body:has(.dok-doc, .an-doc, .pz-doc-card) :is(.main, .content) { margin: 0 !important; padding: 0 !important; max-width: none !important; }
  .dok-doc, .an-doc, .pz-doc-card { width: auto !important; max-width: none !important; }
  .dok-unterschriften { gap: 14mm; margin-top: 12mm; }
  .dok-us-linie { border-bottom-color: #000; }
}

/* 2.60: abgemachte Zeiten je Tag */
.ez-zt { flex-basis: 100%; } .ez-zt summary { cursor: pointer; font-weight: 600; margin: 4px 0 8px; } .ez-zt-tab th, .ez-zt-tab td { white-space: nowrap; } .ez-zt-tab .ez-zrow input { width: 110px; }
/* 2.61 Externe je Woche (effektive Einteilung pro Woche) */
.pl-wotab td.c { position: relative; }
.pl-wotab td.pl-wo-diff { background: #FFF4CC; }
.pl-wotab td.pl-off { background: #F1F2F0; }
.pl-wotab .pl-wo-std { position: absolute; top: 2px; right: 4px; font-style: normal; font-size: 10px; color: #7E8A85; line-height: 1; }
.pl-wotab tr.pl-wo-angepasst th.pl-name b::after { content: ' ✎'; color: #B07A00; font-weight: normal; }
.pl-wotab td .btn.sm { margin-top: 4px; }
.pl-name small.pl-woche { color: #8A5A00; font-weight: 600; }

/* 2.62: spezielle Zeiten je Tag in Personalplanung › Arbeitstage VM / NM (Integration, fixe MA) */
.pl-htab tr.pl-ht-zt td { padding: 0 12px 10px; border-top: 0; background: transparent; }
.pl-htab tr.pl-ht-zt summary { cursor: pointer; font-size: 12.5px; color: #33433F; padding: 4px 0; }
.pl-htab tr.pl-ht-zt .ez-zt-tab { max-width: 560px; margin: 6px 0; }
.pl-htab tr.pl-ht-zt .ez-zt-tab input[type=time] { width: 7.2em; }
.pl-ht-nz { font-size: 11.5px; }
.mp-zeit { font-weight: 600; font-size: 12.5px; }
/* 2.63 (Mail S. Kühner 11.11.2026): «Gültig ab» für spezielle Zeiten / Zeiten je Tag */
.pl-ht-abfeld { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: .4rem 0; font-size: .9rem; }
.pl-ht-abfeld input[type=date] { max-width: 11rem; }
.pl-ht-ab { font-weight: normal; font-size: .9em; }
.ez-zt-ab { margin: .5rem 0; max-width: 32rem; }

/* 2.64 Abschlussbericht / Standortgespräch Integration */
.eb-tab { width: 100%; border-collapse: collapse; font-size: 14px; }
.eb-tab th, .eb-tab td { padding: 6px 8px; border-bottom: 1px solid var(--line, #DCE2D9); text-align: center; }
.eb-tab th[scope="row"] { text-align: left; font-weight: 400; }
.eb-tab tr.eb-g th { background: #F4F6F2; font-weight: 700; text-align: center; }
.eb-tab tr.eb-g th:first-child { text-align: left; border-left: 3px solid var(--green, #97BF0D); }
.eb-tab td { width: 56px; }
.eb-r { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.eb-r span { font-size: 12px; color: var(--muted); }
.eb-r input:checked + span { color: var(--dark); font-weight: 700; }
.eb-leer span { opacity: .6; }
.ez-berichte .bw-files li { gap: 10px; }
/* 2.66 (Mail S. Kühner 11.11.2026): Cockpit-Diagramme oben füllen die Karte (Grösse kommt nur von der Karte, nicht vom SVG) */
.tvx-top .tvx-card > .pd-svg { flex: 1 1 0; height: auto; min-height: 60px; width: 100%; display: block; }
.tvx-top .tvx-card > .pd-svg text { font-variant-numeric: tabular-nums; }
/* 2.66: schmale Bildschirme – obere Karten in eigener, freier Zeilenhöhe (vorher überdeckte der Wochenplan die Forecast-Karte) */
@media (max-width: 1100px) {
  .tvx.dash { grid-template-rows: auto; }
  .tvx.dash .tvx-top .tvx-card { min-height: 230px; }
}
/* 2.68: Entwicklungs- und Produktionskosten */
.pk-titel { margin: 0 0 12px; font-size: 20px; }
.pk-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 0 0 14px; }
.pk-kpis .card { display: flex; flex-direction: column; gap: 4px; }
.pk-kpis b { font-size: 22px; }
.pk-table td.num, .pk-table th.num, .pk-log td { white-space: nowrap; }
.pk-storno { opacity: .55; }
.pk-storno td:not(:last-child) { text-decoration: line-through; }
.pk-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0; }
.pk-bereich { padding: 8px 0; border-bottom: 1px solid var(--line); }
.pk-bars li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; margin: 0 0 8px; }
.pk-bars li i { grid-column: 1 / -1; display: block; height: 6px; border-radius: 3px; background: var(--green, #97BF0D); }
.pk-vert label { display: inline-flex; align-items: center; gap: 6px; margin: 4px 14px 4px 0; }
.pk-vorschau { padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.pk-filter { margin-bottom: 14px; }

/* 2.69: «Wer macht was» – alle Personen sichtbar; Entsorgung (Abfuhr) kompakter */
.tvx-auf .tvx-list b { min-width: 0; flex: 0 0 auto; max-width: 46%; }
.tvx-auf .tvx-list span { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.tvx-abfuhr { padding-top: .7vh; padding-bottom: .7vh; }
.tvx-abfuhr h3 { font-size: 1.6vh; margin: .1vh 0; }
.tvx-abfuhr .tvx-list { margin-top: .1vh; }
.tvx-abfuhr .tvx-list li { flex-direction: row; justify-content: space-between; gap: .5vw; padding: .2vh 0; font-size: 1.2vh; }
.tvx-abfuhr .tvx-list b { font-size: 1.25vh; }
.tvx-abfuhr .tvx-small { font-size: 1.1vh; margin: .1vh 0; }
.tvx-abfuhr.alarm .tvx-alarm { font-size: 2.2vh !important; }
.tvx.dash .tvx-auf { flex: 1 0 auto; overflow: visible; }
.tvx.dash .tvx-auf .tvx-list li { padding: 4px 0; font-size: 13px; }
.tvx.dash .tvx-right .tvx-abfuhr { padding: 8px 12px; }
.tvx.dash .tvx-abfuhr .tvx-card h3, .tvx.dash .tvx-abfuhr h3 { font-size: 14px; }
.tvx.dash .tvx-abfuhr .tvx-list li { font-size: 12px; padding: 2px 0; }
.tvx.dash .tvx-abfuhr .tvx-list b { font-size: 12px; }
.tvx.dash .tvx-abfuhr .tvx-small, .tvx.dash .tvx-abfuhr .tvx-eye { font-size: 11px; }
.tvx.dash .tvx-abfuhr.alarm .tvx-alarm { font-size: 18px !important; }

/* 2.69: Abwesenheit eintragen – Datum nur einmal (TT.MM.JJJJ) mit Kalender-Knopf */
.ev-datum .ev-dt { display: inline-flex; align-items: center; gap: 6px; }
.ev-datum .ev-dt input[data-ch] { width: 130px; }
.ev-cal { position: relative; display: inline-flex; }
.ev-cal-btn { border: 1px solid var(--line); background: #fff; border-radius: 8px; width: 38px; height: 36px; cursor: pointer; font-size: 16px; line-height: 1; padding: 0; }
.ev-cal-btn:hover { background: var(--olive-tint, #f4f5ec); }
.ev-datum input.ev-cal-pick { position: absolute; left: 0; bottom: 0; width: 38px; height: 1px; opacity: 0; pointer-events: none; border: 0; padding: 0; }

/* 2.70: Integrationsbericht – Unterschriften/Felder je nach Art */
[data-eb-sig][hidden], [data-eb-abschluss][hidden] { display: none !important; }

/* 2.79 Regeln & Arten: Farbe mit Kürzel-Vorschau */
.zt-farbe { display: inline-flex; align-items: center; gap: 6px; }

/* 2.79: Termine / Firmenkalender, Kalender verbinden */
.tm-sub { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; }
.tm-sub a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-size: 14px; }
.tm-sub a.on { background: var(--dark); border-color: var(--dark); color: #fff; }
.tm-kopf { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tm-kopf h2 { margin: 0 6px; font-size: 20px; min-width: 150px; text-align: center; }
.tm-filter { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 12px; }
.tm-chk { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.tm-agenda { padding: 6px 0; }
.tm-tag { display: grid; grid-template-columns: 130px 1fr; gap: 10px; padding: 10px 18px; border-top: 1px solid var(--line); }
.tm-tag:first-child { border-top: 0; }
.tm-tag.heute .tm-datum { color: var(--green-ink); font-weight: 700; }
.tm-datum { font-size: 14px; color: var(--muted); padding-top: 4px; }
.tm-eintraege { display: flex; flex-direction: column; gap: 6px; }
.tm-termin { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: baseline; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); border-left: 4px solid var(--c, #78909C); text-decoration: none; color: inherit; }
.tm-termin:hover { border-color: var(--c, #78909C); }
.tm-termin small { grid-column: 2; color: var(--muted); }
.tm-art { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: #78909C; color: #fff; white-space: nowrap; }
.tm-abs { font-size: 13px; padding: 3px 9px; border-radius: 6px; background: var(--surface-2, #f3f4f1); border-left: 3px solid var(--c, #B0B7AF); align-self: flex-start; }
.tm-abs.beantragt { border-left-style: dashed; color: var(--muted); }
.tm-zeiten { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tm-zuordnung { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.tm-loeschen { margin-top: 10px; }
.tm-link { word-break: break-all; }
.tm-aend { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.tm-aend > li { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.tm-aend > li.verworfen, .tm-aend > li.eingereicht { opacity: .7; }
.tm-meld { margin: 6px 0; padding-left: 18px; font-size: 13px; }
.tm-meld li.fehler { color: var(--danger); }
@media (max-width: 640px) { .tm-tag { grid-template-columns: 1fr; gap: 4px; } .tm-zeiten { grid-template-columns: 1fr; } }

/* 2.80: Support › Systemstatus (nur Administration) */
.ss-tabs { margin-bottom: 14px; }
.ss-kopf { display: flex; flex-direction: column; gap: 8px; }
.ss-kopf-r { display: flex; align-items: flex-start; gap: 12px; }
.ss-kopf h2 { margin: 0; font-size: 1.25rem; }
.ss-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 12px 0 20px; }
.ss-grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.ss-kpi { margin: 0; padding: 14px 16px; }
.ss-kpi-h { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.ss-kpi-h h3 { margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.ss-kpi-w { margin: 0; font-size: 1.45rem; font-weight: 700; letter-spacing: -.02em; }
.ss-hint { margin: 6px 0 0; max-width: 70ch; }
.ss-ampel { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: 0 0 auto; box-shadow: 0 0 0 3px rgba(0,0,0,.04); }
.ss-ampel-gruen { background: #5A9A2E; }
.ss-ampel-gelb { background: #C47B17; }
.ss-ampel-rot { background: #B42318; }
.ss-ampel-unbekannt { background: #9AA3A0; }
.ss-ampel-l { margin-left: 8px; }
.ss-chart { margin-top: 8px; }
.ss-leg { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.ss-tab { width: 100%; border-collapse: collapse; font-size: 14px; }
.ss-tab th, .ss-tab td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.ss-tab th { color: var(--muted); font-weight: 600; font-size: 12px; }
.ss-dl { list-style: none; margin: 0; padding: 0; }
.ss-dl li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ss-dl span { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 640px) { .ss-kpi-w { font-size: 1.25rem; } }

/* 2.81: Chat je Firma und Dateiablage */
.chat-grid{display:grid;grid-template-columns:minmax(220px,300px) 1fr;gap:16px;align-items:start}
@media (max-width:820px){.chat-grid{grid-template-columns:1fr}}
.chat-seite{padding:10px}
.chat-liste{display:flex;flex-direction:column;gap:2px}
.chat-k{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px 10px;border-radius:8px;text-decoration:none;color:inherit}
.chat-k span{display:flex;flex-direction:column;min-width:0}
.chat-k small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-k:hover,.chat-k.active{background:rgba(140,198,63,.14)}
.chat-neu{margin-top:10px}.chat-neu summary{cursor:pointer;font-size:.9em}
.chat-ms{display:flex;flex-direction:column;gap:8px;max-height:60vh;overflow:auto;padding:4px}
.chat-m{background:#F4F6F2;border-radius:10px;padding:8px 10px;max-width:80%}
.chat-m.eigen{align-self:flex-end;background:rgba(140,198,63,.18)}
.chat-text{white-space:pre-wrap;word-break:break-word;margin:2px 0}
.chat-akt{display:flex;gap:8px;align-items:center;margin-top:4px}
.chat-form{display:flex;flex-direction:column;gap:6px;margin-top:10px}
.chat-form .row{display:flex;gap:8px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.zm-tt-form label{display:inline-flex;gap:6px;align-items:center}

/* ── 2.82 (Saskia 6a–6p) ─────────────────────────────────────────────
   App-Stil (Rico: die App gibt den Stil vor): Akzent #8CC63F, Sekundär #C8CACB, Karte #454749, Hero #171E1C,
   Knöpfe Radius 14, Karten Radius 10, Raster gestrichelt 2/4. Keine Inline-Styles (CSP). */
:root { --app-akzent: #8CC63F; --app-sek: #C8CACB; --app-karte: #454749; --app-hero: #171E1C; --app-hair: rgba(0,0,0,.08); }
.btn { border-radius: 14px; }
.seg { border-radius: 14px; }
.seg a.on { background: var(--app-akzent); color: var(--dark); }
.chart .cg { stroke: #E3E5E6; stroke-dasharray: 2 4; }
.sw-u { background: var(--app-akzent); } .sw-b { background: var(--app-karte); }
.tvx-strich { border-top-color: #333333; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { border-color: var(--line-strong); }
.linkbtn { background: none; border: 0; padding: 2px 0; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.danger-text { color: var(--danger) !important; } .ok-text { color: var(--green-ink); }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 20px; background: #E7EBE5; color: var(--muted); white-space: nowrap; }
.pill.warn { background: var(--danger-tint); color: var(--danger); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; align-items: end; margin-top: 10px; }
.form-grid label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: 14px; }
.form-grid label small { font-weight: 400; color: var(--muted); }
.form-grid .row, .form-grid label.chk { grid-column: 1 / -1; }
label.chk { flex-direction: row !important; align-items: center; gap: 8px; font-weight: 400 !important; }

/* Dialoge über :target (ohne JavaScript) */
.dlg { display: none; position: fixed; inset: 0; z-index: 900; background: rgba(9,33,30,.45); padding: 4vh 12px; overflow: auto; }
.dlg:target { display: flex; align-items: flex-start; justify-content: center; }
.dlg-box { position: relative; background: var(--surface); border-radius: 10px; padding: 20px 20px 16px; width: min(560px, 100%); box-shadow: 0 20px 60px rgba(0,0,0,.25); display: flex; flex-direction: column; gap: 12px; }
.dlg-box h3 { padding-right: 32px; }
.dlg-zu { position: absolute; top: 10px; right: 12px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; text-decoration: none; font-size: 22px; color: var(--muted); }
.dlg-zu:hover { background: #EEF0EC; color: var(--dark); }
/* Personenauswahl: ganze Namen, Mehrfachauswahl (6f) */
.pers-wahl { width: 100%; }
.chk-liste { list-style: none; margin: 0; padding: 0; max-height: 46vh; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.chk-liste > li { border-bottom: 1px solid var(--line); } .chk-liste > li:last-child { border-bottom: 0; }
.chk-zeile { display: flex; align-items: center; gap: 10px; padding: 8px 12px; cursor: pointer; justify-content: space-between; }
label.chk-zeile { justify-content: flex-start; }
.chk-zeile span { white-space: normal; overflow-wrap: anywhere; min-width: 0; }
.chk-zeile small { display: block; }
.chk-zeile:hover { background: #F6F8F4; }
fieldset.chk-liste { padding: 0; margin: 0; } fieldset.chk-liste legend { padding: 6px 12px; font-weight: 600; font-size: 14px; }

/* Chat (6a–6h) */
.chat-v-kopf { align-items: center; }
.chat-v-rechts { display: flex; align-items: center; gap: 8px; }
.chat-m { position: relative; padding-right: 30px; }
.chat-m.art-gif, .chat-m.art-umfrage, .chat-m.art-ereignis { min-width: min(320px, 80%); }
.chat-menu { position: relative; }
.chat-m > .chat-menu { position: absolute; top: 4px; right: 4px; }
.chat-menu > summary { list-style: none; cursor: pointer; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.chat-menu > summary::-webkit-details-marker { display: none; }
.chat-m > .chat-menu > summary { opacity: .55; }
.chat-m:hover > .chat-menu > summary, .chat-menu[open] > summary { opacity: 1; background: rgba(0,0,0,.06); }
.chat-menu-pop { position: absolute; right: 0; top: calc(100% + 4px); z-index: 50; min-width: 200px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.14); padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.chat-menu-pop form { margin: 0; }
.chat-menu-i { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border-radius: 8px; border: 0; background: none; font: inherit; color: inherit; text-decoration: none; cursor: pointer; text-align: left; }
.chat-menu-i:hover { background: rgba(140,198,63,.14); }
.chat-menu-i svg { width: 18px; height: 18px; flex: none; }
.chat-edit summary { cursor: pointer; padding: 8px 10px; border-radius: 8px; } .chat-edit summary:hover { background: rgba(140,198,63,.14); }
.chat-edit form { padding: 6px; }
.chat-eingabe { display: flex; align-items: flex-end; gap: 8px; background: #F4F6F2; border: 1px solid var(--line); border-radius: 22px; padding: 5px 6px; }
.chat-eingabe textarea { flex: 1; border: 0; background: transparent; resize: none; min-height: 34px; max-height: 220px; padding: 7px 4px; font: inherit; outline: none; }
.chat-plus { position: relative; }
.chat-plus > summary { list-style: none; } .chat-plus > summary::-webkit-details-marker { display: none; }
.chat-plus .chat-menu-pop { top: auto; bottom: calc(100% + 8px); left: 0; right: auto; }
.chat-rund { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 0; background: transparent; color: var(--light); cursor: pointer; flex: none; }
.chat-rund:hover { background: rgba(140,198,63,.18); }
.chat-rund svg { width: 20px; height: 20px; }
.chat-senden { background: var(--app-akzent); color: var(--dark); }
.chat-senden:hover { background: #9BD24E; }
.chat-datei-feld { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
label.chat-menu-i { position: relative; }
.chat-datei-info { margin: 4px 12px 0; }
.emoji-raster { display: grid !important; grid-template-columns: repeat(8, 1fr); width: 300px; max-width: 86vw; }
.emoji { font-size: 20px; line-height: 1; padding: 6px; border: 0; background: none; border-radius: 8px; cursor: pointer; }
.emoji:hover { background: #EEF0EC; }
.chat-neu-knoepfe { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.chat-mitgl { display: flex; flex-direction: column; gap: 10px; }
.chat-umfrage, .chat-ereignis { background: rgba(255,255,255,.7); border: 1px solid var(--app-hair); border-radius: 10px; padding: 10px; margin-top: 4px; }
.chat-u-frage { font-weight: 700; margin: 0 0 8px; }
.chat-u-opt { display: flex; flex-direction: column; gap: 6px; }
.chat-u-zeile { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; }
.chat-u-text { overflow-wrap: anywhere; }
.chat-u-n { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; }
.chat-u-balken { grid-column: 2 / 4; height: 6px; background: #E6E9E4; border-radius: 4px; overflow: hidden; }
.chat-u-balken i { display: block; height: 100%; width: 0; background: var(--app-akzent); border-radius: 4px; }
.chat-u-namen { font-size: 12px; grid-column: 2 / 4; }
.chat-e-knoepfe { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.chat-media { display: block; margin-top: 4px; }
.chat-bild { display: block; max-width: min(320px, 100%); max-height: 320px; border-radius: 10px; cursor: zoom-in; }
.chat-media video { max-width: min(360px, 100%); max-height: 360px; border-radius: 10px; background: #000; }
.gif-treffer { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px; max-height: 50vh; overflow: auto; }
.gif-t { padding: 0; border: 0; background: #EEF0EC; border-radius: 8px; cursor: pointer; overflow: hidden; aspect-ratio: 1; }
.gif-t img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Lightbox (6p): Bilder im Chat als Pop-up */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.86); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 100px); border-radius: 6px; object-fit: contain; }
.lightbox-zu { position: absolute; top: 14px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 26px; cursor: pointer; }
.lightbox-orig { color: #DDE3DA; }
body.lb-offen { overflow: hidden; }

/* Reiter «Mehr» (6l) */
.tabs-mehr { position: relative; }
.tabs-mehr > summary { list-style: none; cursor: pointer; padding: 10px 14px; color: var(--muted); font-weight: 600; font-size: 14.5px; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs-mehr > summary::-webkit-details-marker { display: none; }
.tabs-mehr > summary.active { color: var(--dark); border-bottom-color: var(--green); }
.tabs-mehr-pop { position: absolute; right: 0; top: 100%; z-index: 60; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.12); padding: 6px; display: flex; flex-direction: column; min-width: 220px; }
.tabs-mehr-pop a { border-bottom: 0 !important; margin: 0 !important; border-radius: 8px; padding: 8px 12px !important; }
.tabs-mehr-pop a:hover, .tabs-mehr-pop a.active { background: rgba(140,198,63,.14); }

/* Kalender (6m, 6p) */
.kal-ansichten { flex-wrap: wrap; }
.kal-monat { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.kal-wt { padding: 6px 8px; font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; border-bottom: 1px solid var(--line); }
.kal-zelle { min-height: 104px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kal-monat > .kal-zelle:nth-child(7n) { border-right: 0; }
.kal-zelle.fremd { background: #FAFBF9; } .kal-zelle.fremd .kal-nr { color: #A9B2AE; }
.kal-zelle.we { background: #F7F8F6; }
.kal-nr { font-weight: 700; font-size: 13px; text-decoration: none; color: inherit; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; }
.kal-zelle.heute .kal-nr { background: var(--app-akzent); color: var(--dark); }
.kal-ft { display: inline-block; font-size: 11px; color: #9B1C14; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.kal-chip { display: block; font-size: 12px; padding: 1px 6px; border-radius: 6px; background: var(--green-tint); color: var(--dark); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kal-abs { display: block; font-size: 11.5px; padding: 1px 6px; border-radius: 6px; background: var(--c, #EEF0EC); color: var(--on-c, var(--muted)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kal-abs.beantragt { opacity: .65; border: 1px dashed currentColor; }
.kal-mehr { color: var(--muted); text-decoration: none; }
/* kompakt (Geteilt, Jahr): wie auf dem iPhone – Zahl, darunter Punkte */
.kal-monat.kompakt .kal-zelle { min-height: 48px; align-items: center; justify-content: flex-start; text-decoration: none; color: inherit; border: 0; padding: 4px 0; border-radius: 10px; }
.kal-monat.kompakt .kal-zelle:hover { background: #F2F5EE; }
.kal-monat.kompakt .kal-zelle.gewaehlt .kal-nr { background: var(--dark); color: #fff; }
.kal-monat.kompakt .kal-zelle.heute.gewaehlt .kal-nr { background: var(--app-akzent); color: var(--dark); }
.kal-monat.kompakt .kal-wt { border: 0; }
.kal-punkte { display: flex; gap: 3px; height: 6px; }
.kal-punkte i { width: 5px; height: 5px; border-radius: 50%; display: block; }
.kal-punkte .p-t { background: var(--app-akzent); } .kal-punkte .p-a { background: #8E4FA0; } .kal-punkte .p-f { background: #C0392B; }
.kal-geteilt { display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: 16px; align-items: start; }
@media (max-width: 900px) { .kal-geteilt { grid-template-columns: 1fr; } }
.kal-tagblock[hidden] { display: none; }
.kal-woche { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.kal-wspalte { min-height: 220px; border-right: 1px solid var(--line); padding: 6px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.kal-wspalte:last-child { border-right: 0; } .kal-wspalte.we { background: #F7F8F6; } .kal-wspalte.heute { background: #F3F8EA; }
.kal-wkopf { text-decoration: none; color: inherit; padding-bottom: 4px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
@media (max-width: 760px) { .kal-woche { grid-template-columns: 1fr; } .kal-wspalte { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); } .kal-zelle { min-height: 72px; } .kal-monat:not(.kompakt) .kal-chip small { display: none; } }
.kal-jahr { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.kal-jahr-m h4 { margin-bottom: 6px; } .kal-jahr-m h4 a { text-decoration: none; color: inherit; }
.kal-jahr-m .kal-zelle { min-height: 34px; } .kal-jahr-m .kal-nr { width: 22px; height: 22px; font-size: 11.5px; font-weight: 600; }
.zl-wrap { overflow-x: auto; }
.zl { border-collapse: collapse; font-size: 12px; min-width: 100%; }
.zl th, .zl td { border: 1px solid var(--line); padding: 2px; min-width: 26px; text-align: center; }
.zl thead th { font-weight: 600; } .zl thead th small { display: block; color: var(--muted); font-weight: 400; }
.zl tbody th { text-align: left; white-space: nowrap; padding: 4px 8px; position: sticky; left: 0; background: var(--surface); font-weight: 600; }
.zl th.we { background: #F7F8F6; } .zl .heute { background: #F3F8EA; }
.zl-balken { text-align: left !important; } .zl-balken .kal-chip, .zl-balken .kal-abs { margin: 0; }

/* Übersicht (6o) */
.hero-links { margin: 6px 0 0; } .hero-links a { color: inherit; }
.home-kachel { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.home-kachel svg { width: 26px; height: 26px; flex: none; color: var(--app-akzent); }
.home-kachel span { display: flex; flex-direction: column; min-width: 0; }
.chat-home { border-left: 4px solid var(--app-akzent); }
.ue-liste { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ue-zeile { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 4px 8px 4px 0; background: var(--surface); }
.ue-zeile:target { border-color: var(--app-akzent); }
.ue-pos { display: flex; align-items: center; gap: 4px; flex: none; }
.ue-pos input { width: 58px; }
.neu-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.neu-liste p { margin: 2px 0 0; }

/* Projekte (6j) */
.pj-boards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 14px; }
.pj-board-kachel { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; border-top: 4px solid var(--app-akzent); }
.pj-kopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.pj-board { display: flex; gap: 12px; overflow-x: auto; align-items: flex-start; padding-bottom: 12px; }
.pj-liste { flex: 0 0 290px; background: #ECEFEA; border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 8px; max-height: 78vh; }
.pj-liste-h { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 2px 4px; }
.pj-liste-h h3 { font-size: 14.5px; }
.pj-karten { list-style: none; margin: 0; padding: 2px; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; min-height: 30px; border-radius: 8px; }
.pj-karten.pj-drop { background: rgba(140,198,63,.18); }
.pj-karte { background: var(--surface); border-radius: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.pj-karte[draggable="true"] { cursor: grab; } .pj-karte.zieht { opacity: .45; }
.pj-karte.erledigt .pj-titel { color: var(--muted); text-decoration: line-through; }
.pj-karte > details > summary { list-style: none; padding: 8px 10px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.pj-karte > details > summary::-webkit-details-marker { display: none; }
.pj-titel { overflow-wrap: anywhere; font-weight: 600; font-size: 14px; }
.pj-meta { display: flex; gap: 4px; flex-wrap: wrap; }
.pj-detail { padding: 0 10px 10px; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); }
.pj-detail .form-grid { grid-template-columns: 1fr; }
.pj-text { white-space: pre-wrap; margin: 6px 0 0; font-size: 14px; }
.pj-check { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.pj-neu summary { cursor: pointer; color: var(--muted); padding: 4px; }
.pj-neu form { display: flex; flex-direction: column; gap: 6px; }
.pj-liste-neu { background: transparent; border: 2px dashed var(--line-strong); }
.pj-liste-neu form { display: flex; flex-direction: column; gap: 6px; }
.pj-liste .chat-menu-pop { min-width: 240px; }

/* Zeiterfassungsmodus Sammelbearbeitung (Rico-Entscheid 4) */
.zm-sammel-kopf { margin-bottom: 12px; }
.zm-tabelle input[type="text"], .zm-tabelle input:not([type]) { width: 100%; min-width: 220px; }
.zm-tabelle tr.zm-fehlt td { background: var(--danger-tint); }

/* 2.82: eingebaute GIF-Auswahl */
.dlg-box.dlg-breit { width: min(680px, 100%); }
.gif-filter { display: flex; flex-direction: column; gap: 10px; }
.gif-kat { display: flex; flex-wrap: wrap; gap: 6px; }
.gif-kat .pill { border: 0; cursor: pointer; font: inherit; font-size: 12.5px; padding: 4px 10px; }
.gif-kat .pill.on { background: var(--app-akzent); color: var(--dark); }
.gif-filter .gif-treffer { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
.gif-t[hidden] { display: none; }
.gif-t img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chat-gif { display: block; width: 144px; height: 144px; border-radius: 14px; margin-top: 4px; }
/* 2.83 Spesen (Saskia 6q) */
.sp-filter{display:flex;flex-wrap:wrap;gap:.6rem 1rem;align-items:flex-end;margin-bottom:1rem}
.sp-filter .field{min-width:9rem;margin:0}
.sp-filter .form-actions{margin:0}
.sp-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(9rem,1fr));gap:.8rem}
.sp-summen .sp-pp{margin-top:1rem}
.sp-st{white-space:nowrap}
.sp-st.sp-offen{background:#fff4d6;color:#7a5600}
.sp-st.sp-beglichen{background:#e6f4d7;color:#2f5d0a}
.sp-st.sp-abgelehnt{background:#f7dede;color:#8a1f1f}
.sp-stform{display:flex;flex-wrap:wrap;gap:.3rem;align-items:center}
.sp-stform input{max-width:12rem}
.sp-akt{min-width:14rem}
.sp-edit form{display:grid;gap:.4rem;margin-top:.4rem}
/* 2.83 Chat-Lesebestätigung */
.chat-haken{display:inline-flex;align-items:center;margin-left:.3rem;font-size:.8em;letter-spacing:-.25em;color:#8a8f8d;line-height:1}
.chat-haken.st-gelesen{color:#8CC63F}
.chat-haken-info{background:none;border:0;padding:0;cursor:pointer;font:inherit}
.chat-lese-info ul{list-style:none;padding:0;margin:.3rem 0}
.chat-lese-info li{display:flex;justify-content:space-between;gap:1rem;padding:.2rem 0;border-bottom:1px solid rgba(127,127,127,.2)}
.chat-lese-info{display:inline-block;position:relative}
.chat-lese-info>summary{list-style:none;display:inline}
.chat-lese-info>summary::-webkit-details-marker{display:none}
.chat-lese-pop{position:absolute;right:0;z-index:20;min-width:14rem;max-height:18rem;overflow:auto;padding:.6rem .8rem;border-radius:10px;background:#262d2b;color:#f1f3f2;box-shadow:0 6px 24px rgba(0,0,0,.35);font-size:.85rem;text-align:left}
.chat-lese-pop .muted{color:#b9c0bd}

/* 2.84 (Saskia 6r-6): Smileys nach Gruppen, eigenes GIF */
.emoji-gruppen { max-height: 320px; overflow-y: auto; }
.emoji-gruppen .emoji-h { grid-column: 1 / -1; margin: .4rem 0 .1rem; font-size: .72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.gif-eigen { margin-top: .6rem; padding-top: .6rem; border-top: 1px solid var(--line); display: flex; gap: .6rem; align-items: flex-end; flex-wrap: wrap; }
.pr-vb { display: block; font-size: .7rem; }

/* ── 2.85 (Saskia 6w) ─────────────────────────────────── */
/* 6w-2 Dokumentkategorie zweistufig */
.dk-zwei { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.dk-zwei select { width: 100%; }
@media (max-width: 640px) { .dk-zwei { grid-template-columns: 1fr; } }
/* 6w-7 Popups: immer nur eines offen, im sichtbaren Bereich */
.pop-fix { position: fixed !important; z-index: 120; overflow-y: auto; }
/* 6w-8 Kalender: «Für wen?» kompakt, Personenauswahl ohne abgeschnittene Namen */
.tm-fuer { display: flex; flex-wrap: wrap; gap: 6px; border: 0; padding: 0; margin: 0; }
.tm-fuer legend { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.tm-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13.5px; cursor: pointer; }
.tm-pill:has(input:checked) { background: var(--green-tint); border-color: var(--green); }
.tm-personen { max-height: 240px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; padding: 6px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2px 10px; }
.tm-person { display: flex; align-items: flex-start; gap: 6px; font-size: 13.5px; padding: 4px; white-space: normal; overflow-wrap: anywhere; }
.tm-meeting { display: inline-flex; align-items: center; gap: 6px; }
/* 6w-9 Spesen Auszahlungsart */
.sp-auszahlung { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
/* 6w-10 Organigramm: ausgeführt durch */
.org-ausgefuehrt { font-size: 12px; color: var(--green-ink); }
/* 6w-11 Diagramme im App-Stil: weiche Raster, runde Säulen, Legende als Pillen */
.chart-app .cg { stroke: #EDF0EA; stroke-dasharray: 2 4; }
.chart-app .chart-legend span { background: #F4F6F2; border-radius: 999px; padding: 3px 10px; color: var(--dark); }
.chart-app .chart-y span, .chart-app .chart-x span { font-size: 11px; color: var(--muted); }
.jv-kpis { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-bottom: 14px; }
.jv-kpi { border-top: 4px solid var(--app-akzent, #8CC63F); }
.jv-kpi small.pos { color: #4E7A1F; } .jv-kpi small.neg { color: #B3261E; }
.pd-stk-charts { margin-bottom: 14px; }
/* 6w-12 Personalplanung: gleich grosse Felder, eine Schriftgrösse */
.pl-grid, .pl-grid td, .pl-grid .pl-name small, .pl-zeit, .pl-abs, .pl-frei, .pl-warn, .pl-task, .pl-task small { font-size: 13px; }
.pl-grid .pl-ht { min-height: 34px; }
.pl-grid td { height: 1px; } .pl-grid td > .pl-hts { height: 100%; }
.pl-grid .pl-htl { font-size: 11px; }
/* 6w-17 «Neuer Benefit» nicht mehr freischwebend */
.benefits-layout:has(.benefit-new:not([open])) { grid-template-columns: minmax(0, 1fr); }
.benefits-layout:has(.benefit-new:not([open])) .benefit-new-wrap { order: -1; justify-self: end; }
.benefit-new:not([open]) { position: static; }
/* 6w-19 Boards: gleich hohe Listen, Freigaben */
.pj-board { align-items: stretch; }
.pj-liste-neu form { display: flex; gap: 6px; align-items: stretch; }
.pj-liste-neu input, .pj-liste-neu .btn { height: 38px; }
.pj-neu .form-grid, .pj-neu form { display: grid; gap: 6px; grid-template-columns: 1fr; }
.pj-freigaben { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; display: grid; gap: 8px; }
.pj-freigaben .stack { display: grid; gap: 6px; }
/* 2.85: innerhalb .stack darf die generische Label-Regel Radio/Checkbox nicht stapeln (6w-8). */
.tm-form label.tm-pill, .tm-form label.tm-chk, .tm-form label.tm-person { flex-direction: row; align-items: center; width: auto; }
.tm-form .tm-pill input[type=radio] { width: 16px; height: 16px; min-height: 0; padding: 0; margin: 0; flex: 0 0 16px; accent-color: var(--green); }
.tm-form .tm-chk input[type=checkbox], .tm-form .tm-person input[type=checkbox] { min-height: 0; padding: 0; margin: 0; flex: 0 0 16px; }

/* 2.86: Überstunden & Ferien (Statistik) – App-Diagrammstil, Ampel ohne neue Farben ausser Warnung/kritisch */
.zs-kpis { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.zs-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; margin-bottom: 18px; }
.zs-grid > .card { width: 100%; margin: 0; }
@media (max-width: 1000px) { .zs-grid { grid-template-columns: minmax(0, 1fr); } }
.zs-balken svg { width: 100%; height: auto; display: block; }
.zs-balken text { font-family: inherit; }
.zs-tab th a { color: inherit; text-decoration: none; white-space: nowrap; }
.zs-tab th a:hover { text-decoration: underline; }
.zs-ampel { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.zs-a-ok { background: #EEF6E3; color: #3F6B12; }
.zs-a-warnung { background: #FFF3D6; color: #7A5300; }
.zs-a-kritisch { background: #FBE3E1; color: #9B2C25; }
.zs-a-unbekannt { background: #F1F2F2; color: #5C5F61; }

/* ── 2.87 (Saskia 6y, 21.11.2026) ─────────────────────────────────────────── */
/* 6y-9: zweistufiges Seitenmenü – links Hauptbereiche (fix), daneben Unterpunkte; Seitenwechsel ohne Springen des Menüs */
:root { --sidebar: 300px; }
@view-transition { navigation: auto; }
.sidebar { view-transition-name: esave-menue; }
.topbar .top-icons { view-transition-name: esave-top; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .12s; }
.nav2 { display: grid; grid-template-columns: 96px 1fr; gap: 8px; position: relative; z-index: 1; flex: 1; min-height: 0; }
.nav-l1 { display: flex; flex-direction: column; gap: 2px; border-right: 1px solid rgba(255,255,255,.08); padding-right: 6px; }
.nav-l1 .l1 { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 4px; border: 0; border-radius: 8px; background: transparent; color: rgba(255,255,255,.72); font: inherit; font-size: 11px; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; position: relative; hyphens: auto; overflow-wrap: anywhere; }
.nav-l1 .l1 .ic { width: 20px; height: 20px; }
.nav-l1 .l1:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-l1 .l1.offen { background: rgba(255,255,255,.08); color: #fff; }
.nav-l1 .l1.active { color: #fff; font-weight: 700; } .nav-l1 .l1.active .ic { color: var(--green); }
.nav-l1 .l1.active::before { content: ""; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--green); }
.nav-l1 .l1 .nav-badge { position: absolute; top: 4px; right: 8px; margin: 0; min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; }
.nav-l1 .l1:focus-visible, .nav-l2 .nav-item:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.nav-l2 { min-width: 0; }
.nav-l2 .l2-sec { display: flex; flex-direction: column; gap: 2px; }
.nav-l2 .l2-h { margin: 6px 0 6px; padding: 0 10px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.nav-l2 .nav-item { padding: 8px 10px; font-size: 13.5px; gap: 8px; }
.nav-l2 .nav-item span { min-width: 0; overflow-wrap: anywhere; }
.nav-l2 .nav-item.active::before { left: -5px; }
.topbar .top-icons { display: flex; gap: 6px; margin-left: 4px; }
.top-ic { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); color: var(--dark); background: var(--surface, #fff); }
.top-ic:hover, .top-ic.active { border-color: var(--green); color: var(--green-ink); }
.top-ic .ic { width: 20px; height: 20px; }
.top-ic .nav-badge { position: absolute; top: -6px; right: -6px; margin: 0; }
.menu-tabs { margin-bottom: 14px; }
@media (max-width: 860px) { .sidebar { width: min(92vw, 340px); } .nav2 { grid-template-columns: 92px 1fr; } .topbar .top-icons { margin-left: auto; } }
@media print { .top-icons, .menu-tabs { display: none !important; } }

/* 6y-1: «Wer macht was» – Name als Titel, Aufgabe darunter linksbündig und kleiner */
.tvx-auf .tvx-list.tvx-wer li { flex-direction: column; align-items: flex-start; text-align: left; gap: .15vh; }
.tvx-auf .tvx-list.tvx-wer b { display: block; width: 100%; text-align: left; font-size: 1.55vh; }
.tvx-auf .tvx-list.tvx-wer span { display: block; width: 100%; text-align: left; font-size: 1.25vh; line-height: 1.25; color: var(--muted); overflow-wrap: anywhere; }

/* 6y-2: Personalplanung mit Aufgaben – Felder gleich gross, nichts überschreibt sich */
.pl-grid.mit-aufg .pl-hts { grid-template-rows: 1fr 1fr; height: 100%; }
.pl-grid.mit-aufg .pl-ht { min-height: 40px; align-items: flex-start; align-content: flex-start; min-width: 0; }
.pl-grid.mit-aufg .pl-task { display: flex; min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
.pl-grid.mit-aufg td { overflow-wrap: anywhere; }

/* 6y-15: Teil-Absenz nur im betroffenen Halbtag; ganze Absenz in Halbtag-Höhe */
.pl-ht.abs { background: var(--danger-tint); border-color: transparent; }
.pl-ht.abs .pl-abs { background: transparent; padding: 0; font-size: 11.5px; }
.pl-grid:not(.mit-aufg) td.pl-off .pl-abs { display: block; text-align: center; min-height: 22px; line-height: 22px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 6y-8: Spesen-Status – Zeile 1 Kommentar, Zeile 2 Beglichen + Auszahlung, Zeile 3 «Wie» */
.sp-stform.sp287 { display: grid; grid-template-columns: 1fr; gap: .3rem; max-width: 22rem; }
.sp-stform.sp287 > div { display: flex; gap: .3rem; flex-wrap: wrap; }
.sp-stform.sp287 input, .sp-stform.sp287 select { max-width: none; flex: 1 1 8rem; min-width: 0; }
.sp-stform.sp287 [hidden] { display: none; }

/* 6y-12: Filterfeld über Listen */
.liste-filter { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; padding: 8px 12px 0; }
.liste-filter input { max-width: 320px; }

/* 6y-13: Vertragskopf */
.vt-kopf { margin: 6px 0 18px; }
.vt-parteien { margin-top: 12px; display: grid; gap: 6px; }
.vt-zw { margin: 4px 0; font-style: italic; color: var(--muted); }
.vt-partei { font-style: normal; line-height: 1.45; }

/* 6y-14: Abschnittstitel in Dokumenten fett */
.an-pages h2, .dok-abschnitt h2 { font-weight: 700 !important; }

/* 6y-10: Board anlegen mit Mitgliedern */
.form-grid .full { grid-column: 1 / -1; }
.pj-zugriff { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 8px; }
.pj-zugriff .chk-liste { max-height: 220px; overflow: auto; }
.pj-zugriff [hidden] { display: none; }

/* 7b: Bewerbungsunterlagen – Liste vor dem Speichern, Ablegen per Drag & Drop */
.bw-gewaehlt { margin: 6px 0; } label.drop-an { outline: 2px dashed var(--green); outline-offset: 4px; border-radius: 8px; }

/* 6z-2: Chat – Sammlung, Sticker, vollständige Smileys */
.emoji-suche { width: 100%; margin: 0 0 6px; }
.chat-sticker, .art-sticker .chat-gif { background: transparent; }
.gif-eigen.stack { display: grid; gap: 8px; margin-top: 10px; }
.emoji-raster [data-emoji-alle] { grid-column: 1 / -1; margin: 6px 0; }
.emoji-raster [data-emoji-voll] { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(8, 1fr); }
.emoji-raster [data-emoji-voll] .emoji-h, .emoji-raster .emoji-suche { grid-column: 1 / -1; }
.emoji-raster [data-emoji-voll] [hidden] { display: none; }
.emoji-gruppen { max-height: 360px; overflow-y: auto; }
.zs-a-handelsreisender { background: #EAF1F7; color: #24506E; } /* 2.87: Modus «Handelsreisender» – ohne Grenzen */
.zm-hinweis { background: #FFF3D6; color: #5A3E00; border: 1px solid #F0D48A; } .zm-reisend { margin-top: .6rem; padding-top: .6rem; border-top: 1px solid var(--line, #e3e6e0); } .zc-richtwert .chip { margin-right: .3rem; } /* 2.87 */
/* 2.87 (Saskia 7c): Bewerbung – Unterlagen zeilenweise */
.bw-zeilen .bw-ztab { margin-top: 6px; }
.bw-zeilen .bw-ztab td { vertical-align: top; }
.bw-zeilen .bw-ztab input[type=file] { max-width: 100%; }
.bw-zeilen tr.bw-zeile-voll td:first-child { font-weight: 600; }
/* 2.87 (Saskia 7e): «Mein Konto» – Kacheln ohne Lücken (Masonry über CSS-Spalten), keine Leerräume unter Zwei-Faktor/Face ID; schmal = eine Spalte */
.konto-kacheln { columns: 2 340px; column-gap: 18px; }
.konto-kacheln > .card { break-inside: avoid; page-break-inside: avoid; display: inline-block; width: 100%; margin: 0 0 18px; vertical-align: top; }
.konto-kacheln > .card:last-child { margin-bottom: 0; }
@media (max-width: 760px) { .konto-kacheln { columns: 1; } }

/* ── 2.88 (Saskia 7h-1/7h-2/7h-3): Menü – Symbole oder Symbole + Text, Untermenü als Aufklapp-Feld, Chat/Kalender unten ── */
:root { --sidebar: 232px; }
html.nav-icons { --sidebar: 76px; }
.nav2 { display: block; flex: 0 0 auto; }
.nav-l1 { border-right: 0; padding-right: 0; gap: 2px; }
.nav-l1 .l1 { flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; padding: 10px 12px; width: 100%; text-align: left; font-size: 14.5px; hyphens: none; overflow-wrap: normal; }
.nav-l1 .l1 > span { flex: 1; min-width: 0; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-l1 .l1 .ic { width: 20px; height: 20px; flex: 0 0 auto; }
.nav-l1 .l1 .nav-badge { position: static; margin-left: auto; }
.nav-l1 .l1.active::before { left: -14px; }
.nav-mode { align-self: flex-end; margin: -10px 0 6px; width: 28px; height: 28px; border: 0; border-radius: 6px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.8); cursor: pointer; display: grid; place-items: center; }
.nav-mode:hover { background: rgba(255,255,255,.16); color: #fff; }
.nav-mode .ic { width: 16px; height: 16px; transition: transform .15s; }
html.nav-icons .nav-mode { align-self: center; }
html.nav-icons .nav-mode .ic { transform: rotate(180deg); }
html.nav-icons .sidebar { padding-left: 10px; padding-right: 10px; }
html.nav-icons .brand { padding: 4px 0 14px; } html.nav-icons .brand img { width: 52px; max-width: 100%; object-fit: contain; object-position: left; }
html.nav-icons .brand .brand-name { display: none; }
html.nav-icons .nav-l1 .l1 { justify-content: center; padding: 11px 6px; position: relative; }
html.nav-icons .nav-l1 .l1 > span { display: none; }
html.nav-icons .nav-l1 .l1 .nav-badge { position: absolute; top: 2px; right: 4px; margin: 0; }
html.nav-icons .nav-l1 .l1.active::before { left: -10px; }
html.nav-icons .me-link > span:not(.avatar) { display: none; } html.nav-icons .me { flex-direction: column; padding: 10px 0; }
html.nav-icons .sidebar .firma { display: none; }
.nav-l2 { position: fixed; z-index: 60; min-width: 210px; max-width: min(320px, 90vw); overflow-y: auto; background: var(--dark); color: #fff; border: 1px solid rgba(255,255,255,.14); border-left: 3px solid var(--green); border-radius: 0 10px 10px 0; box-shadow: 8px 8px 28px rgba(0,0,0,.28); padding: 6px; }
.nav-l2[hidden], .nav-l2 [hidden] { display: none !important; }
.nav-l2 .l2-h { margin: 4px 0 4px; }
.nav-l2 .nav-item.active::before { left: -9px; }
.nav-bottom { display: flex; gap: 6px; padding: 10px 0 4px; border-top: 1px solid rgba(255,255,255,.1); margin-top: 8px; position: relative; z-index: 1; }
.nav-bottom .nb { position: relative; display: flex; align-items: center; gap: 8px; flex: 1; padding: 8px 10px; border-radius: 8px; color: rgba(255,255,255,.82); text-decoration: none; font-size: 13.5px; background: rgba(255,255,255,.05); }
.nav-bottom .nb:hover, .nav-bottom .nb.active { background: rgba(255,255,255,.12); color: #fff; }
.nav-bottom .nb .ic { width: 18px; height: 18px; }
.nav-bottom .nb .nav-badge { margin-left: auto; }
html.nav-icons .nav-bottom { flex-direction: column; } html.nav-icons .nav-bottom .nb { justify-content: center; padding: 10px 4px; } html.nav-icons .nav-bottom .nb span:not(.ic) { display: none; }
html.nav-icons .nav-bottom .nb .nav-badge { position: absolute; top: 0; right: 2px; margin: 0; }
@media (max-width: 860px) { .sidebar { width: min(86vw, 300px) !important; } html.nav-icons { --sidebar: 0px; } html.nav-icons .nav-l1 .l1 > span, html.nav-icons .brand .brand-name { display: revert; } html.nav-icons .nav-l1 .l1 { justify-content: flex-start; padding: 12px; } .nav-mode { display: none; } .nav-bottom { flex-direction: row !important; } html.nav-icons .nav-bottom .nb span:not(.ic) { display: inline; } }
@media print { .nav-l2, .nav-bottom { display: none !important; } }

/* 2.88 (Saskia 7h-4): «Wer macht was» – eine Spalte, Name (fett) und Aufgabe gleich gross, Name in einer Zeile */
.tvx-auf .tvx-list.tvx-wer { column-count: 1 !important; }
.tvx-auf .tvx-list.tvx-wer li { flex-direction: row; align-items: baseline; gap: .5vw; text-align: left; font-size: 1.3vh; padding: .35vh 0; }
.tvx-auf .tvx-list.tvx-wer b { display: inline; width: auto; flex: 0 0 auto; max-width: none; white-space: nowrap; font-size: 1.3vh; font-weight: 700; text-align: left; }
.tvx-auf .tvx-list.tvx-wer span { display: inline; width: auto; flex: 1 1 auto; font-size: 1.3vh; color: inherit; text-align: left; }
.tvx.dash .tvx-auf .tvx-list.tvx-wer li, .tvx.dash .tvx-auf .tvx-list.tvx-wer b, .tvx.dash .tvx-auf .tvx-list.tvx-wer span { font-size: 12.5px; }

/* 2.88 (Saskia 7h-9): Umschalter Smileys | GIFs | Sticker im Wähler */
.emoji-tabs { grid-column: 1 / -1; display: flex; gap: 4px; margin-bottom: 6px; border-bottom: 1px solid var(--line); padding-bottom: 6px; position: sticky; top: 0; background: var(--surface, #fff); z-index: 2; }
.emoji-tabs button { flex: 1; border: 0; background: transparent; padding: 6px 4px; border-radius: 8px; cursor: pointer; font: inherit; font-size: 13px; color: var(--muted); }
.emoji-tabs button.on { background: var(--green-tint, #eef6dd); color: var(--dark); font-weight: 600; }
.emoji-panel { grid-column: 1 / -1; }
.emoji-panel[data-emoji-panel="smileys"]:not([hidden]) { display: grid; grid-template-columns: repeat(8, 1fr); }
.emoji-panel[hidden] { display: none !important; }
.emoji-panel.gif-treffer { grid-template-columns: repeat(3, 1fr); max-height: 300px; }
.emoji-panel .emoji-eigen { grid-column: 1 / -1; padding: 6px 2px; }
.emoji-panel[data-emoji-panel="smileys"] [data-emoji-alle], .emoji-panel[data-emoji-panel="smileys"] .emoji-suche, .emoji-panel[data-emoji-panel="smileys"] .emoji-h, .emoji-panel[data-emoji-panel="smileys"] [data-emoji-voll] { grid-column: 1 / -1; }

/* 2.88 (Saskia 7h-10/7h-13): Personen nach Abteilung gruppiert, mehrere Spalten */
.tm-gruppen { display: flex; flex-direction: column; gap: 10px; max-height: 340px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.tm-gruppe[hidden] { display: none; }
.tm-abt-h { margin: 0 0 4px; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.tm-gruppen .tm-personen { max-height: none; overflow: visible; border: 0; padding: 0; }
.tm-personen-spalten { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 2px 10px; }
.pj-zugriff .tm-personen-spalten { border: 1px solid var(--line); border-radius: 8px; padding: 6px; max-height: 240px; overflow-y: auto; }
.pj-zugriff .tm-gruppen .tm-personen-spalten { border: 0; padding: 0; max-height: none; }
/* 7h-13: Auswahl-Ovale «Mitglieder» gleich gross und dezenter */
.pj-zugriff .tm-fuer { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.pj-zugriff .tm-pill { justify-content: center; text-align: center; min-width: 0; padding: 6px 8px; font-size: 13px; background: transparent; border-color: var(--line); color: var(--muted); font-weight: 400; box-shadow: none; }
.pj-zugriff .tm-pill:has(input:checked) { background: var(--green-tint, #eef6dd); border-color: #cfe3a3; color: var(--dark); font-weight: 500; }
@media (max-width: 560px) { .pj-zugriff .tm-fuer { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 2.88 (Saskia 7h-11): Spesen – schlanke Zeile, Bearbeiten als kleines Icon */
.sp-liste td { padding-top: 7px; padding-bottom: 7px; vertical-align: middle; }
.sp-liste .sp-ic { width: 30px; height: 30px; display: inline-grid; vertical-align: middle; color: var(--muted); }
.sp-liste .sp-ic:hover { color: var(--green-ink); }
.sp-liste .sp-ic .ic { width: 17px; height: 17px; }
.sp-liste .sp-akt { white-space: nowrap; }
.liste-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.liste-filter select { width: auto; max-width: 220px; }

/* 2.88 (Saskia 7h-15): Vertragskopf – Adressen nebeneinander, mehr Abstand zum Datum */
.vt-parteien { grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; column-gap: 18px; row-gap: 4px; }
.vt-parteien .vt-zw { margin: 2px 0 0; }
.vt-kopf .dok-ort { margin-top: 30px; text-align: right; }
@media (max-width: 640px) { .vt-parteien { grid-template-columns: 1fr; } .vt-kopf .dok-ort { text-align: left; } }

/* 2.88 (Saskia 7h-16): Bewerbung erfassen – alle Eingabefelder gleich gross (zwei gleiche Spalten) */
@media (min-width: 901px) { .fgrid.bw-gleich label.w1, .fgrid.bw-gleich label.w2 { grid-column: span 2; } }
.fgrid.bw-gleich label.field input:not([type=checkbox]):not([type=file]), .fgrid.bw-gleich label.field select { width: 100%; }

/* 2.88 (Saskia 7l-1): Rich-Text-Werkzeugleiste und Formatierung in erstellten Dokumenten */
.rt-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 4px 6px; border: 1px solid var(--line); border-bottom: 0; border-radius: 8px 8px 0 0; background: #F6F7F4; position: relative; }
.rt-b { min-width: 30px; height: 30px; padding: 0 6px; border: 0; border-radius: 6px; background: transparent; color: var(--dark); cursor: pointer; font: inherit; font-size: 14px; display: inline-grid; place-items: center; }
.rt-b:hover { background: #E7EBE2; }
.rt-sep { width: 1px; height: 20px; background: var(--line); margin: 0 4px; }
.rt-ta { border-top-left-radius: 0 !important; border-top-right-radius: 0 !important; }
.rt-aktiv > [data-tab-tool] { display: none; }
.rt-tab-wrap { position: relative; display: inline-block; }
.rt-raster { position: absolute; top: 34px; left: 0; z-index: 40; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.18); padding: 8px; width: max-content; }
.rt-raster[hidden] { display: none; }
.rt-raster-l { font-size: 12.5px; margin-bottom: 6px; color: var(--dark); }
.rt-raster-g { display: grid; grid-template-columns: repeat(10, 18px); gap: 2px; }
.rt-z { width: 18px; height: 18px; padding: 0; border: 1px solid #C9CFC5; background: #fff; border-radius: 2px; cursor: pointer; min-height: 0; }
.rt-z.an { background: #CFE3A3; border-color: #8CC63F; }
.dok-text .dok-ol { margin: 0 0 10px; padding-left: 24px; }
.dok-text .dok-ol li { font-size: 15.5px; line-height: 1.5; margin: 2px 0; }
.dok-text a, .an-text a { color: var(--green-ink); text-decoration: underline; }
.dok-text u, .an-text u { text-decoration: underline; } .dok-text s, .an-text s { text-decoration: line-through; }
@media print { .rt-bar { display: none !important; } .dok-text a { color: inherit; } }

/* 2.88 (Saskia 7h-5/7h-6): Absenz-Markierung überlagert VM/NM-Felder nicht mehr – Halbtage bleiben gleich breit, Markierung untereinander */
.pl-grid .pl-hts { grid-template-columns: minmax(0, 1fr); }
.pl-grid:not(.mit-aufg) .pl-hts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pl-grid .pl-ht { min-width: 0; overflow: hidden; }
.pl-grid .pl-ht.abs { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; justify-content: flex-start; gap: 2px; }
.pl-grid:not(.mit-aufg) .pl-ht.abs { align-items: center; justify-content: center; padding: 2px; }
.pl-grid .pl-ht.abs .pl-abs { display: block; max-width: 100%; box-sizing: border-box; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; line-height: 1.3; }
.pl-grid .pl-ht.abs .pl-task { max-width: 100%; box-sizing: border-box; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-grid td.pl-off > .pl-abs { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; box-sizing: border-box; }
.pl-grid td { vertical-align: top; }
.pl-grid.mit-aufg td > .pl-hts { height: auto; min-height: 100%; }
.emoji-panel.gif-treffer { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 84px; gap: 6px; max-height: none; overflow: visible; }
.emoji-panel.gif-treffer[hidden] { display: none !important; }
.emoji-panel.gif-treffer .gif-t { width: 100%; height: 84px; min-height: 0; aspect-ratio: auto; padding: 0; display: block; }
.emoji-panel.gif-treffer .gif-t img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.pj-zugriff label.tm-pill, .form-grid .pj-zugriff label.tm-pill { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 6px; width: auto; min-height: 34px; border-radius: 999px; }
.pj-zugriff label.tm-pill input { width: 15px; height: 15px; min-height: 0; flex: 0 0 15px; padding: 0; margin: 0; }

/* 2.90 (Saskia 7p-1): Menü – Einklapp-Pfeil mit mehr Abstand zum Logo; eingeklappt nur das «e» des esave-Logos */
.brand .brand-e { display: none; }
.nav-mode { margin: 2px 0 10px; }
html.nav-icons .brand .brand-voll { display: none; }
html.nav-icons .brand .brand-e { display: block; width: 40px; height: 40px; margin: 0 auto; }
@media (max-width: 860px) { html.nav-icons .brand .brand-voll { display: block; } html.nav-icons .brand .brand-e { display: none; } }
/* 2.90 Forecast-Druckansicht */
body.fc-druck{background:#fff;color:#111;font:12px system-ui,sans-serif;margin:24px}
body.fc-druck table{border-collapse:collapse;width:100%}
body.fc-druck th,body.fc-druck td{border:1px solid #ccc;padding:3px 5px}
body.fc-druck .num{text-align:right}
body.fc-druck .fc-logo{height:36px}
@media print{body.fc-druck .fc-noprint{display:none}}

/* 2.90 (Saskia 7p-4/7r-1/7s-1): Teil-AU-Kürzel im nicht eingeplanten Halbtag, keine Überlappung */
.pl-grid .pl-ht.pl-ht-marke { min-width: 0; overflow: hidden; }
.pl-grid .pl-eing.pl-eing-k { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; line-height: 1.3; margin: 0; }

/* 2.90 (Saskia 7p-3): Wer macht was – je Person «Vorname Name», darunter die Aufgabe, Trennstrich zur nächsten Person (Schriftgrösse bleibt) */
.tvx-auf .tvx-list.tvx-wer li { flex-direction: column; align-items: flex-start; gap: .1vh; border-bottom: 1px solid var(--line, #e3e6e3); }
.tvx-auf .tvx-list.tvx-wer li:last-child { border-bottom: 0; }
.tvx-auf .tvx-list.tvx-wer b { display: block; width: 100%; white-space: normal; }
.tvx-auf .tvx-list.tvx-wer span { display: block; width: 100%; }

/* 2.90 (Saskia 7r-6): Bewerbung – «Was ist es?» gleich hoch und breit wie das Dateifeld */
.bw-ztab td select, .bw-ztab td input[type=file], .bw-ztab td input:not([type]) { box-sizing: border-box; width: 100%; min-height: 44px; height: 44px; font-size: 15px; }
.bw-ztab td input[type=file] { padding: 8px; }

/* 2.90 (Saskia 7r-5): Verträge – Ort/Datum linksbündig */
.vt-kopf .dok-ort { text-align: left; }

/* 2.91 (Saskia 8h/8j): Pensum & Änderungen im Dossier, Vertragsnachtrag zum Drucken */
.pensum-geplant { margin: 4px 0 8px; }
form.inline { display: inline; }
.vertrag-nachtrag h2 { margin-bottom: 2px; }
.vertrag-nachtrag h3 { margin: 18px 0 6px; font-size: 1rem; }
.nachtrag-unterschriften { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 36px; }
.nachtrag-unterschriften .linie { border-bottom: 1px solid currentColor; height: 28px; margin: 18px 0 4px; }
@media print {
  .no-print, .hints, .crumb-back { display: none !important; }
  .vertrag-nachtrag { box-shadow: none; border: 0; padding: 0; color: #000; background: #fff; }
}

/* 2.92 (Saskia 8l-5): Personenauswahl alphabetisch in 5–6 Spalten, Filter/Sortierung nach Abteilung */
.pw-raster { gap: 6px; }
.pw-kopf { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.pw-kopf .pw-k { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted, #667); width: auto; }
.pw-kopf select { width: auto; min-height: 0; padding: 3px 8px; font-size: 13px; }
.pw-spalten.tm-personen-spalten { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 10px; }
@media (max-width: 1280px) { .pw-spalten.tm-personen-spalten { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .pw-spalten.tm-personen-spalten { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .pw-spalten.tm-personen-spalten { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pw-spalten label.tm-person, form .pw-spalten label.tm-person { display: flex; flex-direction: row; align-items: center; gap: 6px; padding: 2px 4px; min-width: 0; font-weight: 500; }
.pw-spalten label.tm-person input[type=checkbox] { flex: 0 0 16px; width: 16px; height: 16px; min-height: 0; margin: 0; padding: 0; }
.pw-spalten label.tm-person span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pw-spalten .pw-aus, .pw-spalten [hidden] { display: none !important; }

/* 2.92 (Saskia 8l-4): Spesen – Speichern/Bearbeiten rechts neben den Feldern, niedrige Zeile */
.sp-stform.sp287 { max-width: 26rem; gap: .25rem; }
.sp-stform.sp287 > .sp-z2.sp-z-reihe { flex-wrap: nowrap; align-items: center; }
.sp-stform.sp287 > .sp-z2.sp-z-reihe select { flex: 1 1 7rem; min-height: 30px; height: 30px; padding-top: 2px; padding-bottom: 2px; }
.sp-stform.sp287 > .sp-z1 input, .sp-stform.sp287 > .sp-z3 input { min-height: 30px; height: 30px; padding-top: 2px; padding-bottom: 2px; }
.sp-stform.sp287 .sp-z-reihe .sp-ic { flex: 0 0 auto; margin: 0; padding: 4px; min-height: 0; width: 30px; height: 30px; }

/* 2.92 (Saskia 8l-8): Erklärungen als Info-Zeichen mit kleinem Pop-up */
.info-tip { display: inline-block; position: relative; vertical-align: middle; margin-left: 4px; }
.info-tip > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; border: 1px solid currentColor; font-size: 11px; font-weight: 700; font-style: italic; line-height: 1; opacity: .75; }
.info-tip > summary::-webkit-details-marker { display: none; }
.info-tip[open] > summary { opacity: 1; }
.info-tip-pop { position: absolute; z-index: 50; top: 24px; left: -8px; width: min(340px, 80vw); padding: 10px 12px; background: var(--card, #fff); color: var(--text, #1b1f1d); border: 1px solid var(--line, #d9ddd6); border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.14); font-size: 12.5px; font-weight: 400; font-style: normal; line-height: 1.45; white-space: normal; }

/* 2.92 (Saskia 8l-3): «+» für eigene GIFs/Sticker direkt in der Auswahl */
.gif-plus { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.gif-plus .gif-plus-knopf { width: 72px; height: 72px; border: 2px dashed var(--line, #c9cec6); border-radius: 10px; background: transparent; font-size: 30px; line-height: 1; cursor: pointer; color: inherit; }
.gif-plus .gif-plus-knopf:hover, .gif-plus .gif-plus-knopf:focus-visible { border-color: var(--accent, #9bbf2a); }
.gif-plus input[name=titel] { width: 92px; min-height: 0; padding: 2px 6px; font-size: 11.5px; }
.gif-plus input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* 2.92: Arbeitszeiten (Leitung/Stv.), Einstellungs-Checkliste, Dokumentsprache */
.az-tab td, .az-tab th { vertical-align: top; }
.az-raster { display: grid; grid-template-columns: auto repeat(5, minmax(70px, 1fr)); gap: 4px 8px; align-items: center; }
.az-raster input[type=time] { min-height: 0; padding: 2px 4px; font-size: 12px; width: 100%; }
.az-raster .az-h { font-size: 12px; font-weight: 600; color: var(--muted, #667); }
.ec-liste { list-style: none; margin: 0; padding: 0; }
.ec-liste li { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--line, #e4e7e1); }
.ec-liste li.ec-ok .ec-t { text-decoration: line-through; opacity: .7; }
.ec-liste .ec-t { flex: 1 1 auto; }
.ec-balken { height: 6px; border-radius: 3px; background: var(--line, #e4e7e1); overflow: hidden; margin: 4px 0 8px; }
.ec-balken i { display: block; height: 100%; background: var(--accent, #9bbf2a); }
.dok-sprache-wahl { display: flex; gap: 6px; flex-wrap: wrap; }
.chip.dok-lang { text-transform: uppercase; font-size: 11px; }

/* 2.93: Vertragsänderungen Themenauswahl */
.va-picker{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:8px 0 10px}
.va-picker label{display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-weight:600;font-size:.9rem}
.va-themen{display:flex;flex-wrap:wrap;gap:6px}

.va-form { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }

/* 2.94: Stückzahlen – Forecast-Felder aus dem ERP (gesperrt) */
.pd-etable input.erp-gesperrt { background: var(--olive-tint); color: var(--muted); border-style: dashed; }
