/* Politikmappe – SPD-Corporate-Design: Rot #E3000F, Weiß, Schwarz; Hausschrift SPD TheSans, Ersatzschrift Open Sans.
   Bewegung nach emil-design-eng: nur transform/opacity, ease-out, unter 250 ms, keine Animation bei Tastaturaktionen. */

/* SPD TheSans ist nur für Mitglieder lizenziert: Auslieferung nur an angemeldete Personen (index.php?p=schrift). */
@font-face {
  font-family: "SPD TheSans";
  src: url("../index.php?p=schrift&f=light") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SPD TheSans";
  src: url("../index.php?p=schrift&f=regular") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SPD TheSans";
  src: url("../index.php?p=schrift&f=italic") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "SPD TheSans";
  src: url("../index.php?p=schrift&f=bold") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SPD TheSans";
  src: url("../index.php?p=schrift&f=bolditalic") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "SPD TheSans";
  src: url("../index.php?p=schrift&f=extrabold") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("fonts/OpenSans-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --red: #E3000F;
  --red-dark: #B5000C;
  --red-soft: #FDECEE;
  --ink: #1A1A1A;
  --ink-2: #545454;
  --ink-3: #8A8A8A;
  --line: #E6E3E1;
  --line-2: #D4D0CD;
  --paper: #FFFFFF;
  --bg: #F6F4F2;
  --green: #1E7B3C;
  --green-soft: #E6F3EA;
  --amber: #8A5A00;
  --amber-soft: #FBF1DC;
  --radius: 10px;
  --radius-s: 6px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 2px 8px rgba(0, 0, 0, .04);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 16px/1.5 "SPD TheSans", "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; hyphens: auto; overflow-wrap: break-word; }
h1 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
h2 { font-size: 1.15rem; letter-spacing: -0.01em; }
p { margin: 0 0 .5rem; }
a { color: var(--red); text-underline-offset: 2px; }
.i { width: 1.1em; height: 1.1em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.18em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--ink-2); }
.small { font-size: .85rem; }
.hint { color: var(--ink-3); font-size: .85rem; margin-top: .25rem; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: .8rem; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- Kopfleiste (Markenraum Rot, Logo rechts oben) */
.bar { background: var(--red); color: #fff; position: sticky; top: 0; z-index: 10; padding-top: env(safe-area-inset-top); }
.bar-in { max-width: 1080px; margin: 0 auto; padding: 0 16px; height: 64px; display: flex; align-items: center; gap: 24px; }
.brand { color: #fff; text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; display: flex; flex-direction: column; line-height: 1.1; }
.brand span { font-weight: 600; font-size: .7rem; letter-spacing: .02em; opacity: .85; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 999px; display: flex; align-items: center; gap: 6px; transition: background-color 150ms ease; }
.nav a[aria-current="page"] { background: rgba(255, 255, 255, .2); }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #fff; color: var(--red); font-size: .72rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.count-quiet { background: var(--line); color: var(--ink); }
.avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--red); font-weight: 800; font-size: .8rem; flex-shrink: 0; }
.avatar-s { width: 28px; height: 28px; font-size: .7rem; background: var(--red-soft); }
.me { padding: 4px 4px 4px 4px !important; }
.me-name { display: none; }
.logo { height: 38px; width: auto; flex-shrink: 0; display: block; }
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { background: rgba(255, 255, 255, .14); }
}

/* ---------------------------------------------------------------- Seite */
.page { max-width: 1080px; margin: 0 auto; padding: 28px 16px 48px; }
.foot { max-width: 1080px; margin: 0 auto; padding: 16px 16px calc(32px + env(safe-area-inset-bottom)); color: var(--ink-3); font-size: .8rem; }
.head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.head h1 { margin: 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.back {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
  padding: 9px 16px 9px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line-2);
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: .92rem; box-shadow: var(--shadow);
  transition: transform 160ms var(--ease-out), border-color 150ms ease;
}
.back .i { color: var(--red); width: 1.2em; height: 1.2em; stroke-width: 2.4; }
.back:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .back:hover { border-color: var(--red); }
}
.eyebrow { color: var(--red); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.section { margin-top: 36px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.narrow { max-width: 640px; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: start; }
.empty { background: var(--paper); border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 32px 20px; text-align: center; }
.notice { background: var(--amber-soft); color: var(--amber); border-radius: var(--radius-s); padding: 10px 14px; font-size: .9rem; }

/* ---------------------------------------------------------------- Hinweise */
.flash { border-radius: var(--radius-s); padding: 10px 14px; margin-bottom: 12px; font-weight: 600; font-size: .95rem; }
.flash-ok { background: var(--green-soft); color: var(--green); }
.flash-error { background: var(--red-soft); color: var(--red-dark); }
.toasts { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; gap: 8px; z-index: 50; width: min(92vw, 420px); pointer-events: none; }
.toast {
  background: var(--ink); color: #fff; border-radius: var(--radius-s); padding: 10px 14px; font-weight: 600; font-size: .9rem; box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
  @starting-style { opacity: 0; transform: translateY(8px); }
}
.toast.out { opacity: 0; transform: translateY(8px); transition-duration: 150ms; }

/* ---------------------------------------------------------------- Schaltflächen */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-weight: 700; font-size: .9rem; line-height: 1;
  padding: 10px 14px; min-height: 40px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--paper); color: var(--ink);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 150ms ease, border-color 150ms ease;
}
.btn:active, .check:active, .rec-btns button:active, .chip:active { transform: scale(0.97); }
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-danger { color: var(--red-dark); border-color: #F2B8BD; }
.btn-small { min-height: 32px; padding: 6px 12px; font-size: .82rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .6; cursor: progress; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: .85rem; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }
.link-btn.danger { color: var(--red-dark); }
form.inline { display: inline; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { border-color: var(--ink-3); }
  .btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
  .btn-ghost:hover { background: rgba(0, 0, 0, .05); border-color: transparent; }
  .link-btn:hover { color: var(--ink); text-decoration: underline; }
}
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.bar :focus-visible { outline-color: #fff; }

/* ---------------------------------------------------------------- Formulare */
.form { display: grid; gap: 12px; }
label { display: grid; gap: 4px; font-weight: 600; font-size: .85rem; color: var(--ink-2); }
input, select, textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line-2); border-radius: var(--radius-s); padding: 9px 11px; width: 100%; min-height: 40px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
textarea { resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(227, 0, 15, .14); }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; min-height: 0; padding: 0; flex-shrink: 0; accent-color: var(--red); margin: 0; border-radius: 4px; box-shadow: none; }
input[type="radio"] { border-radius: 50%; }
.check-label { display: flex; align-items: center; gap: 10px; font-size: .95rem; color: var(--ink); font-weight: 600; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 12px 14px 14px; margin: 0; display: grid; gap: 10px; }
legend { font-weight: 800; padding: 0 6px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.row > label { flex: 0 1 auto; }
.row .grow { flex: 1 1 200px; }
.w-s { flex: 0 0 90px !important; }
.form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.danger-zone { margin-top: 16px; }

/* ---------------------------------------------------------------- Filter */
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.seg { display: inline-flex; background: #ECE8E5; border-radius: 999px; padding: 3px; }
.seg a { white-space: nowrap; padding: 7px 14px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 700; font-size: .88rem; display: flex; gap: 6px; align-items: center; }
.seg a[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
/* Umschalter aus Formularen (ohne JavaScript nutzbar): gewählter Zustand über aria-pressed */
.seg-buttons { align-self: flex-start; max-width: 100%; }
.seg-buttons form { display: flex; }
.seg-buttons button {
  white-space: nowrap; padding: 7px 14px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  color: var(--ink-2); font: inherit; font-weight: 700; font-size: .88rem; transition: transform 120ms var(--ease-out);
}
.seg-buttons button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.seg-buttons button:active { transform: scale(0.97); }
@media (prefers-reduced-motion: reduce) { .seg-buttons button { transition: none; } }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .85rem; background: var(--paper); transition: transform 160ms var(--ease-out); }
.chip[aria-current="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------------------------------------------------------------- Sitzungsliste */
.month { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 24px 0 8px; }
.list { list-style: none; margin: 0; padding: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.list li + li { border-top: 1px solid var(--line); }
.meeting-row { display: flex; gap: 16px; align-items: center; padding: 14px 16px; text-decoration: none; color: inherit; transition: background-color 150ms ease; }
.date { display: grid; justify-items: center; width: 52px; flex-shrink: 0; line-height: 1.1; }
.date .day { font-size: .75rem; font-weight: 700; color: var(--red); text-transform: uppercase; }
.date .num { font-weight: 800; font-variant-numeric: tabular-nums; }
.body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.title { font-weight: 700; }
.meta, .meta-line { display: flex; gap: 4px 14px; flex-wrap: wrap; color: var(--ink-2); font-size: .88rem; }
.meta-line { font-size: .95rem; margin-top: 6px; }
.meta-line span { display: inline-flex; align-items: center; gap: 4px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: #EFEBE8; color: var(--ink-2); font-size: .75rem; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tag-digital { background: #E8EEFB; color: #24489B; }
.tag-done { background: var(--green-soft); color: var(--green); }
.tag-plain { background: transparent; padding-inline: 4px; }
.tag-off { background: var(--red-soft); color: var(--red-dark); }
@media (hover: hover) and (pointer: fine) {
  .meeting-row:hover { background: #FBFAF9; }
}

/* ---------------------------------------------------------------- Sitzung */
.meeting-head { margin-bottom: 8px; }
.meeting-head > div:first-child { flex: 1 1 420px; min-width: 0; }
.digital { display: flex; gap: 10px; align-items: center; margin-top: 8px; font-weight: 700; font-size: .9rem; }
.digital a { display: inline-flex; gap: 4px; align-items: center; }
.progress { color: var(--ink-2); font-size: .88rem; font-weight: 600; font-variant-numeric: tabular-nums; }

.agenda { list-style: none; margin: 12px 0 0; padding: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.top { display: flex; gap: 14px; padding: 16px; scroll-margin-top: 80px; }
.top + .top { border-top: 1px solid var(--line); }
.top-num { width: 40px; flex-shrink: 0; font-weight: 800; color: var(--red); font-variant-numeric: tabular-nums; padding-top: 1px; }
.top-main { flex: 1; min-width: 0; display: grid; gap: 10px; }
.top-title { margin: 0; font-weight: 600; max-width: 75ch; overflow-wrap: anywhere; }
.top.removed .top-title { text-decoration: line-through; color: var(--ink-3); }
.top-tools { display: flex; gap: 14px; align-items: center; }

.docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.doc { display: flex; align-items: center; gap: 8px; min-height: 36px; }
.doc-link { display: inline-flex; align-items: flex-start; gap: 6px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; min-width: 0; flex: 1; }
.doc-link .i { color: var(--red); margin-top: 3px; }
.doc-link span { overflow-wrap: anywhere; }
.doc-meta { display: flex; gap: 8px; align-items: center; color: var(--ink-3); font-size: .78rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.doc-all { border-top: 1px dashed var(--line); margin-top: 4px; padding-top: 2px; }
.doc-all .doc-link { color: var(--ink-2); }
.doc-dl { font-size: .8rem; white-space: nowrap; }
.np { color: var(--amber); display: inline-flex; }
.checked-by { display: inline-flex; align-items: center; gap: 2px; color: var(--green); font-weight: 700; }
@media (hover: hover) and (pointer: fine) {
  .doc-link:hover span { text-decoration: underline; }
}

.check {
  width: 26px; height: 26px; flex-shrink: 0; display: grid; place-items: center; padding: 0;
  border: 1.5px solid var(--line-2); border-radius: var(--radius-s); background: var(--paper); color: transparent; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.check .i { width: 16px; height: 16px; stroke-width: 3; }
.check[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.check-round { border-radius: 50%; width: 28px; height: 28px; }
@media (hover: hover) and (pointer: fine) {
  .check[aria-pressed="false"]:hover { border-color: var(--green); color: var(--line-2); }
}

/* Beschlussempfehlung */
.decide { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.rec-btns { display: inline-flex; flex-wrap: wrap; gap: 4px; background: #F1EEEC; padding: 3px; border-radius: 999px; }
.rec-btns button {
  font: inherit; font-size: .82rem; font-weight: 700; border: 0; background: transparent; color: var(--ink-2);
  padding: 7px 12px; border-radius: 999px; cursor: pointer; min-height: 32px;
  transition: transform 160ms var(--ease-out), background-color 150ms ease, color 150ms ease;
}
.rec-btns button[aria-pressed="true"] { color: #fff; }
.rec-btns .rec-zustimmen[aria-pressed="true"] { background: var(--green); }
.rec-btns .rec-enthalten[aria-pressed="true"] { background: #6B6B6B; }
.rec-btns .rec-ablehnen[aria-pressed="true"] { background: var(--red); }
.rec-btns .rec-aufgehoben[aria-pressed="true"] { background: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .rec-btns button[aria-pressed="false"]:hover { background: var(--paper); color: var(--ink); }
}
/* Empfehlung und Abstimmungsergebnis je TOP (setzt der Fraktionsvorsitz, alle anderen sehen nur) */
.decide-row { display: flex; gap: 8px 10px; align-items: center; flex-wrap: wrap; }
.decide-label { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); min-width: 92px; }
.decide-row.vote { flex-basis: 100%; }
.rec-btns .vote-zustimmung[aria-pressed="true"] { background: var(--green); }
.rec-btns .vote-ablehnung[aria-pressed="true"] { background: var(--red); }
.rec-btns .vote-verwiesen[aria-pressed="true"] { background: #24489B; }
.rec-btns .vote-vertagt[aria-pressed="true"] { background: #6B6B6B; }
.rec-pill { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700; color: #fff; background: var(--ink); }
.rec-pill.rec-zustimmen, .rec-pill.vote-zustimmung { background: var(--green); }
.rec-pill.rec-ablehnen, .rec-pill.vote-ablehnung { background: var(--red); }
.rec-pill.rec-enthalten, .rec-pill.vote-vertagt { background: #6B6B6B; }
.rec-pill.vote-verwiesen { background: #24489B; }
.chair-hint { margin: 20px 0 0; }
.tag-chair { background: var(--red); color: #fff; }
.panel-inner { margin-top: 4px; box-shadow: none; background: #FAF8F7; }
.speaker { flex: 1 1 180px; max-width: 280px; }
.speaker input { min-height: 36px; padding: 6px 10px; border-radius: 999px; }
.speaker.saved input { border-color: var(--green); }

/* Mehr-Menü */
.more { position: relative; }
.more summary { list-style: none; cursor: pointer; color: var(--ink-3); font-weight: 800; padding: 2px 8px; border-radius: var(--radius-s); letter-spacing: .05em; }
.more summary::-webkit-details-marker { display: none; }
.more-panel {
  position: absolute; right: 0; top: calc(100% + 4px); z-index: 5; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12); padding: 12px; display: grid; gap: 10px; width: min(320px, 80vw);
  transform-origin: top right; transition: opacity 150ms var(--ease-out), transform 150ms var(--ease-out);
  @starting-style { opacity: 0; transform: scale(0.97); }
}

/* Aufklappbereiche */
.add { margin-top: 12px; }
.add summary { cursor: pointer; font-weight: 700; color: var(--ink-2); display: inline-flex; gap: 6px; align-items: center; list-style: none; padding: 6px 0; }
.add summary::-webkit-details-marker { display: none; }
.add.card summary { padding: 0; }
.add[open] summary { margin-bottom: 12px; }
.add-form { margin-top: 0; }

/* Upload */
.drop { margin-top: 12px; }
.drop-area {
  border: 1.5px dashed var(--line-2); border-radius: var(--radius); background: var(--paper); padding: 18px; text-align: center; display: grid; gap: 4px; justify-items: center;
  transition: border-color 150ms ease, background-color 150ms ease;
}
.drop-area > .i { width: 28px; height: 28px; color: var(--red); }
.drop-area p { margin: 0; }
.drop.over .drop-area { border-color: var(--red); background: var(--red-soft); }
.file-label { display: inline; color: var(--red); font-weight: 700; font-size: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.file-label input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-options { margin-top: 10px; }
.drop-mail { margin: 0 0 16px; }

/* Anmerkungen */
.comments { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.comment { display: flex; gap: 10px; }
.comment-body { min-width: 0; flex: 1; }
.comment-body p { margin: 0; overflow-wrap: anywhere; max-width: 75ch; }
.comment-head { font-size: .85rem; color: var(--ink-3); display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.comment-head strong { color: var(--ink); }
.top .comments { background: #FAF8F7; border-radius: var(--radius-s); padding: 10px; }
#anmerkungen .comments { margin: 12px 0 16px; }
.comment-form { display: grid; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.comment-form.flash-target { box-shadow: 0 0 0 3px rgba(227, 0, 15, .2); transition: box-shadow 200ms ease; }

/* Aufgaben */
.mini-tasks { list-style: none; padding: 0; margin: 8px 0 14px; display: grid; gap: 6px; }
.mini-tasks li { display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.mini-tasks a { font-weight: 600; color: var(--ink); }
.mini-tasks .done a { text-decoration: line-through; color: var(--ink-3); }
.tasks { list-style: none; margin: 0; padding: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.task { display: flex; gap: 12px; padding: 12px 16px; align-items: flex-start; scroll-margin-top: 80px; }
.task + .task { border-top: 1px solid var(--line); }
.task-main { flex: 1; min-width: 0; }
.task-main summary { list-style: none; cursor: pointer; display: grid; gap: 2px; padding-top: 2px; }
.task-main summary::-webkit-details-marker { display: none; }
.task-title { font-weight: 700; overflow-wrap: anywhere; }
.task.done .task-title { text-decoration: line-through; color: var(--ink-3); }
.task-meta { display: flex; gap: 4px 12px; flex-wrap: wrap; color: var(--ink-2); font-size: .85rem; align-items: center; }
.task-meta .who { font-weight: 600; }
.overdue { color: var(--red-dark); font-weight: 700; }
.task-detail { padding: 14px 0 4px; display: grid; gap: 12px; }
.mail-info { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; color: var(--ink-2); font-size: .88rem; margin: 0; }

/* Profil / Verwaltung */
.sessions { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; }
.sessions li { display: grid; gap: 0; }
.sessions .current span:first-child { font-weight: 700; }
.users { list-style: none; margin: 0 0 12px; padding: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.user { display: flex; gap: 12px; align-items: center; padding: 12px 16px; }
.user + .user { border-top: 1px solid var(--line); }
.user .avatar { background: var(--red-soft); }
.user-main { flex: 1; min-width: 0; }
.user-main p { margin: 0; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.user.inactive { opacity: .6; }

/* Anmeldung / Einrichtung */
body.bare { background: var(--red); min-height: 100vh; min-height: 100dvh; }
body.bare > .flash { max-width: 440px; margin: 16px auto 0; }
.auth { min-height: 100vh; min-height: 100dvh; display: grid; place-content: center; gap: 20px; padding: 24px 16px; }
.auth-brand { display: flex; justify-content: flex-end; }
.auth-card { width: min(100%, 400px); display: grid; gap: 14px; }
.auth-card.wide { width: min(100%, 560px); }
.auth-card h1 { margin: 0; }
.auth-card .muted { margin-top: -10px; }
.center-card { margin: 10vh auto; }
body.bare .center-card { background: var(--paper); }

/* Klappbereiche */
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 16px; }
.panel > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 12px 16px; font-weight: 700;
  border-radius: var(--radius);
}
.panel > summary::-webkit-details-marker { display: none; }
.panel > summary > .i:first-child { color: var(--red); transition: transform 160ms var(--ease-out); }
.panel[open] > summary > .i:first-child { transform: rotate(90deg); }
.panel-body { padding: 0 16px 16px; display: grid; gap: 12px; }
.panel.section { margin-top: 36px; }
.comments:not(:has(li)) { display: none; }
.inline-panel > summary { list-style: none; cursor: pointer; }
.inline-panel > summary::-webkit-details-marker { display: none; }
.inline-panel[open] { flex-basis: 100%; order: 5; }
.inline-panel[open] > summary { color: var(--red); font-weight: 700; }
.inline-panel .comment-form, .inline-form {
  margin-top: 8px; box-shadow: none; background: #FAF8F7; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 10px;
  display: grid; gap: 8px;
}
.top-tools { flex-wrap: wrap; row-gap: 4px; }
.panel .comment-form { box-shadow: none; }

/* Zurück, Mappen-Chips */
.in-folders { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.folder-chip { display: inline-flex; align-items: center; gap: 2px; background: var(--red-soft); border-radius: 999px; padding: 2px 4px 2px 10px; }
.folder-chip a { display: inline-flex; gap: 5px; align-items: center; color: var(--red-dark); font-weight: 700; font-size: .82rem; text-decoration: none; }
.chip-x { border: 0; background: transparent; color: var(--red-dark); cursor: pointer; padding: 3px; border-radius: 50%; display: grid; place-items: center; }
.chip-x .i { width: 14px; height: 14px; }
.folder-add select { min-height: 30px; padding: 3px 10px; border-radius: 999px; font-size: .82rem; width: auto; color: var(--ink-2); }
.icon-btn {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-s); border: 0; background: transparent;
  color: var(--ink-2); cursor: pointer; font: inherit; font-weight: 800; text-decoration: none; transition: transform 160ms var(--ease-out), background-color 150ms ease;
}
.icon-btn:active { transform: scale(0.95); }
.icon-btn[disabled] { opacity: .3; cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .icon-btn:not([disabled]):hover { background: rgba(0, 0, 0, .06); color: var(--ink); }
}

/* Sitzungsmappen */
.folders { margin-bottom: 24px; }
.folders-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.folders-head h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 0 0 8px; }
.folder-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.folder-card {
  display: grid; gap: 2px; align-content: start; padding: 12px 14px; border-radius: var(--radius); background: var(--paper);
  border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); min-height: 76px;
  transition: transform 160ms var(--ease-out), border-color 150ms ease, background-color 150ms ease;
}
.folder-card > .i { color: var(--red); width: 20px; height: 20px; }
.folder-title { font-weight: 800; overflow-wrap: anywhere; }
.folder-meta { color: var(--ink-2); font-size: .8rem; font-variant-numeric: tabular-nums; }
.folder-card:active { transform: scale(0.98); }
.dragging-meeting .folder-card[data-folder-drop] { border-style: dashed; border-color: var(--red); }
.folder-card.over { background: var(--red-soft); transform: scale(1.02); }
.folder-new > summary { list-style: none; cursor: pointer; height: 100%; }
.folder-new > summary::-webkit-details-marker { display: none; }
.folder-card-new { border-style: dashed; box-shadow: none; background: transparent; color: var(--ink-2); place-content: center; justify-items: center; }
.folder-new[open] > summary { display: none; }
.folder-new-form { display: grid; gap: 8px; padding: 10px; border-radius: var(--radius); border: 1px solid var(--red); background: var(--paper); }
.folder-scope { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.folder-scope .check-label { font-weight: 400; font-size: .88rem; gap: 6px; min-height: 32px; }
.folder-own { display: inline-flex; vertical-align: -2px; margin-right: 4px; color: var(--ink-3); }
.folder-own .i { width: 13px; height: 13px; }
@media (hover: hover) and (pointer: fine) {
  .folder-card:hover { border-color: var(--line-2); }
}
.meeting-row[draggable="true"] { -webkit-user-drag: element; }
.date .year { font-size: .7rem; color: var(--ink-3); font-weight: 600; }
.view-opts { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.seg-small a { padding: 5px 11px; font-size: .8rem; }

.sortable .sort-item { display: flex; align-items: center; background: var(--paper); }
.sortable .meeting-row { flex: 1; min-width: 0; padding-left: 4px; }
.grip { display: none; padding: 0 0 0 10px; color: var(--ink-3); cursor: grab; touch-action: none; }
.js-sortable .grip { display: grid; place-items: center; }
.js-sortable .nojs-move { display: none; }
.sort-tools { display: flex; align-items: center; padding-right: 8px; }
.sort-item.dragging { opacity: .4; }
.pick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 360px; overflow: auto; }
.pick-date { font-variant-numeric: tabular-nums; color: var(--ink-2); min-width: 120px; display: inline-block; }

/* RIS-Auswahl */
.pick-bar { display: flex; gap: 12px; align-items: center; margin-bottom: 4px; }
.pick-row { display: flex; gap: 14px; align-items: center; padding: 12px 16px; cursor: pointer; font-weight: 400; font-size: 1rem; color: var(--ink); }
.pick-row > input { flex-shrink: 0; }
.pick-row.done { cursor: default; color: var(--ink-2); }
.pick-row.done .check { width: 20px; height: 20px; }
.pick-footer {
  position: sticky; bottom: 0; z-index: 4; display: flex; gap: 12px; align-items: end; justify-content: flex-end; flex-wrap: wrap;
  margin-top: 16px; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 70%, rgba(246, 244, 242, 0));
}
.pick-footer select { width: auto; }
@media (hover: hover) and (pointer: fine) {
  .pick-row:not(.done):hover { background: #FBFAF9; }
}

/* PDF-Viewer rechts */
:root { --viewer-w: 50vw; --viewer-eff: min(var(--viewer-w), calc(100vw - 400px)); }
.viewer {
  position: fixed; top: var(--bar-h, 64px); right: 0; bottom: 0; width: var(--viewer-eff); z-index: 8;
  background: #525659; border-left: 1px solid var(--line-2); display: flex; flex-direction: column;
  box-shadow: -8px 0 24px rgba(0, 0, 0, .08);
  transition: transform 200ms var(--ease-out), opacity 200ms var(--ease-out);
  @starting-style { transform: translateX(24px); opacity: 0; }
}
.viewer[hidden] { display: none; }
.viewer-head { display: flex; align-items: center; gap: 4px; background: var(--paper); padding: 6px 8px 6px 14px; border-bottom: 1px solid var(--line); }
.viewer-title { flex: 1; min-width: 0; margin: 0; font-weight: 700; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer iframe { flex: 1; width: 100%; border: 0; background: #525659; }
.viewer-resize { position: absolute; left: -4px; top: 0; bottom: 0; width: 8px; cursor: col-resize; z-index: 1; touch-action: none; }
.resizing, .resizing * { cursor: col-resize !important; user-select: none; }
.resizing .viewer iframe { pointer-events: none; }
body.has-viewer .page, body.has-viewer .foot { max-width: none; margin: 0; padding-left: 24px; padding-right: calc(var(--viewer-eff) + 24px); }
.doc.active .doc-link { color: var(--red); }
.doc.active { background: var(--red-soft); border-radius: var(--radius-s); box-shadow: -6px 0 0 var(--red-soft), 6px 0 0 var(--red-soft); }

/* Druckansicht */
.print-page { background: var(--paper); max-width: 1000px; margin: 0 auto; padding: 32px 24px; min-height: 100vh; }
body.bare:has(.print-page) { background: var(--bg); }
.print-tools { display: flex; justify-content: space-between; margin-bottom: 24px; }
.print-logo { height: 48px; width: auto; flex-shrink: 0; }
.print-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; border-bottom: 4px solid var(--red); padding-bottom: 12px; margin-bottom: 16px; }
.print-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.print-table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); border-bottom: 2px solid var(--ink); padding: 6px 8px; }
.print-table td { border-bottom: 1px solid var(--line); padding: 8px; vertical-align: top; }
.c-num { width: 56px; font-weight: 800; font-variant-numeric: tabular-nums; }
.c-rec { width: 130px; }
.c-sp { width: 170px; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-weight: 800; font-size: .8rem; color: #fff; }
.pill.rec-zustimmen { background: var(--green); }
.pill.rec-enthalten { background: #6B6B6B; }
.pill.rec-ablehnen { background: var(--red); }
.pill.rec-aufgehoben { background: var(--ink); }
.print-foot { margin-top: 16px; color: var(--ink-3); font-size: .78rem; }

@media print {
  @page { size: A4 landscape; margin: 12mm; }
  body, body.bare { background: #fff !important; }
  .no-print { display: none !important; }
  .print-page { padding: 0; max-width: none; min-height: 0; }
  .pill { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .print-head { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  tr { break-inside: avoid; }
}

/* ---------------------------------------------------------------- Kleine Bildschirme */
@media (min-width: 720px) {
  .me-name { display: inline; }
  .me { padding: 4px 12px 4px 4px !important; }
}
/* Schmal: oben Titel links und Logo rechts, darunter die Navigation */
@media (max-width: 899px) {
  .bar-in { flex-wrap: wrap; height: auto; gap: 0 12px; padding-top: 10px; padding-bottom: 6px; }
  .brand { order: 1; }
  .logo { order: 2; margin-left: auto; height: 30px; }
  .nav { order: 3; width: 100%; margin: 8px 0 0 -12px; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; }
  .me { margin-left: auto; }
}
@media (max-width: 719px) {
  .brand span { display: none; }
  .nav a { padding: 8px 10px; font-size: .9rem; }
  .meeting-row { flex-wrap: wrap; gap: 10px 14px; }
  .tags { justify-content: flex-start; width: 100%; padding-left: 66px; }
  .tags:empty { display: none; }
  .top { padding: 14px 12px; gap: 10px; }
  .top-num { width: 32px; }
  .doc { flex-wrap: wrap; }
  .doc-meta { width: 100%; padding-left: 34px; }
  .speaker { max-width: none; }
  .rec { width: 100%; }
  .rec-btns { display: grid; grid-template-columns: 1fr 1fr; border-radius: 14px; width: 100%; }
  .rec-btns button { border-radius: 11px; min-height: 38px; }
  .decide-label { min-width: 0; width: 100%; }
  .decide-row > form.rec { width: 100%; }
  .head .actions { width: 100%; }

  /* Aktionsknöpfe als gleichmäßiges Raster statt unruhig umbrechender Reihe; Menüs spannen die volle Breite */
  .head .actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; position: relative; }
  .head .actions > form, .head .actions > .more { position: static; min-width: 0; }
  .head .actions .btn, .head .actions > .more > summary.btn { width: 100%; justify-content: center; min-height: 44px; padding-inline: 10px; white-space: normal; text-align: center; line-height: 1.2; }
  .head .actions .btn-ghost, .head .actions > .more > summary.btn-ghost { background: var(--paper); border-color: var(--line); }
  .head .actions .more-panel, .export .more-panel { left: 0; right: 0; width: auto; transform-origin: top center; }

  /* Mappen zweispaltig und kompakt */
  .folder-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .folder-card { padding: 12px; gap: 4px; }
  .folder-new[open] { grid-column: 1 / -1; }

  /* Filter: Zeitraum über die volle Breite, Gremien als wischbare Zeile */
  .filters { gap: 10px; }
  .filters > .seg { display: flex; width: 100%; }
  .filters > .seg a { flex: 1; justify-content: center; }
  .filters .chips { flex-wrap: nowrap; overflow-x: auto; width: calc(100% + 32px); margin: 0 -16px; padding: 2px 16px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .filters .chips::-webkit-scrollbar { display: none; }
  .filters .chip { flex-shrink: 0; }
  .view-opts { margin-left: 0; width: 100%; justify-content: space-between; }

  /* Unterlagen: „···“ bleibt in der Zeile, Angaben darunter */
  .doc { flex-wrap: wrap; row-gap: 0; padding: 4px 0; }
  .doc-link { order: 1; }
  .doc > .more { order: 2; }
  .doc > .more > summary { padding: 6px 10px; }
  .doc-meta { order: 3; width: 100%; padding-left: 24px; }
  .doc-dl { order: 2; }

  /* Ausreichend große Tippflächen */
  .top-tools { gap: 4px 18px; }
  .top-tools .link-btn, .top-tools summary.link-btn { min-height: 36px; }
  .sort-tools .icon-btn { min-width: 40px; min-height: 40px; }
}
/* ---------------------------------------------------------------- Handy: Tab-Leiste unten wie in einer App */
.tabbar { display: none; }
@media (max-width: 719px) {
  :root { --tabbar-h: 60px; }
  .has-tabbar .nav { display: none; }
  .has-tabbar .bar-in { flex-wrap: nowrap; padding-top: 0; padding-bottom: 0; height: 52px; }
  .has-tabbar .logo { height: 26px; }
  .has-tabbar .foot { padding-bottom: calc(24px + var(--tabbar-h) + env(safe-area-inset-bottom)); }
  .has-tabbar .toasts { bottom: calc(12px + var(--tabbar-h) + env(safe-area-inset-bottom)); }
  .has-tabbar .pick-footer { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: 12px; }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    padding: 0 max(4px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(4px, env(safe-area-inset-left));
    background: rgba(255, 255, 255, .94); border-top: 1px solid var(--line);
    -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  }
  .tabbar a {
    flex: 1 1 0; min-width: 0; height: var(--tabbar-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    color: var(--ink-3); text-decoration: none; font-size: .68rem; font-weight: 700; letter-spacing: .01em;
    -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; user-select: none;
    transition: transform 120ms var(--ease-out);
  }
  .tabbar a:active { transform: scale(0.97); }
  .tab-ic { position: relative; display: grid; place-items: center; width: 52px; height: 30px; border-radius: 999px; }
  .tab-ic .i { width: 22px; height: 22px; }
  .tab-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabbar a[aria-current="page"] { color: var(--red); }
  .tabbar a[aria-current="page"] .tab-ic { background: var(--red-soft); }
  .tab-avatar { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--line); color: var(--ink-2); font-size: .6rem; font-weight: 800; }
  .tabbar a[aria-current="page"] .tab-avatar { background: var(--red); color: #fff; }
  .tab-badge {
    position: absolute; top: -2px; left: 30px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center;
    background: var(--red); color: #fff; font-size: .62rem; font-weight: 800; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px #fff;
  }
}

/* Touch-Geräte: Hinweise aufs Ziehen ausblenden, Auswahlfelder ohne Zoom (iOS zoomt unter 16px) */
.touch-only { display: none; }
@media (hover: none) and (pointer: coarse) {
  .drag-only { display: none; }
  .touch-only { display: inline; }
  .folder-add select { font-size: 16px; }
  .js-sortable .grip { display: none; }
  .js-sortable .nojs-move { display: flex; }
}
@media (max-width: 420px) {
  .brand { font-size: 1rem; }
  .nav { gap: 0; }
  .nav a { padding: 8px 8px; }
  .logo { height: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-property: opacity, background-color, border-color, color !important; }
  .btn:active, .check:active, .rec-btns button:active, .chip:active, .tabbar a:active { transform: none; }
}

/* Beschluss je TOP, Reden, Export */
.no-decision { margin: 0; font-size: .85rem; color: var(--ink-3); font-style: italic; }
.tag-speech { background: var(--red); color: #fff; }
.export .more-panel { width: min(340px, 86vw); left: 0; right: auto; transform-origin: top left; }
.export fieldset { gap: 8px; }
.export .check-label { font-weight: 400; font-size: .92rem; display: grid; grid-template-columns: 18px 1fr; align-items: center; gap: 10px; line-height: 1.3; }
.export legend { font-size: .85rem; color: var(--ink-2); padding: 0 4px; }
.export fieldset { padding: 10px 12px 12px; }
.export .check-label:has(input:disabled) { color: var(--ink-3); cursor: default; }
.row-actions { display: flex; gap: 12px; flex-shrink: 0; }
.more > summary.btn { color: var(--ink); font-weight: 700; letter-spacing: 0; padding: 10px 14px; border-radius: 999px; }
.more > summary.btn-ghost { color: var(--ink-2); }
.more > summary.btn::-webkit-details-marker { display: none; }
.more[open] > summary.btn { border-color: var(--ink-3); }

/* Schalter „Beschluss“ je TOP */
.decision { display: grid; gap: 8px; }
.decision-toggle { display: flex; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: .85rem; font-weight: 700; color: var(--ink-2); user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track {
  position: relative; width: 34px; height: 20px; border-radius: 999px; background: var(--line-2); flex-shrink: 0;
  transition: background-color 160ms ease;
}
.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, .2); transition: transform 160ms var(--ease-out);
}
.switch input:checked + .switch-track { background: var(--green); }
.switch input:checked + .switch-track::after { transform: translateX(14px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--red); outline-offset: 2px; }
.switch:active .switch-track::after { transform: scale(0.92); }
.switch input:checked:active + .switch-track::after { transform: translateX(14px) scale(0.92); }

/* Mehrere Redner*innen */
.multi {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 36px; padding: 3px 6px; cursor: text;
  border: 1px solid var(--line-2); border-radius: 18px; background: var(--paper);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.multi:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px rgba(227, 0, 15, .14); }
.multi input { border: 0; box-shadow: none !important; min-height: 28px; padding: 2px 6px; flex: 1 1 110px; width: auto; background: transparent; border-radius: 0; }
.multi-chip { display: inline-flex; align-items: center; gap: 2px; background: var(--red-soft); color: var(--red-dark); font-weight: 700; font-size: .82rem; border-radius: 999px; padding: 2px 2px 2px 10px; white-space: nowrap; }
.speaker.saved .multi { border-color: var(--green); }
.warn-text { color: var(--red-dark); font-weight: 600; }
.pick-row.done { cursor: pointer; color: var(--ink); }
.pick-row:has(input[data-keep]:not(:checked)) .title { text-decoration: line-through; color: var(--ink-3); }

/* Ablage auf der ganzen Seite (Aufgaben) */
body.page-drop::after {
  content: "E-Mail loslassen – daraus wird eine Aufgabe";
  position: fixed; inset: 12px; z-index: 60; display: grid; place-items: center;
  border: 3px dashed var(--red); border-radius: 16px; background: rgba(253, 236, 238, .92);
  color: var(--red-dark); font-weight: 800; font-size: 1.3rem; pointer-events: none;
}
.drop.busy .drop-area { border-color: var(--red); background: var(--red-soft); }
.drop-status { margin: 4px 0 0; font-weight: 700; color: var(--red-dark); }

/* Zwei-Faktor, Hinweise */
.notice-strong { background: var(--red-soft); color: var(--red-dark); margin-bottom: 16px; }
.qr { width: 196px; height: 196px; margin: 10px 0 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 6px; }
.qr svg { width: 100%; height: 100%; display: block; }
.steps { margin: 0; padding-left: 1.2rem; display: grid; gap: 8px; }
.secret, .codes code { font-family: ui-monospace, Consolas, monospace; font-size: .9rem; letter-spacing: .04em; }
.code-input { font-variant-numeric: tabular-nums; letter-spacing: .2em; font-size: 1.2rem; text-align: center; }
.recovery { margin-bottom: 16px; border-color: var(--red); }
.codes { columns: 2; padding-left: 1.4rem; margin: 8px 0 12px; line-height: 1.9; }
@media print {
  body:has(.recovery) .bar, body:has(.recovery) .grid-2, body:has(.recovery) .head, body:has(.recovery) .foot, body:has(.recovery) .form-actions { display: none !important; }
}

/* Systemprüfung */
.checks { list-style: none; margin: 0; padding: 6px 16px; display: grid; }
.checks li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; }
.checks li + li { border-top: 1px solid var(--line); }
.check-mark { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; font-weight: 800; font-size: .8rem; color: #fff; }
.checks .ok .check-mark { background: var(--green); }
.checks .bad .check-mark { background: var(--red); }
.check-mark .i { width: 14px; height: 14px; stroke-width: 3; }
.checks .bad .check-text { color: var(--red-dark); }
.icon-btn-s { width: 26px; height: 26px; color: var(--ink-3); }
.icon-btn-s .i { width: 15px; height: 15px; }
@media (hover: hover) and (pointer: fine) {
  .icon-btn-s:hover { color: var(--red-dark); background: var(--red-soft); }
}
.comment-head form.inline { display: inline-flex; align-self: center; }

/* Gremien */
.tag-mine { background: var(--green-soft); color: var(--green); }
.tag-mine .i { width: 12px; height: 12px; stroke-width: 3; }
.committee-info { margin-top: 8px; display: grid; gap: 4px; }
.committee-info p { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: .92rem; }
.pick-chips { margin: 4px 0 8px; align-items: center; }
.pick-chips .chip { cursor: pointer; font: inherit; font-weight: 600; font-size: .85rem; }
.pick-chips .chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip-mine { border-color: var(--green); color: var(--green); }

/* ---------------------------------------------------------------- Anträge */
.motion { display: flex; align-items: center; }
.motion .meeting-row { flex: 1; min-width: 0; }
.motion-pdf { margin-right: 16px; flex-shrink: 0; }
.motion-target[hidden] { display: none; }
.admin-link { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 20px; text-decoration: none; color: inherit; transition: transform 120ms var(--ease-out), background-color 150ms ease; }
.admin-link:active { transform: scale(0.97); }
.admin-link-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--red-soft); color: var(--red); flex-shrink: 0; }
.admin-link > .i { color: var(--ink-3); flex-shrink: 0; }
@media (hover: hover) and (pointer: fine) { .admin-link:hover { background: #FBFAF9; } }
@media (prefers-reduced-motion: reduce) { .admin-link { transition: none; } .admin-link:active { transform: none; } }
.motion-doc h2 { font-size: 1.05rem; margin: 18px 0 0; }
.motion-doc h3 { font-size: .95rem; margin: 18px 0 4px; }
.motion-doc p { margin: 0; }
.signature-preview { max-width: 240px; max-height: 90px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 6px; }
