:root {
  --red: #c4151c; --red-dark: #8f0f14; --brand: #1e5aa8; --brand-dark: #164682; --brand-soft: rgba(30,90,168,.2); --brand-bg: #f2f6fc; --bg: #f4f5f7; --card: #fff; --text: #1d2125; --muted: #6b7380;
  --line: #e2e5ea; --ok: #1f8a4c; --warn: #b26a00; --blue: #2457a6; --radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.45; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.5rem; margin: .2em 0 .6em; }
h2 { font-size: 1.2rem; margin: 0; }
h3 { font-size: 1rem; margin: 0 0 .6em; }
main { max-width: 1400px; margin: 0 auto; padding: 20px 16px 60px; }

/* Kopfzeile & Menü */
.top { background: var(--brand); color: #fff; display: flex; align-items: center; gap: 24px; padding: 0 16px; min-height: 54px; position: sticky; top: 0; z-index: 10; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.brand { color: #fff; font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.logo { background: #fff; color: var(--brand); border-radius: 6px; padding: 2px 6px; font-size: .85rem; font-weight: 800; }
nav.main { display: flex; align-items: center; gap: 4px; flex: 1; }
nav.main a { color: #fff; padding: 16px 12px; opacity: .9; border-bottom: 3px solid transparent; white-space: nowrap; }
nav.main a:hover { opacity: 1; text-decoration: none; background: rgba(255,255,255,.08); }
nav.main a.on { opacity: 1; border-bottom-color: #fff; font-weight: 600; }
nav.main a .count { display: inline-block; min-width: 1.3em; margin-left: 4px; padding: 0 6px; border-radius: 99px; background: #fff; color: var(--brand); font-size: .75rem; font-weight: 700; text-align: center; line-height: 1.5; }   /* „Mitmachen (2)“ */
nav.main .spacer { flex: 1; }
.burger { display: none; background: none; border: 0; color: #fff; font-size: 1.5rem; margin-left: auto; cursor: pointer; }

/* Bausteine */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.card.narrow { max-width: 420px; margin: 40px auto; }
.head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn { display: inline-block; border: 1px solid var(--line); background: #fff; color: var(--text); padding: 7px 14px; border-radius: 6px; cursor: pointer; font: inherit; font-size: .92rem; white-space: nowrap; }
.btn:hover { background: #f0f1f3; text-decoration: none; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-dark); }
.btn.danger { color: var(--red); border-color: #f0c2c4; }
.btn.link { border-color: transparent; background: none; color: var(--blue); }
.btn.small { font-size: .82rem; padding: 4px 10px; }
.muted { color: var(--muted); }
.quick-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; }
.quick-add input[name=title] { flex: 1 1 260px; min-width: 0; padding: 8px 10px; border: 1px solid #cfd4db; border-radius: 6px; font: inherit; }
.quick-add select { flex: 0 1 220px; min-width: 0; max-width: 100%; padding: 8px 28px 8px 10px; border: 1px solid #cfd4db; border-radius: 6px; font: inherit; }
ul.topic-list li { display: flex; align-items: center; gap: 6px; padding: 2px 0; }
ul.topic-list form.inline { display: inline; margin: 0; }
#feste-punkte form.row input[name=title] { flex: 1 1 220px; min-width: 0; padding: 6px 8px; border: 1px solid #cfd4db; border-radius: 6px; font: inherit; }
.proposal-box { margin: 8px 0; padding: 8px 10px; border-left: 3px solid #e0a84a; background: #fff8ea; border-radius: 4px; }
.proposal-box .btn { margin-left: 6px; }
.dec-tag.dec-rejected { text-decoration: line-through; text-decoration-thickness: 1px; }
label.dec-result { display: inline-flex; gap: 6px; align-items: center; font-size: .85rem; }
.meeting-no { margin: -6px 0 8px; }
.list-more { display: flex; align-items: center; gap: 10px; justify-content: center; margin: 12px 0; }
details.audience summary { cursor: pointer; color: var(--link, inherit); }
details.audience ul { margin: 6px 0 0; }
.grem-parent { display: block; font-size: .75rem; color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.late { color: var(--red); font-weight: 600; }
.flash { padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; background: #e7f5ec; color: #145c33; border: 1px solid #bfe3cc; }
.flash.err { background: #fdecec; color: #8f0f14; border-color: #f4c3c5; }
.flash.warn { background: #fff7e6; color: #7a4d00; border-color: #f2d8a7; }
.flash.info { background: #eaf1fb; color: #1d4580; border-color: #c4d6f1; }
.tag { display: inline-block; background: #eef0f3; color: var(--muted); border-radius: 4px; padding: 0 6px; font-size: .78rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.row-form select { min-width: 0; max-width: 100%; background: #fff; }
@media (max-width: 600px) {   /* Rechte-Tabelle am Handy ohne seitliches Scrollen */
  table.list.rights th, table.list.rights td { padding: 6px 2px; }
  table.list.rights th { font-size: .66rem; letter-spacing: 0; }
  table.list.rights td:first-child, table.list.rights th:first-child { padding-left: 0; overflow-wrap: anywhere; }
}
.ho-way { padding: 10px 14px; }
.ho-way details { margin-top: 4px; }
.ho-way ul { margin: 6px 0 0; }
.ho-way li { margin-bottom: 6px; }
.pw-row { margin-bottom: 12px; }
.pw-row .row { gap: 8px; flex-wrap: wrap; align-items: stretch; }
.pw-row input { flex: 1 1 220px; min-width: 0; width: auto !important; margin: 0 !important; }
.name-row { gap: 12px; align-items: flex-start; }
.name-row label { flex: 1 1 180px; min-width: 0; }
.fp-pick { align-items: stretch; margin-bottom: 8px; }
.row-form.fp-pick select { flex: 0 1 300px; }
.grid-2 > * { min-width: 0; }   /* breite Tabellen scrollen in ihrem Rahmen, statt die Seite zu verbreitern */
.pre { white-space: normal; overflow-wrap: anywhere; }
code { background: #eef0f3; padding: 1px 5px; border-radius: 4px; }

/* Formulare */
.form label { display: block; margin-bottom: 12px; font-size: .88rem; color: var(--muted); }
.form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea, .filters input, .filters select, .quick select, input.copy {
  display: block; width: 100%; margin-top: 4px; padding: 8px 10px; border: 1px solid #cfd4db; border-radius: 6px; font: inherit; color: var(--text); background: #fff; }
.form textarea { resize: vertical; font-family: inherit; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
.form label.check { display: flex; gap: 8px; align-items: flex-start; color: var(--text); }
.grid-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-form .span-2 { grid-column: span 2; }
.narrow-form { max-width: 520px; }
.row { display: flex; gap: 8px; }
.row input[type=time] { max-width: 130px; }
body.allday .time { display: none !important; }
input.copy { font-family: ui-monospace, Menlo, monospace; font-size: .8rem; margin-bottom: 8px; }

/* Filter & Tabellen */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.filters input[type=search] { flex: 1 1 220px; width: auto; margin: 0; }
.filters select { width: auto; margin: 0; }
.stats { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; align-items: center; }
.stats a { color: var(--text); }
.overdue-count { color: var(--red); font-weight: 600; }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
table.list { width: 100%; border-collapse: collapse; }
table.list th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); padding: 10px; border-bottom: 2px solid var(--line); background: #fafbfc; white-space: nowrap; }
table.list th a { color: var(--muted); }
table.list th a.sorted { color: var(--brand); }
table.list th a.sorted::after { content: " ▾"; }
table.list td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list tr.click { cursor: pointer; }
table.list tr.click:hover td { background: var(--brand-bg); }
tr.inactive td { opacity: .5; }
.clamp { max-width: 520px; }

/* Badges */
.prio { display: inline-block; min-width: 30px; text-align: center; font-weight: 700; font-size: .8rem; border-radius: 4px; padding: 2px 6px; color: #fff; }
.prio-a1 { background: var(--red); }
.prio-a2 { background: #e07b00; }
.prio-b1 { background: #2f7fc1; }
.prio-b2 { background: #8a929c; }
.status { display: inline-block; font-size: .78rem; padding: 2px 8px; border-radius: 99px; background: #eef0f3; white-space: nowrap; }
.s-open { background: #fdecec; color: #8f0f14; }
.s-work { background: #fff3dc; color: #7a4a00; }
.s-wait { background: #efe8fb; color: #523090; }
.s-watch { background: #e5f0fb; color: #1d4580; }
.s-done { background: #e7f5ec; color: #145c33; }
.s-cont { background: #e9f3f3; color: #1f5d5d; }
.bar { display: inline-block; width: 70px; height: 7px; background: #e6e8ec; border-radius: 4px; overflow: hidden; vertical-align: middle; margin-right: 6px; }
.bar span { display: block; height: 100%; background: var(--ok); }

/* Detailansicht */
dl.facts { display: grid; grid-template-columns: 150px 1fr; gap: 6px 12px; margin: 0 0 18px; }
dl.facts dt { color: var(--muted); font-size: .88rem; }
dl.facts dd { margin: 0; }
.quick { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.quick select { width: auto; margin: 0; }
ul.timeline { list-style: none; padding: 0; margin: 0; }
ul.timeline li { border-left: 3px solid var(--line); padding: 4px 0 10px 12px; margin-left: 4px; overflow-wrap: anywhere; }
ul.timeline li.comment { border-left-color: var(--blue); }
ul.timeline .meta { font-size: .78rem; color: var(--muted); }
del { color: #9a3a3a; background: #fdecec; text-decoration: line-through; }
ins { color: #145c33; background: #e7f5ec; text-decoration: none; }
.diff del, .diff ins { display: block; padding: 6px; margin: 4px 0; font-size: .85rem; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 6px 0; border-bottom: 1px solid var(--line); }
pre.mail { white-space: pre-wrap; font-size: .85rem; background: #fafbfc; padding: 10px; border-radius: 6px; }

/* Kalender */
.cal-nav { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.cal-nav h2 { min-width: 170px; text-align: center; }
.toggle { margin-left: auto; font-size: .88rem; color: var(--muted); }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--line); gap: 1px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.cal-h { background: #fafbfc; padding: 6px; font-size: .78rem; font-weight: 600; color: var(--muted); text-align: center; }
.cal-d { background: #fff; min-height: 104px; padding: 4px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cal-d.we { background: #fcfcfd; }
.cal-d.other { background: #f7f8f9; }
.cal-d.other .num { color: #b4bac3; }
.cal-d .num { font-size: .82rem; color: var(--muted); align-self: flex-end; padding: 0 5px; border-radius: 99px; }
.cal-d .num:hover { background: #eee; text-decoration: none; }
.cal-d.today .num { background: var(--brand); color: #fff; font-weight: 700; }
.ev { display: block; font-size: .76rem; padding: 2px 5px; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; background: var(--blue); }
.ev:hover { text-decoration: none; filter: brightness(1.1); }
.ev.cat-0 { background: #2457a6; } .ev.cat-1 { background: #c4151c; } .ev.cat-2 { background: #1f8a4c; }
.ev.cat-3 { background: #7d3cb5; } .ev.cat-4 { background: #b26a00; } .ev.cat-5 { background: #1f6f7a; }
.ev.lopdue { background: #fff3dc; color: #7a4a00; border: 1px dashed #e0a84a; }

@media (max-width: 1180px) and (min-width: 901px) {
  .top { gap: 12px; }
  nav.main a { padding: 16px 7px; font-size: .9rem; }
}

/* Handy */
@media (max-width: 900px) {
  .grid-2, .grid-form { grid-template-columns: 1fr; }
  .grid-form .span-2 { grid-column: auto; }
  .burger { display: block; }
  .top { flex-wrap: wrap; }
  nav.main { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; padding-bottom: 8px; }
  nav.main a { padding: 10px 8px; border-bottom: 0; }
  nav.main a.on { background: rgba(255,255,255,.15); }
  body.nav-open nav.main { display: flex; }
  dl.facts { grid-template-columns: 1fr; }
  dl.facts dt { margin-top: 6px; }
  .cal-d { min-height: 64px; }
  .ev { font-size: .66rem; padding: 1px 3px; }
  .ev b { display: none; }
  .toggle { margin-left: 0; }
  .lop-list td:nth-child(4), .lop-list th:nth-child(4), .lop-list td:nth-child(9), .lop-list th:nth-child(9) { display: none; }
}

/* Anhänge */
ul.files { list-style: none; padding: 0; margin: 0 0 14px; }
ul.files li { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
ul.files .ficon { font-size: 1.3rem; }
ul.files .fname { flex: 1; min-width: 0; overflow-wrap: anywhere; }
ul.files .fname .small { display: block; }
ul.files form { margin: 0; }
.upload { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.drop { flex: 1 1 260px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 2px dashed #cfd4db; border-radius: 8px; padding: 14px; text-align: center; cursor: pointer; color: var(--text); font-size: .9rem; }
.drop:hover, .drop.over { border-color: var(--brand); background: var(--brand-bg); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
ul.timeline li.file { border-left-color: #8a929c; }

/* Unteraufgaben */
.tasks h3 { margin-bottom: 8px; }
ul.tasklist { list-style: none; padding: 0; margin: 0 0 10px; }
ul.tasklist li { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--line); }
ul.tasklist li form { margin: 0; }
ul.tasklist .ttitle { flex: 1; min-width: 0; overflow-wrap: anywhere; }
ul.tasklist li.done .ttitle { color: var(--muted); text-decoration: line-through; }
ul.tasklist .tag { margin-left: 4px; }
button.chk { width: 22px; height: 22px; border: 2px solid #9aa1ab; border-radius: 5px; background: #fff; cursor: pointer; font-weight: 700; color: #fff; line-height: 1; padding: 0; }
li.done button.chk { background: var(--ok); border-color: var(--ok); }
button.chk:hover { border-color: var(--ok); }
button.x { border: 0; background: none; color: #b4bac3; cursor: pointer; font-size: .9rem; }
button.x:hover { color: var(--red); }
.task-add { display: flex; gap: 6px; flex-wrap: wrap; }
.task-add input { padding: 6px 8px; border: 1px solid #cfd4db; border-radius: 6px; font: inherit; font-size: .9rem; }
.task-add input[name=task_title] { flex: 1 1 180px; }
.task-add input[name=task_assignee] { flex: 0 1 140px; width: 140px; }
ul.timeline li.task { border-left-color: var(--ok); }

/* Sitzungsmodus */
.head form { margin: 0; }
.meeting-head { display: grid; gap: 4px; }
.meeting-progress { margin-top: 6px; }
nav.agenda { position: sticky; top: 54px; z-index: 5; display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 0; background: var(--bg); margin-bottom: 8px; }
nav.agenda a { min-width: 32px; text-align: center; padding: 4px 8px; border-radius: 6px; background: #fff; border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: .85rem; }
nav.agenda a.done { background: #e7f5ec; border-color: #bfe3cc; color: #145c33; }
nav.agenda a:hover { border-color: var(--brand); text-decoration: none; }
section.mitem { scroll-margin-top: 110px; border-left: 4px solid var(--line); }
section.mitem.discussed { border-left-color: var(--ok); opacity: .85; }
section.mitem:target { border-left-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.mitem-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mitem-head h2 { font-size: 1.1rem; flex: 1 1 200px; }
.mitem-head .topnr { font-weight: 700; color: var(--muted); font-size: .85rem; }
.mdesc { margin: 10px 0; }
.mdesc summary { cursor: pointer; color: var(--muted); font-size: .88rem; }
.mdesc .pre { margin-top: 6px; padding: 8px 10px; background: #fafbfc; border-radius: 6px; }
.mitem-body { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 12px; }
.mquick .row { gap: 10px; align-items: flex-end; }
.mquick .row label { flex: 1; }
.mitem-foot { margin-top: 12px; display: flex; justify-content: flex-end; }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.row-form { display: flex; gap: 8px; flex-wrap: wrap; }
.row-form select { flex: 1 1 260px; padding: 8px; border: 1px solid #cfd4db; border-radius: 6px; font: inherit; }
/* Auswahlfelder in Formularen und Filtern: einheitlich statt der grauen Browser-Form */
.form select, .filters select, .quick select, .quick-add select, .row-form select, .stati-list form.rename select { -webkit-appearance: none; appearance: none; padding-right: 28px; cursor: pointer; background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; color: var(--text); }
.form select:disabled, .filters select:disabled, .quick select:disabled, .row-form select:disabled { background-color: #f4f5f7; color: var(--muted); cursor: not-allowed; }
fieldset.checks { border: 1px solid var(--line); border-radius: 6px; margin: 0 0 12px; padding: 8px 12px; }
fieldset.checks legend { font-size: .88rem; color: var(--muted); }
fieldset.checks label.check { margin: 4px 0; }

/* Kartenansicht LoP (Handy) */
.lop-cards { display: none; }
.lop-card { display: block; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 10px; color: var(--text); }
.lop-card:hover { text-decoration: none; border-color: #d9a3a5; }
.lc-top { display: flex; align-items: center; gap: 6px; }
.lc-due { margin-left: auto; font-size: .85rem; }
.lc-title { font-weight: 700; margin: 6px 0 2px; line-height: 1.3; }
.lc-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }

@media (max-width: 900px) {
  .lop-list-wrap, .table-wrap:has(.lop-list) { display: none; }
  .lop-cards { display: block; }
  .mitem-body { grid-template-columns: 1fr; }
  nav.agenda { top: 54px; }
  .task-add input[name=task_assignee] { flex: 1 1 120px; }
}

/* Backup-Anleitung */
ol.steps { padding-left: 20px; margin: 0 0 16px; }
ol.steps li { margin-bottom: 8px; }
ol.steps .copy { margin-top: 4px; }

/* Tagesordnung sortieren */
details.sorter summary { cursor: pointer; }
.sortform { margin-top: 12px; }
.sortby { gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
ol.sortlist { list-style: none; padding: 0; margin: 0 0 12px; }
ol.sortlist li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; margin-bottom: 4px; background: #fff; border: 1px solid var(--line); border-radius: 6px; cursor: grab; transition: background .3s; }
ol.sortlist li.dragging { opacity: .4; }
ol.sortlist li.moved { background: #fff3dc; }
ol.sortlist .grip { color: #9aa1ab; font-size: 1.1rem; user-select: none; }
ol.sortlist .topno { font-weight: 700; color: var(--muted); font-size: .8rem; min-width: 48px; }
ol.sortlist .tp { display: flex; align-items: center; gap: 8px; }
ol.sortlist .arrows { display: flex; gap: 6px; }
ol.sortlist .stitle { flex: 1; min-width: 0; overflow-wrap: break-word; hyphens: auto; }
ol.sortlist .stitle .small { display: block; }
@media (max-width: 900px) {
  ol.sortlist li { gap: 10px; padding: 8px; }
  ol.sortlist .grip { display: none; }
  ol.sortlist .tp { flex-direction: column; align-items: center; gap: 4px; }
  ol.sortlist .topno { min-width: 0; font-size: .72rem; }
  ol.sortlist .arrows { flex-direction: column; }
  ol.sortlist .btn.small { padding: 5px 12px; }
}

/* Gremien */
.gremien-list li { cursor: default; }
.gremien-list .grip { cursor: grab; }
.gremien-list li.inactive { background: #f4f5f7; }
.gremien-list li.inactive input[name=name] { color: var(--muted); text-decoration: line-through; }
.gremien-list form { margin: 0; }
.gremien-list li.is-sub { margin-left: 22px; border-left: 3px solid var(--line); }
.gremien-list .parent-pick { margin-left: 22px; }
.gremien-list .sub-toggle { margin-left: 22px; }
.gremien-list .parent-pick select { max-width: 190px; -webkit-appearance: none; appearance: none; font: inherit; font-size: .82rem; line-height: inherit; color: var(--text); padding: 4px 26px 4px 10px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 9px center; }
.gremien-list li { flex-wrap: wrap; row-gap: 6px; }
.gremien-list form.rename { flex: 1 1 0; display: flex; gap: 4px; min-width: 0; }
.sortlist.gremien-list li .arrows { flex: none; display: inline-flex; flex-direction: row; gap: 4px; }
.gremien-list .row-break { flex: 0 0 100%; height: 0; }
.gremien-list .grem-actions { margin-left: auto; display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; }
@media (min-width: 1100px) { .gremien-grid { grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); } }
.gremien-list form.rename input { flex: 1 1 auto; min-width: 0; }
.gremien-list form.rename input { flex: 1; min-width: 0; padding: 5px 8px; border: 1px solid transparent; border-radius: 5px; font: inherit; background: transparent; }
.gremien-list form.rename input:hover, .gremien-list form.rename input:focus { border-color: #cfd4db; background: #fff; }
.gremien-list .x-placeholder, .gremien-list .grem-actions .x { display: inline-block; width: 22px; padding: 0; text-align: center; }

/* Menü: Verwaltung (Admin) */
details.navdrop { position: relative; }
details.navdrop > summary { list-style: none; color: #fff; padding: 16px 12px; cursor: pointer; opacity: .9; white-space: nowrap; border-bottom: 3px solid transparent; }
details.navdrop > summary::-webkit-details-marker { display: none; }
details.navdrop > summary:hover { opacity: 1; background: rgba(255,255,255,.08); }
details.navdrop.on > summary { opacity: 1; border-bottom-color: #fff; font-weight: 600; }
details.navdrop .dropmenu { position: absolute; top: 100%; left: 0; min-width: 190px; background: #fff; border-radius: 0 0 8px 8px; box-shadow: 0 6px 20px rgba(0,0,0,.18); padding: 6px 0; z-index: 20; }
nav.main details.navdrop .dropmenu a { display: block; color: var(--text); padding: 9px 16px; border: 0; opacity: 1; }
nav.main details.navdrop .dropmenu a:hover { background: #f4f5f7; text-decoration: none; }
nav.main details.navdrop .dropmenu a.on { color: var(--brand); font-weight: 600; background: var(--brand-bg); }
@media (max-width: 1180px) and (min-width: 901px) { details.navdrop > summary { padding: 16px 7px; font-size: .9rem; } }
@media (max-width: 900px) {
  details.navdrop > summary { padding: 10px 8px; border-bottom: 0; }
  details.navdrop .dropmenu { position: static; box-shadow: none; background: rgba(255,255,255,.1); border-radius: 6px; }
  nav.main details.navdrop .dropmenu a { color: #fff; padding: 9px 20px; }
  nav.main details.navdrop .dropmenu a:hover, nav.main details.navdrop .dropmenu a.on { background: rgba(255,255,255,.15); color: #fff; }
}

/* Status-Farben (Verwaltung → Status) */
.s-red { background: #fdecec; color: #8f0f14; }
.s-orange { background: #fff3dc; color: #7a4a00; }
.s-purple { background: #efe8fb; color: #523090; }
.s-blue { background: #e5f0fb; color: #1d4580; }
.s-teal { background: #e9f3f3; color: #1f5d5d; }
.s-green { background: #e7f5ec; color: #145c33; }
.s-gray { background: #eef0f3; color: #4a525c; }
.stati-grid { grid-template-columns: 3fr 2fr; }
.stati-list .status.preview { width: 18px; height: 18px; padding: 0; border-radius: 50%; flex: none; border: 1px solid rgba(0,0,0,.08); }
.stati-list form.rename { align-items: center; flex-wrap: wrap; }
.stati-list form.rename select { padding: 4px; border: 1px solid #cfd4db; border-radius: 5px; font: inherit; font-size: .85rem; }
.stati-list .donechk { font-size: .8rem; color: var(--muted); display: flex; align-items: center; gap: 3px; white-space: nowrap; }
@media (max-width: 900px) { .stati-grid { grid-template-columns: 1fr; } .stati-list li { flex-wrap: wrap; } }
.stati-list .smain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.stati-list .smain form.rename input[name=name] { flex: 1 1 140px; }
.stati-list .smeta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-left: 26px; }
.stati-list .smeta form { margin: 0; }
span.chk.ro { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border: 2px solid #c8cdd4; border-radius: 5px; color: #fff; font-weight: 700; }
li.done span.chk.ro { background: #9fd3b4; border-color: #9fd3b4; }

/* Rechte-Matrix */
table.rights td, table.rights th { padding: 6px 8px; }
table.rights tr.set td { background: var(--brand-bg); }
table.rights tr.inactive td { opacity: .5; }
table.rights input[type=radio] { width: 18px; height: 18px; accent-color: var(--brand); }
.btn.fullon { background: #fff3dc; border-color: #e0a84a; color: #7a4a00; }

/* Dialog (z. B. Vorgang übertragen) */
dialog.modal { border: 0; border-radius: 10px; padding: 22px; width: min(460px, calc(100vw - 32px)); box-shadow: 0 10px 40px rgba(0,0,0,.25); }
dialog.modal::backdrop { background: rgba(20,24,30,.45); }
dialog.modal h3 { margin-top: 0; }
/* Rückfrage statt confirm()/alert() (assets/dialog.js) */
dialog.frage-dialog { width: min(420px, calc(100vw - 32px)); padding: 22px 22px 18px; }
dialog.frage-dialog[open] { animation: frage-rein .14s ease-out; }
@keyframes frage-rein { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.frage-text { margin: 0 0 20px; white-space: pre-line; line-height: 1.5; font-size: 1rem; }
.frage-knoepfe { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.frage-knoepfe .btn { min-width: 96px; text-align: center; }
.zusage-einst { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 4px 0; }
.zusage-einst legend { font-weight: 600; padding: 0 4px; }
.zusage-einst:not(.an) .zusage-mehr { display: none; }
.zusage-knoepfe { gap: 8px; flex-wrap: wrap; }
.zusage-knoepfe .btn.aktiv { box-shadow: 0 0 0 2px var(--brand); }
.ew-feld { border: 0; padding: 0; margin: 0 0 12px; }
.ew-feld legend { font-weight: 600; padding: 0; }
.ew-feld p { margin: 2px 0 6px; }
.frage-knoepfe .btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
ul.timeline li.transfer { border-left-color: #e07b00; }

/* Hilfe */
.help { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: start; }
.help-toc { position: sticky; top: 70px; font-size: .9rem; }
.help-toc ol { margin: 8px 0 0; padding-left: 20px; }
.help-toc li { margin: 4px 0; }
.help-body h1 { margin-top: 0; }
.help-body .lead { font-size: 1.02rem; }
.help-body section { scroll-margin-top: 70px; }
.help-body h2 { font-size: 1.2rem; margin: 0 0 .6em; }
.help-body h3 { margin: 1.1em 0 .4em; }
.help-body ul, .help-body ol { padding-left: 20px; margin: 0; }
.help-body li { margin: 5px 0; }
.help-body table { margin: 6px 0; }
.help-body details { border-top: 1px solid var(--line); padding: 8px 0; }
.help-body details summary { cursor: pointer; font-weight: 600; }
.help-body details p { margin: 6px 0 0; }
@media (max-width: 900px) { .help { grid-template-columns: 1fr; } .help-toc { position: static; } }

/* Aufgabe bearbeiten */
ul.tasklist li { flex-wrap: wrap; }
ul.tasklist .task-edit { display: none; flex: 1 1 100%; gap: 6px; flex-wrap: wrap; padding: 6px 0 2px 30px; }
ul.tasklist li.editing .task-edit { display: flex; }
ul.tasklist li.editing .ttitle, ul.tasklist li.editing button.edit { opacity: .35; }
ul.tasklist .task-edit input { padding: 5px 8px; border: 1px solid #cfd4db; border-radius: 6px; font: inherit; font-size: .9rem; }
ul.tasklist .task-edit input[name=task_title] { flex: 1 1 200px; }
ul.tasklist .task-edit input[name=task_assignee] { flex: 0 1 150px; width: 150px; }
button.x.edit:hover { color: var(--blue); }

/* Namen-Tags zum Anklicken (Unterstützung) */
.chipfield { margin-bottom: 12px; }
.chipfield label { margin-bottom: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.chip { border: 1px solid #cfd4db; background: #fff; color: var(--text); border-radius: 99px; padding: 3px 11px; font: inherit; font-size: .82rem; cursor: pointer; }
.chip:hover { border-color: var(--brand); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip.on::before { content: '✓ '; }
.chips-hint { display: block; font-size: .78rem; }

/* Aufgaben sortieren: am Griff ziehen (Maus und Finger) */
ul.tasklist .tgrip { color: #b4bac3; cursor: grab; user-select: none; touch-action: none; padding: 0 2px; font-size: 1.05rem; }
ul.tasklist .tgrip:hover { color: var(--brand); }
ul.tasklist li.done .tgrip { visibility: hidden; }
ul.tasklist li.tdragging { background: var(--brand-bg); box-shadow: 0 2px 8px rgba(0,0,0,.12); border-radius: 6px; position: relative; z-index: 2; }
ul.tasklist li.editing .tgrip { display: none; }

/* Neu seit dem letzten Besuch */
.newdot { color: #2457a6; font-size: .8rem; vertical-align: 1px; }
.newfilter { color: #2457a6 !important; font-weight: 600; font-size: .9rem; }
.newfilter.on { background: #e5f0fb; padding: 2px 8px; border-radius: 99px; }

/* Verlauf eines Vorgangs: Kommentare als Sprechblasen, Systemmeldungen kompakt und gruppiert */
.tl-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.tl-head h3 { margin: 0; }
.tl-filter { display: flex; gap: 4px; }
.tl-filter .btn.on { background: #eef0f3; border-color: #cfd4db; font-weight: 600; }
ul.tl { list-style: none; padding: 0; margin: 0; position: relative; }
ul.tl > li { margin-bottom: 12px; }
ul.tl.only-comments > li.tl-sys { display: none; }
li.tl-comment { display: flex; gap: 10px; align-items: flex-start; }
.avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; color: #fff; font-weight: 700; font-size: .8rem; display: flex; align-items: center; justify-content: center; }
.av0 { background: #2457a6; } .av1 { background: #c4151c; } .av2 { background: #1f8a4c; }
.av3 { background: #7d3cb5; } .av4 { background: #b26a00; } .av5 { background: #1f6f7a; }
.bubble { flex: 1; min-width: 0; background: #fff; border: 1px solid #c4d6f1; border-left: 4px solid var(--blue); border-radius: 0 10px 10px 10px; padding: 8px 12px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.bmeta { font-size: .8rem; color: var(--muted); margin-bottom: 3px; }
.bmeta b { color: var(--text); }
.btext { font-size: .95rem; overflow-wrap: anywhere; }
li.tl-sys { margin-left: 44px; padding: 4px 0 4px 12px; border-left: 2px solid var(--line); color: var(--muted); font-size: .82rem; }
li.tl-sys .smeta { font-size: .75rem; margin-bottom: 2px; }
ul.sys-items { list-style: none; padding: 0; margin: 0; }
ul.sys-items li { padding: 1px 0; overflow-wrap: anywhere; }
ul.sys-items .sic { display: inline-block; width: 16px; text-align: center; opacity: .8; }
ul.sys-items b { color: #4a525c; font-weight: 600; }
ul.sys-items del, ul.sys-items ins { padding: 0 3px; border-radius: 3px; }
ul.sys-items li.a-transfer { color: #7a4a00; }
ul.sys-items details summary { cursor: pointer; display: inline; }
@media (max-width: 900px) { li.tl-sys { margin-left: 16px; } .avatar { width: 28px; height: 28px; font-size: .72rem; } }
ul.tl-compact li.tl-sys { margin-left: 0; }
ul.tl-compact > li { margin-bottom: 8px; }

/* Umschalter Vorgänge | Aufgaben */
nav.tabs { display: inline-flex; gap: 2px; background: #eef0f3; border-radius: 8px; padding: 3px; margin-bottom: 10px; }
nav.tabs a { padding: 5px 14px; border-radius: 6px; color: var(--muted); font-weight: 600; font-size: .9rem; }
nav.tabs a:hover { text-decoration: none; color: var(--text); }
nav.tabs a.on { background: #fff; color: var(--brand); box-shadow: 0 1px 2px rgba(0,0,0,.08); }

/* Aufgaben-Übersicht */
ul.tasklist.all li { display: grid; grid-template-columns: 26px minmax(0, 1fr) 100px minmax(0, 1.1fr); gap: 10px; align-items: center; padding: 8px 0; }
ul.tasklist.all li form { margin: 0; }
ul.tasklist.all .tdue { font-size: .88rem; white-space: nowrap; }
ul.tasklist.all .tlop { font-size: .88rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
ul.tasklist.all .tlop:hover { color: var(--blue); text-decoration: none; }
ul.tasklist.all li:target { background: #fff8e1; }
@media (max-width: 900px) {
  ul.tasklist.all li { grid-template-columns: 26px 1fr auto; }
  ul.tasklist.all .tlop { grid-column: 2 / 4; white-space: normal; }
}

/* Formatierte Beschreibung und Formatierungsleiste */
.fmt ul.fmt-list { margin: 4px 0 6px; padding-left: 22px; }
.fmt ul.fmt-list li { margin: 1px 0; }
.fmtfield { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.fmtfield > label { margin-bottom: 0; }
.fmtbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 4px; background: #f6f7f9; border: 1px solid #cfd4db; border-bottom: 0; border-radius: 6px 6px 0 0; }
.fmtbar button { min-width: 32px; height: 28px; border: 1px solid transparent; background: none; border-radius: 4px; cursor: pointer; font: inherit; font-size: .9rem; color: var(--text); padding: 0 8px; }
.fmtbar button:hover { background: #fff; border-color: #cfd4db; }
.fmtbar .muted { margin-left: auto; padding-right: 4px; }
.form .fmtfield textarea { margin-top: 0 !important; border-top-left-radius: 0; border-top-right-radius: 0; }
@media (max-width: 900px) { .fmtbar .muted { display: none; } }

/* Sitzung vorbereiten: Vorgänge für die Tagesordnung anhaken, Einladung */
.agenda-pick .picklist { display: flex; flex-direction: column; margin: 6px 0 10px; max-height: 420px; overflow: auto; }
.agenda-pick label.pick { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; padding: 6px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.agenda-pick label.pick:hover { background: var(--brand-bg); }
.agenda-pick label.pick input { width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.agenda-pick .ptitle { font-weight: 600; }
.agenda-pick .pickmore summary { cursor: pointer; color: var(--muted); margin: 4px 0; }
.checks-inline { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 8px 0 12px; }
.checks-inline label.check { display: flex; align-items: center; gap: 6px; }

/* TOP „Verschiedenes“ */
.sortfixed { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin: 4px 0 10px; border: 1px dashed var(--line); border-radius: 6px; color: var(--muted); }
.inline-toggle { margin: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.inline-toggle .btn { padding: 0 4px; }
/* Sitzung: Anwesenheit und Einträge je TOP */
.attendance table.att { margin: 6px 0 12px; }
.attendance table.att td, .attendance table.att th { padding: 6px 8px; }
.attendance table.att input[type=radio] { width: 18px; height: 18px; accent-color: var(--brand); }
.attendance tr.a-anwesend td:first-child { color: var(--ok); font-weight: 600; }
.attendance tr.a-entschuldigt td:first-child { color: var(--warn); }
.attendance tr.a-abwesend td:first-child { color: var(--muted); text-decoration: line-through; }
.attendance tr.a-none td:first-child::after { content: ' · noch offen'; color: var(--muted); font-size: .8rem; font-weight: normal; }
.mlog { margin: 8px 0; padding: 8px 12px; background: #f2f8f3; border: 1px solid #cfe6d6; border-radius: 6px; font-size: .9rem; }
.mlog ul { margin: 4px 0 0; padding-left: 18px; }
.mlog li { margin: 2px 0; }
.mlog li.note .fmt { display: inline; }
.mlog details.note-edit { display: inline; }
.mlog details.note-edit summary { display: inline; cursor: pointer; color: var(--muted); list-style: none; padding: 0 4px; }
.mlog details.note-edit summary::-webkit-details-marker { display: none; }
.mlog details.note-edit[open] { display: block; margin: 6px 0; }
.mlog details.note-edit textarea { width: 100%; }
.ok-text { color: var(--ok); }
.warn-text { color: var(--warn); }

/* Terminplaner */
.ev.proposal { background: #fff; color: var(--blue); border: 1px dashed var(--blue); }
.ev.proposal.legend { display: inline-block; font-size: .78rem; margin-left: 6px; }
.muted-row td { color: var(--muted); }
.poll-chosen { margin-top: 6px; padding: 6px 10px; background: #e7f5ec; border: 1px solid #bfe3cc; border-radius: 6px; color: #145c33; }
table.poll-grid th, table.poll-grid td { padding: 6px 8px; }
table.poll-grid thead th { line-height: 1.2; min-width: 74px; }
table.poll-grid .pd-w { font-size: .75rem; color: var(--muted); font-weight: normal; }
table.poll-grid .pd-d { font-size: .95rem; }
table.poll-grid .pd-t { font-size: .75rem; color: var(--muted); font-weight: normal; white-space: nowrap; }
table.poll-grid th.best { background: #e7f5ec; }
table.poll-grid th.chosen { background: #1f8a4c; color: #fff; }
table.poll-grid th.chosen div { color: #fff; }
table.poll-grid td.v { font-weight: 700; font-size: 1.05rem; }
table.poll-grid td.v-ja { background: #e7f5ec; color: var(--ok); }
table.poll-grid td.v-vielleicht { background: #fff3dc; color: var(--warn); }
table.poll-grid td.v-nein { background: #fdecec; color: var(--red); }
table.poll-grid tr.mine td { background: #f4f8ff; }
table.poll-grid tr.novote td:first-child { color: var(--muted); }
table.poll-grid td input[name=comment] { width: 100%; min-width: 140px; }
.vote-edit { white-space: nowrap; }
.vb { display: inline-block; margin: 0 1px; cursor: pointer; }
.vb input { position: absolute; opacity: 0; pointer-events: none; }
.vb span { display: inline-block; width: 26px; height: 26px; line-height: 24px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font-weight: 700; background: #fff; }
.vb input:focus-visible + span { outline: 2px solid var(--blue); }
.vb.v-ja input:checked + span { background: var(--ok); border-color: var(--ok); color: #fff; }
.vb.v-vielleicht input:checked + span { background: var(--warn); border-color: var(--warn); color: #fff; }
.vb.v-nein input:checked + span { background: var(--red); border-color: var(--red); color: #fff; }
.poll-pick label.check { display: block; margin: 4px 0; }
.poll-opt { margin: 4px 0; align-items: center; flex-wrap: wrap; }
.poll-opt input[type=date] { width: auto; }
.poll-opt input[type=time] { width: 110px; }
.checkgrid { display: flex; flex-wrap: wrap; gap: 4px 16px; }
/* Handy: Namensspalte bleibt beim seitlichen Scrollen stehen */
table.poll-grid tr > :first-child { position: sticky; left: 0; z-index: 1; background: #fff; }
table.poll-grid thead tr > :first-child, table.poll-grid tfoot tr > :first-child { background: #fafbfc; }
table.poll-grid tr.mine > :first-child { background: #f4f8ff; }
@media (max-width: 700px) { table.poll-grid tr > :first-child { max-width: 110px; } }
.ev.taskdue { background: #eef4ec; color: #145c33; border: 1px dashed #8cc49f; }
/* Favoriten */
form.favform { display: inline; margin: 0; }
button.fav { background: none; border: 0; padding: 0 2px; font-size: 1.25rem; line-height: 1; color: #b4bac3; cursor: pointer; vertical-align: baseline; }
button.fav:hover { color: #e0a800; }
.fav.on, button.fav.on { color: #e0a800; }
h1 button.fav { font-size: 1.5rem; }
th.favcol, td.favcol { width: 28px; padding-left: 6px; padding-right: 0; text-align: center; }
.newfilter.favfilter { color: #8a6500 !important; }
.newfilter.favfilter.on { background: #fff6d6; }
.meeting-edit summary { cursor: pointer; color: var(--blue); font-size: .9rem; }
.meeting-edit form.row { flex-wrap: wrap; align-items: flex-end; gap: 8px; margin: 8px 0 2px; }
.meeting-edit form.row label { margin: 0; }
.poll-chosen .moved { color: var(--warn); }
[hidden] { display: none !important; }
/* Sitzungs-Entwürfe */
.card.drafts { border: 1px dashed #b4bac3; background: #fafbfc; }
.card.drafts h3 { margin-top: 0; }
.card.drafts li { margin: 6px 0; }

/* Suchfeld in der Menüleiste */
form.navsearch { margin: 0 6px; }
form.navsearch input { width: 170px; padding: 5px 10px; border-radius: 99px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.15); color: #fff; font-size: .88rem; }
form.navsearch input::placeholder { color: rgba(255,255,255,.75); }
form.navsearch input:focus { background: #fff; color: var(--text); outline: none; width: 220px; }
@media (max-width: 1100px) { form.navsearch input { width: 120px; } form.navsearch input:focus { width: 170px; } }
@media (max-width: 800px) { form.navsearch { margin: 6px 8px; } form.navsearch input, form.navsearch input:focus { width: 100%; } }

/* Startseite „Mein Überblick“ */
.overview { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; align-items: start; }
.overview .card { margin: 0; }
.ov h3 { margin-top: 0; display: flex; align-items: center; gap: 8px; }
.ov h3 .count { background: #eef0f3; color: var(--muted); border-radius: 99px; padding: 0 8px; font-size: .8rem; font-weight: 600; }
.ov-poll { border-left: 4px solid var(--blue); }
ul.ov-list { list-style: none; margin: 0; padding: 0; }
ul.ov-list > li { padding: 7px 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; justify-content: space-between; }
ul.ov-list > li:last-child { border-bottom: 0; }
ul.ov-list > li > a { flex: 1 1 200px; }
.ov-meta { font-size: .85rem; white-space: nowrap; }
.ov-more { display: inline-block; margin-top: 8px; font-size: .88rem; }
ul.ov-tasks { margin: 0; }

/* Suchergebnisse */
mark { background: #ffe58a; color: inherit; padding: 0 1px; border-radius: 2px; }
.search-sec h3 { margin-top: 0; }
.search-sec li.closed { opacity: .6; }
.search-sec .snip { flex-basis: 100%; font-size: .88rem; color: var(--muted); }

/* Vorlagen */
.tpl-task { margin: 4px 0; gap: 6px; flex-wrap: wrap; }
.tpl-task input:first-child { flex: 2 1 220px; }
.tpl-task input:nth-child(2) { flex: 1 1 140px; }
.tpl-pick { align-items: center; gap: 8px; padding: 10px 14px; }
.tpl-pick label { margin: 0; align-items: center; gap: 8px; }

/* Wiedervorlage */
.wv-tag { display: inline-block; font-size: .78rem; font-weight: 600; color: #5b6472; background: #eef1f5; border-radius: 99px; padding: 0 7px; white-space: nowrap; }
.wv-tag.due { color: #8a4b00; background: #fff0d9; }
.newfilter.wvfilter { color: #5b6472 !important; }
.newfilter.wvfilter.due { color: #8a4b00 !important; }
.newfilter.wvfilter.on { background: #eef1f5; }
.wv-banner { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; margin: 8px 0 12px; padding: 10px 14px; border-radius: 8px; background: #eef1f5; border-left: 4px solid #8a94a3; }
.wv-banner.due { background: #fff0d9; border-left-color: #e08a00; }
.wv-banner form { display: flex; gap: 6px; }
.ov-wv { border-left: 4px solid #e08a00; }
#resubmit .row { flex-wrap: wrap; }

/* Beschlüsse */
.dec-tag { display: inline-block; font-size: .78rem; font-weight: 600; color: #6b3fa0; background: #f1e9fb; border-radius: 99px; padding: 0 7px; white-space: nowrap; }
.bubble.decision { border-color: #d9c6f0; border-left-color: #7b4bb8; }
li.note.decision { list-style: none; margin-left: -1.1em; }
.dec-toggle { display: inline; margin-left: 6px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; font: inherit; text-decoration: underline dotted; }
.linkbtn:hover { color: #6b3fa0; }
.dec-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dec-list li.card { margin: 0; border-left: 4px solid #7b4bb8; }
.dec-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-bottom: 4px; }
.dec-body { margin: 4px 0 6px; }
.dec-ref { color: var(--muted); }
@media (max-width: 480px) { nav.tabs { max-width: 100%; overflow-x: auto; } nav.tabs a { padding: 5px 10px; white-space: nowrap; } }

/* Datenschutz / Impressum */
.site-foot { text-align: center; font-size: .82rem; color: var(--muted); padding: 0 16px 28px; margin-top: -36px; }
.site-foot a { color: var(--muted); }
.card.legal { max-width: 820px; margin: 0 auto; line-height: 1.55; }
.card.legal h3 { margin: 18px 0 4px; }
.card.legal ul { padding-left: 1.2em; }
.mydata summary { cursor: pointer; } .mydata .count { margin-left: 6px; } .mydata table td { vertical-align: top; }

/* Vertraulich */
.likeform { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
button.like { display: inline-flex; align-items: center; gap: 4px; background: none; border: 1px solid transparent; border-radius: 99px; padding: 1px 7px; margin-left: -7px; font: inherit; font-size: .85rem; color: var(--muted); cursor: pointer; }
button.like:hover { background: #eef1f5; }
button.like.on { color: var(--blue); }
button.like.on svg.i { fill: #cfdcf2; }
.mention-wrap { position: relative; }
.mention { color: var(--blue); font-weight: 600; background: #e8eef8; border-radius: 4px; padding: 0 3px; }
a.mention-kontakt { text-decoration: none; border-bottom: 1px dashed currentColor; }
a.mention-kontakt:hover { text-decoration: none; filter: brightness(.95); }
.pers-tag { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--blue); background: #e8eef8; border-radius: 99px; padding: 0 8px; white-space: nowrap; }
.pers-note { background: #e8eef8; border-left: 4px solid var(--blue); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.conf-tag { display: inline-block; font-size: .78rem; font-weight: 700; color: #fff; background: #9b1c1c; border-radius: 99px; padding: 0 8px; white-space: nowrap; }
.conf-banner { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; margin: 8px 0 12px; padding: 12px 16px; border-radius: 8px;
  background: #fde8e8; color: #7f1414; border: 2px solid #c81e1e; }
.conf-banner .row { display: flex; gap: 6px; }
.conf-banner form { display: inline; }
h1.conf-title { color: #9b1c1c; }
tr.conf-row td { background: #fff5f5; }
tr.conf-row td:first-child { box-shadow: inset 4px 0 0 #c81e1e; }
.lop-card.conf-row { border-left: 4px solid #c81e1e; background: #fff5f5; }
.conf-pick { max-height: 300px; overflow: auto; border: 1px solid var(--line, #dde1e6); border-radius: 8px; padding: 6px 10px; }
.conf-pick label.check { display: flex; gap: 6px; align-items: center; margin: 3px 0; }
.mitem.conf-hidden { color: #7f1414; background: #fff5f5; }

/* Namensfeld (app.js nameField) */
.nf { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 38px; padding: 3px 6px; background: #fff; border: 1px solid #cfd4db; border-radius: 6px; cursor: text; min-width: 160px; }
.nf:focus-within { border-color: #2457a6; box-shadow: 0 0 0 2px #dbe6f6; }
.nf.ro { background: #f6f7f9; cursor: default; }
.nf-chips { display: contents; }
.nf-chip { display: inline-flex; align-items: center; gap: 2px; font-size: .85rem; line-height: 1.5; padding: 0 2px 0 9px; border-radius: 99px; white-space: nowrap; }
.nf-chip.u { background: #e5f0fb; color: #1d4f91; }
.nf-chip.g { background: #fff3d6; color: #7a5300; }
.nf.ro .nf-chip { padding-right: 9px; }
.nf-chip button { border: 0; background: none; color: inherit; font-size: 1rem; line-height: 1; padding: 0 5px; cursor: pointer; border-radius: 99px; }
.nf-chip button:hover { background: rgba(0,0,0,.08); }
.nf input.nf-in { flex: 1; min-width: 90px; border: 0 !important; box-shadow: none !important; outline: 0; padding: 4px 2px !important; margin: 0; background: transparent; font: inherit; height: auto; }
.nf-dd { position: absolute; left: -1px; right: -1px; top: calc(100% + 3px); z-index: 50; background: #fff; border: 1px solid #cfd4db; border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,.12); max-height: 280px; overflow: auto; min-width: 220px; }
.nf-sec { font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); padding: 6px 10px 2px; }
.nf-opt { padding: 7px 10px; cursor: pointer; font-size: .92rem; }
.nf-opt small { color: var(--muted); margin-left: 6px; }
.nf-opt.on, .nf-opt:hover { background: #eef3fb; }
.nf-new { color: #2457a6; border-top: 1px solid #eef0f3; }
.task-add .nf, .task-edit .nf, .tpl-task .nf { flex: 1 1 180px; }
.names-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; } .names-actions details { flex: 1 1 260px; } .names-actions details[open] summary { margin-bottom: 6px; } .names-actions form.row { display: flex; gap: 6px; } .names-actions input { flex: 1; min-width: 160px; }
.c-edit { margin-top: 4px; }
.c-edit summary { display: inline; list-style: none; }
.c-edit summary::-webkit-details-marker { display: none; }
.c-edit textarea { width: 100%; margin: 6px 0; }
.c-locked { margin-top: 4px; }
/* Anwesenheit: Am PC Tabelle, am Handy je Person der Name und darunter drei beschriftete Felder */
.attendance .att-opt { display: inline; margin: 0; font-weight: normal; cursor: pointer; }
.attendance .att-opt span { display: none; }
@media (max-width: 600px) {
  .row { flex-wrap: wrap; }   /* Knöpfe nebeneinander dürfen die Seite nicht breiter machen */
  .attendance table.att, .attendance table.att tbody { display: block; }
  .attendance table.att thead { display: none; }
  .attendance table.att tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .attendance table.att td { display: block; padding: 0; border: 0; min-width: 0; }
  .attendance table.att td:first-child { grid-column: 1 / -1; overflow-wrap: anywhere; }
  .attendance .att-opt { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 44px; justify-content: center; padding: 4px 2px; border: 1px solid var(--line); border-radius: 6px; font-size: .75rem; color: var(--muted); }
  .attendance .att-opt:has(input:checked) { border-color: var(--brand); color: var(--text); font-weight: 600; }
  .attendance .att-opt span { display: inline; }
}
.push-devices { list-style: none; padding: 0; margin: 10px 0 0; }
.push-devices li { padding: 3px 0; }
.push-devices .inline-form { display: inline; margin-left: 6px; }
.push-state:empty { display: none; }

/* Einfarbige Icons (inc/icons.php) */
svg.i { width: 1.15em; height: 1.15em; vertical-align: -.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
button.fav.on svg.i { fill: currentColor; }

/* Vorgang: Knöpfe immer unter dem Titel, egal wie lang er ist */
.head.head-stack { display: block; }
.head.head-stack h1 { margin-bottom: 12px; }
.head.head-stack .actions { justify-content: flex-start; margin-bottom: 16px; }

/* Übersicht: Zahlen oben, links Aufgaben nach Fälligkeit, rechts Termine und Vorgänge */
.ov-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.ov-stat { display: block; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; color: var(--text); font-size: .9rem; }
.ov-stat:hover { text-decoration: none; border-color: #c8cdd4; }
.ov-stat b { display: block; font-size: 1.5rem; line-height: 1.2; }
.ov-stat span { display: block; font-size: .82rem; }
.ov-alerts { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); margin-bottom: 14px; }
.ov-alerts .ov-meta { white-space: normal; flex: 1 1 100%; }
.ov-main { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.ov-main .card { margin: 0; }
.ov-side { display: grid; gap: 14px; min-width: 0; }
.ov-group { margin: 12px 0 2px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.ov-group.late { color: var(--red); }
ul.tasklist.ov-tasks li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 0; }
ul.tasklist.ov-tasks li:last-child { border-bottom: 0; }
ul.tasklist.ov-tasks .ttitle { overflow-wrap: break-word; }
ul.tasklist.ov-tasks .tdue { font-size: .88rem; white-space: nowrap; }
ul.ov-dates > li { display: block; }
ul.ov-dates .ov-meta { display: block; white-space: normal; margin-top: 2px; }
@media (max-width: 900px) {
  .ov-stats { gap: 8px; }
  .ov-stat { padding: 8px 10px; font-size: .82rem; }
  .ov-main { grid-template-columns: minmax(0, 1fr); }
}

/* Menüleiste: bei mittlerer Breite Hilfe und Name nur als Icon, lange Namen kürzen, damit „Abmelden“ sichtbar bleibt */
.nav-name { display: inline-block; max-width: 170px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
@media (max-width: 1180px) and (min-width: 901px) {
  .nav-label { display: none; }
}
@media (max-width: 1020px) and (min-width: 901px) {
  .top { gap: 8px; padding: 0 10px; }
  nav.main { gap: 0; }
  nav.main a, details.navdrop > summary { padding: 16px 5px; font-size: .86rem; }
  form.navsearch { margin: 0 4px; }
  form.navsearch input { width: 90px; }
}
@media (max-width: 1340px) and (min-width: 1181px) {
  nav.main a, details.navdrop > summary { padding: 16px 8px; }
  .nav-name { max-width: 110px; }
  form.navsearch input { width: 120px; }
}
/* Der Menüpunkt Gesundheitsbuch braucht Platz: Suchfeld in der schmalen Menüleiste kürzen */
@media (max-width: 1180px) and (min-width: 901px) { form.navsearch { margin: 0 2px; } form.navsearch input { width: 90px; } }
@media (max-width: 1100px) and (min-width: 901px) { nav.main a { padding: 16px 5px; } }

/* Einstellungen → „Euer Paket“ */
.paket-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.paket-kopf h2 { margin: 0 0 4px; font-size: 1.6rem; }
.paket-preis { text-align: right; } .paket-preis b { display: block; font-size: 1.5rem; }
.paket-kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 16px 0; }
.paket-kachel { background: var(--bg); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.paket-zahl { font-size: 1.8rem; font-weight: 700; line-height: 1; } .paket-von { color: var(--muted); } .paket-was { flex-basis: 100%; color: var(--muted); font-size: .85rem; }
.paket-balken { flex-basis: 100%; height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; } .paket-balken i { display: block; height: 100%; background: var(--ok); }
.paket-kachel.knapp .paket-balken i { background: var(--warn); } .paket-kachel.voll .paket-balken i { background: var(--red); } .paket-kachel.voll .paket-zahl { color: var(--red); }
.paket-module { margin: 4px 0 12px; } .paket-module .chip { cursor: default; } .paket-module .chip.extra { border-style: dashed; } .paket-module .chip small { color: var(--muted); font-weight: 400; }
.paket-mehr { margin-top: 12px; } .paket-mehr > summary { display: inline-block; list-style: none; } .paket-mehr > summary::-webkit-details-marker { display: none; }
.paket-mehr[open] > summary { margin-bottom: 8px; }
.paket-karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.paket-karte { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; } .paket-karte p { margin: 6px 0 0; }
.paket-karte .head-row { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 10px; flex-wrap: wrap; margin: 0; } .paket-karte .head-row > b { font-size: 1.05rem; }
.paket-zusatz td.num { white-space: nowrap; text-align: right; vertical-align: top; }
/* Bestellung in „Euer Paket“ */
.paket-karte.waehlbar { display: flex; flex-direction: column; gap: 4px; cursor: pointer; position: relative; }
.paket-karte.waehlbar input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.paket-karte.waehlbar:hover { border-color: var(--brand); }
.paket-karte.gewaehlt { border: 2px solid var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); padding: 11px 13px; }
.paket-karte .tag { align-self: flex-start; }
.bestell-module { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 6px 16px; }
.bestell-module .modul-preis { margin-left: 6px; }
.bestell-summe { font-size: 1.1rem; margin: 16px 0 8px; padding: 10px 14px; background: var(--bg); border-radius: var(--radius); }
/* Helferliste: Dienste als Karten nebeneinander */
.helfer-dienste { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-bottom: 16px; }
.helfer-dienste > .card { margin: 0; display: flex; flex-direction: column; }
.helfer-dienst-karte .head-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.helfer-dienst-karte h3 { margin: 0; }
.helfer-dienst-karte > p { margin: 4px 0; }
.helfer-dienst-karte ul.plain { margin: 8px 0; padding: 0; }
.helfer-dienst-karte ul.plain li { display: flex; align-items: center; gap: 6px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.helfer-dienst-karte ul.plain li:last-child { border-bottom: 0; }
.helfer-dienst-karte ul.plain li form { margin-left: auto; display: inline; }
.helfer-dienst-karte form.row { margin-top: auto; padding-top: 8px; flex-wrap: wrap; }
.helfer-dienst-karte form.row input[name=kommentar] { flex: 1; min-width: 120px; }
.helfer-dienst-karte.mine { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
/* Support-Tickets */
.ticket-verlauf { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.ticket-beitrag { margin: 0; border-left: 4px solid var(--line); }
.ticket-beitrag.vom-support { border-left-color: var(--brand); background: var(--brand-bg); }
.ticket-beitrag.intern { border-left-color: var(--warn); background: #fff8e8; }
.ticket-beitrag .head-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ticket-beitrag p.small { margin: 0 0 6px; }

/* ---------- Profil-Stil (Mitglied u. a.): Kopf mit Bild, Abzeichen, Info-Raster mit Wert groß und Bezeichnung klein ---------- */
.zurueck { margin: 0 0 10px; }
.profil-kopf { display: flex; align-items: center; gap: 22px; padding: 22px 24px; flex-wrap: wrap; }
.profil-kopf h1 { margin: 2px 0 8px; font-size: 1.6rem; }
.profil-name { flex: 1; min-width: 220px; }
.profil-ueber { font-size: .82rem; color: var(--muted); }
.profil-aktionen { display: flex; gap: 8px; flex-wrap: wrap; align-self: flex-start; }
.profil-aktionen form { margin: 0; }
.avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; font-size: .9rem; letter-spacing: .02em; }
.avatar-gross { width: 92px; height: 92px; font-size: 2rem; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; box-shadow: 0 4px 14px var(--brand-soft); }
.avatar-grau { background: #c4c9d0; box-shadow: none; }
.kreuz { color: var(--muted); font-weight: 400; }
.abzeichen { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: .8rem; background: var(--brand-bg); color: var(--brand-dark); border: 1px solid var(--brand-soft); line-height: 1.4; }
.badge-gruen { background: #e8f6ee; color: #17663a; border-color: #bfe3cd; }
.badge-blau { background: #eaf2fc; color: #1d4f91; border-color: #c6dbf5; }
.badge-warn { background: #fff4e0; color: #8a5300; border-color: #f2d8a7; }
.badge-grau { background: #f0f1f3; color: #5b6370; border-color: #dde0e5; }
.info-karte { padding: 22px 24px; }
.info-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 28px; }
.info-grid h3 { font-size: 1rem; margin: 0 0 12px; }
.info-grid-unten { grid-template-columns: 1fr; border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; }
.info-reihe { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; }
.info-item { margin-bottom: 12px; }
.info-wert { font-size: 1rem; overflow-wrap: anywhere; }
.info-bez { font-size: .8rem; color: var(--muted); margin-top: 1px; }
.info-aktion { text-decoration: none; margin-left: 4px; font-size: .9rem; }
.leer { color: #a3a9b3; }
.karte-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; border-bottom: 1px solid var(--line); margin: -18px -18px 10px; padding: 16px 18px 12px; }
.karte-kopf h3 { margin: 0; }
.karte-unter { font-size: .82rem; color: var(--muted); }
.btn-plus { width: 34px; height: 34px; border-radius: 8px; border: 0; background: var(--brand); color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; flex: none; }
.btn-plus:hover { background: var(--brand-dark); }
.listen-zeile { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #eef0f3; }
.listen-zeile:last-child { border-bottom: 0; }
.listen-zeile form { margin: 0; }
.leer-hinweis { color: var(--muted); text-align: center; padding: 14px 0; margin: 0; }
.neu-form { background: var(--brand-bg); border-radius: 8px; padding: 10px; margin: 0 0 10px; }
.upload-ziel { display: block; text-align: center; border: 2px dashed var(--brand-soft); border-radius: 10px; padding: 18px; color: var(--brand-dark); cursor: pointer; margin-top: 8px; }
.upload-ziel:hover { background: var(--brand-bg); }
.upload-ziel input { display: block; margin: 8px auto 0; font-size: .82rem; }
.upload-ziel.over { background: var(--brand-bg); border-color: var(--brand); border-style: solid; }
.upload-ziel.laedt { opacity: .7; pointer-events: none; }
.mini-menu { position: relative; }
.mini-menu summary { list-style: none; cursor: pointer; padding: 0 8px; color: var(--muted); font-weight: 700; }
.mini-menu summary::-webkit-details-marker { display: none; }
.mini-menu[open] form { position: absolute; right: 0; top: 24px; z-index: 5; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px; width: 260px; box-shadow: 0 6px 20px rgba(0,0,0,.08); }
@media (max-width: 1000px) { .info-grid, .info-reihe { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .info-grid, .info-reihe { grid-template-columns: 1fr; } .profil-kopf { padding: 16px; } .avatar-gross { width: 64px; height: 64px; font-size: 1.4rem; } }
.name-zelle { display: flex; align-items: center; gap: 10px; }
.badge-klein { font-size: .7rem; padding: 0 6px; vertical-align: 1px; }
.balken-zeile { display: grid; grid-template-columns: minmax(120px, 220px) 1fr 40px; gap: 10px; align-items: center; padding: 4px 0; }
.balken { background: #eef0f3; border-radius: 4px; height: 10px; overflow: hidden; }
.balken > span { display: block; height: 100%; background: var(--brand); border-radius: 4px; }

/* ---------- Freundlicher Stil fürs ganze Portal (Timo, 09.11.2026): weichere Karten mit Schatten, rundere Ecken, mehr Luft ---------- */
:root { --radius: 12px; --bg: #f2f4f8; --line: #e6e9ef; --schatten: 0 1px 2px rgba(16,24,40,.04), 0 2px 6px rgba(16,24,40,.05); }
body { font-size: 15px; }
h1 { font-size: 1.6rem; font-weight: 700; letter-spacing: -.01em; }
.card { border-color: var(--line); box-shadow: var(--schatten); padding: 20px; margin-bottom: 18px; }
.card > h2:first-child, .card > h3:first-child { margin-bottom: 12px; }
.table-wrap { box-shadow: var(--schatten); border-radius: var(--radius); }
.grid-2 { gap: 18px; }
.btn { border-radius: 8px; padding: 8px 15px; font-weight: 500; transition: background .12s, box-shadow .12s; }
.btn.primary { box-shadow: 0 1px 2px rgba(16,24,40,.12); }
.btn.small { border-radius: 7px; }
.flash { border-radius: 10px; }
.tag { border-radius: 99px; padding: 1px 8px; }
.form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea, .filters input, .filters select { border-radius: 8px; }
.form input:focus, .form select:focus, .form textarea:focus, .filters input:focus, .filters select:focus { outline: 3px solid var(--brand-soft); outline-offset: 0; border-color: var(--brand); }
table.list th { font-size: .74rem; letter-spacing: .05em; background: #f8f9fb; border-bottom: 1px solid var(--line); padding: 11px 12px; }
table.list td { padding: 11px 12px; border-bottom-color: #eef0f4; }
table.list tbody tr:hover td { background: #fafbfd; }
table.list tbody tr:last-child td { border-bottom: 0; }
nav.tabs { background: #e8ebf1; border-radius: 10px; padding: 4px; margin-bottom: 14px; flex-wrap: wrap; }
nav.tabs a { border-radius: 8px; padding: 6px 15px; }
nav.main a { border-radius: 8px 8px 0 0; }
.top { box-shadow: 0 2px 10px rgba(16,24,40,.12); }
.logo { border-radius: 8px; }
/* Knopfleisten in Formularen: Abstand zum Folgenden (z. B. Speichern vor der nächsten Karte oder Überschrift) */
form .actions:not(.head > .actions) { margin: 8px 0 22px; }
.card form:last-child > .actions:last-child, .card > form .actions:last-child:only-of-type { margin-bottom: 0; }
.card h3 { margin-top: 0; }
form .actions + h3, form .actions + h2 { margin-top: 6px; }
/* Vorgang im Profil-Stil */
.avatar-eckig { border-radius: 18px; font-size: 2.2rem; }
.vorgang-kopf h1 { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.vorgang-kopf .abzeichen { align-items: center; }
.vorgang-kopf .profil-aktionen { max-width: 55%; justify-content: flex-end; }
.vorgang-kopf .profil-aktionen form { display: inline; }
dl.facts-raster { gap: 0 14px; }
dl.facts-raster dt, dl.facts-raster dd { padding: 8px 0; border-bottom: 1px solid #eef0f4; }
dl.facts-raster dt:last-of-type, dl.facts-raster dd:last-of-type { border-bottom: 0; }
.abschnitt-titel { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }
@media (max-width: 900px) { .vorgang-kopf .profil-aktionen { max-width: none; justify-content: flex-start; } }
/* Startseite */
.start-kopf .avatar-gross { width: 72px; height: 72px; font-size: 1.6rem; }
.start-kopf h1 { margin-bottom: 6px; }
.ov-stat { position: relative; padding: 14px 16px 14px 70px; border-radius: var(--radius); box-shadow: var(--schatten); min-height: 76px; }
.ov-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 12px; background: var(--brand-bg); display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 1.2rem; }
/* Karten-Überschrift als Kopfzeile (überall, wo eine Karte mit h3 beginnt) */
.card > h3:first-child, .card > .tl-head:first-child { margin: -20px -20px 14px; padding: 14px 20px 12px; border-bottom: 1px solid var(--line); }
.overview .card > h3:first-child { font-size: 1rem; }
@media (max-width: 700px) { .ov-stat { padding: 10px 10px 10px 12px; min-height: 0; } .ov-icon { display: none; } }
/* Sitzungen und Kalender: Kalenderblatt */
.kalenderblatt { flex: none; width: 92px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--schatten); overflow: hidden; text-align: center; display: flex; flex-direction: column; }
.kalenderblatt .kb-monat { background: var(--brand); color: #fff; font-size: .78rem; font-weight: 600; padding: 4px 0; text-transform: uppercase; letter-spacing: .04em; }
.kalenderblatt .kb-tag { font-size: 2rem; font-weight: 700; line-height: 1.2; padding-top: 4px; }
.kalenderblatt .kb-zeit { font-size: .78rem; color: var(--muted); padding-bottom: 6px; }
.kalenderblatt-leer .kb-monat { background: #c4c9d0; }
.kalenderblatt-klein { width: 54px; border-radius: 10px; }
.kalenderblatt-klein .kb-monat { font-size: .66rem; padding: 2px 0; }
.kalenderblatt-klein .kb-tag { font-size: 1.25rem; padding: 2px 0 4px; }
.sitzung-kopf .profil-aktionen form { display: inline; }
.meeting-head { line-height: 1.7; }
/* Kalender freundlicher: Leiste als Karte, Termine als helle Chips mit Farbbalken */
.cal-nav.card { padding: 10px 14px; margin-bottom: 14px; }
.cal-nav h2 { font-size: 1.15rem; }
.cal { box-shadow: var(--schatten); border-color: var(--line); background: #e9ecf1; }
.cal-h { background: #f8f9fb; padding: 9px 6px; text-transform: uppercase; letter-spacing: .05em; font-size: .72rem; }
.cal-d { min-height: 112px; padding: 6px; gap: 3px; }
.cal-d.today { background: var(--brand-bg); }
.cal-d .num { font-size: .85rem; min-width: 24px; height: 24px; line-height: 24px; text-align: center; padding: 0 4px; }
.ev { border-radius: 6px; padding: 3px 7px; font-size: .76rem; }
.ev[class*="cat-"] { color: #1d2125; border-left: 3px solid; }
.ev.cat-0 { background: #e8f0fb; border-left-color: #2457a6; } .ev.cat-1 { background: #fde9ea; border-left-color: #c4151c; } .ev.cat-2 { background: #e7f5ec; border-left-color: #1f8a4c; }
.ev.cat-3 { background: #f2eafa; border-left-color: #7d3cb5; } .ev.cat-4 { background: #fff2df; border-left-color: #b26a00; } .ev.cat-5 { background: #e3f3f5; border-left-color: #1f6f7a; }
.ev[class*="cat-"] b { color: var(--muted); font-weight: 600; }
.termin-zeile { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid #eef0f4; }
.termin-zeile:last-child { border-bottom: 0; }
/* Mitmachen, Finanzen, Adressbuch */
.avatar-symbol { border-radius: 10px; background: var(--brand-bg); font-size: 1.1rem; }
.balken-klein { display: block; height: 6px; margin-top: 5px; max-width: 180px; }
.kpi-reihe { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--schatten); padding: 14px 16px; color: var(--text); display: block; }
a.kpi:hover { text-decoration: none; border-color: #c8cdd4; }
.kpi-wert { font-size: 1.45rem; font-weight: 700; line-height: 1.2; }
.kpi-bez { font-size: .82rem; color: var(--muted); }
.kpi-minus .kpi-wert { color: var(--red); }
.kontakt-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-bottom: 14px; }
.kontakt-karte { margin: 0; display: flex; flex-direction: column; padding: 16px; }
.kontakt-wege { font-size: .9rem; margin-top: 8px; display: grid; gap: 3px; overflow-wrap: anywhere; }
.kontakt-fuss { margin-top: auto; padding-top: 10px; border-top: 1px solid #eef0f4; margin-top: 12px; }
/* Formulare und Einstellungen (Etappe 09.11.2026): deutliche Feldnamen, Abschnitte, Speicherleiste, Schalter */
.form label { color: #3d4450; font-weight: 500; }
.form label small, .form label .small, .form label .muted, .form label.check { font-weight: 400; }
.form label > small.muted:last-child { display: block; margin-top: 4px; line-height: 1.4; }
.form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea { margin-top: 5px; padding: 9px 11px; border-color: #d5dae1; font-weight: 400; }
.form input:not([type=checkbox]):not([type=radio]):hover, .form select:hover, .form textarea:hover { border-color: #b9c0ca; }
.form input:not([type=checkbox]):not([type=radio]):disabled, .form textarea:disabled { background: #f4f5f7; color: var(--muted); }
.form label.check { cursor: pointer; }
input[type=checkbox], input[type=radio] { accent-color: var(--brand); }
.form-abschnitt { grid-column: 1 / -1; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); padding-bottom: 6px; margin: 14px 0 14px; }
.form-abschnitt:first-child, input[type=hidden] + .form-abschnitt { margin-top: 0; }
.form-hinweis { grid-column: 1 / -1; background: var(--brand-bg); border-radius: 8px; padding: 9px 12px; margin: 0 0 14px; font-size: .88rem; color: var(--text); }
.speicher-leiste { grid-column: 1 / -1; position: sticky; bottom: 10px; z-index: 6; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: rgba(255,255,255,.97); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 4px 18px rgba(16,24,40,.12); padding: 10px 14px; margin: 6px 0 18px; }
.card .speicher-leiste { margin-bottom: 0; }
.speicher-leiste .speicher-status { color: var(--muted); font-size: .85rem; }
.speicher-leiste.geaendert .speicher-status { color: #8a5300; }
.speicher-leiste .rechts { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.profil-kopf.kopf-kompakt { padding: 14px 20px; gap: 16px; }
.kopf-kompakt .avatar-gross { width: 56px; height: 56px; font-size: 1.45rem; border-radius: 14px; box-shadow: none; }
.kopf-kompakt h1 { font-size: 1.35rem; margin: 1px 0 4px; }
.kopf-kompakt .abzeichen:empty { display: none; }
/* Schalter (Kippschalter statt Häkchen) */
.schalter { -webkit-appearance: none; appearance: none; flex: none; width: 38px; height: 22px; border-radius: 99px; background: #cfd4db; position: relative; cursor: pointer; transition: background .15s; margin: 1px 0 0; }
.schalter::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: left .15s; }
.schalter:checked { background: var(--brand); }
.schalter:checked::after { left: 19px; }
.schalter:disabled { cursor: not-allowed; opacity: .6; }
.schalter:focus-visible { outline: 3px solid var(--brand-soft); outline-offset: 1px; }
.modul-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.form label.modul-kachel { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 0; background: #fff; color: var(--text); font-weight: 400; transition: border-color .12s, background .12s; }
.form label.modul-kachel:hover { border-color: #c8cdd4; }
.form label.modul-kachel:has(.schalter:checked) { border-color: var(--brand-soft); background: var(--brand-bg); }
.form label.modul-kachel:has(.schalter:disabled) { cursor: not-allowed; }
.modul-kachel .modul-name { font-weight: 600; display: block; }
.modul-kachel small { display: block; line-height: 1.4; margin-top: 2px; }
/* Einstellungen: Sprungleiste links, Abschnitte rechts */
.einst-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 20px; align-items: start; }
.einst-nav { position: sticky; top: 70px; display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--schatten); padding: 8px; }
.einst-nav a { display: flex; gap: 8px; align-items: center; padding: 7px 10px; border-radius: 8px; color: var(--text); font-size: .9rem; text-decoration: none; }
.einst-nav a:hover { background: var(--brand-bg); }
.einst-nav a.aktiv { background: var(--brand-bg); color: var(--brand-dark); font-weight: 600; }
.einst-nav a span { width: 20px; text-align: center; flex: none; }
.einst-abschnitt { scroll-margin-top: 70px; }
.card.einst-abschnitt > h2:first-child { display: flex; align-items: center; gap: 10px; font-size: 1.08rem; margin: -20px -20px 14px; padding: 14px 20px 12px; border-bottom: 1px solid var(--line); }
.einst-abschnitt > h2 .avatar { width: 32px; height: 32px; font-size: 1rem; }
.einst-abschnitt > p.muted:first-of-type { margin-top: 0; }
@media (max-width: 900px) {
  .einst-layout { grid-template-columns: 1fr; }
  .einst-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .einst-nav a { padding: 5px 9px; font-size: .84rem; }
}
/* Anbieter-Verwaltung (Etappe 09.11.2026): Karten-Überschriften als Kopfzeile, Kennzahlen, Kundenliste */
.vw .card > h2:first-child, .vw .card > input[type=hidden] + h2, .vw form.card > h2:nth-child(2), .vw form.card > h2:nth-child(3) { font-size: 1.08rem; margin: -20px -20px 14px; padding: 14px 20px 12px; border-bottom: 1px solid var(--line); }
.vw .card h3 { font-size: .95rem; margin: 18px 0 10px; }
.vw .card > h3:first-child { margin: -20px -20px 14px; }
.vw .kpi .kpi-wert small { font-size: .8rem; font-weight: 500; color: var(--muted); }
.kpi-warn { border-color: #f2d8a7; background: #fffaf1; }
.kunden-suche { max-width: 320px; margin: 0 0 12px; }
.kunden-suche input { width: 100%; padding: 8px 12px; border: 1px solid #d5dae1; border-radius: 8px; font: inherit; }
.vw table.list td .badge { margin: 1px 2px 1px 0; }
.vw .profil-kopf .profil-aktionen .btn { white-space: nowrap; }
.badge-rot { background: #fdecec; color: #a3161b; border-color: #f5c6c7; }
.vw .form .row > label { flex: 1 1 160px; min-width: 0; }
.vw table.list td[style*="text-align:right"], .vw table.list th[style*="text-align:right"] { white-space: nowrap; }
/* Eigenes Logo: Kopfzeile, Anmeldeseite, Vorschau in den Einstellungen */
.logo-bild { height: 34px; width: auto; max-width: 140px; object-fit: contain; background: #fff; border-radius: 8px; padding: 3px; vertical-align: middle; }
.login-logo { display: block; max-width: 180px; max-height: 110px; margin: 0 auto 14px; object-fit: contain; }
.logo-feld { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 18px; align-items: start; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.logo-vorschau { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.logo-vorschau-leiste { display: flex; align-items: center; gap: 8px; background: var(--brand); color: #fff; font-weight: 700; padding: 8px 12px; border-radius: 10px; width: 100%; }
.logo-gross { max-width: 100%; max-height: 120px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; padding: 8px; background: repeating-conic-gradient(#f0f1f3 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
@media (max-width: 700px) { .logo-feld { grid-template-columns: 1fr; } }
/* Einsatzberichte */
.eb-suche { max-width: 280px; margin: 0 0 8px; }
.eb-personal { max-height: 460px; overflow: auto; box-shadow: none; border: 1px solid var(--line); }
.eb-personal table.list td { padding: 6px 10px; vertical-align: middle; }
.eb-personal select, .eb-personal input[list] { min-width: 7rem; margin-top: 0 !important; padding: 5px 8px !important; }
.eb-personal tr.eb-dabei td { background: var(--brand-bg); }
.eb-personal label.check { margin: 0; white-space: nowrap; }
.eb-fz td { vertical-align: middle; }
.eb-fz input[type=time] { margin-top: 0 !important; padding: 5px 8px !important; max-width: 8rem; }
.eb-fz label.check { margin: 0; }
.eb-zahl { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--brand-dark); }
.eb-weitere { display: inline-flex !important; align-items: center; gap: 6px; margin: 0 !important; }
.eb-weitere input { margin-top: 0 !important; width: 14rem !important; }
.eb-zwischen { font-size: .82rem; color: var(--muted); margin: 10px 0 4px; font-weight: 600; }
.eb-zwischen:first-of-type { margin-top: 0; }
/* Seitenleiste links (Timo, 09.11.2026): alle Bereiche untereinander, oben nur Suche, Hilfe, Name, Abmelden */
:root { --leiste: 232px; }
body.mit-leiste { padding-left: var(--leiste); }
body.mit-leiste .top { margin-left: calc(-1 * var(--leiste)); }
.top .brand { min-width: calc(var(--leiste) - 32px); }
.kopf-rechts { flex: 1; }
.seitenleiste { position: fixed; left: 0; top: 54px; bottom: 0; width: var(--leiste); background: #fff; border-right: 1px solid var(--line); overflow-y: auto; z-index: 9; padding: 12px 10px 24px; }
.seitenleiste nav { display: flex; flex-direction: column; gap: 2px; }
.seitenleiste a { display: flex; align-items: center; gap: 11px; padding: 8px 11px; border-radius: 9px; color: #2f3742; text-decoration: none; font-size: .93rem; font-weight: 500; }
.seitenleiste a:hover { background: var(--brand-bg); color: var(--brand-dark); }
.seitenleiste a.on { background: var(--brand-bg); color: var(--brand-dark); font-weight: 600; box-shadow: inset 3px 0 0 var(--brand); }
.leiste-icon { width: 20px; display: inline-flex; justify-content: center; color: var(--muted); flex: none; }
.seitenleiste a.on .leiste-icon, .seitenleiste a:hover .leiste-icon { color: var(--brand); }
.seitenleiste .count { margin-left: auto; min-width: 1.4em; padding: 0 6px; border-radius: 99px; background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700; text-align: center; line-height: 1.6; }
.leiste-gruppe { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; padding: 16px 11px 6px; }
.leiste-verwaltung summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; }
.leiste-verwaltung summary::-webkit-details-marker { display: none; }
.leiste-verwaltung summary::after { content: '▾'; transition: transform .15s; }
.leiste-verwaltung:not([open]) summary::after { transform: rotate(-90deg); }
.leiste-schleier { display: none; }
@media (max-width: 900px) {
  body.mit-leiste { padding-left: 0; }
  body.mit-leiste .top { margin-left: 0; flex-wrap: nowrap; }
  .top .brand { min-width: 0; }
  .burger { display: block; margin-left: 0; order: -1; }
  .kopf-rechts { display: flex !important; flex-direction: row !important; flex-basis: auto !important; padding-bottom: 0 !important; }
  .kopf-rechts .navsearch, .kopf-rechts .nav-label { display: none; }
  .seitenleiste { transform: translateX(-100%); transition: transform .2s; box-shadow: 4px 0 20px rgba(0,0,0,.15); }
  body.nav-open .seitenleiste { transform: none; }
  body.nav-open .leiste-schleier { display: block; position: fixed; inset: 54px 0 0 0; background: rgba(0,0,0,.25); z-index: 8; }
}
.top .brand { min-width: 0; overflow: hidden; }
.brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 901px) { .top .brand { min-width: calc(var(--leiste) - 32px); flex: none; } }
@media (max-width: 900px) { nav.main.kopf-rechts { flex: none; margin-left: auto; } .top .brand { flex: 1; } }
/* Fahrzeug-Status im Einsatzbericht: „Status 3“ und darunter klein „ausgerückt“, damit vier Spalten in die Karte passen */
th.eb-status { white-space: nowrap; }
th.eb-status span { display: block; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: .78rem; color: var(--muted); margin-top: 2px; }
.ptable th.eb-status span { font-size: .7rem; }
/* Fahrzeugtabelle in der halben Karte: enger, Bezeichnung unter dem Status darf umbrechen */
.eb-fz-tab th, .eb-fz-tab td { padding-left: 8px; padding-right: 8px; }
.eb-fz-tab th.eb-status span { white-space: normal; }
/* Farbwahl in den Einstellungen: Beispielfarben als Muster, dazu eigene Farbe aus dem ganzen Farbraum */
.farb-feld { display: flex; flex-direction: column; gap: 8px; }
.farb-titel { font-weight: 600; font-size: .92rem; }
.farb-wahl { display: flex; flex-wrap: wrap; gap: 10px; }
.farb-muster, .farb-wahl .farb-muster { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 74px; cursor: pointer; margin: 0 !important; font-weight: 400 !important; }
.farb-muster input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.farb-muster > span { width: 42px; height: 42px; border-radius: 50%; display: block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); position: relative; transition: transform .12s; }
.farb-muster:hover > span { transform: scale(1.06); }
.farb-muster small { font-size: .74rem; color: var(--muted); text-align: center; line-height: 1.2; }
.farb-muster input:checked + span { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--text); }
.farb-muster input:checked + span::after { content: ''; position: absolute; left: 15px; top: 10px; width: 9px; height: 16px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.farb-muster input:checked ~ small { color: var(--text); font-weight: 600; }
.farb-muster input:focus-visible + span { outline: 2px solid var(--fokus, var(--brand)); outline-offset: 4px; }
.farb-regenbogen { background: conic-gradient(#e53935, #fb8c00, #fdd835, #43a047, #00acc1, #1e88e5, #8e24aa, #e53935); overflow: hidden; }
.farb-regenbogen input[type=color] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.farb-eigen input:checked + span::after { display: none; }
.farb-hinweis { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--muted); }
.farb-hinweis[hidden] { display: none; }
.farb-klein { width: 16px; height: 16px; border-radius: 50%; display: inline-block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); flex: none; }
/* hidden gilt auch für Karten und Häkchen mit eigenem display (z. B. Module je Fassung in der Verwaltung) */
.form label[hidden], label.modul-kachel[hidden], .modul-kachel[hidden] { display: none !important; }

/* Sitzung: Kopf mit Kennfeldern, Teilnehmer als Namensschilder */
.meeting-head.info-karte { display: block; }
.meeting-fakten { display: flex !important; flex-wrap: wrap; gap: 4px 28px; }
.meeting-fakten > .info-item { flex: 1 1 120px; min-width: 0; }
.meeting-fakten > .meeting-stand { flex: 2 1 220px; }
.meeting-fakten .info-wert { white-space: normal; }
.meeting-fakten .meeting-stand .info-wert { font-weight: 500; }
.meeting-fakten .info-bez .badge { font-size: .72rem; padding: 0 6px; }
.meeting-fakten .info-wert { font-weight: 600; }
.meeting-fakten .inline-toggle { display: block; }
.meeting-fakten .zusage { color: #17663a; } .meeting-fakten .absage { color: #a3161b; }
.meeting-tn { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; }
.meeting-tn-kopf { margin-bottom: 8px; }
.meeting-tn-liste { display: flex; flex-wrap: wrap; gap: 6px; }
.tn-chip { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); background: #f7f8fa; border-radius: 99px; padding: 3px 11px; font-size: .86rem; }
.tn-chip small { color: var(--muted); }
.tn-zusage { background: #e8f6ee; border-color: #bfe3cd; color: #17663a; }
.tn-absage { background: #fdecec; border-color: #f5c6c7; color: #a3161b; text-decoration: line-through; text-decoration-color: rgba(163, 22, 27, .4); }
.tn-gast { background: #fff; border-style: dashed; }
.meeting-du { margin-top: 10px; align-items: center; gap: 8px; }
.meeting-head .meeting-edit { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; }
.meeting-head .meeting-edit + .meeting-edit { border-top: 0; margin-top: 0; }
.meeting-head .meeting-progress { margin-top: 12px; }

/* Standard-Logo ohne eigenes Logo: Häkchen in der Kundenfarbe auf weißem Feld */
.logo-standard { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; background: #fff; color: var(--brand); border-radius: 8px; vertical-align: middle; flex: none; }

/* Einrichtungsassistent */
.einr-balken { height: 10px; border-radius: 99px; background: var(--brand-bg, #eef2f8); overflow: hidden; margin: 6px 0 8px; }
.einr-balken span { display: block; height: 100%; background: var(--brand); border-radius: 99px; transition: width .3s; }
.einr-schritte { list-style: none; margin: 14px 0 0; padding: 0; }
.einr-schritte li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.einr-schritte li:last-child { border-bottom: 0; }
.einr-schritte li > div:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.einr-marke { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; }
.einr-ok .einr-marke { background: #2e7d32; border-color: #2e7d32; }
.einr-skip .einr-marke { color: var(--muted); }
.einr-ok b, .einr-skip b { color: var(--muted); }
.einr-aktion { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.einr-aktion form { margin: 0; }
.einr-ende { margin: 14px 0 0; display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.einr-arten { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 12px 0 14px; }
.einr-art { display: flex !important; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; font-weight: 400 !important; }
.einr-art:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft, rgba(30,90,168,.2)); }
.einr-art input { align-self: flex-start; }
.einr-art details ul { margin: 6px 0 0; padding-left: 18px; }
.einr-start { display: flex; align-items: center; gap: 16px; justify-content: space-between; border-left: 4px solid var(--brand); }
.einr-start > div { flex: 1; display: flex; flex-direction: column; }
@media (max-width: 600px) { .einr-schritte li { flex-wrap: wrap; } .einr-aktion { width: 100%; justify-content: flex-start; padding-left: 42px; } .einr-start { flex-direction: column; align-items: stretch; } }

/* Jahresbericht */
.jb-abschnitt h3 { font-size: 1rem; margin: 18px 0 8px; }
.jb-abschnitt .kpi-reihe { margin-bottom: 8px; }

.jb-aktion { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.jb-aktion:last-of-type { border-bottom: 0; }
.jb-aktion p { margin: 4px 0 0; }
.jb-knopf { display: inline; margin: 0; }
.jb-knopf select { width: auto; }

/* Fristen */
.fr-vorlagen { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.fr-vorlagen .chip { text-decoration: none; }
.fr-vorlagen small { color: var(--muted); }
.fr-text { display: flex; flex-direction: column; min-width: 0; }
.fr-aktion { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.fr-aktion .mini-menu[open] form { display: flex; flex-direction: column; gap: 6px; width: 280px; }
.fr-ueber { border-left: 4px solid var(--red); }
.fr-bald { border-left: 4px solid #e0a83a; }
.fr-start { display: flex; justify-content: space-between; align-items: center; gap: 10px; text-decoration: none; color: var(--text); border-left: 4px solid #e0a83a; }
.fr-mitglieder { width: 100%; }
.fr-text > .badge { align-self: flex-start; margin: 2px 0; }
/* Jahresbericht am Vorgang: Jahresauswahl im Aussehen der Knöpfe daneben */
.jb-knopf select.btn { -webkit-appearance: none; appearance: none; width: auto; height: auto; line-height: inherit; padding-right: 30px; padding-left: 32px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6370' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 10px center / 14px no-repeat; }
.jb-knopf { position: relative; }
.jb-knopf:has(select)::before { content: ''; position: absolute; left: 12px; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2318212b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 20V10M10 20V4M16 20v-7M22 20H2'/%3E%3C/svg%3E") center / contain no-repeat; }
.vorgang-kopf .profil-aktionen form.jb-knopf { display: inline-block; vertical-align: top; }

/* Datenschutz und Sicherheit */
.sicher-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-bottom: 14px; }
.sicher-raster .card { margin: 0; }
.sicher-punkt h3 { font-size: 1rem; margin: 0 0 6px; }
.sicher-punkt p { margin: 0; color: var(--muted); }
/* Mitgliederversammlung */
.mv-top-zeile { display: grid; grid-template-columns: 2em 1fr 1fr; gap: 8px; align-items: center; margin-bottom: 6px; }
.mv-top-nr { color: var(--muted); text-align: right; }
.mv-status { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.mv-status legend { font-size: .9rem; padding: 0 4px; }
.mv-vorschau { white-space: pre-wrap; background: var(--bg); padding: 12px; border-radius: 6px; font-size: .85rem; }
.mv-qr-karte { display: flex; gap: 18px; align-items: center; justify-content: space-between; }
.mv-qr-karte h3 { margin-top: 0; }
.mv-suche { max-width: 14em; }
.mv-zaehler { font-size: 1.1rem; }
.mv-schliessen form { margin-top: 10px; }
.mv-manuell { display: flex; align-items: center; gap: 10px; max-width: 24em; }
.mv-manuell span { flex: 1; }
.mv-manuell input { width: 6em; }
.mv-ergebnis { font-weight: 600; font-size: 1.05rem; margin: 6px 0 10px; }
.mv-angenommen, .mv-gewaehlt { color: var(--ok); }
.mv-abgelehnt { color: var(--red); }
.mv-stichwahl { color: var(--warn); }
.mv-balken { display: grid; grid-template-columns: minmax(6em, 14em) 1fr 2.5em 10em; gap: 10px; align-items: center; margin: 4px 0; }
.mv-balken-spur { height: 10px; background: var(--bg); border-radius: 5px; overflow: hidden; }
.mv-balken-spur span { display: block; height: 100%; background: var(--brand); }
.mv-seite .mv-balken { grid-template-columns: 1fr auto; }
.mv-balken > b { text-align: right; }
.mv-abst-offen { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.mv-stimmzettel { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.mv-wahl { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; font-size: 1.05rem; cursor: pointer; }
.mv-wahl:has(input:checked) { border-color: var(--brand); background: var(--brand-bg); }
.mv-wahl input { width: 1.2em; height: 1.2em; margin: 0; }
.mv-wahl-enthaltung { color: var(--muted); }
.mv-stimmzettel .btn { align-self: flex-start; }
.mv-antwort { flex-wrap: wrap; }
.mv-prot-erg { margin: -4px 0 12px; color: var(--muted); }
.mv-aushang { text-align: center; max-width: 640px; margin: 0 auto; }
.mv-aushang h1 { font-size: 2rem; margin: 4px 0 12px; }
.mv-aushang-gross { font-size: 1.3rem; }
.mv-aushang svg { margin: 10px auto; display: block; }
.mv-aushang-schritte { text-align: left; display: inline-block; font-size: 1.1rem; }
@media (max-width: 640px) { .mv-top-zeile { grid-template-columns: 2em 1fr; } .mv-top-zeile input + input { grid-column: 2; } .mv-qr-karte { flex-direction: column; align-items: flex-start; } .mv-balken { grid-template-columns: 1fr auto; } .mv-balken .mv-balken-spur, .mv-balken > .muted { display: none; } }
@media print { body:has(.mv-aushang) header.top, body:has(.mv-aushang) .seitenleiste, body:has(.mv-aushang) .site-foot, .nur-bildschirm { display: none !important; } }
.mv-seite .profil-name { min-width: 0; }
.mv-seite .profil-name h1 { hyphens: auto; overflow-wrap: anywhere; }
.mv-seite .listen-zeile > div, .mv-seite .karte-kopf h3 { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 640px) { .mv-seite .profil-kopf .avatar { display: none; } .mv-seite .profil-name h1 { font-size: 1.35rem; } }
.profil-kopf form.jb-knopf { display: inline-block; vertical-align: top; }
/* Sitzungs-Assistent */
.sa-schritte { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; counter-reset: sa; }
.sa-schritte li > a, .sa-schritte li > span:first-child, .sa-schritte li { color: var(--muted); text-decoration: none; }
.sa-schritte li { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: .82rem; position: relative; }
.sa-schritte li a { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.sa-schritte li::before { content: ''; position: absolute; top: 15px; left: -50%; right: 50%; height: 2px; background: var(--line); z-index: 0; }
.sa-schritte li:first-child::before { display: none; }
.sa-schritte li.erledigt::before, .sa-schritte li.aktiv::before { background: var(--brand); }
.sa-nr { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; position: relative; z-index: 1; }
.sa-schritte .erledigt .sa-nr { background: var(--brand); border-color: var(--brand); color: #fff; }
.sa-schritte .aktiv .sa-nr { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.sa-schritte .aktiv .sa-titel { color: var(--text); font-weight: 600; }
.sa-rahmen { max-width: 900px; }
.sa-rahmen .sa-schritte { margin: 4px 0 18px; padding: 0 4px; }
.sa-vorschlaege { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -4px 0 12px; }
.sa-vorschlaege .chip { cursor: pointer; font: inherit; font-size: .85rem; }
.sa-datum input[type=date] { min-width: 11em; }
.sa-karte h2 { margin: 0 0 4px; }
.sa-fuss { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.sa-luecke { flex: 1; }
.sa-punkt-neu { margin: 6px 0 4px; }
.sa-punkt-neu input { flex: 1; min-width: 12em; }
.sa-zusammen { display: grid; grid-template-columns: minmax(10em, 1fr) 2fr; gap: 16px; margin: 10px 0 14px; padding: 12px 14px; background: var(--bg); border-radius: var(--radius); }
.sa-tops { margin: 4px 0 0; padding-left: 3.6em; }
.sa-tops li::marker { content: 'TOP ' counter(list-item) '  '; color: var(--muted); font-size: .85em; }
.sa-liste { padding-left: 1.4em; margin: 6px 0 10px; }
.sa-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.sa-chips .chip { text-decoration: none; }
@media (max-width: 640px) { .sa-schritte .sa-titel { display: none; } .sa-zusammen { grid-template-columns: 1fr; } }
.sa-agenda { margin: 6px 0 12px; padding: 0; list-style: none; counter-reset: top; }
.sa-agenda li { counter-increment: top; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.sa-agenda li::before { content: 'TOP ' counter(top); flex: none; width: 4.2em; color: var(--muted); font-size: .85rem; font-weight: 600; }
.sa-agenda-titel { flex: 1; min-width: 12em; font-weight: 600; }
.sa-agenda .muted { margin-left: 4.2em; flex-basis: 100%; }

/* Seitenleiste rechts mit Reitern (Sitzungen und Termine, wie in Buchungsprogrammen): die Seite dahinter bleibt sichtbar */
.panel-schleier { position: fixed; inset: 0; background: rgba(15,23,42,.35); z-index: 300; display: none; }
.panel-rahmen { position: fixed; top: 0; right: 0; bottom: 0; width: min(760px, 100vw); background: var(--card); box-shadow: -8px 0 30px rgba(0,0,0,.18); z-index: 301; transform: translateX(105%); transition: transform .2s ease; }
.panel-rahmen iframe { border: 0; width: 100%; height: 100%; display: block; }
body.panel-offen { overflow: hidden; }
body.panel-offen .panel-schleier { display: block; }
body.panel-offen .panel-rahmen { transform: none; }
body.im-panel { background: var(--card); }
body.im-panel main { max-width: none; margin: 0; padding: 0 0 90px; }
body.im-panel main > .flash { margin: 12px 20px 0; }
.panel-kopf { display: flex; align-items: center; gap: 12px; padding: 16px 20px 8px; }
.panel-titel { flex: 1; min-width: 0; }
.panel-titel h1 { margin: 0; font-size: 1.3rem; overflow-wrap: break-word; hyphens: auto; }
.panel-kopf-aktionen { display: flex; gap: 8px; align-items: center; }
.panel-x { border: 0; background: none; font-size: 1.15rem; line-height: 1; cursor: pointer; padding: 8px 10px; border-radius: 6px; color: var(--muted); }
.panel-x:hover { background: var(--bg); color: var(--text); }
.panel-reiter { display: flex; gap: 2px; padding: 0 14px; border-bottom: 1px solid var(--line); overflow-x: auto; position: sticky; top: 0; background: var(--card); z-index: 5; }
.panel-reiter button { border: 0; border-bottom: 3px solid transparent; background: none; padding: 10px 12px; font: inherit; font-size: .92rem; color: var(--muted); cursor: pointer; white-space: nowrap; }
.panel-reiter button:hover:not(:disabled) { color: var(--text); }
.panel-reiter button.on { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.panel-reiter button:disabled { opacity: .45; cursor: not-allowed; }
.panel-reiter .count { display: inline-block; min-width: 1.4em; margin-left: 4px; padding: 0 6px; border-radius: 99px; background: var(--bg); color: var(--muted); font-size: .75rem; font-weight: 700; text-align: center; line-height: 1.5; }
.panel-reiter button.on .count { background: var(--brand-bg); color: var(--brand); }
.panel-form { margin: 0; }
.panel-teil { padding: 16px 20px; }
.panel-teil > .form-abschnitt:first-child { margin-top: 0; }
.panel-fuss { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 10px 20px; background: var(--card); border-top: 1px solid var(--line); }
.panel-fuss.geaendert { background: #fffbea; }
.panel-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.panel-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.panel-loeschen { margin-right: auto; }
.sl-fest { display: flex; align-items: center; gap: 8px; }
.sl-fest-titel { flex: 1; }
.form label.sl-weg { display: flex; align-items: center; gap: 4px; margin: 0; font-size: .8rem; }
.sl-fest:has(.sl-weg input:checked) .sl-fest-titel { text-decoration: line-through; color: var(--muted); }
.sl-neu { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 2px 0 10px; }
.sl-neu .sl-neu-feld { width: 100%; }
.panel-wahl { display: inline-flex; border: 1px solid var(--line); border-radius: 99px; padding: 2px; margin: 0 20px 4px; }
.panel-wahl a, .panel-wahl span { padding: 4px 14px; border-radius: 99px; font-size: .88rem; text-decoration: none; color: var(--muted); }
.panel-wahl .on { background: var(--brand); color: #fff; }
.cal-d.mit-panel { cursor: pointer; }
.cal-d.mit-panel:hover { background: var(--brand-bg); }
@media (max-width: 600px) {
  .panel-kopf, .panel-teil { padding-left: 14px; padding-right: 14px; }
  .panel-kopf { flex-wrap: wrap; padding-top: 8px; }
  .panel-kopf .kalenderblatt { display: none; }
  .panel-kopf-aktionen { order: -1; width: 100%; justify-content: flex-end; }
  .panel-fuss { padding: 8px 14px; }
  .panel-knoepfe .btn { flex: 1; }
}
/* in der Leiste (schmal, aber Maus): Tagesordnung einzeilig wie auf dem Desktop */
@media (min-width: 520px) {
  body.im-panel ol.sortlist li { gap: 8px; padding: 6px 8px; }
  body.im-panel ol.sortlist .grip { display: inline; }
  body.im-panel ol.sortlist .tp { flex-direction: row; gap: 8px; }
  body.im-panel ol.sortlist .topno { min-width: 48px; font-size: .8rem; }
  body.im-panel ol.sortlist .arrows { flex-direction: row; }
  body.im-panel ol.sortlist .btn.small { padding: 3px 9px; }
}
/* Rundmail */
.rm-summe { padding: 10px 12px; margin-bottom: 10px; background: var(--brand-bg); border-radius: 8px; }
.rm-summe b { font-size: 1.1rem; color: var(--brand); }
details.rm-quelle { margin-bottom: 8px; }
details.rm-quelle > summary { cursor: pointer; list-style: revert; }
.rm-schnell { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 10px; }
.rm-schnell .chip { cursor: pointer; font: inherit; font-size: .85rem; }
textarea.rm-text, .rm-text { font-family: inherit; line-height: 1.5; }
ul.rm-liste li { padding: 3px 0; border-bottom: 1px solid var(--line); font-size: .9rem; overflow-wrap: anywhere; }
.rm-schnell .chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
/* Neuigkeiten und Homepage */
.news-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.news-karte { display: flex; flex-direction: column; gap: 4px; color: inherit; text-decoration: none; margin: 0; }
.news-karte:hover { border-color: var(--brand); text-decoration: none; }
.news-karte img { width: calc(100% + 36px); margin: -18px -18px 8px; height: 160px; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.news-karte p { margin: 4px 0; color: var(--muted); }
.news-bild-vorschau img { max-width: 100%; max-height: 220px; border-radius: 8px; display: block; margin-bottom: 6px; }
.hp-vorschau { background: var(--bg); border-radius: 10px; padding: 14px; }
textarea.hp-code { display: block; width: 100%; font-family: ui-monospace, Menlo, monospace; font-size: .82rem; }
/* Vorgang aufgeräumt (11.11.2026): Aktionen-Menü, Formulare als Leiste von rechts, Kommentarfeld klappt auf */
details.aktionen-menue { position: relative; }
details.aktionen-menue > summary { list-style: none; cursor: pointer; }
details.aktionen-menue > summary::-webkit-details-marker { display: none; }
details.aktionen-menue .menue { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 270px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.14); padding: 6px; }
.menue-gruppe { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 8px 10px 4px; }
.menue-gruppe:not(:first-child) { border-top: 1px solid var(--line); margin-top: 4px; }
.menue form { margin: 0; display: block; }
.menue-punkt, a.menue-punkt { display: block; width: 100%; text-align: left; background: none; border: 0; border-radius: 6px; padding: 8px 10px; font: inherit; font-size: .92rem; color: var(--text); cursor: pointer; text-decoration: none; white-space: nowrap; }
.menue-punkt:hover { background: var(--brand-bg); color: var(--brand); text-decoration: none; }
.menue-punkt.gefahr { color: var(--red); }
.vorgang-kopf .profil-aktionen { flex-wrap: nowrap; align-items: flex-start; }
.vorgang-kopf h1 .favform { display: inline; }
dialog.modal.seitlich { margin: 0 0 0 auto; height: 100vh; max-height: 100vh; width: min(560px, 100vw); border-radius: 0; padding: 0 22px 22px; overflow-y: auto; }
dialog.modal.seitlich[open] { animation: seitlich-rein .18s ease-out; }
@keyframes seitlich-rein { from { transform: translateX(40px); opacity: .4; } to { transform: none; opacity: 1; } }
dialog.modal.seitlich > h3:first-child, dialog.modal.seitlich form > h3:first-child, .seitlich-kopf { position: sticky; top: 0; background: var(--card); margin: 0 -22px 12px; padding: 18px 22px 12px; border-bottom: 1px solid var(--line); z-index: 2; }
.seitlich-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.seitlich-kopf h3 { margin: 0; }
.vg-fortschritt { min-width: 140px; }
form.kommentar-neu { margin: 0 0 14px; }
form.kommentar-neu textarea { resize: vertical; }
form.kommentar-neu.zu .kommentar-mehr { display: none; }
form.kommentar-neu.zu textarea { min-height: 0; height: 2.6em; }
.kommentar-mehr { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
ul.tl li.a-admin_access, ul.tl li.tl-sys.nur-zugriff { display: none; }
ul.tl.mit-zugriffen li.a-admin_access { display: list-item; }
ul.tl.mit-zugriffen li.tl-sys.nur-zugriff { display: block; }
@media (max-width: 700px) { .vorgang-kopf .profil-aktionen { flex-wrap: wrap; } details.aktionen-menue .menue { right: auto; left: 0; } }
form.kommentar-neu:not(.zu) textarea { min-height: 6.5em; }
/* Einrichtung: nächster Schritt und Hinweis auf anderen Seiten */
.einr-weiter { display: flex; align-items: center; gap: 16px; justify-content: space-between; margin: 14px 0 4px; padding: 14px 16px; border: 1px solid var(--brand); border-left-width: 4px; border-radius: 10px; background: var(--brand-soft, rgba(30,90,168,.08)); }
.einr-weiter > div:first-child { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.einr-weiter form { margin: 0; }
.einr-unterwegs { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; border-left: 4px solid var(--brand); background: var(--card, #fff); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
@media (max-width: 600px) { .einr-weiter { flex-direction: column; align-items: stretch; } }
.einr-unterwegs { position: sticky; top: 62px; z-index: 15; padding: 8px 12px; }
body:has(.einr-unterwegs) .einst-nav { top: 130px; }
body:has(.einr-unterwegs) .einst-abschnitt { scroll-margin-top: 130px; }
@media (max-width: 600px) { .einr-unterwegs { position: static; } }
/* Familie: Menü je Mitglied mit mehreren Formularen */
.mini-menu[open] > .familie-menue { position: absolute; right: 0; top: 24px; z-index: 5; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px; width: 300px; box-shadow: 0 6px 20px rgba(0,0,0,.08); display: flex; flex-direction: column; gap: 8px; }
.mini-menu[open] > .familie-menue form { position: static; border: 0; padding: 0; width: auto; box-shadow: none; margin: 0; }
.familie-menue .btn { width: 100%; }
.familie-menue form.row { flex-wrap: nowrap; gap: 6px; }
.familie-menue form.row select { flex: 1; min-width: 0; }
.familie-menue form.row .btn { width: auto; }
/* Sitzungs-Assistent: Tipps rechts, nur wenn Platz ist */
.sa-layout { display: grid; grid-template-columns: minmax(0, 900px); gap: 28px; align-items: start; }
.sa-tipps { display: none; }
@media (min-width: 1480px) {
  .sa-layout { grid-template-columns: minmax(0, 900px) minmax(240px, 320px); }
  .sa-tipps { display: block; position: sticky; top: 84px; margin-top: 196px; padding: 16px 18px; border-radius: var(--radius); background: var(--card, #fff); border: 1px solid var(--line); border-left: 4px solid var(--brand); }
}
.sa-tipps-kopf { font-weight: 700; margin-bottom: 8px; }
.sa-tipps ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: .9rem; line-height: 1.45; }
/* Profil: Unterschrift */
.unterschrift-vorschau { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; margin-bottom: 10px; }
.unterschrift-vorschau img { max-width: 260px; max-height: 90px; }
.unterschrift-wahl { display: grid; gap: 12px; }
.unterschrift-feld { display: block; width: 100%; max-width: 600px; aspect-ratio: 3 / 1; border: 1px dashed var(--line); border-radius: 8px; background: #fff; touch-action: none; cursor: crosshair; margin-top: 4px; }
/* Rundmail: Empfänger – Quelle wählen, filtern, eine Person je Zeile */
.rm-quellen { display: flex; gap: 4px; padding: 4px; background: var(--bg, #f3f4f6); border-radius: 10px; margin: 10px 0; flex-wrap: wrap; }
.rm-quellen button { flex: 1; border: 0; background: transparent; padding: 8px 12px; border-radius: 8px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.rm-quellen button.on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.rm-quellen .count:empty { display: none; }
.rm-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 8px; }
.rm-filter .rm-suche { flex: 1 1 200px; min-width: 0; }
.rm-filter select { flex: 0 1 auto; max-width: 220px; min-width: 0; padding-right: 28px; text-overflow: ellipsis; }
.rm-filter .rm-alter { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.rm-filter .rm-alter input { width: 64px; padding: 4px 6px; }
.rm-filter label.check { margin: 0; white-space: nowrap; }
.rm-aktionen { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-bottom: 6px; }
.rm-aktionen > span { margin-right: auto; }
.rm-tabelle { border: 1px solid var(--line); border-radius: 10px; max-height: 52vh; overflow: auto; background: #fff; }
.form label.rm-zeile, .rm-zeile { display: grid; grid-template-columns: 22px minmax(0, 1.2fr) minmax(0, .8fr) minmax(0, 1.3fr); gap: 10px; align-items: center; padding: 7px 12px; border-bottom: 1px solid var(--line); cursor: pointer; margin: 0 !important; font-size: .92rem; color: var(--text) !important; }
.rm-zeile:last-of-type { border-bottom: 0; }
.rm-zeile:hover { background: var(--brand-bg, #f5f8ff); }
.rm-zeile:has(input:checked) { background: var(--brand-soft, #e8effa); }
.form label.rm-zeile[hidden], .rm-zeile[hidden] { display: none; }
.rm-zeile > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-name { font-weight: 600; }
.rm-tabelle .rm-leer { margin: 12px; }
@media (max-width: 600px) { .form label.rm-zeile, .rm-zeile { grid-template-columns: 22px 1fr; } .rm-zeile .rm-info { display: none; } .rm-zeile .rm-mail { grid-column: 2; font-size: .82rem; } }
/* Adressbuch: Kategorien als Chips */
.kat-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: -4px 0 14px; }
.kat-chips .chip { text-decoration: none; }
.kat-chips .chip.on .muted { color: rgba(255,255,255,.8); }
.kat-chips > a.small { margin-left: 6px; }
.einst-gruppen { margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.einst-gruppen .kat-chips { margin: 8px 0 0; }
.mg-sammel { margin-top: -6px; }
.filters .filter-weg { align-self: center; color: var(--muted); text-decoration: none; white-space: nowrap; }
.filters .filter-weg:hover { color: var(--danger, #c62828); }
/* Filterzeilen: zusammengehörige Felder kompakt in einer Zeile */
.filters { align-items: center; }
.filters .filter-gruppe { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.filters .filter-gruppe input[type=number] { width: 5.2em; }
.stichtag-leiste .filter-gruppe { margin: 0; gap: 8px; font-weight: 600; }
.stichtag-leiste input[type=date] { width: auto; margin: 0; }
.stichtag-leiste input[type=date], .stichtag-leiste .btn { height: 40px; box-sizing: border-box; display: inline-flex; align-items: center; gap: 6px; padding-top: 0; padding-bottom: 0; }
.stichtag-leiste > .muted { margin: 0 6px; }
.filters label.filter-check { display: inline-flex; align-items: center; gap: 6px; margin: 0; white-space: nowrap; color: var(--text); font-size: .9rem; }
/* Stundenkonto: Gutschrift/Abzug als Umschalter */
.stunden-art label { flex: 1; margin: 0 !important; cursor: pointer; }
.stunden-art label span { display: block; text-align: center; padding: 8px 12px; border-radius: 8px; font-weight: 600; color: var(--muted); }
.stunden-art label:has(input:checked) span { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.stunden-art label:has(input:disabled) { cursor: not-allowed; opacity: .55; }
/* Paketkarten: Module als Liste mit Häkchen, aufbauend */
.paket-basis { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.paket-module { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 3px; font-size: .88rem; }
.paket-module li { position: relative; padding-left: 20px; line-height: 1.35; }
.paket-module li::before { content: ''; position: absolute; left: 2px; top: .3em; width: 5px; height: 9px; border: solid var(--brand); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.paket-module li.muted::before { display: none; }
.paket-karte .tag { margin-top: auto; }
/* Anmeldeseite: Farbband in der Vereinsfarbe, Karte darüber */
.login-band { margin: -20px calc(50% - 50vw) 0; padding: 48px 16px 120px; background: radial-gradient(circle at 15% 20%, rgba(255,255,255,.14) 0 120px, transparent 121px), radial-gradient(circle at 85% 80%, rgba(255,255,255,.10) 0 180px, transparent 181px), linear-gradient(135deg, var(--brand-dark, #174a8b), var(--brand)); color: #fff; }
.login-band-inhalt { max-width: 460px; margin: 0 auto; display: flex; align-items: center; gap: 16px; }
.login-zeichen { flex: none; width: 76px; height: 76px; border-radius: 18px; background: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.18); overflow: hidden; }
.login-zeichen img { max-width: 64px; max-height: 64px; object-fit: contain; }
.login-zeichen svg { width: 46px; height: 46px; color: var(--brand); }
.login-org { font-size: 1.5rem; font-weight: 800; line-height: 1.2; text-shadow: 0 1px 2px rgba(0,0,0,.15); }
.login-app { opacity: .85; font-size: .95rem; margin-top: 2px; }
.login-karte { position: relative; margin-top: -88px !important; box-shadow: 0 12px 34px rgba(0,0,0,.12); padding: 26px 28px; }
.login-karte h1 { margin: 0; }
.login-hallo { margin: 4px 0 16px; }
.login-knopf { width: 100%; padding: 11px; font-size: 1rem; margin-top: 4px; }
@media (max-width: 600px) { .login-band { padding: 32px 16px 100px; } .login-org { font-size: 1.25rem; } .login-zeichen { width: 60px; height: 60px; } }
.finanz-box { border-left: 3px solid #b0b7c3; background: #f6f7f9; padding: 8px 12px; border-radius: 6px; }
/* Vermietung: Belegungskalender */
.vm-kalender { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin: 12px 0 8px; }
.vm-wt { font-size: .75rem; font-weight: 700; color: var(--muted); text-align: center; padding: 2px 0; }
.vm-tag { min-height: 86px; border: 1px solid var(--line); border-radius: 8px; padding: 4px; display: flex; flex-direction: column; gap: 3px; background: #fff; position: relative; }
.vm-tag.fremd { background: var(--bg, #f6f7f9); opacity: .6; }
.vm-tag.heute { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.vm-nr { font-size: .75rem; color: var(--muted); font-weight: 600; }
.vm-ev { display: inline-block; box-sizing: border-box; font-size: .72rem; line-height: 1.25; padding: 2px 5px; border: 1px solid transparent; border-radius: 5px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.vm-ev.vm-bestaetigt { background: var(--brand); color: #fff; }
.vm-ev.vm-anfrage { background: #fff4dc; color: #8a5a00; border: 1px dashed #e0a500; }
.vm-ev.vm-reserviert { background: #e8f0fe; color: #1f4e9c; border: 1px dotted #5b84d6; }
.vm-ev.vm-abgeschlossen { background: #e9ebef; color: #555; }
.vm-ev.vm-gesperrt { background: repeating-linear-gradient(135deg, #f1f2f4 0 6px, #e4e6ea 6px 12px); color: #444; border-color: #cfd3d9; }
button.vm-ev { font-family: inherit; font-weight: inherit; text-align: left; cursor: pointer; }
.vm-ev.vm-termin { background: #fff; color: #3a4658; border-color: #d5dae2; border-left: 3px solid #7d8aa0; }
button.vm-ev.vm-termin:hover { background: var(--brand-bg); }
.vm-ev.vm-termin.vm-kurs { border-left-color: #1f8a4c; }
p.small > .vm-ev { vertical-align: middle; }
span.vm-ev.vm-gesperrt { cursor: default; }
.vm-tag.klickbar { cursor: pointer; }
.vm-tag.klickbar:hover { background: var(--brand-bg); }
.vm-tag.klickbar.fremd:hover { opacity: .85; }
.vm-plus { position: absolute; right: 4px; top: 2px; font-size: .8rem; color: var(--muted); text-decoration: none; opacity: 0; }
.vm-tag:hover .vm-plus { opacity: 1; }
.vm-kalender.klein .vm-tag { min-height: 40px; align-items: center; justify-content: center; }
.vm-kalender.klein .vm-tag.frei { background: #eaf6ec; border-color: #bfe3c6; }
.vm-kalender.klein .vm-tag.teilbelegt { background: #fff4dc; border-color: #f0d38e; }
.vm-kalender.klein .vm-tag.belegt { background: #fbe4e4; border-color: #efb9b9; }
.vm-kalender.klein .vm-nr { font-size: .85rem; color: var(--text); }
.vm-legende { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin: 0 2px 0 8px; }
.vm-legende.frei { background: #eaf6ec; border: 1px solid #bfe3c6; } .vm-legende.teilbelegt { background: #fff4dc; border: 1px solid #f0d38e; } .vm-legende.belegt { background: #fbe4e4; border: 1px solid #efb9b9; }
.vm-objekte { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.vm-objekt { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--text); }
.vm-objekt .btn { align-self: flex-start; margin-top: auto; max-width: 100%; white-space: normal; text-align: center; }
.vm-oeffentlich.eingebettet { max-width: none; }
@media (max-width: 600px) { .vm-tag { min-height: 60px; } .vm-ev { font-size: .65rem; } }
.vm-monat { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ev.vermietet { background: #eef1f6; color: #3a4658; border-left: 3px solid #7d8aa0; }

/* Vermietung: Schadens- und Mängelmeldungen */
.meldung { border-top: 1px solid var(--line, #e5e7eb); padding: 12px 0; }
.meldung:first-of-type { border-top: 0; }
.meldung-kopf { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-bottom: 6px; }
.meldung-fotos { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.meldung-fotos img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line, #e5e7eb); display: block; }
.meldung-bearbeiten { margin-top: 6px; }
.meldung-bearbeiten summary { cursor: pointer; color: var(--brand, #2563eb); }
@media (max-width: 600px) { .meldung .grid-form { grid-template-columns: 1fr; } .meldung .grid-form .span-2 { grid-column: auto; } }

/* Kalender im Stil des Vermietungskalenders (Timo, 12.11.2026): eine Karte, Monat mit Pfeilen, einzelne Tageskacheln */
.cal-karte { padding: 14px 16px 16px; }
.cal-monat { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cal-titel { display: flex; align-items: center; gap: 8px; }
.cal-titel h2 { margin: 0; font-size: 1.15rem; }
.cal-karte .cal-nav { display: flex; align-items: center; justify-content: center; gap: 4px 14px; flex-wrap: wrap; margin: 8px 0 0; padding: 0; font-size: .85rem; }
.cal-karte .cal-nav .toggle { margin-left: 0; }
.cal-karte .cal { background: none; border: 0; box-shadow: none; border-radius: 0; gap: 4px; margin: 12px 0 0; overflow: visible; }
.cal-karte .cal-h { background: none; padding: 2px 0; font-size: .75rem; font-weight: 700; text-transform: none; letter-spacing: 0; }
.cal-karte .cal-d { border: 1px solid var(--line); border-radius: 8px; min-height: 104px; padding: 4px; gap: 3px; background: #fff; }
.cal-karte .cal-d.we { background: #fcfcfd; }
.cal-karte .cal-d.other { background: var(--bg, #f6f7f9); opacity: .6; }
.cal-karte .cal-d.today { background: #fff; border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.cal-karte .cal-d .num { align-self: flex-start; font-size: .75rem; font-weight: 600; color: var(--muted); min-width: 0; height: auto; line-height: 1.4; padding: 0 4px; text-align: left; }
.cal-karte .cal-d.today .num { background: none; color: var(--brand); font-weight: 700; }
.cal-karte .cal-d.mit-panel:hover { background: var(--brand-bg); }
.cal-karte .ev { border-radius: 5px; padding: 2px 5px; font-size: .72rem; line-height: 1.25; }
@media (max-width: 600px) { .cal-karte { padding: 10px; } .cal-karte .cal { gap: 2px; } .cal-karte .cal-d { min-height: 60px; padding: 2px; border-radius: 6px; } }
/* Verwaltung in der Seitenleiste unterteilt (Timo, 12.11.2026) */
.leiste-untergruppe { font-size: .68rem; color: var(--muted); font-weight: 600; padding: 10px 11px 3px; opacity: .85; }
.leiste-verwaltung .leiste-untergruppe:first-of-type { padding-top: 4px; }
/* Mitgliedsdaten ändern / Kündigung: Übernehmen links, Begründung und Ablehnen daneben in einer Zeile */
.entscheid-zeile { display: flex; gap: 10px 14px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.entscheid-zeile form { margin: 0; }
.entscheid-form { display: flex; gap: 8px; align-items: center; flex: 1 1 360px; flex-wrap: wrap; }
.entscheid-form input:not([type=hidden]) { flex: 1 1 14em; width: auto; margin: 0; }
.entscheid-form label { display: flex; align-items: center; gap: 6px; margin: 0; }
.entscheid-form label input { flex: none; }

/* Mitgliederbereich: Hinweis „Als App aufs Handy“, Fuß mit Abmelden */
.mb-app { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-left: 4px solid var(--brand); }
.mb-geraet { text-align: center; margin: 18px 0 6px; }
/* Mitgliederbereich: eigene Vermietung stornieren */
.vm-storno { display: inline-block; margin-left: 6px; }
.vm-storno[open] { display: block; margin: 8px 0 0; }
.vm-storno summary { cursor: pointer; list-style: none; }
.vm-storno summary::-webkit-details-marker { display: none; }
.listen-zeile:has(.vm-storno[open]) { flex-wrap: wrap; }
.listen-zeile:has(.vm-storno[open]) > span:last-child { flex-basis: 100%; }
/* Hilfe (neu, 12.11.2026): Kopf mit Suche und häufigen Aufgaben, Themen-Kacheln zum Aufklappen */
.hilfe { max-width: 1100px; }
.hilfe-kopf h1 { margin: 0 0 4px; }
.hilfe-suche { width: 100%; font-size: 1.05rem; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; margin: 12px 0 14px; }
.hilfe-suche:focus { outline: 3px solid var(--brand-soft); border-color: var(--brand); }
.hilfe-schnell { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.hilfe-kachel { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 600; background: #fff; }
.hilfe-kachel:hover { border-color: var(--brand); background: var(--brand-bg); text-decoration: none; }
.hilfe-kachel-sym, .hilfe-sym { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: var(--brand-bg); color: var(--brand); flex: none; font-size: 1.1rem; }
.hilfe-bereich { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 26px 0 10px; }
.hilfe-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; align-items: start; }
.hilfe-thema { padding: 0; margin: 0; scroll-margin-top: 80px; }
.hilfe-thema > summary { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; }
.hilfe-thema > summary::-webkit-details-marker { display: none; }
.hilfe-titel { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.hilfe-titel small { color: var(--muted); font-size: .85rem; line-height: 1.35; }
.hilfe-pfeil { color: var(--muted); font-size: 1.3rem; transition: transform .15s; }
.hilfe-thema[open] .hilfe-pfeil { transform: rotate(90deg); }
.hilfe-thema[open] { grid-column: 1 / -1; border-color: var(--brand); }
.hilfe-inhalt { padding: 0 16px 14px 64px; }
.hilfe-punkte { margin: 0; padding-left: 18px; }
.hilfe-punkte li { margin: 6px 0; line-height: 1.45; }
.hilfe-weiter { margin: 10px 0 0; font-weight: 600; }
.hilfe-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.hilfe-fragen details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.hilfe-fragen details:last-child { border-bottom: 0; }
.hilfe-fragen summary { cursor: pointer; font-weight: 600; }
.hilfe-fragen p { margin: 8px 0 0; }
@media (max-width: 600px) { .hilfe-inhalt { padding-left: 16px; } .hilfe-raster { grid-template-columns: 1fr; } }
/* Mitgliederliste: Spalten auswählen */
.spalten-wahl { display: inline-block; margin: 0 0 12px; }
.spalten-menue { min-width: 240px; max-height: 70vh; overflow: auto; }
.spalten-punkt { display: flex; align-items: center; gap: 6px; padding: 3px 6px 3px 4px; margin: 0; font-weight: 400; border-radius: 6px; }
.spalten-punkt .check { flex: 1; margin: 0; font-weight: 400; display: flex; gap: 8px; align-items: center; }
.spalten-punkt.tdragging { background: var(--brand-soft); box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.spalten-griff { cursor: grab; touch-action: none; color: var(--muted); padding: 2px 4px; letter-spacing: -2px; user-select: none; }
.spalten-pfeile { display: flex; } .spalten-pfeile .btn { padding: 0 4px; min-height: 0; color: var(--muted); font-size: 11px; }
.spalten-fest { padding-left: 30px; }
.spalten-knoepfe { display: flex; gap: 8px; padding: 8px 10px 4px; border-top: 1px solid var(--line); margin-top: 6px; }
.spalten-wahl { position: relative; } .spalten-wahl .spalten-menue { left: 0; right: auto; }
/* Vorgänge: ruhigere Liste – einzeilige Angaben, Status-Zähler als Filterknöpfe */
.lop-list .zeile1 { display: -webkit-box; -webkit-line-clamp: 1; line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }   /* höchstens eine Zeile, ohne die Spalte zu verbreitern */
.lop-list { width: 100%; }
.lop-list td { vertical-align: middle; }
.stats .stat-filter { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px 3px 3px; border: 1px solid var(--line); border-radius: 99px; background: #fff; text-decoration: none; }
.stats .stat-filter:hover { border-color: var(--brand); text-decoration: none; }
.stats .stat-filter.on { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: var(--brand-bg); }
.lop-list td.thema { min-width: 240px; }
.lop-list td.small { min-width: 90px; max-width: 220px; }
.lop-list .bar { width: 44px; }
.lop-list .badge { white-space: normal; }
.lop-list .status { white-space: nowrap; }   /* „warten auf Beschluss“ bleibt in einer Zeile */
/* Vorgänge auf kleineren Bildschirmen: weniger wichtige Spalten ausblenden statt seitlich scrollen (Handy: Karten) */
@media (max-width: 1350px) { .lop-list .bar { display: none; } .lop-list .sp-geaendert { display: none; } }
@media (max-width: 1180px) { .lop-list .sp-nr, .lop-list .sp-fortschritt { display: none; } }
@media (max-width: 1060px) { .lop-list .sp-gremium { display: none; } }
/* Sortierbare Spaltenköpfe (Mitgliederliste): ▴ aufsteigend, ▾ absteigend */
table.list th a.sortier { color: inherit; text-decoration: none; white-space: nowrap; }
table.list th a.sortier:hover { color: var(--brand); text-decoration: underline; }
table.list th a.sortier.sorted { color: var(--brand); }
table.list th a.sortier.sorted::after { content: " ▴"; }
table.list th a.sortier.sorted.ab::after { content: " ▾"; }

/* Öffentliche Demo (inc/demomodus.php) */
.demo-leiste { margin: -20px -16px 16px; padding: 7px 16px; background: #fff4d6; border: 1px solid #f2d48a; border-top: 0; border-radius: 0 0 10px 10px; color: #6b4e00; font-size: .88rem; text-align: center; }
.demo-leiste a { color: inherit; font-weight: 600; text-decoration: underline; margin-left: 4px; }
.demo-karte { max-width: 620px; margin-left: auto !important; margin-right: auto !important; }
.demo-rollen { display: grid; gap: 10px; margin: 18px 0 14px; }
.demo-rolle { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border: 1px solid var(--line, #e5e7eb); border-radius: 12px; color: inherit; text-decoration: none; background: #fff; transition: border-color .15s, box-shadow .15s, transform .15s; }
.demo-rolle:hover, .demo-rolle:focus-visible { border-color: var(--brand); box-shadow: 0 4px 14px var(--brand-soft, rgba(30,90,168,.2)); transform: translateY(-1px); }
.demo-rolle.aktiv { border-color: var(--brand); background: var(--brand-bg, #f2f6fc); }
.demo-rolle b { display: block; }
.demo-rolle small { display: block; color: var(--muted, #6b7280); margin-top: 2px; }
.demo-rolle-sym { flex: none; width: 42px; height: 42px; border-radius: 10px; background: var(--brand-bg, #f2f6fc); display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.demo-rolle-pfeil { margin-left: auto; color: var(--brand); font-weight: 700; }
.demo-fuss a { margin-left: 4px; }
.ds-vorlage { margin: 4px 0 16px; padding: 12px 14px; border: 1px dashed var(--line, #d7dce3); border-radius: 10px; background: var(--brand-bg, #f2f6fc); }
.ds-vorlage .row { margin-top: 8px; gap: 8px; flex-wrap: wrap; }
.ds-vorlage select { max-width: 22em; }
/* Zwei-Faktor-Anmeldung im Profil */
.zf-codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(9em, 1fr)); gap: 6px; margin-top: 10px; }
.zf-codes code { font-size: 1rem; letter-spacing: .06em; background: #fff; padding: 6px 8px; border-radius: 6px; text-align: center; }
.zf-qr { text-align: center; }
.zf-qr svg { width: 190px; height: 190px; }
.zf-form { gap: 8px; flex-wrap: wrap; }
.zf-form input { flex: 1 1 12em; min-width: 12em; max-width: 18em; }
/* Mitglieder werben */
.werben-raster { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: start; }
.werben-qr svg { width: 150px; height: 150px; display: block; }
.werben-knoepfe { gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.werben-text { margin-bottom: 10px; }
@media (max-width: 560px) { .werben-raster { grid-template-columns: 1fr; } .werben-qr { justify-self: center; } }
/* IBAN-Prüfung beim Tippen (assets/iban.js) */
.iban-hinweis { display: block; font-size: .8rem; margin-top: 3px; min-height: 0; }
.iban-hinweis.gut { color: #1f7a3a; }
.iban-hinweis.schlecht { color: #b42318; font-weight: 600; }
/* Verwaltung → Rechnung: Datum und Knöpfe auf einer Linie */
.zahlung-zeile { gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.zahlung-zeile form { margin: 0; }
.zahlung-zeile label { margin: 0; }
.zahlung-zeile input[type=date] { width: auto; }
/* Fördermittel */
.foerder-zeile { color: inherit; text-decoration: none; align-items: center; }
.foerder-zeile:hover { background: var(--brand-bg, #f2f6fc); }
.foerder-zahlen { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; min-width: 150px; }
.foerder-balken { display: block; width: 140px; height: 6px; border-radius: 3px; background: #e5e7eb; overflow: hidden; }
.foerder-balken span { display: block; height: 100%; background: var(--brand); }
/* Kurse */
.kurs-karte { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.kurs-karte:hover { border-color: var(--brand); }
.kurs-anw-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 14px; margin-top: 10px; align-items: center; }
.kurs-anw-form .btn { grid-column: 1 / -1; justify-self: start; margin-top: 6px; }
.kurs-anw td, .kurs-anw th { padding-left: 6px; padding-right: 6px; }
/* Kurs: Termine anlegen – alle Felder gleich hoch, Knopf auf einer Linie */
.kurs-serie { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line, #e5e7eb); }
.kurs-serie-titel { flex-basis: 100%; font-weight: 600; font-size: .9rem; }
.kurs-serie label { display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: .85rem; color: var(--muted, #6b7280); }
.kurs-serie input, .kurs-serie select, .kurs-serie .btn { height: 40px; box-sizing: border-box; margin: 0; }
.kurs-serie input[type=number] { width: 5.5em; }
.kurs-serie input[type=time] { width: 7em; }
.kurs-mb summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; cursor: pointer; list-style: none; width: 100%; }
.kurs-mb summary::-webkit-details-marker { display: none; }
.kurs-mb { display: block; }
.kurs-mb[open] form { margin-top: 8px; }
.kurs-raster { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 900px) { .kurs-raster { grid-template-columns: 1fr; } }
.kurs-anw td:first-child { white-space: nowrap; }
.ev.kurs { background: #eefaf3; color: #1f5f3a; border-left: 3px solid #2e9d5b; }
.ev.kurs.ausfall { text-decoration: line-through; opacity: .6; }
.kurs-serie select { min-width: 9.5em; }
/* Einheitliche Feldhöhe in Formularen: Safari zeichnet Datums- und Zeitfelder sonst höher als Textfelder */
.form input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=color]), .form select:not([multiple]):not([size]) { height: 42px; box-sizing: border-box; }
.news-zeile { grid-template-columns: minmax(0, 12em) minmax(0, 1fr); }
/* Ganze Zeile als Link (Kurse, Fördermittel): beim Drüberfahren nur der Titel unterstrichen, wie bei Vorgängen */
a.foerder-zeile, a.foerder-zeile:hover, a.kurs-karte, a.kurs-karte:hover { text-decoration: none; }
a.foerder-zeile:hover > div:first-child > b, a.kurs-karte:hover > div:first-child > b { text-decoration: underline; }
/* Locaboo: Ressourcen zur Auswahl (Teilbereiche eingerückt) */
.locaboo-res { columns: 2 260px; column-gap: 24px; margin-bottom: 8px; }
.locaboo-gruppe { break-inside: avoid; padding-bottom: 8px; }
.locaboo-teil { padding-left: 26px; }
.foerder-balken.voll span { background: var(--danger, #c4151c); }
/* vier Felder nebeneinander (z. B. Abrechnung: von, bis, Stunden, Betrag), auf schmalen Bildschirmen umbrechend */
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 16px; align-items: start; }
.grid-4 > * { min-width: 0; }

/* Vereinsarchiv (pages/archiv.php) */
.archiv-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 16px; align-items: start; }
.archiv-ordner { padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.archiv-o { display: flex; justify-content: flex-start; align-items: flex-start; gap: 6px; padding: 7px 10px; border-radius: 6px; color: var(--text); text-decoration: none; font-size: .93rem; }
.archiv-o:hover { background: var(--brand-bg, #f0f4fa); text-decoration: none; }
.archiv-o.on { background: var(--brand-soft, #e3ecf8); color: var(--brand-dark, var(--brand)); font-weight: 600; }
.archiv-o .archiv-name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.archiv-o > svg.i { flex: none; margin-top: 2px; }
.archiv-o .count { margin-left: auto; flex: none; font-size: .78rem; color: var(--muted); font-weight: 400; }
.archiv-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.archiv-kopf h2 { margin: 0 0 4px; font-size: 1.15rem; }
@media (max-width: 760px) { .archiv-layout { grid-template-columns: 1fr; } }

/* Steuer-Ampel (inc/finanzen.php) */
.ampel-balken { height: 12px; border-radius: 6px; background: var(--line, #e3e6ea); overflow: hidden; margin: 6px 0 10px; }
.steuer-ampel .badge { white-space: nowrap; }
.ampel-balken span { display: block; height: 100%; border-radius: 6px; }
.rueckfrage { border-left: 3px solid var(--brand); padding: 6px 10px; margin: 8px 0; background: var(--brand-bg, #f5f8fc); border-radius: 0 6px 6px 0; }
.rueckfrage.erledigt { border-left-color: var(--line); opacity: .75; }

/* Kassenzählung (pages/fin_kasse.php) */
.kasse-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin: 8px 0; }
.kasse-raster label { display: flex; align-items: center; gap: 6px; margin: 0; }
.kasse-raster label span { min-width: 64px; text-align: right; font-variant-numeric: tabular-nums; }
.kasse-raster input { width: 100%; }
.kasse-summe { font-size: 1.1rem; }

/* Vermietung: Zeitraum (pages/vermietung_eintrag.php) – je Spalte Datum und Uhrzeit nebeneinander */
.vm-zeit { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.vm-zeit-titel { font-weight: 500; }
.vm-zeit-felder { display: flex; gap: 8px; }
.vm-zeit-felder input[type=date] { flex: 1 1 auto; min-width: 9.5em; width: auto; }
.vm-zeit-felder input[type=time] { flex: 0 0 7.5em; width: 7.5em; }

/* Spendenaktionen (pages/spende.php, spendenaktion(en).php) */
.spende-stand { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.spende-zahlen b { font-size: 1.5rem; }
.spende-balken { height: 14px; border-radius: 999px; background: var(--line); overflow: hidden; }
.spende-balken span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--brand-dark, var(--brand))); transition: width .6s ease; }
.spende-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.spende-karte { text-decoration: none; color: var(--text); display: block; }
.spende-betraege { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.spende-betraege .btn { min-width: 70px; }
.spende-ueberweisung { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.spende-daten { flex: 1 1 260px; display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; }
.spende-daten dt { color: var(--muted); }
.spende-daten dd { margin: 0; overflow-wrap: anywhere; }
label.block { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.spende-stand + .kpi-reihe, .card .kpi-reihe { margin-top: 12px; }
.spende-qr { margin: 0; text-align: center; max-width: 220px; }
.spende-qr svg { width: 180px; height: auto; background: #fff; padding: 6px; border-radius: 8px; }
.spende-teilen-qr { display: flex; gap: 12px; align-items: center; }
.spende-teilen-qr svg { width: 110px; height: auto; background: #fff; flex: none; }
.sa-aktionen { min-width: 170px; }
.sa-aktionen .inline-form { display: flex; }
.inline-form { display: inline-flex; gap: 4px; align-items: center; flex-wrap: wrap; margin: 2px 0; }
.inline-form input[type=date] { width: auto; }

/* Vereinsregister-Assistent */
.vr-personen { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.vr-person { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 12px; padding: 12px; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 10px; background: #fff; }
.vr-person label { margin: 0; }
.vr-person .vr-breit, .vr-person-fuss { grid-column: 1 / -1; }
.vr-person-fuss { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.vr-art-aus { border-left-color: var(--red); background: #fffafa; } .vr-art-wieder, .vr-art-bleibt { border-left-color: var(--line); }
.vr-pruefung .flash { margin: 6px 0; }
.vr-schritte { padding-left: 1.2em; } .vr-schritte li { margin-bottom: 4px; }

/* Schnupperangebot */
.schnupper-termine { display: grid; gap: 8px; margin-bottom: 12px; }
.schnupper-termin { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.schnupper-termin:has(input:checked) { border-color: var(--brand); background: var(--brand-bg); }
.schnupper-termin.voll { opacity: .55; cursor: not-allowed; }
.schnupper-termin input { margin-top: 4px; }
.schnupper-block { border-top: 1px solid var(--line); padding-top: 6px; margin-top: 6px; }
.schnupper-block.vorbei > .listen-zeile:first-child b { color: var(--muted); }
.schnupper-person { padding-left: 14px; }
.schnupper-form { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 12px; }
.rm-versand { border: 1px solid var(--brand-soft); background: var(--brand-bg); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 6px; }
/* Hilfe, ausführlich */
.hilfe-inhalt h4 { margin: 16px 0 6px; font-size: .95rem; }
.hilfe-inhalt h4:first-child { margin-top: 4px; }
.hilfe-inhalt > p { line-height: 1.55; margin: 8px 0; }
.hilfe-schritte, .hilfe-liste { margin: 0; padding-left: 22px; }
.hilfe-schritte li, .hilfe-liste li { margin: 6px 0; line-height: 1.5; }
.hilfe-schritte li::marker { color: var(--brand); font-weight: 700; }
.hilfe-tipp, .hilfe-achtung { padding: 10px 12px; border-radius: 8px; line-height: 1.5; }
.hilfe-tipp { background: var(--brand-bg); border-left: 4px solid var(--brand); }
.hilfe-achtung { background: #fff7e6; border-left: 4px solid #e0a020; }
.hilfe-frage { border-bottom: 1px solid var(--line); padding: 8px 0; }
.hilfe-frage summary { cursor: pointer; font-weight: 600; }
.hilfe-frage p { margin: 6px 0 0; }
.hilfe-thema[open] .hilfe-inhalt { max-width: 860px; }
/* Hilfe-Suche: Trefferliste */
.hilfe-treffer { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; margin: -6px 0 14px; max-height: 60vh; overflow: auto; background: #fff; }
.hilfe-treffer-zeile { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.hilfe-treffer-zeile:hover, .hilfe-treffer-zeile.an { background: var(--brand-bg); text-decoration: none; }
.hilfe-treffer-zeile b span { color: var(--muted); font-weight: 400; margin: 0 2px; }
.hilfe-treffer-zeile small { color: var(--muted); line-height: 1.45; }
.hilfe-treffer mark, mark.hilfe-mark { background: #fff1a8; color: inherit; padding: 0 1px; border-radius: 2px; }
.hilfe-treffer-fuss { margin: 0; padding: 8px 14px; }
.hilfe-nichts { border: 1px dashed var(--line); border-radius: 10px; padding: 12px 14px; margin: -6px 0 14px; }
.hilfe-nichts p { margin: 4px 0; }
.hilfe-block { scroll-margin-top: 90px; border-radius: 8px; }
.hilfe-ziel { animation: hilfe-ziel 2.4s ease-out; }
@keyframes hilfe-ziel { 0%, 30% { background: var(--brand-bg); box-shadow: 0 0 0 6px var(--brand-bg); } 100% { background: transparent; box-shadow: 0 0 0 6px transparent; } }

/* Sitzung: Gäste einladen */
#gaeste-einladen .gast-zeile { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
#gaeste-einladen .gast-zeile input[type=email] { min-width: 240px; max-width: 100%; width: auto; }
#gaeste-einladen .gast-tops { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .88rem; }
#gaeste-einladen .gast-tops label:has(input:disabled) { color: var(--muted); }
/* Sitzung: TOP in der laufenden Sitzung – links Notiz fürs Protokoll, rechts Aufgaben */
.mitem-body.marbeit { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; align-items: start; }
.marbeit h3, .marbeit .tasks h3 { font-size: .95rem; margin: 0 0 8px; }
.mnotiz textarea { width: 100%; min-height: 150px; resize: vertical; }
.mnotiz-opt { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 8px; }
.mnotiz-opt .dec-result { display: flex; align-items: center; gap: 6px; font-size: .9rem; }
.mnotiz-opt .dec-result select { width: auto; }
.mnotiz-fuss { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.mnotiz-fuss label { flex: 0 1 200px; }
.mnotiz-knoepfe { margin-left: auto; display: flex; gap: 8px; }
.maufgaben .task-add { display: grid; grid-template-columns: minmax(0, 1fr) 140px auto; gap: 6px; }
.maufgaben .task-add input[name=task_title] { grid-column: 1 / -1; }
.maufgaben { border-left: 1px solid var(--line); padding-left: 24px; }
.tasks-done { margin: 4px 0 10px; }
.tasks-done summary { cursor: pointer; color: var(--muted); font-size: .88rem; padding: 4px 0; }
@media (max-width: 900px) { .mitem-body.marbeit { grid-template-columns: 1fr; } .maufgaben { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 14px; } }
.maufgaben .task-add .nf { min-width: 0; }   /* Namensfeld passt sich der schmalen Spalte an (Handy) */
.maufgaben .task-add .nf input.nf-in { min-width: 60px; }
/* Suche in der Seitenleiste nur am Handy (am PC oben rechts) */
.leiste-suche { display: none; }
@media (max-width: 900px) { .leiste-suche { display: block; margin: 0 2px 10px; } .leiste-suche input { width: 100%; box-sizing: border-box; padding: 9px 11px; border: 1px solid #d5dae1; border-radius: 8px; font: inherit; } }

/* Meldungen aus JavaScript (meldung() in app.js): wie die Hinweise oben, am Rand eingeblendet */
.meldungen { position: fixed; top: 74px; right: 16px; z-index: 1000; display: flex; flex-direction: column; gap: 8px; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.meldungen .flash { position: relative; margin: 0; padding-right: 36px; box-shadow: 0 6px 20px rgba(0,0,0,.12); pointer-events: auto; transition: opacity .35s, transform .35s; animation: meldung-rein .25s ease-out; }
.meldungen .flash.weg { opacity: 0; transform: translateY(-6px); }
.meldung-zu { position: absolute; top: 6px; right: 8px; border: 0; background: none; font-size: 1.2rem; line-height: 1; color: inherit; opacity: .6; cursor: pointer; padding: 2px 4px; }
.meldung-zu:hover { opacity: 1; }
@keyframes meldung-rein { from { opacity: 0; transform: translateY(-8px); } }

/* Untermenü eines Bereichs am linken Rand, wie in den Einstellungen (Mitgliederverwaltung; Timo, 19.11.2026).
   Das Menü steht als <nav class="bereich-nav"> direkt in <main>: alles davor (Seitenkopf, Meldungen) bleibt breit, alles danach steht rechts daneben. */
.bereich-nav { display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--schatten); padding: 8px; margin-bottom: 16px; }
.bereich-nav a { display: flex; gap: 8px; align-items: center; padding: 7px 10px; border-radius: 8px; color: var(--text); font-size: .9rem; text-decoration: none; }
.bereich-nav a:hover { background: var(--brand-bg); }
.bereich-nav a.aktiv { background: var(--brand-bg); color: var(--brand-dark); font-weight: 600; }
.bereich-nav a > span { width: 20px; text-align: center; flex: none; }
.bereich-nav .bn-gruppe { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 10px 10px 3px; }
.bereich-nav .bn-gruppe:first-child { padding-top: 4px; }
.bereich-nav .bn-zahl { margin-left: auto; min-width: 20px; text-align: center; font-size: .74rem; background: var(--brand); color: #fff; border-radius: 99px; padding: 1px 6px; }
@media (min-width: 901px) {
  main:has(> nav.bereich-nav) { display: grid; grid-template-columns: 220px minmax(0, 1fr); column-gap: 20px; row-gap: 0; align-items: start; align-content: start; }
  main:has(> nav.bereich-nav) > * { grid-column: 2; min-width: 0; }
  main:has(> nav.bereich-nav) > *:has(~ nav.bereich-nav) { grid-column: 1 / -1; }
  main:has(> nav.bereich-nav) > nav.bereich-nav { grid-column: 1; grid-row-end: span 400; position: sticky; top: 70px; margin-bottom: 0; }
}
@media (max-width: 900px) {
  .bereich-nav { flex-direction: row; flex-wrap: wrap; }
  .bereich-nav a { padding: 5px 9px; font-size: .84rem; }
  .bereich-nav .bn-gruppe { display: none; }
  .bereich-nav .bn-zahl { margin-left: 4px; }
}
@media (max-width: 600px) {
  /* Handy: Untermenü als eine Zeile zum Wischen statt eines hohen Blocks */
  .bereich-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 5px; gap: 4px; margin-bottom: 12px; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
  .bereich-nav::-webkit-scrollbar { display: none; }
  .bereich-nav a { white-space: nowrap; flex: none; scroll-snap-align: start; }
  .bereich-nav a:last-child { margin-right: 24px; }
}
@media print { .bereich-nav { display: none; } }
/* Änderungsanträge: lange Werte (E-Mail, IBAN) brechen um statt die Seite zu verbreitern */
table.aenderung-tab { table-layout: fixed; }
table.aenderung-tab td { overflow-wrap: anywhere; }
table.aenderung-tab th:first-child { width: 31%; }
table.aenderung-tab td:first-child { overflow-wrap: break-word; hyphens: auto; }
/* Gruppe für alle angezeigten: aufklappbar */
details.mg-sammel-auf { margin: -4px 0 10px; }
details.mg-sammel-auf > summary { cursor: pointer; font-size: .86rem; color: var(--brand-dark); list-style: none; display: inline-block; padding: 2px 0; }
details.mg-sammel-auf > summary::-webkit-details-marker { display: none; }
details.mg-sammel-auf[open] > summary { margin-bottom: 6px; }
details.mg-sammel-auf .mg-sammel { margin-top: 0; }
@media (max-width: 600px) {
  form.filters.autofilter > input[type=search] { flex: 1 1 100%; }
}

/* Mitgliederliste: „Bald Geburtstag“ als Kärtchen mit Kalenderblatt (Timo, 19.11.2026) */
.geb-leiste { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--schatten); padding: 10px 12px 12px; margin-bottom: 14px; }
.geb-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; font-size: .92rem; }
.geb-reihe { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.geb-karte { display: flex; align-items: center; gap: 9px; flex: none; padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfc; color: var(--text); text-decoration: none; }
.geb-karte:hover { border-color: var(--brand); background: var(--brand-bg); text-decoration: none; }
.geb-tag { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 40px; height: 42px; border-radius: 8px; background: #fff; border: 1px solid var(--line); font-size: .66rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); line-height: 1.1; overflow: hidden; }
.geb-tag b { font-size: 1.05rem; color: var(--text); letter-spacing: 0; }
.geb-wer { display: flex; flex-direction: column; line-height: 1.25; white-space: nowrap; }
.geb-wer b { font-size: .88rem; font-weight: 600; color: var(--brand-dark); }
.geb-wer span { font-size: .78rem; color: var(--muted); }
.geb-karte.heute { border-color: var(--brand); background: var(--brand-bg); }
.geb-karte.heute .geb-tag { background: var(--brand); border-color: var(--brand); color: #fff; }
.geb-karte.heute .geb-tag b { color: #fff; }
.geb-karte.rund .geb-wer span { color: #9a5b00; font-weight: 600; }
@media print { .geb-leiste { display: none; } }

/* Abonnierte Kalender (inc/kalenderabo.php): Termine im Kalender, Farbpunkt, eigene Auswahl */
.ev.abo { background: #f6f7f9; color: #2f3a48; border-left: 3px solid #5b6b7b; cursor: default; }
a.ev.abo.mit-vorgang { cursor: pointer; }
.ka-punkt { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: baseline; }
.ka-url { max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ka-wahl { display: flex; flex-direction: column; gap: 4px; margin: 8px 0 12px; }
.ka-zeile { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.ka-zeile:last-child { border-bottom: 0; }
.ka-zeile .ka-name { min-width: 220px; }
.ka-zeile label.check { margin: 0; }

/* Dateien (pages/cloud.php, cloud_datei.php, cloud_link.php) */
.cloud-pfad { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0 0 12px; font-size: .95rem; }
.cloud-pfad .spacer { flex: 1; }
.cloud-liste { padding: 4px 0; }
.cloud-liste .listen-zeile { padding-left: 16px; padding-right: 16px; }
.cloud-zeile { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.cloud-zeile > div { min-width: 0; }
.cloud-zeile b { overflow-wrap: anywhere; }
.cloud-haken input { width: 17px; height: 17px; margin: 0; }
.cloud-auswahl { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 16px; background: var(--brand-soft, #f2f6fc); border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; }
.cloud-auswahl[hidden] { display: none; }
.cloud-auswahl select { width: auto; max-width: 320px; margin: 0; padding: 6px 28px 6px 10px; }
.cloud-recht { display: grid; grid-template-columns: minmax(0, 1fr) 130px; gap: 8px; margin-bottom: 8px; }
.cloud-recht select { margin: 0; }
.cloud-wirksam { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.cloud-wirksam li { padding: 4px 0; border-bottom: 1px solid var(--line); }
.cloud-link { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; display: grid; gap: 6px; }
.cloud-link input { width: 100%; box-sizing: border-box; font-size: .85rem; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: #f7f8fa; }
.cloud-vorschau { text-align: center; }
.cloud-vorschau img { max-width: 100%; max-height: 520px; border-radius: 6px; }
.cloud-neue-version { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.cloud-oeffentlich { max-width: 860px; margin: 24px auto; }
body.cloud-ziehen .cloud-liste { outline: 3px dashed var(--brand); outline-offset: 4px; background: var(--brand-soft, #f2f6fc); }
@media (max-width: 640px) { .cloud-zeile { grid-template-columns: 22px minmax(0, 1fr); } .cloud-zeile > :last-child { grid-column: 2; justify-self: start; } .cloud-recht { grid-template-columns: 1fr; } }
.cloud-recht-neu { margin-top: 10px; }

/* Mitglied: Karte „Beitrag und Lastschrift“ */
.bt-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 6px; }
.bt-teil { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: #fbfcfd; }
.bt-teil h4, .bt-ueber { margin: 0 0 10px; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.bt-ueber { margin-top: 18px; }
.bt-form label { margin-bottom: 10px; }
.bt-zwei { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bt-mandat { margin: 0 0 12px; }
.bt-ref { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82rem; overflow-wrap: anywhere; }
.bt-teil .row { flex-wrap: wrap; gap: 8px; }
@media (max-width: 860px) { .bt-raster, .bt-zwei { grid-template-columns: 1fr; } }

/* Lastschrift (pages/sepa.php) */
.sepa-einzug .sepa-datum { max-width: 340px; }
.sepa-einzug label.check { margin: 8px 0; }

/* Häkchen in Filterzeilen: nicht wie ein Textfeld auf volle Breite ziehen */
.filters label.filter-check input[type=checkbox], .filters label.check input[type=checkbox] { display: inline-block; width: auto; flex: none; margin: 0; padding: 0; }

/* Leiste direkt über einer Tabelle (z. B. Spaltenauswahl), Geburtstage/Jubiläen: Vergangenes ausgegraut */
.tabellen-leiste { display: flex; justify-content: flex-start; margin: 0 0 6px; }
.tabellen-leiste > * { margin: 0; }
tr.jub-vorbei td, tr.jub-vorbei td a, tr.jub-vorbei td b { color: var(--muted); font-weight: 400; }
tr.jub-heute td { background: var(--brand-soft, #f2f6fc); }
/* Verlauf der Mitgliederzahl: Schildchen am Punkt beim Zeigen, Antippen oder mit der Tabulatortaste */
.vl-punkt { outline: none; cursor: default; }
.vl-punkt .vl-info { display: none; pointer-events: none; }
.vl-punkt:hover .vl-info, .vl-punkt:focus .vl-info { display: inline; }
/* Geburtstage und Jubiläen: die zwei Karten stehen nur nebeneinander, wenn beide genug Platz haben (neben dem Untermenü wird es schnell eng) */
.jub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; align-items: start; }
.jub-grid > .card { min-width: 0; margin: 0; }
.jub-grid table.list { width: 100%; }
.jub-grid table.list td { overflow-wrap: anywhere; }
@media print { tr.jub-vorbei td, tr.jub-vorbei td a, tr.jub-vorbei td b { color: #000; } tr.jub-vorbei .badge, tr.jub-heute .badge { display: none; } }

/* Kalender: Vermietungsanfrage (noch nicht bestätigt) – gestrichelt, anders als die verbindliche Vermietung */
.ev.vermietet.anfrage { background: #fff; color: #8a5a00; border: 1px dashed #d9a441; border-left: 3px dashed #d9a441; font-style: italic; }
.ev.vermietet.anfrage.legend { display: inline-block; font-size: .78rem; margin-left: 6px; font-style: normal; }
.ev.vermietet.reserviert { background: #e8f0fe; color: #1f4e9c; border: 1px dotted #5b84d6; border-left: 3px dotted #5b84d6; }
.ev.vermietet.reserviert.legend { display: inline-block; font-size: .78rem; margin-left: 6px; }
.ev.vermietet.gesperrt { background: repeating-linear-gradient(135deg, #f1f2f4 0 6px, #e4e6ea 6px 12px); color: #444; border: 1px solid #cfd3d9; border-left: 3px solid #9aa1ab; }
.ev.vermietet.gesperrt.legend { display: inline-block; font-size: .78rem; margin-left: 6px; }

/* Vorschusskasse (inc/vorschuss.php) – am Handy schnell buchen */
.vk-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-bottom: 14px; }
.vk-kachel { display: block; color: inherit; text-decoration: none; margin: 0; }
.vk-kachel, .vk-kachel:hover, .vk-kachel:hover * { text-decoration: none; }
.vk-kachel:hover { border-color: var(--brand); box-shadow: 0 2px 10px rgba(0, 0, 0, .08); }
.vk-kachel-kopf { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.vk-stand { font-size: 1.7rem; font-weight: 700; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.vk-warn { color: var(--warn); font-size: .88rem; margin-top: 4px; }
.vk-hinweis { border-left: 4px solid var(--brand); }
.vk-buchen { max-width: 560px; }
.vk-art { display: flex; gap: 8px; }
.vk-art label { flex: 1; margin: 0; }
.vk-art input { position: absolute; opacity: 0; pointer-events: none; }
.vk-art span { display: block; text-align: center; padding: 10px; border: 1px solid var(--line, #d0d5dd); border-radius: 10px; font-weight: 600; cursor: pointer; }
.vk-art input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.vk-art input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
input.vk-betrag-feld { font-size: 1.6rem; font-weight: 700; padding: 10px 12px; font-variant-numeric: tabular-nums; }
.vk-foto { display: block; border: 2px dashed var(--line, #d0d5dd); border-radius: 10px; padding: 12px; text-align: center; cursor: pointer; }
.vk-foto span { display: block; font-weight: 600; margin-bottom: 6px; }
.vk-foto input { width: 100%; }
.vk-zeile { border-top: 1px solid var(--line, #e4e7ec); padding: 10px 0; }
.vk-zeile:first-of-type { border-top: 0; }
.vk-zeile.vk-ok { opacity: .75; }
.vk-zeile-haupt { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.vk-zeile-haupt b { overflow-wrap: anywhere; }
.vk-betrag { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ok); }
.vk-betrag.minus { color: inherit; }
.vk-belege { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.vk-beleg { display: inline-flex; width: 56px; height: 56px; border: 1px solid var(--line, #d0d5dd); border-radius: 8px; overflow: hidden; align-items: center; justify-content: center; background: #fff; }
.vk-beleg img { width: 100%; height: 100%; object-fit: cover; }
.vk-frage { background: #fff7e6; border-radius: 8px; padding: 8px 10px; margin-top: 6px; font-size: .92rem; overflow-wrap: anywhere; }
.vk-pruef { margin-top: 8px; gap: 8px; align-items: center; flex-wrap: wrap; }
.vk-pruef select { max-width: 260px; }
.vk-frage-form, .vk-bearbeiten { margin-top: 6px; }
.vk-zaehlen { margin: 4px 0 8px; }
@media (max-width: 600px) {
  .vk-buchen { max-width: none; }
  .vk-kacheln { grid-template-columns: 1fr; }
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .vk-frage { background: rgba(255, 180, 60, .15); } }
:root[data-theme="dark"] .vk-frage { background: rgba(255, 180, 60, .15); }
.vk-summe { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.vk-summe .vk-stand { margin-top: 0; }
.vk-summe-rechts { text-align: right; }
.vk-art { margin-bottom: 10px; }
@media (max-width: 600px) { .vk-summe-rechts { text-align: left; } }
.mg-filter { margin-bottom: 14px; }
.mg-filter .mg-filter-zeile { margin-bottom: 0; }
.mg-filter-zahl { display: inline-block; min-width: 1.4em; padding: 0 5px; margin-left: 2px; border-radius: 9px; background: var(--brand); color: #fff; font-size: .78rem; line-height: 1.4em; text-align: center; }
.mg-filter-block { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 14px; margin-top: 10px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.mg-filter-block[hidden] { display: none; }
.mg-filter-block label, .mg-filter-alter > span { display: block; margin: 0; font-size: .82rem; color: var(--muted); font-weight: 600; }
.mg-filter-block select { width: 100%; margin-top: 4px; }
.mg-filter-alter > div { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.mg-filter-alter input { width: 100%; min-width: 0; margin: 0; -moz-appearance: textfield; }
.mg-filter-alter input::-webkit-outer-spin-button, .mg-filter-alter input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mg-filter-fuss { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mg-filter-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.mg-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--brand-bg); color: var(--text); font-size: .85rem; text-decoration: none; border: 1px solid var(--line); }
.mg-chip:hover { border-color: var(--brand); text-decoration: none; }
.mg-chip span { color: var(--muted); font-size: .8rem; }

/* Termine am Vorgang (Karte „Termine“) und Hinweis am Termin */
.termin-liste { list-style: none; margin: 0; padding: 0; }
.termin-liste li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line, #e5e7eb); }
.termin-liste li:first-child { border-top: 0; }
.termin-liste li.vorbei { opacity: .6; }
.termin-liste .tl-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.termin-liste form { margin: 0; }
.termin-vorgang { margin: 10px 0 0; font-size: .92em; }
.termin-wahl { border: 1px solid var(--line, #e5e7eb); border-radius: 12px; max-height: 46vh; overflow-y: auto; background: #fff; }
.termin-wahl .tw-gruppe { position: sticky; top: 0; z-index: 1; background: #f6f7f9; padding: 7px 12px; font-size: .78rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: #4b5563; border-bottom: 1px solid var(--line, #e5e7eb); }
.termin-wahl .tw-gruppe .muted { font-weight: 400; text-transform: none; letter-spacing: 0; }
.termin-wahl .tw-zeile { display: flex; flex-direction: row; align-items: center; gap: 12px; padding: 8px 12px; margin: 0; cursor: pointer; font-weight: 400; border-bottom: 1px solid var(--line, #e5e7eb); }
.termin-wahl .tw-zeile[hidden], .termin-wahl .tw-block[hidden] { display: none; }
.termin-wahl .tw-block:last-of-type .tw-zeile:last-child { border-bottom: 0; }
.termin-wahl .tw-zeile:hover { background: #f9fafb; }
.termin-wahl .tw-zeile { position: relative; }
.termin-wahl .tw-zeile:has(input:checked) { background: var(--brand-bg, #f2f6fc); box-shadow: inset 0 0 0 2px var(--brand); border-radius: 10px; border-bottom-color: transparent; }
.termin-wahl .tw-zeile:has(input:checked)::after { content: '✓'; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: .85rem; display: flex; align-items: center; justify-content: center; }
.termin-wahl .tw-zeile:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: -2px; }
.termin-wahl .tw-zeile input { position: absolute; left: 30px; bottom: 6px; width: 1px; height: 1px; opacity: 0; margin: 0; pointer-events: none; }
.termin-wahl .tw-zeile .kalenderblatt { width: 44px; box-shadow: none; }
.termin-wahl .tw-zeile .tl-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.termin-wahl .tw-zeile .tl-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.termin-wahl .tw-leer { padding: 12px; margin: 0; }

/* Handy: Kopf-Knöpfe nicht direkt am Suchfeld; Filter der Mail-Empfänger als gleichmäßiges Raster */
@media (max-width: 700px) {
  .head + .filters, .head + form.filters { margin-top: 12px; }
  .rm-filter { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .rm-filter .rm-suche { grid-column: 1 / -1; }
  .rm-filter select { max-width: none; width: 100%; }
  .rm-filter .rm-alter, .rm-filter label.check { grid-column: 1 / -1; justify-self: start; }
  .rm-filter .rm-alter input { flex: 0 0 72px; width: 72px; }
}

/* Mitgliederversammlung: Karte „Einladung gestalten“ im Reiter Einladung */
.mv-el-karte { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin: 12px 0; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg, #f8fafc); }
.mv-el-karte .muted { flex-basis: 100%; }
/* Einstellungen: Mehrfachauswahl (Typ checks), z. B. Fuß des Briefkopfs */
.form .einst-feld { margin-bottom: 12px; font-size: .88rem; color: #3d4450; font-weight: 500; }
.einst-checks { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 6px 0 2px; }
.form .einst-checks label.check { margin: 0; font-size: .9rem; }
.form .einst-feld > small.muted { display: block; margin-top: 4px; font-weight: 400; }
.bk-bild-feld { border: 1px dashed var(--line); border-radius: 10px; padding: 12px 14px; margin: 0 0 14px; }
.bk-blatt { position: relative; width: 100%; max-width: 560px; aspect-ratio: 210 / 50; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 4px rgba(0,0,0,.08); overflow: hidden; margin: 0 0 6px; }
.bk-blatt img { position: absolute; height: auto; }
.bk-rand { position: absolute; top: 0; bottom: 0; border-left: 1px dashed #cbd5e1; }
.bk-rand-l { left: calc(25 / 210 * 100%); } .bk-rand-r { left: calc(190 / 210 * 100%); }
.bk-anschrift { position: absolute; left: calc(20 / 210 * 100%); top: calc(45 / 50 * 100%); right: 50%; bottom: 0; border-top: 1px dashed #dc2626; font-size: 10px; color: #dc2626; padding: 1px 4px; }
.bk-fussbild-vorschau { display: block; max-width: 100%; max-height: 60px; border: 1px solid var(--line); background: #fff; }

/* ===== Übersicht kompakt und Handy-Bedienung (Timo, 22.11.2026) ===== */
/* Übersicht: Begrüßung in einer Zeile, Schnellerfassung in derselben Karte */
.card.start-kopf { padding: 16px 20px; }
.start-gruss { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.start-gruss h1 { margin: 2px 0 0; font-size: 1.45rem; }
.start-kopf .quick-add { margin: 14px 0 0; padding: 0; border: 0; box-shadow: none; background: none; }
/* „Steht an“: alle Hinweise in einer Karte */
.steht-an ul { list-style: none; margin: 0; padding: 0; }
.steht-an li + li { border-top: 1px solid #eef0f4; }
.steht-an li a { display: flex; align-items: center; gap: 12px; padding: 10px 2px; color: var(--text); text-decoration: none; }
.steht-an li a:hover { background: var(--brand-bg); border-radius: 8px; }
.steht-an .sa-sym { flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--brand-bg); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; }
.steht-an li.wichtig .sa-sym { background: #fff4e0; color: #b26a00; }
.steht-an .sa-text { flex: 1; min-width: 0; }
.steht-an .sa-link { flex: none; font-size: .85rem; color: var(--brand); white-space: nowrap; }
.ov-stat { transition: border-color .12s, box-shadow .12s; }
.ov-stat:hover { border-color: var(--brand); text-decoration: none; }
.ov-stat .late { color: var(--red); font-weight: 600; }
.ov-stat:has(.late) { border-color: #f0c9c9; background: #fffafa; }

/* Leiste unten und schwebender Knopf: nur am Handy */
.unten-leiste, .fab { display: none; }
.mobil-mehr { display: none; }
@media (max-width: 700px) {
  body.mit-leiste { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .unten-leiste { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 7; background: #fff; border-top: 1px solid var(--line);
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 16px rgba(0,0,0,.06); }
  .unten-leiste a, .unten-leiste button { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border: 0; background: none;
    color: var(--muted); font-family: inherit; font-size: .7rem; font-weight: 500; line-height: 1.15; text-decoration: none; border-radius: 10px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .unten-leiste span { font-size: 1.25rem; line-height: 1; }
  .unten-leiste a.on { color: var(--brand); font-weight: 700; }
  .unten-leiste a.on span { background: var(--brand-bg); border-radius: 99px; padding: 2px 14px; }
  body.nav-open .unten-leiste button { color: var(--brand); }
  .fab { display: flex; position: fixed; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 7; width: 56px; height: 56px; border-radius: 18px;
    background: var(--brand); color: #fff; align-items: center; justify-content: center; font-size: 1.9rem; font-weight: 300; text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,.22); }
  .fab:hover { text-decoration: none; background: var(--brand-dark); color: #fff; }
  .fab-quelle { display: none !important; }
  .site-foot { margin-top: 0; padding-bottom: 20px; }
  /* Kopfzeile: Name darf zweizeilig werden statt „OrgaPort …“ */
  .brand-name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: .95rem; line-height: 1.15; }
  /* Seitenkopf: Titel und Knöpfe in einer Zeile, weitere Knöpfe im „⋯“-Menü */
  main > .head { flex-wrap: nowrap; margin-bottom: 10px; }
  main > .head h1 { font-size: 1.35rem; margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  main > .head .actions { flex-wrap: nowrap; gap: 6px; }
  .nur-gross { display: none !important; }
  .mobil-mehr { display: block; }
  .mobil-mehr > summary { padding: 6px 12px; font-size: 1.2rem; line-height: 1; }
  .mobil-mehr .menue { right: 0 !important; left: auto !important; min-width: 220px; }
  /* Reiter, Status und Filter-Schildchen: eine Zeile zum Wischen statt Umbruch */
  nav.tabs { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  nav.tabs::-webkit-scrollbar, .stats::-webkit-scrollbar { display: none; }
  nav.tabs a { white-space: nowrap; flex: none; }
  .stats { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin-right: -16px; padding-right: 16px; }
  .stats > * { flex: none; white-space: nowrap; }
  /* Suche: Lupe im Feld, Enter sucht; den Knopf „Suchen“ braucht es dann nicht */
  form.autofilter .filters > button.btn:not([type=button]) { display: none; }
  .filters input[type=search] { padding-left: 34px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 11px center; }
  .filters.mg-filter-zeile { flex-wrap: nowrap; }
  .filters.mg-filter-zeile input[type=search] { flex: 1 1 auto; min-width: 0; }
  /* Übersicht am Handy */
  .card.start-kopf { padding: 14px 16px; }
  .start-gruss h1 { font-size: 1.25rem; }
  .start-gruss .btn.primary { display: none; }
  .start-kopf .quick-add input[name=title] { flex: 1 1 100%; }
  .start-kopf .quick-add select { flex: 1 1 0; }
  .start-kopf .quick-add .btn { flex: none; }
  .steht-an .sa-link { display: none; }
}
.steht-an h3 .count { background: #eef0f3; color: var(--muted); border-radius: 99px; padding: 0 8px; font-size: .8rem; font-weight: 600; }

/* ===== Feinschliff Teil 3 (Timo, 22.11.2026) ===== */
/* Freundliche leere Zustände: leer_hinweis() und leere Tabellenzeilen */
div.leer { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 26px 16px; color: var(--muted); }   /* nur leer_hinweis(); <span class="leer">–</span> bleibt ein schlichter Strich */
.leer .leer-sym { width: 48px; height: 48px; border-radius: 16px; background: var(--brand-bg); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 6px; }
.leer b { color: var(--text); font-size: 1rem; }
div.leer span:not(.leer-sym) { font-size: .9rem; max-width: 46ch; }
.leer .leer-knopf { margin-top: 10px; }
table tbody tr:only-child > td[colspan].muted.center, .leer-hinweis { padding: 34px 16px !important; color: var(--muted); }
table tbody tr:only-child > td[colspan].muted.center::before, .leer-hinweis::before { content: ''; display: block; width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 14px;
  background: var(--brand-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%239aa3b2' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 13h5l1.5 3h5L16 13h5'/%3E%3Cpath d='M5 13l2-7h10l2 7v6H5z'/%3E%3C/svg%3E") no-repeat center; }
/* Tabellen: Zeile beim Überfahren leicht hervorheben */
table.list tbody tr:hover > td { background: #f7f9fc; }
table.list tbody tr:only-child:hover > td[colspan] { background: none; }
/* Listen als Karten am Handy (table.karten-mobil; app.js setzt je Zelle .karten-label + .karten-wert) */
.karten-label { display: none; }
@media (max-width: 700px) {
  table.karten-mobil, table.karten-mobil tbody { display: block; }
  table.karten-mobil thead { display: none; }
  .table-wrap:has(> table.karten-mobil) { border: 0; background: none; overflow: visible; }
  table.karten-mobil tr { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px;
    box-shadow: var(--schatten); padding: 12px 14px; margin-bottom: 10px; }
  table.karten-mobil td { display: contents; border: 0; padding: 0; }
  table.karten-mobil td:first-child { display: block; grid-column: 1 / -1; padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid #eef0f4; }
  table.karten-mobil .karten-label { display: block; grid-column: 1; text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); padding-top: 3px; white-space: nowrap; }
  table.karten-mobil .karten-wert { grid-column: 2; min-width: 0; font-size: .9rem; padding: 1px 0; overflow-wrap: anywhere; }
  table.karten-mobil td.karten-leer { display: none; }
  table.karten-mobil td.karten-aktion { display: block; grid-column: 1 / -1; padding-top: 6px; }
  table.karten-mobil td[colspan] { grid-column: 1 / -1; display: block; }
  table.karten-mobil tr:only-child { display: block; }
  table.karten-mobil tbody tr:hover > td { background: none; }
}
/* ---------- Unterweisungen ---------- */
.uw-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.uw-karte { display: flex; flex-direction: column; gap: 6px; margin: 0; border-left: 4px solid var(--line); }
.uw-karte.uw-ueberfaellig { border-left-color: var(--red); }
.uw-karte.uw-bald { border-left-color: var(--warn); }
.uw-karte.uw-erledigt { border-left-color: var(--ok); }
.uw-karte .row { margin-top: auto; }
.uw-karte-kopf { display: flex; gap: 10px; align-items: center; }
.uw-summen { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin-top: 12px; }
.uw-summen .card { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.uw-matrix th:not(:first-child), .uw-matrix td:not(:first-child) { text-align: center; white-space: nowrap; }
.uw-gremien { margin: 6px 0 0 26px; }
.uw-gremien[hidden] { display: none; }
.uw-folien { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin-bottom: 10px; }
.uw-folien a { position: relative; display: block; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; }
.uw-folien img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: contain; }
.uw-folien span { position: absolute; left: 4px; bottom: 4px; background: rgba(0,0,0,.6); color: #fff; font-size: .75rem; padding: 0 6px; border-radius: 4px; }
.uw-hochladen { align-items: center; flex-wrap: wrap; gap: 10px; }
.uw-frage { border-top: 1px solid var(--line); padding: 8px 0; }
.uw-frage summary { cursor: pointer; }
.uw-frage-form { margin: 10px 0; }
.uw-antworten { display: flex; flex-direction: column; gap: 6px; margin: 6px 0; }
.uw-antwort { display: flex; gap: 8px; align-items: center; }
.uw-antwort input[type=checkbox] { width: 20px; height: 20px; flex: none; }
.uw-antwort input:not([type]) { flex: 1; }
.uw-praesenz { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.uw-praesenz summary { cursor: pointer; }
.uw-lauf { max-width: 1000px; }
.uw-fortschritt { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.uw-balken { flex: 1; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.uw-balken span { display: block; height: 100%; width: 0; background: var(--brand, var(--blue)); transition: width .3s; }
.uw-folie { position: relative; background: #f4f5f7; border-radius: 8px; overflow: hidden; }
.uw-folie img { display: block; width: 100%; max-height: 70vh; object-fit: contain; }
.uw-folie:fullscreen { background: #000; display: flex; align-items: center; justify-content: center; }
.uw-folie:fullscreen img { max-height: 100vh; height: 100%; }
.uw-voll { position: absolute; right: 8px; top: 8px; opacity: .8; }
.uw-fragen, .uw-abschluss { display: flex; flex-direction: column; gap: 12px; }
.uw-fragen[hidden], .uw-abschluss[hidden], .uw-folie[hidden] { display: none; }
.uw-frage-box { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; display: flex; flex-direction: column; gap: 6px; }
.uw-frage-box legend { font-weight: 600; padding: 0 4px; }
.uw-frage-box label.check { padding: 6px 4px; border-radius: 6px; }
.uw-frage-box label.check:hover { background: var(--bg); }
.uw-frage-box.falsch { border-color: var(--red); background: rgba(196, 21, 28, .05); }
.uw-verstanden { font-weight: 600; }
.uw-unterschrift { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.uw-unterschrift canvas { width: 100%; max-width: 600px; aspect-ratio: 10/3; border: 1px dashed var(--muted); border-radius: 8px; background: #fff; touch-action: none; }
.uw-ergebnis { padding: 14px; border-radius: 8px; margin: 10px 0; }
.uw-ergebnis.gut { text-align: center; background: rgba(30, 140, 60, .08); }
.uw-ergebnis.schlecht { background: rgba(196, 21, 28, .07); }
.uw-ergebnis-symbol { width: 56px; height: 56px; margin: 0 auto 6px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 2rem; line-height: 56px; }
.uw-nav { justify-content: space-between; margin-top: 12px; }
#uw-meldung.err { color: var(--red); }
#uw-meldung.ok { color: var(--ok); font-weight: 600; }
@media (max-width: 700px) { .uw-nav .btn { flex: 1; } .uw-folie img { max-height: 55vh; } }
.uw-standorte { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 4px; }
/* Startseite für Einsatzkräfte (pages/einsatzkraft.php) */
.ek-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 14px; }
.ek-kachel { display: flex; flex-direction: column; gap: 6px; margin: 0; color: inherit; text-decoration: none; }
.ek-kachel:hover { text-decoration: none; box-shadow: 0 2px 10px rgba(16,24,40,.1); }
.ek-kachel b { font-size: 1.1rem; }
.ek-symbol { font-size: 1.6rem; }
/* Import der Unterweisungen */
.uw-import-hinweis { color: #8a5a00; margin-top: 2px; }
.uw-import .imp-folien.ok { color: var(--ok); font-weight: 600; }
.uw-import .imp-folien.ok::before { content: '✓ '; }
.uw-import select.fehlt { border-color: var(--red); }
.uw-import .imp-stand.fehler { color: var(--red); }
.uw-import select { min-width: 200px; max-width: 280px; margin: 0; padding: 7px 28px 7px 10px; font-size: .88rem; }
.uw-import td { vertical-align: top; }
.uw-import-kopf .grid-form label { display: block; }
.uw-import-kopf input[type=file] { padding: 6px; }
.uw-import select.imp-ziel:invalid { border-color: #e0a100; background-color: #fff8e6; }
/* Funktionen und Durchführung vor Ort (Unterweisungen) */
.uw-funktionen { display: grid; grid-template-columns: minmax(240px, 320px) 1fr; gap: 14px; align-items: start; }
.uw-funktionen .card { margin: 0; }
.uw-funktionen-liste { list-style: none; padding: 0; margin: 6px 0 12px; }
.uw-funktionen-liste li { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px; border-radius: 6px; }
.uw-funktionen-liste li.an { background: var(--bg); font-weight: 600; }
.uw-funktionen-wahl { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); }
.uw-vortrag { display: grid; grid-template-columns: 1fr 280px; gap: 14px; align-items: start; background: var(--bg); }
.uw-vortrag:fullscreen { background: #111; padding: 14px; grid-template-columns: 1fr 300px; }
.uw-vortrag-folie img { display: block; width: 100%; max-height: 78vh; object-fit: contain; background: #fff; border-radius: 8px; cursor: pointer; }
.uw-vortrag:fullscreen .uw-vortrag-folie img { max-height: calc(100vh - 80px); }
.uw-vortrag-nav { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 8px; }
.uw-vortrag:fullscreen .uw-vortrag-nav { color: #ddd; }
.uw-vortrag-titel { background: #fff; border-radius: 8px; padding: 60px 30px; text-align: center; }
.uw-vortrag-qr { display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; margin: 0; position: sticky; top: 70px; }
.uw-qr svg { width: 100%; max-width: 240px; height: auto; }
.uw-vortrag-zahl { font-size: 1.1rem; } .uw-vortrag-zahl span { font-size: 2rem; font-weight: 700; }
@media (max-width: 800px) { .uw-funktionen, .uw-vortrag { grid-template-columns: 1fr; } }
.uw-inline { display: flex; gap: 8px; align-items: center; margin: 6px 0 12px; }
.uw-inline input:not([type=hidden]) { margin: 0 !important; flex: 1; min-width: 0; }
.uw-inline .btn { flex: none; }

/* Gefährdungsbeurteilung (Modul gbu) */
.gbu-vorlagen { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin: 6px 0 12px; }
.gbu-vorlage { display: flex; flex-direction: row; gap: 8px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; cursor: pointer; }
.gbu-vorlage:has(input:checked) { border-color: var(--brand, var(--blue)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand, var(--blue)) 25%, transparent); }
.gbu-vorlage input { width: auto; flex: none; margin-top: 3px; }
.gbu-vorlage span { display: flex; flex-direction: column; gap: 2px; }
.gbu-vorlage small { color: var(--muted, #667); }
.gbu-matrix { border-collapse: separate; border-spacing: 3px; width: 100%; }
.gbu-matrix th { text-align: left; font-weight: 500; white-space: nowrap; }
.gbu-matrix { table-layout: fixed; }
.gbu-matrix th:first-child { width: 42%; }
.gbu-matrix td { text-align: center; height: 32px; border-radius: 6px; }
.gbu-r-gering { background: rgba(31, 138, 76, .18); }
.gbu-r-mittel { background: rgba(214, 150, 0, .25); }
.gbu-r-hoch { background: rgba(200, 30, 30, .22); }
.gbu-faktor { margin: 18px 0 6px; font-size: 1rem; color: var(--brand, var(--blue)); }
.gbu-gef .karte-kopf .row { gap: 6px; align-items: center; flex-wrap: wrap; }
.gbu-mn { align-items: flex-start; }
.gbu-mn-aktionen { gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.gbu-pruef ul { margin: 0; padding-left: 18px; }
@media (max-width: 700px) { .gbu-gef .karte-kopf { flex-direction: column; align-items: flex-start; } .gbu-mn { flex-direction: column; } .gbu-mn-aktionen { justify-content: flex-start; } .gbu-matrix th:first-child { white-space: normal; } }
.uw-gueltig input[type=date] { padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: .85rem; }
.uw-ampel-zahl { font-size: 1.4rem; margin-right: 6px; }
.uw-ampel { font-weight: 600; }
/* Gefährdungsbeurteilung: Begehung am Handy */
.gbu-fortschritt { height: 6px; background: var(--line); border-radius: 3px; margin: 4px 0 12px; overflow: hidden; }
.gbu-fortschritt span { display: block; height: 100%; background: var(--ok); }
.gbu-bg-karte { border-left: 4px solid var(--line); }
.gbu-bg-ok { border-left-color: var(--ok); }
.gbu-bg-mangel { border-left-color: #c0392b; }
.gbu-bg-entfaellt { border-left-color: #999; }
.gbu-bg-karte > summary { cursor: pointer; }
.gbu-wahl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gbu-wahl label { display: flex; margin: 0; }
.gbu-wahl input { position: absolute; opacity: 0; pointer-events: none; }
.gbu-wahl span { flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 12px 4px; line-height: 1.2; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; cursor: pointer; }
.gbu-wahl-ok input:checked + span { background: rgba(31, 138, 76, .15); border-color: var(--ok); color: var(--ok); }
.gbu-wahl-mangel input:checked + span { background: rgba(192, 57, 43, .12); border-color: #c0392b; color: #c0392b; }
.gbu-wahl-entfaellt input:checked + span { background: rgba(120, 120, 120, .15); border-color: #888; }
.gbu-wahl input:focus-visible + span { outline: 2px solid var(--brand, var(--blue)); outline-offset: 2px; }
.gbu-mangel { display: none; }
.gbu-bg-form:has(.gbu-wahl-mangel input:checked) .gbu-mangel { display: block; }
.gbu-foto-knopf { display: inline-flex; align-items: center; gap: 6px; border: 1px dashed var(--line); border-radius: var(--radius); padding: 10px 14px; cursor: pointer; width: fit-content; }
.gbu-foto-knopf { position: relative; font-weight: 600; }
.gbu-foto-knopf input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.gbu-foto-knopf small { font-weight: 400; color: var(--muted, #667); }
.gbu-fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; margin: 6px 0; }
.gbu-fotos figure { margin: 0; position: relative; }
.gbu-fotos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; display: block; }
.gbu-fotos form { position: absolute; top: 3px; right: 3px; }
.gbu-fotos form .btn { padding: 2px 6px; }
.gbu-bg-karte .karte-kopf .badge { white-space: nowrap; }
.gbu-anlass-offen { border-left: 4px solid #c0392b; }
/* Meine Unterweisungen: kompakte Karten, Gruppen, aufklappbarer Text */
h2.uw-gruppe { font-size: 1.05rem; margin: 18px 0 8px; display: flex; align-items: center; gap: 8px; }
.uw-karte { overflow-wrap: anywhere; }
.uw-karte-symbol { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-bg, #f2f6fc); color: var(--brand, #1e5aa8); font-size: 1.1rem; }
.uw-karte.uw-ueberfaellig .uw-karte-symbol { background: rgba(196, 21, 28, .1); color: var(--red); }
.uw-karte.uw-erledigt .uw-karte-symbol { background: rgba(30, 140, 60, .1); color: var(--ok); }
.uw-kurz { margin: 2px 0 0; }
.uw-meta { margin: 0; font-size: .82rem; color: var(--muted); }
.uw-mehr summary { cursor: pointer; font-size: .85rem; color: var(--brand, #1e5aa8); }
.uw-text { font-size: .88rem; margin-top: 6px; }
.uw-text h4 { margin: 10px 0 4px; font-size: .88rem; }
.uw-text ul { margin: 0 0 6px; padding-left: 18px; }
.uw-text p { margin: 6px 0; }
.uw-karte-fuss { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.uw-karte-fuss p { margin: 0; }
.uw-karte .row { margin-top: 0; }
/* Übersicht der Unterweisungen: Fortschritt je Unterweisung, Liste je Person */
.uw-fortschritt-balken { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--line); min-width: 140px; margin: 4px 0; }
.uw-fortschritt-balken span { display: block; height: 100%; }
.uw-fb-gruen { background: #2e9b55; } .uw-fb-warn { background: #e0a100; } .uw-fb-blau { background: #5b8bd6; } .uw-fb-rot { background: #c4151c; }
.uw-fortschritt-zelle { min-width: 180px; }
.uw-zaehler .badge { margin: 1px 0; }
.uw-ansicht { margin-bottom: 10px; }
.uw-detail-kopf { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.uw-detail-kopf > div { flex: 1; min-width: 240px; }
.uw-detail-kopf h3 { margin: 4px 0; }
.uw-offen summary { cursor: pointer; font-size: .88rem; }
.uw-offen ul { margin: 6px 0 0; padding-left: 16px; font-size: .88rem; }
.uw-offen li { margin: 3px 0; }
.uw-datei { font-size: .82rem; white-space: nowrap; margin-right: 6px; }
.uw-datei-hoch { display: inline; }
.uw-dateien-zelle { min-width: 120px; }
.uw-datei-zeile { display: inline-flex; align-items: center; gap: 2px; margin-right: 6px; }
.uw-datei-x { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: .8rem; padding: 0 2px; }
.uw-datei-x:hover { color: var(--red); }
/* Rechteprofile: Bereiche nur mit Zugang */
.profil-matrix .profil-zugang { justify-content: center; margin: 0; }

/* Übersicht anpassen (Timo, 25.11.2026) */
.start-gruss > div:first-child { flex: 1 1 auto; }
.start-wahl { display: grid; gap: 8px; margin: 6px 0 14px; }
.start-wahl label.check { padding: 8px 10px; border: 1px solid var(--line, #e2e6eb); border-radius: 8px; margin: 0; }
.ov-reihe { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.ov-spalte { display: grid; gap: 14px; min-width: 0; }
.ov-platz { width: 100%; min-width: 0; } .ov-platz > .card { margin: 0; }
@media (max-width: 800px) { .ov-reihe { display: flex; flex-direction: column; } .ov-spalte { display: contents; } }
.start-reihe { display: grid; gap: 6px; margin: 4px 0 14px; }
.start-reihe .spalten-punkt { border: 1px solid var(--line, #e2e6eb); border-radius: 8px; padding: 6px 8px 6px 4px; background: var(--card, #fff); }
.start-reihe .spalten-pfeile .btn { font-size: 13px; padding: 2px 6px; }

/* Passkeys (Anmeldung, Mein Profil) */
.pk-oder{display:flex;align-items:center;gap:10px;margin:14px 0 10px;color:var(--muted,#6b7280);font-size:.85rem}
.pk-oder::before,.pk-oder::after{content:"";flex:1;border-top:1px solid var(--line,#e5e7eb)}
.pk-login .login-knopf{width:100%}
.pk-login .flash{margin-top:10px}
.pk-liste{list-style:none;margin:0 0 12px;padding:0}
.pk-liste li{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;padding:8px 0;border-bottom:1px solid var(--line,#e5e7eb)}
.pk-liste li:last-child{border-bottom:0}
.pk-name-form{flex:0 1 240px;margin:0}
.pk-name-form input{width:100%;border-color:transparent;background:transparent;font-weight:600;padding:4px 6px}
.pk-name-form input:hover,.pk-name-form input:focus{border-color:var(--line,#e5e7eb);background:var(--card)}
.pk-liste li > span.muted{flex:1 1 200px}
/* Unterweisungen: Auswertung der Fragen, Termine */
.uw-frage-stat { margin: 8px 0 12px; padding: 10px 12px; background: var(--bg-soft, #f6f7f9); border-radius: 8px; }
.uw-stat-zeile { display: grid; grid-template-columns: minmax(0, 1fr) 120px 44px; gap: 8px; align-items: center; font-size: .86rem; margin-top: 4px; }
.uw-stat-zeile.richtig > span:first-child { color: var(--ok, #1e8c3c); }
.uw-stat-balken { height: 8px; background: var(--line, #e3e6ea); border-radius: 4px; overflow: hidden; }
.uw-stat-balken i { display: block; height: 100%; background: var(--brand, #1e5aa8); }
.uw-stat-zeile.richtig .uw-stat-balken i { background: var(--ok, #1e8c3c); }
.uw-termin-wahl summary { cursor: pointer; }
.uw-termin-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 2px 12px; max-height: 260px; overflow: auto; }
.uw-naechster { margin: 0; color: var(--brand, #1e5aa8); }

/* Felder zum Kopieren (kopier_feld) und Wege-Liste (z. B. Mitglieder → Änderungen) */
.kopier-feld { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; }
.kopier-feld .kopier-wert, .form .kopier-feld input.kopier-wert, .form .kopier-feld textarea.kopier-wert { flex: 1; min-width: 0; width: auto; margin: 0; background: #f6f7f9; border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; font-size: .85rem; color: var(--text); }
.kopier-feld .kopier-code, .form .kopier-feld textarea.kopier-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; line-height: 1.45; resize: vertical; min-height: 4.4em; }
.kopier-feld .btn { flex: none; }
.wege { margin: 0; }
.weg { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.weg:first-child { border-top: 0; padding-top: 2px; }
.weg-symbol { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-bg); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.weg-titel { font-weight: 600; }
.weg-text { color: var(--muted); font-size: .88rem; margin-top: 2px; }
.weg-unter { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; margin-top: 12px; }
.seiten-trenner { display: flex; align-items: center; gap: 12px; margin: 36px 0 14px; }
.seiten-trenner h2 { margin: 0; font-size: 1.15rem; white-space: nowrap; }
.seiten-trenner::after { content: ""; flex: 1; height: 2px; background: var(--line); }
.abschnitt-kopf { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.abschnitt-kopf h2 { margin: 0; font-size: 1.15rem; }
@media (max-width: 700px) { .kopier-feld { flex-direction: column; align-items: stretch; } .kopier-feld .btn { align-self: flex-end; } }

/* TOP-Gruppen (Sitzung): Überschrift in der laufenden Sitzung, Leiste „TOPs zusammenfassen“, Vorbereitung */
.top-gruppe-kopf { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-left: 4px solid var(--brand); background: var(--brand-bg); margin-bottom: 8px; }
.top-gruppe-kopf h2 { margin: 0; font-size: 1.15rem; }

.top-gruppen-wahl { display: grid; gap: 4px; max-height: 45vh; overflow: auto; padding: 4px 0; }
.top-gruppe-pflege { margin-top: 18px; display: grid; gap: 6px; }
.sa-agenda li.sa-gruppe { counter-reset: untertop; }
.sa-agenda li.sa-unterpunkt { counter-increment: untertop; padding-left: 1.6em; }
.sa-agenda li.sa-unterpunkt::before { content: counter(top) '.' counter(untertop); width: 3em; }
.sa-agenda li.sa-unterpunkt .muted { margin-left: 3em; }
/* Sortierbare Tagesordnung: Gruppen-TOP als Kopfzeile über seinem ersten Vorgang, Unterpunkte eingerückt */
.sortlist li.in-gruppe { margin-left: 22px; border-left: 3px solid var(--brand); }
ol.sortlist li.sort-gruppe-kopf .stitle { flex: 1; }
ol.sortlist li.sort-gruppe-kopf .gruppe-titel-feld { font: inherit; font-weight: 700; width: min(100%, 420px); padding: 3px 8px; margin-left: 4px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: inherit; cursor: text; }
ol.sortlist li.sort-gruppe-kopf .gruppe-titel-feld:hover { border-color: var(--line); background: #fff; }
ol.sortlist li.sort-gruppe-kopf .gruppe-titel-feld:focus { border-color: var(--brand); background: #fff; outline: none; }
ol.sortlist li.sort-gruppe-kopf { cursor: grab; margin: 10px 0 4px; padding: 6px 10px; background: var(--brand-bg); border: 0; border-radius: 6px; font-weight: 700; color: var(--text); }
.sortlist li .topno-gruppe { color: var(--brand); margin-right: 6px; }

/* TOP-Gruppen in der Sitzung: Unterpunkte eingerückt, in der Sprungleiste zusammengefasst */
section.mitem.in-gruppe { margin-left: 28px; }
nav.agenda .agenda-gruppe { display: inline-flex; gap: 4px; padding: 2px 4px 2px 2px; border-radius: 8px; background: var(--brand-bg); border: 1px solid var(--brand); }
nav.agenda .agenda-gruppe-kopf { background: var(--brand); border-color: var(--brand); color: #fff; }
nav.agenda .agenda-gruppe-kopf:hover { color: #fff; }
@media (max-width: 700px) { section.mitem.in-gruppe { margin-left: 12px; } }

/* Anhänge am Vorgang: Kopie / Verknüpfung, Auswahl aus Dateien und Archiv */
.anhang-art { display: inline-block; padding: 0 6px; border-radius: 4px; background: #eef1f4; color: var(--text); font-size: .78rem; font-weight: 600; }
.anhang-art.verkn { background: var(--brand-bg); color: var(--brand-dark, var(--brand)); }
.ablage-liste { max-height: 46vh; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 4px; margin-bottom: 10px; }
.ablage-liste .ablage-pick { display: flex; gap: 8px; align-items: flex-start; padding: 6px 8px; border-radius: 6px; cursor: pointer; }
.ablage-liste .ablage-pick:hover { background: var(--brand-bg); }
.ablage-liste .ablage-pick[hidden] { display: none; }
.ablage-weise { border: 0; padding: 0; margin: 0 0 10px; }
.ablage-weise legend { font-weight: 600; margin-bottom: 4px; }
.ablage-weise .check { display: block; margin: 4px 0; }

/* Wartungsmodus und Wer ist online */
.wartung-hinweis { display: flex; flex-direction: column; gap: 4px; margin: 0 0 14px; padding: 12px 14px; border-radius: 10px; background: #fff6e0; border: 1px solid #f0cf7a; color: #5c4300; }
.wartung-hinweis small { color: #7a5b0f; }
.online-punkt { display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; background: #2f9e5b; box-shadow: 0 0 0 3px #d8f1e2; vertical-align: 1px; }

/* ===== Optische Aufwertung, Schritt 1 (Timo, 01.12.2026) =====
   Schrift Inter (selbst abgelegt, SIL OFL, assets/fonts/LICENSE-Inter.txt), helle Kopfzeile, Vereinsfarbe nur als Akzent,
   einheitliche Knöpfe, Felder, Abzeichen und Tabellen. Nur Aussehen, keine Logik. Entwurf: Design-Fläche „OrgaPort – optische Aufwertung“. */
@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
:root {
  --bg: #f6f7f9; --card: #fff; --text: #14181f; --muted: #5b6472; --line: #e6e9ee; --line-stark: #d9dee5; --flaeche: #f3f5f8;
  --ok: #1f7a47; --warn: #9a5b00; --fehler: #b42318; --zaehler: #f2a33a; --radius: 12px;
  --schatten: 0 1px 2px rgba(16,24,40,.04), 0 2px 8px rgba(16,24,40,.04);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
body { line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1 { font-size: 1.75rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
h2 { letter-spacing: -.01em; }
.kpi-wert, .ov-stat, table.list td.zahl, .betrag, .tabnum { font-variant-numeric: tabular-nums; }

/* Kopfzeile hell, Farbe nur als Akzent */
.top { background: #fff; color: var(--text); border-bottom: 1px solid var(--line); box-shadow: none; }
.top .brand, .brand { color: var(--text); }
.logo-standard { background: none; color: var(--brand); }
.logo-bild { background: none; padding: 0; }
.burger { color: var(--text); }
nav.main a { color: #2b323c; opacity: 1; border-radius: 8px; }
nav.main a:hover { background: var(--flaeche); }
nav.main a.on { color: var(--brand-dark); border-bottom-color: transparent; background: var(--brand-bg); }
nav.main a .count, .seitenleiste .count { background: var(--zaehler); color: #14181f; }
form.navsearch input { border: 1px solid var(--line); background: var(--flaeche); color: var(--text); border-radius: 10px; padding: 7px 12px; }
form.navsearch input::placeholder { color: var(--muted); }
form.navsearch input:focus { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

/* Seitenleiste: aktiver Punkt als ruhige Fläche, Gruppen in normaler Schreibweise */
.seitenleiste a { color: #2b323c; border-radius: 10px; }
.seitenleiste a:hover { background: var(--flaeche); color: var(--text); }
.seitenleiste a.on { background: var(--brand-bg); color: var(--brand-dark); box-shadow: none; }
.leiste-gruppe { text-transform: none; letter-spacing: 0; font-size: .8rem; color: var(--muted); padding: 18px 11px 6px; }

/* Karten */
.card { border-radius: 14px; }

/* Knöpfe: eine Höhe, eine Form; Hauptknopf in der Vereinsfarbe */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 16px; border: 1px solid var(--line-stark); border-radius: 10px; font-weight: 600; font-size: .9rem; line-height: 1.2; vertical-align: middle; }
.btn:hover { background: var(--flaeche); }
.btn.primary { border-color: var(--brand); }
.btn.primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn.danger { color: var(--fehler); border-color: #f1b9b4; }
.btn.danger:hover { background: #fdf1f0; }
.btn.link { border-color: transparent; background: none; color: var(--brand-dark); }
.btn.link:hover { background: var(--brand-bg); }
.btn.small { min-height: 32px; padding: 0 11px; font-size: .82rem; border-radius: 8px; }
@media (max-width: 700px) { .btn { min-height: 44px; } .btn.small { min-height: 36px; } }

/* Felder */
.form label { color: #3d4552; }
.form input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]), .form select, .form textarea, .filters input, .filters select, .quick select, input.copy,
.quick-add input[name=title], .quick-add select { border: 1px solid var(--line-stark); border-radius: 10px; padding: 9px 12px; min-height: 42px; }
.form input:focus, .form select:focus, .form textarea:focus, .filters input:focus, .filters select:focus, .quick-add input:focus, .quick-add select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

/* Abzeichen: Pille ohne Rahmen, gleiche Größe überall */
.badge { border: 0; border-radius: 99px; font-weight: 600; font-size: .78rem; padding: 3px 10px; }
.badge-grau { background: #eef0f3; color: #3d4552; }
.badge-gruen { background: #e7f5ec; color: #17663a; }
.badge-blau { background: #e8f0fb; color: #1d4f91; }
.badge-warn { background: #fdf2dd; color: #8a5300; }
.badge-rot { background: #fdecea; color: #a3161b; }
.badge-klein { padding: 0 7px; font-size: .7rem; }
.status { font-weight: 600; padding: 3px 10px; }
.prio { border-radius: 99px; padding: 2px 9px; font-size: .78rem; }
.prio-a1 { background: #fdecea; color: #a3161b; }
.prio-a2 { background: #fdf2dd; color: #8a5300; }
.prio-b1 { background: #e8f0fb; color: #1d4f91; }
.prio-b2 { background: #eef0f3; color: #3d4552; }
.tag { border-radius: 99px; padding: 1px 8px; color: #3d4552; }

/* Tabellen: ruhige Köpfe ohne Großbuchstaben */
table.list th { text-transform: none; letter-spacing: 0; font-size: .8rem; font-weight: 600; color: var(--muted); background: #fafbfc; }

/* Meldungen */
.flash { border-radius: 12px; }
.bereich-nav .bn-gruppe { font-size: .78rem; font-weight: 600; letter-spacing: 0; text-transform: none; }

/* ===== Optische Aufwertung, Schritt 2 (Timo, 01.12.2026): am PC keine Kopfzeile mehr – Name, Suche, Hilfe, Profil und Abmelden
   stehen in der Seitenleiste (seitenleiste() in inc/layout.php); „Steht an“ mit Knopf je Zeile. Am Handy bleibt die Kopfzeile. ===== */
.seitenleiste .leiste-kopf, .seitenleiste .leiste-fuss { display: none; }
@media (min-width: 901px) {
  body.mit-leiste:not(.vw) .top { display: none; }
  body.mit-leiste:not(.vw) .seitenleiste { top: 0; display: flex; flex-direction: column; padding: 16px 10px 0; }
  .seitenleiste a.leiste-kopf { display: flex; align-items: center; gap: 10px; padding: 2px 8px 14px; color: var(--text); font-weight: 700; font-size: 1rem; line-height: 1.25; }
  .seitenleiste a.leiste-kopf:hover { background: none; color: var(--text); }
  .leiste-kopf .brand-name { white-space: normal; overflow: visible; }
  .leiste-kopf .logo-bild { height: 34px; max-width: 110px; flex: none; }
  .leiste-kopf .logo-standard { flex: none; }
  .seitenleiste .leiste-suche { display: block; margin: 0 2px 12px; }
  .seitenleiste .leiste-suche input { width: 100%; box-sizing: border-box; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--flaeche); font: inherit; font-size: .9rem; color: var(--text); }
  .seitenleiste .leiste-suche input:focus { outline: none; background: #fff; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
  .seitenleiste .leiste-fuss { display: block; position: sticky; bottom: 0; margin-top: auto; background: #fff; border-top: 1px solid var(--line); padding: 8px 0 12px; }
  .leiste-person { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
  .seitenleiste a.leiste-profil { flex: 1; min-width: 0; padding: 6px 8px; gap: 10px; }
  .leiste-profil .avatar { width: 34px; height: 34px; font-size: .76rem; background: var(--brand-bg); color: var(--brand-dark); }
  .leiste-person-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
  .leiste-person-text b { font-weight: 600; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .leiste-person-text small { color: var(--muted); font-size: .76rem; }
  .seitenleiste a.leiste-abmelden { flex: none; width: 40px; height: 40px; padding: 0; justify-content: center; border: 1px solid var(--line); color: var(--muted); }
  /* ohne Kopfzeile rücken klebende Teile nach oben */
  body.mit-leiste:not(.vw) nav.agenda { top: 0; }
  body.mit-leiste:not(.vw) .einr-unterwegs { top: 8px; }
  body.mit-leiste:not(.vw) .help-toc, body.mit-leiste:not(.vw) .einst-nav, body.mit-leiste:not(.vw) .uw-vortrag-qr, body.mit-leiste:not(.vw) main:has(> nav.bereich-nav) > nav.bereich-nav { top: 16px; }
  body.mit-leiste:not(.vw) .help-body section, body.mit-leiste:not(.vw) .einst-abschnitt { scroll-margin-top: 16px; }
  body.mit-leiste:not(.vw) .sa-tipps { top: 24px; }
  body.mit-leiste:not(.vw) main { padding-top: 28px; }
}

/* Übersicht: „Steht an“ mit Knopf je Zeile, Zähler orange */
.steht-an h3 .count { background: var(--zaehler); color: #14181f; font-weight: 700; }
.steht-an li a { padding: 10px 6px; border-radius: 10px; }
.steht-an li a:hover { background: var(--flaeche); }
.steht-an .sa-sym { width: 38px; height: 38px; border-radius: 12px; }
.steht-an li.wichtig .sa-sym { background: #fdf2dd; color: #9a5b00; }
@media (min-width: 701px) {
  .steht-an .sa-link { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--line-stark); border-radius: 10px; background: #fff; color: var(--text); font-weight: 600; font-size: .85rem; }
  .steht-an li a:hover .sa-link { border-color: var(--brand); color: var(--brand-dark); }
}
.ov-stat { border-radius: 14px; }

/* ===== Optische Aufwertung, Schritt 3 (Timo, 01.12.2026): leere Zustände wie im Entwurf ===== */
div.leer { background: var(--flaeche); border-radius: 12px; padding: 28px 18px; gap: 6px; }
.card > div.leer:only-child, .card > h2 + div.leer, .card > h3 + div.leer { margin-top: 4px; }
.leer .leer-sym { width: 52px; height: 52px; border-radius: 50%; }
.leer b { font-weight: 700; }
table tbody tr:only-child > td[colspan].muted.center::before, .leer-hinweis::before { border-radius: 50%; }

/* Mein Profil: Gremien als Karten je Obergremium (Timo, 01.12.2026) */
.gremien-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 10px; }
.gremium-karte { border: 1px solid var(--line); border-radius: 12px; background: var(--flaeche); padding: 12px 14px; }
.gk-kopf { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gk-kopf b { font-size: .98rem; margin-right: auto; }
.gk-liste { list-style: none; margin: 10px 0 0; padding: 8px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.gk-liste li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .9rem; }
.gk-liste .gk-name { margin-right: auto; }

/* „Steht an“: Zeile mit eigenem Knopf zum Ausblenden (z. B. Hinweis auf eine neue Version; 6. Feld in $stehtAn) */
.steht-an li.mit-weg { display: flex; align-items: center; gap: 8px; }
.steht-an li.mit-weg > a { flex: 1; min-width: 0; }
.steht-an .sa-weg { margin: 0; flex: none; }

/* Benutzerliste: Gremien je Obergremium mit Rolle, Untergremien aufklappbar (Timo, 01.12.2026) */
.ug-gremien { display: flex; flex-direction: column; gap: 5px; min-width: 220px; }
div.ug-zeile, details.ug-zeile > summary { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
details.ug-zeile > summary { list-style: none; cursor: pointer; }
details.ug-zeile > summary::-webkit-details-marker { display: none; }
.ug-name { font-weight: 600; color: var(--text); }
.ug-mehr { color: var(--muted); font-size: .76rem; border: 1px solid var(--line); border-radius: 99px; padding: 0 8px; white-space: nowrap; }
details.ug-zeile > summary:hover .ug-mehr, details.ug-zeile[open] .ug-mehr { background: var(--flaeche); color: var(--text); }
details.ug-zeile ul { list-style: none; margin: 5px 0 6px 4px; padding: 0 0 0 10px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
details.ug-zeile li { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
td.ug-mail { overflow-wrap: anywhere; max-width: 240px; }

/* Sitzung in Vorbereitung übersichtlich (Timo, 01.12.2026; Entwurf „Vorschlag: Sitzung“): ruhiger Kopf, nächster Schritt als Leiste,
   Tagesordnung links, rechts „Deine Teilnahme“ und Teilnehmer nach Antwort; am Handy Teilnahme zuerst */
.sitzung-kopf .abzeichen { align-items: center; gap: 6px 16px; }
.sk-meta { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; color: #2b323c; }
.sk-meta.muted { color: var(--muted); font-size: .85rem; }
.sz-schritt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 11px 16px; margin-bottom: 18px; border-radius: 12px; background: var(--brand-bg); font-size: .92rem; }
.sz-schritt > span { flex: 1 1 260px; }
.sz-schritt a { font-weight: 600; color: var(--brand-dark); text-decoration: none; }
.sz-schritt form { margin: 0; display: flex; align-items: center; gap: 4px; }
.sz-seite { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 0 18px; align-items: start; }
.sz-rechts { display: flex; flex-direction: column; }
.sz-oben { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 18px; align-items: start; }
.sz-du h3, .sz-tn h3 { margin: 0; }
.sz-du { display: flex; flex-direction: column; gap: 10px; }
.sz-du p { margin: 0; }
.sz-wahl { display: flex; border: 1px solid var(--line-stark); border-radius: 12px; overflow: hidden; }
.sz-wahl button { flex: 1; min-height: 44px; border: 0; background: #fff; font: inherit; font-size: .9rem; font-weight: 600; color: #2b323c; cursor: pointer; }
.sz-wahl button + button { border-left: 1px solid var(--line-stark); }
.sz-wahl button:hover { background: var(--flaeche); }
.sz-wahl button.an.ja { background: #e7f5ec; color: #17663a; }
.sz-wahl button.an.nein { background: #fdecea; color: #a3161b; }
.sz-tn .karte-kopf { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.sz-balken { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: #eef0f3; }
.sz-balken .ja { background: #2e9a5b; }
.sz-balken .nein { background: #c4151c; }
.sz-zahlen { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .85rem; margin: 8px 0 4px; }
.sz-zahlen .zusage { color: #17663a; } .sz-zahlen .absage { color: #a3161b; }
.sz-gruppe { margin-top: 12px; }
.sz-gruppe-titel { font-size: .8rem; font-weight: 600; margin-bottom: 6px; }
.sz-zusage .sz-gruppe-titel { color: #17663a; } .sz-absage .sz-gruppe-titel { color: #a3161b; } .sz-offen .sz-gruppe-titel { color: var(--muted); }
.sz-gruppe ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.sz-gruppe li { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.sz-gruppe .avatar { width: 30px; height: 30px; font-size: .7rem; }
.sz-zusage .avatar { background: #e7f5ec; color: #17663a; } .sz-absage .avatar { background: #fdecea; color: #a3161b; } .sz-offen .avatar { background: #eef0f3; color: #3d4552; }
.sz-person { min-width: 0; }
.sz-person b { font-weight: 600; }
.sz-tn > p { margin: 12px 0 0; }
/* Tagesordnung: Nummern als Kästchen */
.sz-seite .sa-agenda li { padding: 12px 0; align-items: center; }
.sz-seite .sa-agenda li::before { content: counter(top); width: 34px; height: 34px; border-radius: 10px; background: var(--brand-bg); color: var(--brand-dark); display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; font-weight: 700; }
.sz-seite .sa-agenda li.sa-unterpunkt { padding-left: 46px; }
.sz-seite .sa-agenda li.sa-unterpunkt::before { content: counter(top) '.' counter(untertop); width: auto; height: auto; background: none; color: var(--muted); font-size: .82rem; font-weight: 600; }
.sz-seite .sa-agenda .muted { margin-left: 46px; }
.sz-seite .sa-agenda li.sa-unterpunkt .muted { margin-left: 3em; }
@media (max-width: 980px) {
  .sz-seite { grid-template-columns: minmax(0, 1fr); }
  .sz-seite > .sa-vorbereitung { order: 1; }
  .sz-rechts { display: contents; }
  .sz-rechts .sz-du { order: 0; }
  .sz-rechts .sz-tn { order: 2; }
}

/* Sitzungsliste (Timo, 02.12.2026): Abschnitte Anstehend / Abgeschlossen, abgeschlossene nach Jahren aufklappbar */
.sz-abschnitt { margin-bottom: 22px; }
.sz-abschnitt > h2 { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; margin: 6px 0 10px; }
.sz-abschnitt > h2 .count { background: #eef0f3; color: var(--muted); border-radius: 99px; padding: 0 9px; font-size: .78rem; font-weight: 600; }
.sz-jahr { margin-bottom: 10px; }
.sz-jahr > summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.sz-jahr > summary::-webkit-details-marker { display: none; }
.sz-jahr > summary::before { content: '▸'; color: var(--muted); transition: transform .15s; }
.sz-jahr[open] > summary::before { transform: rotate(90deg); }
.sz-jahr[open] > summary { border-radius: 12px 12px 0 0; border-bottom-color: transparent; }
.sz-jahr[open] > .table-wrap { border-top-left-radius: 0; border-top-right-radius: 0; }
.sz-liste td:first-child { width: 1%; }
.sz-hilfe { margin-top: 8px; }
.sz-hilfe summary { cursor: pointer; }

/* Laufende Sitzung übersichtlich (Timo, 02.12.2026): Leiste mit Stand und Fortschritt, rechts mitlaufend Anwesenheit und TOP-Liste */
.lauf-leiste .badge { margin-right: 4px; }
.lauf-fortschritt { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; white-space: nowrap; }
.lauf-fortschritt .bar { width: 120px; }
.lauf-seite { display: grid; grid-template-columns: minmax(0, 1fr) 320px; grid-template-areas: "haupt rechts"; gap: 0 18px; align-items: start; }
.lauf-haupt { grid-area: haupt; min-width: 0; }
.lauf-rechts { grid-area: rechts; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; display: flex; flex-direction: column; }
.lauf-haupt nav.agenda { display: none; }
/* Anwesenheit kompakt: Name, darunter drei Knöpfe */
.lauf-rechts .attendance .head h3 { margin: 0; }
.lauf-rechts .attendance table.att, .lauf-rechts .attendance table.att tbody { display: block; margin: 6px 0 10px; }
.lauf-rechts .attendance table.att thead { display: none; }
.lauf-rechts .attendance table.att tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.lauf-rechts .attendance table.att td { display: block; padding: 0; border: 0; min-width: 0; }
.lauf-rechts .attendance table.att td:first-child { grid-column: 1 / -1; font-size: .88rem; overflow-wrap: anywhere; }
.lauf-rechts .attendance .att-opt { display: flex; align-items: center; justify-content: center; min-height: 32px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; font-size: .74rem; cursor: pointer; }
.lauf-rechts .attendance .att-opt input { position: absolute; opacity: 0; pointer-events: none; }
.lauf-rechts .attendance .att-opt span { display: inline; }
.lauf-rechts .attendance .att-opt:has(input:focus-visible) { outline: 3px solid var(--brand-soft); }
.lauf-rechts .attendance .att-opt:has(input[value=anwesend]:checked) { background: #e7f5ec; border-color: #bfe3cd; color: #17663a; font-weight: 600; }
.lauf-rechts .attendance .att-opt:has(input[value=entschuldigt]:checked) { background: #fdf2dd; border-color: #f2d8a7; color: #8a5300; font-weight: 600; }
.lauf-rechts .attendance .att-opt:has(input[value=abwesend]:checked) { background: #eef0f3; border-color: #d9dee5; color: #3d4552; font-weight: 600; }
.lauf-rechts .attendance tr.a-abwesend td:first-child { text-decoration: none; }
.lauf-rechts .attendance .row { flex-wrap: wrap; }
/* TOP-Liste */
.lauf-tops h3 { margin: 0 0 8px; }
.lauf-tops ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.lauf-tops a { display: flex; align-items: center; gap: 10px; padding: 6px 6px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .88rem; }
.lauf-tops a:hover { background: var(--flaeche); }
.lauf-tops .lt-nr { flex: none; min-width: 28px; height: 24px; padding: 0 4px; border-radius: 7px; background: var(--brand-bg); color: var(--brand-dark); font-size: .74rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.lauf-tops .lt-titel { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lauf-tops li.unter a { padding-left: 22px; }
.lauf-tops li.gruppe .lt-titel { font-weight: 600; }
.lauf-tops li.fertig .lt-nr { background: #e7f5ec; color: #17663a; }
.lauf-tops li.fertig .lt-titel { color: var(--muted); }
@media (max-width: 980px) {
  .lauf-seite { grid-template-columns: minmax(0, 1fr); grid-template-areas: "rechts" "haupt"; }
  .lauf-rechts { position: static; max-height: none; overflow: visible; }
  .lauf-tops { display: none; }
  .lauf-haupt nav.agenda { display: flex; }
}
/* Anwesenheit aufklappbar (zu, sobald alle markiert sind) */
details.att-klapp > summary { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; cursor: pointer; list-style: none; }
details.att-klapp > summary::-webkit-details-marker { display: none; }
details.att-klapp > summary::after { content: '▾'; margin-left: auto; color: var(--muted); }
details.att-klapp:not([open]) > summary::after { content: '▸'; }
details.att-klapp > summary b { font-size: 1.05rem; }
.att-kopf { justify-content: flex-end; margin-top: 8px; }

/* Protokoll (Timo, 02.12.2026): Kopf wie die Sitzung, Stand als Leiste; das Blatt selbst bleibt in print.css */
.pr-kopf { margin-bottom: 14px; }
.pr-zurueck { display: inline-flex; min-height: 32px; align-items: center; font-size: .9rem; color: var(--muted); text-decoration: none; }
.pr-kopf-zeile { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-start; justify-content: space-between; }
.pr-titel { flex: 1 1 360px; min-width: 0; }
.druck-blatt .pr-titel h1 { margin: 2px 0 8px; font-size: 1.6rem; color: var(--text); }
.pr-titel .abzeichen { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.pr-kopf .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pr-stand { margin-bottom: 18px; }
.pr-stand .btn.small { min-height: 36px; }
dialog .freigabe-form p.sub { margin-top: 0; }
dialog.modal { background: var(--card); color: var(--text); }   /* auch in Druckansichten (Protokoll), wo das Blatt sonst durchscheint */

/* Vorgänge übersichtlich (Timo, 02.12.2026; Entwurf „Vorschlag: Vorgänge“): Schnellfilter, Liste mit zweizeiligen Zeilen, Tafel je Status */
.vg-kopf { align-items: flex-end; margin-bottom: 14px; }
.vg-kopf h1 { margin-bottom: 2px; }
.vg-schnell { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.vg-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-stark); background: var(--card); color: #2b323c; font-size: .88rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.vg-chip:hover { border-color: var(--brand); text-decoration: none; }
.vg-chip .vg-zahl { font-size: .74rem; font-weight: 700; padding: 0 7px; border-radius: 99px; background: #eef0f3; color: #3d4552; }
.vg-chip.rot { color: #a3161b; border-color: #f1b9b4; background: #fdf3f2; }
.vg-chip.an { border-color: var(--brand); background: var(--brand-bg); color: var(--brand-dark); }
.vg-chip.an .vg-zahl { background: var(--brand-soft); color: var(--brand-dark); }
.vg-platz { flex: 1; }
.vg-umschalter { display: inline-flex; border: 1px solid var(--line-stark); border-radius: 10px; overflow: hidden; }
.vg-umschalter a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; font-size: .86rem; color: var(--muted); text-decoration: none; background: var(--card); }
.vg-umschalter a + a { border-left: 1px solid var(--line-stark); }
.vg-umschalter a.an { background: #eef0f3; color: var(--text); font-weight: 600; }
.vg-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 4px 0 12px; }
.vg-status .stat-filter { text-decoration: none; }
.vg-liste td.thema { min-width: 280px; }
.vg-titel b { font-weight: 600; }
.vg-liste td.thema a { color: var(--text); }
.vg-meta { margin-top: 2px; }
.vg-faellig-zelle .small { color: var(--muted); }
.vg-faellig-zelle.late, .vg-faellig-zelle.late .small { color: var(--fehler); font-weight: 600; }
.vg-prio-hilfe { margin-top: 12px; }
.vg-prio-hilfe summary { cursor: pointer; }
/* Tafel */
.vg-tafel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.vg-spalte { background: #eef0f3; border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.vg-spalte-kopf { display: flex; align-items: center; gap: 8px; padding: 2px 4px; }
.vg-karte { display: flex; flex-direction: column; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; color: var(--text); text-decoration: none; box-shadow: var(--schatten); }
.vg-karte:hover { border-color: var(--brand); text-decoration: none; }
.vg-karte-oben { display: flex; align-items: center; gap: 8px; min-width: 0; }
.vg-karte-oben .zeile1 { flex: 1; min-width: 0; }
.vg-karte-titel { font-weight: 600; font-size: .95rem; line-height: 1.35; }
.vg-karte-unten { display: flex; align-items: center; gap: 8px; font-size: .82rem; }
.vg-karte-unten .avatar { width: 26px; height: 26px; font-size: .66rem; }
.vg-faellig { flex: 1; font-weight: 600; color: #2b323c; }
.vg-faellig.late { color: var(--fehler); }
.vg-karte .bar { width: 100%; }
.vg-karte > small, .vg-karte > .bar + small { display: none; }
@media (max-width: 700px) {
  .vg-schnell { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .vg-schnell .vg-platz { display: none; }
  .vg-tafel { grid-auto-columns: minmax(78vw, 1fr); }
}
@media (max-width: 700px) { .vg-status .spalten-wahl { display: none; } }
