/* Arbeitsdienste – nutzt die Farb-Variablen aus style.css (--primary, --ok, --line …) */
h3.station { font-size: 1.02rem; margin: 18px 0 8px; padding-bottom: 4px; border-bottom: 2px solid var(--primary); }
h3.station .muted { font-weight: 400; font-size: .88rem; }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.shifts { display: grid; gap: 8px; }
.shift { display: grid; grid-template-columns: 150px 120px 1fr auto; gap: 8px 12px; align-items: center;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.shift.full { background: #f9f9f9; }
.shift-time { font-weight: 700; }
.shift-state strong { color: var(--ok); font-size: 1.05rem; }
.shift.full .shift-state { color: var(--muted); }
.shift-people .tag { margin: 2px 2px 2px 0; }
.shift-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.shift-actions form { margin: 0; }
.seats.done .bar span { background: var(--ok); }
.tag.warn { background: var(--warn-bg); color: var(--warn); }
.mine .plist li { padding: 6px 0; }
.station-block { margin-top: 8px; }
.len .lbl { display: block; font-weight: 600; font-size: .92rem; }
.len .inline-form label { display: flex; align-items: center; gap: 6px; margin: 4px 0 12px; font-weight: 500; }
.len .inline-form input { width: 80px; flex: 0 0 80px; margin: 0; }
table.plan { table-layout: fixed; }
table.plan td { padding: 10px 8px; }
table.plan th:first-child { width: 160px; }
table.plan th:last-child { width: 170px; }
@media (max-width: 640px) { table.plan { table-layout: auto; } }
tr.gap td:first-child { border-left: 3px solid var(--err); }
.missing { color: var(--err); font-weight: 600; }
.helper-list { list-style: none; margin: 0; padding: 0; }
.helper-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.helper-list li:last-child { border-bottom: 0; }
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details[open] > summary { background: var(--ok-bg); }
.helper-form { margin-top: 6px; }
.helper-form select { width: auto; flex: 1 1 180px; margin: 0; }
@media (max-width: 640px) {
  .shift { grid-template-columns: 1fr auto; }
  .shift-people, .shift-actions { grid-column: 1 / -1; justify-content: flex-start; }
}
@media print {
  .station-card { break-inside: auto; }
  tr { break-inside: avoid; }
}
/* Gruppen-Checkboxen (Registrierung, Personen, Konten) */
fieldset.groups { border: 1px solid var(--line); border-radius: 4px; padding: 8px 12px 4px; margin: 0 0 12px; flex: 1 1 100%; }
fieldset.groups legend { font-weight: 600; font-size: .92rem; padding: 0 4px; }
fieldset.groups .req { font-weight: 400; color: var(--muted); }
fieldset.groups .check { display: inline-flex; margin: 0 16px 8px 0; }
.tag.group { background: var(--ok-bg); color: var(--text); font-weight: 500; }
.person-form { margin-bottom: 4px; }
.group-stats { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.group-stats a.tag { text-decoration: none; padding: 4px 10px; font-size: .85rem; }
.group-stats a.tag.active { outline: 2px solid var(--primary); }
.admin-persons { list-style: none; margin: 0 0 6px; padding: 0; }
.admin-persons li { padding: 2px 0; }
.admin-persons li.dim { opacity: .45; }
.admin-persons summary { cursor: pointer; }
/* Arbeitsstunden-Statistik */
.stunden-filter { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: flex-end; }
.stunden-filter label { margin: 0; }
.stunden-filter select, .stunden-filter input[type=date] { width: auto; }
.stunden-filter .check { margin-bottom: 10px; }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat-tiles .card { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.stat-tiles strong { font-size: 1.5rem; }
table.stunden th a { color: inherit; text-decoration: none; }
td.num, th.num { text-align: right; white-space: nowrap; }
table.stunden tr.zero td { color: var(--muted); }
.hbar { height: 5px; background: var(--line); border-radius: 99px; margin-top: 3px; min-width: 80px; }
.hbar span { display: block; height: 100%; background: var(--primary); border-radius: 99px; }
tr.future td { color: var(--muted); }
.stunden-filter [hidden] { display: none !important; }
/* Vorlagen */
.tpl-new { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 12px; }
.tpl-new form { margin: 0; }
.tpl-new input[type=file], #import input[type=file] { width: auto; flex: 1 1 220px; }
#vorlagen td.actions { white-space: normal; }
#vorlagen td.actions > * { margin: 2px 0; }
.tpl-create { margin: 16px 0 12px; }
/* v1.10: Kuchenspenden */
fieldset.cake-opt { border: 1px solid var(--line); border-radius: 4px; padding: 8px 12px 4px; margin: 0 0 10px; }
fieldset.cake-opt legend { font-weight: 600; font-size: .92rem; padding: 0 4px; }
fieldset.cake-opt p { margin: 0 0 8px; }
fieldset.cake-opt .cake-need input { max-width: 140px; }
fieldset.cake-opt:has(#cakes_enabled:not(:checked)) .cake-need { display: none; }
.cakes-box { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 8px; }
.cakes-box .bar { margin: 4px 0 8px; }
.cake-list { list-style: none; margin: 8px 0 12px; padding: 0; }
.cake-list li { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.cake-list li.own { background: var(--ok-bg); margin: 0 -8px; padding: 7px 8px; border-radius: 4px; }
.cake-list li > form { flex: 1; }
.cake-list .actions { display: flex; gap: 6px; flex-shrink: 0; }
.cake-list .actions form { margin: 0; }
.cake-add > summary { list-style: none; display: inline-block; cursor: pointer; }
.cake-add > summary::-webkit-details-marker { display: none; }
.cake-add[open] > summary { margin-bottom: 10px; }
.cake-form .check { margin-bottom: 4px; }
.tag.cake { background: #fdf1e3; color: #8a4b0f; }
table.cakes tfoot th { text-align: left; border-top: 2px solid var(--line); }
/* v1.10: Archiv */
.flash.info { background: var(--ok-bg); color: var(--text); }
.archive-note { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; }
.archive-note form { margin: 0; }
dl.readonly { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
dl.readonly dt { font-weight: 600; color: var(--muted); }
dl.readonly dd { margin: 0; }
/* v1.12: Hilfe / Anleitungen in der App */
.help { line-height: 1.6; }
.help h1 { font-size: 1.45rem; color: var(--primary-dark); border-bottom: 2px solid var(--primary); padding-bottom: 4px; margin: 1.6em 0 .5em; }
.help > h1:first-of-type { margin-top: .6em; }
.help h2 { font-size: 1.15rem; margin: 1.3em 0 .4em; }
.help figure { margin: 14px 0; text-align: center; }
.help figure img { max-width: 100% !important; height: auto; border: 1px solid var(--line); border-radius: 6px; }
.help figcaption { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.help table { border-collapse: collapse; width: 100%; font-size: .92rem; display: block; overflow-x: auto; }
.help th, .help td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.help th { background: var(--ok-bg); }
.help code { background: #f3f3f3; padding: 1px 4px; border-radius: 3px; font-size: .9em; word-break: break-word; }
.help-toc { background: var(--ok-bg); border-radius: 8px; padding: 10px 16px; margin-bottom: 8px; }
.help-toc ul { margin: 6px 0 0; padding-left: 20px; columns: 2 260px; }
.help-toc li { margin: 2px 0; break-inside: avoid; }
.help-toc a { text-decoration: none; }
.help [id] { scroll-margin-top: 12px; }
.site-footer a { color: inherit; }
.seats .festplan-link { margin-top: 8px; display: inline-block; }
/* v1.15: Raster-Ansicht (Stationen als Spalten, Uhrzeit links) */
.view-switch { display: none; gap: 6px; margin: 12px 0 6px; }
.event.js-view .view-switch { display: flex; }
.view-switch .btn.on { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.event.view-raster .list-view { display: none; }
.event.view-liste .raster-view { display: none; }
.raster-days { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.raster-day { font: inherit; font-size: .9rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--heading); cursor: pointer; }
.raster-day small { color: var(--muted); }
.raster-day.on { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.raster-day.on small { color: inherit; opacity: .85; }
.raster-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .82rem; margin: 6px 0 8px; }
.raster-legend .lg::before { content: ''; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.raster-legend .full::before { background: #e3efd3; } .raster-legend .part::before { background: #ffe7a8; } .raster-legend .empty::before { background: #f7c6c6; }
.raster-legend .mine::before { background: transparent; outline: 2px solid var(--primary-dark); outline-offset: -2px; }
.raster-wrap { overflow: auto; max-height: 75vh; border: 1px solid var(--line); border-radius: 10px; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
table.raster { border-collapse: separate; border-spacing: 0; font-size: .82rem; min-width: 100%; margin: 0; }
table.raster th, table.raster td { border: 0; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 0; background: var(--card); }
table.raster thead th { position: sticky; top: 0; z-index: 2; padding: 8px 4px; min-width: 96px; max-width: 120px; color: var(--heading); font-weight: 700; text-align: center; line-height: 1.15; vertical-align: bottom; text-transform: none; letter-spacing: 0; font-size: .8rem; }
table.raster .t { position: sticky; left: 0; z-index: 1; background: #fafafa; font-weight: 700; color: var(--heading); padding: 3px 6px; white-space: nowrap; vertical-align: top; text-align: left; font-size: .8rem; }
table.raster thead th.t { z-index: 3; min-width: 0; width: 44px; background: var(--card); }
table.raster tr.end td, table.raster tr.end th { border-bottom: 0; height: 22px; }
table.raster td.has { height: 1px; }
.cell { margin: 2px; border-radius: 7px; padding: 4px 5px; height: calc(100% - 4px); min-height: 34px; box-sizing: border-box; text-align: center;
  display: flex; flex-direction: column; justify-content: center; gap: 1px; text-decoration: none; border: 1px solid rgba(0,0,0,.05); }
.cell:focus-visible { outline: 3px solid var(--primary-dark); outline-offset: 1px; }
.cell.full { background: #e3efd3; color: var(--ok); } .cell.part { background: #ffe7a8; color: #7a4b00; } .cell.empty { background: #f7c6c6; color: var(--err); }
.cell b { font-size: .98rem; } .cell .zz { font-size: .72rem; opacity: .85; }
.cell.mine { outline: 2px solid var(--primary-dark); outline-offset: -2px; }
@media (hover: hover) { .cell:hover { filter: brightness(.96); } }
@media (max-width: 600px) { table.raster thead th { min-width: 80px; max-width: 90px; padding: 6px 3px; } .cell b { font-size: .9rem; } }
.shift-dlg { border: 0; border-radius: 14px; padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 40px); box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.shift-dlg::backdrop { background: rgba(0,0,0,.35); }
.shift-dlg .dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 2px solid var(--primary); }
.shift-dlg .dlg-head h3 { margin: 0; font-size: 1.02rem; }
.shift-dlg .dlg-body { padding: 12px 14px 16px; }
.shift-dlg .shift { grid-template-columns: 1fr auto; border: 0; padding: 0; }
.shift-dlg .shift-time { display: none; }
.shift-dlg .shift-people, .shift-dlg .shift-actions { grid-column: 1 / -1; justify-content: flex-start; }
@media print { .raster-view, .view-switch { display: none !important; } .event .list-view { display: block !important; } }
/* v1.15: „Wo fehlt noch wer?“ */
.gap-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.chip { font: inherit; font-size: .88rem; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--heading); cursor: pointer; }
.chip.on { background: var(--heading); border-color: var(--heading); color: #fff; }
.gap-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; align-items: baseline; }
.gap-head .muted { font-weight: 400; font-size: .85rem; }
.list-view .shift { grid-template-columns: minmax(120px, 180px) 120px minmax(0, 1fr) auto; }
.list-view .shift-actions { max-width: 230px; }
.list-view .shift-actions form, .list-view .shift-actions .btn { width: 100%; }
.shift-station { font-weight: 700; color: var(--heading); }
.pill { border-radius: 999px; padding: 2px 9px; font-size: .85rem; font-weight: 700; white-space: nowrap; }
.pill.part { background: #ffe7a8; color: #7a4b00; } .pill.empty { background: #f7c6c6; color: var(--err); } .pill.full { background: #e3efd3; color: var(--ok); }
.shift-dlg .shift-station { display: none; }
@media (max-width: 640px) { .list-view .shift { grid-template-columns: 1fr auto; } }
.raster-admin > summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.raster-admin > summary h2 { margin: 0; }
.raster-admin > summary::after { content: '▾'; margin-left: auto; color: var(--muted); }
.raster-admin:not([open]) > summary::after { content: '▸'; }
details.raster-admin[open] > summary { background: none; }
.list-view [hidden], .raster-view [hidden], .gap-none[hidden] { display: none !important; }
/* v1.16: seitliches Weiterblättern im Raster sichtbar machen */
.raster-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin: 0 0 6px; }
.raster-nav[hidden] { display: none !important; }
.raster-count { font-weight: 700; color: var(--heading); font-size: .9rem; }
.raster-nav-btns { display: flex; gap: 6px; }
.raster-nav .btn:disabled { opacity: .35; cursor: default; }
.raster-scroll { position: relative; }
.raster-scroll::before, .raster-scroll::after { content: ''; position: absolute; top: 1px; bottom: 1px; width: 34px; pointer-events: none; z-index: 4; opacity: 0; transition: opacity .2s; }
.raster-scroll::before { left: 48px; background: linear-gradient(to right, rgba(0,0,0,.12), rgba(0,0,0,0)); }
.raster-scroll::after { right: 1px; border-radius: 0 10px 10px 0; background: linear-gradient(to left, rgba(0,0,0,.14), rgba(0,0,0,0)); }
.raster-scroll.can-left::before, .raster-scroll.can-right::after { opacity: 1; }
.raster-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 40px; height: 56px; border: 0; border-radius: 10px;
  background: var(--primary); color: var(--primary-ink); font-size: 2rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.25); opacity: .92; }
.raster-arrow[hidden] { display: none !important; }
.raster-arrow.right { right: 6px; } .raster-arrow.left { left: 52px; }
.raster-arrow:focus-visible { outline: 3px solid var(--primary-dark); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .raster-scroll::before, .raster-scroll::after { transition: none; } }
@media (min-width: 1000px) { body.page-wide table.raster thead th { min-width: 104px; } body.page-wide .raster-wrap { max-height: 80vh; } }
/* v1.23: Entwurf (Fest noch nicht für Mitglieder freigegeben) */
.tag.draft { background: #eef0f7; color: #3c4a7a; font-size: .78rem; vertical-align: middle; }
.flash.draft-note { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
/* v1.23: Schloss am Menüpunkt für ausgeschaltete Module (nur Superadmin) */
.lock { font-size: .8em; opacity: .75; }
