/* BER-LINK Admin. Farben, Schriftfamilie ("Work Sans", "Segoe UI", sans-serif), Rundungen und Knoepfe aus der Website (berlink-website/site/styles.css).
   Die Work-Sans-Dateien der Website sind beschaedigt (Bytes durch U+FFFD ersetzt, Browser lehnen sie ab), deshalb wird hier keine Schriftdatei geladen:
   es greift wie auf der Live-Website die Ersatzschrift (Segoe UI bzw. Systemschrift). Eine heile Work-Sans-Datei einfach per @font-face ergaenzen. */

:root {
  --bg: #f5f8fb;
  --bg-strong: #edf2f6;
  --surface: rgba(255, 255, 255, 0.86);
  --line: rgba(25, 42, 65, 0.12);
  --text: #12243c;
  --text-soft: #56677e;
  --brand-indigo: #253f85;
  --brand-teal: #138a8a;
  --ok: #14803f;
  --ok-soft: #e6f5ec;
  --bad: #c0261c;
  --bad-soft: #fdecea;
  --warn-soft: #fff6df;
  --shadow: 0 18px 80px rgba(16, 32, 58, 0.08);
  --shadow-soft: 0 12px 40px rgba(16, 32, 58, 0.06);
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: min(1180px, calc(100vw - 32px));
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Work Sans", "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(19, 138, 138, 0.12), transparent 28%),
    radial-gradient(circle at 90% 18%, rgba(37, 63, 133, 0.12), transparent 24%),
    linear-gradient(180deg, #fbfdff 0%, var(--bg) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); letter-spacing: -0.035em; }
h2 { font-size: 1.25rem; }
.container { width: var(--container); margin: 0 auto; }
.page { padding: 28px 0 80px; }
.muted { color: var(--text-soft); }
.small { font-size: 0.875rem; }
.eyebrow { margin: 0 0 8px; text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.78rem; font-weight: 700; color: var(--brand-teal); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--brand-indigo); outline-offset: 2px; }

/* Kopfzeile */
.site-header { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(18px); background: rgba(245, 248, 251, 0.88); border-bottom: 1px solid rgba(18, 36, 60, 0.08); }
.nav-row { display: flex; align-items: center; gap: 12px 24px; min-height: 68px; flex-wrap: wrap; padding: 8px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; line-height: 1; }
/* Logo der Website (img/brand-full.png, 1246 x 279 px): Hoehe fest, Breite aus dem Seitenverhaeltnis; Quelle 'self' (CSP img-src) */
.brand-logo { display: block; height: 40px; width: auto; max-width: 100%; }
.brand-sub { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-soft); border-left: 1px solid var(--line); padding-left: 8px; }
.site-nav { display: flex; gap: 6px; margin-left: auto; order: 2; }
.head-tools { order: 3; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 4px 14px; }
#lang-slot { margin-left: auto; } /* Anmeldeseite: ohne Navigation rechtsbuendig */
/* Sprachumschalter DE | RU */
.lang-switch { display: inline-flex; align-items: center; gap: 0; font-size: 0.85rem; }
.lang-btn { background: none; border: 0; font: inherit; font-weight: 700; letter-spacing: 0.06em; color: var(--text-soft); min-height: 44px; min-width: 40px; padding: 0 6px; cursor: pointer; border-radius: 8px; }
.lang-btn:hover { color: var(--text); }
.lang-btn[aria-pressed="true"] { color: var(--brand-indigo); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; cursor: default; }
.lang-sep { color: var(--text-soft); opacity: 0.5; }
.site-nav a { text-decoration: none; padding: 10px 16px; border-radius: 999px; font-weight: 700; color: var(--text-soft); min-height: 44px; display: inline-flex; align-items: center; }
.site-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.8); }
.site-nav a.is-active { color: #fff; background: linear-gradient(135deg, var(--brand-indigo), var(--brand-teal)); }
.who { font-size: 0.85rem; color: var(--text-soft); }
.mock-banner { background: var(--warn-soft); border-bottom: 1px solid #ecd9a2; font-size: 0.875rem; padding: 8px 0; }

/* Knoepfe */
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; transition: transform 200ms ease, box-shadow 200ms ease, filter 200ms ease;
}
.button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.button:disabled { opacity: 0.5; cursor: not-allowed; }
.button-primary { color: #fff; background: linear-gradient(135deg, var(--brand-indigo), var(--brand-teal)); }
.button-secondary { color: var(--text); background: rgba(255, 255, 255, 0.85); border-color: var(--line); }
.small-btn { min-height: 40px; padding: 0 16px; margin-top: 8px; }
.link-button { background: none; border: 0; padding: 8px 4px; font: inherit; color: var(--brand-indigo); text-decoration: underline; cursor: pointer; min-height: 44px; }
.link-button.danger { color: var(--bad); }

/* Karten und Kopf */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); padding: 22px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.back { display: inline-block; margin-bottom: 8px; color: var(--text-soft); text-decoration: none; font-weight: 700; padding: 6px 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.event-card { display: flex; flex-direction: column; gap: 12px; }
.event-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.event-meta { margin: 0; color: var(--text-soft); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; }
.facts dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-soft); }
.facts dd { margin: 2px 0 0; font-weight: 700; font-size: 0.95rem; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.card-actions .button { min-height: 44px; padding: 0 18px; }
.badge { flex: none; font-size: 0.78rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--bg-strong); color: var(--text-soft); }
.badge-published { background: var(--ok-soft); color: var(--ok); }
.badge-draft { background: var(--warn-soft); color: #8a6100; }
.badge-cancelled { background: var(--bad-soft); color: var(--bad); }
.reset-line { margin-top: 28px; }

/* Formular */
.editor { display: grid; gap: 18px; }
.form-section h2 { margin-bottom: 6px; }
.form-section > .muted { margin: 0 0 14px; }
.form-section summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; min-height: 32px; }
.grid-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; margin-top: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label, .code-form label { font-weight: 700; font-size: 0.9rem; }
.input {
  width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; font-size: 1rem; color: var(--text); background: #fff;
  border: 1px solid rgba(25, 42, 65, 0.22); border-radius: 14px;
}
textarea.input { min-height: 120px; resize: vertical; }
.input[readonly] { background: var(--bg-strong); color: var(--text-soft); }
.input[aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 2px rgba(192, 38, 28, 0.15); }
.hint { margin: 0; font-size: 0.825rem; color: var(--text-soft); }
.field-error { margin: 0; font-size: 0.85rem; font-weight: 700; color: var(--bad); }
.field-error:empty { display: none; }
.iso-line { flex-direction: row; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: -4px; }
.iso-label { font-size: 0.85rem; color: var(--text-soft); }
.iso { font-size: 0.9rem; background: var(--bg-strong); padding: 3px 10px; border-radius: 8px; }
.rows { display: grid; gap: 12px; margin: 12px 0; }
.row-card { border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.7); padding: 14px 16px 10px; margin: 0; min-width: 0; }
.row-card legend { font-weight: 700; padding: 0 8px; display: flex; gap: 8px; align-items: center; }
.chip { font-size: 0.75rem; background: var(--bg-strong); border-radius: 999px; padding: 2px 10px; color: var(--text-soft); font-weight: 400; }
.row-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; }
.check { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; min-height: 44px; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--brand-indigo); }
.sticky-actions { display: flex; gap: 10px; flex-wrap: wrap; padding: 6px 0 14px; }
.notice { border-radius: var(--radius-md); padding: 14px 18px; background: #fff; border: 1px solid var(--line); margin-top: 14px; }
.notice-error { background: var(--bad-soft); border-color: rgba(192, 38, 28, 0.3); color: #7d1912; }
.notice-ok { background: var(--ok-soft); border-color: rgba(20, 128, 63, 0.3); color: #0c5128; }
.warn-list { margin: 6px 0 0; padding-left: 20px; }

/* Gaesteliste */
.toolbar { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 8px; }
.toolbar .field { min-width: 220px; flex: 0 1 320px; }
.toolbar .grow { flex: 1 1 260px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 14px 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 12px 16px; display: flex; flex-direction: column; }
.stat-value { font-size: 1.8rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.stat-label { font-size: 0.8rem; color: var(--text-soft); }
.stat-ok .stat-value { color: var(--ok); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chip-btn { font: inherit; font-weight: 700; font-size: 0.9rem; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.85); color: var(--text); cursor: pointer; }
.chip-btn.is-on { color: #fff; background: linear-gradient(135deg, var(--brand-indigo), var(--brand-teal)); border-color: transparent; }
.list-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.list-actions p { margin: 0; }
.pii { margin: 8px 0 14px; }
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.guest-table { width: 100%; border-collapse: collapse; }
.guest-table th { text-align: left; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-soft); padding: 12px 16px; background: var(--bg-strong); }
.guest-table td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: middle; overflow-wrap: anywhere; }
.guest-table tr.is-inactive td { color: var(--text-soft); }
.pill { display: inline-block; font-size: 0.8rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; background: var(--bg-strong); color: var(--text-soft); white-space: nowrap; }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-off { background: var(--bad-soft); color: var(--bad); }
.empty { padding: 24px 0; }

/* Check-in */
.counter { margin: 12px 0; font-weight: 700; color: var(--text-soft); }
.result { border-radius: var(--radius-lg); padding: 28px 22px; text-align: center; min-height: 230px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; margin: 6px 0 16px; border: 2px solid var(--line); background: var(--surface); }
.result { scroll-margin: 150px 0 16px; }
.result p { margin: 0; }
.result-title { font-size: clamp(1.7rem, 7vw, 2.4rem); font-weight: 700; letter-spacing: -0.02em; }
.result-sub { font-size: 1.05rem; }
.result-name { font-size: 1.5rem; font-weight: 700; margin-top: 6px !important; }
.result-icon { font-size: 4rem; line-height: 1; font-weight: 700; }
.result-idle .result-title { color: var(--text-soft); }
.result-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.result-bad { background: var(--bad); border-color: var(--bad); color: #fff; }
.cam-btn { width: 100%; }
.cam-box { margin: 12px 0; border-radius: var(--radius-lg); overflow: hidden; background: #000; }
.cam { display: block; width: 100%; max-height: 52vh; object-fit: cover; }
.code-form { margin: 16px 0; display: grid; gap: 6px; }
.code-row { display: flex; gap: 10px; }
.code-input { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.95rem; }
.small-h { font-size: 1rem; margin: 20px 0 8px; }
.history { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.history li { padding: 8px 14px; border-radius: 12px; font-size: 0.9rem; background: var(--surface); border: 1px solid var(--line); }
.history .h-ok { border-left: 5px solid var(--ok); }
.history .h-bad { border-left: 5px solid var(--bad); }
.history:empty::before { content: attr(data-empty); color: var(--text-soft); font-size: 0.9rem; }
.demo { margin-top: 24px; padding: 14px 18px; }
.demo summary { cursor: pointer; font-weight: 700; min-height: 32px; }
.demo-code { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left; font: inherit; padding: 10px 12px; margin-top: 8px; border-radius: 12px; border: 1px dashed var(--line); background: #fff; cursor: pointer; }
.demo-code code { font-size: 0.8rem; overflow-wrap: anywhere; }

/* Handy */
@media (max-width: 700px) {
  .page { padding-top: 20px; }
  .nav-row { min-height: 0; }
  .site-nav { order: 4; width: 100%; margin-left: 0; gap: 4px; }
  /* Logo, Sprache und Abmelden in einer Zeile; ein langer Name wird gekuerzt statt umzubrechen */
  .head-tools { margin-left: auto; gap: 0 8px; flex-wrap: nowrap; min-width: 0; }
  .brand-logo { height: 28px; }
  .lang-btn { min-width: 36px; padding: 0 4px; }
  .who { display: flex; align-items: center; min-width: 0; }
  .who-name { max-width: 26vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .site-nav a { flex: 1; justify-content: center; padding: 10px 6px; font-size: 0.92rem; }
  .who { margin-left: auto; font-size: 0.78rem; }
  .brand-sub { display: none; }
  .grid { grid-template-columns: 1fr; }
  .grid-form { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .toolbar .field { flex-basis: 100%; }
  .card { padding: 18px; }
  .sticky-actions .button { flex: 1 1 100%; }
  .page-head .button { width: 100%; }
  /* Tabelle wird zu Karten */
  .guest-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .guest-table, .guest-table tbody, .guest-table tr, .guest-table td { display: block; width: 100%; }
  .guest-table tr { padding: 12px 16px; border-top: 1px solid var(--line); }
  .guest-table tr:first-child { border-top: 0; }
  .guest-table td { border: 0; padding: 2px 0; display: flex; justify-content: space-between; gap: 12px; }
  .guest-table td::before { content: attr(data-label); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-soft); flex: none; padding-top: 3px; }
  .guest-table td:first-child { font-weight: 700; font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) { .button { transition: none; } }

/* Auswertung und Bestellungen (Admin-Zentrale, 22.11.2026) */
.pill-warn { background: var(--warn-soft); color: #8a5a00; }
.pill-info { background: #e8eefc; color: var(--brand-indigo); }
.stat-warn .stat-value { color: #8a5a00; }
.stat-sub { font-size: 0.75rem; color: var(--text-soft); margin-top: 2px; }
.chip-test { margin-left: 6px; background: var(--warn-soft); color: #8a5a00; }
.cell { display: inline; }
.cell-main { display: block; font-weight: 700; }
.cell-sub { display: block; font-size: 0.85rem; color: var(--text-soft); overflow-wrap: anywhere; }
.refund-line { display: block; font-size: 0.8rem; color: #8a5a00; }
.guest-table td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.guest-table th { white-space: nowrap; }
.toolbar-wrap .field { min-width: 160px; flex: 1 1 180px; }
.status-chips .chip-btn { display: inline-flex; align-items: center; text-decoration: none; font-weight: 600; }
.status-chips .chip-btn.is-zero { color: var(--text-soft); font-weight: 400; }
.sums-line { margin: 10px 0; font-weight: 600; color: var(--text); }
.pager { display: flex; gap: 12px; justify-content: center; margin: 16px 0; }
@media (max-width: 700px) {
  .site-nav a { font-size: 0.8rem; padding: 10px 2px; }
  .guest-table td.num { text-align: right; }
  .guest-table td .cell { display: block; text-align: right; min-width: 0; }
  .orders-table td:first-child { font-size: 0.95rem; }
  .stat-value { font-size: 1.45rem; }
}

/* Formular v2, Vorschau, Website-Status (Admin-Zentrale, 22.11.2026) */
.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.85); cursor: pointer; font-weight: 600; }
.radio-pill input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand-indigo); }
.radio-pill:has(input:checked) { border-color: var(--brand-indigo); background: #e8eefc; color: var(--brand-indigo); }
.radio-pill:has(input:focus-visible) { outline: 3px solid var(--brand-teal); outline-offset: 2px; }
.counter-hint { float: right; font-weight: 400; font-size: 0.75rem; color: var(--text-soft); font-variant-numeric: tabular-nums; }
.counter-hint.is-over { color: var(--bad); font-weight: 700; }
.time-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.time-pair > .field { margin: 0; }
.prog-row { display: grid; grid-template-columns: 140px 1fr 36px; gap: 8px; align-items: start; margin-bottom: 8px; }
.prog-row .field-error { grid-column: 1 / -1; margin: 0; }
.extra-row { display: grid; grid-template-columns: 140px 1fr 1fr 36px; gap: 8px; margin-bottom: 8px; }
.mode-box { margin-top: 12px; }
.mode-box[hidden] { display: none; }
.img-preview { max-width: 280px; max-height: 280px; border-radius: var(--radius-md); border: 1px solid var(--line); object-fit: cover; }
.notice-warn { background: var(--warn-soft); border-color: #f0d58c; }
.warn-text { color: #8a5a00; }
.block { display: block; margin-top: 4px; }
.advanced > summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; }
.head-links .link-button { font-size: inherit; }
.button-danger { background: var(--bad); color: #fff; border-color: transparent; }
.ws { font-weight: 700; }
.ws-published { color: var(--ok); }
.ws-publishing, .ws-waiting { color: var(--brand-indigo); }
.ws-error { color: var(--bad); }
.ws-draft, .ws-stale, .ws-legacy { color: var(--text-soft); }
.dialog { border: 0; border-radius: var(--radius-lg); padding: 0; max-width: min(560px, calc(100vw - 24px)); box-shadow: var(--shadow); }
.dialog::backdrop { background: rgba(16, 32, 58, 0.45); }
.dialog-body { padding: 24px; display: grid; gap: 10px; }
.dialog-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 8px; }
.dialog-preview { max-width: min(1100px, calc(100vw - 24px)); width: 100%; max-height: calc(100vh - 24px); }
.pv-bar { position: sticky; top: 0; z-index: 1; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 20px; background: var(--bg-strong); border-bottom: 1px solid var(--line); }
.pv { padding: 24px; background: #fff; color: #12243c; }
.pv-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: center; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.pv-hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.05; margin: 6px 0 12px; }
.pv-hero-img { position: relative; }
.pv-hero-img img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-lg); }
.pv-noimg { aspect-ratio: 1; border-radius: var(--radius-lg); background: var(--bg-strong); display: grid; place-items: center; color: var(--text-soft); }
.pv-ai { position: absolute; left: 10px; bottom: 10px; background: rgba(0, 0, 0, 0.65); color: #fff; font-size: 0.72rem; padding: 3px 8px; border-radius: 999px; }
.pv-eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 700; color: var(--brand-teal); margin: 0; }
.pv-meta { color: var(--text-soft); font-weight: 600; }
.pv-button { display: inline-block; margin-top: 8px; padding: 12px 22px; border-radius: 999px; color: #fff; font-weight: 700; background: linear-gradient(135deg, var(--brand-indigo), var(--brand-teal)); }
.pv-section { padding: 22px 0; border-bottom: 1px solid var(--line); }
.pv-section h2 { font-size: 1.6rem; line-height: 1.15; }
.pv-line { display: block; }
.pv-card { }
.pv-timeline { padding-left: 1.2em; }
.pv-timeline li { margin: 6px 0; }
.pv-note { display: inline-block; min-width: 64px; color: var(--brand-teal); font-weight: 700; margin-right: 8px; }
.pv-ticket { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 14px 16px; margin: 10px 0; }
.pv-price { float: right; font-weight: 700; }
.pv-legal { color: #8a5a00; font-size: 0.85rem; }
.pv-link { text-decoration: underline; }
@media (max-width: 700px) {
  .prog-row { grid-template-columns: 90px 1fr 32px; }
  .extra-row { grid-template-columns: 1fr; }
  .pv-hero { grid-template-columns: 1fr; }
  .pv { padding: 16px; }
  .sticky-actions .button { flex: 1 1 100%; }
  .radio-pill { flex: 1 1 auto; justify-content: center; }
}

/* ===== Admin-Umbau 23.11.2026: Übersicht, Event-Tabs, Tab-Leiste am Handy, Website-Graph ===== */
.sub-h { margin: 22px 0 0; font-size: 1.05rem; }
.empty-state { padding: 8px 0; }
.empty-state p { margin: 0 0 6px; }
.hero-empty { padding: 28px; margin: 12px 0 16px; }
.hero-empty h2 { margin-bottom: 8px; }
.hero-empty .button { margin-top: 12px; }

/* Untere Tab-Leiste (nur Handy); am Rechner stehen die vier Punkte in der Kopfzeile */
.tabbar { display: none; }
.site-nav a span { pointer-events: none; }

/* "⋯"-Menü */
.menu { position: relative; z-index: 3; flex: none; }
.menu > summary { list-style: none; cursor: pointer; min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px;
  font-size: 1.4rem; font-weight: 700; line-height: 1; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.9); color: var(--text); }
.menu > summary::-webkit-details-marker { display: none; }
.menu[open] > summary { background: var(--bg-strong); }
.menu-list { position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-md); box-shadow: var(--shadow); z-index: 30; }
.menu-item { display: flex; width: 100%; min-height: 44px; align-items: center; padding: 0 14px; border: 0; background: none; font: inherit; font-weight: 600; color: var(--text);
  text-decoration: none; cursor: pointer; border-radius: 12px; text-align: left; }
.menu-item:hover { background: var(--bg-strong); }
.menu-item.danger { color: var(--bad); }

/* Eventkarte: die ganze Karte öffnet das Event */
.event-card { position: relative; transition: box-shadow 200ms ease; }
.event-card:hover { box-shadow: var(--shadow); }
.event-card-head h2 { flex: 1; min-width: 0; font-size: 1.2rem; overflow-wrap: anywhere; }
.card-link { text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); }
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::after { outline: 3px solid var(--brand-indigo); outline-offset: 2px; }
.facts { grid-template-columns: repeat(2, 1fr); }

/* Event-Arbeitsplatz */
.ws-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.event-picker { max-width: 420px; margin-bottom: 6px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 8px 0 18px; overflow-x: auto; }
.tabs a { padding: 0 18px; min-height: 48px; display: inline-flex; align-items: center; font-weight: 700; color: var(--text-soft); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--text); }
.tabs a.is-active { color: var(--brand-indigo); border-bottom-color: var(--brand-indigo); }
.more-filters { margin: 4px 0 12px; }
.more-filters > summary, .event-switch > summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; color: var(--brand-indigo); }
.more-filters > summary::after, .event-switch > summary::after { content: "▾"; margin-left: 8px; }
.more-filters[open] > summary::after, .event-switch[open] > summary::after { content: "▴"; }
.event-switch { margin: 0 0 8px; }
.event-line { margin: 4px 0 0; }
.sum-tiles { margin-top: 4px; }

/* Formular: sichtbare Blöcke und "Weitere Angaben" */
.more-details > summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; min-height: 32px; }
.more-details .form-section { box-shadow: none; background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 18px 0 0; margin-top: 18px; }

/* Kacheln */
button.stat { font: inherit; text-align: left; color: inherit; cursor: pointer; width: 100%; align-items: flex-start; }
.stat-btn:hover, .stat-tile:hover { box-shadow: var(--shadow-soft); }
.stat-btn.is-on { border-color: var(--brand-indigo); box-shadow: 0 0 0 2px rgba(37, 63, 133, 0.18); }
.stat-tile { text-decoration: none; color: inherit; min-height: 118px; }
.stat-tile.is-error .stat-value { color: var(--text-soft); }
.stat-tile .stat-label { order: -1; font-weight: 700; }
.tile-extra { margin-top: auto; padding-top: 6px; }
.stat-tiles { grid-template-columns: repeat(3, 1fr); margin: 16px 0; }
.web-tiles { grid-template-columns: repeat(4, 1fr); }
.cmp-up { color: var(--ok); font-weight: 700; }
.cmp-down { color: var(--bad); font-weight: 700; }
.cmp-flat { color: var(--text-soft); }

/* Startseite */
.next-card { margin-bottom: 4px; }
.next-main { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.next-title { margin: 0; font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; }
.next-title a { text-decoration: none; }
.next-title a:hover { text-decoration: underline; }
.next-seats { min-width: 240px; }
.next-seats p { margin: 0 0 4px; font-weight: 700; }
.next-seats meter { width: 100%; height: 12px; }
.next-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.recent-card, .checklist-card { margin-top: 16px; }
.recent-list { list-style: none; margin: 0 0 6px; padding: 0; }
.recent-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.recent-row:first-child { border-top: 0; }
.recent-who { min-width: 0; overflow-wrap: anywhere; }
.recent-row time { flex: none; white-space: nowrap; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: center; min-height: 44px; }
.check-mark { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; border: 2px solid var(--line); font-weight: 700; color: var(--text-soft); flex: none; }
.checklist li.is-done .check-mark { background: var(--ok); border-color: var(--ok); color: #fff; }
.checklist li.is-done > span:last-child { color: var(--text-soft); text-decoration: line-through; }

/* Website: Zeitraum, Graph */
.web-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.web-toolbar-end { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.web-toolbar-end p { margin: 0; }
.segment { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.85); padding: 3px; }
.segment-btn { font: inherit; font-weight: 700; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: none; color: var(--text-soft); cursor: pointer; }
.segment-btn.is-on { color: #fff; background: linear-gradient(135deg, var(--brand-indigo), var(--brand-teal)); }
.web-note { margin: 6px 0 0; }
.web-chart { margin-top: 14px; }
.web-chart .small-h { margin-top: 0; }
.web-empty { margin: 0 0 8px; }
.web-advanced { margin-top: 24px; }
.web-advanced > summary { cursor: pointer; font-weight: 700; min-height: 32px; }
.chart-box { width: 100%; min-height: 200px; }
.chart { display: block; width: 100%; height: auto; touch-action: pan-y; }
.page-head .link-button { padding: 0; min-height: 36px; font-size: 0.95rem; }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-tick { fill: var(--text-soft); font-size: 11px; font-family: inherit; }
.chart-line { fill: none; stroke: var(--brand-indigo); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart-area { fill: rgba(37, 63, 133, 0.1); stroke: none; }
.chart-dot { fill: var(--brand-indigo); }
.chart-bar { fill: var(--brand-indigo); }
.chart-hit { fill: transparent; }
.chart-tip { display: none; pointer-events: none; }
.chart-tip.is-on { display: block; }
.chart-tip-bg { fill: var(--text); }
.chart-tip-text { fill: #fff; font-size: 12px; font-weight: 700; font-family: inherit; }
.chart-tip-dot { fill: #fff; stroke: var(--brand-indigo); stroke-width: 2.5; }
.spark { display: block; width: 100%; max-width: 140px; height: 36px; }

@media (max-width: 700px) {
  .site-nav { display: none; }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 62px; padding: 6px 2px; text-decoration: none;
    font-size: 0.74rem; font-weight: 700; color: var(--text-soft); }
  .tabbar a.is-active { color: var(--brand-indigo); }
  .tabbar a.is-active .nav-icon { stroke-width: 2.6; }
  .page { padding-bottom: 120px; }
  .stat-tiles { grid-template-columns: repeat(2, 1fr); }
  .stat-tiles .stat-tile:last-child { grid-column: 1 / -1; }
  .web-tiles { grid-template-columns: repeat(2, 1fr); }
  .web-toolbar { align-items: stretch; }
  .segment { width: 100%; }
  .segment-btn { flex: 1; padding: 0 6px; }
  .ws-actions .button { flex: 1 1 auto; }
  .next-seats { min-width: 0; width: 100%; }
  .hero-empty { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { .event-card { transition: none; } }
