/* Brokanto Hub, Design B „Stadtplan“ (Entscheidung 18.11.2026): sachlich, Karte zuerst. */
:root {
  --ink: #111827; --muted: #4B5563; --line: #E5E7EB; --soft: #F3F4F6; --bg: #FFFFFF; --accent: #0F5C4D;
  --k-floh: #C2410C; --k-second: #0F5C4D; --k-sozial: #15803D; --k-antik: #6D28D9; --k-vintage: #9D174D;
  --k-sammler: #4338CA; --k-buecher: #854D0E; --k-moebel: #475569; --k-spiel: #B45309;
  --head: 60px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 16px/1.5 Inter, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; }
a { color: var(--accent); }
a:hover { color: #0A4339; }
:focus-visible { outline: 3px solid #2563EB; outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: var(--bg); padding: 8px 12px; }

.top { height: var(--head); display: flex; align-items: center; gap: 20px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; font-size: 22px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a, .langs a { color: var(--ink); text-decoration: none; padding: 10px 12px; border-radius: 10px; font-size: 15px; }
.nav a[aria-current="page"] { background: var(--soft); font-weight: 600; }
.langs a { font-weight: 600; border: 1px solid var(--line); }

.hub { display: flex; height: calc(100dvh - var(--head)); }
.panel { width: 420px; flex-shrink: 0; border-right: 1px solid var(--line); overflow-y: auto; display: flex; flex-direction: column; }
.map { flex: 1 1 auto; min-width: 0; position: relative; background: #EEF0EC; }
.nojs { margin: 24px; padding: 16px; background: var(--bg); border-radius: 12px; }

.controls { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.controls h1 { margin: 0; font-size: 22px; letter-spacing: -0.01em; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.field { flex: 1 1 160px; }
select, .btn { font: inherit; font-size: 15px; min-height: 44px; border-radius: 10px; }
select { width: 100%; border: 1px solid #D1D5DB; background: var(--bg); color: var(--ink); padding: 8px 10px; }
.btn { border: 0; background: var(--ink); color: #FFFFFF; font-weight: 600; padding: 8px 16px; cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 14px; min-height: 40px; padding: 8px 12px;
  border-radius: 10px; border: 1px solid #D1D5DB; background: var(--bg); color: var(--ink); cursor: pointer; }
.chip[aria-pressed="false"] { color: var(--muted); }
.chip[aria-pressed="false"] .dot { opacity: .35; }
.chip-open[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.k-floh { background: var(--k-floh); } .k-second { background: var(--k-second); } .k-sozial { background: var(--k-sozial); }
.k-antik { background: var(--k-antik); } .k-vintage { background: var(--k-vintage); } .k-sammler { background: var(--k-sammler); }
.k-buecher { background: var(--k-buecher); } .k-moebel { background: var(--k-moebel); } .k-spiel { background: var(--k-spiel); }
.count { margin: 0; font-size: 14px; color: var(--muted); }

.list { list-style: none; margin: 0; padding: 0; flex: 1 0 auto; }
.list li { border-bottom: 1px solid var(--soft); }
.item { display: flex; gap: 12px; width: 100%; text-align: left; font: inherit; color: var(--ink); background: none; border: 0; padding: 14px 20px; cursor: pointer; }
.item:hover { background: #F9FAFB; }
.item .dot { margin-top: 7px; width: 12px; height: 12px; }
.item b { display: block; font-weight: 600; }
.item small { display: block; font-size: 14px; color: var(--muted); }
.st-open { color: var(--accent); font-weight: 600; }
.st-closed { color: #9A3412; font-weight: 600; }

.detail { padding: 16px 20px; border-bottom: 1px solid var(--line); background: #F9FAFB; display: flex; flex-direction: column; gap: 8px; }
.detail[hidden] { display: none; }
.detail h2 { margin: 0; font-size: 20px; }
.detail p { margin: 0; }
.detail .kind { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.detail .hours { font-size: 14px; color: var(--muted); white-space: pre-line; }
.detail .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.detail .acts a, .detail .acts button { font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; padding: 10px 14px; border-radius: 10px;
  background: var(--soft); color: var(--ink); border: 0; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; }
.detail .src { font-size: 12px; color: var(--muted); }

.foot { padding: 16px 20px 24px; font-size: 13px; color: var(--muted); }
.foot p { margin: 0 0 6px; }

.page { max-width: 760px; margin: 0 auto; padding: 32px 20px 64px; }
.page h1 { font-size: 32px; letter-spacing: -0.02em; margin: 0 0 8px; }
.page h2 { font-size: 20px; margin: 32px 0 8px; }
.muted { color: var(--muted); font-size: 14px; }
.facts { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 8px 20px; margin: 20px 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

@media (max-width: 760px) {
  .hub { flex-direction: column-reverse; height: auto; }
  .map { height: 55vh; flex: none; }
  .panel { width: 100%; border-right: 0; overflow: visible; }
  .top { gap: 8px; padding: 0 12px; }
  .nav a, .langs a { padding: 10px 8px; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .facts dd { margin-bottom: 10px; }
}

/* Ortsseiten (ohne Skripte) */
.more { margin: 0; font-size: 14px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.btn-link { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 10px;
  background: var(--ink); color: #FFFFFF; font-weight: 600; text-decoration: none; }
.btn-link:hover { color: #FFFFFF; background: #374151; }
.page h2 { display: flex; align-items: center; gap: 10px; }
.page h2 .dot { width: 12px; height: 12px; }
.places { list-style: none; margin: 0; padding: 0; }
.places li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.places h3 { margin: 0 0 2px; font-size: 17px; }
.places p { margin: 2px 0; }
.places .hours { font-size: 14px; color: var(--muted); }
.places .links { font-size: 14px; }
.places .links a { display: inline-block; padding: 6px 0; }
.cities { list-style: none; margin: 0; padding: 0; columns: 3 200px; column-gap: 24px; }
.cities li { padding: 4px 0; break-inside: avoid; }
.cities a { display: inline-block; padding: 4px 0; }
