/* Nachweisführung – eigenes Design „Werkbank“: Petrol + Türkis, Kupfer für Hinweise.
   Aufbau wie in allen Anwendungen des Baukastens (Seitenleiste, Karten, Status als Symbol + Text),
   Farben bewusst eigen. Keine externen Schriften (Datenschutz, CSP). */
:root {
  --ink: #0c2124; --ink-2: #112d31; --ink-3: #1a3f44; --ink-line: rgba(255,255,255,.08);
  --rail-text: #c6d9d8; --rail-dim: #7d9d9c;
  --akz: #2cc5b0; --akz-h: #22ad9a; --akz-d: #0a7468; --akz-soft: #dbf4ef;
  --kupfer: #c26a2b; --kupfer-bg: #fbeee3;
  --bg: #f2f5f4; --surface: #ffffff; --surface-2: #f7faf9; --surface-3: #ecf1f0;
  --line: #dee6e4; --line-strong: #c9d5d2;
  --text: #0f1f1e; --muted: #576a68; --faint: #879795;
  --ok: #137a4a; --ok-bg: #e2f3e9;
  --warn: #b03c12; --warn-bg: #fcebe2;
  --part: #8a5a00; --part-bg: #fdf1d6;
  --pend: #3d55b5; --pend-bg: #e8ecfb;
  --off: #67727a; --off-bg: #edf0f2;
  --focus: #2f6fed;
  --r-sm: 8px; --radius: 14px; --r-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(12,33,36,.05);
  --shadow: 0 1px 2px rgba(12,33,36,.04), 0 8px 24px -14px rgba(12,33,36,.2);
  --shadow-lg: 0 24px 60px -20px rgba(12,33,36,.38);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: light;
}
/* Dunkel: folgt dem System, bis jemand den Knopf „Hell/Dunkel“ drückt (data-theme, theme.js). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #081619; --surface: #0f2226; --surface-2: #132a2e; --surface-3: #183237; --line: #213c41; --line-strong: #2c4b51;
    --text: #e3eeec; --muted: #98b0ad; --faint: #6e8885; --akz-d: #5fe0cc; --akz-soft: #10302c;
    --kupfer: #f0a26b; --kupfer-bg: #33200f;
    --ok: #4fcf8e; --ok-bg: #11301f; --warn: #ff9a6b; --warn-bg: #36190f;
    --part: #ffcf6b; --part-bg: #33290f; --pend: #9fb0ff; --pend-bg: #1c2449;
    --off: #9aaab0; --off-bg: #1b2e33;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.3); --shadow: 0 1px 2px rgba(0,0,0,.25), 0 10px 28px -16px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --bg: #081619; --surface: #0f2226; --surface-2: #132a2e; --surface-3: #183237; --line: #213c41; --line-strong: #2c4b51;
    --text: #e3eeec; --muted: #98b0ad; --faint: #6e8885; --akz-d: #5fe0cc; --akz-soft: #10302c;
    --kupfer: #f0a26b; --kupfer-bg: #33200f;
    --ok: #4fcf8e; --ok-bg: #11301f; --warn: #ff9a6b; --warn-bg: #36190f;
    --part: #ffcf6b; --part-bg: #33290f; --pend: #9fb0ff; --pend-bg: #1c2449;
    --off: #9aaab0; --off-bg: #1b2e33;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.3); --shadow: 0 1px 2px rgba(0,0,0,.25), 0 10px 28px -16px rgba(0,0,0,.6);
    color-scheme: dark;
}

/* ---------- Grundlagen ---------- */
* { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.55;
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--akz) 70%, transparent); text-decoration-thickness: 1.5px;
  text-underline-offset: 3px; }
a:hover { color: var(--akz-d); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; margin: 0 0 .6rem; letter-spacing: -.005em; }
h1 { font-size: 1.65rem; font-weight: 650; letter-spacing: -.015em; }
h2 { font-size: 1.05rem; font-weight: 620; }
h3 { font-size: .98rem; font-weight: 620; }
p { margin: 0 0 .8rem; } p:last-child { margin-bottom: 0; }
strong, b { font-weight: 620; }
ul, ol { padding-left: 1.25rem; } li + li { margin-top: .2rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--akz); color: #000; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }
[hidden] { display: none !important; }
svg.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
svg.i.lg { width: 22px; height: 22px; }

/* ---------- Layout: Seitenleiste links ---------- */
.shell { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 100vh; }
.rail { background: var(--ink); color: var(--rail-text); padding: 1.1rem .8rem 1rem; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: .2rem; overflow-y: auto; border-right: 1px solid #07171a;
  background-image: radial-gradient(120% 50% at 0% 0%, rgba(45,212,191,.07), transparent 60%); }
.brand { display: flex; align-items: center; gap: .65rem; font-weight: 650; font-size: 1rem; color: #fff; letter-spacing: -.01em;
  text-decoration: none; padding: .25rem .55rem 1.1rem; line-height: 1.2; }
.brand:hover { color: #fff; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--akz); display: grid; place-items: center; flex: none;
  color: var(--ink); font-size: 1.05rem; box-shadow: inset 0 -2px 0 rgba(0,0,0,.12); }
.rail nav { display: flex; flex-direction: column; gap: 1px; }
.rail .grp { font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: var(--rail-dim); margin: 1.15rem .7rem .35rem; font-weight: 600; }
.rail a.nav { display: flex; gap: .7rem; align-items: center; color: var(--rail-text); text-decoration: none; padding: .5rem .7rem;
  border-radius: 9px; font-size: .92rem; font-weight: 500; position: relative; transition: background .12s, color .12s; }
.rail a.nav:hover { background: rgba(255,255,255,.05); color: #fff; }
.rail a.nav.on { background: rgba(255,255,255,.08); color: #fff; }
.rail a.nav.on::before { content: ""; position: absolute; left: -.8rem; top: .45rem; bottom: .45rem; width: 3px; border-radius: 0 3px 3px 0; background: var(--akz); }
.rail a.nav.on .ico { color: var(--akz); }
.rail .ico { width: 1.25rem; display: inline-grid; place-items: center; opacity: .95; color: var(--rail-dim); }
.rail a.nav:hover .ico { color: var(--rail-text); }
.rail a.nav .badge { margin-left: auto; }
.rail-foot { margin-top: auto; font-size: .8rem; color: var(--rail-dim); padding: .9rem .4rem 0; border-top: 1px solid var(--ink-line); }
.rail-foot form { display: inline; }
.rail-foot button:not(.theme-btn) { background: none; border: 0; color: var(--rail-text); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: rgba(255,255,255,.25); cursor: pointer; padding: 0; font: inherit; }
.rail-foot button:not(.theme-btn):hover { color: #fff; }
.rail-foot a { color: var(--rail-dim); }
.rail-user { display: flex; gap: .6rem; align-items: center; margin-bottom: .7rem; }
.rail-user .ini { width: 2rem; height: 2rem; border-radius: 50%; background: var(--ink-3); color: var(--akz); display: grid; place-items: center;
  font-weight: 650; font-size: .85rem; flex: none; }
.rail-user .wer { min-width: 0; line-height: 1.3; }
.rail-user .wer strong { display: block; color: #fff; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-meta { display: flex; align-items: center; gap: .6rem; justify-content: space-between; margin-top: .3rem; }
.main { padding: 1.8rem clamp(1rem, 2.6vw, 2.6rem) 4rem; width: 100%; min-width: 0; max-width: 1560px; }
.topline { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem 1.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.topline h1 { margin-bottom: .25rem; }
.topline > div:first-child > .muted { max-width: 72ch; }
.eyebrow { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--akz-d); font-weight: 650; margin-bottom: .35rem; display: block; }
.menu-btn { display: none; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .rail { position: fixed; inset: 0 auto 0 0; width: 272px; transform: translateX(-100%); transition: transform .22s ease; z-index: 50; }
  .rail.open { transform: none; box-shadow: 0 0 0 100vmax rgba(3,14,16,.45); }
  .menu-btn { display: flex; position: sticky; top: 0; z-index: 40; width: 100%; background: var(--ink); color: #fff;
    border: 0; padding: .8rem 1rem; font: inherit; font-weight: 600; gap: .6rem; align-items: center; cursor: pointer; }
  .main { padding: 1.2rem 1rem 4rem; }
  h1 { font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) { .rail { transition: none; } }

/* ---------- Bausteine ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow-sm); min-width: 0; }
.card + .card { margin-top: 1rem; }
.card > h2:first-child, .card > .row:first-child > h2 { margin-bottom: .9rem; }
.card-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .9rem; flex-wrap: wrap; }
.card-head h2 { margin: 0; }
.card-head .spacer + a, .card-head > a.small { font-size: .85rem; color: var(--muted); }
.grid > .card + .card, .grid > * + .card, .months > .card + .card { margin-top: 0; }
.grid { display: grid; gap: 1rem; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.stack > * + * { margin-top: .8rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--text); padding: .52rem .95rem; border-radius: 10px; font: inherit; font-size: .92rem;
  font-weight: 600; cursor: pointer; text-decoration: none; line-height: 1.2; box-shadow: var(--shadow-sm);
  transition: background .12s, border-color .12s, color .12s, box-shadow .12s; white-space: nowrap; }
.btn:hover { border-color: color-mix(in srgb, var(--akz) 60%, var(--line-strong)); background: var(--surface-2); color: inherit; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--akz); border-color: var(--akz); color: #04221e; box-shadow: 0 1px 0 rgba(0,0,0,.06), inset 0 1px 0 rgba(255,255,255,.25); }
.btn.primary:hover { background: var(--akz-h); border-color: var(--akz-h); color: #04221e; }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.dark:hover { background: var(--ink-3); border-color: var(--ink-3); color: #fff; }
.btn.danger { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); }
.btn.danger:hover { background: var(--warn-bg); color: var(--warn); border-color: var(--warn); }
.btn.small { padding: .32rem .65rem; font-size: .83rem; border-radius: 8px; }
.btn.ghost { border-color: transparent; background: transparent; box-shadow: none; }
.btn.ghost:hover { background: var(--surface-3); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- Status ---------- */
.st { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: .78rem; padding: .16rem .6rem .16rem .5rem;
  border-radius: 999px; white-space: nowrap; line-height: 1.5; }
.st::before { font-weight: 700; font-size: .85em; }
.st-besetzt { color: var(--ok); background: var(--ok-bg); } .st-besetzt::before { content: "✓"; }
.st-frei { color: var(--warn); background: var(--warn-bg); } .st-frei::before { content: "!"; }
.st-teilweise { color: var(--part); background: var(--part-bg); } .st-teilweise::before { content: "◐"; }
.st-beantragt { color: var(--pend); background: var(--pend-bg); } .st-beantragt::before { content: "⏳"; }
.st-entfallen { color: var(--off); background: var(--off-bg); text-decoration: line-through; } .st-entfallen::before { content: "✕"; }
.st-live { color: #fff; background: var(--ok); } .st-live::before { content: "●"; animation: puls 1.6s infinite; }
@keyframes puls { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .st-live::before { animation: none; } }

/* ---------- Dienstkarte: Datumsblock + Statuskante ---------- */
.duty { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: .8rem 1rem .8rem 1.05rem;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); position: relative; text-decoration: none;
  transition: border-color .12s, box-shadow .12s; }
.duty::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--line-strong); }
.duty.z-besetzt::before { background: var(--ok); } .duty.z-frei::before { background: var(--warn); }
.duty.z-teilweise::before { background: var(--part); } .duty.z-beantragt::before { background: var(--pend); }
.duty.z-entfallen { opacity: .65; }
.duty:hover { border-color: var(--line-strong); }
a.duty:hover { border-color: var(--akz); color: inherit; }
.duty + .duty { margin-top: .55rem; }
.datebox { text-align: center; background: var(--surface-2); border-radius: 10px; padding: .35rem 0 .3rem; border: 1px solid var(--line); line-height: 1.15; }
.datebox .wd { font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; color: var(--akz-d); font-weight: 650; }
.datebox .dd { font-size: 1.35rem; font-weight: 650; line-height: 1.15; letter-spacing: -.02em; }
.datebox .mm { font-size: .7rem; color: var(--muted); }
.duty .what { font-weight: 620; }
.duty .what a { text-decoration: none; } .duty .what a:hover { text-decoration: underline; }
.duty .when { font-size: .88rem; color: var(--text); }
.duty .who { font-size: .88rem; color: var(--muted); }
.duty .right { display: flex; flex-direction: column; align-items: flex-end; gap: .45rem; }
@media (max-width: 560px) { .duty { grid-template-columns: 54px minmax(0, 1fr); } .duty > .st, .duty > .right { grid-column: 2; justify-self: start; align-items: flex-start; flex-direction: row; flex-wrap: wrap; } }

/* ---------- Übersicht ---------- */
.hero { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: 1.6rem 1.75rem; position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.5rem 2.5rem; box-shadow: var(--shadow);
  background-image: radial-gradient(90% 140% at 100% 0%, rgba(45,212,191,.16), transparent 55%), linear-gradient(135deg, var(--ink) 0%, var(--ink-3) 100%); }
.hero > div + div { border-left: 1px solid var(--ink-line); padding-left: 2.5rem; }
.hero .lbl { font-size: .7rem; text-transform: uppercase; letter-spacing: .16em; color: #9aa2c6; font-weight: 600; display: flex; align-items: center; gap: .5rem; }
.hero .lbl .dot { width: 7px; height: 7px; border-radius: 50%; background: #6b7394; }
.hero .lbl .dot.an { background: #4fcf8e; box-shadow: 0 0 0 4px rgba(79,207,142,.18); }
.hero .big { font-size: 1.9rem; font-weight: 650; line-height: 1.15; margin: .45rem 0 .35rem; letter-spacing: -.02em; }
.hero .sub { color: #c8cde3; font-size: .95rem; }
.hero .count { font-size: 2.1rem; font-weight: 650; color: var(--akz); letter-spacing: -.02em; margin: .4rem 0 .3rem; font-variant-numeric: tabular-nums; }
.hero a { color: #fff; }
@media (max-width: 800px) { .hero { grid-template-columns: 1fr; padding: 1.3rem; } .hero > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--ink-line); padding-top: 1.2rem; } }
.todo { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: .5rem; }
.todo li { margin: 0; }
.todo a, .todo .item { display: flex; align-items: center; gap: .8rem; padding: .7rem .95rem; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); text-decoration: none; box-shadow: var(--shadow-sm); }
.todo a:hover { border-color: var(--akz); color: inherit; }
.todo .ti { width: 2rem; height: 2rem; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--akz-soft); color: var(--akz-d); }
.todo .ti.pend { background: var(--pend-bg); color: var(--pend); } .todo .ti.warn { background: var(--warn-bg); color: var(--warn); }
.todo .tx { flex: 1; min-width: 0; } .todo .tx small { display: block; color: var(--muted); font-size: .82rem; }
.todo .go { color: var(--faint); font-weight: 600; font-size: .85rem; white-space: nowrap; }
.gapbar { display: flex; gap: .8rem; align-items: center; border: 1px solid color-mix(in srgb, var(--warn) 35%, var(--line)); background: var(--warn-bg);
  color: var(--text); border-radius: 12px; padding: .75rem 1rem; margin: 1rem 0; flex-wrap: wrap; }
.gapbar strong { color: var(--warn); }
.kpi { font-size: 2.2rem; font-weight: 650; line-height: 1.1; letter-spacing: -.02em; }
.meter { height: 10px; border-radius: 99px; background: var(--off-bg); overflow: hidden; display: flex; }
.meter > span { display: block; height: 100%; }
.meter .m-ok { background: var(--ok); } .meter .m-pend { background: var(--pend); }
.meter .m-free { background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--warn) 75%, transparent) 0 5px, transparent 5px 9px); }
.legend { display: flex; gap: .4rem 1rem; flex-wrap: wrap; font-size: .82rem; color: var(--muted); margin-top: .55rem; align-items: center; }
.yearstrip { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; }
.yearstrip a { text-decoration: none; text-align: center; font-size: .72rem; color: var(--muted); }
.yearstrip .bar { height: 64px; border-radius: 7px; background: var(--surface-3); position: relative; overflow: hidden; margin-bottom: 5px; }
.yearstrip .bar span { position: absolute; left: 0; right: 0; bottom: 0; background: var(--ok); border-radius: 5px 5px 0 0; opacity: .9; }
.yearstrip a:hover .bar { box-shadow: inset 0 0 0 1.5px var(--akz); }
.yearstrip .pct { font-weight: 620; color: var(--text); font-size: .75rem; }
@media (max-width: 600px) { .yearstrip { grid-template-columns: repeat(6, 1fr); } }

/* ---------- Kalender ---------- */
.cal { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
.cal th { font-size: .7rem; text-transform: uppercase; color: var(--muted); letter-spacing: .1em; padding: .2rem; font-weight: 600; }
.cal th abbr { text-decoration: none; }
.cal td { vertical-align: top; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; height: 104px; padding: .4rem; }
.cal td.leer { background: transparent; border-color: transparent; }
.cal td.heute { border-color: var(--akz); box-shadow: inset 0 0 0 1px var(--akz); background: var(--surface); }
.cal .tag { font-weight: 620; font-size: .85rem; display: flex; justify-content: space-between; gap: .2rem; color: var(--muted); }
.cal td.heute .tag { color: var(--akz-d); }
.cal .ft { font-size: .68rem; color: var(--warn); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip { display: block; margin-top: .25rem; font-size: .72rem; padding: .16rem .4rem; border-radius: 6px; text-decoration: none; font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-left: 3px solid var(--line-strong); background: var(--surface); }
.chip.z-besetzt { border-color: var(--ok); background: var(--ok-bg); }
.chip.z-frei { border-color: var(--warn); background: var(--warn-bg); }
.chip.z-teilweise { border-color: var(--part); background: var(--part-bg); }
.chip.z-beantragt { border-color: var(--pend); background: var(--pend-bg); }
.chip.z-entfallen { text-decoration: line-through; opacity: .7; }
.chip:hover { filter: brightness(.97); color: inherit; }
@media (max-width: 760px) { .cal { border-spacing: 2px; } .cal td { height: 60px; padding: .2rem; } .chip span.nm { display: none; } }

.months { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 1200px) { .months { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 850px) { .months { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .months { grid-template-columns: 1fr; } }
.months h2 a { text-decoration: none; }
.mini { width: 100%; border-collapse: collapse; font-size: .78rem; text-align: center; margin-top: .4rem; }
.mini th { color: var(--faint); font-weight: 600; font-size: .66rem; padding-bottom: .2rem; }
.mini td { padding: 2px; }
.mini td a, .mini td span { display: block; border-radius: 6px; padding: 3px 0; text-decoration: none; }
.mini .d-besetzt { background: var(--ok-bg); color: var(--ok); font-weight: 650; }
.mini .d-frei { background: var(--warn-bg); color: var(--warn); font-weight: 650; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 50%, transparent); }
.mini .d-teilweise { background: var(--part-bg); color: var(--part); font-weight: 650; }
.mini .d-beantragt { background: var(--pend-bg); color: var(--pend); font-weight: 650; }
.mini .heute { box-shadow: inset 0 0 0 2px var(--akz); }

/* ---------- Tabellen & Formulare ---------- */
.table-wrap { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; }
table.list th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600;
  border-bottom: 1px solid var(--line-strong); padding: .55rem .7rem; white-space: nowrap; }
table.list td { border-bottom: 1px solid var(--line); padding: .65rem .7rem; vertical-align: top; }
table.list tr:last-child td { border-bottom: 0; }
table.list tbody tr:hover td, table.list tr:hover > td { background: var(--surface-2); }
table.list.small td { padding: .5rem .7rem; }
label { font-weight: 600; display: block; margin-bottom: .3rem; font-size: .9rem; }
input[type=text], input[type=search], input[type=email], input[type=url], input[type=number], input[type=date], input[type=time],
input[type=datetime-local], input[type=password], input:not([type]), select, textarea {
  width: 100%; padding: .55rem .75rem; border: 1px solid var(--line-strong); border-radius: 10px; font: inherit; font-size: .95rem;
  background: var(--surface); color: var(--text); transition: border-color .12s, box-shadow .12s; min-height: 2.5rem; }
input::placeholder, textarea::placeholder { color: var(--faint); }
textarea { min-height: 110px; font-family: var(--mono); font-size: .88rem; line-height: 1.5; }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--text) 25%, var(--line-strong)); }
input:focus, select:focus, textarea:focus { border-color: var(--focus); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent); }
input[type=checkbox], input[type=radio] { accent-color: var(--akz-h); width: 1.05rem; height: 1.05rem; }
.field { margin-bottom: 1.15rem; }
.help { font-size: .84rem; color: var(--muted); margin-top: .3rem; line-height: 1.5; }
.field.restart label::after { content: " ⟳ Neustart nötig"; color: var(--warn); font-size: .8rem; }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; }
legend { font-weight: 620; padding: 0 .3rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; cursor: pointer; }
.check input { margin-top: .2rem; flex: none; }

/* On/Off-Schiebeschalter (beschriftet) */
.switch { display: inline-flex; align-items: center; gap: .55rem; cursor: pointer; font-weight: 550; user-select: none; margin: 0; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 40px; height: 22px; border-radius: 99px; background: var(--surface-3); border: 1px solid var(--line-strong);
  position: relative; transition: background .15s, border-color .15s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: left .15s; }
.switch input:checked + .track { background: var(--ok); border-color: var(--ok); }
.switch input:checked + .track::after { left: 20px; }
.switch input:focus-visible + .track { outline: 2px solid var(--focus); outline-offset: 2px; }
.switch .state-on, .switch .state-off { font-size: .75rem; font-weight: 650; min-width: 1.9rem; }
.switch input:checked ~ .state-off, .switch input:not(:checked) ~ .state-on { display: none; }
.switch .state-on { color: var(--ok); } .switch .state-off { color: var(--faint); }

.flash { padding: .75rem 1rem; border-radius: 12px; margin-bottom: .8rem; border: 1px solid; display: flex; gap: .65rem; align-items: baseline; font-size: .94rem; }
.flash-ok { background: var(--ok-bg); border-color: color-mix(in srgb, var(--ok) 30%, transparent); } .flash-ok::before { content: "✓"; font-weight: 700; color: var(--ok); }
.flash-fehler { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 35%, transparent); } .flash-fehler::before { content: "⚠"; font-weight: 700; color: var(--warn); }
.flash-info { background: var(--pend-bg); border-color: color-mix(in srgb, var(--pend) 25%, transparent); } .flash-info::before { content: "ℹ"; font-weight: 700; color: var(--pend); }
.note { border-left: 3px solid var(--akz); background: var(--surface-2); padding: .75rem 1rem; border-radius: 0 10px 10px 0; font-size: .92rem; }
.note.warn { border-color: var(--warn); background: var(--warn-bg); }
.note.ok { border-color: var(--ok); background: var(--ok-bg); }
.rp-balken { border-left-width: 6px; }
.tabs { display: flex; gap: .15rem; flex-wrap: wrap; margin-bottom: 1rem; border-bottom: 1px solid var(--line); }
.tabs a { padding: .55rem .8rem; text-decoration: none; color: var(--muted); font-weight: 550; font-size: .9rem; position: relative; }
.tabs a:hover { color: var(--text); }
.tabs a.on { color: var(--text); font-weight: 620; }
.tabs a.on::after { content: ""; position: absolute; left: .6rem; right: .6rem; bottom: -1px; height: 2px; border-radius: 2px; background: var(--akz); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.4rem; margin: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 550; }
.ok-t { color: var(--ok); font-weight: 620; } .ok-t::before { content: "✓ "; }
.bad-t { color: var(--warn); font-weight: 620; } .bad-t::before { content: "✕ "; }
pre { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: .8rem; overflow-x: auto; font-size: .84rem; }
code { font-family: var(--mono); font-size: .88em; background: var(--surface-3); padding: .08em .35em; border-radius: 5px; }
pre code { background: none; padding: 0; }
.mailframe { width: 100%; height: 420px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.empty { text-align: center; padding: 2rem 1rem; color: var(--muted); font-size: .92rem; }
.empty::before { content: "▢"; display: block; font-size: 1.6rem; margin-bottom: .3rem; color: var(--faint); }
td.empty { padding: 1.6rem 1rem; }
details summary { cursor: pointer; font-weight: 600; }
details summary::marker { color: var(--faint); }
.help-art { max-width: 900px; }
.help-art h2 { margin-top: 2rem; padding-top: .6rem; border-top: 1px solid var(--line); }
.help-toc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem 1.2rem; padding: 0; margin: 0; list-style: none; }
.help-toc h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 .3rem; }
.help-toc ul { margin: 0 0 .6rem; padding-left: 1.1rem; }
@media (max-width: 900px) { .help-toc { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .help-toc { grid-template-columns: 1fr; } }
.help-kat > h2.kat { margin-top: 2.6rem; border-top: 0; padding-top: 0; font-size: .78rem; text-transform: uppercase;
  letter-spacing: .14em; color: var(--akz-d); display: flex; align-items: center; gap: .7rem; font-weight: 650; }
.help-kat > h2.kat::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.help-sec > h3 { font-size: 1.12rem; margin-top: 1.8rem; padding-top: .2rem; }
.help-sec h4 { font-size: .98rem; margin: 1.1rem 0 .4rem; }
.help-sec { line-height: 1.65; }
.einst { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--akz); border-radius: 10px;
  padding: .65rem .95rem; margin: .7rem 0 1rem; font-size: .88rem; box-shadow: var(--shadow-sm); }
.einst .kopf { font-weight: 620; display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap; justify-content: space-between; }
.einst dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .15rem 1rem; margin: .35rem 0 0; }
.einst dt { color: var(--muted); }
.einst dd { margin: 0; font-weight: 600; text-align: right; }
.einst dd.geaendert, [data-einst].geaendert { outline: 2px solid var(--akz); outline-offset: 2px; border-radius: 3px; }
.help-suche { display: flex; gap: .6rem; align-items: center; margin: 1rem 0; }
.help-suche label { margin: 0; white-space: nowrap; }
.help-suche input { max-width: 420px; }

/* Anmeldung per Namensauswahl */
.login-wahl ul { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: .4rem; max-height: 55vh; overflow-y: auto; }
.login-wahl li + li { margin-top: 0; }
.login-person { width: 100%; display: grid; grid-template-columns: 2.25rem 1fr auto auto; gap: .75rem; align-items: center;
  text-align: left; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: .6rem .8rem; cursor: pointer; transition: border-color .12s, background .12s, transform .12s; }
.login-person:hover, .login-person:focus-visible { border-color: var(--akz); background: var(--surface-2); }
.login-person:hover .pfeil { transform: translateX(3px); color: var(--akz-d); }
.login-person .ini { width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--ink); color: var(--akz);
  display: grid; place-items: center; font-weight: 650; }
.login-person .nm { font-weight: 600; }
.login-person .pfeil { color: var(--faint); transition: transform .12s, color .12s; }
.login-person .zuletzt { display: none; color: var(--muted); }
.login-person.letzte { border-color: var(--akz); box-shadow: inset 3px 0 0 var(--akz); }
.login-person.letzte .zuletzt { display: inline; }

/* Installierte App (Edge): Fenster-Steuerelemente-Overlay. Ohne Ziehleiste ließe sich das
   Fenster nicht verschieben – daher eine eigene, ziehbare Titelleiste im Bereich der Titelzeile. */
.titlebar { display: none; }
@media (display-mode: window-controls-overlay) {
  .titlebar { display: flex; align-items: center; gap: .5rem; position: fixed; z-index: 200;
    left: env(titlebar-area-x, 0); top: env(titlebar-area-y, 0);
    width: env(titlebar-area-width, 100%); height: env(titlebar-area-height, 33px);
    background: var(--ink); color: #dfe3f3; font-size: .8rem; padding: 0 .8rem;
    -webkit-app-region: drag; app-region: drag; user-select: none; }
  .titlebar .brand-mark { width: 20px; height: 20px; border-radius: 6px; font-size: .75rem; }
  body { padding-top: env(titlebar-area-height, 33px); }
  .rail { top: env(titlebar-area-height, 33px); height: calc(100vh - env(titlebar-area-height, 33px)); }
}
.loading::after { content: " …"; }

/* ---------- Anmeldung / Fehlerseiten / Unterschriftslink ---------- */
.center-page { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; background: var(--ink);
  background-image: radial-gradient(60% 50% at 15% 0%, rgba(45,212,191,.14), transparent 70%), radial-gradient(70% 60% at 100% 100%, #1b4044, transparent 70%); }
.center-card { background: var(--surface); color: var(--text); border-radius: 20px; padding: 2.1rem 2.1rem 1.8rem; width: 100%; max-width: 440px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.06); }
.center-card.weit { max-width: 980px; }
.center-card { min-width: 0; } .center-card .weiter-wahl label > span { min-width: 0; overflow-wrap: anywhere; }
.center-card .brand { color: var(--text); padding: 0 0 1.4rem; }
.center-card .brand:hover { color: var(--text); }
.center-card h1 { font-size: 1.5rem; }
.center-fuss { margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.codeinput { font-size: 1.9rem !important; letter-spacing: .55rem; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; min-height: 3.4rem !important; }

/* ---------- Druck ---------- */
@media print {
  .rail, .menu-btn, .no-print, .flash, .btn { display: none !important; }
  .shell { display: block; } .main { padding: 0; max-width: none; }
  body { background: #fff; color: #000; }
}

/* ---------- Eintragen, Ausgleich ---------- */
.g-auto { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.g-wide { grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr); }
@media (max-width: 1100px) { .g-wide { grid-template-columns: 1fr; } }
.konto { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 900px) { .konto { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.konto .card { padding: 1.05rem 1.2rem; }
.konto > .card + .card { margin-top: 0; }
.konto .zahl { font-size: 2rem; font-weight: 650; line-height: 1.15; letter-spacing: -.02em; margin: .25rem 0 .15rem; font-variant-numeric: tabular-nums; }
.konto .zahl small { font-size: .85rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.konto .haupt { color: #fff; border-color: var(--ink-3); background: linear-gradient(135deg, var(--ink) 0%, var(--ink-3) 100%); }
.konto .haupt .muted, .konto .haupt .zahl small { color: #a9b0cf; }
.konto .haupt .zahl { color: var(--akz); }
.betrag-plus { color: var(--ok); font-weight: 620; } .betrag-minus { color: var(--warn); font-weight: 620; }
.chips { display: flex; gap: .35rem; flex-wrap: wrap; }
.chip-btn { border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted); border-radius: 999px; padding: .32rem .85rem;
  font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; transition: all .12s; }
.chip-btn:hover { color: var(--text); border-color: var(--text); }
.chip-btn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
:root[data-theme="dark"] .chip-btn[aria-pressed="true"] { background: var(--akz); color: #04221e; border-color: var(--akz); }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 11px; overflow: hidden; background: var(--surface); }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label { margin: 0; padding: .5rem .95rem; cursor: pointer; font-weight: 620; font-size: .92rem; border-right: 1px solid var(--line); }
.seg label:last-of-type { border-right: 0; }
.seg input:checked + label { background: var(--akz); color: #04221e; }
.seg input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: -3px; }
.seg input:disabled + label { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.borse { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: .85rem; }
.slot { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 1rem 1.05rem; display: flex; flex-direction: column;
  gap: .6rem; position: relative; overflow: hidden; transition: box-shadow .15s, border-color .15s; }
/* Nur besondere Dienste (mit Feiertag) bekommen eine Kante – „frei“ ist auf dieser Seite der Normalfall. */
.slot.kind-kombiniert::before, .slot.kind-feiertag::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--akz), color-mix(in srgb, var(--akz) 30%, transparent)); }
.slot:hover { box-shadow: var(--shadow); border-color: var(--line-strong); }
.slot .kopf { display: flex; align-items: flex-start; gap: .8rem; }
.slot .kopf .datebox { width: 58px; flex: none; }
.slot .kopf .what { font-weight: 620; line-height: 1.3; margin-bottom: .3rem; }
.slot .kopf .what a { text-decoration: none; } .slot .kopf .what a:hover { text-decoration: underline; }
.slot .gut { margin-left: auto; text-align: right; flex: none; }
.slot .gut b { display: block; font-size: 1.2rem; color: var(--ok); font-weight: 650; line-height: 1.2; }
.slot .gut span { font-size: .7rem; color: var(--muted); }
.slot .when { color: var(--text); }
.slot .fuss { margin-top: auto; display: flex; gap: .5rem; align-items: center; padding-top: .3rem; }
.slot.weg { opacity: .55; pointer-events: none; }
.slot.weg::after { content: "✓ Übernommen"; position: absolute; inset: auto 1rem 1rem auto; font-weight: 700; color: var(--ok); }

/* Dialog */
.dlg-bg { position: fixed; inset: 0; background: rgba(8, 11, 22, .55); backdrop-filter: blur(2px); display: grid; place-items: center; z-index: 100; padding: 1rem;
  animation: fade .12s ease-out; }
.dlg { background: var(--surface); color: var(--text); border-radius: var(--r-lg); padding: 1.5rem 1.6rem; width: min(520px, 100%);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line); animation: hoch .16s ease-out; }
.dlg h2 { margin-bottom: .8rem; font-size: 1.2rem; }
.dlg .row { justify-content: flex-end; margin-top: 1.3rem; }
.dlg .zeit { font-size: 1.05rem; font-weight: 620; }
@keyframes fade { from { opacity: 0; } }
@keyframes hoch { from { opacity: 0; transform: translateY(6px) scale(.99); } }
@media (prefers-reduced-motion: reduce) { .dlg, .dlg-bg, .toast { animation: none; } }
.toasts { position: fixed; right: 1rem; bottom: 4rem; display: flex; flex-direction: column; gap: .5rem; z-index: 110; max-width: min(420px, 92vw); }
.toast { padding: .8rem 1rem; border-radius: 12px; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); display: flex; gap: .6rem;
  animation: hoch .15s ease-out; font-size: .92rem; }
.toast.ok::before { content: "✓"; color: #4fcf8e; font-weight: 700; }
.toast.fehler { background: #5a1d0c; } .toast.fehler::before { content: "⚠"; font-weight: 700; }
.badge { display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; padding: 0 .4rem; border-radius: 99px; background: var(--akz);
  color: #04221e; font-size: .72rem; font-weight: 700; vertical-align: .1em; margin-left: .3rem; }
.badge.grau { background: var(--surface-3); color: var(--muted); }
.install { display: none; } .install.zeigen { display: inline-flex; }
.wn { border-left: 3px solid var(--akz); }
.wn h3 { margin: 1rem 0 .3rem; } .wn ul { margin: .2rem 0 .6rem; padding-left: 1.2rem; }
.vtag { display: inline-block; font-weight: 650; background: var(--ink); color: #fff; padding: .08rem .5rem; border-radius: 7px; margin-right: .4rem; font-size: .85rem; }
.rail a.nav.install { display: none; } .rail a.nav.install.zeigen { display: flex; }

/* Hell/Dunkel-Knopf (ein Knopf, wie in allen drei Anwendungen) */
.theme-btn { background: transparent; border: 1px solid rgba(255,255,255,.16); color: var(--rail-text); border-radius: 999px;
  width: 2rem; height: 2rem; cursor: pointer; font-size: .9rem; line-height: 1; display: inline-grid; place-items: center; flex: none; }
.theme-btn:hover { border-color: var(--akz); color: #fff; }

/* Konsole: Bereiche (Segmente) + Seiten (Reiter) – gleiche Bedienung wie Hotline-Planner und Schulungsplattform */
.konsole-kopf .topline { align-items: center; margin-bottom: 1rem; }
.hilfe-knopf { font-size: .85rem; font-weight: 600; text-decoration: none; border: 1px solid var(--line-strong); border-radius: 999px;
  padding: .32rem .85rem; color: var(--muted); background: var(--surface); box-shadow: var(--shadow-sm); }
.hilfe-knopf:hover { color: var(--text); border-color: var(--akz); }
.bereiche { display: inline-flex; gap: .2rem; padding: .25rem; background: var(--surface-3); border: 1px solid var(--line);
  border-radius: 12px; margin-bottom: .7rem; flex-wrap: wrap; }
.bereiche a { padding: .38rem 1rem; border-radius: 9px; text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--muted); }
.bereiche a.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.bereiche a:hover { color: var(--text); }
.konsole-kopf .tabs { margin-bottom: 1.4rem; }

/* Versandweg (zwei Karten) */
.wege { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .6rem; margin: .3rem 0 .2rem; }
.weg { display: flex; gap: .6rem; align-items: center; border: 1px solid var(--line-strong); border-radius: 12px; padding: .75rem .95rem;
  background: var(--surface); cursor: pointer; font-weight: 500; margin: 0; }
.weg.weg-aktiv { border-color: var(--akz); box-shadow: 0 0 0 3px color-mix(in srgb, var(--akz) 20%, transparent); }

/* ---- Meldungen, Feedback-Knopf, Versionen, Wartung ---------------------------- */
.pre { white-space: pre-wrap; margin: .4rem 0; }
pre.ausgabe { white-space: pre-wrap; max-height: 22rem; overflow: auto; font-size: .78rem; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 8px; padding: .6rem; }
.meldung.fehler { border-left: 3px solid var(--warn); } .meldung.idee { border-left: 3px solid var(--pend); }
.meldung details { margin-top: .5rem; }
.melder-btn { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 60; border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--text); border-radius: 999px; padding: .45rem .95rem; font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; box-shadow: var(--shadow); }
.melder-btn:hover { border-color: var(--akz); }
.melder-box { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 61; width: min(25rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem);
  overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow-lg); }
.melder-kopf { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.melder-zu { background: none; border: 0; color: var(--muted); font-size: 1.3rem; cursor: pointer; }
.melder-box input[type="text"], .melder-box textarea { width: 100%; margin-bottom: .5rem; }
.melder-pfad { margin: .1rem 0 .6rem; font-size: .78rem; color: var(--muted); overflow-wrap: anywhere; }
.melder-bild { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.melder-datei { cursor: pointer; }
.melder-hinweis { font-size: .78rem; color: var(--muted); }
.melder-fuss { display: flex; align-items: center; gap: .8rem; margin-top: .8rem; }
.fb-art { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: .6rem; }
.fb-art-knopf { position: relative; cursor: pointer; margin: 0; }
.fb-art-knopf input { position: absolute; opacity: 0; width: 0; height: 0; }
.fb-art-inhalt { display: block; border: 1px solid var(--line-strong); border-radius: 10px; padding: .5rem .6rem; }
.fb-art-knopf input:focus-visible + .fb-art-inhalt { outline: 2px solid var(--focus); }
.fb-art-knopf input:checked + .fb-art-inhalt { border-color: var(--akz); background: var(--surface-2); }
.fb-art-fehler input:checked + .fb-art-inhalt { border-color: var(--warn); }
.fb-art-wort { font-weight: 650; } .fb-art-sub { display: block; font-size: .74rem; color: var(--muted); font-weight: 400; }
.fb-zeile { display: flex; align-items: center; gap: .6rem; } .fb-zeile .melder-pfad { flex: 1; min-width: 0; }
.fb-bilder { display: flex; gap: .45rem; flex-wrap: wrap; margin-top: .6rem; }
.fb-kachel { position: relative; margin: 0; width: 6.4rem; }
.fb-kachel img { width: 100%; height: 4.2rem; object-fit: cover; border: 1px solid var(--line); border-radius: 6px; display: block; }
.fb-kachel figcaption { font-size: .7rem; color: var(--muted); text-align: center; }
.fb-kachel-weg { position: absolute; top: -.35rem; right: -.35rem; width: 1.4rem; height: 1.4rem; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer; line-height: 1; }
.kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .8rem; margin-bottom: 1.2rem; }
.kennzahl { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .85rem 1rem; box-shadow: var(--shadow-sm); }
.kennzahl b { display: block; font-size: 1.4rem; font-family: var(--font-head); font-weight: 650; }
.kennzahl span { color: var(--muted); font-size: .82rem; }
.kennzahl.hl { background: var(--ink); color: #fff; border-color: var(--ink); } .kennzahl.hl span { color: #c9cde0; }
.vers-raster { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 1.2rem; align-items: start; }
@media (max-width: 900px) { .vers-raster { grid-template-columns: 1fr; } }
.zeitleiste { list-style: none; margin: 0; padding: 0 0 0 1.2rem; border-left: 2px solid var(--line); }
.zeitleiste > li { position: relative; margin-bottom: 1rem; }
.zeitleiste > li::before { content: ""; position: absolute; left: -1.62rem; top: 1.2rem; width: .75rem; height: .75rem; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--line-strong); }
.zeitleiste > li.aktuell::before { background: var(--akz); border-color: var(--akz); }
.vers-kern { font-weight: 600; margin: .5rem 0; }
.vers-rubrik h3 { font-size: .92rem; margin: .8rem 0 .3rem; } .vers-rubrik ul { margin: 0; padding-left: 1.2rem; }
.vers-icon { display: inline-grid; place-items: center; width: 1.3rem; height: 1.3rem; border-radius: 50%; margin-right: .35rem;
  font-size: .8rem; background: var(--surface-2); border: 1px solid var(--line); }
.vers-rubrik.added .vers-icon { color: var(--ok); } .vers-rubrik.fixed .vers-icon { color: var(--pend); } .vers-rubrik.removed .vers-icon { color: var(--warn); }
.vers-aeltere > summary { cursor: pointer; margin: .5rem 0 1rem; color: var(--muted); }
@media print { .melder-btn, .melder-box { display: none !important; } }

/* Hilfe: Inhaltsverzeichnis links, Wiki in der Mitte (wie in allen drei Anwendungen) */
.hilfe-raster { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 2rem; align-items: start; }
.hilfe-toc { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow: auto; display: flex; flex-direction: column;
  font-size: .86rem; border-right: 1px solid var(--line); padding-right: .8rem; }
.hilfe-toc strong { margin: 1rem 0 .3rem .4rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); font-weight: 650; }
.hilfe-toc a { text-decoration: none; padding: .22rem .45rem; border-radius: 7px; color: var(--muted); }
.hilfe-toc a:hover { background: var(--surface-3); color: var(--text); }
.hilfe-k { scroll-margin-top: 1rem; } .hilfe-k h3 { margin-top: 1.4rem; }
.hilfe-werte td:first-child { font-weight: 600; width: 30%; }
.hilfe-mini { font-size: .78rem; font-weight: 600; white-space: nowrap; }
:target { scroll-margin-top: 1rem; } section:target > h3, h2:target { color: var(--akz-d); }
@media (max-width: 900px) { .hilfe-raster { grid-template-columns: 1fr; } .hilfe-toc { position: static; max-height: none; border: 0;
  flex-direction: row; flex-wrap: wrap; gap: .2rem; } .hilfe-toc strong { width: 100%; } }

/* ---------- 2.2.0: Online-Unterschrift ---------- */
.schritte { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; counter-reset: s; }
.schritte li { margin: 0; padding: .7rem .9rem .7rem 2.8rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  position: relative; font-size: .88rem; color: var(--muted); counter-increment: s; }
.schritte li strong { display: block; color: var(--text); font-size: .92rem; }
.schritte li::before { content: counter(s); position: absolute; left: .85rem; top: .8rem; width: 1.45rem; height: 1.45rem; border-radius: 50%;
  display: grid; place-items: center; font-size: .78rem; font-weight: 700; background: var(--surface-3); color: var(--muted); }
.schritte li.fertig::before { content: "✓"; background: var(--ok-bg); color: var(--ok); }
.schritte li.jetzt { border-color: var(--akz); box-shadow: 0 0 0 3px color-mix(in srgb, var(--akz) 15%, transparent); }
.schritte li.jetzt::before { background: var(--akz); color: #04221e; }
@media (max-width: 760px) { .schritte { grid-template-columns: 1fr; } }
.papier { background: #fff; color: #111; border: 1px solid var(--line); border-radius: 6px; padding: 2.2rem 2.4rem; box-shadow: var(--shadow);
  max-height: 34rem; overflow: auto; font-family: Arial, "Liberation Sans", sans-serif; font-size: .9rem; line-height: 1.45; }
.papier.offen { max-height: none; }
.papier table { border-collapse: collapse; width: 100%; }
.papier .vb-kopf td, .papier .vb-meta th, .papier .vb-meta td { border: 1px solid #000; padding: .35rem .5rem; vertical-align: top; }
.papier .vb-abt { width: 20%; text-align: center; font-weight: bold; font-size: 1.2rem; }
.papier .vb-titel { text-align: center; }
.papier .vb-logo { width: 19%; text-align: center; } .papier .vb-logo img { max-width: 100%; max-height: 60px; }
.papier .vb-meta { margin: .6rem 0 1.4rem; font-size: .72rem; } .papier .vb-meta th { text-align: right; width: 20%; }
.papier .vb-seite { display: none; }
.papier .vb-ueber { font-size: .95rem; font-weight: normal; text-decoration: underline; margin: 0 0 1rem; }
.papier .vb-text { text-align: justify; } .papier .vb-text p { margin: 0 0 .75rem; }
.papier .vb-text .einzug { margin-left: 3rem; text-align: left; }
.papier .tab { display: inline-block; width: 4rem; }
.papier .vb-unterschriften { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.2rem; flex-wrap: wrap; }
.papier .vb-unterschriften > div { width: 30%; min-width: 9rem; font-size: .82rem; }
.papier .linie { border-top: 1px solid #000; width: 9rem; margin-bottom: .6rem; }
.papier .sig-platz { height: 3.6rem; display: flex; align-items: flex-end; }
.papier .sig-bild { max-height: 3.4rem; max-width: 11rem; }
.papier .sig-text { font-family: Georgia, "DejaVu Serif", serif; font-style: italic; font-size: 1.25rem; }
.papier .sig-meta { font-size: .68rem; color: #555; margin-top: .3rem; }
.papier .vb-fuss { font-size: .68rem; color: #999; text-align: right; margin-top: 1.5rem; }
.papier .vb-hinweis { border: 2px solid #b00; color: #b00; padding: .3rem .6rem; font-weight: bold; }
.papier .vb-wasserzeichen { display: none; }
.felder { display: flex; flex-wrap: wrap; gap: .4rem; }
.feld { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px;
  background: var(--surface-3); color: var(--muted); white-space: nowrap; }
.feld::before { content: "○"; }
.feld.ja { background: var(--ok-bg); color: var(--ok); } .feld.ja::before { content: "✓"; }
.sigpad { border: 1px dashed var(--line-strong); border-radius: 12px; background: #fff; position: relative; touch-action: none; }
.sigpad canvas { display: block; width: 100%; height: 180px; cursor: crosshair; border-radius: 12px; }
.sigpad .linie-hint { position: absolute; left: 1.5rem; right: 1.5rem; bottom: 2.6rem; border-top: 1px solid #c9c4b8; pointer-events: none; }
.sigpad .x-hint { position: absolute; left: 1.4rem; bottom: 2.8rem; color: #a8a297; font-size: 1.1rem; pointer-events: none; }
.sigpad .leer-hint { position: absolute; inset: 0; display: grid; place-items: center; color: #a8a297; font-size: .9rem; pointer-events: none; }
.sigpad.hat .leer-hint { display: none; }
.sig-getippt { font-family: Georgia, "DejaVu Serif", serif; font-style: italic; font-size: 1.6rem; color: #111; background: #fff; border: 1px dashed var(--line-strong);
  border-radius: 12px; padding: 1.4rem 1.5rem; min-height: 180px; display: flex; align-items: flex-end; }
.sig-wahl { margin-bottom: .7rem; }
.linkbox { display: flex; gap: .5rem; align-items: stretch; }
.linkbox input { font-family: var(--mono); font-size: .85rem; }
.ergebnis { border: 1px solid color-mix(in srgb, var(--ok) 35%, var(--line)); background: var(--ok-bg); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin-bottom: 1rem; }
.offen-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.offen-liste li { margin: 0; }
.offen-liste label { display: flex; gap: .8rem; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: .7rem .9rem;
  margin: 0; font-weight: 500; cursor: pointer; background: var(--surface); }
.offen-liste label:hover { border-color: var(--line-strong); }
.offen-liste label:has(input:checked) { border-color: var(--akz); background: var(--surface-2); }
.offen-liste .nm { font-weight: 620; } .offen-liste .meta { color: var(--muted); font-size: .84rem; }
.offen-liste a { margin-left: auto; font-size: .85rem; white-space: nowrap; }

/* Dienstkarten in schmalen Spalten (z. B. „Meine Dienste“ neben der Börse): Status/Knopf unter den Text */
.card { container-type: inline-size; }
@container (max-width: 440px) {
  .duty { grid-template-columns: 54px minmax(0, 1fr); }
  .duty > .st, .duty > .right { grid-column: 2; justify-self: start; align-items: center; flex-direction: row; flex-wrap: wrap; }
}

/* Zeilenliste: wie eine Tabelle, bricht aber auf schmalen Karten um (Aktionen rutschen nach unten statt abgeschnitten) */
.zeilen { list-style: none; margin: 0; padding: 0; }
.zeilen > li { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.4rem; padding: .85rem 0; border-top: 1px solid var(--line); margin: 0; }
.zeilen > li:first-child { border-top: 0; padding-top: .2rem; }
.zeilen .haupt { flex: 1 1 13rem; min-width: 0; }
.zeilen .haupt .meta, .zeilen .neben .meta { display: block; color: var(--muted); font-size: .82rem; }
.zeilen .neben { flex: 0 0 auto; font-size: .9rem; }
.zeilen .wert { font-weight: 620; font-variant-numeric: tabular-nums; }
.zeilen .akt { display: flex; gap: .4rem; margin-left: auto; flex-wrap: wrap; }
.zeilen .akt form { display: flex; gap: .4rem; }
table.list.small th { white-space: normal; }

/* Einstellungen in Gruppen (Versand & Postfach) */
.einst-gruppen .card h2 { margin-bottom: .2rem; }
.einst-gruppen .gruppen-text { margin: 0 0 1.1rem; }
.feld-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.4rem; }
.feld-raster > .field:has(.switch), .feld-raster > .field:has(.wege), .feld-raster > .field:has(textarea) { grid-column: 1 / -1; }
.feld-raster > .field:last-child { margin-bottom: 0; }
.feld-raster input[style*="max-width"] { max-width: none !important; }
@media (max-width: 700px) { .feld-raster { grid-template-columns: 1fr; } }
.speichern-leiste { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 1rem; align-items: center; padding: .9rem 1.1rem;
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(6px); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); }
.mail-status .kennzahl { padding: .6rem .8rem; } .mail-status .kennzahl b { font-size: 1.15rem; }
.mail-status .kennzahlen { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Aufforderung senden */
.auff-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 1fr); gap: 1rem; align-items: start; }
.auff-vorschau { position: sticky; top: 1rem; }
@media (max-width: 1100px) { .auff-raster { grid-template-columns: 1fr; } .auff-vorschau { position: static; } }
.wahl-liste { max-height: 26rem; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); padding: .3rem; }
.wahl-monat { position: sticky; top: -.3rem; z-index: 1; font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 650;
  color: var(--muted); background: var(--surface-2); padding: .55rem .6rem .3rem; }
.wahl { display: grid; grid-template-columns: auto 2.6rem minmax(0, 1fr); gap: .75rem; align-items: center; margin: 0 0 2px; padding: .5rem .6rem;
  border-radius: 9px; font-weight: 500; cursor: pointer; border: 1px solid transparent; }
.wahl:hover { background: var(--surface); border-color: var(--line); }
.wahl:has(input:checked) { background: var(--surface); border-color: color-mix(in srgb, var(--akz) 55%, var(--line)); }
.wahl-tag { text-align: center; font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); line-height: 1.1; }
.wahl-tag b { display: block; font-size: 1.05rem; color: var(--text); letter-spacing: 0; }
.wahl-text { min-width: 0; } .wahl-text strong { display: block; font-weight: 600; font-size: .92rem; }
.wahl-text small { display: block; color: var(--muted); font-size: .8rem; }
.senden-box { border-top: 1px solid var(--line); padding-top: 1rem; }

/* Feedback (Admin): Auslöser in der Seitenleiste statt schwebend über dem Inhalt; Panel unten rechts */
.rail .nav-knopf { display: flex; gap: .7rem; align-items: center; width: 100%; background: none; border: 0; color: var(--rail-text);
  font: inherit; font-size: .92rem; font-weight: 500; padding: .5rem .7rem; border-radius: 9px; cursor: pointer; text-align: left; }
.rail .nav-knopf:hover { background: rgba(255,255,255,.05); color: #fff; }
.rail .nav-knopf[hidden] { display: none; }
.melder-box { width: min(26rem, calc(100vw - 2rem)); padding: 1.1rem 1.2rem 1.2rem; border-radius: var(--r-lg); border-top: 3px solid var(--akz); }
.melder-kopf { margin-bottom: .8rem; } .melder-kopf strong { font-size: 1.05rem; font-family: var(--font-head); }
.melder-zu { width: 2rem; height: 2rem; border-radius: 8px; display: grid; place-items: center; line-height: 1; }
.melder-zu:hover { background: var(--surface-3); color: var(--text); }
.melder-box input[type="text"], .melder-box textarea { margin-bottom: .6rem; }
.melder-box textarea { font-family: var(--font); font-size: .92rem; min-height: 96px; }
.fb-art-inhalt { padding: .55rem .7rem; }
.fb-zeile { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .6rem; align-items: center; margin-bottom: .6rem; }
.fb-zeile .melder-pfad { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-zeile .melder-pfad code { font-size: .75rem; }
.fb-zeile select.fb-prio { width: auto; min-height: 2.1rem; padding: .3rem 2rem .3rem .6rem; font-size: .85rem; }
.melder-bild { padding: .6rem; border: 1px dashed var(--line-strong); border-radius: 10px; background: var(--surface-2); }
.melder-fuss { justify-content: space-between; margin-top: 1rem; }
.uebernahme-form { align-items: center; }
.uebernahme-form select { width: auto; }
.uebernahme-form input[type=text] { width: 9.5rem; }
.uebernahme-form input[type=date] { width: auto; }
details > summary.small { font-weight: 550; color: var(--muted); }
.dateiliste { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .4rem; }
.dateiliste li { margin: 0; }
.dateiliste a { display: flex; gap: .7rem; align-items: center; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 12px;
  text-decoration: none; background: var(--surface-2); }
.dateiliste a:hover { border-color: var(--akz); color: inherit; }
.dateiliste a svg { color: var(--ok); width: 22px; height: 22px; }
.dateiliste strong { display: block; font-weight: 620; } .dateiliste small { display: block; color: var(--muted); font-size: .8rem; }


/* =====================================================================================
   Nachweisführung – eigene Bausteine
   ===================================================================================== */
.brand-mark svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mono { font-family: var(--mono); font-size: .88em; }
.nr { color: var(--muted); font-variant-numeric: tabular-nums; }

/* Status offen / überfällig – immer Symbol + Text */
.st-offen { color: var(--kupfer); background: var(--kupfer-bg); } .st-offen::before { content: "✎"; }
.st-ueberfaellig { color: var(--warn); background: var(--warn-bg); } .st-ueberfaellig::before { content: "!"; }

/* Kennzahlen */
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .8rem; margin-bottom: 1.2rem; }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi-k { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem;
  text-decoration: none; box-shadow: var(--shadow-sm); transition: border-color .12s, transform .12s; }
.kpi-k:hover { border-color: var(--akz); color: inherit; }
.kpi-k b { display: block; font-size: 1.75rem; font-weight: 650; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi-k span { color: var(--muted); font-size: .84rem; }
.kpi-k.hl { background: linear-gradient(135deg, var(--ink) 0%, var(--ink-3) 100%); border-color: var(--ink); color: #fff; }
.kpi-k.hl span { color: var(--rail-text); } .kpi-k.hl b { color: var(--akz); }
.kpi-k.warn b { color: var(--warn); } .kpi-k.kupfer b { color: var(--kupfer); }

/* Link + QR */
.link-karte { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.2rem; align-items: center; }
.link-karte .qr { width: 168px; height: 168px; background: #fff; border-radius: 12px; padding: 6px; border: 1px solid var(--line); }
@media (max-width: 640px) { .link-karte { grid-template-columns: 1fr; } }

/* Nachweise: Status der Einträge (immer Symbol + Text), Fortschritt, Eintragsliste */
.st-erledigt { color: var(--ok); background: var(--ok-bg); } .st-erledigt::before { content: "✓"; }
.st-nicht_noetig { color: var(--off); background: var(--off-bg); } .st-nicht_noetig::before { content: "–"; }
.st-bestaetigung { color: var(--pend); background: var(--pend-bg); } .st-bestaetigung::before { content: "⏳"; }
.st-team { color: var(--akz-d); background: var(--akz-soft); } .st-team::before { content: "◎"; }
.fortschritt { display: flex; align-items: center; gap: .6rem; font-size: .84rem; color: var(--muted); }
.fortschritt .bahn { flex: 1; height: .5rem; border-radius: 99px; background: var(--line); overflow: hidden; min-width: 6rem; }
.fortschritt .bahn i { display: block; height: 100%; background: var(--ok); border-radius: 99px; }
.fortschritt.warn .bahn i { background: var(--warn); }
.nw-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .8rem; }
.nw-k { display: block; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 1rem 1.1rem;
  text-decoration: none; box-shadow: var(--shadow-sm); }
.nw-k:hover { border-color: var(--akz); color: inherit; }
.nw-k strong { display: block; font-size: 1rem; margin-bottom: .2rem; }
.nw-k .meta { display: block; color: var(--muted); font-size: .82rem; margin-bottom: .6rem; }
.werte { display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-size: .84rem; color: var(--muted); }
.werte b { color: var(--text); font-weight: 600; }
.seg-filter { display: inline-flex; border: 1px solid var(--line); border-radius: 99px; overflow: hidden; }
.seg-filter a { padding: .35rem .9rem; text-decoration: none; font-size: .88rem; color: var(--text); }
.seg-filter a.on { background: var(--ink); color: #fff; }
table.eintraege td { vertical-align: top; }
.hash { font-family: var(--mono); font-size: .72rem; color: var(--muted); word-break: break-all; }
