/* =========================================================================
   Stadtkarte Pforzheim – Oberfläche
   Gestaltung angelehnt an www.pforzheim.de: helle Flächen, warmes Grau,
   Rostrot als Akzent, Open Sans, eckige Kanten.
   Alle Farben/Abstände sind Tokens in :root.
   ========================================================================= */

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 300 800;
  src: url('../fonts/open-sans-latin-wght-normal.woff2') format('woff2-variations');
}

:root {
  color-scheme: light;

  /* Flächen */
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f6f5f4;     /* Hover / leichte Hervorhebung */
  --surface-3: #eceae8;     /* Stadt-Hellgrau (Sektionen) */
  --line: #d4d0cd;          /* Stadt-Linienfarbe */
  --line-strong: #b9b4b0;

  /* Text */
  --text: #202c39;          /* Stadt-Textfarbe */
  --text-2: #3f4650;
  --muted: #5f5e66;

  /* Marke */
  --brand: #802000;         /* Stadt-Rostrot */
  --brand-hover: #661a00;
  --brand-soft: rgba(128, 32, 0, 0.07);
  --brand-on-dark: #ffbba4; /* Akzent auf dunklem Grund (Footer der Stadt-Website) */
  --nav: #56555e;           /* Stadt-Navigationsleiste */
  --nav-active: #46454d;
  --ink-dark: #202c39;      /* Footer-Ton */

  /* Status */
  --ok: #1e7b34;
  --warn: #8a5a00;
  --bad: #b3261e;

  --radius: 2px;
  --radius-sheet: 10px;
  --shadow: 0 2px 10px rgba(32, 44, 57, 0.16);
  --shadow-strong: 0 8px 28px rgba(32, 44, 57, 0.22);

  --left-w: 322px;
  --right-w: 390px;

  --font: 'Open Sans', Verdana, Arial, Helvetica, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;
}

@media (max-width: 1199px) { :root { --left-w: 290px; --right-w: 340px; } }
@media (min-width: 1600px) { :root { --right-w: 420px; } }

*, *::before, *::after { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--font);
  -webkit-text-size-adjust: 100%;
}

button, input { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
a { color: var(--brand); }
h1, h2, h3, p { margin: 0; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--surface-3); color: var(--brand);
  padding: 8px 14px; font-weight: 600; text-decoration: underline;
}
.skip-link:focus { top: 8px; }

* { scrollbar-width: thin; scrollbar-color: #c9c5c1 transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #c9c5c1; border-radius: 10px; border: 3px solid var(--surface); }
::-webkit-scrollbar-track { background: transparent; }

/* ------------------------------------------------------------------ Boot */

.boot {
  height: 100vh; height: 100dvh;
  display: grid; place-content: center; justify-items: center; gap: 14px;
  color: var(--muted); text-align: center; padding: 24px;
}
.boot__spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid var(--surface-3); border-top-color: var(--brand);
  animation: spin 0.9s linear infinite;
}
.boot--error p:first-child { font-weight: 600; color: var(--text); font-size: 17px; }
.boot__detail { font-family: var(--mono); font-size: 12px; }
.noscript { padding: 24px; text-align: center; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ----------------------------------------------------------------- Gerüst */

.app {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100vh; height: 100dvh;
  overflow: hidden;
}

.layout {
  display: grid;
  grid-template-columns: var(--left-w) minmax(0, 1fr) var(--right-w);
  min-height: 0;
}

.panel { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--surface); }
.panel--left { border-right: 1px solid var(--line); }
.panel--right { border-left: 1px solid var(--line); }
.panel--right:focus { outline: none; }

.pane { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.app[data-tab="orte"] .pane[data-pane="events"],
.app[data-tab="events"] .pane[data-pane="orte"],
.app[data-tab="routen"] .pane:not([data-pane="routen"]),
.app:not([data-tab="routen"]) .pane[data-pane="routen"] { display: none; }

.pane__head {
  display: grid; gap: 10px;
  padding: 16px 16px 16px;
  border-bottom: 1px solid var(--line);
}
.pane__head--row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pane__title { font-size: 18px; font-weight: 600; }
.pane__subtitle { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.pane__body { flex: 1; min-height: 0; overflow: auto; padding: 0 0 18px; overscroll-behavior: contain; }
.pane__body:focus { outline: none; }
.panel--right .pane__body { padding: 0; }
.pane__foot { border-top: 1px solid var(--line); padding: 10px 16px; background: var(--surface-2); }
.pane__foot-text { display: flex; gap: 7px; align-items: flex-start; color: var(--muted); font-size: 12.5px; }
.pane__foot-text .icon { flex: none; margin-top: 2px; }

.field-label { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: -4px; }

/* ------------------------------------------------------------ Kopfbereich */

.topbar { position: relative; z-index: 30; min-width: 0; background: var(--surface); }

/* Stadt-Header (UI-Mock nach pforzheim.de): Logozeile, Hauptnavigation, Brotkrumen */
.brandbar {
  display: flex; align-items: center; gap: 16px;
  height: 72px; padding: 0 32px;
}
.brand { display: flex; align-items: center; gap: 22px; color: #1d1d1b; text-decoration: none; min-width: 0; }
.brand:focus-visible { outline-offset: 4px; }
.brand__logo { height: 44px; width: auto; display: block; }
.brand__mark { height: 40px; width: auto; flex: none; display: block; }
.brand__city { display: grid; font-size: 21px; line-height: 1.05; font-weight: 400; letter-spacing: 0.005em; }

.topbar__end { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.weather { display: flex; align-items: center; gap: 8px; margin-right: 22px; font-size: 18px; white-space: nowrap; }
.weather__icon { fill: #4a4a4f; stroke: none; }
.service {
  display: grid; justify-items: center; gap: 2px;
  padding: 4px 10px; border: 0; background: none; cursor: pointer;
  color: var(--text); font-size: 14px; white-space: nowrap;
}
.service:hover .service__label { text-decoration: underline; }
.site-search {
  display: grid; place-items: center; width: 44px; height: 44px; margin-left: 18px;
  border: 0; background: none; color: var(--brand); cursor: pointer;
}
/* Angemeldeter Benutzer (Mock): rundes Profilbild bzw. Initialen */
.avatar {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none; margin-left: 10px; padding: 0;
  border: 0; border-radius: 50%; overflow: hidden; cursor: pointer;
  background: var(--brand); color: #fff;
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--line);
}
.avatar:hover { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--line-strong); }
.avatar:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
.avatar__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar__initials { font-size: 15px; font-weight: 600; letter-spacing: 0.02em; }

.sitenav {
  display: flex; justify-content: center; align-items: stretch; gap: 2px;
  height: 46px; background: var(--nav);
}
.sitenav__link {
  display: flex; align-items: center; padding: 0 14px;
  color: #fff; font-size: 18px; text-decoration: none;
}
.sitenav__link:hover { background: var(--nav-active); }
.sitenav__link[aria-current="page"] { background: var(--surface); color: var(--text); }
.sitenav__link:focus-visible { outline: 3px solid #fff; outline-offset: -5px; }
.sitenav__link[aria-current="page"]:focus-visible { outline-color: var(--brand); }

.crumbs {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 34px; padding: 4px 32px; font-size: 13px;
}
.crumbs__trail { display: flex; align-items: center; gap: 10px; min-width: 0; }
.crumbs__trail a { color: var(--brand); text-decoration: none; }
.crumbs__trail a:hover { text-decoration: underline; }
.crumbs__sep { color: var(--muted); }
.demo-badge {
  font-size: 12px; font-weight: 600; white-space: nowrap;
  color: var(--brand); background: #fff3ee; border: 1px solid rgba(128, 32, 0, 0.35);
  padding: 3px 9px;
}

/* Funktionsleiste: Reiter wie in der Hauptnavigation von pforzheim.de –
   der aktive Reiter ist hell und geht in den Inhalt darunter über.
   Die Spalten folgen dem Layout darunter, die Reiter stehen mittig über der Karte. */
.tabbar {
  display: grid; grid-template-columns: var(--left-w) minmax(0, 1fr) var(--right-w);
  height: 54px; padding-top: 8px; background: var(--nav);
}
.tabs { grid-column: 2; justify-self: center; display: flex; gap: 4px; min-width: 0; }
.tab {
  position: relative;
  display: flex; align-items: center; gap: 9px;
  min-width: 0; padding: 0 20px 0 16px;
  border: 0; border-radius: var(--radius) var(--radius) 0 0;
  background: transparent; cursor: pointer; text-align: left;
  color: #fff; transition: background 0.15s;
}
.tab:hover { background: var(--nav-active); }
.tab[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: inset 0 3px 0 var(--brand); }
.tab:focus-visible { outline: 3px solid #fff; outline-offset: -5px; }
.tab[aria-selected="true"]:focus-visible { outline-color: var(--brand); }
.tab__icon { opacity: 0.85; }
.tab[aria-selected="true"] .tab__icon { color: var(--brand); opacity: 1; }
.tab__label { font-size: 16px; font-weight: 600; }
.tab__badge {
  min-width: 21px; height: 21px; padding: 0 6px; border-radius: 999px;
  display: inline-grid; place-items: center;
  background: var(--brand-on-dark); color: #401000; font-size: 12px; font-weight: 700;
}
.tab[aria-selected="true"] .tab__badge { background: var(--brand); color: #fff; }
.tab__badge[hidden] { display: none; }
.tabbar__end { grid-column: 3; justify-self: end; align-self: center; padding: 0 12px 8px 0; display: flex; align-items: center; }
.tabbar__link {
  display: inline-flex; align-items: center; gap: 6px;
  color: #fff; font-size: 14px; text-decoration: none; padding: 6px 8px;
}
.tabbar__link:hover { text-decoration: underline; }
.tabbar__link:focus-visible { outline-color: #fff; }

/* Suchfeld links in der Reiterleiste, über der Filterspalte */
.tabbar__search { grid-column: 1; align-self: center; min-width: 0; padding: 0 12px 8px; }
.tabbar__search .search__input { height: 38px; border-color: transparent; }
.tabbar__search .search__input:focus { outline-color: var(--brand-on-dark); border-color: transparent; }
.mobile-search { display: none; }

/* Detailspalte ein-/ausklappen (Desktop) */
.panel-toggle {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 8px 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.4); border-radius: var(--radius);
  background: transparent; color: #fff; font-size: 14px; cursor: pointer; white-space: nowrap;
}
.panel-toggle:hover { background: var(--nav-active); border-color: #fff; }
.panel-toggle:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.panel-toggle__icon { transition: transform 0.15s; }
@media (min-width: 900px) {
  .app.right-collapsed .tabbar { grid-template-columns: var(--left-w) minmax(0, 1fr) auto; }
  .app.right-collapsed .layout { grid-template-columns: var(--left-w) minmax(0, 1fr) 0; }
  .app.right-collapsed .panel--right { display: none; }
  .app.right-collapsed .panel-toggle { flex-direction: row-reverse; padding: 0 12px 0 8px; }
  .app.right-collapsed .panel-toggle__icon { transform: rotate(180deg); }
}

.is-embed .brandbar, .is-embed .sitenav, .is-embed .crumbs { display: none; }

@media (max-width: 1199px) {
  .brandbar, .crumbs { padding-left: 20px; padding-right: 20px; }
  .weather { margin-right: 8px; }
  .service--wide .service__label { display: none; }
  .sitenav__link { font-size: 16px; padding: 0 11px; }
}

/* ------------------------------------------------------- Allgemeine Bausteine */

.icon { flex: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 38px; padding: 0 14px;
  border: 1.6px solid var(--brand); border-radius: var(--radius);
  background: var(--surface); color: var(--brand);
  font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--brand); color: #fff; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn--float { box-shadow: var(--shadow); }
.btn.is-done { border-color: var(--ok); color: var(--ok); background: #eef7f0; }

.icon-btn {
  width: 36px; height: 36px; flex: none;
  display: grid; place-items: center;
  border: 1px solid transparent; border-radius: var(--radius);
  background: transparent; color: var(--text); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-3); }

.link-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 8px; border: 0; border-radius: var(--radius);
  background: none; color: var(--brand);
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.link-btn:hover { text-decoration: underline; }

.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 9px;
  border: 1px solid var(--line); background: var(--surface-3);
  color: var(--text-2); font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.chip--cat {
  color: var(--c);
  background: color-mix(in srgb, var(--c) 8%, #fff);
  border-color: color-mix(in srgb, var(--c) 40%, #fff);
}
.chip--free { color: var(--ok); border-color: #9ccaa8; background: #eef7f0; }

.cat-ico {
  --c: #777;
  width: 28px; height: 28px; flex: none;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--c); color: #fff;
  box-shadow: 0 0 0 2px #fff, 0 1px 3px rgba(32, 44, 57, 0.35);
}
.cat-ico--sm { width: 22px; height: 22px; }
.cat-ico--lg { width: 72px; height: 72px; box-shadow: 0 0 0 5px #fff, 0 6px 20px rgba(32, 44, 57, 0.25); }

.cb {
  appearance: none; -webkit-appearance: none;
  width: 19px; height: 19px; margin: 0; flex: none;
  display: grid; place-items: center;
  border: 1.6px solid var(--nav); border-radius: var(--radius);
  background: #fff; cursor: pointer;
}
.cb:hover { border-color: var(--brand); }
.cb:checked, .cb:indeterminate { background: var(--brand); border-color: var(--brand); }
.cb:checked::after {
  content: ''; width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2.5px 2.5px 0;
  transform: translateY(-1px) rotate(45deg);
}
.cb:indeterminate::after { content: ''; width: 9px; height: 2.5px; background: #fff; }

.section-title { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 8px; }
.section-title h3 { font-size: 17px; font-weight: 600; color: var(--text); }

.empty { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 40px 20px; color: var(--muted); }
.empty__icon {
  width: 56px; height: 56px; border-radius: 50%; margin-bottom: 6px;
  display: grid; place-items: center; background: var(--surface-3); color: var(--nav);
}
.empty__title { font-weight: 600; color: var(--text); font-size: 16px; }
.empty__text { font-size: 14px; margin-bottom: 10px; }

/* ----------------------------------------------------------------- Suche */

.search { position: relative; }
.search__icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search__input {
  width: 100%; height: 42px; padding: 0 40px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: #fff; color: var(--text);
}
.search__input::placeholder { color: #75747b; }
.search__input:focus { outline: 3px solid var(--brand); outline-offset: -1px; border-color: var(--brand); }
.search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search__clear {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 0; border-radius: var(--radius); background: none; color: var(--muted); cursor: pointer;
}
.search__clear:hover { color: var(--text); background: var(--surface-3); }
.search__clear[hidden] { display: none; }

.seg { display: grid; grid-template-columns: repeat(3, 1fr); }
.seg__btn {
  height: 36px; cursor: pointer;
  border: 1.6px solid var(--brand); margin-left: -1.6px;
  background: #fff; color: var(--brand); font-size: 14px; font-weight: 600;
}
.seg__btn:first-child { margin-left: 0; border-radius: var(--radius) 0 0 var(--radius); }
.seg__btn:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.seg__btn:hover { background: var(--brand-soft); }
.seg__btn[aria-checked="true"] { background: var(--brand); color: #fff; }
.seg__btn:focus-visible { position: relative; z-index: 1; }

.results-meta { color: var(--muted); font-size: 13px; padding: 12px 16px 6px; }
.results { list-style: none; margin: 0; padding: 0; }
.result {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; border: 0; border-bottom: 1px solid var(--line);
  background: none; text-align: left; cursor: pointer;
}
.result:hover, .result.is-active { background: var(--surface-2); }
.result:focus-visible { outline-offset: -3px; }
.result__text { flex: 1; min-width: 0; display: grid; }
.result__name { font-weight: 600; color: var(--brand); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result__meta { font-size: 13px; color: var(--muted); }
.result__hidden { color: var(--warn); }
.result__chev { color: var(--muted); }

/* --------------------------------------------------------------- Legende */

.legend-tools { display: flex; align-items: center; gap: 2px; padding: 8px 10px 8px; }
.legend-tools__title { flex: 1; padding-left: 6px; font-size: 15px; font-weight: 600; color: var(--text); }

.lg { border-top: 1px solid var(--line); }
.lg__head {
  position: sticky; top: 0; z-index: 1;
  display: flex; align-items: center; gap: 10px;
  padding: 0 16px 0 6px; min-height: 46px;
  background: var(--surface-3);
}
.lg__toggle {
  flex: 1; min-width: 0; align-self: stretch;
  display: flex; align-items: center; gap: 6px;
  padding: 0 4px; border: 0; background: none; cursor: pointer; text-align: left;
  font-size: 15px; font-weight: 600; color: var(--text);
}
.lg__toggle:focus-visible { outline-offset: -3px; }
.lg__chevron { color: var(--nav); transition: transform 0.15s; }
.lg.is-collapsed .lg__chevron { transform: rotate(-90deg); }
.lg__count { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }

.lg__list { list-style: none; margin: 0; padding: 4px 0; }
.lg__list[hidden] { display: none; }

.cat-row {
  display: flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 16px 0 14px;
}
.cat-row:hover { background: var(--surface-2); }
.cat-row__label {
  flex: 1; min-width: 0; min-height: 44px;
  display: flex; align-items: center; gap: 12px; cursor: pointer;
}
.cat-row__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; }
.cat-row.is-off .cat-row__name { color: var(--muted); }
.cat-row.is-off .cat-ico { filter: grayscale(1); opacity: 0.55; }
.cat-row.is-empty .cat-row__count { opacity: 0.6; }
.cat-row__count { min-width: 22px; text-align: right; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
/* "Nur diese"-Knopf belegt erst beim Überfahren/Fokussieren Platz */
.cat-row__solo {
  width: 0; height: 30px; padding: 0; overflow: hidden; margin-right: -10px;
  display: grid; place-items: center; flex: none;
  border: 0; border-radius: var(--radius); background: none; color: var(--brand); cursor: pointer;
  opacity: 0;
}
.cat-row:hover .cat-row__solo, .cat-row__solo:focus-visible { width: 30px; margin-right: 0; opacity: 1; }
.cat-row__solo:hover { background: var(--brand-soft); }
@media (hover: none) { .cat-row__solo { display: none; } }

/* Gruppen mit eigenem Farbton (CONFIG.groupColors, Map Design #72):
   farbiger Kopf, darunter die Kategorien als weiße Karte */
.lg--hue { margin: 10px 8px 0; border-top: 0; }
.lg--hue:last-child { margin-bottom: 10px; }
.lg--hue .lg__head { gap: 8px; padding: 0 10px 0 6px; background: var(--g); }
.lg--hue .lg__toggle {
  padding: 0 2px;
  color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(32, 44, 57, 0.35);
}
.lg--hue .lg__chevron { color: #fff; }
.lg--hue .lg__count {
  min-width: 28px; padding: 1px 8px; border-radius: 999px; text-align: center;
  background: rgba(255, 255, 255, 0.8); color: var(--text); font-weight: 600;
}
.lg--hue .lg__head .cb { border-color: #fff; }
.lg--hue .lg__list { border: 1px solid var(--line); border-top: 0; background: var(--surface); }

/* Events-Filter: Liste ohne Gruppenkopf */
.pane[data-pane="events"] .lg__list { border-top: 1px solid var(--line); }

/* ---------------------------------------------------------- Events-Filter */

.chips--select { gap: 6px; }
.chip-btn {
  height: 34px; padding: 0 12px; cursor: pointer;
  border: 1.6px solid var(--brand); border-radius: var(--radius);
  background: #fff; color: var(--brand); font-size: 13.5px; font-weight: 600;
}
.chip-btn:hover { background: var(--brand-soft); }
.chip-btn[aria-checked="true"] { background: var(--brand); color: #fff; }

.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: var(--text); margin-top: 2px; }
.switch__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track {
  position: relative; flex: none; width: 40px; height: 22px; border-radius: 999px;
  border: 1.6px solid var(--nav); background: #fff; transition: background 0.15s;
}
.switch__track::after {
  content: ''; position: absolute; top: 2.5px; left: 3px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--nav); transition: transform 0.15s, background 0.15s;
}
.switch__input:checked + .switch__track { background: var(--brand); border-color: var(--brand); }
.switch__input:checked + .switch__track::after { transform: translateX(17px); background: #fff; }
.switch__input:focus-visible + .switch__track { outline: 3px solid var(--brand); outline-offset: 2px; }

/* --------------------------------------------------------- Startansicht */

.welcome { padding: 22px 20px 28px; }
.eyebrow { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; color: var(--brand); font-size: 14px; font-weight: 600; }
.welcome__title { font-size: 28px; line-height: 1.2; font-weight: 600; margin-bottom: 8px; }
.welcome__text { color: var(--text-2); margin-bottom: 18px; }

/* angelehnt an die "Schnell finden"-Box der Stadt-Website */
.today-card {
  width: 100%; display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border: 0; border-radius: var(--radius); cursor: pointer; text-align: left;
  background: var(--brand); color: #fff;
}
.today-card:hover { background: var(--brand-hover); }
.today-card__icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; background: #fff; color: var(--brand); }
.today-card__text { flex: 1; min-width: 0; display: grid; }
.today-card__text strong { font-weight: 600; font-size: 16px; }
.today-card__text span { color: #ffd9cb; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cards { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.card {
  width: 100%; display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 4px; border: 0; border-bottom: 1px solid var(--line);
  background: none; cursor: pointer; text-align: left;
}
.card:hover { background: var(--surface-2); }
.card:focus-visible { outline-offset: -3px; }
.card__text { display: grid; gap: 2px; min-width: 0; }
.card__title { font-weight: 600; color: var(--brand); font-size: 16px; line-height: 1.3; }
.card:hover .card__title { text-decoration: underline; }
.card__teaser { color: var(--text-2); font-size: 14px; }

.mini-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.mini {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 10px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer;
}
.mini:hover { background: var(--surface-2); }
.mini:focus-visible { outline-offset: -3px; }
.mini__name { flex: 1; min-width: 0; font-weight: 600; font-size: 14.5px; color: var(--brand); }
.mini__sub { display: block; color: var(--muted); font-size: 13px; font-weight: 400; }
.mini__extra { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mini__date {
  width: 58px; flex: none; padding: 4px 2px; text-align: center;
  background: var(--surface-3); color: var(--nav); font-size: 12.5px; font-weight: 600; line-height: 1.25;
}
.mini > .icon:last-child { color: var(--muted); } /* nur der Pfeil am Zeilenende, nicht das Icon im Kategorie-Kreis */

/* -------------------------------------------------------- Detailansicht */

.detail__hero {
  position: relative; height: 150px; overflow: hidden;
  display: grid; place-items: center;
  background:
    linear-gradient(180deg, transparent 55%, rgba(32, 44, 57, 0.06)),
    var(--surface-3);
  border-bottom: 1px solid var(--line);
}
.detail__hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail__credit { position: absolute; left: 8px; bottom: 6px; font-size: 11px; color: #fff; background: rgba(0, 0, 0, 0.55); padding: 1px 6px; }
.detail__close { position: absolute; top: 10px; right: 10px; background: #fff; border-color: var(--line); box-shadow: var(--shadow); }
.detail__body { padding: 18px 20px 30px; }
.detail__body > .chips { margin-bottom: 10px; }
.detail__title { font-size: 24px; line-height: 1.25; font-weight: 600; }
.detail__title:focus { outline: none; }
.detail__lead { color: var(--text-2); margin-top: 6px; font-size: 16px; }
.detail__text { margin-top: 18px; }
.detail__section { margin-top: 4px; }

.status {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 12px;
  padding: 4px 11px 4px 9px; font-size: 14px; font-weight: 600;
  border: 1px solid currentColor;
}
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status--open { color: var(--ok); background: #eef7f0; }
.status--closed { color: var(--bad); background: #fdf0ef; }
.status--soon { color: var(--warn); background: #fdf6e7; }
.status--info { color: var(--muted); background: var(--surface-2); }

.facts { margin: 20px 0 0; border-top: 1px solid var(--line); }
.facts__row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; color: var(--muted); font-size: 13px; font-weight: 600; }
.facts dd { margin: 0; }
.facts__note { color: var(--muted); font-size: 13px; margin-top: 6px; }
.facts__sub { display: block; color: var(--muted); font-size: 13px; }
.facts--compact { margin-top: 12px; }
.facts--compact .facts__row { padding: 9px 0; }
.source-fact { overflow-wrap: anywhere; }
.source-fact__meta { margin: 4px 0 0; font-size: 13px; }
.source-fact__meta > div { display: flex; flex-wrap: wrap; column-gap: 8px; }
.source-fact__meta dt { display: block; margin: 0; }

.hours { border-collapse: collapse; }
.hours th { padding: 1px 16px 1px 0; text-align: left; font-weight: 600; color: var(--muted); }
.hours td { padding: 1px 0; font-variant-numeric: tabular-nums; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--brand); font-weight: 700; }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 18px 0 0; }
.tag { padding: 2px 9px; background: var(--surface-3); color: var(--text-2); font-size: 13px; }

/* ------------------------------------------------------------ Zeitleiste */

.timeline { padding: 0 0 22px !important; }
.day__head {
  position: sticky; top: 0; z-index: 1;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  background: var(--surface-3); border-bottom: 1px solid var(--line);
  font-size: 15px; font-weight: 600; color: var(--text);
}
.day__head--live { color: var(--ok); }
.day__list { list-style: none; margin: 0; padding: 0; }

.ev { position: relative; border-bottom: 1px solid var(--line); background: var(--surface); }
.ev::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: transparent; }
.ev:hover { background: var(--surface-2); }
.ev.is-selected { background: var(--surface-2); }
.ev.is-selected::before { background: var(--brand); }
.ev__main {
  width: 100%; display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 20px; border: 0; background: none; text-align: left; cursor: pointer;
}
.ev__main:focus-visible { outline-offset: -3px; }
.ev__text { display: grid; gap: 2px; min-width: 0; }
.ev__time { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.ev__sep { color: var(--line-strong); }
.ev__title { font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--brand); }
.ev__main:hover .ev__title { text-decoration: underline; }
.ev__place { display: flex; align-items: center; gap: 5px; color: var(--text-2); font-size: 13.5px; }
.ev__badges { margin-top: 4px; }
.ev__more { padding: 0 20px 18px 62px; }
.ev__teaser { color: var(--text-2); margin-top: 10px; }
.ev__desc { margin-top: 8px; font-size: 14.5px; }

.live-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--ok); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(30, 123, 52, 0.5); }
  100% { box-shadow: 0 0 0 8px rgba(30, 123, 52, 0); }
}

/* ----------------------------------------------------------------- Karte */

.mapwrap { position: relative; min-width: 0; min-height: 0; background: var(--surface-3); container-type: inline-size; }
.map { position: absolute; inset: 0; font-family: var(--font); }

/* Marker (das äußere .mk wird von MapLibre per transform positioniert) */
.mk { cursor: pointer; }
.mk__btn {
  position: relative;
  width: 30px; height: 30px; padding: 0;
  display: grid; place-items: center;
  border-radius: 50%; border: 2px solid #fff;
  background: var(--c); color: #fff; cursor: pointer;
  box-shadow: 0 1px 2px rgba(32, 44, 57, 0.4), 0 3px 8px rgba(32, 44, 57, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.mk__btn:hover { transform: scale(1.15); }
.mk__btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.mk:hover { z-index: 4; }
.mk.is-selected { z-index: 5; }
/* Ausgewählter Marker: Rahmen und Puls in der Farbe seiner Kategorie (--c) */
.mk.is-selected .mk__btn {
  transform: scale(1.3);
  box-shadow: 0 0 0 3px var(--c), 0 0 0 7px color-mix(in srgb, var(--c) 25%, transparent), 0 6px 16px rgba(32, 44, 57, 0.35);
}
.mk.is-selected::before {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid var(--c); animation: ring 1.8s ease-out infinite; pointer-events: none;
}
@keyframes ring { from { transform: scale(0.8); opacity: 0.9; } to { transform: scale(1.9); opacity: 0; } }

.mk__label {
  position: absolute; left: 50%; top: calc(100% + 4px); transform: translateX(-50%);
  max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 0 4px;
  color: var(--text); font-size: 12.5px; font-weight: 600;
  text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 6px #fff;
  pointer-events: none; opacity: 0; transition: opacity 0.15s;
}
.map[data-basemap="dunkel"] .mk__label { color: #fff; text-shadow: 0 1px 2px #000, 0 0 6px rgba(0, 0, 0, 0.9); }
.show-labels .mk__label { opacity: 1; }
/* Hover/Tastaturfokus: Name als Balken in der Farbe des Markers (--c) */
.mk:hover .mk__label, .mk:has(.mk__btn:focus-visible) .mk__label {
  opacity: 1; padding: 2px 7px; border-radius: 3px;
  background: var(--c); color: #fff; text-shadow: none;
}
/* Ausgewählter Marker: nur Puls, kein Text – der Name steht bereits in der Seitenleiste */
.mk.is-selected .mk__label { display: none; }

.mk.is-live .mk__btn::after {
  content: ''; position: absolute; top: -3px; right: -3px; width: 11px; height: 11px; border-radius: 50%;
  background: #2fb350; border: 2px solid #fff;
}

.mk.is-hidden,
.map[data-mode="orte"] .mk--event,
.map[data-mode="events"] .mk--poi,
.map[data-mode="routen"] .mk { display: none !important; }

/* Tab "Routen" */
.pane__intro { color: var(--text-2); font-size: 14px; }
.pane__hint { margin: 14px 16px; color: var(--muted); font-size: 12.5px; }
.rt__source { margin-top: 10px; color: var(--muted); font-size: 12px; }
.rt { scroll-margin-top: 48px; } /* beim Hinscrollen nicht unter der mitlaufenden Gruppen-Überschrift verschwinden */
.rt__close { position: absolute; top: 8px; right: 8px; }
.rt.is-selected .ev__main { padding-right: 52px; } /* Platz für den Schließen-Button */
.rt__source a { color: inherit; }
/* Untergruppe (z. B. Mountainbike unter Radfahren) eingerückt */
.cat-row--sub { padding-left: 38px; }
.cat-row--sub .cat-row__name { font-size: 14px; }
.rt-range { padding: 0 16px 8px; }
.rt-range .chip-btn { height: 32px; padding: 0 10px; font-size: 13px; }
.chip-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.chip-btn:disabled:hover { background: #fff; }
.rt-range__hint { margin: 6px 0 0; color: var(--muted); font-size: 12.5px; }
.day__count { margin-left: auto; color: var(--muted); font-size: 13px; font-weight: 400; font-variant-numeric: tabular-nums; }

.coords {
  position: absolute; left: 50%; bottom: 10px; z-index: 2; transform: translateX(-50%);
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.92); border: 1px solid var(--line);
  color: var(--muted); font: 500 12px/1.2 var(--mono); white-space: nowrap; pointer-events: none;
}
@media (pointer: coarse) { .coords { display: none; } }
@container (max-width: 760px) { .coords { display: none; } }

.map-notice {
  position: absolute; top: 12px; left: 50%; z-index: 3; transform: translateX(-50%);
  padding: 8px 12px; max-width: calc(100% - 140px);
  background: #fff; border: 1px solid var(--bad); color: var(--bad); font-size: 14px; box-shadow: var(--shadow);
}
.map-notice[hidden] { display: none; }

/* MapLibre-Steuerelemente im Stil der Stadt-Website */
.maplibregl-ctrl-top-right { top: 6px; right: 6px; }
.maplibregl-ctrl-group {
  background: #fff !important; border: 1px solid var(--line-strong);
  border-radius: var(--radius) !important; box-shadow: var(--shadow) !important; overflow: hidden;
}
.maplibregl-ctrl-group button { width: 38px !important; height: 38px !important; color: var(--text); display: grid !important; place-items: center; }
.maplibregl-ctrl-group button + button { border-top: 1px solid var(--line) !important; }
.maplibregl-ctrl-group button:not(:disabled):hover { background: var(--surface-3) !important; }
.maplibregl-ctrl-group button:focus-visible { box-shadow: inset 0 0 0 3px var(--brand) !important; outline: none; }
.maplibregl-ctrl-scale { font-family: var(--font); font-size: 11px; color: var(--text); border-color: var(--text); background: rgba(255, 255, 255, 0.85); }
.maplibregl-ctrl-attrib { font-family: var(--font); }
.maplibregl-ctrl-attrib a { color: var(--text-2); }

.bm { position: relative; }
.bm__toggle {
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  border: 3px solid #fff; background: var(--swatch, var(--surface-3)); color: var(--text);
  box-shadow: var(--shadow);
}
.bm__toggle:hover { box-shadow: 0 0 0 2px var(--brand), var(--shadow); }
.bm__toggle .icon { color: #fff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.75)); }
.bm__menu {
  position: absolute; top: 0; right: calc(100% + 8px);
  display: grid; min-width: 160px; padding: 4px 0;
  border: 1px solid var(--line-strong); background: #fff; box-shadow: var(--shadow-strong);
}
.bm__menu[hidden] { display: none; }
.bm__item {
  display: flex; align-items: center; gap: 10px; padding: 9px 14px;
  border: 0; background: none; cursor: pointer; text-align: left;
  font-size: 14px; color: var(--text);
}
.bm__item:hover { background: var(--surface-2); }
.bm__item:focus-visible { outline-offset: -3px; }
.bm__item[aria-checked="true"] { color: var(--brand); font-weight: 600; background: var(--brand-soft); }
.bm__swatch { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-strong); }

/* ------------------------------------------------------------ Mobil */

.mobilebar { display: none; }
.sheet-head { display: none; }
.backdrop { display: none; }

@media (max-width: 899px) {
  .brandbar { height: 56px; padding: 0 10px 0 14px; gap: 10px; }
  .brand { gap: 12px; }
  .brand__mark { height: 28px; }
  .brand__city { font-size: 14.5px; }
  .brand__logo { height: 32px; }
  .weather, .service--wide, .service__label { display: none; }
  .service { padding: 6px; }
  .site-search { margin-left: 2px; width: 38px; height: 38px; }
  .sitenav { justify-content: flex-start; height: 40px; overflow-x: auto; scrollbar-width: none; }
  .sitenav__link { font-size: 15px; padding: 0 10px; white-space: nowrap; }
  .crumbs { padding: 3px 14px; min-height: 30px; font-size: 12.5px; }
  .tabbar { grid-template-columns: minmax(0, 1fr); height: 50px; padding: 6px 6px 0; }
  .tabs { grid-column: 1; justify-self: stretch; }
  .tab { flex: 1 1 0; justify-content: center; gap: 8px; padding: 0 10px; }
  .tab__label { font-size: 15px; }
  .tabbar__end, .tabbar__search { display: none; }
  .mobile-search { display: block; padding: 12px 16px 0; }

  .layout { grid-template-columns: minmax(0, 1fr); }

  .panel { position: fixed; z-index: 40; box-shadow: var(--shadow-strong); }
  .panel--left {
    top: 0; bottom: 0; left: 0; width: min(88vw, 340px);
    transform: translateX(-104%); visibility: hidden;
    transition: transform 0.25s ease, visibility 0s linear 0.25s;
  }
  .app.sheet-left .panel--left { transform: none; visibility: visible; transition: transform 0.25s ease; }

  .panel--right {
    left: 0; right: 0; bottom: 0; height: min(70dvh, 620px);
    border-left: 0; border-top: 1px solid var(--line); border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
    transform: translateY(104%); visibility: hidden;
    transition: transform 0.28s ease, visibility 0s linear 0.28s;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .app.sheet-right .panel--right { transform: none; visibility: visible; transition: transform 0.28s ease; }

  .backdrop {
    display: block; position: fixed; inset: 0; z-index: 35;
    background: rgba(32, 44, 57, 0.45); opacity: 0; pointer-events: none; transition: opacity 0.2s;
  }
  .app.sheet-left .backdrop { opacity: 1; pointer-events: auto; }

  .sheet-head {
    display: flex; align-items: center; gap: 8px; position: relative;
    padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--line); background: var(--surface-3);
  }
  .sheet-head__title { flex: 1; font-weight: 600; font-size: 16px; }
  .sheet-head__grip {
    position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
    width: 40px; height: 4px; border-radius: 4px; background: var(--line-strong);
  }
  .panel--right .sheet-head { padding-top: 16px; border-radius: var(--radius-sheet) var(--radius-sheet) 0 0; }

  .mobilebar { display: flex; gap: 8px; position: absolute; left: 10px; top: 10px; z-index: 3; }

  .ev__more { padding-left: 20px; }
  .detail__hero { height: 116px; }
  .detail__close { display: none; }
  .maplibregl-ctrl-scale { display: none; }
}

@media (max-width: 400px) {
  .brand__city { font-size: 13.5px; }
  .demo-badge { font-size: 11px; padding: 2px 6px; }
}

/* ------------------------------------------------- Chat (Stadtführer) */

/* Spalte von oben bis über die Quellenangabe; das Fenster wächst höchstens bis 480 px */
.chat {
  position: absolute; top: 16px; right: 16px; bottom: 40px; z-index: 6;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-end; gap: 12px;
  pointer-events: none;
}
.chat > * { pointer-events: auto; }
.chat__bubble {
  position: relative; display: grid; place-items: center; width: 56px; height: 56px;
  border: 0; border-radius: 50%; cursor: pointer;
  background: var(--brand); color: #fff; box-shadow: var(--shadow-strong);
  transition: background 0.15s, transform 0.15s;
}
.chat__bubble:hover { background: var(--brand-hover); transform: scale(1.05); }
.chat__bubble:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.chat-logo { display: block; flex: none; }
.chat__bubble-open { width: 36px; height: 36px; }
.chat__avatar-logo { width: 22px; height: 22px; }
.chat__bubble .chat__bubble-close, .chat__bubble.is-open .chat__bubble-open { display: none; }
.chat__bubble.is-open .chat__bubble-close { display: block; }

.chat__panel {
  display: flex; flex-direction: column;
  flex: 0 1 480px; min-height: 0; width: min(360px, calc(100cqw - 32px));
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-strong);
}
.chat__panel[hidden] { display: none; }
.chat__head { display: flex; align-items: center; gap: 10px; padding: 10px 8px 10px 14px; background: var(--nav); color: #fff; }
.chat__avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); flex: none; }
.chat__title { display: grid; line-height: 1.25; min-width: 0; }
.chat__title strong { font-size: 15px; }
.chat__title span { font-size: 12px; color: rgba(255, 255, 255, 0.8); }
.chat__close { margin-left: auto; color: #fff; }
.chat__close:hover { background: var(--nav-active); }

.chat__messages { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 14px; background: var(--surface-2); }
.chat__msg { max-width: 86%; padding: 9px 12px; font-size: 14px; line-height: 1.45; }
.chat__msg p { margin: 0; white-space: pre-wrap; }
.chat__msg--assistant { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); }
.chat__msg--user { align-self: flex-end; background: var(--brand); color: #fff; }
.chat__results { display: grid; gap: 6px; margin-top: 8px; }
.chat__result {
  display: flex; align-items: center; gap: 7px; padding: 6px 9px; text-align: left;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--brand); font-size: 13px; font-weight: 600; cursor: pointer;
}
.chat__result:hover { border-color: var(--brand); }
.chat__typing { display: flex; gap: 4px; padding: 12px 14px; }
.chat__typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: chat-dot 1s infinite ease-in-out; }
.chat__typing span:nth-child(2) { animation-delay: 0.15s; }
.chat__typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chat-dot { 0%, 80%, 100% { opacity: 0.3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.chat__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 0; background: var(--surface-2); }
.chat__chips[hidden] { display: none; }
.chat__chip {
  padding: 5px 10px; border: 1px solid var(--brand); border-radius: 999px;
  background: var(--surface); color: var(--brand); font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.chat__chip:hover { background: var(--brand); color: #fff; }
.chat__form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: var(--surface); }
.chat__input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--line-strong); font: inherit; font-size: 14px; }
.chat__input:focus { outline: 2px solid var(--brand); outline-offset: -1px; border-color: var(--brand); }
.chat__send { display: grid; place-items: center; width: 40px; height: 40px; border: 0; background: var(--brand); color: #fff; cursor: pointer; }
.chat__send:hover { background: var(--brand-hover); }
.chat__send:disabled { opacity: 0.5; cursor: default; }

@media (max-width: 899px) {
  .avatar { width: 34px; height: 34px; margin-left: 4px; }
  .avatar__initials { font-size: 13px; }
  .chat { right: 12px; bottom: 44px; }
  .chat__bubble { width: 52px; height: 52px; }
  .chat__bubble-open { width: 32px; height: 32px; }
  .chat__panel { width: calc(100cqw - 24px); }
}

/* ------------------------------------------------- Bewegung reduzieren */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Loading feedback must not resize the map and trigger another viewport request. */
.data-status:empty, .entry-status:empty { display: none; }
.data-status {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  max-width: calc(100% - 100px); padding: 6px 12px; border-radius: 0 0 6px 6px;
  background: var(--surface); color: var(--muted); font-size: 13px;
  pointer-events: none;
}
.data-status button { pointer-events: auto; }
.entry-status { padding: 0 18px; }
