:root {
  --rot: #C8202F; --gold: #F7C600; --gruen: #0B7A3E; --tinte: #231815; --soft: #6B5B52;
  --sand: #F4EADB; --line: #E3D7C6; --bg: #FBF7F0; --white: #fff;
  --f: "Alegreya Sans", system-ui, sans-serif; --fd: "Alegreya", Georgia, serif;
}
* { box-sizing: border-box; }
body { margin: 0; font: 17px/1.5 var(--f); color: var(--tinte); background: var(--bg); }
a { color: var(--rot); }
:focus-visible { outline: 3px solid var(--gruen); outline-offset: 2px; }
h1, h2 { font-family: var(--fd); font-weight: 800; line-height: 1.15; }
h1 { font-size: 2rem; margin: 0 0 .4em; }
h2 { font-size: 1.35rem; margin: 0 0 .6em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--soft); }
.lead { font-size: 1.15rem; color: var(--soft); margin-top: -.3em; }
.empty { padding: 32px; background: var(--white); border: 2px dashed var(--line); text-align: center; }

.topbar { position: fixed; inset: 0 0 auto 0; height: 56px; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 0 20px; background: var(--tinte); color: #fff; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--gold); }
.topbar__brand { display: flex; align-items: center; gap: 10px; font-family: var(--fd); font-weight: 800; font-size: 1.2rem; }
.topbar__right { margin-left: auto; display: flex; gap: 20px; }
.topbar__menu { display: none; }
.sidenav { position: fixed; top: 56px; bottom: 0; left: 0; width: 220px; background: var(--white); border-right: 1px solid var(--line); overflow-y: auto; padding: 16px 0; }
.sidenav ul { list-style: none; margin: 0; padding: 0; }
.sidenav a { display: flex; justify-content: space-between; align-items: center; padding: 10px 22px; color: var(--tinte); text-decoration: none; font-weight: 700; border-left: 5px solid transparent; }
.sidenav a:hover { background: var(--sand); }
.sidenav a[aria-current] { border-left-color: var(--rot); background: var(--sand); }
.main { padding: 32px clamp(16px, 4vw, 48px) 80px; max-width: 1180px; }
.has-nav .main { margin: 56px 0 0 220px; }
.no-nav .main { margin: 0 auto; }
.badge { font-style: normal; background: var(--rot); color: #fff; border-radius: 999px; padding: 0 8px; font-size: .8rem; }

@media (max-width: 820px) {
  .topbar__menu { display: block; margin-left: auto; background: none; color: #fff; border: 2px solid #fff; border-radius: 6px; padding: 4px 12px; font: 700 1rem var(--f); }
  .topbar__right { display: none; }
  .sidenav { transform: translateX(-100%); transition: transform .25s; z-index: 15; width: 260px; box-shadow: 4px 0 20px rgba(0,0,0,.15); }
  .menu-open .sidenav { transform: none; }
  .has-nav .main { margin-left: 0; }
}

.btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 20px; border: 0; border-radius: 8px; background: var(--rot); color: #fff; font: 700 1rem var(--f); text-decoration: none; cursor: pointer; box-shadow: 2px 2px 0 var(--tinte); }
.btn:hover { background: #A51A26; color: #fff; }
.btn--ghost { background: var(--white); color: var(--tinte); border: 2px solid var(--tinte); }
.btn--ghost:hover { background: var(--sand); color: var(--tinte); }
.btn--danger { background: var(--white); color: var(--rot); border: 2px solid var(--rot); box-shadow: none; }
.btn--danger:hover { background: var(--rot); color: #fff; }
.btn--small { min-height: 34px; padding: 4px 14px; font-size: .95rem; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--rot); font: inherit; text-decoration: underline; cursor: pointer; }
.danger, .linkbtn.danger { color: var(--rot); }
form.inline { display: inline; }

.alert { padding: 12px 16px; border-radius: 6px; background: #E6F4EC; border-left: 5px solid var(--gruen); margin: 0 0 20px; }
.alert--error { background: #FBE9EA; border-left-color: var(--rot); }

.pagehead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.pagehead h1 { margin: 0; }
.tabs { display: flex; gap: 6px; margin: 8px 0 18px; flex-wrap: wrap; }
.tabs a { padding: 6px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--tinte); text-decoration: none; font-weight: 700; font-size: .95rem; }
.tabs a[aria-current] { background: var(--tinte); color: var(--gold); border-color: var(--tinte); }

.card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 22px 24px; margin-bottom: 24px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 24px; }
.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.quick__item { display: flex; flex-direction: column; gap: 4px; padding: 20px; background: var(--white); border: 2px solid var(--tinte); border-radius: 10px; color: var(--tinte); text-decoration: none; box-shadow: 3px 3px 0 var(--gold); transition: transform .15s; }
.quick__item:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--gold); }
.quick__item strong { font-family: var(--fd); font-size: 1.3rem; }
.quick__item span { color: var(--soft); font-size: .95rem; }
.mini { list-style: none; padding: 0; margin: 0; }
.mini li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; justify-content: space-between; }
.mini li:last-child { border: 0; }
.mini time { color: var(--soft); font-variant-numeric: tabular-nums; min-width: 6em; }

.table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--sand); font-size: .9rem; }
.table tr:hover td { background: #FFFCF4; }
.table a { text-decoration: none; }
.table td.actions { white-space: nowrap; text-align: right; }
.table td.actions > * { margin-left: 12px; }
.pill { display: inline-block; padding: 1px 10px; border-radius: 999px; background: var(--line); font-size: .85rem; font-weight: 700; }
.pill--ok { background: #D9F0E3; color: var(--gruen); }
@media (max-width: 700px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; }
  .table tr { border-bottom: 2px solid var(--line); padding: 8px 0; }
  .table td { border: 0; padding: 4px 14px; }
  .table td.actions { text-align: left; }
  .table td.actions > * { margin: 0 14px 0 0; }
}

.form { display: grid; gap: 18px; }
.form--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.field { display: grid; gap: 6px; align-content: start; }
.field--wide, .form__actions, .form--grid legend { grid-column: 1 / -1; }
.field label { font-weight: 700; }
.field input:not([type=checkbox]):not([type=radio]):not([type=file]), .field select, .field textarea, .photo-admin input[type=text] {
  width: 100%; font: inherit; padding: 10px 12px; border: 2px solid var(--line); border-radius: 6px; background: var(--white); color: var(--tinte);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--tinte); outline: none; }
.field textarea { resize: vertical; }
.field--check { display: flex; gap: 8px; align-items: center; font-weight: 700; }
.help { color: var(--soft); font-size: .9rem; }
.form__actions { display: flex; gap: 20px; align-items: center; padding-top: 8px; position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 30%); padding-bottom: 12px; }
fieldset.card { margin: 0 0 8px; }
fieldset legend { font-family: var(--fd); font-weight: 800; font-size: 1.3rem; padding: 0 8px; }
@media (max-width: 700px) { .form--grid { grid-template-columns: 1fr; } }

.imgfield { display: grid; gap: 8px; justify-items: start; padding: 12px; border: 2px dashed var(--line); border-radius: 8px; background: var(--white); }
.imgfield img { max-width: 220px; max-height: 160px; object-fit: cover; border-radius: 4px; }
.imgfield__none { color: var(--soft); font-size: .95rem; }
label.inline { font-weight: 400; display: flex; gap: 6px; align-items: center; }

/* Editor */
.rte { border: 2px solid var(--line); border-radius: 8px; background: var(--white); }
.rte:focus-within { border-color: var(--tinte); }
.rte__bar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; background: var(--sand); border-bottom: 1px solid var(--line); border-radius: 6px 6px 0 0; position: sticky; top: 56px; z-index: 2; }
.rte__bar button { font: 700 .9rem var(--f); padding: 5px 10px; border: 1px solid var(--line); background: var(--white); border-radius: 5px; cursor: pointer; color: var(--tinte); }
.rte__bar button:hover, .rte__bar button[aria-pressed="true"] { background: var(--tinte); color: var(--gold); }
.rte__area { min-height: 260px; padding: 16px 20px; font-size: 1.05rem; line-height: 1.6; outline: none; }
.rte__area h2 { font-size: 1.5rem; margin: 1em 0 .4em; }
.rte__area h3 { font-size: 1.2rem; margin: 1em 0 .4em; }
.rte__area blockquote { border-left: 4px solid var(--gold); margin: 1em 0; padding-left: 1em; font-style: italic; }
.rte__area img { max-width: 100%; height: auto; }
.rte__area:empty::before { content: "Hier schreiben …"; color: var(--soft); }
.rte__src { width: 100%; min-height: 260px; border: 0; padding: 16px; font: 14px/1.5 ui-monospace, Menlo, monospace; }

/* Fotos */
.uploader { display: grid; gap: 12px; margin-bottom: 24px; }
.uploader__drop { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 28px; border: 3px dashed var(--line); border-radius: 12px; background: var(--bg); cursor: pointer; }
.uploader__drop.is-over { border-color: var(--gruen); background: #EAF6EF; }
.uploader__drop input { max-width: 100%; }
.uploader__drop span { color: var(--soft); font-size: .95rem; }
.uploader__progress { height: 28px; background: var(--line); border-radius: 999px; position: relative; overflow: hidden; }
.uploader__bar { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--gruen); transition: width .2s; }
.uploader__progress span { position: relative; display: block; text-align: center; line-height: 28px; font-weight: 700; font-size: .9rem; }
.js .uploader__fallback { display: none; }
.photo-admin { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.photo-admin li { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px; display: grid; gap: 6px; cursor: grab; }
.photo-admin li.is-dragging { opacity: .4; }
.photo-admin img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.photo-admin input[type=text] { padding: 6px 8px; font-size: .9rem; }
.photo-admin__opts { display: flex; justify-content: space-between; font-size: .85rem; }
.photo-admin__opts label { display: flex; gap: 4px; align-items: center; }

.danger-zone { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.msg header { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin-bottom: 8px; }
.msg header .muted { margin-left: auto; font-size: .9rem; }
.msg--new { border-left: 5px solid var(--rot); }
.msg footer { display: flex; gap: 18px; align-items: center; }

.auth { max-width: 420px; margin: 10vh auto; background: var(--white); padding: 36px; border-radius: 12px; border: 1px solid var(--line); box-shadow: 4px 4px 0 var(--gold); }
.auth img { margin-bottom: 12px; }
.auth .btn { justify-self: start; }

/* Mitgliedsanträge */
.pill--new { background: #FBE9EA; color: var(--rot); }
.actions-row { display: flex; flex-wrap: wrap; gap: 12px; }
.doc { max-width: 820px; }
.doc__head { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 3px solid var(--tinte); padding-bottom: 14px; margin-bottom: 8px; }
.doc__head h2 { margin: 0; font-size: 1.8rem; }
.doc__head p { margin: 0; color: var(--soft); }
.doc h3 { font-family: var(--fd); font-size: 1.15rem; margin: 22px 0 6px; color: var(--rot); }
.doc__table { width: 100%; border-collapse: collapse; }
.doc__table th, .doc__table td { text-align: left; padding: 6px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc__table th { width: 38%; font-weight: 400; color: var(--soft); }
.doc__text { font-size: .88rem; color: var(--soft); margin: 8px 0 0; }
.doc__sign img { max-width: 360px; width: 100%; border-bottom: 2px solid var(--tinte); display: block; }
.doc__sign p { margin: 6px 0 0; font-size: .95rem; }
@media print {
  .topbar, .sidenav, .noprint, .alert { display: none !important; }
  .has-nav .main { margin: 0; padding: 0; }
  body { background: #fff; font-size: 12pt; }
  .card { border: 0; padding: 0; }
  .doc details { display: block; }
  .doc details > * { display: block; }
}

/* Schichten */
.pill--member { background: #D9F0E3; color: var(--gruen); }
.generator { margin: 16px 0 24px; padding: 16px 18px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }
.generator summary { cursor: pointer; font-size: 1.1rem; }
.generator form { margin-top: 14px; }
.shifttable input.tiny { width: 64px; padding: 6px 8px; font: inherit; border: 2px solid var(--line); border-radius: 6px; }
.signup-chip { display: inline-flex; align-items: center; gap: 4px; background: var(--sand); border-radius: 999px; padding: 2px 10px; margin: 0 4px 4px 0; }
.signup-add { display: flex; gap: 6px; margin-top: 6px; }
.signup-add input, .rename input { font: inherit; font-size: .9rem; padding: 4px 8px; border: 2px solid var(--line); border-radius: 6px; width: 170px; }
.doc__table--plan th { font-weight: 700; color: var(--tinte); }
.doc__table--plan td, .doc__table--plan th { padding: 8px 6px; }
.free { color: #bbb; }
@media (max-width: 700px) {
  .table td[data-label]::before { content: attr(data-label); display: block; font-size: .8rem; color: var(--soft); font-weight: 700; }
}
.request { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.request__note { margin: 6px 0 0; font-style: italic; }
.quick__item--alert { border-color: var(--rot); box-shadow: 3px 3px 0 var(--rot); }
.notify-form { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.notify-form input[type=email] { font: inherit; font-size: .95rem; padding: 6px 8px; border: 2px solid var(--line); border-radius: 6px; min-width: 200px; }
.aud { display: grid; gap: 8px; padding: 14px 16px; border: 2px solid var(--line); border-radius: 8px; background: var(--white); }
.aud__opt { display: flex; gap: 8px; align-items: baseline; cursor: pointer; }
.aud__groups { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 8px 0 0 26px; }
.aud:not(:has(input[value=groups]:checked)) .aud__groups { opacity: .45; }
.field__label { font-weight: 700; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px 2px 6px; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; margin: 0 4px 4px 0; background: var(--white); cursor: pointer; }
.chip:has(input:checked) { background: #D9F0E3; border-color: var(--gruen); }
.groups-form { display: flex; flex-wrap: wrap; align-items: center; max-width: 440px; }
.approve-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.approve-form__groups { display: flex; flex-wrap: wrap; }

/* Formular-Baukasten */
.fb-switches { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.fb-switches .tiny, .fb-field .tiny { width: 70px; padding: 6px 8px; font: inherit; border: 2px solid var(--line); border-radius: 6px; }
.fb-fields { display: grid; gap: 12px; }
.fb-field { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.fb-field__row { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.fb-field input:not([type=checkbox]), .fb-field select, .fb-field textarea { font: inherit; padding: 8px 10px; border: 2px solid var(--line); border-radius: 6px; background: var(--white); }
.fb-field__label { flex: 1 1 240px; font-weight: 700; }
.fb-add { margin-top: 16px; align-items: center; }
.fb-delete { margin-top: 16px; }
.entries td { vertical-align: top; }

/* Mitgliederverzeichnis */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 12px 0 18px; }
.stats div { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; display: grid; }
.stats strong { font-family: var(--fd); font-size: 1.8rem; line-height: 1; }
.stats span { color: var(--soft); font-size: .95rem; }
.dir-search { display: flex; gap: 8px; margin-bottom: 8px; }
.dir-search input { flex: 1; font: inherit; padding: 8px 12px; border: 2px solid var(--line); border-radius: 6px; }
.sig-mini { max-width: 220px; max-height: 70px; border-bottom: 2px solid var(--tinte); vertical-align: middle; background: #fff; }
.log li { display: grid; gap: 2px; }
.request-card__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; margin-bottom: 6px; }
.request-card__form { display: grid; gap: 10px; }
.request-card__form input[name=answer] { font: inherit; padding: 8px 10px; border: 2px solid var(--line); border-radius: 6px; }
.request-card--cancel { border-left: 5px solid var(--rot); }
.sidenav__group { margin: 18px 22px 4px; font-family: var(--fd); font-weight: 800; font-size: .82rem; letter-spacing: .02em; color: var(--rot); }
.sidenav__sep { border: 0; border-top: 1px solid var(--line); margin: 14px 22px 8px; }
.sidenav a { padding-top: 7px; padding-bottom: 7px; }

/* Mitgliederverzeichnis: Familien zum Aufklappen */
.dir-table tbody.household { border-top: 2px solid var(--line); }
.js .dir-table .fam-row { display: none; }
.js .dir-table .household.is-open .fam-row { display: table-row; }
.dir-table .fam-row td { background: #FCFAF6; }
.dir-table .fam-row td:first-child { padding-left: 34px; }
.dir-table tr.is-dim td { opacity: .6; }
.fam-branch { color: var(--soft); }
.fam-toggle { margin-top: 4px; background: none; border: 0; padding: 0; font: inherit; font-size: .9rem; color: var(--gruen); font-weight: 700; cursor: pointer; }
.household.is-open .fam-toggle { color: var(--soft); }
@media (max-width: 700px) {
  .js .dir-table .household.is-open .fam-row { display: block; }
  .dir-table .fam-row td:first-child { padding-left: 14px; }
  .dir-table .fam-row { border-left: 4px solid var(--gruen); margin-left: 10px; }
}
.roles-box { display: flex; flex-wrap: wrap; }
.pill--role { background: #FFF1B8; color: var(--tinte); margin-top: 3px; }
.roles-list { display: grid; gap: 6px; max-width: 560px; }
.role-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.role-row .chip { margin: 0; }
.role-since { display: flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--soft); }
.role-since input { width: 130px; font: inherit; padding: 5px 8px; border: 2px solid var(--line); border-radius: 6px; }
.role-row:not(:has(input[type=checkbox]:checked)) .role-since { opacity: .35; }

/* ---------- Shop ---------- */
.pill--warn { background: #FFF1B8; color: #6B5300; }
.alert--hint { background: #FFF7D6; border-left-color: var(--gold); }
.plainlist { margin: 0; padding-left: 18px; }
.plainlist li + li { margin-top: 4px; }
.searchbar { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.searchbar input, .searchbar select { flex: 1 1 280px; font: inherit; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 6px; background: #fff; }
.thumbcell { width: 64px; }
.thumbcell img { width: 48px; height: 48px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.table--plain { border-radius: 6px; }
.table--plain th, .table--plain td { padding: 8px 12px; }
.variants input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--gruen); }
.variants tr.is-off td { opacity: .5; }
.input--small { width: 110px; font: inherit; padding: 6px 8px; border: 1.5px solid var(--line); border-radius: 6px; }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0 0 12px; }
.dl dt { color: var(--soft); }
.dl dd { margin: 0; }
.more { margin-top: 12px; }
.more summary { cursor: pointer; color: var(--rot); font-weight: 700; }
.ticket-admin { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.ticket-admin li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 8px 12px; background: var(--bg); border-radius: 6px; border-left: 4px solid var(--line); }
.ticket-admin li.is-in { border-left-color: var(--gruen); }
.ticket-admin li.is-void { opacity: .55; text-decoration: line-through; }
.ticket-admin code { font-size: 1.05rem; font-weight: 700; letter-spacing: .05em; }
.gallery-admin { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.gallery-admin li { display: grid; gap: 4px; background: var(--bg); padding: 8px; border-radius: 8px; font-size: .92rem; }
.gallery-admin img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 4px; }
.checkin { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 10px 0 16px; }
.checkin label { font-weight: 700; width: 100%; }
.checkin input { flex: 1 1 240px; font: 700 2rem ui-monospace, Menlo, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; padding: 10px 14px; border: 3px solid var(--tinte); border-radius: 8px; }
.checkin .btn { min-height: 60px; font-size: 1.2rem; }
.checkin-result { display: grid; gap: 4px; padding: 20px 22px; border-radius: 10px; color: #fff; margin-bottom: 18px; }
.checkin-result strong { font-size: 1.7rem; font-family: var(--fd); }
.checkin-result a { color: inherit; }
.checkin-result--ok { background: var(--gruen); }
.checkin-result--warn { background: #B57B00; }
.checkin-result--bad { background: var(--rot); }
.shop-form fieldset.form--grid { display: grid; }
.shop-form fieldset.card > .field + .field, .shop-form fieldset.card > .field + table, .shop-form fieldset.card > .gallery-admin + .field { margin-top: 16px; }
.actions-row form.inline { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.table td[data-label="Bestellung"], .table td[data-label="Summe"], .table td[data-label="Datum"] { white-space: nowrap; }
.help code { font-size: .82rem; background: var(--sand); padding: 1px 5px; border-radius: 4px; }
.table td[data-label="Karte"] code, .table td[data-label="Preis"] { white-space: nowrap; }
.checkin-result form { margin-top: 10px; }
.btn--big-admin { min-height: 64px; font-size: 1.4rem; padding: 10px 28px; background: #fff; color: var(--gruen); border: 0; }
.checkin-help { margin-top: 12px; }
.paper-variants { display: flex; flex-wrap: wrap; gap: 14px 24px; }
.paper-variants[hidden] { display: none; }
.payout-box { display: grid; gap: 2px; padding: 8px 12px; margin-bottom: 8px; background: #FFF7D6; border-radius: 6px; text-align: left; white-space: normal; }
.payout-box code { font-size: 1rem; font-weight: 700; }
.payout-box { min-width: 240px; } .payout-box code { white-space: nowrap; }
.checkin input { min-width: 0; width: 100%; } @media (max-width: 520px) { .checkin input { font-size: 1.5rem; } .checkin .btn { width: 100%; } }

/* ---------- Saalbuchung ---------- */
.event-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.event-card { display: grid; gap: 4px; padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; color: var(--tinte); text-decoration: none; }
.event-card:hover { border-color: var(--tinte); }
.event-card strong { font-family: var(--fd); font-size: 1.15rem; }
.event-card--off { opacity: .7; border-style: dashed; }
.bar { display: block; height: 6px; border-radius: 99px; background: var(--sand); overflow: hidden; margin: 4px 0; }
.bar i { display: block; height: 100%; background: var(--rot); }
.waitlist { border-left: 5px solid var(--gold); }
.waitlist__list li { padding: 8px 0; border-top: 1px solid var(--line); list-style: none; }
.waitlist__list { padding: 0; }
.assign-wish { color: #6B5300; font-style: italic; }
.seating { padding: 16px; --free-bg: #E3F1E4; --free-line: #4C9459; }
.seat-head { display: grid; gap: 10px; margin-bottom: 10px; }
.assign-box { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; padding: 12px 16px; background: #FFF7D6; border-left: 5px solid var(--gold); border-radius: 6px; }
.seat-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; color: var(--soft); }
.seat-stats b { color: var(--tinte); font-size: 1.1rem; }
.seat-stats .zoom { margin-left: auto; display: flex; gap: 6px; }
.seatmap .stage, .editmap .stage { margin: 0 auto 18px; max-width: 520px; height: 32px; border-radius: 0 0 90px 90px; background: var(--sand); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: .75rem; letter-spacing: .3em; text-transform: uppercase; color: var(--soft); font-weight: 700; }
.mapbox { overflow-x: auto; padding: 4px 0 10px; }
.map { display: flex; flex-direction: column; gap: 5px; align-items: safe center; min-width: min-content; padding: 0 4px; user-select: none; -webkit-user-select: none; }
.srow { display: flex; align-items: center; gap: 5px; flex: none; }
.trow { gap: 18px !important; align-items: flex-start !important; margin: 8px 0; }
.rlbl { width: 26px; flex: none; text-align: center; font-size: .75rem; color: var(--soft); font-weight: 700; background: none; border: 0; }
button.rlbl { cursor: pointer; }
.tcell { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: none; }
.tbl { display: flex; gap: 4px; }
.tbl.lr .tside { display: flex; flex-direction: column; gap: 4px; }
.tbl.tb { flex-direction: column; }
.tbl.tb .tside { display: flex; gap: 4px; justify-content: center; }
.tbody { background: var(--sand); border: 1px solid #C9BBA6; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: calc(var(--seat, 26px) * .45); font-weight: 700; color: var(--soft); padding: 0; }
.tbl.lr .tbody { width: calc(var(--seat, 26px) * 1.15); writing-mode: vertical-rl; }
.tbl.tb .tbody { height: calc(var(--seat, 26px) * .9); }
button.tbody { cursor: pointer; }
.seat { width: var(--seat, 26px); height: var(--seat, 26px); flex: none; border-radius: 6px 6px 4px 4px; border: 1.5px solid #B4BBAE; background: #fff; font-size: calc(var(--seat, 26px) * .38); line-height: 1; color: var(--soft); display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; font-family: var(--f); }
.seat.gap { border: 0; background: none; pointer-events: none; }
.seat.free { background: var(--free-bg); color: #275330; border-color: color-mix(in srgb, var(--cat, var(--free-line)) 60%, var(--free-line)); }
.seat.free:hover { transform: translateY(-2px); border-color: var(--cat, var(--free-line)); }
.seat.sel { background: var(--tinte); border-color: var(--tinte); color: var(--gold); font-weight: 700; transform: translateY(-2px); }
.seat.taken { background: #8E2B22; border-color: #6E1F18; color: #F7E7E3; }
.seat.taken--online { background: #1F4E9C; border-color: #173B76; color: #E6EEFB; }
.seat.taken--in { box-shadow: inset 0 0 0 2px #7DDC98; }
.seat.taken--resale { background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.35) 0 3px, transparent 3px 6px); }
.seat.ecat { border-color: color-mix(in srgb, var(--cat, #B4BBAE) 65%, #B4BBAE); background: color-mix(in srgb, var(--cat, #fff) 12%, #fff); }
.seat.off { background: transparent; border: 1px dashed var(--line); color: transparent; }
.seat-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; margin: 10px 0; font-size: .92rem; color: var(--soft); }
.seat-legend span { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 15px; height: 15px; border-radius: 4px; border: 2px solid #B4BBAE; display: inline-block; flex: none; }
.swatch--sel { background: var(--tinte); border-color: var(--tinte); }
.swatch--vvk { background: #8E2B22; border-color: #6E1F18; }
.swatch--online { background: #1F4E9C; border-color: #173B76; }
.swatch--in { background: #fff; box-shadow: inset 0 0 0 2px #7DDC98; }
.seat-bar { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 14px; margin: 10px -16px -16px; background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -8px 20px -14px rgba(0,0,0,.35); border-radius: 0 0 10px 10px; }
.seat-tags { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 160px; }
.seat-tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; background: #FFF7D6; border: 1px solid var(--gold); font-size: .88rem; }
.seat-tag button { border: 0; background: none; cursor: pointer; color: var(--soft); padding: 0; }
.seat-sum { font-size: 1.1rem; }
.seat-info { position: relative; display: grid; gap: 4px; padding: 12px 40px 12px 16px; margin-top: 8px; background: #F0F4FB; border-left: 5px solid #1F4E9C; border-radius: 6px; }
.seat-info__x { position: absolute; right: 8px; top: 6px; border: 0; background: none; cursor: pointer; font-size: 1.1rem; }
.seat-toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 100; background: var(--tinte); color: #fff; padding: 10px 18px; border-radius: 99px; }
.seat-dialog { border: 1px solid var(--line); border-radius: 12px; padding: 20px; width: min(640px, calc(100vw - 24px)); }
.seat-dialog::backdrop { background: rgba(0,0,0,.45); }
.seat-dialog__body { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-height: 65vh; overflow: auto; }
.seat-dialog__body > * { grid-column: 1 / -1; }
.seat-dialog__body > .field--half { grid-column: auto; }
.seat-dialog__body .input { width: 100%; font: inherit; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 6px; }
.seat-dialog__foot { justify-content: flex-end; margin-top: 14px; }
.picks { display: grid; gap: 6px; }
.pick { display: grid; gap: 6px; padding: 8px 10px; background: var(--bg); border-radius: 6px; }
.pick-h { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.pick-pr { margin-left: auto; font-weight: 700; }
.pick-total { display: flex; justify-content: space-between; padding: 8px 10px; border-top: 2px solid var(--tinte); font-weight: 700; }
.checkin-seat { font-family: var(--fd); font-size: 1.5rem; font-weight: 800; }
/* Mitglied ins Vorverkaufsformular übernehmen */
.mpick__list { display: grid; gap: 2px; max-height: 190px; overflow: auto; margin-top: 6px; border: 1.5px solid var(--line); border-radius: 6px; padding: 4px; }
.mpick__item { display: grid; gap: 1px; text-align: left; width: 100%; padding: 6px 8px; border: 0; border-radius: 4px; background: none; font: inherit; cursor: pointer; }
.mpick__item:hover, .mpick__item:focus-visible { background: var(--bg); }
.mpick__item span { font-size: .85rem; color: var(--muted); }
.mpick__hint--ok { color: var(--gruen, #3F5C2C); font-weight: 600; }
@media (max-width: 600px) { .seat-dialog__body { grid-template-columns: 1fr; } }

/* Saalplan-Editor */
.cats { display: grid; gap: 8px; }
.catrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.catrow .sw { width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--line); cursor: pointer; padding: 0; }
.catrow input[type=text] { flex: 1 1 160px; font: inherit; padding: 6px 10px; border: 1.5px solid var(--line); border-radius: 6px; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; margin: 12px 0; position: sticky; top: 60px; z-index: 4; }
.tool { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font: inherit; font-size: .92rem; }
.tool[aria-pressed=true] { border-color: var(--tinte); background: #FFF7D6; }
.tool .swatch { width: 12px; height: 12px; }
.editmap { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 14px 8px; }
.rowtools { display: flex; gap: 3px; margin-left: 6px; }
.rowtools button { width: 22px; height: 22px; border-radius: 5px; border: 1px solid var(--line); background: #fff; cursor: pointer; padding: 0; font-size: .8rem; color: var(--soft); }
.gen-grid { display: flex; flex-wrap: wrap; gap: 12px 18px; margin: 12px 0; }
.gen-grid[hidden] { display: none; }
.gen-grid select { font: inherit; padding: 6px 8px; border: 1.5px solid var(--line); border-radius: 6px; }
/* Saalplan darf die Seite nicht verbreitern – er scrollt innerhalb seiner Karte */
.form > *, [data-hall-editor], .seating, .seatmap, .editmap { min-width: 0; }
.editmap, .seating { max-width: 100%; overflow: hidden; }
/* Stehplatzbereiche */
.area { width: min(520px, 100%); display: grid; gap: 8px; padding: 14px 16px; margin: 6px auto; background: #fff; border: 2px dashed color-mix(in srgb, var(--cat, var(--line)) 60%, var(--line)); border-radius: 10px; }
.area--full { opacity: .65; }
.area__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.area__head strong { font-family: var(--fd); font-size: 1.1rem; }
.area__pick { display: flex; align-items: center; gap: 8px; }
.area__pick .qty__btn { width: 38px; height: 38px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; font-size: 1.2rem; }
.area__qty { min-width: 2.5em; text-align: center; font-family: var(--fd); font-size: 1.5rem; font-weight: 800; }
.area__fields { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.area__fields label { display: flex; align-items: center; gap: 6px; font-size: .92rem; }
.area__fields .input { font: inherit; padding: 6px 10px; border: 1.5px solid var(--line); border-radius: 6px; }

/* Beiträge auf Facebook/Instagram teilen */
.social__opts { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.social__opts legend { font-weight: 700; margin-bottom: 4px; }
.social__opts .help { flex: 1 1 100%; margin: 0; }
.social__log li { padding: 6px 0; border-top: 1px solid var(--line); }
.social__log li:first-child { border-top: 0; }
.social__log time { color: var(--muted); }
.social textarea { width: 100%; }

/* Sitzungsprotokolle */
.attend-bulk { margin-bottom: 12px; }
.attend td { vertical-align: middle; }
.attend select, .attend input { width: 100%; font: inherit; padding: 8px 10px; border: 2px solid var(--line); border-radius: 6px; background: var(--white); color: var(--tinte); }
.attend td:first-child { font-weight: 700; }
.attend-stats { margin-bottom: 18px; }
.attend-stats td, .attend-stats th { padding: 8px 12px; }

/* Anzeigen-Board (Phasen wie in einer Verkaufspipeline) */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(215px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 12px; align-items: start; }
.board__col { background: var(--sand); border-radius: 10px; padding: 12px; min-width: 0; }
.board__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-bottom: 10px; }
.board__head h2 { font-size: 1.05rem; margin: 0; }
.board__count { margin-left: auto; font-size: .85rem; color: var(--soft); white-space: nowrap; }
.board__list { display: grid; gap: 10px; min-height: 60px; border-radius: 8px; }
.board__list.is-over { outline: 2px dashed var(--gruen); outline-offset: 3px; }
.deal { background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: 8px; padding: 10px 12px; cursor: grab; }
.deal.is-dragging { opacity: .45; }
.deal__name { font-weight: 700; text-decoration: none; color: var(--tinte); }
.deal__meta { margin: 2px 0 0; font-size: .9rem; color: var(--soft); }
.deal__tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 0; }
.tag { background: var(--line); border-radius: 999px; padding: 0 8px; font-size: .78rem; font-weight: 700; }
.tag--ok { background: #D9F0E3; color: var(--gruen); }
.tag--warn { background: #FFF1B8; color: #6B5300; }
.two { display: flex; gap: 8px; }
.two .input--small { max-width: 90px; }
.tag--who { background: #E6EDF7; color: #2A4A7A; }
.board { grid-auto-columns: minmax(198px, 1fr); }
.board__col--quiet { background: #F2EEE7; }
.board__col--quiet .deal { border-left-color: #C9BFB2; }

/* Rechteverwaltung */
.permgroup { padding: 12px 0; border-top: 1px solid var(--line); }
.permgroup:first-of-type { border-top: 0; }
.permgroup h3 { margin: 0 0 8px; font-size: 1.05rem; display: flex; gap: 12px; align-items: baseline; }
.permgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 6px 16px; }
.permgrid .inline { display: flex; gap: 8px; align-items: center; }
