/* ==========================================================================
   Layout & Komponenten (nutzt ausschließlich die Tokens aus theme.css)
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font: 15px/1.5 var(--font);
    background: var(--bg);
    color: var(--text);
}
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .75rem; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.15rem; }
code { font-family: var(--mono); font-size: .9em; background: var(--surface-2); padding: .1em .35em; border-radius: 4px; word-break: break-word; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.pre-line { white-space: pre-line; }
.right { text-align: right; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.icon { width: 1.2em; height: 1.2em; flex: none; vertical-align: -.2em; }
.icon-xl { width: 3rem; height: 3rem; color: var(--accent); }

.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 1rem; top: .5rem; z-index: 100; background: var(--surface); padding: .5rem 1rem; border-radius: var(--radius-sm); }

/* ---------------------------------------------------------------- Topbar */
.topbar {
    position: sticky; top: 0; z-index: 30;
    height: var(--topbar-h);
    display: flex; align-items: center; gap: .75rem;
    padding: 0 1rem;
    background: var(--topbar-bg);
    color: #f2f2f4;
    border-bottom: 2px solid var(--accent);
}
.topbar .btn-icon, .topbar .btn-ghost { color: #f2f2f4; }
.brand { display: flex; align-items: center; gap: .55rem; color: inherit; text-decoration: none; font-weight: 700; letter-spacing: .01em; min-width: 0; }
.brand:hover { color: inherit; }
.brand-mark { color: var(--accent); display: inline-flex; }
.brand-mark .icon { width: 1.6rem; height: 1.6rem; }
.brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-spacer { flex: 1; }
.nav-toggle { display: none; }

.theme-switch { display: inline-flex; gap: 2px; padding: 2px; border-radius: 999px; background: rgba(255,255,255,.08); }
.theme-switch .btn-icon { border-radius: 999px; width: 32px; height: 32px; }
.theme-switch .btn-icon[aria-pressed="true"] { background: var(--accent); color: var(--accent-text); }
.layout-auth .theme-switch { background: var(--surface-2); }
.layout-auth .theme-switch .btn-icon { color: var(--text); }

.user-menu { position: relative; }
.user-menu summary { list-style: none; display: flex; align-items: center; gap: .5rem; cursor: pointer; padding: .3rem .5rem; border-radius: var(--radius-sm); }
.user-menu summary::-webkit-details-marker { display: none; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--accent); color: var(--accent-text); font-weight: 700; }
.user-menu-panel {
    position: absolute; right: 0; top: calc(100% + 6px); min-width: 230px;
    background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: .4rem; display: grid; gap: 2px;
}
.user-menu-meta { padding: .5rem .6rem; border-bottom: 1px solid var(--border); margin-bottom: .25rem; display: grid; }
.user-menu-meta span { color: var(--muted); font-size: .85rem; }
.user-menu-panel a, .user-menu-panel button {
    display: flex; align-items: center; gap: .5rem; width: 100%; padding: .5rem .6rem; border: 0; border-radius: var(--radius-sm);
    background: none; color: var(--text); font: inherit; text-decoration: none; cursor: pointer; text-align: left;
}
.user-menu-panel a:hover, .user-menu-panel button:hover { background: var(--surface-2); }
.user-menu-panel form { margin: 0; }

/* ---------------------------------------------------------------- Shell + Sidebar */
.shell { display: flex; min-height: calc(100vh - var(--topbar-h)); }
.sidebar {
    width: var(--sidebar-w); flex: none;
    background: var(--sidebar-bg); border-right: 1px solid var(--border);
    display: flex; flex-direction: column; justify-content: space-between;
    position: sticky; top: var(--topbar-h); height: calc(100vh - var(--topbar-h)); overflow-y: auto;
}
.sidebar ul { list-style: none; margin: 0; padding: .75rem .5rem; display: grid; gap: 2px; }
.sidebar a {
    display: flex; align-items: center; gap: .7rem; padding: .6rem .75rem; border-radius: var(--radius-sm);
    color: var(--text); text-decoration: none; font-weight: 500;
}
.sidebar a:hover { background: var(--surface-2); color: var(--text); }
.sidebar a.active { background: var(--accent-soft); color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.sidebar-footer { padding: .75rem 1.25rem; display: flex; gap: 1rem; font-size: .8rem; }
.sidebar-footer a { padding: 0; color: var(--muted); font-weight: 400; }
.content { flex: 1; min-width: 0; padding: 1.5rem clamp(1rem, 3vw, 2.25rem) 3rem; max-width: 1280px; }
.content:focus { outline: none; }
.nav-backdrop { display: none; }

@media (max-width: 900px) {
    .nav-toggle { display: inline-flex; }
    .user-name { display: none; }
    .sidebar {
        position: fixed; left: 0; top: var(--topbar-h); bottom: 0; height: auto; z-index: 25;
        transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow);
    }
    body.nav-open .sidebar { transform: none; }
    body.nav-open .nav-backdrop { display: block; position: fixed; inset: var(--topbar-h) 0 0 0; background: rgba(0,0,0,.5); z-index: 20; }
}
@media (max-width: 520px) {
    .brand-name { max-width: 34vw; }
    .theme-switch .btn-icon { width: 28px; height: 28px; }
}

/* ---------------------------------------------------------------- Auth-Layout */
.layout-auth { min-height: 100vh; background: radial-gradient(1200px 500px at 50% -10%, var(--accent-soft), transparent), var(--bg); }
.auth-top { display: flex; justify-content: flex-end; padding: 1rem; }
.auth-wrap { max-width: 520px; margin: 0 auto; padding: 0 1rem 3rem; }
.auth-wrap.auth-wide { max-width: 820px; }
.auth-brand { display: flex; align-items: center; justify-content: center; gap: .6rem; font-weight: 700; font-size: 1.25rem; margin: 1rem 0 1.25rem; }
.auth-brand .icon { width: 2rem; height: 2rem; }
.auth-card { padding: 1.75rem; }
.auth-footer { text-align: center; font-size: .85rem; color: var(--muted); }
.auth-footer a { color: var(--muted); }
/* Programmversion in der Fußzeile aller Seiten */
.version-footer { font-size: .78rem; color: var(--muted); }
.app-footer { margin-top: 2.5rem; padding-top: .75rem; border-top: 1px solid var(--border); text-align: right; }
.kiosk-version { margin-top: 2rem; text-align: center; }
.auth-footer.version-footer { margin-top: .25rem; }
.details-list { margin: .5rem 0; }
.details-list summary { cursor: pointer; font-weight: 600; }
.details-list ul { max-height: 16rem; overflow: auto; margin: .5rem 0; padding-left: 1.25rem; }
.legal-nav { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin-bottom: 1rem; font-size: .9rem; }
.legal-nav a[aria-current] { font-weight: 700; text-decoration: none; }
.legal-text p { margin: 0 0 1rem; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- Bausteine */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.page-head p { margin: 0; }
.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.25rem; margin-bottom: 1.25rem; box-shadow: var(--shadow);
}
.card-narrow { max-width: 520px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; flex-wrap: wrap; }
.card-head h2 { margin: 0; }
.card-head:last-child { margin-bottom: 0; }
.card-head p:last-child, .card > .alert:last-child { margin-bottom: 0; }
.card-head form { margin: 0; }
.empty-state { text-align: center; padding: 3rem 1.25rem; }
.empty-state h2 { margin-top: 1rem; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--gap); margin-bottom: 1.5rem; }
.tile {
    display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem; text-decoration: none; color: var(--text);
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .15s, transform .15s;
}
.tile:hover { border-color: var(--accent); color: var(--text); transform: translateY(-1px); }
.tile-icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.tile-icon .icon { width: 1.5rem; height: 1.5rem; }
.tile-body { display: grid; gap: .2rem; }
.tile-body span { color: var(--muted); font-size: .9rem; }

.checklist { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .45rem; }
.checklist li { display: flex; align-items: center; gap: .5rem; }
.checklist li.ok .icon { color: var(--success); }
.checklist li.todo .icon { color: var(--warning); }

.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--border); margin-bottom: 1.25rem; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.tabs a {
    display: inline-flex; align-items: center; gap: .45rem; padding: .65rem .9rem; white-space: nowrap;
    color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
/* Maus/Trackpad: Reiter umbrechen statt horizontal scrollen – am Desktop ist die (oft ausgeblendete)
   Scrollleiste kaum bedienbar, hintere Reiter wären sonst unerreichbar. Touch-Geräte wischen weiter. */
@media (hover: hover) and (pointer: fine) {
    .tabs { flex-wrap: wrap; overflow: visible; }
}

/* ---------------------------------------------------------------- Buttons */
.btn, .btn-primary, .btn-ghost, .btn-small {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    padding: .55rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--border);
    background: var(--surface-2); color: var(--text); font: inherit; font-weight: 600; line-height: 1.2;
    text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--surface-3); color: var(--text); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-text); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-small { padding: .3rem .65rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-icon {
    display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
    border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--text); cursor: pointer;
}
.btn-icon:hover { background: rgba(127,127,127,.18); }
button[disabled], .btn[aria-busy="true"] { opacity: .6; cursor: progress; }

/* ---------------------------------------------------------------- Formulare */
.form { display: grid; gap: 1rem; }
.form-inline { display: flex; align-items: flex-end; gap: .75rem; flex-wrap: wrap; }
.form-inline .field { flex: 1 1 260px; }
.field { display: grid; gap: .35rem; min-width: 0; }
.field > span, .field > label > span { font-size: .85rem; font-weight: 600; color: var(--muted); }
.field-wide { grid-column: 1 / -1; }
input, select, textarea {
    width: 100%; padding: .6rem .7rem; font: inherit; color: var(--text);
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
textarea { resize: vertical; min-height: 6rem; font-family: var(--font); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--accent); margin: 0 .4rem 0 0; }
.field-check label { display: flex; align-items: center; gap: .2rem; cursor: pointer; }
.check-inline { display: inline-flex; align-items: center; font-size: .85rem; color: var(--muted); margin-top: .25rem; }
.fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; margin: 0; min-width: 0; }
.fieldset legend { padding: 0 .4rem; font-weight: 700; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.form-actions { display: flex; justify-content: flex-end; gap: .5rem; flex-wrap: wrap; }

.role-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .5rem; }
.role-item { display: flex; align-items: flex-start; gap: .25rem; padding: .6rem; border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; }
.role-item:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.role-item span { display: grid; gap: .1rem; }
.role-item small { color: var(--muted); }
.role-details { border-top: 1px solid var(--border); padding: .6rem 0; }
.role-details summary { cursor: pointer; }
.perm-list { margin: .5rem 0 0; padding-left: 1.2rem; display: grid; gap: .2rem; font-size: .9rem; }

/* ---------------------------------------------------------------- Tabellen, Badges */
.table-wrap { overflow-x: auto; scrollbar-width: auto; scrollbar-color: var(--muted) var(--surface-2); }
/* Lange Tabellen (z. B. EÜR-Journal): eigener Scrollbereich, damit die waagerechte Scrollleiste immer im Bild ist;
   Kopf- und Summenzeile bleiben beim Scrollen stehen. */
@media (min-width: 900px) {
    .table-wrap.table-scroll { max-height: calc(100vh - 9rem); overflow: auto; }
    .table-scroll thead th { position: sticky; top: 0; z-index: 2; background: var(--surface); box-shadow: inset 0 -1px 0 var(--border); }
    .table-scroll tfoot td { position: sticky; bottom: 0; z-index: 2; background: var(--surface); box-shadow: inset 0 1px 0 var(--border); }
}
.table-journal td.actions { white-space: normal; min-width: 9.5rem; }
.table-journal td.actions .btn { margin-top: .3rem; }
/* Zuwendungsbestätigungen: Aktionen (Knöpfe, „fehlt: …“, Spenderangaben) umbrechen statt die Tabelle zu verbreitern */
.table.table-receipts td.actions { white-space: normal; min-width: 10rem; max-width: 15rem; }
.table.table-receipts td.actions .btn { margin-top: .3rem; }
.table.table-receipts td.actions details { text-align: left; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: .6rem .65rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.table tbody tr:hover { background: var(--surface-2); }
.table th.right, .table td.right { text-align: right; }
.table-compact th, .table-compact td { padding: .4rem .5rem; font-size: .88rem; }
.badge { display: inline-block; padding: .1rem .5rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--surface-3); color: var(--text); white-space: nowrap; }
.badge-success { background: color-mix(in srgb, var(--success) 20%, transparent); color: var(--success); }
.badge-danger  { background: color-mix(in srgb, var(--danger) 20%, transparent); color: var(--danger); }
.badge-warning { background: color-mix(in srgb, var(--warning) 22%, transparent); color: var(--warning); }

/* ---------------------------------------------------------------- Meldungen */
.alert { padding: .75rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--border); border-left-width: 4px; margin-bottom: 1rem; background: var(--surface-2); }
.alert-success { border-left-color: var(--success); }
.alert-error   { border-left-color: var(--danger); }
.alert-warning { border-left-color: var(--warning); }
.alert-info    { border-left-color: var(--info); }

.toasts { position: fixed; right: 1rem; bottom: 1rem; z-index: 60; display: grid; gap: .5rem; max-width: min(420px, calc(100vw - 2rem)); }
.toast {
    display: flex; align-items: flex-start; gap: .6rem; padding: .75rem 1rem; border-radius: var(--radius-sm);
    background: var(--surface); color: var(--text); border: 1px solid var(--border); border-left: 4px solid var(--info);
    box-shadow: var(--shadow); animation: toast-in .18s ease-out;
}
.toast-success { border-left-color: var(--success); }
.toast-error   { border-left-color: var(--danger); }
.toast-warning { border-left-color: var(--warning); }
.toast button { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------------------------------------------------------------- Modal */
dialog.modal {
    border: 1px solid var(--border); border-radius: var(--radius); padding: 0; width: min(520px, calc(100vw - 2rem));
    background: var(--surface); color: var(--text); box-shadow: var(--shadow);
}
dialog.modal::backdrop { background: rgba(0,0,0,.6); }
.modal-body { padding: 1.25rem; }
.modal-actions { display: flex; justify-content: flex-end; gap: .5rem; padding: 1rem 1.25rem; border-top: 1px solid var(--border); }

dialog.modal.modal-lg { width: min(760px, calc(100vw - 2rem)); }
dialog.modal form { margin: 0; }
dialog.modal .modal-body { max-height: calc(100vh - 11rem); overflow-y: auto; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.modal-head h2 { margin: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.summary-box { padding: .75rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); display: grid; gap: .2rem; font-size: .9rem; }

/* ---------------------------------------------------------------- Kennzahlen, Balken */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--gap); margin-bottom: 1.25rem; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; display: grid; gap: .2rem; }
.stat-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.stat-value { font-size: 1.55rem; font-weight: 800; line-height: 1.2; }
.stat-sub { font-size: .85rem; color: var(--muted); }
.stat-warn { border-color: var(--danger); }
.stat-warn .stat-value { color: var(--danger); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.bar-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.bar-list li { display: grid; grid-template-columns: minmax(8rem, 14rem) 1fr auto; align-items: center; gap: .75rem; }
.bar-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
progress.bar { width: 100%; height: .7rem; appearance: none; -webkit-appearance: none; border: 0; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
progress.bar::-webkit-progress-bar { background: var(--surface-3); border-radius: 999px; }
progress.bar::-webkit-progress-value { background: var(--accent); border-radius: 999px; }
progress.bar::-moz-progress-bar { background: var(--accent); border-radius: 999px; }
.list-plain { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.list-plain li { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .55rem .7rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.action-list .action-main { display: grid; gap: .1rem; min-width: 0; }
.action-list .action-due { font-size: .8rem; color: var(--muted); }
.action-list .is-overdue { border-color: color-mix(in srgb, var(--danger) 55%, var(--border)); }
.action-list .is-overdue .action-due { color: var(--danger); font-weight: 600; }
.action-list .btn { flex-shrink: 0; }
.columns-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--gap); }
.columns-2 > .card { margin-bottom: 0; }
.stack { display: grid; gap: var(--gap); margin-bottom: 1.25rem; }

/* ---------------------------------------------------------------- Werkzeugleisten, Tabellenzusätze */
.toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.toolbar form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .5rem; margin: 0; }
.toolbar input, .toolbar select, .card-head select, .form-inline > select { width: auto; min-width: 9rem; padding: .45rem .6rem; }
.toolbar input[type="search"] { min-width: 14rem; }
.toolbar-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.table th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.table th.sortable::after { content: " ↕"; opacity: .35; }
.table th[aria-sort="ascending"]::after { content: " ▲"; opacity: .9; }
.table th[aria-sort="descending"]::after { content: " ▼"; opacity: .9; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table td.actions { text-align: right; white-space: nowrap; }
.table tr.row-cancelled td { opacity: .55; }
.table tr.row-cancelled td.strike { text-decoration: line-through; }
.table tfoot td { font-weight: 700; border-top: 2px solid var(--border); }
.mono { font-family: var(--mono); font-size: .88em; }
.nowrap { white-space: nowrap; }
.cell-sub { display: block; color: var(--muted); font-size: .82rem; }
.avatar-img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--surface-3); border: 1px solid var(--border); flex: none; }
.avatar-img.avatar-lg { width: 84px; height: 84px; }
.avatar-ph { display: inline-grid; place-items: center; color: var(--muted); }
.with-avatar { display: flex; align-items: center; gap: .6rem; }
.badge-info { background: color-mix(in srgb, var(--info) 20%, transparent); color: var(--info); }
.badge-sphere-ideell         { background: color-mix(in srgb, var(--info) 20%, transparent);    color: var(--info); }
.badge-sphere-vermoegen      { background: color-mix(in srgb, var(--success) 20%, transparent); color: var(--success); }
.badge-sphere-zweck          { background: color-mix(in srgb, var(--warning) 22%, transparent); color: var(--warning); }
.badge-sphere-wirtschaftlich { background: color-mix(in srgb, var(--accent) 22%, transparent);  color: var(--accent); }
.btn-link { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; }
.btn-danger-ghost { background: transparent; border-color: transparent; color: var(--danger); }
.btn-danger-ghost:hover { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.photo-field { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.inline-form { display: inline; margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------------------------------------------------------------- Öffentliches Seitenlayout (Shop-Frontend) */
.layout-site { min-height: 100vh; display: flex; flex-direction: column; }
.site-topbar { flex-wrap: nowrap; }
.site-nav { display: flex; align-items: center; gap: .15rem; }
.site-nav a { position: relative; display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .65rem; border-radius: var(--radius-sm); color: #f2f2f4; text-decoration: none; font-weight: 600; }
.site-nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.site-nav a[aria-current="page"] { background: var(--accent); color: var(--accent-text); }
.site-nav-staff { opacity: .8; }
.cart-badge { min-width: 1.35rem; height: 1.35rem; padding: 0 .35rem; border-radius: 999px; background: #fff; color: #111; font-size: .75rem; font-weight: 800; display: inline-grid; place-items: center; }
.site-nav a[aria-current="page"] .cart-badge { background: #111; color: #fff; }
.site-content { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 1.5rem clamp(1rem, 3vw, 2rem) 3rem; }
.site-content:focus { outline: none; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding: 1.25rem clamp(1rem, 3vw, 2rem); border-top: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: .85rem; }
.site-footer a { color: var(--muted); }
@media (max-width: 720px) {
    .site-nav a span:not(.cart-badge) { display: none; }
    .site-nav a { padding: .45rem .5rem; }
    .site-topbar .theme-switch { display: none; }
}

/* ---------------------------------------------------------------- Kategorien-Chips */
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.25rem; }
.chips a { padding: .35rem .85rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600; font-size: .9rem; }
.chips a:hover { border-color: var(--accent); }
.chips a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }

/* ---------------------------------------------------------------- Produktkarten */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--gap); }
.product-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.product-card.is-sold-out .product-media img { filter: grayscale(1); opacity: .6; }
.product-media { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; padding: 0; border: 0; background: var(--surface-2); overflow: hidden; }
.product-media-link { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.product-media-link.is-zoom { cursor: zoom-in; }
.product-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.product-media-link:hover img { transform: scale(1.03); }
.product-media-large img { object-fit: contain; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; padding: 0;
    border: 0; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.gallery-nav:hover, .gallery-nav:focus-visible { background: rgba(0,0,0,.8); }
.gallery-prev { left: .5rem; }
.gallery-next { right: .5rem; }
.product-title a { color: inherit; text-decoration: none; }
.product-title a:hover { text-decoration: underline; }
.product-page { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--gap); align-items: start; margin-bottom: var(--gap); }
@media (max-width: 760px) { .product-page { grid-template-columns: 1fr; } }
.product-page.is-sold-out .product-media img { filter: grayscale(1); opacity: .6; }
.product-gallery .product-media { border-radius: var(--radius); border: 1px solid var(--border); }
.product-thumbs { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.product-thumbs button { width: 64px; height: 64px; padding: 0; border: 2px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); cursor: pointer; }
.product-thumbs button[aria-current="true"] { border-color: var(--accent); }
.product-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-info { display: grid; gap: .75rem; margin-bottom: 0; }
.product-info .product-title { font-size: 1.6rem; }
.product-lead { margin: 0; font-size: 1.05rem; }
.product-description p { margin: 0; }
.event-actions { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .4rem; }
.event-actions .inline-form { margin: 0; }
.product-media-empty { display: grid; place-items: center; cursor: default; color: var(--muted); }
.product-media-count { position: absolute; right: .5rem; bottom: .5rem; padding: .1rem .5rem; border-radius: 999px; background: rgba(0,0,0,.65); color: #fff; font-size: .75rem; }
.product-body { display: flex; flex-direction: column; gap: .5rem; padding: 1rem; flex: 1; }
.product-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; color: var(--muted); font-size: .8rem; }
.product-title { font-size: 1.1rem; margin: 0; }
.product-desc { margin: 0; color: var(--muted); font-size: .9rem; }
.ticket-meta { padding: .5rem .65rem; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--warning) 12%, transparent); border: 1px solid color-mix(in srgb, var(--warning) 35%, transparent); font-size: .85rem; }
.product-price { font-size: 1.35rem; font-weight: 800; margin-top: auto; }
.product-form { display: grid; gap: .5rem; margin: 0; }
.product-actions { display: flex; gap: .5rem; }
.product-actions .btn-primary { flex: 1; }
input.qty-input { width: 5rem; min-width: 0; }
input.money-input { width: 7rem; }
.lightbox-body { position: relative; display: flex; align-items: center; justify-content: center; padding: .75rem; overflow: hidden; }
dialog.modal .lightbox-body { overflow: hidden; }
.lightbox-body img { display: block; min-width: 0; max-width: 100%; max-height: calc(100vh - 12rem); object-fit: contain; border-radius: var(--radius-sm); }

/* ---------------------------------------------------------------- Warenkorb, Kasse, Zahlung */
.cart-thumb { width: 48px; height: 48px; border-radius: var(--radius-sm); object-fit: cover; flex: none; border: 1px solid var(--border); display: inline-grid; place-items: center; }
.qty-form { display: flex; align-items: center; gap: .25rem; margin: 0; }
.table tr.row-warning td { background: color-mix(in srgb, var(--warning) 8%, transparent); }
.choice-list { display: grid; gap: .5rem; margin-bottom: 1rem; }
.choice { display: flex; gap: .6rem; align-items: flex-start; padding: .7rem .8rem; border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice span { display: grid; gap: .1rem; }
.choice small { color: var(--muted); }
.consent { align-items: flex-start; margin: .75rem 0; color: var(--text); font-size: .9rem; }
.checkout-total { display: flex; justify-content: space-between; align-items: center; font-size: 1.1rem; margin: .75rem 0; }
.payment-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--gap); }
.payment-option { padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.payment-option h3 { margin-top: 0; }
.dl-compact { display: grid; grid-template-columns: max-content 1fr; gap: .25rem .75rem; margin: 0 0 .75rem; }
.dl-compact dt { color: var(--muted); font-size: .85rem; }
.dl-compact dd { margin: 0; overflow-wrap: anywhere; }
.btn-paypal { background: #0070ba; border-color: #0070ba; color: #fff; }
.btn-paypal:hover { background: #005ea6; color: #fff; }
.center { text-align: center; }
.qr-box { display: inline-block; padding: 10px; background: #fff; border-radius: var(--radius-sm); line-height: 0; }
.qr-box img, .qr-box canvas { display: block; }
.qr-large { margin: .5rem auto; }

/* ---------------------------------------------------------------- Tickets (Kundenansicht) */
.ticket-list { display: grid; gap: var(--gap); }
.ticket-card { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 1.1rem; border-radius: var(--radius); border: 2px solid var(--accent);
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, var(--surface)) 0%, var(--surface) 70%); }
.ticket-card.is-used { border-color: var(--success); }
.ticket-info { flex: 1 1 240px; display: grid; gap: .2rem; }
.ticket-info h3 { margin: 0; font-size: 1.3rem; }
.ticket-info p { margin: 0; }
.ticket-info .badge { justify-self: start; }
.ticket-kind { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 800; }
.ticket-logo { max-height: 48px; max-width: 160px; object-fit: contain; margin-bottom: .25rem; }
.ticket-qr { display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.timeline li { padding-left: .9rem; border-left: 2px solid var(--border); }

/* ---------------------------------------------------------------- Backend-Zusätze (Shop) */
.columns-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--gap); margin-bottom: 1.25rem; }
.columns-3 > .card { margin-bottom: 0; }
.columns-3 h3, .card > h3 { margin-top: 0; }
.h1-like { font-size: 1.4rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
a.stat-link { color: var(--text); text-decoration: none; transition: border-color .15s; }
a.stat-link:hover { border-color: var(--accent); }
.compact-form { gap: .35rem; flex-wrap: nowrap; }
.compact-form input:not(.qty-input), .compact-form select { width: auto; min-width: 7rem; padding: .3rem .45rem; }
.check-group { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.variant-rows { display: grid; gap: .4rem; margin-bottom: .5rem; }
.variant-row { display: grid; grid-template-columns: 1fr 12rem auto; gap: .4rem; align-items: center; }
.tier-rows { display: grid; gap: .4rem; margin-bottom: .5rem; }
.tier-row { display: grid; grid-template-columns: minmax(8rem, 1fr) 6.5rem 10rem 7rem auto auto; gap: .4rem; align-items: center; }
.tier-sold { white-space: nowrap; }
@media (max-width: 640px) { .tier-row { grid-template-columns: 1fr 1fr; } }
.price-tier-note { margin: -.25rem 0 .5rem; }
.image-keep { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .75rem; }
.image-keep-item { display: grid; justify-items: center; gap: .2rem; padding: .35rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: .75rem; cursor: pointer; }
.image-keep-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 4px; }
.image-keep-item:has(input:not(:checked)) { opacity: .45; }
.scanner { display: grid; gap: .75rem; margin-bottom: 1rem; }
.scanner-view { width: 100%; max-width: 420px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; background: #000; }
.scan-result { min-height: 7rem; padding: 1rem; border-radius: var(--radius); border: 1px solid var(--border); text-align: center; display: grid; gap: .3rem; align-content: center; }
.scan-result.scan-ok { background: color-mix(in srgb, var(--success) 22%, transparent); border-color: var(--success); }
.scan-result.scan-bad { background: color-mix(in srgb, var(--danger) 22%, transparent); border-color: var(--danger); }
.scan-title { font-size: 1.8rem; font-weight: 900; }
.scan-ok .scan-title { color: var(--success); }
.scan-bad .scan-title { color: var(--danger); }
.scan-reason { font-size: 1.05rem; font-weight: 600; }
.scan-guest { font-size: 1.15rem; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
    .topbar, .sidebar, .toasts, .nav-backdrop, .tabs, .form-actions, .site-topbar, .site-footer { display: none !important; }
    .content { padding: 0; max-width: none; }
    .card { box-shadow: none; border-color: #ccc; }
}

/* ==========================================================================
   Brisepay: Vollbild-Terminal (View::kioskStart), Gast-Wallet, Bar, Kasse, Verwaltung
   ========================================================================== */
.layout-kiosk { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.kiosk-topbar { position: sticky; top: 0; z-index: 20; height: auto; min-height: var(--topbar-h); flex-wrap: wrap; padding: .4rem 1rem; }
.kiosk-content .card-narrow { margin-left: auto; margin-right: auto; }
.kiosk-content { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 1rem clamp(.75rem, 2.5vw, 1.5rem) 7rem; }
.bp-controls { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
.bp-controls .btn { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); color: #f2f2f4; }
.bp-staff { color: #c9c9d1; font-size: .85rem; white-space: nowrap; }
.offline-pill { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .65rem; border-radius: 999px; font-size: .8rem; font-weight: 700;
    background: var(--warning); color: #111; white-space: nowrap; }
.offline-pill.is-online { background: var(--info); }
.offline-pill .icon { width: 1em; height: 1em; }
.mt { margin-top: 1.25rem; }
.mt-sm { margin-top: .5rem; }
.signature-preview { max-height: 80px; max-width: 300px; background: #fff; padding: 6px; border: 1px solid var(--border); border-radius: 4px; }
.card-dashed { border-style: dashed; }
.card-danger { border-color: var(--danger); }
@media (max-width: 600px) { .hide-sm { display: none; } }

/* Gast-Wallet */
.wallet-card { text-align: center; max-width: 480px; margin: 0 auto 1rem; }
.wallet-name { font-size: 1.25rem; font-weight: 800; }
.balance-big { font-size: clamp(2.4rem, 11vw, 3.4rem); font-weight: 900; line-height: 1.1; margin: .35rem 0 .75rem; font-variant-numeric: tabular-nums; }
.bonus-list { list-style: none; margin: 0 auto 1rem; padding: .6rem .9rem; max-width: 360px; text-align: left; display: grid; gap: .3rem;
    border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); font-size: .92rem; }
.qr-wallet { margin: .5rem auto; min-width: 240px; min-height: 240px; display: grid; place-items: center; }
.qr-timer { display: grid; gap: .3rem; max-width: 260px; margin: 0 auto .5rem; }
.offline-note { margin: 0 auto .75rem; display: inline-block; padding: .25rem .8rem; border-radius: 999px; background: var(--warning); color: #111; font-weight: 700; font-size: .85rem; }
.stack-buttons { display: grid; gap: .5rem; max-width: 320px; margin: 1rem auto 0; }
.tx-list, .guest-list, .conflict-list, .fulfill-list { list-style: none; margin: 0; padding: 0; }
.tx-list li, .guest-list li { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.tx-list li:last-child, .guest-list li:last-child { border-bottom: 0; }
.guest-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.guest-list .badge { margin-top: .2rem; }
.member-chosen { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding: .35rem 0; }

/* PIN */
.pin-card { max-width: 380px; margin: 1rem auto; }
.pin-display { font: 800 2rem/1 var(--mono); letter-spacing: .4em; text-align: center; padding: .9rem; margin: .5rem 0 1rem;
    border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); min-height: 3.6rem; }
.pin-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.pin-key { font: 800 1.6rem/1 var(--font); padding: 1.1rem 0; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface-2); color: var(--text); cursor: pointer; touch-action: manipulation; }
.pin-key:active { background: var(--surface-3); }
.pin-clear { color: var(--danger); }
.pin-ok { background: var(--success); border-color: var(--success); color: #fff; }

/* Bar */
.pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .6rem; margin-bottom: 1rem; }
.pos-product { position: relative; display: grid; justify-items: center; align-content: center; gap: .25rem; min-height: 120px; padding: .75rem .5rem;
    border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; touch-action: manipulation; text-align: center; }
.pos-product:active { transform: scale(.97); background: var(--surface-2); }
.pos-product.is-return { border-style: dashed; }
.pos-icon { font-size: 2.1rem; line-height: 1; }
.pos-name { font-weight: 700; line-height: 1.2; }
.pos-price { color: var(--accent); font-weight: 800; font-variant-numeric: tabular-nums; }
.pos-qty { position: absolute; top: .35rem; right: .35rem; min-width: 1.7rem; padding: .15rem .45rem; border-radius: 999px; background: var(--accent); color: var(--accent-text); font-weight: 800; }
.cart-bar { position: sticky; bottom: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap;
    padding: .8rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.cart-info { display: grid; min-width: 0; }
.cart-info .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.cart-total { font-size: 1.7rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.cart-actions { display: flex; gap: .5rem; }
.btn-lg { padding: .85rem 1.4rem; font-size: 1.1rem; }
.storno-bar, .queue-bar { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; margin-top: .75rem; padding: .7rem 1rem;
    border: 1px dashed var(--border); border-radius: var(--radius); background: var(--surface); }
.queue-bar { border-color: var(--warning); }
.conflict-list { margin-top: .75rem; border: 1px solid var(--danger); border-radius: var(--radius); padding: .5rem 1rem; background: var(--surface); }
.conflict-list li { padding: .4rem 0; border-bottom: 1px solid var(--border); }
.conflict-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }

/* Kasse */
.seg { display: flex; flex-wrap: wrap; gap: .35rem; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: inline-block; padding: .45rem .8rem; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2); font-weight: 600; font-size: .9rem; cursor: pointer; }
.seg input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.seg input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.preset-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; margin-bottom: .5rem; }
.priv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .4rem 1rem; align-items: center; }
.field-inline { display: flex; align-items: center; gap: .5rem; }
.field-inline input { width: 6rem; }
.is-disabled { opacity: .45; }

/* Zubereitungs-Overlay & Scanner */
dialog.modal.fulfill { width: min(640px, calc(100vw - 1rem)); }
.fulfill-kicker { font-weight: 800; text-transform: uppercase; letter-spacing: .06em; margin: 0; }
.fulfill-list { margin-top: 1rem; text-align: left; }
.fulfill-list li { display: grid; grid-template-columns: auto 1fr auto; gap: .75rem; align-items: center; padding: .7rem .9rem; margin-bottom: .4rem;
    border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); font-size: 1.25rem; }
.ff-qty { font-weight: 900; color: var(--accent); font-size: 1.5rem; }
.ff-name { font-weight: 700; }
.scan-hint { font-weight: 700; margin-top: 0; }

/* Verwaltung */
.filter-grid { margin-top: .5rem; }
.chart-box { position: relative; height: 340px; }
.input-small { width: auto; min-width: 8rem; padding: .35rem .55rem; }
.icon-picker { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .75rem; }
.icon-picker label { position: relative; }
.icon-picker input { position: absolute; opacity: 0; inset: 0; }
.icon-picker span { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; font-size: 1.4rem; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; }
.icon-picker input:checked + span { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.pos-icon-cell { font-size: 1.4rem; width: 2.5rem; }
.secret-value { font-size: 2rem; font-weight: 900; letter-spacing: .12em; padding: .75rem; border-radius: var(--radius-sm); background: var(--surface-2); user-select: all; }
.pp-item { padding: .45rem 0; border-bottom: 1px solid var(--border); }
.pp-item summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.pp-item summary strong:last-child { margin-left: auto; }

/* Karten-Druckbogen (A4 quer, 4 × 2 Karten im A7-Format 74 × 105 mm) */
.print-sheet-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; }
.print-sheet { display: grid; grid-template-columns: repeat(auto-fill, 74mm); gap: 0; justify-content: center; background: #fff; color: #000; padding: 4mm; }
.print-card { position: relative; width: 74mm; height: 105mm; padding: 6mm 5mm; box-sizing: border-box; display: flex; flex-direction: column; justify-content: space-between; align-items: center;
    text-align: center; font-family: var(--font); color: #000; break-inside: avoid; page-break-inside: avoid; }
.print-card .crop { position: absolute; width: 4mm; height: 4mm; border-color: #999; border-style: solid; border-width: 0; }
.print-card .tl { top: 0; left: 0; border-top-width: .2mm; border-left-width: .2mm; }
.print-card .tr { top: 0; right: 0; border-top-width: .2mm; border-right-width: .2mm; }
.print-card .bl { bottom: 0; left: 0; border-bottom-width: .2mm; border-left-width: .2mm; }
.print-card .br { bottom: 0; right: 0; border-bottom-width: .2mm; border-right-width: .2mm; }
.pc-brand { font-size: 7pt; letter-spacing: .08em; text-transform: uppercase; color: #555; }
.pc-title { font-size: 12pt; font-weight: 800; margin-top: 1mm; }
.pc-group { font-size: 8pt; color: #444; }
.pc-qr { line-height: 0; }
.pc-uid { font: 700 9pt var(--mono); margin-top: 1mm; }
.pc-meta { font-size: 7.5pt; color: #333; width: 100%; }
.pc-line { margin-top: 3mm; border-bottom: .2mm solid #000; text-align: left; padding-bottom: 1mm; }

@media print {
    @page { size: A4 landscape; margin: 5mm; }
    body.is-printing-sheet * { visibility: hidden; }
    body.is-printing-sheet .print-sheet, body.is-printing-sheet .print-sheet * { visibility: visible; }
    body.is-printing-sheet .print-sheet { position: absolute; left: 0; top: 0; padding: 0; grid-template-columns: repeat(4, 74mm); justify-content: start; }
    .no-print { display: none !important; }
}

/* Veranstaltungsplanung (modules/events) */
.stars { color: var(--warning); letter-spacing: .05em; white-space: nowrap; }
.stars-off { color: var(--border); }
.band-gallery { list-style: none; margin: 0 0 .75rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.band-gallery li { display: grid; gap: .35rem; align-content: start; }
.band-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-3); }
.repeat-rows { display: grid; gap: .4rem; margin-bottom: .5rem; }
.repeat-row { display: grid; gap: .4rem; align-items: center; }
.repeat-cols-2 { grid-template-columns: 1fr 1fr auto; }
.repeat-cols-3 { grid-template-columns: 12rem 1fr 1fr auto; }
.repeat-cols-4 { grid-template-columns: 1fr 1fr 1fr 1fr auto; }
/* Besetzung mit optionalen Angaben (8 Felder): zwei Zeilen à vier Felder, Löschen rechts oben; Zeilen optisch getrennt */
.repeat-cols-8 { grid-template-columns: repeat(4, 1fr) auto; padding: .4rem; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.repeat-cols-8 > button { grid-column: 5; grid-row: 1; }
.repeat-cols-8 > :nth-child(-n+4) { grid-row: 1; }
.repeat-cols-8 > :nth-child(n+5):not(button) { grid-row: 2; }
@media (max-width: 640px) {
    .repeat-row { grid-template-columns: 1fr auto; }
    .repeat-row > :not(button) { grid-column: 1; }
    .repeat-row > button { grid-column: 2; grid-row: 1; }
    .repeat-row.repeat-cols-8 > :not(button):nth-child(n) { grid-row: auto; }
}

/* Veranstaltungsplanung Teil 2: Booking-Board, Zeitplan-Builder, Running Order, Aufgaben */
.chips-small { margin-bottom: 0; }
.chips-small a, .chips-small .btn { font-size: .82rem; padding: .25rem .7rem; }
.section-title { margin: 1.5rem 0 .75rem; }
.booking-layout { display: grid; grid-template-columns: minmax(220px, 280px) 1fr; gap: 1rem; align-items: start; }
.booking-layout.booking-readonly { grid-template-columns: 1fr; }
.booking-pool { display: grid; gap: .5rem; position: sticky; top: .5rem; }
.booking-pool h3, .booking-col h3 { margin: 0; font-size: .95rem; }
.booking-pool .booking-list { max-height: 28rem; overflow: auto; }
.booking-columns { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .75rem; }
.booking-col { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .6rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; align-content: start; min-height: 9rem; min-width: 0; }
.booking-col-confirmed { border-top: 3px solid var(--success); }
.booking-col-requested { border-top: 3px solid var(--info); }
.booking-col-standby { border-top: 3px solid var(--warning); }
.booking-col-declined { border-top: 3px solid var(--danger); }
.booking-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: .4rem; min-height: 4rem; align-content: start; }
.booking-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .2rem .45rem; align-items: start; padding: .45rem .5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.booking-readonly .booking-card { grid-template-columns: minmax(0, 1fr); }
.booking-card[draggable="true"] { cursor: grab; }
.booking-card.is-dragging { opacity: .45; }
.booking-card.is-pool { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
.booking-main { display: grid; gap: .15rem; min-width: 0; overflow-wrap: break-word; justify-items: start; }
.booking-note { font-style: italic; }
.booking-main .badge { white-space: normal; max-width: 100%; }   /* z. B. „✓ Geprüft & unbedenklich“ in schmalen Spalten */
.booking-grip { color: var(--muted); display: inline-flex; }
.booking-grip .icon { width: 1rem; height: 1rem; }
.booking-actions { grid-column: 1 / -1; display: flex; gap: .3rem; align-items: center; flex-wrap: wrap; }
.booking-actions select { flex: 1; min-width: 7rem; }
.booking-marker, .slot-marker { height: 0; border-top: 3px solid var(--accent); border-radius: 3px; list-style: none; }
.booking-empty { padding: .5rem; }
@media (max-width: 760px) { .booking-layout { grid-template-columns: 1fr; } .booking-pool { position: static; } }
@media (max-width: 480px) { .booking-columns { grid-template-columns: 1fr; } }

.task-table .check-col { width: 2.2rem; text-align: center; }
.task-table input[type="checkbox"] { width: 1.15rem; height: 1.15rem; accent-color: var(--accent); }
.task-table tr.task-done td:not(.check-col), .task-table tr.task-na td:not(.check-col) { color: var(--muted); }
.task-table tr.task-done strong { text-decoration: line-through; }
.task-table tr.is-mine td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.task-table tr:target { background: var(--accent-soft); }
.member-search { position: relative; margin-top: .4rem; }
.member-results { list-style: none; margin: .25rem 0 0; padding: .25rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); display: grid; gap: .15rem; max-height: 12rem; overflow: auto; }
.member-results .btn { width: 100%; justify-content: flex-start; text-align: left; }

/* Zeitplan-Builder */
/* D90: Der Zeitplan nutzt die volle Fensterbreite (sonst 1280 px) – Platz für mehrere Bühnenspalten. */
.content:has(.schedule-builder) { max-width: none; }
.schedule-builder { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-items: start; }
.schedule-builder > .card { margin: 0; }
.schedule-palette, .schedule-preview { grid-column: 1 / -1; }
/* Nur eine Spalte (keine Bühnen): Zeitstrahl rechts daneben, sobald Platz ist */
@media (min-width: 1400px) {
    .schedule-builder:not(.is-multi-stage) { grid-template-columns: minmax(0, 1fr) 300px; }
    .schedule-builder:not(.is-multi-stage) .schedule-preview { grid-column: auto; position: sticky; top: calc(var(--topbar-h) + 1rem); }
}
.schedule-main > p.small { max-width: 90ch; }
/* Bausteine als kompakte Leiste über dem Zeitplan – bleibt beim Scrollen sichtbar, damit man auch in lange Spalten ziehen kann */
.schedule-palette { position: sticky; top: calc(var(--topbar-h) + .25rem); z-index: 6; max-height: 40vh; overflow: auto; padding: .75rem 1rem; box-shadow: var(--shadow);
    display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: .5rem 1rem; align-items: start; }
.schedule-palette > h2 { grid-area: 1 / 1; font-size: 1rem; margin: .3rem 0 0; }
.schedule-palette > ul[data-palette] { grid-area: 1 / 2; }
.schedule-palette > h3 { grid-area: 2 / 1; font-size: .9rem; margin: .3rem 0 0; }
.schedule-palette > p:not(:first-of-type), .schedule-palette > ul:last-child { grid-area: 2 / 2; margin: .3rem 0 0; }
.schedule-palette > ul:empty { display: none; }
.schedule-palette > p:first-of-type { grid-area: 3 / 1 / 4 / -1; margin: 0; }
.palette-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.palette-item { display: inline-flex; align-items: baseline; gap: .45rem; padding: .3rem .6rem; border: 1px solid var(--border); border-left: 4px solid var(--slot-color, var(--muted)); border-radius: var(--radius-sm); background: var(--surface-2); cursor: grab; font-weight: 600; font-size: .85rem; white-space: nowrap; }
.palette-item .small { font-size: .75rem; font-weight: 500; }
.palette-item:hover, .palette-item:focus-visible { border-color: var(--accent); }
.slot-kind-setup, .slot-kind-teardown { --slot-color: #16a34a; }
.slot-kind-soundcheck { --slot-color: #2563eb; }
.slot-kind-doors, .slot-kind-curfew { --slot-color: #d97706; }
.slot-kind-show { --slot-color: var(--accent); }
.slot-kind-changeover, .slot-kind-break { --slot-color: #a1a1aa; }
.slot-kind-other { --slot-color: #71717a; }
.schedule-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .55rem; min-height: 3rem; }
.slot { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .5rem .75rem; align-items: center; padding: .65rem .8rem; border: 1px solid var(--border); border-left: 5px solid var(--slot-color, var(--muted)); border-radius: var(--radius-sm); background: var(--surface-2); }
.slot > .slot-fields { grid-column: 2 / -1; }
.slot.slot-kind-show { background: var(--accent-soft); }
.slot.slot-kind-changeover, .slot.slot-kind-break { padding-top: .35rem; padding-bottom: .35rem; }
.slot.is-overlap { outline: 2px dashed var(--warning); outline-offset: -2px; }
.slot.is-declined { opacity: .75; outline: 2px solid var(--danger); outline-offset: -2px; }
.slot.is-dragging { opacity: .4; }
.slot-grip { cursor: grab; color: var(--muted); font-weight: 700; letter-spacing: -.15em; padding: .35rem .1rem; user-select: none; }
.slot-time { display: flex; flex-wrap: wrap; gap: .35rem .6rem; align-items: center; }
.slot-time input[type="time"] { width: 6.9rem; min-width: 0; }
.slot-time select { width: 5.9rem; min-width: 0; }
.slot-clock { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.slot-fields { display: grid; gap: .35rem; min-width: 0; }
/* Felder als festes Raster (D90): Art | Bezeichnung | Dauer – mit Band: Art | Band / Bezeichnung | Dauer; darunter Bühne | Notiz */
.slot-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto; gap: .4rem; align-items: center; }
.slot-row > select, .slot-row > input { width: 100%; min-width: 0; }
.slot-row:has(> [data-f="booking_id"]) { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto; }
.slot-row:has(> [data-f="booking_id"]) > [data-f="booking_id"] { grid-column: 2 / -1; }
.slot-row:has(> [data-f="booking_id"]) > [data-f="title"] { grid-column: 1 / 3; }
.slot-row:has(> [data-f="note"]) { grid-template-columns: minmax(0, 1fr); }
.slot-row:has(> .slot-stage) { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.slot-dur { display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; }
.slot-dur input { width: 4.6rem; }
.slot-actions { display: flex; gap: .2rem; }
.slot p { margin: 0; }
.schedule-builder:not(:has(.schedule-palette)) .slot { grid-template-columns: 6rem minmax(0, 1fr); }
.schedule-builder:not(:has(.schedule-palette)) .slot > .slot-fields { grid-column: 2; }
.timeline { position: relative; margin-left: 3.2rem; border-left: 2px solid var(--border); min-height: 3rem; }
.tl-block { position: absolute; left: .35rem; right: 0; border-radius: 4px; background: var(--slot-color, var(--muted)); color: #fff; font-size: .72rem; line-height: 1.15; padding: 1px 4px; overflow: hidden; display: flex; gap: .3rem; align-items: flex-start; }
.tl-block.is-point { z-index: 2; left: auto; right: .3rem; height: auto !important; margin-top: -.55rem; background: var(--slot-color); border-radius: 999px; padding: 1px 8px; box-shadow: 0 0 0 2px var(--surface); }
.tl-block.is-overlap { box-shadow: 0 0 0 2px var(--warning); }
.tl-block.is-declined { text-decoration: line-through; opacity: .7; }
.tl-time { position: absolute; left: -3.5rem; width: 3rem; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-block .tl-time { position: static; width: auto; color: inherit; opacity: .85; }
.tl-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.schedule-state { min-height: 1em; }
/* Mehrere Bühnen (D73): eine Spalte je Bühne, Bühnen-Leiste, Zeitstrahl in Spalten */
.stage-bar { display: flex; flex-wrap: wrap; gap: .4rem .5rem; align-items: center; margin: 0 0 .75rem; }
.stage-bar:empty { display: none; }
.stage-bar-label { font-weight: 600; font-size: .9rem; }
.stage-chip { display: inline-flex; align-items: center; gap: .1rem; padding: .15rem .25rem .15rem .4rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.stage-chip input { width: 9.5rem; min-width: 0; padding: .2rem .35rem; }
.schedule-lanes.is-multi { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(min(24rem, 85vw), 1fr); gap: 1rem; overflow-x: auto; padding-bottom: .35rem; margin-bottom: 1rem; }
.schedule-lanes.is-multi .schedule-list { margin-bottom: .3rem; }
.lane { min-width: 0; }
.schedule-lanes.is-multi .lane { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .75rem; background: var(--surface); }
.schedule-lanes.is-multi .lane.is-active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.lane-head { font-size: .95rem; margin: 0 0 .5rem; display: flex; flex-wrap: wrap; gap: .1rem .4rem; align-items: baseline; }
.lane-empty { margin: 0; }
.schedule-lanes.is-multi .slot > .slot-fields { grid-column: 1 / -1; }
.timeline.is-multi { margin-left: 3.2rem; }
.tl-head { position: absolute; top: 0; height: 18px; font-size: .72rem; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-bottom: 2px solid var(--border); }
.timeline.is-multi .tl-block .tl-time { display: none; }
.cron-url code { word-break: break-all; display: inline-block; padding: .3rem .45rem; background: var(--surface-2); border-radius: var(--radius-sm); }
@media (max-width: 900px) {
    .schedule-palette { position: static; max-height: none; grid-template-columns: minmax(0, 1fr); }
    .schedule-palette > * { grid-area: auto !important; }
}
@media (max-width: 600px) {
    .slot { grid-template-columns: minmax(0, 1fr) auto; }
    .slot-grip { display: none; }
    .slot > .slot-fields { grid-column: 1 / -1; }
}

/* Running Order kompakt (Dashboard, Eckdaten) */
.ro-mini + .ro-mini { margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--border); }
.ro-mini p { margin: 0 0 .4rem; }
.ro-mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
.ro-mini-list li { display: flex; gap: .7rem; align-items: baseline; padding: .2rem .5rem; border-left: 3px solid var(--slot-color, var(--border)); }
.ro-mini-list li.ro-kind-show { --slot-color: var(--accent); font-weight: 600; }
.ro-mini-list li.ro-kind-doors, .ro-mini-list li.ro-kind-curfew { --slot-color: #d97706; color: var(--muted); }
.ro-mini-list li.is-declined > span:last-child { text-decoration: line-through; }
.ro-time { font-variant-numeric: tabular-nums; min-width: 3rem; color: var(--muted); font-weight: 600; }

/* Kommunikation */
.rcpt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-top: .75rem; }
.rcpt-grid h3 { font-size: .95rem; margin: 0 0 .4rem; }
.rcpt-list li { padding: .35rem .55rem; }
.placeholder-bar { display: flex; flex-wrap: wrap; gap: .25rem; align-items: center; margin: -.25rem 0 .75rem; }
.placeholder-bar .btn { font-family: var(--mono); font-size: .75rem; padding: .15rem .4rem; }
.mail-entry { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: .5rem; background: var(--surface-2); }
.mail-entry > summary { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .6rem .8rem; cursor: pointer; }
.mail-entry .mail-body { padding: 0 .8rem .8rem; }
.details-inline summary { cursor: pointer; color: var(--muted); }
.send-progress { display: flex; gap: .6rem; align-items: center; margin: .5rem 0; }
.send-progress progress { flex: 1; }
@media print {
    .booking-pool, .schedule-palette, .slot-actions, .slot-grip, .check-col input { display: none !important; }
}

/* ==========================================================================
   Benutzerführung: (?)-Tooltips (Help::tip / View::hint / App.hint) und Online-Hilfe (Drawer)
   ========================================================================== */
.hint { position: relative; display: inline-flex; vertical-align: middle; margin-left: .3rem; line-height: 1; }
.hint-btn {
    width: 1.1rem; height: 1.1rem; padding: 0; border-radius: 50%; border: 1px solid var(--border);
    background: transparent; color: var(--muted); font: 600 .7rem/1 system-ui, sans-serif; cursor: help;
    display: inline-grid; place-items: center; flex: none;
}
.hint-btn:hover, .hint.open .hint-btn { border-color: var(--accent); color: var(--accent); }
.hint-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.hint-tip {
    display: none; position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%);
    width: max-content; max-width: min(20rem, calc(100vw - 2rem)); z-index: 70;
    padding: .5rem .7rem; border-radius: var(--radius-sm, 6px); border: 1px solid var(--border);
    background: var(--surface-3); color: var(--text); box-shadow: var(--shadow);
    font-size: .82rem; font-weight: 400; line-height: 1.4; text-align: left; text-transform: none; letter-spacing: normal; white-space: normal;
    pointer-events: none;
}
/* Ohne JS reicht CSS (Hover/Fokus); mit JS setzt app.js .open und eine feste, im Fenster gehaltene Position. */
.hint:hover .hint-tip, .hint:focus-within .hint-tip, .hint.open .hint-tip { display: block; }
.hint-tip.is-fixed { position: fixed; transform: none; bottom: auto; }
@media print { .hint { display: none; } }

.help-open { position: relative; }
.help-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 40; }
.help-drawer {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); z-index: 45;
    display: flex; flex-direction: column; background: var(--surface); color: var(--text);
    border-left: 1px solid var(--border); box-shadow: var(--shadow);
    transform: translateX(100%); transition: transform .22s ease;
}
.help-drawer.is-open { transform: none; }
.help-drawer:focus { outline: none; }
@media (prefers-reduced-motion: reduce) { .help-drawer { transition: none; } }
.help-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .7rem 1rem; background: var(--topbar-bg); color: #f2f2f4; }
.help-head h2 { margin: 0; font-size: 1.05rem; display: flex; align-items: center; gap: .45rem; }
.help-head .btn-icon { color: #f2f2f4; }
.help-search { padding: .75rem 1rem; border-bottom: 1px solid var(--border); }
.help-search input { width: 100%; }
.help-body { flex: 1; overflow-y: auto; padding: .75rem 1rem 2rem; overscroll-behavior: contain; }
.help-ctx { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: .25rem 0 .5rem; }
.help-group { margin: 0 0 1rem; }
.help-group h3 { font-size: .85rem; margin: .9rem 0 .35rem; color: var(--muted); font-weight: 600; }
.help-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.help-list button {
    width: 100%; text-align: left; background: var(--surface-2); color: var(--text); border: 1px solid transparent;
    border-radius: var(--radius-sm, 6px); padding: .5rem .65rem; cursor: pointer; font: inherit; display: grid; gap: .1rem;
}
.help-list button:hover, .help-list button:focus-visible { border-color: var(--accent); }
.help-list small { color: var(--muted); font-size: .76rem; }
.help-list .help-snippet { color: var(--muted); font-size: .8rem; }
.help-list mark, .help-article mark { background: var(--accent-soft); color: inherit; border-radius: 2px; padding: 0 1px; }
.help-tag { display: inline-block; font-size: .7rem; padding: 0 .4rem; border-radius: 999px; background: var(--surface-3); color: var(--muted); margin-left: .35rem; vertical-align: middle; }
.help-tag-offline { background: var(--accent-soft); color: var(--accent); }
.help-quick { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .75rem; }
.help-quick button { font-size: .8rem; }
.help-back { margin-bottom: .5rem; }
.help-article { font-size: .92rem; line-height: 1.55; }
.help-article h2 { font-size: 1.15rem; margin: .25rem 0 .2rem; }
.help-article h3 { font-size: 1rem; margin: 1.1rem 0 .35rem; }
.help-article h4, .help-article h5 { font-size: .92rem; margin: .9rem 0 .3rem; }
.help-article p, .help-article ul, .help-article ol { margin: .4rem 0; }
.help-article ul, .help-article ol { padding-left: 1.3rem; }
.help-article .table-wrap { overflow-x: auto; margin: .5rem 0; }
.help-article table { font-size: .82rem; }
.help-article pre { white-space: pre-wrap; font-size: .8rem; background: var(--surface-2); padding: .5rem; border-radius: 6px; }
.help-source { color: var(--muted); font-size: .78rem; margin: 0 0 .6rem; }
.help-lead { color: var(--muted); }
.help-ui { display: inline-block; padding: 0 .35rem; border: 1px solid var(--border); border-radius: 4px; background: var(--surface-2); font-size: .85em; white-space: nowrap; }
.help-path { font-weight: 600; }
.help-check { list-style: none; padding-left: .2rem !important; }
.help-check li::before { content: "☐ "; color: var(--muted); }
.help-box { border-left: 3px solid var(--info); background: var(--surface-2); padding: .45rem .7rem; border-radius: 0 6px 6px 0; margin: .6rem 0; }
.help-box > :first-child { margin-top: 0; } .help-box > :last-child { margin-bottom: 0; }
.help-box-title { display: block; margin-bottom: .15rem; }
.help-box-tipp { border-left-color: var(--success); }
.help-box-wichtig { border-left-color: var(--warning); }
.help-box-achtung { border-left-color: var(--danger); }
@media print { .help-drawer, .help-backdrop, .help-open { display: none !important; } }

/* Unterabschnitte einer Karte (z. B. Schnittstellen Shop/Brisepay in der Veranstaltungsplanung) */
.card-section + .card-section { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.card-section > h3 { margin-top: 0; }

/* Brisepay: Auswahl laufendes / vorbereitetes Event (D98) */
.event-switch { align-items: center; margin: 0 0 1rem; padding: .6rem .9rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.event-switch select { min-width: 0; max-width: 100%; flex: 1 1 220px; }
.event-switch.is-prepared { border-color: var(--info); box-shadow: inset 4px 0 0 var(--info); }
.event-switch .badge { white-space: normal; max-width: 100%; }

/* Bankabgleich (Vereinsverwaltung, D108) */
.segmented { display: flex; flex-wrap: wrap; gap: .25rem; }
.bank-table .list-plain { gap: .1rem; margin-top: .2rem; }
.bank-table .list-plain li { display: block; padding: 0; border: 0; background: none; }
.bank-table td.check { width: 1.5rem; }
.bank-purpose { max-width: 22rem; overflow-wrap: anywhere; }
.bank-picked:empty::before { content: "Noch nichts ausgewählt."; color: var(--muted); font-size: .9rem; }
.bank-picked li .btn { flex-shrink: 0; }
.bank-table .bank-who { min-width: 13rem; }
.bank-table .bank-iban { white-space: nowrap; font-size: .75rem; }
