/* ══ Betriebssuche (Buschenschanksuche, Winzersuche) ═══════════════
   Baut auf styles.min.css auf: Futura Std, Grün #008207, Grau #eaeaea.
   Breakpoints: ≥ 1024 px Filterspalte · 681–1023 px Filter oben · ≤ 680 px mobil
   ══════════════════════════════════════════════════════════════ */

.bs {
  --bs-green: #008207;
  --bs-green-dark: #006e05;
  --bs-green-bg: #e8f3e8;
  --bs-amber: #8a5a00;
  --bs-blue: #1f5f99;
  --bs-text: #1a1a1a;
  --bs-muted: #595959;
  --bs-line: #d6d6d6;
  --bs-bg: #eaeaea;
  --bs-panel: #f4f4f4;
  --bs-radius: 3px;
  color: var(--bs-text);
}
.bs .screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.bs-icon { flex-shrink: 0; }
.bs [hidden] { display: none !important; }

/* ── Icon-Reihe (wie Wirtesuche) ──────────────────────────────────── */
/* Gleiche Regeln wie auf Winzer-, Wein- und Wirtesuche (dort inline im Template).
   Die Selektoren müssen .icon-row .teaser__icon_s (182 px) aus styles.min.css schlagen. */
.icon-row a.mobile_1 img,
.icon-row a.mobile_2 img,
.icon-row a.mobile_3 img,
.icon-row a.mobile_4 img { width: auto; height: 50px; }
.icon-row a.mobile_4 img { opacity: .5; }

/* ── Kopfbereich ──────────────────────────────────────────────────── */
.bs-hero { padding: 30px 0 26px !important; }
.bs-hero h1 { font-size: 26px; margin-bottom: 6px; }
.bs-hero__sub { font-size: 15px; color: var(--bs-muted); margin: 0; max-width: 720px; }

/* ── Layout ───────────────────────────────────────────────────────── */
.bs-layout { padding-top: 24px !important; }
.bs-main { min-width: 0; }

/* ── Filter ───────────────────────────────────────────────────────── */
.bs-controls { display: flex; flex-direction: column; gap: 14px; }

.bs-search { position: relative; }
.bs-search .bs-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #888; pointer-events: none; }
.bs-search input {
  width: 100%; box-sizing: border-box;
  font: inherit; font-size: 15px;
  padding: 11px 12px 11px 38px;
  border: 1px solid #bdbdbd; border-radius: var(--bs-radius);
  background: #fff; color: var(--bs-text);
  -webkit-appearance: none; appearance: none;
}
.bs-search input:focus { outline: 2px solid var(--bs-green); outline-offset: -1px; border-color: var(--bs-green); }

.bs-chips { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.bs-chips__label { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--bs-muted); }
.bs-chips__scroll { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }

.bs-chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 34px; padding: 6px 12px; box-sizing: border-box;
  font-size: 14px; line-height: 1.2; white-space: nowrap;
  color: var(--bs-text); text-decoration: none;
  background: #fff; border: 1px solid #bdbdbd; border-radius: 999px;
  cursor: pointer; transition: background .12s, border-color .12s, color .12s;
  -webkit-tap-highlight-color: transparent;
}
.bs-chip:hover { border-color: var(--bs-green); color: var(--bs-green-dark); }
.bs-chip:focus-visible { outline: 2px solid var(--bs-green); outline-offset: 2px; }
.bs-chip[aria-pressed="true"] { background: var(--bs-green); border-color: var(--bs-green); color: #fff; }
.bs-chip[aria-pressed="true"]::before {
  content: ''; width: 9px; height: 5px; margin-top: -3px;
  border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg);
}
.bs:not(.bs--js) .bs-chip--time { display: none; } /* Zeitfilter brauchen JavaScript */

/* Lange Optionslisten (Rebsorten): Top-Optionen, Rest über „Alle …“ mit Suchfeld */
.bs--js .bs-chips:not(.is-expanded) .bs-chip--extra:not([aria-pressed="true"]) { display: none; }
.bs:not(.bs--js) .bs-chips__all { display: none; }
.bs-chips__all {
  align-self: flex-start; font: inherit; font-size: 14px; color: var(--bs-green-dark);
  background: none; border: 0; padding: 6px 2px; cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
  white-space: nowrap;
}
.bs-chips__filter {
  flex: 1 1 100%; width: 100%; box-sizing: border-box; font: inherit; font-size: 14px;
  padding: 7px 10px; margin-bottom: 4px; border: 1px solid #bdbdbd; border-radius: var(--bs-radius); background: #fff;
}
.bs-chips__filter:focus { outline: 2px solid var(--bs-green); outline-offset: -1px; border-color: var(--bs-green); }

/* Einklappbare Gruppen (Weitere, Boden) */
.bs-chips__toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%;
  font: inherit; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--bs-muted);
  background: none; border: 0; padding: 0; cursor: pointer; text-align: left;
}
.bs-chips__toggle .bs-icon { transition: transform .15s; }
.bs-chips__toggle[aria-expanded="true"] .bs-icon { transform: rotate(180deg); }
.bs-chips.is-collapsed .bs-chips__scroll { display: none; }

.bs-more {
  display: none;
  align-items: center; gap: 8px; align-self: flex-start;
  font: inherit; font-size: 14px; color: var(--bs-text);
  background: none; border: 0; padding: 4px 0; cursor: pointer;
}
.bs-more__count:not(:empty) {
  display: inline-block; min-width: 20px; padding: 1px 6px; box-sizing: border-box;
  font-size: 12px; text-align: center; color: #fff; background: var(--bs-green); border-radius: 999px;
}
.bs-more-panel { display: flex; flex-direction: column; gap: 14px; }
.bs-submit { align-self: flex-start; }

/* ── Werkzeugleiste ───────────────────────────────────────────────── */
.bs-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 14px; }
.bs-count { margin: 0; font-size: 15px; font-weight: 700; }
.bs-reset { font-size: 14px; color: var(--bs-green-dark); }
.bs-toolbar__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.bs-sort select {
  font: inherit; font-size: 14px; color: var(--bs-text);
  padding: 7px 28px 7px 10px; min-height: 36px;
  border: 1px solid #bdbdbd; border-radius: var(--bs-radius); background: #fff;
}
.bs--view-karte .bs-sort { display: none; }

.bs-views { display: flex; border: 1px solid #bdbdbd; border-radius: var(--bs-radius); overflow: hidden; }
.bs-view {
  display: flex; align-items: center; gap: 6px;
  font: inherit; font-size: 13px; color: var(--bs-muted);
  padding: 8px 11px; min-height: 36px; border: 0; background: #fff; cursor: pointer;
}
.bs-view + .bs-view { border-left: 1px solid #bdbdbd; }
.bs-view:hover { color: var(--bs-text); background: #f3f3f3; }
.bs-view[aria-pressed="true"] { background: var(--bs-green); color: #fff; }
.bs:not(.bs--js) .bs-view[data-view="karte"] { display: none; }

/* ── Karten (Betriebe) ────────────────────────────────────────────── */
.bs-results { list-style: none; margin: 0; padding: 0; }

.bs-card {
  position: relative;
  background: #fff; border: 1px solid var(--bs-line); border-radius: var(--bs-radius);
  transition: border-color .12s, box-shadow .12s;
}
.bs-card:hover { border-color: #a9a9a9; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.bs-card:focus-within { border-color: var(--bs-green); }
.bs-card__toggle { display: none; }

.bs-card__media { position: relative; background: #f2f2f2; overflow: hidden; }
.bs-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bs-card__media--logo { display: flex; align-items: center; justify-content: center; background: #fff; }
.bs-card__media--logo img { width: auto; height: auto; max-width: 70%; max-height: 70%; object-fit: contain; }
.bs-card__media--logo .bs-card__placeholder { max-width: 50%; opacity: .35; }
/* Foto und Logo vorhanden: Raster zeigt das Foto, die Liste (schmales Bildfeld) das Logo */
.bs-card__media .bs-card__logo { display: none; }
@media (min-width: 681px) {
  .bs-results--liste .bs-card__media--both { display: flex; align-items: center; justify-content: center; background: #fff; }
  .bs-results--liste .bs-card__media--both img:not(.bs-card__logo) { display: none; }
  .bs-results--liste .bs-card__media--both .bs-card__logo { display: block; width: auto; height: auto; max-width: 70%; max-height: 70%; object-fit: contain; }
}
.bs-card__award {
  position: absolute; left: 8px; top: 8px;
  font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
  color: #fff; background: var(--bs-green); padding: 4px 7px; border-radius: 2px;
}

.bs-card__body { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bs-card__name { font-size: 18px; line-height: 1.25; margin: 0; }
.bs-card__link { color: inherit; text-decoration: none; }
.bs-card__link::after { content: ''; position: absolute; inset: 0; z-index: 0; } /* ganze Karte klickbar */
.bs-card__link:hover { text-decoration: underline; }
.bs-card__link:focus-visible { outline: none; }
.bs-card__place { margin: 0; font-size: 14px; color: var(--bs-muted); }
.bs-card__place[data-km]:not([data-km=""])::after { content: ' · ' attr(data-km); }

.bs-card__status { display: flex; align-items: center; gap: 7px; margin: 2px 0 0; font-size: 14px; color: var(--bs-muted); }
.bs-dot { width: 8px; height: 8px; border-radius: 50%; background: #b5b5b5; flex-shrink: 0; }
.bs-card__status--open { color: var(--bs-green-dark); font-weight: 700; }
.bs-card__status--open .bs-dot { background: var(--bs-green); box-shadow: 0 0 0 3px var(--bs-green-bg); }
.bs-card__status--soon, .bs-card__status--later { color: var(--bs-amber); }
.bs-card__status--soon .bs-dot, .bs-card__status--later .bs-dot { background: #d18b00; }
.bs-card__status--week { color: var(--bs-blue); }
.bs-card__status--week .bs-dot { background: var(--bs-blue); }
.bs-card__status--closed .bs-dot { background: #8a8a8a; }
.bs-card__status--unknown { font-style: italic; }
.bs-card__status--unknown .bs-dot { background: transparent; box-shadow: inset 0 0 0 1.5px #8a8a8a; }
.bs:not(.bs--js) .bs-card__status .bs-dot { display: none; }

.bs-week { display: flex; gap: 3px; list-style: none; margin: 2px 0 0; padding: 0; }
.bs-week li {
  flex: 1 1 0; min-width: 0; max-width: 64px;
  font-size: 11px; line-height: 1.25; text-align: center; color: #9a9a9a;
  padding: 4px 2px; background: #f5f5f5; border-radius: 2px;
}
.bs-week li span { display: block; font-weight: 700; }
.bs-week li small { display: block; font-size: 10px; }
.bs-week li.is-open { color: var(--bs-green-dark); background: var(--bs-green-bg); }
.bs-week li.is-today { outline: 1.5px solid var(--bs-text); outline-offset: -1.5px; }
.bs-week li.is-past { opacity: .45; }

.bs-card__tags { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 2px 0 0; padding: 0; }
.bs-card__tags li { font-size: 12px; color: #444; background: #f1f1f1; padding: 3px 7px; border-radius: 2px; }
.bs-card__tags-more { position: relative; z-index: 1; cursor: help; }
.bs-card__tags--rebsorten li { background: #f6f1f6; color: #5a3a5a; }

.bs-card__badges { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.bs-card__badges li {
  font-size: 11px; letter-spacing: .04em; text-transform: uppercase; line-height: 1.2;
  color: var(--bs-green-dark); background: var(--bs-green-bg); padding: 3px 6px; border-radius: 2px;
}

.bs-card__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; position: relative; z-index: 3; }
.bs-action {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 6px 11px; box-sizing: border-box;
  font-size: 13px; color: var(--bs-text); text-decoration: none;
  border: 1px solid #c8c8c8; border-radius: var(--bs-radius); background: #fff;
}
.bs-action:hover { border-color: var(--bs-green); color: var(--bs-green-dark); }
.bs-action--details { background: var(--bs-green); border-color: var(--bs-green); color: #fff; }
.bs-action--details:hover { background: var(--bs-green-dark); color: #fff; }
.bs-action-label-hidden span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.bs-results--raster .bs-action--details { flex: 1 1 100%; justify-content: center; }

/* Liste */
.bs-results--liste { display: flex; flex-direction: column; gap: 10px; }
.bs-results--liste .bs-card { display: grid; grid-template-columns: 190px minmax(0, 1fr); }
.bs-results--liste .bs-card__media { height: 100%; min-height: 150px; border-right: 1px solid #eee; }

/* Raster */
.bs-results--raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bs-results--raster .bs-card { display: flex; flex-direction: column; }
.bs-results--raster .bs-card__media { aspect-ratio: 16 / 10; border-bottom: 1px solid #eee; }
.bs-results--raster .bs-card__body { flex: 1; }
.bs-results--raster .bs-card__actions { margin-top: auto; padding-top: 6px; }

.bs-empty { text-align: center; padding: 40px 20px; border: 1px dashed #c8c8c8; border-radius: var(--bs-radius); }
.bs-empty a { color: var(--bs-green-dark); }
.bs-note { font-size: 13px; color: var(--bs-muted); margin: 18px 0 0; }

/* „Mehr anzeigen“ */
.bs-paging { display: flex; justify-content: center; margin-top: 18px; }
.bs-load-more {
  font: inherit; font-size: 15px; color: var(--bs-green-dark); cursor: pointer;
  min-height: 44px; padding: 10px 22px; background: #fff;
  border: 1.5px solid var(--bs-green); border-radius: var(--bs-radius);
}
.bs-load-more:hover { background: var(--bs-green); color: #fff; }
.bs-load-more:focus-visible { outline: 2px solid var(--bs-green); outline-offset: 2px; }
.bs--view-karte .bs-paging { display: none !important; }

/* ── Kartenansicht ────────────────────────────────────────────────── */
.bs-map { position: relative; }
.bs-map__canvas {
  height: clamp(460px, calc(100vh - 170px), 780px);
  border: 1px solid var(--bs-line); border-radius: var(--bs-radius); background: #e8e8e8;
  z-index: 0;
}
.bs-map__loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; color: var(--bs-muted); pointer-events: none; }
.bs--view-karte .bs-results,
.bs--view-karte .bs-empty { display: none !important; }

.bs-pin {
  display: inline-block; width: 16px; height: 16px; box-sizing: border-box; border-radius: 50%;
  background: #5f6b73; border: 2.5px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.35), 0 1px 4px rgba(0,0,0,.35);
  transition: transform .12s;
}
.bs-pin--open { background: var(--bs-green); }
.bs-pin--soon, .bs-pin--later { background: #d18b00; }
.bs-pin--week { background: var(--bs-blue); }

/* Legende unter der Karte */
.bs-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 10px 0 0; padding: 0; font-size: 13px; color: var(--bs-muted); }
.bs-legend li { display: inline-flex; align-items: center; gap: 7px; }
.bs-legend .bs-pin { width: 14px; height: 14px; border-width: 2px; }
.bs-pin.is-selected { transform: scale(1.5); box-shadow: 0 0 0 3px rgba(0,0,0,.75), 0 1px 4px rgba(0,0,0,.35); }

.bs-cluster {
  display: flex; align-items: center; justify-content: center; box-sizing: border-box;
  border-radius: 50%; color: #fff; font: 700 13px/1 "Futura Std", sans-serif;
  background: rgba(0, 130, 7, .9); border: 3px solid rgba(255,255,255,.9); box-shadow: 0 1px 6px rgba(0,0,0,.3);
}

/* Popup (Desktop) und Bottom-Sheet (mobil) teilen sich das Markup */
.bs-pop { font-family: "Futura Std", sans-serif; color: var(--bs-text); width: 260px; }
.bs-pop__img { display: block; width: 100%; height: 120px; object-fit: cover; background: #f2f2f2; }
.bs-pop__img--logo { object-fit: contain; background: #fff; padding: 10px; box-sizing: border-box; }
.bs-pop__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 5px; }
.bs-pop__name { font-size: 16px; line-height: 1.25; margin: 0; }
.bs-pop__name a { color: inherit; text-decoration: none; }
.bs-pop__name a:hover { text-decoration: underline; }
.bs-pop .bs-card__actions { margin-top: 4px; }
.bs-pop .bs-action--details { display: inline-flex; }
.bs-pop .bs-action:not(.bs-action--details) span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.bs-pop p { margin: 0; }
.bs-pop .bs-card__badges { margin: 1px 0; }
.bs-pop a { color: inherit; }
.bs-pop .bs-card__actions { gap: 6px; }
.bs-pop .bs-action { flex: 1 1 0; justify-content: center; }
.bs-pop .bs-action--details { flex: 1 1 100%; color: #fff; }
.bs .leaflet-popup-content-wrapper { border-radius: var(--bs-radius); padding: 0; overflow: hidden; }
.bs .leaflet-popup-content p { margin: 0; }
.bs .leaflet-popup-content { margin: 0; width: auto !important; }
.bs .leaflet-container a.leaflet-popup-close-button {
  top: 6px; right: 6px; width: 26px; height: 26px; line-height: 24px; font-size: 20px;
  color: var(--bs-text); background: rgba(255,255,255,.95); border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.bs .leaflet-container { font-family: "Futura Std", sans-serif; }

.bs-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100;
  background: #fff; border-radius: 12px 12px 0 0; box-shadow: 0 -4px 24px rgba(0,0,0,.18);
  max-height: 70vh; overflow-y: auto;
  padding-bottom: env(safe-area-inset-bottom);
}
.bs-sheet .bs-pop { width: auto; }
.bs-sheet .bs-pop__img { height: 150px; border-radius: 12px 12px 0 0; }
.bs-sheet__close {
  position: absolute; right: 10px; top: 10px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.95); box-shadow: 0 1px 4px rgba(0,0,0,.25);
  font-size: 22px; line-height: 1; cursor: pointer; color: var(--bs-text);
}

/* Schwebender Umschalter Liste/Karte (mobil) */
.bs-float {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 1050;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border: 0; border-radius: 999px;
  font: 700 15px/1 "Futura Std", sans-serif; color: #fff; background: #1a1a1a;
  box-shadow: 0 4px 16px rgba(0,0,0,.3); cursor: pointer;
}
.bs-sheet:not([hidden]) ~ .bs-float,
.bs--sheet-open .bs-float { display: none; }

/* ── Orte ─────────────────────────────────────────────────────────── */
.bs-orte { padding-top: 40px !important; padding-bottom: 40px !important; }
.bs-orte h2 { font-size: 22px; margin-bottom: 14px; }
.bs-orte__list { list-style: none; margin: 0; padding: 0; columns: 4 180px; column-gap: 24px; }
.bs-orte__list li { break-inside: avoid; padding: 5px 0; font-size: 15px; }
.bs-orte__list a { color: var(--bs-text); }
.bs-orte__list a:hover { color: var(--bs-green-dark); }
.bs-orte__list span { color: #999; font-size: 13px; }

/* ── Desktop: Filterspalte ────────────────────────────────────────── */
@media (min-width: 1024px) {
  .bs-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; align-items: start; }
  .bs-filters {
    position: sticky; top: 84px; /* unter dem fixen Seitenkopf */
    max-height: calc(100vh - 100px); overflow-y: auto; overscroll-behavior: contain;
    background: var(--bs-panel); border-radius: var(--bs-radius); padding: 16px;
  }
  .bs-float { display: none !important; }

  /* Filter als kompakte Listen: Checkboxen (mehrfach), Radios (einfach), Trefferzahl rechts */
  .bs-controls { gap: 18px; }
  .bs-chips { gap: 4px; }
  .bs-chips__label { margin-bottom: 2px; }
  .bs-chips__scroll { flex-direction: column; flex-wrap: nowrap; gap: 0; }
  .bs-chips .bs-chip {
    width: 100%; min-height: 30px; padding: 4px 6px; margin: 0 -6px; width: calc(100% + 12px);
    gap: 10px; justify-content: flex-start; white-space: normal;
    font-size: 14px; background: none; border: 0; border-radius: 2px;
  }
  .bs-chips .bs-chip:hover { background: #e9e9e9; color: var(--bs-text); }
  .bs-chips .bs-chip::before {
    content: ''; flex: 0 0 16px; width: 16px; height: 16px; margin: 0; box-sizing: border-box;
    border: 1.5px solid #8a8a8a; border-radius: 3px; background: #fff; transform: none;
  }
  .bs-chips[data-multi="0"] .bs-chip::before { border-radius: 50%; }
  .bs-chips .bs-chip[aria-pressed="true"] { background: none; color: var(--bs-text); font-weight: 700; }
  .bs-chips .bs-chip[aria-pressed="true"]:hover { background: #e9e9e9; }
  .bs-chips .bs-chip[aria-pressed="true"]::before {
    border-color: var(--bs-green); background: var(--bs-green) no-repeat center / 11px
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
  .bs-chips[data-multi="0"] .bs-chip[aria-pressed="true"]::before { background: #fff; box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 8px var(--bs-green); }
  .bs-chip__count { margin-left: auto; font-size: 13px; font-weight: 400; color: #8a8a8a; }
  .bs-chip.is-empty { opacity: .45; }

  /* Geöffnet: Segmentschalter in einer Zeile */
  .bs-chips--offen .bs-chips__scroll { flex-direction: row; border: 1px solid #bdbdbd; border-radius: var(--bs-radius); overflow: hidden; background: #fff; }
  .bs-chips--offen .bs-chip { flex: 1 1 auto; width: auto; margin: 0; padding: 7px 4px; justify-content: center; font-size: 13px; border-radius: 0; }
  .bs-chips--offen .bs-chip + .bs-chip { border-left: 1px solid #bdbdbd; }
  .bs-chips--offen .bs-chip::before { content: none; }
  .bs-chips--offen .bs-chip[aria-pressed="true"] { background: var(--bs-green); color: #fff; font-weight: 700; }
  .bs-chips--offen .bs-chip[aria-pressed="true"]:hover { background: var(--bs-green-dark); }
  .bs-chips--offen .bs-chip__count { display: none; }

  /* Ort (gesetzter Filter) bleibt ein Chip */
  .bs-chips--ort .bs-chip,
  .bs-chips--ort .bs-chip[aria-pressed="true"] { align-self: flex-start; width: auto; max-width: 100%; margin: 0; padding: 6px 12px; border: 1px solid var(--bs-green); border-radius: 999px; background: var(--bs-green); color: #fff; }
  .bs-chips--ort .bs-chip::before { content: none; }
  .bs-chips--ort .bs-chip:hover,
  .bs-chips--ort .bs-chip[aria-pressed="true"]:hover { background: var(--bs-green-dark); color: #fff; }

  .bs-chips__all { padding: 4px 0 0; font-size: 13px; }
  .bs-chips.is-expanded .bs-chips__scroll { max-height: 340px; overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; }
  .bs-chips.is-expanded .bs-chips__filter { position: sticky; top: 0; z-index: 1; }
  .bs-chips.is-expanded .bs-chips__all { position: sticky; bottom: 0; background: var(--bs-panel); width: 100%; text-align: left; }
}

/* Unter 1024 px: Chips; „Alle“ und Trefferzahlen ausblenden (aktiven Chip antippen = abwählen) */
@media (max-width: 1023px) {
  .bs-chip--all, .bs-chip__count { display: none !important; }
  .bs-chip.is-empty { opacity: .5; }
}
.bs-chip__x { font-size: 16px; line-height: 1; }
.bs-chips--ort .bs-chip[aria-pressed="true"]::before { content: none; }

/* Brotkrümel auf Landingpages */
.bs-crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--bs-muted); margin-bottom: 8px; }
.bs-crumbs a { color: var(--bs-green-dark); }
.bs-orte__list a[aria-current] { font-weight: 700; color: var(--bs-green-dark); }
.bs-orte__list--regions { columns: 3 180px; margin-bottom: 30px; }
.bs-orte h2 + .bs-orte__list { margin-top: 0; }

/* ── Tablet & mobil: Filter oben im grauen Bereich ────────────────── */
@media (max-width: 1023px) {
  .bs-hero { padding-bottom: 12px !important; }
  .bs-layout { padding-top: 0 !important; }
  .bs-filters { background: var(--bs-bg); margin: 0 -20px 18px; padding: 4px 20px 18px; }
  .bs-search { max-width: 480px; }
  .bs-chips { flex-direction: row; align-items: center; gap: 12px; }
  .bs-chips__label { flex: 0 0 110px; }
  .bs-chips[data-collapsible] { flex-wrap: wrap; }
  .bs-chips__toggle { width: auto; justify-content: flex-start; }
  .bs-chips.is-expanded .bs-chips__scroll { flex-wrap: wrap; }
}

@media (max-width: 900px) {
  .bs-results--liste .bs-card { grid-template-columns: 160px minmax(0, 1fr); }
}

/* ── Mobil ────────────────────────────────────────────────────────── */
@media (max-width: 680px) {
  .icon-row { flex-wrap: wrap; row-gap: 20px; min-height: 130px; }
  .icon-row a.mobile_1,
  .icon-row a.mobile_2,
  .icon-row a.mobile_3,
  .icon-row a.mobile_4 { flex: 0 0 50%; display: flex; justify-content: center; align-items: center; }
  .icon-row a.mobile_1 { order: -1; }
  .icon-row a.mobile_4 { order: 3; }
  .icon-row a.mobile_1 img,
  .icon-row a.mobile_2 img,
  .icon-row a.mobile_3 img,
  .icon-row a.mobile_4 img { height: 30px !important; width: auto !important; }

  .bs-hero { padding: 20px 0 10px !important; }
  .bs-hero h1 { font-size: 21px; }
  .bs-hero__sub { font-size: 14px; }

  .bs-search { max-width: none; }
  .bs-chips { flex-direction: column; align-items: stretch; gap: 6px; }
  .bs-chips__label { flex: none; }
  .bs-chips__scroll {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin: 0 -20px; padding: 0 20px 2px; scroll-padding: 0 20px;
  }
  .bs-chips__scroll::-webkit-scrollbar { display: none; }
  .bs-chips.is-expanded .bs-chips__scroll { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
  .bs-chips__all { padding: 6px 4px; }

  .bs--js .bs-more { display: inline-flex; }
  .bs--js .bs-more-panel:not([data-open]) { display: none; }

  .bs-toolbar__right { width: 100%; margin-left: 0; justify-content: space-between; }
  .bs-view span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .bs-view { padding: 8px 12px; }

  .bs-map__canvas { height: calc(100svh - 140px); min-height: 380px; margin: 0 -20px; border-left: 0; border-right: 0; border-radius: 0; }

  /* Raster mobil: volle Karte */
  .bs-results--raster { grid-template-columns: 1fr; }
  .bs-card__name { font-size: 17px; }
  .bs-results--liste .bs-week li small { display: none; }
  .bs-results--raster .bs-week li { padding: 4px 1px; }
  .bs-results--raster .bs-week li small { font-size: 9.5px; letter-spacing: -.01em; }
  .bs-results--raster .bs-action:not(.bs-action--details) { flex: 1 1 0; justify-content: center; padding: 6px 8px; }

  /* Liste mobil: Akkordeon – zu: Name, Ort, Status; auf: Bild, Woche, Merkmale, Aktionen */
  .bs-results--liste { gap: 8px; }
  .bs--js .bs-results--liste .bs-card { display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; padding-bottom: 12px; }
  .bs--js .bs-results--liste .bs-card__body { display: contents; }
  .bs--js .bs-results--liste .bs-card__name { order: 1; padding: 12px 48px 0 14px; font-size: 16px; }
  .bs--js .bs-results--liste .bs-card__place { order: 2; padding: 2px 48px 0 14px; font-size: 13px; }
  .bs--js .bs-results--liste .bs-card__status { order: 3; padding: 4px 14px 0; font-size: 13px; margin: 0; }
  .bs--js .bs-results--liste .bs-card__media { order: 4; display: none; }
  .bs--js .bs-results--liste .bs-card__badges { order: 5; display: none; margin: 0 14px 8px; }
  .bs--js .bs-results--liste .bs-week { order: 6; display: none; margin: 0 14px 8px; }
  .bs--js .bs-results--liste .bs-card__tags { order: 7; display: none; margin: 0 14px 8px; }
  .bs--js .bs-results--liste .bs-card__actions { order: 8; display: none; margin: 0 14px 2px; }
  .bs--js .bs-results--liste .bs-card__link::after { content: none; }
  .bs--js .bs-results--liste .bs-card__toggle {
    display: block; position: absolute; inset: 0; z-index: 2;
    width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; color: var(--bs-muted);
    -webkit-tap-highlight-color: transparent;
  }
  .bs--js .bs-results--liste .bs-card__toggle .bs-icon { position: absolute; right: 14px; top: 16px; width: 20px; height: 20px; transition: transform .15s; }
  .bs--js .bs-results--liste .bs-card__toggle:focus-visible { outline: 2px solid var(--bs-green); outline-offset: -2px; }

  .bs--js .bs-results--liste .bs-card.is-open .bs-card__toggle .bs-icon { transform: rotate(180deg); }
  .bs--js .bs-results--liste .bs-card.is-open .bs-card__media { display: block; width: 100%; min-width: 0; height: auto; min-height: 0; aspect-ratio: 16 / 9; margin: 12px 0 10px; border: 0; }
  .bs--js .bs-results--liste .bs-card.is-open .bs-card__media--logo { display: flex; aspect-ratio: 3 / 1; }
  .bs--js .bs-results--liste .bs-card.is-open .bs-card__award { top: 6px; }
  .bs--js .bs-results--liste .bs-card.is-open .bs-week,
  .bs--js .bs-results--liste .bs-card.is-open .bs-card__badges,
  .bs--js .bs-results--liste .bs-card.is-open .bs-card__tags,
  .bs--js .bs-results--liste .bs-card.is-open .bs-card__actions { display: flex; }
  .bs--js .bs-results--liste .bs-card.is-open .bs-action--details { display: inline-flex; flex: 1 1 100%; justify-content: center; }
  .bs--js .bs-results--liste .bs-action:not(.bs-action--details) { flex: 1 1 0; justify-content: center; }

  .bs-orte__list { columns: 2; }
  .bs-note { margin-bottom: 70px; } /* Platz für den schwebenden Umschalter */
  .bs-load-more { width: 100%; }
}



/* Leaflet färbt Links im Popup blau – zurücksetzen */
.bs .leaflet-container .bs-pop a { color: var(--bs-text); }
.bs .leaflet-container .bs-pop a.bs-action--details { color: #fff; }

/* ══ Winzersuche Übersicht (template-winzersuche-start-2026.php) ═══ */
.ws-start__form { display: flex; flex-wrap: wrap; gap: 10px; max-width: 780px; margin: 20px 0 0; text-align: left; }
.ws-start__q { flex: 1 1 280px; }
.ws-start__region select {
  font: inherit; font-size: 15px; color: var(--bs-text); min-height: 46px;
  padding: 10px 32px 10px 12px; border: 1px solid #bdbdbd; border-radius: var(--bs-radius); background-color: #fff;
}
.ws-start__submit {
  font: inherit; font-size: 15px; font-weight: 700; color: #fff; cursor: pointer;
  min-height: 46px; padding: 0 24px; border: 0; border-radius: var(--bs-radius); background: var(--bs-green);
}
.ws-start__submit:hover { background: var(--bs-green-dark); }
.ws-start__submit:focus-visible { outline: 2px solid var(--bs-green); outline-offset: 2px; }
.ws-start__chips {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  list-style: none; max-width: 780px; margin: 14px 0 0; padding: 0;
}
.ws-start__chips li { margin: 0; }
.ws-start__n { font-size: 12px; color: var(--bs-muted); }
.ws-start__all { font-size: 14px; color: var(--bs-green-dark); margin-left: 6px; white-space: nowrap; }
.ws-start__winzer { font-size: 14px; color: var(--bs-muted); margin: 4px 0 0; }

@media (max-width: 680px) {
  .ws-start__form > * { flex: 1 1 100%; }
  .ws-start__region select { width: 100%; }
  .ws-start__chips {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none;
    margin: 12px -20px 0; padding: 0 20px 2px;
  }
  .ws-start__chips::-webkit-scrollbar { display: none; }
}

/* Mit Ort-Filter: Betriebe aus der Umgebung */
.bs-near { margin-top: 28px; }
.bs-near__title { font-size: 20px; margin: 0 0 4px; }
.bs-near__note { font-size: 14px; color: var(--bs-muted); margin: 0 0 14px; }
.bs--view-karte .bs-near { display: none !important; }

/* Handy: Such-Logos nicht unter dem fixen Seitenkopf (Logo „Wein Steiermark“) und kompakter */
@media (max-width: 680px) {
  .bs-icon-row,
  .ws-start .icon-row { min-height: 0; row-gap: 14px; padding-top: 34px; padding-bottom: 14px; }
}
