/* Sitzungsplaner – Gestaltung */
:root {
  --red: #B4122B; --red-dark: #8A0D20; --red-soft: #FFF5F6; --red-line: #E8B4BD;
  --gold: #E8B21E; --blue: #1D3F7A; --blue-soft: #E3ECFA;
  --ink: #1A1D24; --ink-2: #3D4452; --muted: #5A6170; --line: #E2E4E9; --line-2: #D5D9E0; --line-3: #C9CED6;
  --bg: #F4F5F7; --white: #FFFFFF;
  --warn: #D97706; --warn-soft: #FFF7E6; --warn-ink: #8A4B00;
  --ok: #1F8A4C; --ok-soft: #DFF3E7; --ok-ink: #14532D;
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.4; }
a { color: var(--red); } a:hover { color: var(--red-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.strong { font-weight: 700; }
.nowrap { white-space: nowrap; }
.pre { white-space: pre-line; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
code { background: var(--bg); padding: 1px 5px; border-radius: 4px; }

.stripe { display: flex; height: 6px; }
.stripe span { flex: 1; }
.stripe span:nth-child(1) { background: var(--red); }
.stripe span:nth-child(2) { background: var(--gold); }
.stripe span:nth-child(3) { background: var(--blue); }
.loading { padding: 48px 20px; text-align: center; color: var(--muted); }

/* ---------- Bausteine ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.card-flush { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; padding: 16px 20px; border-bottom: 1px solid #EDEFF2; }
.card-foot { padding: 12px 20px 16px; border-top: 1px solid #EDEFF2; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-sm { display: flex; flex-direction: column; gap: 6px; }
.row-wrap { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.h1 { margin: 0; font-size: 30px; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; }
.h2 { margin: 0; font-size: 20px; font-weight: 700; }
.h3 { margin: 0; font-size: 16px; font-weight: 700; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-3); border-radius: 8px; background: var(--white); font-size: 15px; }
textarea.input { padding: 10px 12px; resize: vertical; min-height: 44px; }
select.input { width: auto; padding: 0 8px; }
.input-time { width: 84px; text-align: center; font-weight: 700; font-size: 18px; padding: 0 6px; }
.input-num { width: 100%; min-width: 0; text-align: center; font-weight: 700; padding: 0 6px; }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; min-height: 44px; }
.check input { width: 20px; height: 20px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--white); font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink); }
.btn:hover { background: #F9FAFB; color: var(--ink); }
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-blue:hover { background: #142d58; color: #fff; }
.btn-green { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-danger { background: var(--red-soft); border-color: var(--red-line); color: var(--red-dark); }
.btn-ghost { border-color: transparent; background: var(--bg); }
.btn-link { border: 0; background: transparent; color: var(--red); font-weight: 700; text-decoration: underline; min-height: 32px; padding: 0 4px; }
.btn-sm { min-height: 40px; padding: 0 12px; font-size: 13px; }
.btn-icon { width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--ink-2); border-radius: 8px; }
.btn-icon:hover { background: var(--bg); }
.btn-step { width: 44px; height: 44px; padding: 0; font-size: 18px; flex: none; }
.btn-dashed { width: 100%; min-height: 52px; border: 1.5px dashed var(--red); color: var(--red); font-weight: 700; font-size: 15px; border-radius: 10px; }
.btn-block { width: 100%; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--white); color: var(--ink-2); font-size: 13px; font-weight: 600; }
.chip[aria-pressed="true"] { border-color: var(--chip-border, var(--red)); background: var(--chip-bg, var(--red-soft)); color: var(--chip-fg, var(--red-dark)); }
.chip-lg { min-height: 44px; border-radius: 8px; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--bg); }
.seg button { min-height: 40px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.seg button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }

.badge { flex: none; display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; }

.switch { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 0; border: 0; border-top: 1px solid #EDEFF2; background: transparent; text-align: left; }
.switch-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.switch-text b { font-size: 14px; }
.switch-text span { font-size: 12px; color: var(--muted); }
.track { flex: none; width: 46px; height: 28px; padding: 3px; border-radius: 999px; background: #8A92A0; display: flex; justify-content: flex-start; }
.track i { width: 22px; height: 22px; border-radius: 50%; background: #fff; }
[aria-checked="true"] > .track { background: var(--ok); justify-content: flex-end; }
.switch-inline { width: auto; border: 0; min-height: 44px; padding: 0 4px; font-size: 13px; font-weight: 600; gap: 8px; }
.switch-inline .track { width: 40px; height: 24px; }
.switch-inline .track i { width: 18px; height: 18px; }

.note-warn, .note-error, .note-info, .note-ok { padding: 10px 14px; border-radius: 10px; font-size: 14px; margin: 0; }
.note-warn { background: var(--warn-soft); border: 1px solid #F0C36A; color: #5A3600; }
.note-error { background: var(--red-soft); border: 1px solid var(--red-line); color: var(--red-dark); font-weight: 600; }
.note-info { background: var(--blue-soft); border: 1px solid #A9C1EA; color: var(--blue); }
.note-ok { background: #E9F6EE; border: 1px solid #A8DDBD; color: var(--ok-ink); font-weight: 600; }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.checklist .ok { color: var(--ok-ink); } .checklist .bad { color: var(--red-dark); font-weight: 700; }

/* ---------- Anmeldung ---------- */
.auth-wrap { padding: 48px 20px; display: flex; justify-content: center; }
.auth-box { width: 100%; max-width: 460px; display: flex; flex-direction: column; gap: 20px; }
.auth-brand { display: flex; flex-direction: column; gap: 4px; text-align: center; }
.auth-title { font-size: 28px; font-weight: 800; }

/* ---------- Kopf ---------- */
.wrap { max-width: 1360px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.app-header { background: var(--white); border-bottom: 1px solid var(--line); }
.head-row { display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: flex-end; justify-content: space-between; padding-top: 20px; }
.head-title { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.head-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.timebox { display: flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--line-2); border-radius: 10px; }
.timebox label { font-size: 13px; color: var(--muted); padding: 0 8px; }
.timebox .btn-step { border: 0; background: var(--bg); }
.userbox { display: flex; align-items: center; gap: 10px; padding: 4px 4px 4px 12px; border: 1px solid var(--line-2); border-radius: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
.userbox-text { display: flex; flex-direction: column; line-height: 1.2; }
.stand { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1.5px solid; font-size: 14px; font-weight: 600; }
.tabs { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 14px; }
.tab { min-height: 48px; padding: 0 16px; border: 0; border-bottom: 3px solid transparent; background: transparent; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.tab[aria-current="page"] { color: var(--red); border-bottom-color: var(--red); }
.save-state { font-size: 12px; color: var(--muted); }
.save-state.err { color: var(--red-dark); font-weight: 700; }

/* ---------- Inhalt ---------- */
.app-main { padding-top: 24px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 20px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.stat-label { font-size: 13px; color: var(--muted); }
.stat-value { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat.over { border-color: var(--red-line); } .stat.over .stat-value { color: var(--red); }

.collisions { background: var(--white); border: 1.5px solid var(--warn); border-radius: 12px; padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; }
.collision { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--warn-soft); }
.collision > span { flex: 1 1 320px; min-width: 0; font-size: 14px; color: #5A3600; }
.warnings ul { margin: 6px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }

.layout { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.main-col { flex: 999 1 560px; min-width: 0; }
.side-col { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

/* Ablaufliste */
.plan-list { list-style: none; margin: 0; padding: 10px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.plan-item { display: flex; flex-direction: column; border-radius: 10px; border: 1px solid var(--line); background: var(--white); }
.plan-item.pause { border-style: dashed; border-color: #B9BFC9; background: var(--bg); }
.plan-item.col { border-color: var(--warn); background: var(--warn-soft); box-shadow: 0 0 0 1px var(--warn); }
.plan-item.sel { border-style: solid; border-color: var(--red); background: var(--red-soft); box-shadow: 0 0 0 1px var(--red); }
.plan-item.dragging { opacity: .45; }
.plan-row { display: flex; align-items: center; gap: 4px; }
.plan-btn { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 10px 12px; min-height: 60px; background: transparent; border: 0; text-align: left; }
.plan-time { width: 58px; flex: none; display: flex; flex-direction: column; gap: 2px; }
.plan-time b { font-size: 16px; font-variant-numeric: tabular-nums; }
.plan-idx { width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--bg); font-size: 12px; font-weight: 700; color: var(--ink-2); display: flex; align-items: center; justify-content: center; }
.plan-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.plan-text b, .plan-text span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan-text span { font-size: 13px; color: var(--muted); }
.plan-status { flex: none; width: 92px; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); }
.plan-actions { display: flex; gap: 2px; padding-right: 6px; }
.handle { flex: none; width: 36px; min-height: 60px; margin-left: 4px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: grab; touch-action: none; display: flex; align-items: center; justify-content: center; }
.handle:active { cursor: grabbing; }
.drop-line { position: absolute; left: 10px; right: 10px; height: 4px; margin-top: -5px; border-radius: 2px; background: var(--red); pointer-events: none; display: none; }
.badge-col { background: var(--warn); color: #fff; font-weight: 700; }
.badge-acc { background: #E6E9ED; color: var(--ink-2); }
.chev { flex: none; display: flex; color: var(--muted); transition: transform .15s; }
.sel .chev { transform: rotate(180deg); }
.mobile-detail { border-top: 1px solid #F0C9CF; padding: 14px 14px 16px; }

.add-box { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #F9FAFB; }
.palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.palette button { min-height: 48px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); display: flex; align-items: center; gap: 10px; text-align: left; }
.swatch { width: 12px; height: 12px; flex: none; border-radius: 4px; }

.detail-grid2 { display: flex; flex-wrap: wrap; gap: 12px; }
.detail-grid2 > * { flex: 1 1 150px; }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper .btn { min-width: 48px; padding: 0 8px; }
.stepper .val { flex: 1; text-align: center; font-size: 20px; font-weight: 700; }
.section-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 4px; border-top: 1px solid #EDEFF2; margin-top: 4px; padding-top: 12px; }

/* Tabellen */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; padding: 10px 12px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.tbl td { padding: 10px 12px; border-top: 1px solid #EDEFF2; vertical-align: top; }
.tbl th:first-child, .tbl td:first-child { padding-left: 20px; }
.tbl th:last-child, .tbl td:last-child { padding-right: 20px; }
.tbl tr.sum td { border-top: 2px solid var(--line-2); background: #F9FAFB; font-weight: 700; }
.tbl tr.pause td { background: var(--bg); }
.tbl tr.wait td { background: var(--warn-soft); }
.right { text-align: right; }

/* Druckansichten */
.print-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.pblock { break-inside: avoid; page-break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.p-pause { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 10px 16px; border: 1.5px dashed #8A92A0; border-radius: 10px; background: var(--bg); }
.p-card { background: var(--white); border: 1.5px solid var(--line-3); border-radius: 12px; overflow: hidden; }
.p-card-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding: 10px 16px; border-bottom: 1.5px solid var(--line-3); }
.p-time { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.p-title { flex: 1 1 240px; font-size: 19px; font-weight: 700; }
.p-body { padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 10px; }
.p-meta { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 14px; }
.p-main { padding: 10px 12px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line-2); }
.p-main p { margin: 4px 0 0; font-size: 17px; font-weight: 600; white-space: pre-line; }
.p-lbl { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.p-others { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 20px; }
.p-others div { display: flex; flex-direction: column; gap: 2px; }
.p-others span:last-child { white-space: pre-line; }

/* Einstellungen */
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; align-items: start; }
.num-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid #EDEFF2; }
.num-row .val { min-width: 76px; text-align: center; font-weight: 700; }

/* Dialog */
.overlay { position: fixed; inset: 0; background: rgba(20,22,28,.45); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 50; }
.dialog { width: 100%; max-width: 520px; background: var(--white); border-radius: 16px; border-top: 6px solid var(--warn); padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.dialog.neutral { border-top-color: var(--blue); }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 14px; z-index: 60; max-width: calc(100% - 40px); }

/* Fußzeile */
.app-footer { border-top: 1px solid var(--line); background: var(--white); }
.app-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-top: 14px; padding-bottom: 18px; font-size: 13px; color: var(--muted); }
.app-footer nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }

/* Breite */
@media (max-width: 959px) { .only-desktop { display: none !important; } }
@media (min-width: 960px) { .only-mobile { display: none !important; } }
@media (max-width: 640px) {
  .wrap { padding-left: 14px; padding-right: 14px; }
  .h1 { font-size: 24px; }
  .plan-btn { gap: 10px; padding: 8px; }
  .plan-actions .btn-icon { width: 40px; }
  .card { padding: 16px; }
}

/* Druck */
@page { margin: 12mm; }
@media print {
  body { background: #fff; font-size: 12pt; }
  .noprint, .stripe, .tabs, .head-controls, .app-footer, .overlay, .toast { display: none !important; }
  .wrap { max-width: none; padding: 0; }
  .app-header { border: 0; }
  .app-main { padding: 8px 0 0; gap: 10px; }
  .card, .card-flush { border-color: #999; }
  .tbl-wrap { overflow: visible; }
  .tbl { min-width: 0 !important; font-size: 10pt; }
  .tbl th, .tbl td { padding: 5px 6px; }
  .p-card { border-color: #888; }
}

/* Dokumentation */
.doc { padding-top: 28px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 16px; max-width: 980px; }
.doc-head { display: flex; flex-direction: column; gap: 6px; }
.doc-toc { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; }
.doc-sec { display: flex; flex-direction: column; gap: 10px; }
.doc-sec p, .doc-sec ul, .doc-sec ol { margin: 0; }
.doc-sec li { margin: 4px 0; }
.doc-sec .tbl td:first-child, .doc-sec .tbl th:first-child { padding-left: 0; }

/* Version 1.0.1: Programme, Vergleich, Profil */
.title-select { appearance: none; -webkit-appearance: none; max-width: 100%; font: inherit; font-size: 30px; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; color: var(--ink);
  border: 0; border-bottom: 2px dashed var(--line-3); border-radius: 0; background: transparent 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='%23B4122B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 2px center; padding: 2px 34px 4px 0; cursor: pointer; }
.title-select:hover { border-bottom-color: var(--red); }
.title-select option, .title-select optgroup { font-size: 15px; font-weight: 400; }
.title-select optgroup { font-weight: 700; }
.title-select-sm { font-size: 20px; }
.ptabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ptab { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--white); font-size: 14px; font-weight: 700; color: var(--ink-2); }
.ptab svg { color: var(--gold); }
.ptab[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.ptab[aria-current="page"] svg { color: var(--gold); }
.cmp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
@media (max-width: 959px) { .cmp-grid { grid-template-columns: minmax(0, 1fr); } }
.cmp-col .plan-btn { gap: 10px; }
.cmp-col .collisions { margin: 10px; }
.cmp-row .plan-text span.badge { align-self: flex-start; white-space: normal; }
.badge-shared { background: var(--blue-soft); color: var(--blue); margin-top: 2px; }
.badge-arch { background: #E6E9ED; color: var(--ink-2); }
.dialog-wide { max-width: 640px; max-height: calc(100vh - 40px); overflow-y: auto; }
.btn-gold { background: #FFF6DA; border-color: var(--gold); color: #6E4E00; }
.btn-gold svg { color: var(--gold); }
@media (max-width: 640px) { .title-select { font-size: 22px; } .title-select-sm { font-size: 18px; } .tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; } .tab { flex: none; padding: 0 12px; } }
@media print { .ptabs { display: none !important; } .title-select { border: 0; background: none; padding-right: 0; } }

/* Ab Version 1.0.2: freie Datumseingabe */
.flex-row { display: flex; gap: 6px; align-items: center; position: relative; }
.flex-row .input { flex: 1; min-width: 0; }
.picker { position: absolute; right: 0; bottom: 0; width: 44px; height: 44px; opacity: 0; pointer-events: none; border: 0; padding: 0; }
.err-text { color: var(--red-dark); font-weight: 600; }
.ok-text { color: var(--ok-ink); font-weight: 600; }
.tbl-mid td { vertical-align: middle; }

/* Ab Version 1.0.4: Generalprobe */
.gp-chip { flex: none; min-width: 44px; height: 36px; padding: 0 8px; border-radius: 8px; border: 1.5px solid var(--line-2); background: var(--white); color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.gp-chip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.gp-controls { display: flex; align-items: center; gap: 2px; padding: 0 8px 0 0; flex-wrap: wrap; }
.gp-item .plan-text input { font-weight: 700; }
.print-only { display: none !important; }
@media print { .print-only { display: flex !important; } }

/* =====================================================================
   Ab Version 1.0.6: überarbeitete Gestaltung, Kopfbild, Handy-Ansicht
   ===================================================================== */
:root { --radius: 16px; --shadow: 0 1px 2px rgba(16,24,40,.05), 0 4px 14px rgba(16,24,40,.06); --bg: #F2F4F8; }
body { background: var(--bg); }
.stripe { display: none; }
.card, .card-flush, .stat { box-shadow: var(--shadow); border-color: #E6E9EF; }
.card-flush, .card { border-radius: var(--radius); }

/* Kopfbild */
.app-header { background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 2px 10px rgba(16,24,40,.04); }
.hero { position: relative; background-color: #14213D; background-size: cover; background-position: center; color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,16,32,.78) 0%, rgba(10,16,32,.55) 45%, rgba(10,16,32,.15) 100%); }
.hero-inner { position: relative; display: flex; flex-direction: column; gap: 18px; padding-top: 18px; padding-bottom: 22px; min-height: 190px; justify-content: space-between; }
.hero-auth .hero-inner { min-height: 200px; justify-content: center; }
.hero-top { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.eyebrow-light { color: #F6D365; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.hero-title { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hero-h1 { color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.35); }
.hero-info { color: rgba(255,255,255,.92); font-size: 15px; font-weight: 500; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.hero .title-select { color: #fff; border-bottom-color: rgba(255,255,255,.45); text-shadow: 0 2px 6px rgba(0,0,0,.35);
  background-image: 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='%23F6D365' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
.hero .title-select:hover { border-bottom-color: #F6D365; }
.hero .title-select option, .hero .title-select optgroup { color: var(--ink); text-shadow: none; }
.hero .stand { box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.hero .userbox { border: 0; background: rgba(255,255,255,.12); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #fff; padding: 4px 4px 4px 6px; border-radius: 999px; }
.hero .userbox-text { line-height: 1.2; font-size: 13px; }
.hero .userbox-text span { color: rgba(255,255,255,.8); font-size: 12px; }
.hero .avatar { background: #E8B21E; color: #14213D; }
.hero .save-state { color: rgba(255,255,255,.85); }
.hero .save-state.err { color: #FFB4BE; }
.btn-glass { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.28); color: #fff; border-radius: 999px; }
.btn-glass:hover { background: rgba(255,255,255,.28); color: #fff; }

/* Werkzeugleiste und Reiter */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-top: 14px; }
.toolbar .timebox select.input { min-height: 44px; border: 0; background: var(--bg); font-weight: 600; }
.navs { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; }
.navs .ptabs { margin-top: 0; }
.tabs { margin-top: 0; gap: 4px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.tab { flex: none; border-radius: 10px 10px 0 0; padding: 0 14px; }
@media (hover: hover) { .tab:hover { background: var(--bg); } }
.tab[aria-current="page"] { background: transparent; }
.section-head { display: flex; flex-direction: column; gap: 2px; padding-top: 12px; border-top: 2px solid var(--line); margin-top: 8px; }
.toolbar-inline { display: flex; flex-wrap: wrap; gap: 10px; }
.toolbar-inline .input:first-child { flex: 1 1 260px; }
.toolbar-inline select.input { flex: 0 1 220px; }

/* Karten-Raster (Benutzer, Künstler) */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.user-card, .artist-card { display: flex; flex-direction: column; gap: 10px; }
.user-card.wait { border-color: #F0C36A; background: #FFFCF4; }
.user-card .avatar { flex: none; }
.user-card a, .artist-card a { word-break: break-all; }
.artist-name { font-size: 17px; }
.artist-stat { padding: 8px 10px; border-radius: 10px; background: var(--bg); font-size: 13px; }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hist { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }

/* Rollen */
.role-list { display: flex; flex-direction: column; }
.role-row { display: flex; flex-direction: column; gap: 8px; padding: 14px 20px; border-top: 1px solid #EDEFF2; }
.head-preview { height: 110px; border-radius: 12px; background-size: cover; background-position: center; background-color: #14213D; }

/* Ablaufliste: mehr Luft, keine Überlappungen */
.plan-item { box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.plan-text b { font-size: 15px; }
.plan-row { min-width: 0; }
.plan-btn { overflow: hidden; }

/* ---------- Handy ---------- */
@media (max-width: 760px) {
  .hero-inner { min-height: 150px; gap: 12px; padding-top: 12px; padding-bottom: 16px; }
  .hero-top { align-items: flex-start; }
  .hero .userbox { width: 100%; justify-content: space-between; border-radius: 14px; }
  .hero .userbox-text { flex: 1; min-width: 0; }
  .hero .userbox-text b, .hero .userbox-text span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .toolbar { gap: 8px; }
  .toolbar .timebox { flex: 1 1 100%; justify-content: space-between; }
  .toolbar .timebox label { padding: 0 4px; min-width: 76px; }
  .toolbar .timebox .input-time { flex: 1; width: auto; }
  .toolbar .timebox select.input { flex: 1; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stat { padding: 10px 12px; }
  .stat-value { font-size: 20px; }
  .stat-label { font-size: 12px; }
  /* Ablaufzeile: zweizeilig statt gequetscht */
  .plan-row { flex-wrap: wrap; }
  .plan-btn { flex: 1 1 100%; flex-wrap: wrap; gap: 6px 10px; min-height: 0; padding: 10px 10px 4px; }
  .plan-time { width: auto; flex-direction: row; align-items: baseline; gap: 6px; }
  .plan-idx { order: -1; }
  .plan-text { flex: 1 1 100%; order: 3; }
  .plan-text b, .plan-text span { white-space: normal; }
  .plan-btn .badge { order: 2; }
  .plan-btn .chev { order: 2; margin-left: auto; }
  .plan-actions { width: 100%; justify-content: flex-end; padding: 0 6px 6px; gap: 4px; }
  .handle { min-height: 40px; }
  .plan-item:has(.handle) .plan-row { position: relative; }
  .gp-controls { width: 100%; justify-content: flex-end; padding: 0 8px 8px; }
  .gp-item .plan-btn { flex: 1 1 100%; }
  .collision { flex-direction: column; align-items: stretch; }
  .collision .row-wrap .btn { flex: 1 1 auto; }
  .card-head { padding: 14px 16px; }
  .card-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-grid2 > * { flex: 1 1 100%; }
  .num-row { flex-wrap: wrap; }
  .num-row .stepper { width: 100%; justify-content: flex-end; }
  .dialog { padding: 18px 16px; }
  .dialog-actions .btn { flex: 1 1 auto; }
  .print-head { flex-direction: column; align-items: stretch; }
  .print-head .row-wrap { justify-content: space-between; }
  .p-card-head { flex-direction: column; gap: 2px; }
  .p-title { flex: 1 1 auto; }
  .ptab { min-height: 40px; padding: 0 12px; font-size: 13px; }
  .tbl { font-size: 13px; }
  .toolbar-inline select.input { flex: 1 1 45%; }
  .settings-grid { grid-template-columns: minmax(0, 1fr); }
  .role-row { padding: 12px 16px; }
}
@media print {
  .hero { background: none !important; color: var(--ink); min-height: 0; }
  .hero::before, .hero-top, .toolbar, .navs { display: none !important; }
  .hero-inner { min-height: 0; padding: 0; }
  .hero-h1, .hero .title-select, .hero-info { color: var(--ink) !important; text-shadow: none !important; }
  .card, .card-flush, .stat { box-shadow: none; }
}
.hero .title-select { align-self: flex-start; max-width: 100%; }
@media (max-width: 760px) {
  .toolbar .timebox { min-width: 0; }
  .toolbar .timebox .input-time { min-width: 0; width: 0; flex: 1 1 auto; }
  .plan-row { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: start; }
  .plan-row:not(:has(.handle)) { grid-template-columns: minmax(0, 1fr); }
  .plan-row .handle { grid-row: 1 / span 2; min-height: 100%; margin: 0; width: 34px; border-radius: 10px 0 0 10px; }
  .plan-row .plan-btn, .plan-row .plan-actions { grid-column: -2 / -1; }
  .plan-btn { padding: 10px 10px 2px; }
  .plan-actions { padding: 0 6px 6px; }
}

/* 1.0.6: Ansichten als Auswahlmenü (Web & Handy) */
.viewnav { display: flex; align-items: center; gap: 12px; padding: 4px 0 2px; }
.viewnav-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.viewnav-row { display: flex; align-items: stretch; gap: 6px; flex: 1; max-width: 520px; }
.view-select { appearance: none; -webkit-appearance: none; flex: 1; min-width: 0; min-height: 48px; padding: 0 44px 0 16px;
  font: inherit; font-size: 16px; font-weight: 700; color: var(--ink); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23B4122B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1.5px solid var(--line-3); border-radius: 12px; box-shadow: 0 1px 2px rgba(15,23,42,.06); cursor: pointer; text-overflow: ellipsis; }
.view-select:hover { border-color: var(--red); }
.view-select:focus-visible { outline: 3px solid rgba(180,18,43,.25); outline-offset: 1px; border-color: var(--red); }
.view-select option, .view-select optgroup { font-size: 15px; }
.view-select optgroup { font-weight: 700; color: var(--muted); }
.view-select option { font-weight: 400; color: var(--ink); }
.viewnav-step { min-width: 48px; min-height: 48px; font-size: 22px; line-height: 1; border-radius: 12px; }
.viewnav-step[disabled] { opacity: .35; cursor: default; }
@media (max-width: 640px) {
  .viewnav { flex-direction: column; align-items: stretch; gap: 6px; }
  .viewnav-row { max-width: none; }
}
.navs + .toolbar { padding-top: 10px; padding-bottom: 4px; }
/* 1.0.6: Verein & Internetadresse bei Künstlern */
.artist-club { color: var(--ink-2); font-weight: 600; overflow-wrap: anywhere; }
.artist-card a { overflow-wrap: anywhere; }
.btn.is-off { opacity: .4; pointer-events: none; }
a.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }

/* 1.0.7: Kostenübersicht */
.cost-card { padding-bottom: 8px; }
.cost-table { display: flex; flex-direction: column; margin-top: 8px; }
.cost-row { display: grid; grid-template-columns: 40px minmax(0, 2.2fr) 130px 104px 100px 110px 92px minmax(0, 1.4fr); gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.cost-head { border-top: 0; padding: 6px 0; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.cost-row .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cost-row .input { min-height: 40px; font-size: 15px; }
.cost-amt .input { text-align: right; font-variant-numeric: tabular-nums; }
.cost-no { font-weight: 700; color: var(--muted); }
.cost-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cost-name b { overflow-wrap: anywhere; }
.cost-amt { display: flex; flex-direction: column; gap: 2px; align-items: flex-end; }
.cost-src { color: var(--muted); }
.cost-src-db { color: var(--blue, #1D4ED8); }
.cost-src-eigen { color: #9A5B00; }
.cost-src-fest { color: #14532D; }
.cost-src-none { color: var(--red); }
.cost-row.is-none .cost-name b { color: var(--ink-2); }
.cost-sum { border-top: 2px solid var(--line-3); font-size: 15px; }
.cost-lbl { display: none; }
.cost-paid .check { min-height: 40px; font-size: 13px; gap: 6px; }
.cost-total { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; border-left: 4px solid var(--red); }
.cost-total-v { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }
.seg-sm button { min-height: 36px; padding: 0 10px; font-size: 13px; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--red); text-decoration: underline; cursor: pointer; }
.input.is-bad { border-color: var(--red); background: #FFF1F2; }
.stat-warn .stat-value { color: #B45309; }
@media screen and (max-width: 900px) {
  .cost-head { display: none; }
  .cost-row { grid-template-columns: 30px minmax(0, 1fr) minmax(0, 1fr); gap: 8px 10px; padding: 14px 0; }
  .cost-no { grid-row: span 4; align-self: start; padding-top: 2px; }
  .cost-name { grid-column: 2 / 4; }
  .cost-amt { grid-column: 2; align-items: stretch; }
  .cost-vat { grid-column: 3; }
  .cost-net, .cost-gross { text-align: left !important; }
  .cost-lbl { display: inline; color: var(--muted); font-size: 12px; }
  .cost-paid { grid-column: 2; }
  .cost-note { grid-column: 3; }
  .cost-sum { grid-template-columns: 30px minmax(0, 1fr) minmax(0, 1fr); }
  .cost-sum > span:empty { display: none; }
  .cost-sum > span:nth-child(2) { grid-column: 2 / 4; }
  .cost-sum > span:nth-child(5) { grid-column: 2; }
  .cost-sum > span:nth-child(6) { grid-column: 3; }
}
@media print {
  .cost-row { grid-template-columns: 30px minmax(0, 2.4fr) 90px 60px 90px 90px 60px minmax(0, 1.4fr); padding: 5px 0; font-size: 11px; }
  .cost-row .input { border: 0; min-height: 0; padding: 0; background: none; font-size: 11px; }
  .cost-row .input::placeholder { color: transparent; }
  .cost-src { display: none; }
  .cost-head { display: grid !important; }
  .cost-lbl { display: none !important; }
  .cost-total-v { font-size: 20px; }
}
@media print {
  .title-select, .hero .title-select { background: none !important; padding-right: 0 !important; }
  .cost-vat .seg { background: none; padding: 0; }
  .cost-vat .seg button { min-height: 0; padding: 0; box-shadow: none !important; background: none !important; font-weight: 400; font-size: 11px; }
  .cost-vat .seg button[aria-pressed="false"] { display: none; }
}
@media print { .cost-print { display: block !important; margin: 4px 0 8px; } }

/* 1.0.8: Kosten-Kachel, Künstlerdaten im Programmablauf, Vorgaben */
.stat-link { font: inherit; text-align: left; cursor: pointer; border: 1px solid var(--line); width: 100%; }
@media (hover: hover) { .stat-link:hover { border-color: var(--red); box-shadow: 0 2px 8px rgba(180,18,43,.12); } }
.stat-link:focus-visible { outline: 3px solid rgba(180,18,43,.25); }
.stat-sub { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.artist-info { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border: 1px solid #C7D7F5; border-left: 4px solid var(--blue, #1D4ED8); border-radius: 10px; background: #F5F8FF; margin-top: -4px; }
.artist-info-head { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; }
.artist-info-links { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.artist-info-links a { overflow-wrap: anywhere; }
.prog-defaults { border-top: 1px solid var(--line); padding-top: 6px; }
.prog-defaults > summary { cursor: pointer; list-style: revert; }

/* 1.0.9: Kosten-Druck als schlichte Tabelle */
.cpt { width: 100%; border-collapse: collapse; font-size: 10.5pt; margin: 6px 0 8px; }
.cpt th { text-align: left; font-size: 8.5pt; text-transform: uppercase; letter-spacing: .03em; border-bottom: 1.5pt solid #000; padding: 3pt 4pt; }
.cpt td { border-bottom: .5pt solid #bbb; padding: 3pt 4pt; vertical-align: top; }
.cpt .r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cpt .m { font-size: 9pt; color: #444; }
.cpt tr.s td { font-weight: 700; border-top: 1pt solid #000; }
.cpt tr.g td { font-weight: 700; padding-top: 10pt; border-bottom: 1pt solid #000; }
.cpt tr.t td { font-weight: 800; font-size: 11.5pt; border-top: 2pt solid #000; border-bottom: 0; }
.cpt tr { break-inside: avoid; }
@media print { .cost-print-sheet { display: block !important; } }

/* 1.0.10: Kostenübersicht – zwei Darstellungen */
.cost-v2 { gap: 12px; }
.ct-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; }
.ct-top-l { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ct-top-r { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ct-layout { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.ct-layout select { min-height: 40px; width: auto; font-weight: 600; color: var(--ink); }
.ct-lbl { display: block; font-size: 12px; color: var(--muted); }
.ct-big { display: block; font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.15; white-space: nowrap; }
.ct-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding: 14px 18px; }
.ct-sum-item b { font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ct-sum-pay { flex: 1 1 260px; min-width: 220px; display: flex; flex-direction: column-reverse; gap: 6px; }
.ct-paybar { height: 8px; border-radius: 4px; background: var(--warn-soft); overflow: hidden; }
.ct-paybar i { display: block; height: 8px; background: var(--ok); }
.ct-paytext { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ct-paid { color: var(--ok-ink); } .ct-open { color: var(--warn-ink); }
.ct-card { overflow: hidden; padding: 0; }
.ct-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.ct-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.ct-chip { min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--white); color: var(--ink-2); font-size: 13px; font-weight: 600; }
.ct-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.ct-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) 170px 110px 48px 28px; gap: 10px; align-items: center; padding: 0 14px; min-height: 42px; border-bottom: 1px solid #EEF0F3; cursor: pointer; }
.ct-row.ct-net { grid-template-columns: 36px minmax(0, 1fr) 170px 100px 110px 48px 28px; }
@media (hover: hover) { .ct-row:not(.ct-head):not(.ct-foot):hover, .cl-row:hover { background: #FAFAFB; } }
.ct-row:focus-visible, .cl-row:focus-visible { outline: 3px solid rgba(180,18,43,.25); outline-offset: -3px; }
.ct-row.is-open, .cl-row.is-open { background: var(--red-soft) !important; }
.ct-head { cursor: default; min-height: 34px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.ct-foot { cursor: default; min-height: 46px; background: var(--bg); border-bottom: 0; font-variant-numeric: tabular-nums; }
.ct-row .r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ct-row .c { text-align: center; }
.ct-no { font-size: 13px; font-weight: 700; color: var(--muted); }
.ct-name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.ct-who { color: var(--muted); }
.ct-sub { display: none; }
.ct-amt { font-size: 14px; }
.ct-vat { font-size: 12px; color: var(--muted); }
.ct-netv { font-size: 13px; color: var(--muted); }
.ct-gross { font-size: 14px; font-weight: 700; }
.ct-row.is-none .ct-name b { color: var(--ink-2); font-weight: 600; }
.ct-note { color: var(--muted); display: flex; justify-content: center; }
.ct-tag { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 6px; vertical-align: 1px; }
.ct-tag-db { background: var(--blue-soft); color: var(--blue); }
.ct-tag-abw { background: var(--warn-soft); color: var(--warn-ink); }
.ct-tag-fest { background: var(--ok-soft); color: var(--ok-ink); }
.ct-paidbtn { width: 28px; height: 28px; border-radius: 14px; border: 1.5px solid var(--line-3); background: var(--white); color: var(--ok-ink); font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; padding: 0; position: relative; }
.ct-paidbtn::after { content: ''; position: absolute; inset: -8px; }
.ct-paidbtn.is-paid { background: var(--ok-soft); border-color: var(--ok); }
@media (hover: hover) { .ct-paidbtn:not(.is-paid):hover { border-color: var(--ok); } }
.ct-edit { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; padding: 12px 14px 14px 60px; background: var(--red-soft); border-bottom: 1px solid var(--red-line); }
.ct-f { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.ct-f .input { min-height: 40px; }
.ct-num { width: 130px; text-align: right; font-variant-numeric: tabular-nums; }
.ct-f-grow { flex: 1 1 220px; }
.ct-f-chk { min-height: 40px; }
.ct-f-txt { align-self: flex-end; min-height: 40px; display: flex; align-items: center; }
.ct-edit-foot { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; justify-content: flex-end; }
.ct-edit-foot > .xs { margin-right: auto; }
.ct-none { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #FAFAFB; font-size: 13px; }
.ct-none b { color: var(--red); }
.ct-nonechip { min-height: 30px; padding: 0 10px; border-radius: 999px; border: 1px dashed var(--line-3); background: var(--white); font-size: 12.5px; color: var(--ink-2); }
@media (hover: hover) { .ct-nonechip:hover { border-color: var(--red); color: var(--red); } }
.ct-group { padding: 8px 14px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); background: var(--bg); border-bottom: 1px solid var(--line); }
.ct-addrow { padding: 8px 14px; border-bottom: 1px solid var(--line); }
.ct-addrow .linkbtn { font-size: 13px; font-weight: 600; text-decoration: none; min-height: 32px; }
.ct-empty { padding: 16px 14px; }
/* Liste mit Summen-Spalte */
.cl-wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.cl-list { flex: 999 1 560px; min-width: 0; overflow: hidden; padding: 0; }
.cl-side { flex: 1 1 300px; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 12px; }
.cl-row { display: flex; align-items: center; gap: 12px; padding: 9px 14px; border-bottom: 1px solid #EEF0F3; cursor: pointer; min-height: 48px; }
.cl-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.cl-main b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-right { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cl-right b { font-size: 15px; }
.cl-state { font-size: 12px; font-weight: 700; }
.st-paid { color: var(--ok-ink); } .st-open { color: var(--warn-ink); } .st-zero, .st-none { color: var(--muted); font-weight: 400; }
.cl-sumcard { display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.cl-sumcard .ct-big { font-size: 30px; }
.cl-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; font-variant-numeric: tabular-nums; }
.cl-nonecard { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-color: var(--red-line); }
.cl-none-h { color: var(--red); font-size: 14px; }
.cl-none-list { display: flex; flex-wrap: wrap; gap: 6px; }
@media screen and (max-width: 760px) {
  .ct-top { padding: 12px 14px; }
  .ct-top-r { width: 100%; }
  .ct-layout { flex: 1 1 100%; }
  .ct-layout select { flex: 1; }
  .ct-top-r .btn { flex: 1 1 auto; }
  .ct-sum { gap: 8px 20px; padding: 12px 14px; }
  .ct-big { font-size: 22px; }
  .ct-head { display: none; }
  .ct-row, .ct-row.ct-net { grid-template-columns: 24px minmax(0, 1fr) auto 32px; gap: 8px; padding: 8px 12px; min-height: 52px; }
  .ct-row > .ct-amt, .ct-row > .ct-netv, .ct-row > .ct-note { display: none; }
  .ct-name { white-space: normal; }
  .ct-name .ct-who { display: none; }
  .ct-sub { display: block; font-size: 12px; color: var(--muted); }
  .ct-foot > span:empty { display: none; }
  .ct-foot, .ct-foot.ct-net { grid-template-columns: minmax(0, 1fr) auto; }
  .ct-foot.ct-net { grid-template-columns: minmax(0, 1fr) auto auto; }
  .ct-edit { padding: 12px; }
  .ct-num { width: 100%; }
  .ct-f { flex: 1 1 140px; }
  .cl-side { position: static; order: -1; }
  .cl-row { padding: 9px 12px; gap: 10px; }
  .ct-toolbar { padding: 10px 12px; }
  .ct-filters { flex-wrap: wrap; }
  .ct-toolbar > .btn { display: none; }
}

/* 1.0.11: Angemeldet bleiben */
.login-remember { align-items: flex-start; min-height: 0; padding: 4px 0; cursor: pointer; }
.login-remember input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--red); }
.login-remember > span { display: flex; flex-direction: column; gap: 2px; font-weight: 600; }
.login-remember-hint { font-weight: 400; }

/* 1.0.12: Programmliste im Hochformat als Karten */
.prog-tbl { min-width: 760px; }
.prog-tbl tr.is-cur td { background: var(--red-soft); }
.prog-open-hint { display: block; color: var(--red); font-weight: 600; margin-top: 2px; }
@media screen and (max-width: 640px) {
  .tbl-stack, .prog-tbl { min-width: 0 !important; width: 100%; }
  .tbl-stack thead { display: none; }
  .tbl-stack, .tbl-stack tbody, .tbl-stack tr, .tbl-stack td { display: block; }
  .tbl-stack tr { padding: 12px 16px 14px; border-bottom: 1px solid var(--line); }
  .tbl-stack tr.is-cur { background: var(--red-soft); }
  .tbl-stack td { padding: 3px 0; border: 0 !important; background: transparent !important; }
  .tbl-stack td[data-label] { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; }
  .tbl-stack td[data-label]::before { content: attr(data-label); font-size: 13px; color: var(--muted); }
  .tbl-stack td.tbl-stack-empty { display: none; }
  .tbl-stack td.prog-name { font-size: 16px; padding-bottom: 6px; }
  .tbl-stack td.prog-actions { padding-top: 8px; }
  .tbl-stack td.prog-actions .row-wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tbl-stack td.prog-actions .btn { width: 100%; min-height: 44px; justify-content: center; }
  .tbl-stack td.prog-actions .btn:first-child { grid-column: 1 / -1; }
  .tbl-stack td[data-label] .btn { min-height: 40px; }
}

/* 1.0.12: Bearbeitungstabellen (Einstellungen) im Hochformat */
@media screen and (max-width: 640px) {
  .tbl-auto td[data-label] { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 44px; }
  .tbl-auto td[data-label]::before { font-weight: 600; }
  .tbl-auto td[data-label] > * { min-width: 0; justify-self: start; }
  .tbl-auto td .input, .tbl-auto td select.input { min-width: 0 !important; width: 100%; justify-self: stretch; }
  .tbl-auto td .row-wrap { flex-wrap: wrap; }
  .tbl-auto td.tbl-stack-nolabel { display: block; }
  .tbl-auto tr { display: block; }
  .tbl-auto tr + tr { border-top: 6px solid var(--bg); }
}
@media screen and (max-width: 640px) {
  .tbl-auto tr.sum td { display: block; padding: 2px 0; }
  .tbl-auto tr.sum td:empty { display: none; }
  .crew-tbl td.strong:first-child { font-size: 18px; }
  .crew-tbl td .btn { min-height: 40px; }
}
@media screen and (max-width: 640px) {
  .tbl-stack td, .tbl-stack td:first-child, .tbl-stack td:last-child { padding-left: 0 !important; padding-right: 0 !important; text-align: left !important; }
  .tbl-stack tr { padding-left: 16px; padding-right: 16px; }
}

/* 1.0.13: Fenster an die sichtbare Höhe anpassen, Knopfleiste immer sichtbar */
.overlay { padding: 16px; }
.dialog { max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; padding-bottom: 0; }
.dialog-wide { max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); }
.dialog > .dialog-actions:last-child { position: sticky; bottom: 0; z-index: 3; background: var(--white); margin: 4px -24px 0; padding: 12px 24px 18px; border-top: 1px solid var(--line); box-shadow: 0 -8px 16px -12px rgba(0,0,0,.25); }
.dialog > :last-child:not(.dialog-actions) { margin-bottom: 22px; }
@media (max-width: 760px) {
  .overlay { padding: 8px; align-items: flex-end; }
  .dialog { max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); border-radius: 16px 16px 12px 12px; }
  .dialog-wide { max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); }
  .dialog > .dialog-actions:last-child { margin: 4px -16px 0; padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px)); }
  .dialog > :last-child:not(.dialog-actions) { margin-bottom: 18px; }
}

/* 1.0.13: Kostenaufstellung als Ausdruck */
.cost-print-screen { display: block; padding: 22px 24px; }
.cost-print-screen .cpt { font-size: 14px; }
.cost-print-screen .cpt th { font-size: 11px; }
.cost-print-screen .cpt .m { font-size: 12.5px; }
.cpt-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cost-print-screen .cpt { min-width: 620px; }
.cpt-sign { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; font-size: 12px; color: var(--muted); }
.cpt-sign span { display: block; border-bottom: 1px solid #000; height: 34px; margin-bottom: 4px; }
@media print {
  .cost-print-screen { border: 0 !important; box-shadow: none !important; padding: 0 !important; }
  .cost-print-screen .cpt { min-width: 0; font-size: 10.5pt; }
  .cost-print-screen .cpt th { font-size: 8.5pt; }
  .cost-print-screen .cpt .m { font-size: 9pt; }
  .cpt-wrap { overflow: visible; }
  .cpt-sign { color: #000; font-size: 9pt; break-inside: avoid; }
}
@media screen and (max-width: 640px) {
  .cost-print-screen { padding: 16px; }
  .cpt-sign { grid-template-columns: 1fr; gap: 14px; }
}

/* 1.0.15: Vereinswappen – ragt über die Kante zwischen Kopfbild und Seite */
.hero-logo { position: absolute; right: 24px; bottom: -48px; z-index: 6; height: 128px; width: auto; filter: drop-shadow(0 8px 16px rgba(5,10,30,.45)); pointer-events: none; user-select: none; }
.hero-logo-center { right: auto; left: 50%; transform: translateX(-50%); bottom: -52px; height: 112px; }
.auth-wrap-logo { padding-top: 72px !important; }
.hero-auth .hero-inner { padding-bottom: 66px; }
.navs { position: relative; z-index: 1; }
@media (max-width: 760px) {
  .hero-logo { right: 14px; bottom: -30px; height: 76px; }
  .hero-logo-center { right: auto; bottom: -40px; height: 86px; }
  .auth-wrap-logo { padding-top: 56px !important; }
  .hero-auth .hero-inner { padding-bottom: 52px; }
  .viewnav-label { padding-right: 84px; }
}
@media print {
  .hero-logo { position: absolute; right: 0; top: 0; bottom: auto; height: 60px; filter: none; }
  .hero-logo-center { display: none; }
}

/* 1.0.15: Kategorien bearbeitbar */
.cat-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px 16px; }
.cat-row { display: flex; align-items: center; gap: 8px; }
.cat-row .input { flex: 1; min-width: 0; min-height: 40px; }
.cat-count { white-space: nowrap; min-width: 64px; text-align: right; }

/* 1.0.16: helles Standard-Kopfbild (Fastnachtsfarben) -> dunkle Schrift */
.hero-light { background-color: #FBF8F1; color: #13235B; }
.hero-light::before { background: linear-gradient(90deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.78) 35%, rgba(255,255,255,.25) 70%, rgba(255,255,255,0) 100%); }
.hero-light .eyebrow-light { color: #C8102E; }
.hero-light .hero-h1, .hero-light .title-select { color: #13235B; text-shadow: 0 1px 0 rgba(255,255,255,.8); }
.hero-light .title-select { border-bottom-color: rgba(19,35,91,.3); }
.hero-light .title-select:hover { border-bottom-color: #C8102E; }
.hero-light .hero-info { color: #2C3A5E; text-shadow: none; }
.hero-light .userbox { background: rgba(255,255,255,.82); color: #13235B; box-shadow: 0 2px 10px rgba(19,35,91,.12); border: 1px solid rgba(19,35,91,.10); }
.hero-light .userbox-text span, .hero-light .save-state { color: #4A5675; }
.hero-light .save-state.err { color: #C8102E; }
.hero-light .avatar { background: #13235B; color: #F7C21B; }
.hero-light .btn-glass { background: #FFFFFF; color: #13235B; border: 1px solid rgba(19,35,91,.18); }
@media (hover: hover) { .hero-light .btn-glass:hover { background: #EEF2FB; border-color: #13235B; } }
.hero-light .title-select { background-image: 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='%23C8102E' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
.hero-light .hero-logo { filter: drop-shadow(0 6px 14px rgba(19,35,91,.28)); }
.app-header:has(.hero-light) { border-bottom-color: #E6E2D6; }
/* Logo-Vorschau in den Einstellungen */
.logo-preview { display: flex; gap: 10px; flex-wrap: wrap; }
.logo-preview > span { display: flex; align-items: center; justify-content: center; width: 120px; height: 120px; border-radius: 12px; border: 1px solid var(--line); }
.logo-prev-light { background: #FBF8F1; }
.logo-prev-dark { background: #14213D; }
.logo-preview img { max-width: 96px; max-height: 96px; width: auto; height: auto; }

/* 1.0.20: Künstler-Anzeigemodus */
.av-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 4px; }
.av-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.av-title .h2 { overflow-wrap: anywhere; }
.av-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 2px; }
.av-links .btn { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.av-dl { display: grid; grid-template-columns: minmax(120px, max-content) minmax(0, 1fr); gap: 6px 16px; margin: 0 0 4px; font-size: 14px; }
.av-dl dt { color: var(--muted); }
.av-dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.av-note { margin: 0 0 4px; font-size: 14px; }
.av .section-label { margin-top: 10px; }
.av .dialog-actions .av-del { margin-right: auto; }
@media (max-width: 760px) {
  .av-dl { grid-template-columns: 1fr; gap: 0; }
  .av-dl dt { margin-top: 8px; font-size: 12px; }
  .av .dialog-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .av .dialog-actions .btn { width: 100%; justify-content: center; margin: 0; }
}

/* 1.0.21: Künstlerdatenbank als eigener Bereich – Zeilen nach Kategorien */
.ar-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.ar-stats { display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 2px 4px; font-size: 14px; color: var(--ink-2); }
.ar-stats b { font-size: 18px; color: var(--ink); font-variant-numeric: tabular-nums; }
.ar-list { padding: 0; overflow: hidden; }
.ar-cat { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 16px; font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ink); background: var(--bg); border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); }
.ar-cat:first-child { border-top: 0; }
.ar-cat-n { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; letter-spacing: 0; }
.ar-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr) minmax(0, 1.1fr) minmax(0, 1fr) 120px 92px; gap: 12px; align-items: center; padding: 9px 16px; border-bottom: 1px solid #EEF0F3; font-size: 13.5px; }
.ar-list:not(:has(.ar-cost)) .ar-row { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr) minmax(0, 1.2fr) 130px 92px; }
.ar-row:last-child { border-bottom: 0; }
@media (hover: hover) { .ar-row:hover { background: #FAFAFB; } }
.ar-main { display: flex; flex-direction: column; min-width: 0; }
.ar-name { all: unset; cursor: pointer; font-size: 15px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.ar-name:hover { color: var(--red); text-decoration: underline; }
.ar-name:focus-visible { outline: 3px solid rgba(180,18,43,.25); border-radius: 4px; }
.ar-sub, .ar-contact { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.ar-facts { color: var(--ink-2); overflow-wrap: anywhere; }
.ar-cost { font-variant-numeric: tabular-nums; font-weight: 600; }
.ar-hist { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-act { text-align: right; }
@media (max-width: 900px) {
  .ar-row, .ar-list:not(:has(.ar-cost)) .ar-row { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 10px 14px; }
  .ar-main { grid-column: 1; grid-row: 1; }
  .ar-act { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
  .ar-facts, .ar-cost, .ar-hist { grid-column: 1; font-size: 12.5px; }
  .ar-contact { display: none; }
  .ar-cat { padding: 9px 14px; }
}
/* Sortierbare Kategorien */
.cat-sort { display: flex; flex-direction: column; gap: 6px; }
.cat-srow { display: flex; align-items: center; gap: 6px; }
.cat-srow .input { flex: 1; min-width: 0; min-height: 40px; }
.cat-pos { width: 22px; text-align: right; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.cat-srow .btn-icon { min-width: 40px; min-height: 40px; font-size: 16px; }
@media (max-width: 640px) { .cat-srow .cat-count { display: none; } }
.ar-cost { display: flex; flex-direction: column; line-height: 1.3; }
.ar-cost-sub { font-size: 11.5px; font-weight: 400; color: var(--muted); }
@media (max-width: 900px) { .ar-cost { flex-direction: row; flex-wrap: wrap; gap: 0 6px; align-items: baseline; } }
@media (max-width: 760px) { .hero-title { padding-right: 88px; } }

/* 1.0.22: Bereichsumschalter Sitzungsprogramm | Künstlerdatenbank */
.navs-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.areasw { display: inline-flex; padding: 4px; gap: 4px; border-radius: 14px; background: #EEF0F4; border: 1px solid var(--line); }
.areasw button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.areasw button[aria-pressed="true"] { background: var(--white); color: var(--red); box-shadow: 0 1px 3px rgba(15,23,42,.14); }
@media (hover: hover) { .areasw button[aria-pressed="false"]:hover { color: var(--ink); background: rgba(255,255,255,.6); } }
.areasw button:focus-visible { outline: 3px solid rgba(180,18,43,.25); }
.navs-row .viewnav { flex: 1 1 420px; }
@media (max-width: 760px) {
  .navs-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .areasw { display: grid; grid-template-columns: 1fr 1fr; }
  .areasw button { justify-content: center; padding: 0 8px; font-size: 13.5px; gap: 6px; }
  .navs-row .viewnav { flex: none; }
}
@media (max-width: 760px) {
  .navs:has(.areasw) { padding-top: 40px; }
  .areasw { width: 100%; box-sizing: border-box; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .areasw button { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 13px; padding: 0 6px; }
  .areasw button svg { flex: none; }
}
.navs-row > * { min-width: 0; }
.navs-row .viewnav-row { min-width: 0; }
@media (max-width: 760px) { .navs-row .viewnav { width: 100%; } }
/* 1.0.23: Kachel-Editor */
.tile-prev { width: 170px; min-width: 170px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) { .tile-prev { display: none; } }
/* 1.0.24: frisch angelegte Zeile kurz hervorheben */
@keyframes rowNew { from { background: #FFF2C2; } to { background: transparent; } }
tr.row-new td { animation: rowNew 2.4s ease-out; }

/* 1.0.25/1.0.26: Kopfbereich aufgeräumt – eingeklappt nur Profil-Symbol, aufgeklappt die frühere Leiste */
.usermenu { margin-left: auto; display: flex; justify-content: flex-end; }
.avatar-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; border: 2px solid rgba(255,255,255,.85); border-radius: 50%; background: transparent; cursor: pointer; box-shadow: 0 2px 10px rgba(5,10,30,.25); transition: transform .12s ease; }
.avatar-btn .avatar { width: 40px; height: 40px; font-size: 14px; }
@media (hover: hover) { .avatar-btn:hover { transform: scale(1.06); } }
.avatar-btn:focus-visible, .avatar-toggle:focus-visible { outline: 3px solid rgba(180,18,43,.45); outline-offset: 2px; }
.hero-light .avatar-btn { border-color: #fff; box-shadow: 0 2px 10px rgba(19,35,91,.2); }
.save-dot { position: absolute; right: -1px; bottom: -1px; width: 13px; height: 13px; border-radius: 50%; background: #1F8A4C; border: 2px solid #fff; }
.save-dot.busy { background: #E0A100; }
.save-dot.err { background: #C8102E; animation: dotPulse 1.2s ease-in-out infinite; }
@keyframes dotPulse { 50% { transform: scale(1.3); } }
/* Aufgeklappte Leiste = bisherige .userbox; das Symbol darin klappt wieder ein */
.avatar-toggle { border: 0; padding: 0; cursor: pointer; font: inherit; font-weight: 700; }
.userbox-inline { animation: userboxOpen .28s cubic-bezier(.2,.8,.2,1); }
@keyframes userboxOpen { from { clip-path: inset(0 0 0 calc(100% - 46px) round 23px); opacity: .6; } to { clip-path: inset(0 0 0 0 round 10px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .userbox-inline { animation: none; } }
@media print { .usermenu { display: none !important; } }
@media (max-width: 760px) { .usermenu.open { flex: 1 1 100%; } .usermenu.open .userbox { width: 100%; } }

/* 1.0.27: Teilnahmen mit Jahr und Sprung ins Programm */
.ar-years { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.ar-hist { white-space: normal; }
.hist li { display: flex; flex-direction: column; gap: 2px; }
.hist-go { all: unset; cursor: pointer; display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; border-radius: 6px; padding: 2px 4px; margin: -2px -4px; }
.hist-go:hover .hist-prog, .hist-go:hover .hist-date { color: var(--red); text-decoration: underline; }
.hist-go:focus-visible { outline: 3px solid rgba(180,18,43,.3); }
.hist-date { font-weight: 800; color: var(--red); font-variant-numeric: tabular-nums; }
.hist-prog { font-weight: 700; color: var(--ink); }

/* 1.0.27: Bewertung (Sterne) */
.stars { display: inline-flex; gap: 1px; font-size: 16px; line-height: 1; vertical-align: -1px; letter-spacing: 0; }
.stars-sm { font-size: 13px; }
.stars i { font-style: normal; color: #D5D9E0; }
.stars i.s-full { color: #F2A900; }
.stars i.s-half { background: linear-gradient(90deg, #F2A900 50%, #D5D9E0 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ar-rating { display: flex; align-items: baseline; gap: 5px; margin-top: 2px; font-size: 12.5px; }
.rt-val { font-variant-numeric: tabular-nums; }
.rt-n { color: var(--muted); font-size: 12px; }
.rt-none { color: var(--muted); font-size: 12px; font-style: italic; }
.av-rating { display: flex; align-items: baseline; gap: 6px; margin: 2px 0 4px; }
.av-rating .stars { font-size: 18px; }
.hist-rating { display: block; margin-top: 2px; }
.hist-note { color: var(--ink-2); font-style: italic; }
.rate-row { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.rate-star { width: 40px; height: 40px; border: 0; background: transparent; font-size: 28px; line-height: 1; color: #D5D9E0; cursor: pointer; border-radius: 8px; padding: 0; transition: transform .1s ease, color .1s ease; }
.rate-star.on { color: #F2A900; }
@media (hover: hover) { .rate-row:hover .rate-star:not([disabled]) { color: #F6C64F; } .rate-row .rate-star:hover ~ .rate-star:not([disabled]) { color: #D5D9E0; } .rate-star:not([disabled]):hover { transform: scale(1.12); } }
.rate-star:focus-visible { outline: 3px solid rgba(180,18,43,.3); }
.rate-star[disabled] { cursor: default; }
.rate-txt { margin-left: 8px; }
.plan-text b .stars { margin-left: 4px; }
@media print { .stars i.s-full, .stars i.s-half { color: #000; -webkit-text-fill-color: #000; background: none; } }

/* 1.0.28: Druckansicht „Nur Programm“ */
.po-list { list-style: none; margin: 0; padding: 6px 0; }
.po-row { display: flex; align-items: baseline; gap: 12px; padding: 9px 18px; border-bottom: 1px solid var(--line); }
.po-row:last-child { border-bottom: 0; }
.po-row.pause { background: var(--bg-2, #F4F6F9); }
.po-row.pause .po-main b { font-weight: 600; font-style: italic; }
.po-time { flex: none; width: 108px; font-weight: 700; }
.po-idx { flex: none; width: 28px; text-align: right; color: var(--muted); font-weight: 700; }
.po-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.po-main b { font-size: 16px; }
.po-dur { flex: none; }
.plan-end { white-space: nowrap; }
@media (max-width: 640px) {
  .po-row { flex-wrap: wrap; gap: 4px 10px; padding: 9px 14px; }
  .po-time { width: auto; }
  .po-idx { order: -1; width: auto; }
  .po-main { flex-basis: 100%; }
}
@media print {
  .po-list { border: 0; box-shadow: none; padding: 0; }
  .po-row { padding: 6px 2px; break-inside: avoid; }
  .po-row.pause { background: #EEE; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .po-main b { font-size: 13pt; }
}
.po-noend .po-time { width: 56px; }

/* 1.0.29: Farbbalken je Kategorie */
.ar-cat { --cat: #8A919E; position: relative; color: var(--cat); background: color-mix(in srgb, var(--cat) 11%, #fff); border-left: 6px solid var(--cat); padding-left: 14px; border-top-color: color-mix(in srgb, var(--cat) 25%, #fff); border-bottom-color: color-mix(in srgb, var(--cat) 30%, #fff); }
.ar-cat > span:first-child { color: color-mix(in srgb, var(--cat) 78%, #000); }
.ar-cat .ar-cat-n { color: #fff; background: var(--cat); border-color: var(--cat); }
.ar-list .ar-cat:not(:first-child) { margin-top: 10px; border-top: 1px solid color-mix(in srgb, var(--cat) 25%, #fff); }
.cpt tr.g td { border-left: 5px solid var(--cat, #000); background: color-mix(in srgb, var(--cat, #888) 10%, #fff); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.cat-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--cat, #8A919E); margin-right: 6px; vertical-align: 0; flex: none; }
@media print { .ar-cat, .cat-dot { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* 1.0.29: Auswertung Bewertungen */
.rv-filter { display: grid; grid-template-columns: minmax(180px, 1.6fr) repeat(5, minmax(130px, 1fr)); gap: 10px; align-items: end; }
.rv-f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rv-f > span { font-size: 12px; font-weight: 700; color: var(--muted); }
.rv-f .input { width: 100%; min-width: 0; }
.rv-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.rv-kpi b { font-size: 24px; font-variant-numeric: tabular-nums; }
.rv-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; }
.rv-dist, .rv-cats { display: flex; flex-direction: column; gap: 10px; }
.rv-bar { display: grid; grid-template-columns: 82px minmax(0, 1fr) 82px; align-items: center; gap: 10px; }
.rv-track { height: 14px; background: #EEF0F3; border-radius: 999px; overflow: hidden; }
.rv-track i { display: block; height: 100%; background: #F2A900; border-radius: 999px; min-width: 2px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.rv-bn { font-size: 13px; }
.rv-ctbl { min-width: 0 !important; }
.rv-ctbl td, .rv-ctbl th { padding: 7px 8px; }
.rv-notes { color: var(--ink-2); font-style: italic; max-width: 320px; }
.rv-tbl .ar-name, .rv-tbl2 .ar-name { font-size: 14.5px; }
.rv-tbl .hist-go, .rv-tbl2 .hist-go { text-align: left; }
@media (max-width: 1100px) { .rv-filter { grid-template-columns: repeat(3, minmax(0, 1fr)); } .rv-filter .rv-q { grid-column: 1 / -1; } }
@media (max-width: 860px) { .rv-two { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .rv-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rv-bar { grid-template-columns: 72px minmax(0, 1fr) 70px; gap: 8px; } .rv-notes { max-width: none; } }
@media print { .rv-two { grid-template-columns: 1fr 1.2fr; } .rv-tbl, .rv-tbl2 { min-width: 0 !important; } }
@media (max-width: 560px) { .rv-ctbl .stars { display: none; } .rv-ctbl td b::after { content: ' ★'; color: #F2A900; } .rv-ctbl th, .rv-ctbl td { padding: 7px 5px; } .rv-cats { overflow-x: auto; } }
@media print {
  .rv-two { grid-template-columns: 1fr 1fr !important; gap: 10px; }
  .rv-bar { grid-template-columns: 62px minmax(60px, 1fr) 62px; gap: 6px; }
  .rv-bn { font-size: 9pt; }
  .rv-track { background: #E6E8EC; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .rv-kpis { grid-template-columns: repeat(5, 1fr); gap: 8px; }
  .rv-kpi { padding: 8px 10px; }
  .rv-kpi b { font-size: 16pt; }
  .rv-tbl, .rv-tbl2, .rv-ctbl { font-size: 9pt; }
  .rv-tbl th, .rv-tbl td, .rv-tbl2 th, .rv-tbl2 td { padding: 4px 5px; }
  .rv-tbl .ar-name, .rv-tbl2 .ar-name { font-size: 10pt; overflow-wrap: normal; }
  .rv .hist-go .hist-prog::after { content: ''; }
}

/* 1.0.31: Präsente je Programmpunkt + Präsente-Liste */
.gift-field { gap: 6px; }
.gift-rows { display: flex; flex-direction: column; gap: 8px; }
.gift-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 8px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg); }
.gift-row .stepper { flex: none; }
.gift-row .input-num { width: 64px; text-align: center; font-weight: 700; }
.gift-qn { width: 72px !important; }
.gift-times { font-weight: 700; color: var(--muted); }
.gift-sel { flex: 1 1 170px; min-width: 0; }
.gift-txt { flex: 1 1 170px; min-width: 0; }
.gift-del { flex: none; color: var(--red); }
.gc-tbl td { vertical-align: middle; }
.gc-neg { color: var(--red); }
.gc-ok { color: #1E7B4A; font-weight: 600; }
.gc-manual { display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card, #fff); font-size: 14px; }
.gift-need .tbl { min-width: 0 !important; }
.gift-need { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 560px) {
  .gift-row { padding: 8px 6px; }
  .gift-sel, .gift-txt { flex-basis: 100%; order: 3; }
  .gift-del { margin-left: auto; }
}
@media print { .gift-need { break-inside: avoid; } }

/* 1.0.32: Präsente-Ausdruck wie im Entwurf */
.gift-handover td { vertical-align: top; }
.gh-line { display: block; white-space: nowrap; }
.gh-line + .gh-line { margin-top: 2px; }
.gift-handover, .gp-tbl-need { min-width: 0 !important; }
@media (max-width: 640px) { .gh-line { white-space: normal; } }
@media print {
  .gifts-print .gift-need, .gifts-print .card-flush { border: 0; box-shadow: none; padding: 0; }
  .gifts-print .gift-handover th, .gifts-print .gift-handover td, .gifts-print .gp-tbl-need th, .gifts-print .gp-tbl-need td { padding: 5px 6px; font-size: 10.5pt; }
  .gifts-print .gift-handover tr { break-inside: avoid; }
  .gifts-print .card-head { padding: 0 0 6px; border: 0; }
}

/* 1.0.34: Präsente-Ausdruck – Zahlenspalten mittig statt rechtsbündig */
.gp-tbl-need th, .gp-tbl-need td { text-align: center !important; }
.gp-tbl-need th:first-child, .gp-tbl-need td:first-child { text-align: left !important; }
.gp-tbl-need th:not(:first-child), .gp-tbl-need td:not(:first-child) { width: 16%; }
.gift-handover th, .gift-handover td { text-align: left !important; }

/* 1.0.37: Programmablauf einspaltig – Programmpunkt klappt darunter auf (Lesen → Bearbeiten) */
.ablauf-one { display: flex; flex-direction: column; gap: 20px; }
.item-detail { margin: 0 14px 14px; border: 1px solid #EBCBD1; border-radius: 12px; background: #FFFCFC; padding: 14px 16px; display: flex; flex-direction: column; gap: 14px; }
.item-detail.is-edit { border: 2px solid var(--blue, #1D3F7A); background: var(--white); }
.plan-item.sel > .plan-row { background: #FFF5F6; box-shadow: inset 4px 0 0 var(--red); }
.ir-head, .ie-bar { display: flex; flex-wrap: wrap; gap: 8px 12px; justify-content: space-between; align-items: center; }
.ir-eyebrow, .ie-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--red); }
.ie-eyebrow { color: var(--blue, #1D3F7A); }
.ie-bar-top { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.ie-bar-bottom { padding-top: 10px; border-top: 1px solid var(--line); }
.ir-grid { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px 18px; }
.ir-grid dt { font-size: 12px; color: var(--muted); }
.ir-grid dd { margin: 0; font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ir-boxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.ir-box { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; }
.ir-box-l { font-size: 12px; font-weight: 700; color: var(--blue, #1D3F7A); }
.ir-box p { margin: 2px 0 0; font-size: 14px; white-space: pre-line; }
.ir-gift { background: #FFFCF3; border-color: #F0DFA8; }
.ir-gift .ir-box-l { color: #7A5600; }
@media (max-width: 640px) {
  .item-detail { margin: 0 8px 10px; padding: 12px; }
  .ir-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ie-bar .row-wrap { width: 100%; }
  .ie-bar .row-wrap .btn { flex: 1; }
}
@media print { .item-detail { display: none !important; } }
.ie-bar .btn-green { background: var(--ok); border-color: var(--ok); color: #fff; }

/* 1.0.40: Bearbeitungsbereich kompakter – drei Abschnitte, mehrspaltig */
.ed { display: flex; flex-direction: column; gap: 16px; }
.ed .field { min-width: 0; gap: 4px; }
.ed-sec { display: flex; flex-direction: column; gap: 12px; }
.ed-sec + .ed-sec { border-top: 1px solid var(--line); padding-top: 14px; }
.ed-h { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--blue, #1D3F7A); }
.ed-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 14px; align-items: start; }
.ed-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ed-span2 { grid-column: span 2; }
.ed-span2 > .field { height: 100%; }
.ed-row3 { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px 18px; align-items: start; }
.ed-status { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ed-status .chip { justify-content: center; }
.chips-sm .chip { min-height: 36px; padding: 0 11px; font-size: 13.5px; }
.ed-gp { min-height: 40px; white-space: nowrap; }
.ed textarea.input { min-height: 0; resize: vertical; }
.ed-foot { justify-content: flex-end; gap: 8px; }
.dialog .ed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .ed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ed-row3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ed-row3 > .field:nth-child(2) { grid-column: 1 / -1; order: 3; }
}
@media (max-width: 600px) {
  .ed-grid, .ed-grid-2, .dialog .ed-grid { grid-template-columns: minmax(0, 1fr); }
  .ed-span2 { grid-column: auto; }
  .ed-row3 { grid-template-columns: minmax(0, 1fr); }
  .ed-row3 > .field:nth-child(2) { order: 0; }
  .ed-foot .btn { flex: 1; }
}
.ed-row3 { grid-template-columns: auto auto minmax(0, 1fr) auto; }
.ed-row3.ed-row-pause { grid-template-columns: auto auto; justify-content: start; }
.ed-pers .input-num { width: 64px; flex: none; }
@media (max-width: 900px) {
  .ed-row3 { grid-template-columns: auto auto minmax(0, 1fr); }
  .ed-row3 > .field:nth-child(3) { grid-column: 1 / -1; order: 3; }
  .ed-row3 > .field:nth-child(2) { grid-column: auto; order: 0; }
}
@media (max-width: 600px) {
  .ed-row3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ed-row3 > .field:first-child { grid-column: 1 / -1; }
  .ed-row3 > .field:nth-child(3) { grid-column: 1 / -1; order: 0; }
}
@media (max-width: 600px) {
  .ed-grid:not(.ed-grid-2) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ed-grid:not(.ed-grid-2) > * { grid-column: 1 / -1; }
  .ed-grid:not(.ed-grid-2) > .ed-half { grid-column: auto; }
  .ed-row3:not(.ed-row-pause) > .field:nth-child(4) { order: 0; }
  .ed-row3:not(.ed-row-pause) > .field:nth-child(3) { order: 3; }
}
@media (max-width: 600px) {
  .ed-row3:not(.ed-row-pause) { grid-template-columns: auto minmax(0, 1fr); }
  .ed-pers .input-num { width: 52px; }
  .ed-gp { white-space: normal; }
}

/* 1.0.41: Komitee */
.kom { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.kom-tables { flex: 999 1 860px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.kom-side { flex: 1 1 260px; min-width: 240px; display: flex; flex-direction: column; gap: 12px; }
.kom-half { display: flex; flex-direction: column; gap: 12px; }
.kom-head { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: center; }
.kom-head .h2 { color: var(--blue, #1D3F7A); }
.kom-warn { background: #FDECEE; border: 1px solid #E9A3AE; color: #8F1426; border-radius: 10px; padding: 9px 12px; font-size: 14px; }
.kom-scroll { overflow-x: auto; padding-bottom: 4px; }
.kom-table { min-width: 1060px; display: flex; flex-direction: column; gap: 6px; }
.kom-seats { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 6px; }
.kom-seat { border-radius: 10px; padding: 8px; min-height: 112px; display: flex; flex-direction: column; gap: 5px; border: 1px solid #B9C4D6; background: #F2F6FC; transition: box-shadow .1s; }
.kom-seat.is-empty { border: 1.5px dashed #C9D0DC; background: #FAFBFD; }
.kom-seat.is-pres { border: 2px solid #E8B21E; background: #FFF6DA; }
.kom-seat.is-dup { border: 2px solid #C8102E; background: #FDECEE; }
.kom-seat.is-over { box-shadow: 0 0 0 3px rgba(29, 63, 122, .35); }
.kom-no { font-size: 11px; font-weight: 800; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
.kom-x { border: 0; background: transparent; color: #8F1426; font-size: 13px; padding: 0 2px; line-height: 1; cursor: pointer; }
.kom-pres-l { font-size: 11px; font-weight: 800; color: #7A5600; letter-spacing: .05em; text-transform: uppercase; }
.kom-name { font-size: 14px; line-height: 1.25; min-height: 36px; overflow-wrap: anywhere; }
.kom-name[draggable="true"] { cursor: grab; }
.kom-sel { height: 34px !important; min-height: 34px !important; font-size: 12.5px !important; padding: 0 4px !important; margin-top: auto; }
.kom-board { height: 22px; border-radius: 6px; background: #8A6A45; box-shadow: inset 0 -4px 0 rgba(0,0,0,.18); }
.kom-dir { display: block; text-align: center; font-size: 11.5px; color: var(--muted); letter-spacing: .1em; }
.kom-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.kom-m { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 10px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--white); }
.kom-m[draggable="true"] { cursor: grab; }
.kom-m.is-pres { border: 2px solid #E8B21E; background: #FFF6DA; }
.kom-grip { color: #9AA3B2; font-size: 14px; }
.kom-mn { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.kom-star { border: 0; background: transparent; width: 32px; height: 32px; border-radius: 7px; font-size: 18px; color: #C9D0DC; cursor: pointer; }
.kom-star.on { color: #E0A100; }
.kom-del { color: #8F1426; }
@media (max-width: 760px) {
  .kom-table { min-width: 0; }
  .kom-seats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kom-board { display: none; }
}
/* Komitee quer – Vorschau und Druck */
.kom-sheet-wrap { overflow-x: auto; display: flex; justify-content: center; }
.kom-sheet { width: 1060px; aspect-ratio: 297 / 210; background: #fff; box-shadow: 0 8px 30px rgba(20,30,50,.15); padding: 34px 40px 44px; box-sizing: border-box; display: flex; flex-direction: column; gap: 12px; flex: none; }
.kom-sheet-head { border-bottom: 3px solid var(--red); padding-bottom: 8px; }
.kom-sheet-head h2 { margin: 0; font-size: 24px; }
.kom-sheet-head span { font-size: 13px; color: var(--muted); }
.kom-sheet-body { flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; }
.kom-ph { display: flex; flex-direction: column; gap: 8px; }
.kom-ph h3 { margin: 0; font-size: 18px; color: var(--blue, #1D3F7A); }
.kom-prow { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); border: 1.5px solid #1B2230; border-radius: 4px; }
.kom-pc { padding: 10px 5px; min-height: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; border-right: 1px solid #1B2230; }
.kom-pc:last-child { border-right: 0; }
.kom-pc.is-pres { background: #FFF3CC; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.kom-pc span { font-size: 10px; color: var(--muted); font-weight: 700; }
.kom-pc b { font-size: 14px; line-height: 1.2; overflow-wrap: anywhere; }
@media print {
  .kom-sheet-wrap { overflow: visible; display: block; }
  .kom-sheet { width: 100%; aspect-ratio: auto; height: 145mm; box-shadow: none; padding: 0; break-inside: avoid; }
  .kom-pc b { font-size: 11pt; }
}
/* 1.0.41 Feinschliff: alle 11 Plätze sichtbar, Namen ohne Wortbruch */
.kom-tables { flex: 999 1 720px; }
.kom-side { flex: 0 1 290px; min-width: 260px; }
.kom-table { min-width: 800px; }
.kom-seat { padding: 7px 6px; }
.kom-name { font-size: 13.5px; overflow-wrap: break-word; hyphens: auto; }
.kom-mn { overflow-wrap: break-word; }
.kom-m .xs { flex: none; }
@media (max-width: 1100px) { .kom-side { flex: 1 1 100%; } }
@media (max-width: 760px) { .kom-table { min-width: 0; } .kom-dir { display: none; } }
/* 1.0.41: Komitee Drag & Drop per Maus/Finger (nicht auf dem Handy) */
[data-kdrag] { cursor: grab; touch-action: none; -webkit-user-select: none; user-select: none; }
.kom-ghost { position: fixed; z-index: 9999; transform: translate(-50%, -120%); pointer-events: none; background: var(--blue, #1D3F7A); color: #fff; font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 10px; box-shadow: 0 8px 24px rgba(20,30,50,.3); white-space: nowrap; }
body.kom-dragging, body.kom-dragging * { cursor: grabbing !important; }
.kom-seat.is-over { box-shadow: 0 0 0 3px rgba(29, 63, 122, .45); background: #E6EEFB; }
/* 1.0.43: Komitee-Teilnehmerliste sortieren */
.kom-m { position: relative; }
.kom-m.drop-before::before, .kom-m.drop-after::after { content: ''; position: absolute; left: 6px; right: 6px; height: 3px; border-radius: 2px; background: var(--red); }
.kom-m.drop-before::before { top: -5px; }
.kom-m.drop-after::after { bottom: -5px; }
.kom-arrows { display: inline-flex; flex-direction: column; gap: 0; }
.kom-arrows .btn-icon { width: 30px; height: 22px; min-height: 22px; font-size: 11px; padding: 0; }
.kom-mn { display: flex; flex-direction: column; line-height: 1.25; }
.kom-mn b { font-weight: 600; }
