body { background: #f4f7fb; font-size: 16px; }
h1 { font-family: var(--font-head); font-weight: 900; font-size: 34px; margin: 0; line-height: 1.1; }
h2 { font-family: var(--font-head); font-weight: 900; font-size: 21px; margin: 0 0 12px; }
.muted { color: var(--muted); margin: 4px 0 0; }
.hint { color: var(--muted); font-size: 14px; line-height: 1.45; }
.small { font-size: 14px; }
.error { color: var(--violet); font-weight: 500; margin: 0; }

.bar { background: #fff; border-bottom: 1px solid #dfe5e8; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 14px; }
.logo-img { height: 40px; width: auto; display: block; }
.logo-divider { width: 1.5px; height: 34px; background: var(--line); }
.logo-title { font-family: var(--font-head); font-weight: 900; font-size: 19px; }
.logo-sub { font-size: 13px; color: var(--muted); }
.bar-right { display: flex; align-items: center; gap: 14px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 28px 24px 64px; display: block; }
section { display: flex; flex-direction: column; gap: 20px; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.panel { background: #fff; border: 1px solid #dfe5e8; border-radius: 18px; padding: 20px 22px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.inline-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.grow { flex: 1 1 220px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
input { font: inherit; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--noir); }
input:focus-visible, button:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }

.btn-primary, .btn-secondary, .btn-danger { font-size: 15px; font-weight: 700; padding: 10px 18px; border-radius: 22px; border: 2px solid transparent; }
.btn-primary { background: var(--vanice); color: #fff; }
.btn-secondary { background: #fff; color: var(--noir); border-color: var(--line); }
.btn-danger { background: #fff; color: var(--violet); border-color: var(--lavender); }
.btn-link { background: none; border: none; color: var(--vanice); font-weight: 500; padding: 4px 0; align-self: flex-start; }

.login { max-width: 420px; margin: 40px auto; background: #fff; border: 1px solid #dfe5e8; border-radius: 18px; padding: 28px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.ev-card { text-align: left; background: #fff; border: 1px solid #dfe5e8; border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; color: var(--noir); }
.ev-card:hover { border-color: var(--sky); }
.ev-card strong { font-family: var(--font-head); font-weight: 900; font-size: 20px; }
.tag { display: inline-block; align-self: flex-start; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 12px; background: var(--sky-tint); color: var(--noir); }
.tag.live { background: var(--orange); }
.tag.closed { background: #e4e0ee; color: var(--violet); }

.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.stat { background: var(--noir); color: #fff; border: 3px solid transparent; border-radius: 18px; padding: 14px 18px; font-size: 15px; display: flex; flex-direction: column; text-align: left; }
.stat:hover { border-color: var(--sky); }
.stat[aria-pressed="true"] { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 172, 85, .35); }
.stat span { font-family: var(--font-head); font-weight: 900; font-size: 38px; line-height: 1.1; }
.stat.s-in span { color: var(--orange); }
.stat.s-miss span { color: var(--lavender); }
.stat.s-out span { color: var(--sky); }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
select { font: inherit; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--noir); }
.btn-link.inline { padding: 0; font-size: 14px; }

table.groups tbody tr { cursor: pointer; }
table.groups tbody tr:hover, table.groups tbody tr.sel { background: var(--sky-tint); }
table.groups td.num, table.groups th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.groups td:first-child { font-weight: 700; }
.bar-col { width: 28%; }
.gbar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: #e6ebee; }
.gbar i { display: block; height: 100%; }
.gbar .b-in { background: var(--vanice); }
.gbar .b-miss { background: var(--lavender); }
.gbar .b-out { background: var(--sky); }

.badge { display: inline-block; font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 12px; background: #e6ebee; color: var(--noir); }
.badge.fehlend { background: #efe4fd; color: var(--violet); }
.badge.abgemeldet { background: var(--sky-tint); color: var(--vanice); border: 1px solid var(--line); }
.status-note { font-size: 13px; color: var(--muted); margin-top: 2px; }

.radio-list { display: flex; flex-direction: column; gap: 4px; margin: 4px 0 8px; }
.radio-list label { flex-direction: row; align-items: center; gap: 10px; font-weight: 400; font-size: 15px; padding: 6px 8px; border-radius: 8px; }
.radio-list label:hover { background: var(--sky-tint); }
.radio-list .sep { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 8px 0 0 8px; }

.kiosk-url { display: flex; gap: 10px; align-items: center; margin: 8px 0 14px; flex-wrap: wrap; }
.kiosk-url code { flex: 1 1 200px; background: var(--sky-tint); padding: 10px 12px; border-radius: 10px; font-size: 13px; word-break: break-all; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 2px solid var(--noir); }
td { padding: 8px 10px; border-bottom: 1px solid #e6ebee; vertical-align: middle; }
td img { height: 40px; max-width: 160px; object-fit: contain; display: block; }
.ok { color: var(--vanice); font-weight: 700; }
.void { color: var(--violet); font-size: 13px; }
ul.plain { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
ul.plain code { font-size: 12px; color: var(--muted); }

dialog { border: none; border-radius: 18px; padding: 24px; max-width: 560px; width: calc(100% - 32px); color: var(--noir); }
dialog::backdrop { background: rgba(0, 51, 66, .45); }
#dlg-body ul { padding-left: 18px; }

@media (max-width: 900px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bar-col, table.groups td:last-child { display: none; } }
td .btn-link { white-space: nowrap; }

.stay-note { font-size: 13px; color: var(--violet); margin-top: 2px; }
td.days { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
th.num { text-align: right; }
td:last-child .btn-link { display: block; }
.stay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 4px 0; }
.stay-count { font-weight: 700; color: var(--vanice); margin: 4px 0; }

/* Workshop-Einwahl */
h3 { font-family: var(--font-head); font-weight: 900; font-size: 18px; margin: 0; }
.ws-track { border-top: 2px solid var(--noir); padding-top: 16px; margin-top: 8px; gap: 14px; }
.ws-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ws-head .grow { flex: 1; }
.ws-head .btn-link { align-self: center; }
.tag.planned { background: #efe4fd; color: var(--violet); }
.tag.assign { background: var(--lavender); color: var(--noir); }
.tag.done { background: var(--vanice); color: #fff; }
.ws-schedule { display: flex; flex-direction: column; gap: 8px; background: var(--sky-tint); border-radius: 12px; padding: 12px 14px; }
.ws-when { margin: 0; font-weight: 700; }
.ws-schedule .hint { margin: 0; }
.ws-table td.num, .ws-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.ws-acts { white-space: nowrap; }
td.ws-acts .btn-link { display: inline-block; margin-right: 10px; }
.wsbadge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 10px; white-space: nowrap; }
.wsbadge.s-ok { background: #e3f1ea; color: #1d6b45; }
.wsbadge.s-soft { background: #fff1de; color: #8a4d00; }
.wsbadge.s-low, .wsbadge.s-over { background: #efe4fd; color: var(--violet); }
.wsbadge.s-cancel { background: #e6ebee; color: var(--muted); }
.ws-people { display: flex; flex-direction: column; gap: 10px; }
.ws-progress { display: flex; flex-direction: column; gap: 6px; min-width: 260px; }
.ws-progress .gbar { width: 100%; }
select.ws-assign { max-width: 280px; padding: 6px 8px; font-size: 14px; }
.wishtag { display: inline-block; margin-left: 8px; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 10px; }
.wishtag.w1 { background: #e3f1ea; color: #1d6b45; }
.wishtag.w2 { background: var(--sky-tint); color: var(--vanice); }
.wishtag.w3 { background: #efe4fd; color: var(--violet); }
.badge.abgemeldet { margin-left: 8px; }
.ws-assign-box { display: flex; flex-direction: column; gap: 10px; background: #fbfcfe; border: 1px solid #dfe5e8; border-radius: 14px; padding: 14px 16px; }
.ws-assign-box .hint { margin: 0; }
label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
.ws-props { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.ws-prop { background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.ws-prop .hint { margin: 0 0 4px; font-size: 13px; }
.ws-prop-title { font-family: var(--font-head); font-weight: 900; font-size: 16px; }
.ws-prop .btn-primary { margin-top: 6px; align-self: flex-start; }
.kv { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.kv.warn strong { color: var(--violet); }
.ws-prop li.st-leer, .ws-prop li.st-unter_min, .ws-prop li.st-ueber_hart { color: var(--violet); }
.ws-prop li.st-ueber_weich { color: #8a4d00; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
#dlg-body { display: flex; flex-direction: column; gap: 10px; }
#dlg-body select { width: 100%; }
.module-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid #e6ebee; }
.module-row .muted { margin: 2px 0 0; font-size: 14px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.ws-visbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-radius: 12px; background: #fff1de; }
.ws-visbar.on { background: #e3f1ea; }
.ws-step { display: flex; flex-direction: column; gap: 10px; }
.ws-step + .ws-step { border-top: 1px dashed var(--line); padding-top: 12px; }
.ws-step h4 { margin: 0; font-size: 15px; }
.ws-step h4 .num { display: inline-flex; width: 24px; height: 24px; border-radius: 12px; background: var(--noir); color: #fff; align-items: center; justify-content: center; font-size: 13px; margin-right: 8px; }
.ws-step.done h4 .num { background: var(--vanice); }
.ws-step.locked { opacity: .55; }
.rec { font-size: 13px; font-weight: 700; color: var(--violet); }
tr.cancelled td { color: var(--muted); text-decoration: line-through; }
tr.cancelled td:last-child, tr.cancelled td:nth-last-child(2) { text-decoration: none; }
.modules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.module { background: #fff; border: 1px solid #dfe5e8; border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.module-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.module .muted { margin: 0; font-size: 14px; flex: 1; }
.module button { align-self: flex-start; }
.onoff { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 10px; background: #e6ebee; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.onoff.on { background: var(--orange); color: var(--noir); }
@media (max-width: 900px) { .modules { grid-template-columns: 1fr; } }
textarea { font: inherit; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; resize: vertical; color: var(--noir); }
.counter { font-size: 12px; color: var(--muted); text-align: right; font-weight: 400; }
.prio { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 9px; background: var(--sky-tint); color: var(--vanice); }
.prio.unbedingt { background: #efe4fd; color: var(--violet); }
.ws-prop.applied { border-color: var(--vanice); box-shadow: 0 0 0 3px rgba(0, 96, 136, .15); }
.same { font-size: 13px; font-weight: 700; color: var(--muted); background: #f1f4f6; border-radius: 8px; padding: 6px 8px; }
/* Optionen vergleichen */
.opt-common { background: #eef6f1; border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.ws-prop.opt { position: relative; gap: 8px; }
.ws-prop.recommended { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 166, 77, .25); }
.opt-badge { align-self: flex-start; background: var(--orange); color: var(--noir); font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 10px; text-transform: uppercase; letter-spacing: .04em; }
.opt-pros, .opt-cons { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.opt-pros li::before { content: "✓ "; color: #1f7a4d; font-weight: 700; }
.opt-cons li { color: #5b4a24; }
.opt-cons li::before { content: "! "; color: #b56a00; font-weight: 700; }
.opt-nums { border-top: 1px solid #e6ebee; padding-top: 6px; }
.opt-bars { display: flex; flex-direction: column; gap: 5px; font-size: 13px; }
.opt-bar { display: grid; grid-template-columns: minmax(0, 1.2fr) 1fr 28px; gap: 8px; align-items: center; }
.opt-bar-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opt-bar strong { text-align: right; }
.opt-bar-track { position: relative; height: 10px; background: #e6ebee; border-radius: 5px; }
.opt-bar-track i { position: absolute; inset: 0 auto 0 0; background: var(--vanice); border-radius: 5px; }
.opt-bar.st-ueber_weich .opt-bar-track i { background: #e08a1e; }
.opt-bar.st-unter_min .opt-bar-track i, .opt-bar.st-leer .opt-bar-track i { background: var(--violet); }
.opt-bar-track .mark { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--noir); opacity: .45; }
.opt-bar-track .mark.min { opacity: .25; }
.opt-bar.dropped { color: var(--muted); text-decoration: line-through; }
.opt-bar.dropped .muted { text-decoration: none; }
.small { font-size: 13px; }
.ws-prop .btn-secondary { margin-top: 6px; align-self: flex-start; }
.opt-badge { text-transform: none; letter-spacing: 0; font-size: 12.5px; }
.opt-badge.alt { background: var(--sky-tint, #e3f0fb); color: var(--vanice); }
