/* Brokanto Website: reines CSS, System-Schriften, keine externen Ressourcen.
   Farben nach DESIGN.md (Terrakotta #9C421B auf Creme, Blush nur als Akzent für Hinweise).
   Logo und Favicon (assets/logo.svg, favicon.svg) sind Pfade, keine Webschrift; Regeln in DESIGN.md, Abschnitt Marke. */
:root {
  color-scheme: light dark;
  --bg: #fcf5ec;
  --surface: #f8eee2;
  --surface-high: #eee1d1;
  --text: #2b2018;
  --muted: #5a4a3f;
  --outline: #dcc9b9;
  --primary: #9c421b;
  --on-primary: #ffffff;
  --shell: #9c421b;
  --on-shell: #ffffff;
  --accent: #f7cec6;
  --on-accent: #3a0f0b;
  --band: rgb(156 66 27 / 0.25);
  --radius: 1rem;
  --radius-s: 0.75rem;
  --error: #b3261e;
  --on-error: #ffffff;
  --ok: #1f6b55;
  --on-ok: #ffffff;
  --land: #ece0d2;
  --land-on: #e6b89f;
  --land-ctx: #f4ece2;
  --land-edge: #fcf5ec;
  --land-hover: #d9875f;
  --dot: #9c421b;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1e1611;
    --surface: #261d17;
    --surface-high: #362b24;
    --text: #f2e5d9;
    --muted: #d9c4b5;
    --outline: #54453b;
    --primary: #ffb693;
    --on-primary: #561f00;
    --shell: #3b2219;
    --on-shell: #fbe9de;
    --accent: #69352e;
    --on-accent: #ffdad4;
    --band: rgb(255 182 147 / 0.3);
    --error: #ffb4ab;
    --on-error: #690005;
    --ok: #8fd5bc;
    --on-ok: #00382b;
    --land: #3a2e26;
    --land-on: #7a4630;
    --land-ctx: #2a211b;
    --land-edge: #1e1611;
    --land-hover: #b5643f;
    --dot: #ffb693;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--bg); color: var(--text); padding: .75rem 1rem; border-radius: var(--radius-s); z-index: 10; }
.skip:focus { top: .5rem; }
a { color: var(--primary); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.shell :focus-visible { outline-color: var(--on-shell); }
.wrap { width: 100%; max-width: 46rem; margin: 0 auto; padding-inline: 1rem; }
.shell { background: var(--shell); color: var(--on-shell); }
.shell a { color: var(--on-shell); }
.shell .wrap { padding-block: .5rem; }
.brand { font-weight: 800; font-size: 1.375rem; letter-spacing: .01em; text-decoration: none; display: inline-block; padding: .5rem 0; }
.brand .logo { display: block; height: 2.25rem; width: 9.06rem; }
.nav ul, .langs ul, .foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 .25rem; }
.nav a, .langs a, .foot a { display: inline-block; padding: .75rem .625rem; min-height: 2.75rem; line-height: 1.5rem; }
.nav a[aria-current="page"], .langs a[aria-current="true"] { font-weight: 800; text-decoration: underline; text-decoration-thickness: 3px; }
.langs { font-size: .9375rem; }
.langs .label { margin-right: .25rem; }
.draft { background: var(--accent); color: var(--on-accent); }
.draft .wrap { padding-block: .75rem; font-weight: 700; }
.draft p { margin: 0; }
main { padding-block: 1.5rem 3rem; }
h1 { font-size: clamp(1.75rem, 6vw, 2.5rem); line-height: 1.15; margin: 0 0 1rem; font-weight: 800; }
h2 { font-size: 1.375rem; line-height: 1.25; margin: 2rem 0 .5rem; }
h3 { font-size: 1.125rem; margin: 1.25rem 0 .25rem; }
p { margin: 0 0 1rem; }
ul, ol { padding-left: 1.25rem; margin: 0 0 1rem; }
li { margin-bottom: .375rem; }
.lead { font-size: 1.1875rem; color: var(--text); }
.muted { color: var(--muted); }
.small { font-size: .9375rem; }
.ph { background: var(--accent); color: var(--on-accent); border-radius: 4px; padding: 0 .25em; }
.card { background: var(--surface); border-radius: var(--radius); padding: 1.25rem; }
.card h2, .card h3 { margin-top: 0; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); margin-block: 1rem; list-style: none; padding: 0; }
.notice { background: var(--surface-high); border-radius: var(--radius); padding: 1rem 1.25rem; margin-block: 1rem; }
.notice p:last-child { margin-bottom: 0; }
.stage { background: var(--surface); border-radius: var(--radius); padding: 1.25rem; margin: 1.5rem 0; }
.stage figcaption { color: var(--muted); font-size: .9375rem; margin-top: .75rem; }
.range { position: relative; height: 1.5rem; background: var(--surface-high); border-radius: .5rem; overflow: hidden; }
.range .band { position: absolute; top: 0; bottom: 0; left: 28%; width: 36%; background: var(--band); }
.range .mark { position: absolute; top: 0; bottom: 0; left: 45%; width: .25rem; background: var(--primary); }
.range .needle { position: absolute; top: 0; bottom: 0; left: 70%; width: .1875rem; background: var(--text); }
.legend { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; list-style: none; padding: 0; margin: .75rem 0 0; font-size: .9375rem; }
.legend li { margin: 0; }
.tilde { font-weight: 800; font-variant-numeric: tabular-nums; }
.legal h2 { margin-top: 2rem; }
.legal table, .legal thead, .legal tbody, .legal tr, .legal td, .legal th { display: block; }
.legal thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.legal table { margin: 0 0 1rem; }
.legal tr { background: var(--surface); border-radius: var(--radius-s); padding: .75rem 1rem; margin-bottom: .625rem; }
.legal td { padding: .125rem 0; }
.legal td::before { content: attr(data-label) ": "; font-weight: 700; color: var(--muted); }
dl.facts { margin: 0 0 1rem; }
dl.facts dt { font-weight: 700; margin-top: .75rem; color: var(--muted); font-size: .9375rem; }
dl.facts dd { margin: 0; }
.foot { border-top: 1px solid var(--outline); padding-block: 1.5rem 2.5rem; color: var(--muted); font-size: .9375rem; }
.foot a { color: var(--primary); }
.choose { list-style: none; padding: 0; display: grid; gap: .75rem; }
.choose li { margin: 0; }
.choose a { display: block; background: var(--surface); border-radius: var(--radius); padding: 1rem 1.25rem; font-weight: 700; text-decoration: none; min-height: 3rem; }
.choose a:hover { background: var(--surface-high); }
/* Flohmarkt-Seiten (website/tools/flohmaerkte.py): Karte als Inline-SVG, Filter als Links, Termine als Karten. */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.crumbs ol { list-style: none; padding: 0; margin: 0 0 .75rem; display: flex; flex-wrap: wrap; align-items: baseline; font-size: .9375rem; color: var(--muted); }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "›"; padding: 0 .4rem; }
.crumbs a { display: inline-block; padding-block: .375rem; }
.stamp { color: var(--muted); font-size: .9375rem; }
.notice.sample { background: var(--accent); color: var(--on-accent); }
.notice.warn { background: var(--error); color: var(--on-error); }
.tabs ul { list-style: none; padding: 0; margin: 1rem 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tabs li { margin: 0; }
.tabs a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--outline); background: var(--surface); text-decoration: none; font-weight: 700; color: var(--text); }
.tabs a:hover { background: var(--surface-high); }
.tabs a[aria-current="page"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.map { margin: 1rem 0 1.5rem; }
.map-svg { display: block; width: 100%; height: auto; max-height: 75vh; margin-inline: auto; }
.map-small .map-svg { max-height: 16rem; }
.map figcaption { color: var(--muted); font-size: .8125rem; margin-top: .375rem; text-align: center; }
.map .r { fill: var(--land); stroke: var(--land-edge); stroke-width: 1.25; vector-effect: non-scaling-stroke; stroke-linejoin: round; transition: fill .15s; }
.map .r.on { fill: var(--land-on); }
.map .r.ctx { fill: var(--land-ctx); }
.map a .r { cursor: pointer; }
.map a:hover .r, .map a:focus-visible .r { fill: var(--land-hover); }
.map a:focus-visible { outline: none; }
.map a:focus-visible .r { stroke: var(--text); stroke-width: 3; }
.map .dot { fill: var(--dot); stroke: var(--bg); stroke-width: 2; vector-effect: non-scaling-stroke; pointer-events: none; }
.map .hit { fill: transparent; }
.map a:hover .dot, .map a:focus-visible .dot { fill: var(--text); stroke-width: 3; }
.map .dots[aria-hidden] { pointer-events: none; }
.regions-list { list-style: none; padding: 0; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); }
.regions-list li { margin: 0; }
.regions-list a { display: flex; justify-content: space-between; gap: .75rem; align-items: center; min-height: 3rem; padding: .625rem 1rem; background: var(--surface); border-radius: var(--radius-s); text-decoration: none; font-weight: 700; }
.regions-list a:hover { background: var(--surface-high); }
.regions-list .count { color: var(--muted); font-weight: 400; font-size: .9375rem; white-space: nowrap; }
h2 a { text-decoration: none; }
.day { font-size: 1rem; color: var(--muted); margin: 1.5rem 0 .5rem; }
.evs { list-style: none; padding: 0; margin: 0; display: grid; gap: .625rem; }
.ev { display: grid; grid-template-columns: 3.5rem 1fr; gap: .875rem; background: var(--surface); border-radius: var(--radius); padding: .875rem 1rem; margin: 0; scroll-margin-top: 1rem; }
.ev:target { outline: 3px solid var(--primary); }
.ev-date { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--surface-high); border-radius: var(--radius-s); height: 3.5rem; line-height: 1.1; }
.ev-d { font-size: 1.375rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.ev-m { font-size: .8125rem; color: var(--muted); }
.ev-body p { margin: 0 0 .25rem; }
.ev-title { font-weight: 800; line-height: 1.3; }
.ev-title a { text-decoration: none; }
.ev-title a:hover { text-decoration: underline; }
.ev.cancelled .ev-title a { text-decoration: line-through; }
.ev-meta { color: var(--muted); font-size: .9375rem; }
.ev-tags { display: flex; flex-wrap: wrap; gap: .375rem; margin-top: .375rem; }
.tag, .badge { display: inline-block; font-size: .8125rem; line-height: 1.4; padding: .125rem .5rem; border-radius: 999px; }
.tag { background: var(--surface-high); }
.badge { border: 1px solid var(--outline); }
.badge.ok { background: var(--ok); color: var(--on-ok); border-color: var(--ok); font-weight: 700; }
.badge.warn { background: var(--error); color: var(--on-error); border-color: var(--error); font-weight: 700; }
.attr { color: var(--muted); font-size: .8125rem; }
.empty { margin: 1rem 0; }
.cta { margin-top: 2rem; }
.steps li { margin-bottom: .75rem; }
.dates { columns: 2 12rem; }
@media (forced-colors: active) {
  .map .r { stroke: CanvasText; }
  .map a:hover .r, .map a:focus-visible .r { fill: Highlight; }
  .map .dot { fill: CanvasText; }
  .tabs a[aria-current="page"] { border: 2px solid CanvasText; }
}
@media (prefers-reduced-motion: reduce) { .map .r { transition: none; } }
@media (min-width: 40rem) { .wrap { padding-inline: 1.5rem; } }
