/* ───────────── Tokens ───────────── */
:root {
  --bg: #f7f3ec;
  --surface: #ffffff;
  --surface-2: #f1ece3;
  --surface-3: #e9e2d6;
  --text: #1d1915;
  --muted: #6d645a;
  --faint: #9a9086;
  --border: #e4ddd1;
  --border-strong: #d3cabc;
  --accent: #a3201b;
  --accent-hover: #8a1a16;
  --accent-soft: #f6e3e0;
  --accent-text: #ffffff;
  --ok: #15803d;
  --few: #b45309;
  --sold: #9a9086;
  --focus: #2563eb;
  --shadow-sm: 0 1px 2px rgb(40 30 20 / .06);
  --shadow: 0 1px 2px rgb(40 30 20 / .05), 0 6px 20px rgb(40 30 20 / .07);
  --shadow-lg: 0 20px 60px rgb(20 15 10 / .25);
  --radius: 14px;
  --radius-sm: 9px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --top: 132px;
  --filters-w: 280px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131110; --surface: #1c1917; --surface-2: #25211e; --surface-3: #302b27;
    --text: #f3eee7; --muted: #aba297; --faint: #7d756c; --border: #302b27; --border-strong: #423b35;
    --accent: #e5534b; --accent-hover: #f06a62; --accent-soft: #3a1c1a; --accent-text: #fff;
    --ok: #4ade80; --few: #fbbf24; --sold: #7d756c; --focus: #60a5fa;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / .3); --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .3); --shadow-lg: 0 24px 70px rgb(0 0 0 / .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #131110; --surface: #1c1917; --surface-2: #25211e; --surface-3: #302b27;
  --text: #f3eee7; --muted: #aba297; --faint: #7d756c; --border: #302b27; --border-strong: #423b35;
  --accent: #e5534b; --accent-hover: #f06a62; --accent-soft: #3a1c1a; --accent-text: #fff;
  --ok: #4ade80; --few: #fbbf24; --sold: #7d756c; --focus: #60a5fa;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .3); --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .3); --shadow-lg: 0 24px 70px rgb(0 0 0 / .6);
  color-scheme: dark;
}

/* ───────────── Base ───────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.45 var(--font); font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4, p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 18px; height: 18px; flex: none; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
[hidden] { display: none !important; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; display: inline-block; }

/* ───────────── Buttons ───────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 14px; border-radius: 999px; font-weight: 600; font-size: 14px;
  white-space: nowrap; transition: background .15s, border-color .15s, color .15s, transform .1s;
  text-decoration: none; border: 1px solid transparent;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { border-color: var(--border-strong); background: var(--surface); }
.btn-outline:hover { border-color: var(--text); }
.btn-ghost { color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-ghost[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; height: 46px; }
.btn .ic { width: 17px; height: 17px; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.link-btn { color: var(--accent); font-weight: 600; font-size: 13px; padding: 4px 2px; }
.link-btn:hover { text-decoration: underline; }
.btn .count { background: var(--accent); color: var(--accent-text); border-radius: 999px; font-size: 11px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 5px; }
.btn.loading .ic { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ───────────── Topbar ───────────── */
.top { position: sticky; top: 0; z-index: 900; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--border); }
.topbar { display: flex; align-items: center; gap: 12px; padding: 12px 20px 8px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; flex: none; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: inset 0 -3px 0 rgb(0 0 0 / .15); }
.brand-mark svg { width: 22px; height: 22px; }
.brand-name { font-family: var(--serif); font-weight: 650; font-size: 22px; letter-spacing: -.02em; }

.city { position: relative; display: flex; align-items: center; flex: none; }
.city .ic { position: absolute; left: 11px; color: var(--accent); pointer-events: none; }
.city .chev, .select-wrap .chev { left: auto; right: 10px; width: 16px; height: 16px; color: var(--muted); position: absolute; pointer-events: none; }
.city { height: 40px; padding: 0 14px 0 34px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); font-weight: 600; white-space: nowrap; }
.select-wrap select {
  appearance: none; -webkit-appearance: none; height: 40px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: var(--surface); padding: 0 34px 0 34px; font-weight: 600; cursor: pointer; max-width: 260px;
}
.select-wrap select:hover { border-color: var(--text); }
.data-info { font-size: 12.5px; font-weight: 500; color: var(--muted); gap: 7px; }
.data-info .dot { width: 8px; height: 8px; }

.search { flex: 1; min-width: 0; position: relative; display: flex; align-items: center; max-width: 620px; }
.search .ic { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; height: 40px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface);
  padding: 0 40px 0 40px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.search input::-webkit-search-cancel-button { margin-right: 18px; }
.search kbd { position: absolute; right: 12px; font: 600 11px var(--font); color: var(--faint); border: 1px solid var(--border-strong); border-radius: 5px; padding: 1px 6px; }
.search input:focus ~ kbd, .search input:not(:placeholder-shown) ~ kbd { display: none; }
.top-actions { display: flex; align-items: center; gap: 2px; margin-left: auto; flex: none; }
.icon-only { width: 38px; padding: 0; }

/* Datumsleiste */
.datebar { display: flex; align-items: center; gap: 12px; padding: 4px 20px 10px; }
.quick { display: flex; gap: 6px; flex: none; }
.qchip {
  height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface);
  font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; transition: all .15s;
}
.qchip .n { color: var(--faint); font-weight: 500; font-variant-numeric: tabular-nums; }
.qchip:hover { border-color: var(--text); }
.qchip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.qchip[aria-pressed="true"] .n { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.days-wrap { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 24px), transparent); padding: 0 12px; }
.days-wrap::-webkit-scrollbar { display: none; }
.days { display: flex; gap: 4px; width: max-content; }
.day {
  width: 50px; display: grid; grid-template-rows: 11px 14px 22px 13px; justify-items: center; align-items: center;
  padding: 4px 0 5px; border-radius: 12px; transition: background .15s; position: relative;
}
.day:hover { background: var(--surface-2); }
.day .mo { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.day .wd { font-size: 11px; color: var(--muted); font-weight: 500; }
.day .dn { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.day .dc { font-size: 10.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.day.we .wd { color: var(--accent); }
.day.empty .dn { color: var(--faint); }
.day[aria-pressed="true"] { background: var(--accent); color: var(--accent-text); }
.day[aria-pressed="true"] .wd, .day[aria-pressed="true"] .dc, .day[aria-pressed="true"] .mo { color: color-mix(in srgb, var(--accent-text) 82%, transparent); }
.datepick { position: relative; flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--border-strong); background: var(--surface); }
.datepick:hover { color: var(--text); border-color: var(--text); }
.datepick.on { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.datepick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.datepick input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }

/* Hinweis */
.notice { display: flex; align-items: center; gap: 12px; margin: 12px 20px 0; padding: 10px 10px 10px 16px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--text); font-size: 13.5px; }
.notice p { flex: 1; }
.notice strong { color: var(--accent); }

/* ───────────── Layout ───────────── */
.layout {
  display: grid; grid-template-columns: var(--filters-w) minmax(0, 1fr) minmax(360px, 40%);
  gap: 0; align-items: start;
}
.filters {
  position: sticky; top: var(--top); height: calc(100dvh - var(--top)); display: flex; flex-direction: column;
  border-right: 1px solid var(--border); background: var(--bg);
}
.results { padding: 18px 24px 120px; min-width: 0; }
.mapwrap { position: sticky; top: var(--top); height: calc(100dvh - var(--top)); padding: 12px 12px 12px 0; }
#map { width: 100%; height: 100%; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow); border: 1px solid var(--border); }
.map-error { padding: 40px; text-align: center; color: var(--muted); }

/* ───────────── Filter ───────────── */
.filters-head { display: flex; align-items: center; gap: 8px; padding: 16px 18px 8px 20px; }
.filters-head h2 { font-size: 15px; font-weight: 700; flex: 1; }
.filters-scroll { overflow-y: auto; padding: 0 12px 24px 14px; flex: 1; scrollbar-width: thin; }
.fsec { padding: 14px 6px 10px; border-bottom: 1px solid var(--border); }
.fsec:last-child { border-bottom: 0; }
.fsec h3 { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 8px; display: flex; gap: 6px; align-items: baseline; }
.fsec h3 .sub { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--faint); }
.opt-list { display: flex; flex-direction: column; gap: 1px; }
.opt { display: flex; align-items: center; gap: 9px; padding: 6px 8px; margin: 0 -8px; border-radius: 8px; cursor: pointer; font-size: 14px; transition: background .12s; }
.opt:hover { background: var(--surface-2); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .box { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--border-strong); flex: none; display: grid; place-items: center; transition: all .12s; background: var(--surface); }
.opt input:checked + .box { background: var(--accent); border-color: var(--accent); }
.opt input:checked + .box::after { content: ''; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.opt input:focus-visible + .box { outline: 2px solid var(--focus); outline-offset: 2px; }
.opt .lbl { flex: 1; min-width: 0; line-height: 1.25; }
.opt .cnt { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.opt .km { font-size: 11px; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 1px 6px; white-space: nowrap; }
.opt.zero .lbl { color: var(--faint); }
.opt.zero .dot { opacity: .4; }
.more { align-self: flex-start; margin-top: 4px; }
.mini-search { position: relative; display: flex; margin-bottom: 8px; }
.mini-search .ic { position: absolute; left: 10px; top: 9px; width: 15px; height: 15px; color: var(--faint); }
.mini-search input { width: 100%; height: 34px; border: 1px solid var(--border); background: var(--surface); border-radius: 8px; padding: 0 10px 0 32px; font-size: 13.5px; outline: none; }
.mini-search input:focus { border-color: var(--accent); }

.tod { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tod-btn { border: 1px solid var(--border-strong); background: var(--surface); border-radius: 10px; padding: 8px 6px; display: flex; flex-direction: column; align-items: center; gap: 1px; transition: all .15s; }
.tod-btn span { font-weight: 600; font-size: 13px; }
.tod-btn small { font-size: 10.5px; color: var(--faint); text-align: center; line-height: 1.2; }
.tod-btn:hover { border-color: var(--text); }
.tod-btn[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.tod-btn[aria-pressed="true"] small { color: var(--accent); opacity: .8; }

.price { display: flex; align-items: center; gap: 12px; }
.price input[type=range] { flex: 1; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--accent) var(--pct, 100%), var(--surface-3) var(--pct, 100%)); outline: none; }
.price input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); box-shadow: var(--shadow-sm); cursor: grab; }
.price input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); cursor: grab; }
.price output { font-size: 13px; font-weight: 600; min-width: 74px; text-align: right; font-variant-numeric: tabular-nums; }

.only-drawer { display: none !important; }

/* ───────────── Ergebnisse ───────────── */
.results-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.rh-title h1 { font-family: var(--serif); font-weight: 650; font-size: 30px; letter-spacing: -.025em; line-height: 1.1; }
.rh-title h1 .when { color: var(--accent); }
.rh-title p { color: var(--muted); font-size: 13.5px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.rh-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 3px; }
.seg button { height: 32px; padding: 0 14px; border-radius: 999px; font-weight: 600; font-size: 13px; color: var(--muted); transition: all .15s; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.select-wrap { position: relative; display: flex; align-items: center; }
.select-wrap select { padding: 0 32px 0 14px; height: 38px; font-size: 13px; }
.filter-btn { display: none; }
.filter-btn .badge { background: var(--accent); color: var(--accent-text); border-radius: 999px; font-size: 11px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 5px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 8px 0 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border-strong); font-size: 13px; font-weight: 500; transition: border-color .15s; max-width: 100%; }
.chip .ic { width: 14px; height: 14px; color: var(--muted); }
.chip:hover { border-color: var(--accent); }
.chip:hover .ic { color: var(--accent); }

.list { display: flex; flex-direction: column; gap: 8px; }
.day-head {
  position: sticky; top: var(--top); z-index: 5; display: flex; align-items: baseline; gap: 10px;
  font-size: 14px; font-weight: 500; color: var(--muted); padding: 14px 0 8px; margin-top: 4px;
  background: linear-gradient(var(--bg) 78%, transparent);
}
.day-head b { color: var(--text); font-weight: 700; }
.day-head .n { margin-left: auto; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.list > .day-head:first-child { margin-top: -10px; }

/* Karten */
.card {
  position: relative; display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 14px 14px 16px; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.card::before { content: ''; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--c); }
.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.card:has(.card-link:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.card.show { grid-template-columns: 64px minmax(0, 1fr) auto; }
.card.play { grid-template-columns: 76px minmax(0, 1fr) auto; }
.card h3 { font-family: var(--serif); font-weight: 650; font-size: 18.5px; line-height: 1.2; letter-spacing: -.01em; margin-top: 3px; }
.card-link { text-align: left; font: inherit; letter-spacing: inherit; }
.card-link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.card-link:focus-visible { outline: none; }
.card .when { display: flex; flex-direction: column; align-items: flex-start; padding-top: 2px; }
.card .when strong { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.card .when .date { font-size: 12px; font-weight: 700; color: var(--accent); }
.card .when .dur { font-size: 11.5px; color: var(--faint); margin-top: 1px; }
.eyebrow { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 500; min-width: 0; }
.eyebrow .sep { color: var(--faint); }
.eyebrow .grp { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eyebrow .gl { white-space: nowrap; }
.author { color: var(--muted); font-size: 13.5px; margin-top: 1px; }
.venue { display: flex; align-items: center; gap: 5px; font-size: 13px; margin-top: 7px; color: var(--text); min-width: 0; }
.venue .ic { width: 14px; height: 14px; color: var(--muted); }
.venue > span:first-of-type { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.km { font-size: 11.5px; color: var(--muted); background: var(--surface-2); padding: 1px 7px; border-radius: 99px; white-space: nowrap; margin-left: 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.tags:empty { display: none; }
.badge-tag { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 6px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.badge-tag.accent { background: var(--accent); color: var(--accent-text); }
.badge-tag.accent-soft { background: var(--accent-soft); color: var(--accent); }
.side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; justify-content: space-between; }
.side .price { font-size: 13px; font-weight: 600; white-space: nowrap; margin-top: auto; }
.side .tags { justify-content: flex-end; margin-top: 0; }
.status { font-size: 11.5px; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.ok { color: var(--ok); }
.status.few { color: var(--few); }
.status.sold { color: var(--sold); }
.fav { position: relative; z-index: 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--faint); margin: -6px -6px 0 0; transition: color .15s, background .15s, transform .15s; }
.fav:hover { color: var(--accent); background: var(--accent-soft); }
.fav[aria-pressed="true"] { color: var(--accent); }
.fav[aria-pressed="true"] .ic { animation: pop .3s ease; }
@keyframes pop { 50% { transform: scale(1.3); } }

.dates { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; position: relative; z-index: 2; }
.dchip { font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 7px; background: var(--surface-2); border: 1px solid transparent; font-variant-numeric: tabular-nums; transition: border-color .15s; }
.dchip:hover { border-color: var(--border-strong); }
.dchip.sold { color: var(--faint); text-decoration: line-through; }
.dchip.few { box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--few) 60%, transparent); }
.dates .more { font-size: 12px; color: var(--muted); align-self: center; padding-left: 2px; }

/* Poster (generativ) */
.poster {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(120% 80% at 15% 0%, hsl(var(--h1) 75% 62% / .95), transparent 60%),
    radial-gradient(90% 90% at 100% 100%, hsl(var(--h2) 70% 45% / .9), transparent 65%),
    linear-gradient(150deg, hsl(var(--h1) 45% 30%), hsl(var(--h2) 55% 16%));
}
.poster::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgb(0 0 0 / .07) 0 2px, transparent 2px 9px); mix-blend-mode: overlay; }
.poster.sm { width: 76px; height: 100px; border-radius: 10px; display: flex; align-items: flex-end; padding: 7px; box-shadow: var(--shadow-sm); }
.poster.sm span { font-family: var(--serif); font-weight: 650; font-size: 46px; line-height: .8; letter-spacing: -.04em; text-shadow: 0 2px 12px rgb(0 0 0 / .3); position: relative; z-index: 1; }

/* Leerer Zustand */
.empty { text-align: center; padding: 56px 20px; border: 1px dashed var(--border-strong); border-radius: var(--radius); background: var(--surface); }
.empty-art { color: var(--accent); width: 120px; margin: 0 auto 12px; }
.empty h3 { font-family: var(--serif); font-size: 22px; margin-bottom: 6px; }
.empty p { color: var(--muted); max-width: 420px; margin: 0 auto 18px; }
.empty-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.sentinel { display: flex; justify-content: center; padding: 16px; }

/* ───────────── Karte ───────────── */
.leaflet-container { font: 13px/1.4 var(--font); background: var(--surface-2); }
.pin-wrap { background: none; border: 0; }
.pin {
  --size: 34px; width: var(--size); height: var(--size); margin: 0 auto; border-radius: 50% 50% 50% 0; transform: rotate(-45deg) translate(-1px, 1px);
  background: var(--c); border: 2.5px solid #fff; box-shadow: 0 3px 10px rgb(0 0 0 / .3); display: grid; place-items: center;
  transition: transform .18s, filter .18s, opacity .18s;
}
.pin span { transform: rotate(45deg); color: #fff; font-weight: 700; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.pin.is-empty { filter: grayscale(1); opacity: .5; }
.pin.is-empty span { opacity: .8; }
.pin.is-dim { opacity: .4; }
.pin.is-sel { border-color: var(--text); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 35%, transparent), 0 4px 14px rgb(0 0 0 / .35); transform: rotate(-45deg) scale(1.15); opacity: 1; filter: none; }
.leaflet-marker-icon.is-hot .pin { transform: rotate(-45deg) scale(1.3); opacity: 1; filter: none; }
.leaflet-marker-icon:hover .pin { transform: rotate(-45deg) scale(1.15); }
.me-wrap { background: none; border: 0; }
.me { width: 20px; height: 20px; border-radius: 50%; background: var(--focus); border: 3px solid #fff; box-shadow: 0 0 0 6px color-mix(in srgb, var(--focus) 25%, transparent), 0 2px 6px rgb(0 0 0 / .3); }

.leaflet-bar, .map-ctl { border: 0 !important; box-shadow: var(--shadow) !important; }
.leaflet-bar a, .map-ctl { background: var(--surface) !important; color: var(--text) !important; border-color: var(--border) !important; }
.leaflet-bar a:hover, .map-ctl:hover { background: var(--surface-2) !important; }
.map-ctl { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; }
.map-ctl .ic { width: 17px; height: 17px; }
.leaflet-control-attribution { background: color-mix(in srgb, var(--surface) 80%, transparent) !important; color: var(--muted) !important; font-size: 10.5px; border-radius: 6px 0 0 0; }
.leaflet-control-attribution a { color: var(--muted) !important; }

.legend {
  position: absolute; left: 24px; bottom: 24px; z-index: 500; display: flex; flex-wrap: wrap; gap: 4px 12px; max-width: calc(100% - 140px);
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); border-radius: 10px; padding: 8px 12px; box-shadow: var(--shadow); font-size: 12px;
}
.legend-title { font-weight: 700; color: var(--muted); width: 100%; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; }
.legend-item { display: inline-flex; align-items: center; gap: 5px; }

.tpop .leaflet-popup-content-wrapper { background: var(--surface); color: var(--text); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 0; }
.tpop .leaflet-popup-tip { background: var(--surface); }
.tpop .leaflet-popup-content { margin: 0; width: auto !important; min-width: 280px; }
.tpop a.leaflet-popup-close-button { top: 8px; right: 8px; width: 28px; height: 28px; font-size: 20px; color: var(--muted); border-radius: 50%; display: grid; place-items: center; }
.tpop a.leaflet-popup-close-button:hover { background: var(--surface-2); color: var(--text); }
.pop { padding: 16px 16px 12px; }
.pop-head h4 { font-family: var(--serif); font-size: 17px; font-weight: 650; line-height: 1.2; padding-right: 26px; }
.pop-head p { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.pop-meta { font-size: 12.5px; margin: 10px 0 6px; color: var(--muted); }
.pop-meta b { color: var(--text); }
.pop-list { list-style: none; margin: 0 -8px; padding: 0; max-height: 220px; overflow-y: auto; }
.pop-list button { width: 100%; display: grid; grid-template-columns: 9px 1fr auto; gap: 8px; align-items: center; text-align: left; padding: 6px 8px; border-radius: 8px; font-size: 13px; }
.pop-list button:hover { background: var(--surface-2); }
.pop-list .t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop-list .d { color: var(--muted); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pop-list em { font-style: normal; color: var(--faint); }
.pop-more { font-size: 12px; color: var(--muted); margin: 4px 0 0; }
.pop-actions { display: flex; gap: 6px; margin: 12px 0 10px; flex-wrap: wrap; }
.pop-actions .btn-primary { color: var(--accent-text) !important; }
.route { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.route-label { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--muted); margin-right: 2px; }
.route-label .ic { width: 15px; height: 15px; }
.route a { font-size: 12.5px; font-weight: 600; text-decoration: none; padding: 5px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text) !important; transition: background .15s; }
.route a:hover { background: var(--surface-3); }
.route.compact { border-top: 1px solid var(--border); padding-top: 10px; }

/* ───────────── Detail-Dialog ───────────── */
dialog#detail {
  border: 0; padding: 0; border-radius: 20px; width: min(640px, calc(100vw - 32px)); max-height: min(88dvh, 900px);
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); overflow: hidden;
}
dialog#detail[open] { display: flex; animation: dlg-in .22s cubic-bezier(.2, .8, .2, 1); }
dialog#detail::backdrop { background: rgb(15 10 8 / .5); backdrop-filter: blur(3px); animation: fade .2s; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes fade { from { opacity: 0; } }
.detail { display: flex; flex-direction: column; width: 100%; min-height: 0; }
.hero { height: 210px; flex: none; display: flex; align-items: flex-end; padding: 22px 24px; }
.hero-letters { position: absolute; right: -10px; top: -30px; font-family: var(--serif); font-weight: 650; font-size: 170px; line-height: 1; opacity: .13; letter-spacing: -.05em; white-space: nowrap; pointer-events: none; }
.hero .close { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgb(0 0 0 / .3); color: #fff; backdrop-filter: blur(6px); }
.hero .close:hover { background: rgb(0 0 0 / .5); color: #fff; }
.hero-text { position: relative; z-index: 1; text-shadow: 0 1px 12px rgb(0 0 0 / .25); }
.hero-text h2 { font-family: var(--serif); font-weight: 650; font-size: 32px; line-height: 1.08; letter-spacing: -.025em; margin: 8px 0 4px; }
.hero-text p { opacity: .9; font-size: 15px; }
.genre-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; background: rgb(255 255 255 / .92); color: #1d1915; padding: 3px 10px 3px 8px; border-radius: 999px; text-shadow: none; }
.detail-body { overflow-y: auto; padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 20px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.actions .grow { flex: 1; min-width: 180px; }
.blurb { font-size: 16px; line-height: 1.55; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin: 0; }
.facts div { background: var(--surface); padding: 10px 14px; }
.facts dt { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
.facts dd { margin: 2px 0 0; font-size: 14px; font-weight: 500; }
.facts small { color: var(--muted); font-size: 12px; }
.detail-body h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-bottom: 8px; display: flex; gap: 6px; }
.datelist { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.datelist li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 8px 8px 8px 14px; border-top: 1px solid var(--border); }
.datelist li:first-child { border-top: 0; }
.datelist li.hl { background: var(--accent-soft); }
.datelist.collapsed li.extra { display: none; }
.dl-when { display: flex; flex-direction: column; }
.dl-when b { font-size: 14px; }
.dl-when span { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dl-meta { display: flex; gap: 8px; align-items: center; }
.venue-card { background: var(--surface-2); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.venue-card h3 { margin-bottom: 0; }
.venue-card .vname { font-weight: 650; font-size: 15.5px; }
.venue-card .route a { background: var(--surface); }
.venue-card .route a:hover { background: var(--surface-3); }
.fineprint { font-size: 12px; color: var(--faint); }

/* Scrim, Toast, Mobile-Toggle */
.scrim { position: fixed; inset: 0; background: rgb(15 10 8 / .45); z-index: 1000; animation: fade .2s; }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 3000;
  background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg);
  transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.mobile-toggle {
  display: none; position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 950;
  height: 46px; padding: 0 20px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 700;
  align-items: center; gap: 8px; box-shadow: var(--shadow-lg);
}

/* ───────────── Responsive ───────────── */
@media (max-width: 1400px) {
  .top-actions .btn .lbl { display: none; }
  .top-actions .btn:not(.data-info) { width: 38px; padding: 0; position: relative; }
  .top-actions .btn .count { position: absolute; top: -2px; right: -4px; }
}
@media (max-width: 1180px) {
  .layout { grid-template-columns: minmax(0, 1fr) minmax(320px, 44%); }
  .filters {
    position: fixed; z-index: 1001; top: 0; left: 0; bottom: 0; height: 100dvh; width: min(360px, 92vw);
    transform: translateX(-105%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); box-shadow: var(--shadow-lg); background: var(--surface); border: 0;
  }
  .filters-open .filters { transform: none; }
  .only-drawer { display: flex !important; }
  .filters-foot { padding: 12px 16px max(12px, env(safe-area-inset-bottom)); border-top: 1px solid var(--border); }
  .filter-btn { display: inline-flex; }
  .quick .qchip:nth-child(5) { display: none; }
}
@media (max-width: 820px) {
  body { font-size: 15px; }
  .topbar { flex-wrap: wrap; padding: 10px 14px 6px; gap: 8px; }
  .brand-name { font-size: 20px; }
  .city { order: 2; height: 36px; font-size: 14px; margin-right: auto; }
  .data-info span:last-child { display: none; }
  .top-actions { order: 3; margin-left: 0; }
  .top-actions .btn { width: 36px; height: 36px; }
  .search { order: 4; flex-basis: 100%; max-width: none; }
  .search kbd { display: none; }
  .datebar { padding: 2px 14px 8px; gap: 8px; flex-wrap: wrap; }
  .quick { order: 1; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .quick .qchip:nth-child(5) { display: inline-flex; }
  .days-wrap { order: 2; padding: 0 8px; margin-left: -8px; }
  .datepick { order: 3; }
  .notice { margin: 10px 14px 0; }
  .layout { display: block; }
  .results { padding: 14px 14px 110px; }
  .rh-title h1 { font-size: 25px; }
  .rh-actions { width: 100%; }
  .rh-actions .seg { flex: 1; }
  .rh-actions .seg button { flex: 1; }
  .mapwrap { display: none; position: fixed; inset: var(--top) 0 0 0; height: auto; padding: 0; z-index: 800; }
  #map { border-radius: 0; border: 0; }
  body[data-mview="map"] .mapwrap { display: block; }
  body[data-mview="map"] .results, body[data-mview="map"] .notice { display: none; }
  .legend { left: 12px; bottom: 84px; max-width: calc(100% - 24px); }
  .mobile-toggle { display: inline-flex; }
  .card.show { grid-template-columns: 52px minmax(0, 1fr); gap: 4px 10px; padding: 12px; }
  .card.show .side { grid-column: 2; flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; }
  .card.show .side .fav { position: absolute; top: 8px; right: 8px; margin: 0; }
  .card.show .side .price { margin: 0; }
  .card.show h3 { padding-right: 30px; }
  .card.play { grid-template-columns: 62px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .card.play .side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; }
  .card.play .side .fav { position: absolute; top: 8px; right: 8px; margin: 0; }
  .card.play .side .price { margin: 0; }
  .card.play .poster.sm { width: 62px; height: 82px; }
  .card h3 { font-size: 17px; padding-right: 4px; }
  .card.play h3 { padding-right: 30px; }
  .card .when strong { font-size: 17px; }
  .side .status { font-size: 11px; }
  .eyebrow .grp { display: none; }
  .eyebrow .sep { display: none; }
  dialog#detail { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  dialog#detail[open] { animation: sheet-in .28s cubic-bezier(.2, .8, .2, 1); }
  @keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } }
  .hero { height: 190px; padding: 18px; }
  .hero-text h2 { font-size: 27px; }
  .detail-body { padding: 18px 16px max(24px, env(safe-area-inset-bottom)); }
  .actions .btn { flex: 1; }
  .actions .grow { flex-basis: 100%; }
  .toast { bottom: 84px; }
}
@media (max-width: 420px) {
  .brand-name { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ───────────── Echte Daten: Bilder, Quellen, Termine ───────────── */
.poster > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.poster.sm > span { position: relative; z-index: 1; }
.hero.has-img::before { content: ''; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgb(0 0 0 / .05) 30%, rgb(0 0 0 / .72)); }
.hero .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.hero.has-img .hero-letters { display: none; }
.hero-text, .hero .close { z-index: 3; }
.hero { height: 240px; }
.status.note { color: var(--muted); font-weight: 500; }
.status.note::before { display: none; }
.hint { font-size: 11.5px; color: var(--faint); margin: 8px 0 0; line-height: 1.35; }
.datelist li { grid-template-columns: 1fr auto auto; }
.dl-actions { display: flex; align-items: center; gap: 4px; }
.dl-actions .btn { height: 30px; padding: 0 11px; font-size: 12.5px; }
.dl-actions .btn .ic { width: 14px; height: 14px; }
.dl-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.detail .tags { margin-top: -8px; }
dialog#sourcesDlg {
  border: 0; padding: 0; border-radius: 18px; width: min(560px, calc(100vw - 32px)); max-height: min(85dvh, 760px);
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg);
}
dialog#sourcesDlg::backdrop { background: rgb(15 10 8 / .5); backdrop-filter: blur(3px); }
.sources { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 12px; }
.sources header { display: flex; align-items: center; justify-content: space-between; }
.sources h2 { font-family: var(--serif); font-size: 22px; }
.sources > p { color: var(--muted); font-size: 14px; }
.src-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.src-list li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 14px; border-top: 1px solid var(--border); }
.src-list li:first-child { border-top: 0; }
.src-list .dot { margin-top: 6px; }
.src-list div { display: flex; flex-direction: column; }
code { font-size: 12.5px; background: var(--surface-2); padding: 1px 5px; border-radius: 5px; }
@media (max-width: 820px) {
  .datelist li { grid-template-columns: 1fr auto; }
  .datelist .dl-meta { grid-column: 1; grid-row: 2; }
  .datelist .dl-actions { grid-row: 1 / span 2; grid-column: 2; }
  .hero { height: 210px; }
}
