/* Veranstaltungen */
.vst-filter { display: flex; gap: 8px; flex-wrap: wrap; }
.vst-legend { display: flex; align-items: center; gap: 4px 14px; flex-wrap: wrap; }
.vst-legend span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.vst-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--border); }
.vst-dot.st-eingebucht, .vst-card.st-eingebucht, .vst-me.st-eingebucht { border-left-color: var(--ok); }
.vst-dot.st-gemeldet, .vst-card.st-gemeldet, .vst-me.st-gemeldet { border-left-color: var(--warn); }
.vst-dot.st-abgesagt, .vst-card.st-abgesagt, .vst-me.st-abgesagt { border-left-color: var(--bad); }
.vst-dot.st-eingebucht { background: var(--ok); }
.vst-dot.st-gemeldet { background: var(--warn); }
.vst-dot.st-abgesagt { background: var(--bad); }
.vst-kw { margin: 14px 0 2px; font-size: 13px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.vst-list .vst-kw:first-child { margin-top: 0; }
.vst-card { flex-wrap: nowrap; }
.vst-card .ticket-main { flex: 1; }
.vst-card h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.vst-when { font-size: 13px; font-weight: 700; color: var(--bad); }
.vst-card.closed .vst-when { color: var(--muted); }
.vst-card .chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.vst-count { display: grid; justify-items: center; min-width: 68px; text-align: center; }
.vst-count b { font-size: 20px; color: var(--bad); }
.vst-count span, .vst-count small { font-size: 11.5px; color: var(--muted); }
.vst-kat { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; color: #fff; background: #6b7280; vertical-align: middle; }
.vst-kat.k-rot { background: #c0262d; }
.vst-kat.k-orange { background: #d9661f; }
.vst-kat.k-gelb { background: #b8860b; }
.vst-kat.k-gruen { background: #2f8a3e; }
.vst-kat.k-blau { background: #2563b8; }
.vst-kat.k-lila { background: #7b3fb0; }
.vst-kat.k-grau { background: #6b7280; }
.section-head h2 .vst-kat { font-size: 13px; }

.vst-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: start; margin-bottom: 14px; }
.vst-info, .vst-me, .vst-people, .vst-close, .vst-form { display: grid; gap: 10px; padding: 14px 16px; }
.vst-me { border-left: 5px solid var(--border); }
.vst-me h3, .vst-close h3 { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vst-me textarea, .vst-close textarea, .vst-form textarea, .vst-settings textarea { width: 100%; min-width: 0; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; resize: vertical; }
.vst-fz { margin: 0; padding: 8px 10px; border-radius: 8px; background: var(--ok-bg); color: var(--ok); }
.vst-bem { margin: 0; white-space: normal; }
.vst-anf { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.vst-anf b { width: 100%; font-size: 13px; }
.vst-anf p { width: 100%; margin: 0; }
.vst-people { margin-bottom: 14px; }
.vst-people h3 { margin: 0; }
.vst-sub { margin: 6px 0 0; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.vst-person { display: grid; gap: 6px; padding: 8px 10px; border-radius: 8px; border-left: 4px solid var(--border); background: var(--surface-2); }
.vst-person.st-eingebucht { border-left-color: var(--ok); }
.vst-person.st-gemeldet { border-left-color: var(--warn); }
.vst-person.st-abgesagt { border-left-color: var(--bad); }
.vst-pmain { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.vst-note { width: 100%; font-size: 13.5px; color: var(--muted); font-style: italic; }
.vst-pact, .vst-fzrow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.vst-fzrow select, .vst-fzrow input, .vst-anfrow select, .vst-anfrow input, .vst-katrow input, .vst-katrow select, .section-head select {
  height: 34px; padding: 0 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; min-width: 0; }
.vst-fzrow input { flex: 1 1 140px; }
.vst-add { display: grid; gap: 6px; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--border); }
.vst-add h4 { margin: 0; }
.vst-crow { display: grid; gap: 6px 10px; grid-template-columns: minmax(120px, 1fr) repeat(2, minmax(0, 1.3fr)); align-items: end; }
@media (max-width: 560px) { .vst-crow { grid-template-columns: 1fr 1fr; } .vst-crow .hv-check { grid-column: 1 / -1; } }
.vst-log { padding: 10px 14px; margin-bottom: 14px; }
.vst-log summary { cursor: pointer; font-weight: 600; }
.vst-form h4, .vst-settings h4 { margin: 8px 0 0; }
.vst-radio, .vst-fzs { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.vst-anfs, .vst-kats { display: grid; gap: 6px; }
.vst-anfrow, .vst-katrow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.vst-anfrow select[name="art"] { flex: 1 1 170px; }
.vst-anfrow select[name="wert"] { flex: 1 1 170px; }
.vst-anfrow input { width: 70px; }
.vst-katrow input { flex: 1 1 160px; }
.vst-settings { padding: 12px 16px; margin-top: 18px; }
.vst-settings summary { cursor: pointer; font-weight: 600; }
.vst-settings form { display: grid; gap: 10px; margin-top: 10px; }
.vst-kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 8px; }
.vst-kpi { display: grid; gap: 2px; padding: 14px 16px; }
.vst-kpi b { font-size: 26px; }
.vst-kpi span { font-size: 13px; color: var(--muted); }
.vst-bar { display: grid; grid-template-columns: minmax(80px, 160px) 1fr auto; gap: 10px; align-items: center; margin: 6px 0; font-size: 14px; }
.vst-bar i { display: block; height: 10px; border-radius: 5px; background: var(--accent, #c0262d); }
.vst-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.vst-table th, .vst-table td { padding: 6px 8px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.vst-table th { font-size: 12.5px; color: var(--muted); }
.vst-table .num { text-align: right; white-space: nowrap; }
.vst-table tfoot td { font-weight: 700; }
.vst-box { display: grid; gap: 6px; padding: 14px 16px; margin-bottom: 12px; }
.vst-box h3 { margin: 0 0 4px; }

/* Detailansicht: Eckdaten, Tabellen, Abmeldewunsch */
.tus-banner.bad { background: var(--bad-bg); color: var(--bad); }
.tus-banner.bad a { color: inherit; font-weight: 700; }
.vst-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 14px; padding: 0; overflow: hidden; }
.vst-fact { display: grid; gap: 2px; align-content: start; padding: 12px 16px; border-left: 1px solid var(--border); min-width: 0; }
.vst-fact:first-child { border-left: 0; }
.vst-fact span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.vst-fact b { font-size: 16.5px; overflow-wrap: anywhere; }
.vst-fact small { font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .vst-facts { grid-template-columns: 1fr 1fr; }
  .vst-fact:nth-child(3) { border-left: 0; }
  .vst-fact:nth-child(n+3) { border-top: 1px solid var(--border); }
}
.vst-info h3, .vst-people h3 { margin: 0; }
.vst-kv { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.vst-kv th, .vst-kv td { padding: 7px 0; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.vst-kv tr:last-child th, .vst-kv tr:last-child td { border-bottom: 0; }
.vst-kv th { width: 38%; padding-right: 12px; font-weight: 500; color: var(--muted); }
.vst-kv td { font-weight: 600; }
.vst-bem { display: grid; gap: 4px; padding: 10px 12px; border-radius: 8px; background: var(--surface-2); }
.vst-bem b { font-size: 13px; color: var(--muted); }
.vst-bem p { margin: 0; }
.vst-req { margin-top: 4px; }
.vst-crewtab th { width: 30%; }
.vst-crewtab td { display: flex; flex-wrap: wrap; gap: 6px; }
.vst-crew { display: inline-flex; align-items: baseline; gap: 5px; padding: 2px 10px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); font-size: 13.5px; }
.vst-crew small { font-weight: 500; opacity: .8; }
.vst-crew.me { outline: 2px solid var(--ok); }
.vst-sum { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.vst-rt tbody tr { border-left: 4px solid var(--border); }
.vst-rt tbody tr.st-eingebucht { border-left-color: var(--ok); }
.vst-rt tbody tr.st-gemeldet { border-left-color: var(--warn); }
.vst-rt tbody tr.st-abgesagt { border-left-color: var(--bad); }
.vst-rt td:first-child, .vst-rt th:first-child { padding-left: 10px; }
.vst-rt td { vertical-align: middle; }
.vst-notecell { color: var(--muted); font-style: italic; overflow-wrap: anywhere; }
.vst-actcell { text-align: right; width: 1%; }
.vst-menu summary { display: inline-block; padding: 4px 12px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; font-size: 13.5px; font-weight: 600; white-space: nowrap; list-style: none; }
.vst-menu summary::-webkit-details-marker { display: none; }
.vst-menu[open] summary { background: var(--surface-2); }
.vst-menu-body { display: grid; gap: 8px; margin-top: 8px; min-width: 260px; text-align: left; }
@media (max-width: 700px) {
  .vst-rt thead { display: none; }
  .vst-rt, .vst-rt tbody, .vst-rt tr, .vst-rt td { display: block; width: auto; }
  .vst-rt tbody tr { margin-bottom: 8px; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); }
  .vst-rt td, .vst-rt td:first-child { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; padding: 3px 0; border: 0; text-align: left; }
  .vst-rt td::before { content: attr(data-label); font-size: 12.5px; color: var(--muted); font-style: normal; }
  .vst-rt td.vst-actcell { display: block; padding-top: 6px; }
  .vst-rt td.vst-actcell::before { content: none; }
  .vst-menu-body { min-width: 0; }
}
.vst-abm { display: grid; gap: 6px; margin-top: 4px; padding: 10px 12px; border-radius: 8px; border: 1px dashed var(--border); }
.vst-abm summary { cursor: pointer; font-weight: 600; color: var(--bad); }
.vst-abm p { margin: 0; }
.vst-abm.is-open { border: 0; background: var(--warn-bg); color: var(--warn); }
.vst-abm.is-no { border: 0; background: var(--bad-bg); color: var(--bad); }
.vst-abm.is-ok { border: 0; background: var(--ok-bg); color: var(--ok); }
.vst-abm .muted { color: inherit; opacity: .85; }
.vst-abmlist { display: grid; gap: 10px; padding: 14px 16px; margin-bottom: 14px; border-left: 5px solid var(--bad); }
.vst-abmlist h3 { margin: 0; display: flex; align-items: center; gap: 8px; }
.vst-abmitem { display: grid; gap: 6px; padding: 10px 12px; border-radius: 8px; background: var(--surface-2); }
.vst-grund { margin: 0; font-style: italic; }
.vst-kv th { font-size: 13.5px; text-transform: none; letter-spacing: normal; }
.vst-rt td > span { display: block; min-width: 0; }
.vst-rt .chip { white-space: nowrap; }
