body.app {
  height: 100dvh;
  overflow: hidden;
  background: var(--map-bg);
}

.app__layout {
  height: 100dvh;
  display: flex;
}

/* =========================================================
   Seitenschiene (Desktop) / Bottom-Sheet (Mobil)
   ========================================================= */

.rail {
  flex: 0 1 420px;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  box-shadow: var(--sh-rail);
  position: relative;
  z-index: 4;
}

.rail__head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px 12px;
}

.rail__nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.rail__nav a {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-3);
  text-decoration: none;
  white-space: nowrap;
}

.rail__nav a:hover { background: var(--wash); color: var(--ink); }

.rail__nav-cta {
  padding: 0 14px !important;
  border: 1px solid var(--line-btn);
  color: var(--accent) !important;
}

.rail__nav-cta:hover { background: var(--accent-soft-2) !important; border-color: var(--accent); }

.rail__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.rail__foot {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 8px;
  padding: 16px 20px 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.rail__foot a { color: var(--ink-4); font-weight: 600; text-decoration: none; }
.rail__foot a:hover { color: var(--accent); }
.rail__foot-cta { margin-left: auto; color: var(--accent) !important; font-weight: 700 !important; }

/* ---------- Suchleiste ---------- */

.searchbar { flex: 0 0 auto; padding: 0 16px 12px; position: relative; }

.searchbar__box {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 54px;
  padding: 0 6px 0 16px;
  border-radius: 27px;
  background: var(--field);
  border: 1px solid #dde2d9;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.searchbar__box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.searchbar__icon { flex: 0 0 auto; }
.searchbar__menu { display: none; }

.searchbar__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  font-size: 16px;
  outline: none;
}

.searchbar__clear {
  flex: 0 0 40px;
  height: 40px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.searchbar__clear:hover { background: #e7eae4; }

.searchbar__filter {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line-chip);
  border-radius: 21px;
  background: var(--surface);
  color: var(--ink-3);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.searchbar__filter:hover { border-color: var(--accent); color: var(--accent); }

.searchbar__filter[aria-expanded='true'],
.searchbar__filter.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.searchbar__filter-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: #fff;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.app-menu { display: none; }

/* ---------- Kategorie-Chips ---------- */

.chips {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  padding: 0 16px 14px;
  white-space: nowrap;
}

.chip {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px 0 10px;
  border: 1px solid var(--line-chip);
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink-3);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.chip:hover { border-color: var(--accent); color: var(--accent); }

.chip[aria-pressed='true'] {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.chip__n { font-variant-numeric: tabular-nums; opacity: 0.65; font-weight: 700; }

/* ---------- Reiter ---------- */

.tabs {
  flex: 0 0 auto;
  display: flex;
  gap: 4px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}

.tabs__tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 46px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.tabs__tab:hover { color: var(--ink); }

.tabs__tab[aria-selected='true'] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.sheet-handle { display: none; }

.sheet-handle__bar {
  display: block;
  width: 40px;
  height: 5px;
  border-radius: 3px;
  background: #c9cfc6;
}

/* ---------- Neu-Schiene ---------- */

.newest { padding: 18px 0 6px; border-bottom: 1px solid var(--line-soft); }
.newest__head { display: flex; align-items: center; gap: 8px; padding: 0 20px; }
.newest__sub { margin: 4px 0 0; padding: 0 20px; font-size: 14px; color: var(--muted); }
.newest__rail { display: flex; gap: 12px; padding: 14px 20px 14px; }

.new-card {
  flex: 0 0 236px;
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--new-line);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--sh-card);
}

.new-card__open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  color: inherit;
  cursor: pointer;
}

.new-card__tile {
  height: 92px;
  display: grid;
  place-items: center;
}

.new-card__body { padding: 12px 14px 14px; }
.new-card__name { font-size: 16px; font-weight: 700; line-height: 1.25; }
.new-card__meta { margin-top: 4px; font-size: 14px; color: var(--muted); }
.new-card__since { margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--new); }

.new-card__flag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 9px;
  border-radius: 10px;
  background: var(--new);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

/* ---------- Liste ---------- */

.list-head {
  padding: 14px 20px 6px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.list-head h2 { margin: 0; font-size: 19px; letter-spacing: -0.01em; }
.list-head__count { font-size: 14px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

.row {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  padding-right: 8px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface);
  transition: background 0.12s var(--ease);
}

.row:hover, .row.is-hovered { background: var(--accent-soft-2); }
.row.is-selected { background: var(--accent-soft-2); }

.row__open {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 14px;
  padding: 14px 4px 14px 20px;
  border: 0;
  background: transparent;
  text-align: left;
  color: inherit;
  cursor: pointer;
}

.row__tile {
  flex: 0 0 64px;
  height: 64px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
}

.row__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.row__name { font-size: 16px; font-weight: 700; line-height: 1.25; }
.row__meta { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.row__state { font-size: 14px; }
.row__state .muted { color: var(--muted); }

.row__products {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }

.row .fav { margin-top: 14px; }

.list-more { margin: 14px 20px 6px; width: calc(100% - 40px); }

.empty {
  padding: 40px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.empty__mark {
  width: 64px;
  height: 64px;
  border-radius: var(--r-pill);
  background: var(--accent-soft-2);
  display: grid;
  place-items: center;
}

.empty__title { margin: 0; font-size: 17px; font-weight: 700; }
.empty__text { margin: 0; max-width: 280px; font-size: 15px; color: var(--muted); }

.skeleton-row {
  display: flex;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-soft);
}

.skeleton-row__tile,
.skeleton-row__line {
  border-radius: var(--r-md);
  background: linear-gradient(90deg, var(--wash) 25%, #e7eae4 50%, var(--wash) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s linear infinite;
}

.skeleton-row__tile { flex: 0 0 64px; height: 64px; }
.skeleton-row__lines { flex: 1; display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.skeleton-row__line { height: 13px; border-radius: 7px; }
.skeleton-row__line:nth-child(1) { width: 62%; }
.skeleton-row__line:nth-child(2) { width: 44%; }
.skeleton-row__line:nth-child(3) { width: 72%; }

@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

/* ---------- Detail ---------- */

.detail { padding-bottom: 24px; }
.detail__back { padding: 12px 12px 0; }

.detail__back button {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  padding: 0 14px 0 8px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-4);
  cursor: pointer;
}

.detail__back button:hover { background: var(--wash); }

.detail__tile {
  position: relative;
  margin: 8px 20px 0;
  height: 180px;
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.detail__tile-caption { font-size: 13px; font-weight: 600; color: var(--ink-4); }

.detail__tile { overflow: hidden; }

.detail__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail__logo {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 64px;
  height: 64px;
  padding: 6px;
  border-radius: var(--r-md);
  background: #fff;
  object-fit: contain;
  box-shadow: 0 2px 8px rgba(20, 32, 22, 0.22);
}

.detail__credit {
  margin: 6px 20px 0;
  font-size: 12px;
  color: var(--ink-4);
}

.detail__credit a { color: inherit; text-underline-offset: 2px; }

.detail__ai-note { margin-top: 6px; font-size: 12px; color: var(--ink-4); }

.detail__flag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: var(--r-md);
  background: var(--new);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.detail__head { padding: 18px 20px 0; }
.detail__head h2 { margin: 0; font-size: 26px; line-height: 1.15; }
.detail__meta { margin-top: 6px; font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.detail__state { margin-top: 6px; font-size: 15px; }
.detail__state .muted { font-weight: 500; color: var(--muted); }

.detail__actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
}

.action[aria-disabled='true'] { color: var(--muted); cursor: not-allowed; }

.action__mark {
  width: 48px;
  height: 48px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-chip);
  background: var(--accent-soft-2);
  display: grid;
  place-items: center;
  transition: background 0.15s var(--ease);
}

.action:hover .action__mark { background: var(--accent-soft); }
.action--primary .action__mark { border-color: var(--accent); background: var(--accent); }
.action--primary:hover .action__mark { background: var(--accent-hover); }
.action[aria-disabled='true'] .action__mark { background: var(--wash); border-color: var(--line); }

.detail__fact {
  display: flex;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px;
}

.detail__fact svg { flex: 0 0 auto; }
.detail__fact-sub { margin-top: 4px; font-size: 14px; color: var(--muted); }

.detail__section { padding: 16px 20px 0; }
.detail__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.tag {
  padding: 6px 12px;
  border-radius: var(--r-md);
  background: var(--accent-soft-2);
  border: 1px solid #dce3d9;
  font-size: 14px;
  font-weight: 600;
}

.detail__hint {
  margin: 18px 20px 0;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--new-soft);
  color: var(--new-ink);
  font-size: 14px;
  font-weight: 600;
}

.detail__sources { margin: 18px 20px 0; font-size: 13px; color: var(--muted); }
.detail__sources a { font-weight: 600; }

/* =========================================================
   Karte
   ========================================================= */

.map-area {
  flex: 999 1 560px;
  min-width: 0;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: var(--map-bg);
}

#map { position: absolute; inset: 0; }

.map-top {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 40px);
}

.map-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px 0 14px;
  border: 0;
  border-radius: 21px;
  background: var(--surface);
  box-shadow: var(--sh-float);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.map-pill:hover { background: var(--accent-soft-2); }
.map-pill__short { display: none; }

.map-pill--corner {
  top: auto;
  left: 18px;
  bottom: 64px;
  transform: none;
  padding: 0 16px 0 12px;
}

.map-status {
  margin: 0;
  max-width: min(520px, 100%);
  padding: 10px 16px;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--sh-float);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.map-status:empty { display: none; }
.map-status.is-error { background: #fdecea; color: #8b1d14; }

.map-tools {
  position: absolute;
  right: 18px;
  bottom: 28px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.map-tool {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--sh-float);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.map-tool:hover { background: var(--accent-soft-2); }
.map-tool.is-active { background: var(--accent-soft); }

.map-tool-group {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--sh-float);
  overflow: hidden;
}

.map-tool-group .map-tool { border-radius: 0; box-shadow: none; }
.map-tool-group .map-tool:first-child { border-bottom: 1px solid var(--line); }

.me-marker { width: 20px; height: 20px; position: relative; }

.me-marker__dot {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--focus);
  border: 3px solid #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.hover-pin {
  width: 40px;
  height: 50px;
  pointer-events: none;
}

.hover-pin svg {
  display: block;
  transform-origin: 50% 96%;
  transform: scale(var(--pin-scale, 1));
  filter: drop-shadow(0 0 0 rgba(15, 37, 70, 0));
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), filter 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-pin.is-up svg {
  transform: scale(calc(var(--pin-scale, 1) * 1.32));
  filter: drop-shadow(0 6px 6px rgba(15, 37, 70, 0.28));
}

/* ---------- Marker-Karte (Hover) ---------- */

.maplibregl-popup-content {
  padding: 0;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-pop);
  overflow: hidden;
}

.maplibregl-popup-tip { border-top-color: #fff !important; }

.pop { width: 264px; }
.pop__head { display: flex; gap: 12px; padding: 12px 14px 10px; }

.pop__tile {
  flex: 0 0 48px;
  height: 48px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
}

.pop__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pop__name { font-size: 15px; font-weight: 700; line-height: 1.25; }
.pop__meta { font-size: 13px; color: var(--muted); }
.pop__state { font-size: 13px; }
.pop__state .muted { color: var(--muted); }

.pop__products {
  padding: 0 14px 10px;
  font-size: 13px;
  color: var(--ink-4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pop__foot {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-top: 1px solid var(--line-soft);
}

.pop__more { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--accent); white-space: nowrap; }

.maplibregl-ctrl-scale {
  border-color: var(--ink-4);
  border-width: 2px;
  background: transparent;
  color: var(--ink-4);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
}

.maplibregl-ctrl-attrib { font-family: var(--font-body); font-size: 11px; }

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

.nl-card {
  position: absolute;
  left: 18px;
  bottom: 64px;
  z-index: 7;
  width: 360px;
  max-width: calc(100% - 100px);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--sh-pop);
}

.nl-card__close { position: absolute; top: 8px; right: 8px; background: #f0f2f5; }
.nl-card__body { padding: 18px 20px; }
.nl-card__head { display: flex; align-items: center; gap: 12px; padding-right: 40px; }

.nl-card__mark {
  flex: 0 0 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  display: grid;
  place-items: center;
}

.nl-card__head h2 { margin: 0; font-size: 18px; line-height: 1.2; }
.nl-card__text { margin: 10px 0 14px; font-size: 14px; line-height: 1.45; color: var(--muted-2); }
.nl-card__row { display: flex; gap: 8px; }
.nl-card__row .input { height: 44px; padding: 0 12px; border-radius: var(--r-sm); font-size: 15px; }
.nl-card__plz { flex: 0 0 92px; }
.nl-card__form .btn { margin-top: 12px; height: 46px; }
.nl-card__cta-short { display: none; }
.nl-card__fine { margin: 10px 0 0; font-size: 12px; line-height: 1.4; color: var(--muted); }

.nl-card__note {
  display: flex;
  gap: 8px;
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--open);
}

.nl-card__note--error { color: var(--closed); }

/* =========================================================
   Filter
   ========================================================= */

.scrim {
  position: fixed;
  inset: 0;
  z-index: 19;
  background: rgba(16, 24, 18, 0.42);
  border: 0;
}

.filters {
  position: absolute;
  top: 16px;
  left: 16px;
  bottom: 16px;
  width: 380px;
  max-width: calc(100% - 32px);
  z-index: 20;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--sh-sheet);
  overflow: hidden;
}

.filters__head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 12px 12px 22px;
  border-bottom: 1px solid var(--line);
}

.filters__head h2 { margin: 0; font-size: 22px; }
.filters__grip { display: none; background: none; position: relative; }

.filters__grip::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 40px;
  height: 5px;
  border-radius: 3px;
  background: #c9cfc6;
}

.filters__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.switch:last-child { border-bottom: 0; }

.filters__group h3 { margin: 0; }
.filters__hint { margin: 6px 0 0; font-size: 13px; color: var(--muted); }

.filters__tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.filter-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 12px;
  border: 1px solid #dce1d8;
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink-3);
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.filter-tile svg { flex: 0 0 auto; }
.filter-tile:hover { border-color: var(--accent); color: var(--accent); }

.filter-tile[aria-pressed='true'] {
  border: 2px solid var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.segmented {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  margin-top: 12px;
  padding: 4px;
  border-radius: var(--r-md);
  background: var(--wash);
}

.segmented button {
  height: 44px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--ink-4);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.segmented button:hover { color: var(--accent); }

.segmented button[aria-pressed='true'] {
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 1px 4px rgba(var(--shadow-ink), 0.18);
}

.segmented[aria-disabled='true'] { opacity: 0.55; }

.switches { display: flex; flex-direction: column; margin-top: 4px; }

.switch {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
  text-align: left;
  color: inherit;
  cursor: pointer;
}

.switch__text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.switch__text strong { font-size: 15px; font-weight: 700; }
.switch__text span { font-size: 13px; color: var(--muted); }

.switch__track {
  flex: 0 0 48px;
  height: 28px;
  border-radius: 14px;
  background: #8d968c;
  position: relative;
  transition: background 0.15s var(--ease);
}

.switch[aria-checked='true'] .switch__track { background: var(--accent); }

.switch__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: left 0.15s var(--ease);
}

.switch[aria-checked='true'] .switch__knob { left: 23px; }

.filters__foot {
  flex: 0 0 auto;
  display: flex;
  gap: 10px;
  padding: 14px 22px 18px;
  border-top: 1px solid var(--line);
}

.filters__foot .btn { white-space: nowrap; }

/* =========================================================
   Mobil: Karte vollflächig, Liste als Bottom-Sheet
   ========================================================= */

@media (max-width: 860px) {
  .app__layout { display: block; position: relative; }

  .map-area {
    position: absolute;
    inset: 0;
    height: 100dvh;
  }

  .rail {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--sheet-h, 52dvh);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -6px 24px rgba(var(--shadow-ink), 0.16);
    z-index: 9;
    transition: height 0.25s var(--ease);
  }

  .rail__head { display: none; }

  .searchbar {
    position: fixed;
    top: max(12px, env(safe-area-inset-top));
    left: 12px;
    right: 12px;
    padding: 0;
    z-index: 11;
  }

  .searchbar__box {
    height: 54px;
    padding: 0 6px 0 8px;
    gap: 6px;
    background: var(--surface);
    border-color: transparent;
    box-shadow: 0 3px 14px rgba(var(--shadow-ink), 0.18);
  }

  .searchbar__icon { display: none; }

  .searchbar__menu {
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    height: 40px;
    border: 0;
    border-radius: var(--r-pill);
    background: var(--accent);
    cursor: pointer;
  }

  .searchbar__input { padding-left: 4px; }
  .searchbar__filter { padding: 0; width: 44px; height: 44px; justify-content: center; border: 0; background: transparent; position: relative; }
  .searchbar__filter-label { display: none; }

  .searchbar__filter-count {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--new);
    border: 2px solid #fff;
    color: #fff;
    font-size: 10px;
  }

  .app-menu {
    position: absolute;
    top: 62px;
    left: 0;
    width: 250px;
    z-index: 12;
    display: flex;
    flex-direction: column;
    padding: 8px;
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--sh-pop);
  }

  .app-menu a {
    display: flex;
    align-items: center;
    height: 46px;
    padding: 0 14px;
    border-radius: var(--r-sm);
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
  }

  .app-menu a[aria-current='page'] { background: var(--accent-soft-2); color: var(--accent); }
  .app-menu__minor { height: 40px !important; font-size: 14px !important; font-weight: 600 !important; color: var(--ink-4) !important; }
  .app-menu__rule { height: 1px; margin: 6px 8px; background: var(--line); }

  .chips {
    position: fixed;
    top: calc(max(12px, env(safe-area-inset-top)) + 64px);
    left: 0;
    right: 0;
    padding: 0 12px 4px;
    z-index: 10;
  }

  .chip { box-shadow: 0 1px 4px rgba(var(--shadow-ink), 0.14); border-color: transparent; }
  .chip[aria-pressed='true'] { border-color: var(--accent); }

  .sheet-handle {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    height: 26px;
    border: 0;
    background: transparent;
    cursor: grab;
    touch-action: none;
  }

  .tabs {
    order: 1;
    gap: 6px;
    padding: 2px 16px 10px;
    border-bottom: 0;
  }

  .tabs__tab {
    height: 40px;
    border-radius: 20px;
    border-bottom: 0;
    background: var(--wash);
    font-size: 14px;
  }

  .tabs__tab[aria-selected='true'] { background: var(--accent-soft); color: var(--accent); }

  .rail__body { order: 2; }

  .map-tools { bottom: calc(var(--sheet-h, 52dvh) + 14px); right: 14px; transition: bottom 0.25s var(--ease); }
  .map-tools .map-tool-group { display: none; }
  .map-tool { border-radius: var(--r-pill); }

  .map-top { top: calc(max(12px, env(safe-area-inset-top)) + 116px); max-width: calc(100% - 28px); }
  .map-pill { font-size: 13px; height: 38px; }
  .map-pill__long { display: none; }
  .map-pill__short { display: inline; }

  .nl-card {
    position: relative;
    left: auto;
    bottom: auto;
    width: auto;
    max-width: none;
    margin: 0;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    background: var(--accent-soft-2);
    box-shadow: none;
  }

  .nl-card__body { padding: 14px 20px 16px; }
  .nl-card__mark { display: none; }
  .nl-card__head h2 { font-size: 16px; padding-right: 36px; }
  .nl-card__text { margin: 4px 0 10px; font-size: 13px; }
  .nl-card__close { background: transparent; top: 6px; right: 8px; }
  .nl-card__plz { display: none; }
  .nl-card__form { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
  .nl-card__row { flex: 1 1 58%; }
  .nl-card__row .field__label { display: none; }
  .nl-card__form .btn { flex: 0 0 auto; width: auto; margin-top: 0; height: 44px; padding: 0 16px; font-size: 14px; }
  .nl-card__fine { flex: 1 0 100%; margin: 0; }
  .nl-card__note { flex: 1 0 100%; }
  .nl-card__cta-long { display: none; }
  .nl-card__cta-short { display: inline; }

  .map-pill--corner { display: none; }

  .filters {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-width: none;
    height: min(90dvh, 760px);
    border-radius: 24px 24px 0 0;
    z-index: 20;
  }

  .filters__head { flex-wrap: wrap; justify-content: flex-start; padding: 6px 12px 12px 20px; }
  .filters__grip { display: block; flex: 1 0 100%; margin: 4px auto 6px; }
  .filters__head h2 { flex: 1; }

  .detail__actions { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 14px 12px; }
  .action { font-size: 12px; }
  .action__mark { width: 44px; height: 44px; }
  .detail__tile { height: 150px; margin: 8px 16px 0; }
  .row__open { padding-left: 16px; }
  .row__tile { flex: 0 0 56px; height: 56px; }
  .list-head { padding: 6px 16px 4px; }
  .newest__head, .newest__sub { padding: 0 16px; }
  .newest__rail { padding: 10px 16px 12px; }
  .new-card { flex: 0 0 200px; }
  .new-card__tile { height: 72px; }
}

@media (max-width: 860px) and (prefers-reduced-motion: no-preference) {
  .rail.is-dragging { transition: none; }
  .rail.is-dragging ~ .map-area .map-tools { transition: none; }
}

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