/* FINK Brot Karte – Struktur-Styling.
   Bewusst zurückhaltend: Schrift erbt vom Projekt, Farben über Variablen.

   --fb-map-akzent       Marker, Nummern, Hauptknopf (kommt aus config 'akzent')
   --fb-map-rahmen       Rahmen der Karte
   --fb-map-radius       Eckenradius
   --fb-map-hintergrund  Fläche, solange nichts geladen ist
   --fb-map-knopf        Knopf „Interaktive Karte laden“
   --fb-map-text-leise   Nebentexte (Kategorie, Entfernung)

   Kärtchen und Farben aus der Projektdatei (projekt.css; ohne Paket rechnet das Plugin
   Akzent-Text und Link aus dem Akzent nach, sonst gilt der Standard hier):
   --fb-map-akzent-text        Schrift auf dem Akzent (Knöpfe, Nummern, gewählte Leiste)
   --fb-map-link               Links in der Liste (≥ 4,5:1 auf Weiß)
   --fb-map-marker-rand        Rand um die Nadel (≥ 3:1 gegen die Kartenflächen)
   --fb-map-haupt-hintergrund  Knopf „Route planen“: Fläche …
   --fb-map-haupt-text         … Schrift …
   --fb-map-haupt-rahmen       … Rand (Knopfstil gefüllt/Kontur/Text)
   --fb-map-kaertchen-radius   Ecken der Knöpfe; Kärtchen +4 px, Blatt +8 px
   --fb-map-kaertchen-schrift  Schrift der Kärtchen (ohne: Schrift der Website)
*/

.fb-map,
.fb-map__betriebe,
.fb-map__orte {
  --_akzent: var(--fb-map-akzent, #33404d);
  --_akzent-text: var(--fb-map-akzent-text, #fff);
  --_link: var(--fb-map-link, var(--_akzent));
  --_haupt-hg: var(--fb-map-haupt-hintergrund, var(--_akzent));
  --_haupt-text: var(--fb-map-haupt-text, var(--_akzent-text));
  --_haupt-rahmen: var(--fb-map-haupt-rahmen, var(--_akzent));
  --_k-radius: var(--fb-map-kaertchen-radius, 8px);
  /* Barrierefreiheit (WCAG 1.4.11 / 2.4.11): Die Markenfarbe darf hell sein (z. B. Snow-Experts-Grün #85b312,
     nur 2,5:1 auf Weiß) und bleibt Fläche/Füllung. Fokusringe und Zustandsränder brauchen ≥ 3:1 – sie nehmen
     die geprüften abgeleiteten Farben: Link (≥ 4,5:1 auf Weiß), Marker-Rand (≥ 3:1 auf allen Kartenflächen). */
  --_fokus: var(--_link);
  --_kontur: var(--fb-map-marker-rand, var(--_link));
}
.fb-map {
  --_rahmen: var(--fb-map-rahmen, #d5dbe0);
  --_radius: var(--fb-map-radius, 8px);
  --_leise: var(--fb-map-text-leise, #5f6b76);
  --_kreuz: 32px;   /* Platz rechts für das Schließen-Kreuz (Popup 32 px, Blatt 44 px) */
  margin: 0;
}

/* --- Grundschutz gegen Theme-CSS (Paket D2) ---------------------------- */
/* Karte, Standort-Leiste und Liste stehen mitten in einer fremden Seite, und deren Theme wirkt hinein:
   button { margin … }, * { box-sizing: content-box }, .text p { margin … }, Regeln für .maplibregl-*.
   Früher hielten sechs !important einzelne Abstände fest. Jetzt tragen die Regeln, die gegen das Theme
   bestehen müssen, eine Wurzel davor (.fb-map, .fb-map__orte, .fb-map__betriebe) und schlagen so Element-
   Regeln und Inhaltsklassen wie „.text p“ (Spezifität 0,1,1) – auch wenn das Theme erst nach karte.css kommt.
   Bewusst KEIN @layer: Eine Regel in einer Ebene verliert gegen JEDE Regel ohne Ebene. Themes stehen fast nie
   in einer Ebene – „button { … }“ oder „p { margin … }“ des Themes schlüge dann jeden Knopf und jede Zeile. */

/* Knöpfe (alle tragen eine Klasse – [class] hebt auf 0,2,1): kein Außenabstand, Box wie der Browser-Standard
   für Knöpfe, auch nach „button { all: unset }“ oder „* { box-sizing: content-box }“ */
:is(.fb-map, .fb-map__orte, .fb-map__betriebe) button[class] { margin: 0; box-sizing: border-box; }
/* MapLibre-Ecken: Abstände wie in maplibre-gl.css – gegen Theme-Regeln für .maplibregl-* (Seite mit eigener Karte) */
.fb-map .maplibregl-ctrl-top-left .maplibregl-ctrl { margin: 10px 0 0 10px; }
.fb-map .maplibregl-ctrl-top-right .maplibregl-ctrl { margin: 10px 10px 0 0; }
.fb-map .maplibregl-ctrl-bottom-left .maplibregl-ctrl { margin: 0 0 10px 10px; }

/* --- Standort-Leiste über der Karte ---------------------------------- */

.fb-map__betriebe {
  position: relative;   /* Bezug für offsetLeft beim Mitscrollen */
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px;
}
/* Handy: eine Wischzeile statt drei umgebrochener Reihen. Läuft sie über, zeigt ein Verlauf am
   Rand „es geht weiter“ – Klassen setzt karte.js (beobachteLeiste), je nach Scrollstand. */
@media (max-width: 640px) {
  .fb-map__betriebe {
    flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x proximity; scrollbar-width: none;
    padding: 2px 40px 2px 2px; margin-bottom: 10px;
  }
  .fb-map__betriebe--rechts { mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); }
  .fb-map__betriebe--links { mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent); }
  .fb-map__betriebe--links.fb-map__betriebe--rechts {
    mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 56px), transparent);
  }
  .fb-map__betriebe::-webkit-scrollbar { display: none; }
  .fb-map__betrieb { flex: none; scroll-snap-align: start; }
}
.fb-map__betrieb {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px 0 8px; box-sizing: border-box;
  font: inherit; font-size: 14px; font-weight: 600; line-height: 20px;
  color: #1f2933; background: #fff;
  border: 1px solid var(--fb-map-rahmen, #d5dbe0); border-radius: 999px; cursor: pointer;
}
.fb-map__betrieb .fb-map__nr { width: 24px; height: 24px; font-size: 12px; }
.fb-map__betrieb { transition: border-color 0.15s, background-color 0.15s; }
.fb-map__betrieb:hover { border-color: var(--_kontur); }
.fb-map__betrieb[aria-pressed="true"] { color: var(--_akzent-text); background: var(--_akzent); border-color: var(--_kontur); }
.fb-map__betrieb[aria-pressed="true"] .fb-map__nr { background: var(--_akzent-text); color: var(--_akzent); }
.fb-map__betrieb:focus-visible { outline: 3px solid var(--_fokus); outline-offset: 2px; }

/* --- Bühne ------------------------------------------------------------ */

.fb-map__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--_rahmen);
  border-radius: var(--_radius);
  background: var(--fb-map-hintergrund, #eaf0f3);
}
.fb-map--16-9 .fb-map__stage { aspect-ratio: 16 / 9; }
.fb-map--4-3  .fb-map__stage { aspect-ratio: 4 / 3; }
@media (min-width: 960px) { .fb-map--auto .fb-map__stage { aspect-ratio: 16 / 9; } }
/* Handy: Aktive Karte wird höher, damit Karte UND Infoblatt Platz haben.
   Ändert sich erst nach dem Antippen – kein unerwartetes Springen beim Laden. */
@media (max-width: 640px) {
  .fb-map--aktiv .fb-map__stage { aspect-ratio: auto; height: min(70vh, 560px); min-height: 320px; }
}
.fb-map__stage:fullscreen { border: 0; border-radius: 0; }

.fb-map__still,
.fb-map__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* gegen „img { height: auto }“ / „.text img { … }“ des Themes – das Standbild füllt die Bühne */
.fb-map img.fb-map__still { width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; }

/* Noch kein Standbild: ruhige Fläche mit feinem Raster statt leerer Box */
.fb-map__platzhalter {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--_rahmen);
  background:
    linear-gradient(rgb(255 255 255 / 0.5) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgb(255 255 255 / 0.5) 1px, transparent 1px) 0 0 / 32px 32px;
}
.fb-map__platzhalter .fb-map__ui { width: 40px; height: 40px; margin-bottom: 48px; }

.fb-map__activate {
  position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 2;
  padding: 0.6em 1.2em; max-width: calc(100% - 32px); white-space: nowrap;
  font: inherit; font-size: 0.875rem; line-height: 1.2; font-weight: 600;
  color: #fff; background: var(--fb-map-knopf, #222);
  border: 0; border-radius: 999px; cursor: pointer;
  box-shadow: 0 2px 10px rgb(0 0 0 / 0.25);
}
.fb-map__activate:hover { background: var(--_akzent); color: var(--_akzent-text); }
.fb-map__activate:focus-visible { outline: 3px solid var(--_fokus); outline-offset: 3px; }
.fb-map__activate[disabled] { cursor: progress; opacity: 0.8; }
/* Laden (Paket B): Der Knopf sagt „Karte lädt …“ (karte.js, aria-busy). Die halb aufgebaute Karte bleibt
   unsichtbar, bis sie steht – bis dahin sieht man das Standbild, nie einen leeren Rahmen. */
.fb-map--lade .fb-map__canvas { visibility: hidden; }
/* Fehlerfall: Meldung im Rahmen über dem Standbild; der Knopf darunter bleibt für einen neuen Versuch */
.fb-map .fb-map__fehlermeldung {
  position: absolute; left: 50%; bottom: calc(1rem + 3em); transform: translateX(-50%); z-index: 2;
  width: max-content; max-width: calc(100% - 32px); margin: 0; padding: 8px 14px; box-sizing: border-box;
  font-size: 0.875rem; line-height: 1.4; text-align: center;
  color: #7a2e0e; background: #fff4ed; border: 1px solid #f3c4a8; border-radius: 8px;
  box-shadow: 0 2px 10px rgb(0 0 0 / 0.15);
}

/* --- Marker ----------------------------------------------------------- */

.fb-map__pin {
  display: block; padding: 0; border: 0; background: none; line-height: 0; cursor: pointer;
  filter: drop-shadow(0 2px 3px rgb(0 0 0 / 0.3));
}
/* Nur das Innere skalieren: MapLibre positioniert den Marker selbst per transform */
.fb-map__pin svg { transition: transform 0.15s; transform-origin: 50% 100%; overflow: visible; }
/* Dunkler Rand um die Nadel (Kind-Element im SVG, nie das Marker-Element selbst) */
.fb-map__pin-rand { stroke: var(--fb-map-marker-rand, #1f2933); }
.fb-map__pin:hover svg, .fb-map__pin:focus-visible svg { transform: scale(1.1); }
.maplibregl-marker.fb-map__pin { z-index: 3; }   /* Hauptorte über der Umgebung */
.maplibregl-marker.fb-map__poi { z-index: 2; }
.maplibregl-marker.fb-map__buendel { z-index: 4; }   /* Bündel über Nadeln: sonst unter einer Nadel nicht erreichbar */
.maplibregl-marker.fb-map__poi--vorn { z-index: 4; }  /* einzelnes Symbol, das eine Nadel berührt (ohne Bündel in der Nähe) */
.fb-map .maplibregl-popup { z-index: 6; }        /* Infokarte über allen Markern und über der Legende (5) */

.fb-map__poi {
  display: grid; place-items: center;
  width: 26px; height: 26px; padding: 0;
  border: 2px solid #fff; border-radius: 50%;
  background: var(--farbe, #495057); cursor: pointer;
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.35);
}
.fb-map__poi svg { transition: transform 0.15s; }
.fb-map__poi:hover svg, .fb-map__poi:focus-visible svg { transform: scale(1.2); }
.fb-map__poi[hidden] { display: none; }
.fb-map__poi.fb-map__poi--gebuendelt { visibility: hidden; pointer-events: none; }

/* Bündel: weißer Kreis mit dunkler Zahl, Ring aus den Kategoriefarben (--ring, per JS) –
   bewusst anders als die grünen Nadeln mit Nummer */
.fb-map__buendel {
  display: grid; place-items: center; width: 32px; height: 32px; padding: 0;
  font: 700 13px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #1f2933;
  background: radial-gradient(circle, #fff 0 10px, transparent 10.5px), var(--ring, #1f2933);
  border: 2px solid #fff; border-radius: 50%;
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.35); cursor: pointer;
}
/* KEIN transform am Marker selbst – MapLibre positioniert ihn darüber */
.fb-map__buendel:hover { box-shadow: 0 0 0 3px rgb(255 255 255 / 0.6), 0 2px 8px rgb(0 0 0 / 0.4); }
.fb-map__buendel::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; }   /* 44 px Tippfläche */
.fb-map__buendel:focus-visible { outline: 3px solid var(--_fokus); outline-offset: 2px; }
/* Tippfläche 44 px, auch wenn das Symbol nur 26 px groß ist. Bezugsrahmen für ::before
   ist der Marker selbst (position: absolute von MapLibre) – NIE position: relative setzen,
   sonst rutscht jedes Symbol um die Höhe der vorherigen nach unten (Fehler in 0.7.0). */
.fb-map__poi::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; }
/* Schutz: MapLibre positioniert Marker per transform ab 0/0 – darf kein CSS überschreiben */
.fb-map .maplibregl-marker { position: absolute; top: 0; left: 0; }

/* Kompass nur, wenn gedreht oder geneigt (karte.js setzt .fb-map--gedreht; Paket B) – sonst nur Rauschen */
.fb-map:not(.fb-map--gedreht) .maplibregl-ctrl-compass { display: none; }
/* „Ausschnitt zurücksetzen“ (Lucide rotate-ccw) im Stil der MapLibre-Knöpfe */
.fb-map .maplibregl-ctrl-group .fb-map__zuruecksetzen { display: grid; place-items: center; color: #333; }

.fb-map__pin:focus-visible,
.fb-map__poi:focus-visible,
.fb-map .maplibregl-ctrl-group button:focus-visible,
.fb-map .maplibregl-canvas:focus-visible {
  outline: 3px solid var(--_fokus); outline-offset: 2px;
}

/* --- Filtergruppe „In der Nähe“ (oben rechts; am Handy Wischzeile über der Karte) --- */
/* Eine Gruppe: Beschriftung, Filterchips mit Zähler, Schalter „Wege“/„3D“. Zustand über aria-pressed:
   an = Akzent gefüllt, aus = weiß mit Rand (kein Durchstreichen mehr). */

.fb-map .maplibregl-ctrl-top-right { max-width: calc(100% - 64px); }   /* links bleiben die Knöpfe frei */
/* Bedienelemente stehen im DOM vor den Markern (Tab-Reihenfolge, karte.js). Stapelung: MapLibres Ecken haben
   z-index 2 – gleich hoch wie Umgebungssymbole (2) und unter Nadeln/Bündeln (3/4). Weil die Marker im DOM danach
   kommen, lagen Geschäftssymbole ÜBER Zoom, Zurücksetzen und Filterchips und fingen deren Klicks ab (Nachtest 30.9.).
   Stapelung von unten nach oben: Marker 2–4 · Legende (Ecke unten links) 5 · Infokarte 6 · obere Ecken 7 ·
   Handy-Blatt 8. Die Quellenangabe unten rechts bleibt bei 2. (0.9.3: Symbole lagen auch über der Legende.) */
.fb-map .maplibregl-ctrl-top-left, .fb-map .maplibregl-ctrl-top-right { z-index: 7; }
.fb-map .maplibregl-ctrl-bottom-left { z-index: 5; }
.fb-map__leiste { pointer-events: auto; }
.fb-map__leiste[hidden], .fb-map__leiste:empty { display: none; }
.fb-map__filter {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px;
  padding: 4px; border-radius: 20px;
  background: rgb(255 255 255 / 0.95); box-shadow: 0 1px 4px rgb(0 0 0 / 0.18);
}
.fb-map__filter-titel {
  padding: 0 4px 0 8px;
  font-size: 11px; font-weight: 700; line-height: 16px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--_leise);
}
.fb-map__chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px; box-sizing: border-box;
  font: inherit; font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap;
  color: #3b4652; background: #fff;
  border: 1px solid #c4ccd3; border-radius: 999px;
  cursor: pointer;
}
/* doppelte Klasse: MapLibre setzt für .maplibregl-ctrl button:hover eine eigene Hintergrundfarbe */
.fb-map .fb-map__filter .fb-map__chip:hover { background: #f4f6f8; border-color: #9aa5b1; }
.fb-map .fb-map__filter .fb-map__chip[aria-pressed="true"] { color: var(--_akzent-text); background: var(--_akzent); border-color: var(--_kontur); }
.fb-map .fb-map__filter .fb-map__chip[aria-pressed="true"]:hover { box-shadow: 0 0 0 2px var(--_kontur); }   /* kein brightness: Kontrast bleibt */
.fb-map__chip:focus-visible { outline: 3px solid var(--_fokus); outline-offset: 2px; }
.fb-map__zahl {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box;
  border-radius: 9px; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums;
  background: #eef1f3; color: #3b4652;
}
.fb-map__chip[aria-pressed="true"] .fb-map__zahl { background: rgb(255 255 255 / 0.25); color: inherit; }
.fb-map .fb-map__filter .fb-map__chip--schalter:first-of-type { margin-left: 4px; }

/* Handy / schmale Karte: Wischzeile zwischen Standort-Leiste und Karte (karte.js, wie beobachteLeiste) */
.fb-map__filter--zeile {
  flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; scrollbar-width: none;
  margin: 0 0 10px; padding: 2px 40px 2px 2px; border-radius: 0; background: none; box-shadow: none;
}
.fb-map__filter--zeile::-webkit-scrollbar { display: none; }
.fb-map__filter--zeile > * { flex: none; scroll-snap-align: start; }
.fb-map__filter--zeile .fb-map__filter-titel { padding-left: 0; }
.fb-map__filter--zeile .fb-map__chip { height: 40px; padding: 0 14px; font-size: 14px; }
.fb-map__filter--zeile.fb-map__filter--rechts { mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); }
.fb-map__filter--zeile.fb-map__filter--links { mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent); }
.fb-map__filter--zeile.fb-map__filter--links.fb-map__filter--rechts {
  mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 56px), transparent);
}

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

/* Abstand zum Rand: MapLibre-Ecke unten links (Grundschutz oben) – früher !important */
.fb-map__legende {
  padding: 0.4rem 0.6rem; border: 0; border-radius: 8px;
  background: rgb(255 255 255 / 0.95); box-shadow: 0 1px 4px rgb(0 0 0 / 0.15);
  font-size: 0.75rem; line-height: 1.3; color: #1f2933;
  pointer-events: auto;
}
/* Milchglas (0.9.3): Symbole hinter der Legende bleiben als Farbfleck erkennbar. 80 % Weiß + 8 px Unschärfe –
   der Text (#1f2933) hat darauf auch über einem roten Symbol noch > 9:1 (WCAG 1.4.3 verlangt 4,5:1).
   Ohne backdrop-filter (alte Browser) und bei „Transparenz reduzieren“ bleibt sie fast deckend. */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .fb-map__legende {
    background: rgb(255 255 255 / 0.8);
    -webkit-backdrop-filter: blur(8px) saturate(1.1); backdrop-filter: blur(8px) saturate(1.1);
  }
}
@media (prefers-reduced-transparency: reduce) {
  .fb-map__legende { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.fb-map .fb-map__legende > summary { cursor: pointer; padding: 0; font-size: inherit; font-weight: 700; list-style: none; }
.fb-map__legende > summary::-webkit-details-marker { display: none; }
.fb-map__legende > summary::after { content: " +"; font-weight: 400; }
.fb-map__legende[open] > summary::after { content: " –"; }
.fb-map .fb-map__legende ul { list-style: none; margin: 0.35rem 0 0; padding: 0; display: grid; gap: 0.2rem; }
.fb-map .fb-map__legende li { display: flex; align-items: center; gap: 0.3rem; margin: 0; white-space: nowrap; }
.fb-map__punkt { display: inline-block; width: 0.7em; height: 0.7em; border-radius: 50%; background: var(--farbe); }

/* --- Infokarte (Popup) ------------------------------------------------ */

/* 300 px fest (Paket B): „Route planen“ + zwei Symbolknöpfe (40 px) in einer Zeile, nichts bricht um */
.fb-map .maplibregl-popup-content {
  width: 300px; box-sizing: border-box;
  padding: 16px; border-radius: calc(var(--_k-radius) + 4px);
  box-shadow: 0 12px 32px rgb(16 24 40 / 0.16), 0 2px 6px rgb(16 24 40 / 0.08);
  font: inherit; font-family: var(--fb-map-kaertchen-schrift, inherit); font-size: 14px; line-height: 20px; color: #1f2933;
}
.fb-map .maplibregl-popup-close-button {
  top: 8px; right: 8px; width: 32px; height: 32px; padding: 0;
  display: grid; place-items: center;
  font-size: 22px; line-height: 1; color: var(--_leise);
  border-radius: 50%; transition: background-color 0.15s;
}
.fb-map .maplibregl-popup-close-button:hover { background: #f1f3f5; color: #1f2933; }
.fb-map .maplibregl-popup-close-button:focus-visible { outline: 3px solid var(--_fokus); outline-offset: 0; }
/* Zeilen im Popup/Blatt ohne Außenabstand (Theme: p, .text p); Name und Hinweis setzen ihren eigenen – eine Stufe spezifischer */
.fb-map .fb-map__karte p { margin: 0; }
.fb-map__karte-kat {
  display: flex; align-items: center; gap: 6px; min-height: 20px; padding-right: 32px;
  font-size: 12px; font-weight: 700; line-height: 16px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--farbe, var(--_leise));
  /* Kategoriefarbe als SCHRIFT (12 px) braucht 4,5:1 – einige Kategorie- und Pistenfarben schaffen auf Weiß nur
     3,0–4,4:1 (Treffpunkt, Gastro, Unterkunft, Übungshang …). Darum im Ton abgedunkelt (72 % Farbe + Schwarz,
     alle Kategorien ≥ 5:1); der Punkt davor behält die Originalfarbe. Ohne color-mix: Zeile darüber. */
  color: color-mix(in srgb, var(--farbe, var(--_leise)) 72%, #000);
}
.fb-map .fb-map__karte .fb-map__karte-name { margin: 4px var(--_kreuz) 8px 0; font-size: 16px; font-weight: 700; line-height: 22px; }
.fb-map__karte .fb-map__aktionen { margin-top: 12px; padding-top: 0; }
.fb-map__karte .fb-map__status { margin: 0 0 8px; }
.fb-map__karte-mass { color: var(--_leise); font-variant-numeric: tabular-nums; }
.fb-map__karte .fb-map__punkt { flex: none; width: 10px; height: 10px; }

/* Kärtchen eines Orts im Popup/Blatt (Vorlage snippets/karte/kaertchen.php, wie in der Liste):
   Kategorie in ihrer Farbe (--farbe aus .fb-map__kat--… in projekt.css), Platz für das Kreuz */
.fb-map__karte .fb-map__ort-kopf { min-height: 20px; padding-right: 32px; }
.fb-map__karte .fb-map__ort-kat { color: var(--farbe, var(--_leise)); color: color-mix(in srgb, var(--farbe, var(--_leise)) 72%, #000); }
.fb-map__karte .fb-map__nr { width: 20px; height: 20px; font-size: 11px; }
.fb-map .fb-map__karte .fb-map__ort-name { margin: 4px var(--_kreuz) 8px 0; font-size: 16px; font-weight: 700; line-height: 22px; }
/* Kompakte Variante: Adresse als eigene leise Zeile (Paket B) */
.fb-map__ort-adresse { margin: 0; font-size: 13px; line-height: 20px; color: var(--_leise); }
.fb-map__karte .fb-map__status + .fb-map__ort-adresse { margin-top: -2px; }

/* --- Infozeilen und Hinweis (Popup und Liste) ---------------------------- */

:is(.fb-map, .fb-map__orte) .fb-map__infos { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
:is(.fb-map, .fb-map__orte) .fb-map__infos li { display: grid; grid-template-columns: 16px 1fr; gap: 8px; align-items: start; margin: 0; }
.fb-map__infos .fb-map__ui { margin-top: 2px; color: var(--_leise); }
.fb-map__infos li + li { color: var(--_leise); }
.fb-map__hinweis {
  display: grid; grid-template-columns: 16px 1fr; gap: 8px; align-items: start;
  padding: 8px 12px; border-radius: 8px;
  background: #fff6e5; color: #7a4a00; font-size: 14px; line-height: 20px;
}
.fb-map__hinweis .fb-map__ui { margin-top: 2px; }
/* Abstand nur im Popup/Blatt (in der Liste trennt der Abstand des Kärtchens) – früher zweimal !important */
.fb-map .fb-map__karte .fb-map__hinweis { margin-top: 8px; }
.fb-map__ui { flex: none; display: block; }

/* --- Schild „Jetzt geöffnet“ ------------------------------------------- */

.fb-map__status {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  min-height: 24px; padding: 0 10px; box-sizing: border-box; border-radius: 12px;
  font-size: 13px; font-weight: 600; line-height: 16px; white-space: nowrap;
  color: #495057; background: #f1f3f5;
}
.fb-map__status::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.fb-map__status[data-art="offen"] { color: #1e6b34; background: #e7f5ea; }
.fb-map__status[data-art="bald"]  { color: #8a4b00; background: #fff1db; }
/* Fallback-Kommentar aus den Öffnungszeiten („Notdienst; siehe Aushang …“) kann lang sein:
   umbrechen statt überlaufen, nie breiter als Blatt/Kärtchen (Punkt bleibt oben in der ersten Zeile) */
.fb-map__status[data-art="hinweis"] {
  white-space: normal; overflow-wrap: anywhere; max-width: 100%;
  align-items: baseline; padding-top: 4px; padding-bottom: 4px; border-radius: 12px;
}
.fb-map__status[data-art="hinweis"]::before { align-self: flex-start; margin-top: 4px; }
/* Platz ist reserviert, bis das Skript den Text setzt – nichts springt */
.fb-map__status:empty { visibility: hidden; }
.fb-map__status--klein { min-height: 20px; padding: 0 8px; font-size: 12px; }
.fb-map__status--klein:empty { display: none; }   /* in der Umgebungsliste lieber nichts als eine Lücke */
/* Nur Saison, in der Saison: nichts zu sagen (karte.js setzt hidden) */
.fb-map__status[hidden] { display: none; }

/* --- Infoblatt auf schmalen Karten (von unten) ----------------------- */

.fb-map__blatt {
  --_kreuz: 44px;   /* Name hält Abstand zum größeren Kreuz (früher margin-right … !important) */
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 8;
  max-height: 72%; overflow-y: auto; overscroll-behavior: contain;
  padding: 20px 16px 16px; box-sizing: border-box;
  font-family: var(--fb-map-kaertchen-schrift, inherit);
  background: #fff; border-radius: calc(var(--_k-radius) + 8px) calc(var(--_k-radius) + 8px) 0 0;
  box-shadow: 0 -8px 24px rgb(16 24 40 / 0.16);
  font-size: 14px; line-height: 20px; color: #1f2933;
  transform: translateY(100%); transition: transform 0.22s ease-out;
}
.fb-map__blatt--offen { transform: none; }
.fb-map__blatt-griff {
  position: absolute; top: 8px; left: 50%; width: 36px; height: 4px; margin-left: -18px;
  border-radius: 2px; background: #d5dbe0;
}
.fb-map__blatt-zu {
  position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; padding: 0;
  display: grid; place-items: center; border: 0; border-radius: 50%;
  background: #f1f3f5; color: #1f2933; cursor: pointer;
}
.fb-map__blatt-zu:focus-visible { outline: 3px solid var(--_fokus); outline-offset: 2px; }
.fb-map__blatt .fb-map__karte-kat, .fb-map__blatt .fb-map__ort-kopf { padding-right: 44px; }

/* --- Seitenpanel auf breiten Karten (0.9.5, ersetzt das Popup am Ort) ------------------------------
   Rechts in der Karte zwischen Filtergruppe (oben) und Quellenangabe (unten) – top/bottom/width setzt
   infoblatt.js (passeEin). Wird der Inhalt länger als die Karte hoch ist, scrollt das Panel; abgeschnitten
   wird nichts. Fährt von rechts herein; die Karte rückt den Ort links daneben in die Mitte. */
.fb-map__blatt--seite {
  left: auto; right: 12px; top: 12px; bottom: auto; width: 340px; max-width: calc(100% - 24px);
  max-height: none; height: auto; z-index: 6;
  padding: 16px 16px 16px; border-radius: calc(var(--_k-radius) + 4px);
  box-shadow: 0 6px 24px rgb(16 24 40 / 0.18), 0 1px 3px rgb(16 24 40 / 0.12);
  transform: translateX(calc(100% + 24px)); opacity: 0;
  transition: transform 0.22s ease-out, opacity 0.16s ease-out;
}
/* Inhalt bestimmt die Höhe; nur wenn er nicht passt, reicht das Panel bis unten und scrollt */
.fb-map__blatt--seite { max-height: calc(100% - 24px); }
.fb-map__blatt--seite.fb-map__blatt--offen { transform: none; opacity: 1; }
.fb-map__blatt--seite .fb-map__blatt-zu { top: 10px; right: 10px; }

/* --- Knöpfe (Popup und Liste) --------------------------------------- */

/* Knöpfe umbrechen statt kürzen: „Route planen“ bleibt immer ganz lesbar (Entscheidung Nutzer 27.9.) –
   reicht der Platz nicht, rutschen die Symbolknöpfe in die nächste Zeile */
.fb-map__aktionen { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fb-map__knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; box-sizing: border-box;
  font: inherit; font-size: 14px; font-weight: 600; line-height: 20px; white-space: nowrap;
  color: #1f2933; background: #fff; border: 1px solid var(--_rahmen);
  border-radius: var(--_k-radius); text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, filter 0.15s;
}
.fb-map__knopf:hover { background: #f4f6f8; border-color: #c3ccd4; }
.fb-map__knopf--haupt { flex: 1 0 auto; max-width: 100%; color: var(--_haupt-text); background: var(--_haupt-hg); border-color: var(--_haupt-rahmen); }
/* Hover ohne Farbänderung (0.9.5): früher filter: brightness(0.9) – dunkle Schrift auf abgedunkeltem Grün verlor
   Kontrast. Jetzt Schatten + Unterstreichung, Farben und Kontrast bleiben wie im Ruhezustand. */
.fb-map__knopf--haupt:hover { background: var(--_haupt-hg); border-color: var(--_haupt-rahmen); box-shadow: 0 2px 8px rgb(16 24 40 / 0.22); }
.fb-map__knopf--haupt:hover > span:not(.fb-map__vh) { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.fb-map__knopf--symbol { flex: none; width: 40px; padding: 0; }
/* Gegen Link-Farben von MapLibre UND Theme (Zero One/UIkit: „a:hover { color: … }“ färbte die Schrift im
   Routenknopf dunkelgrün – schlecht lesbar, snow-experts.at 2.10.2026). Gilt auch für Leiste und Liste
   außerhalb der Karte (.fb-map__betriebe, .fb-map__orte). */
:is(.fb-map, .fb-map__orte, .fb-map__betriebe) a.fb-map__knopf, :is(.fb-map, .fb-map__orte, .fb-map__betriebe) a.fb-map__knopf:hover { text-decoration: none; }
:is(.fb-map, .fb-map__orte, .fb-map__betriebe) a.fb-map__knopf--haupt,
:is(.fb-map, .fb-map__orte, .fb-map__betriebe) a.fb-map__knopf--haupt:hover { color: var(--_haupt-text); }
:is(.fb-map, .fb-map__orte, .fb-map__betriebe) a.fb-map__knopf:not(.fb-map__knopf--haupt),
:is(.fb-map, .fb-map__orte, .fb-map__betriebe) a.fb-map__knopf:not(.fb-map__knopf--haupt):hover { color: #1f2933; }
.fb-map__knopf:focus-visible, .fb-map__link:focus-visible { outline: 3px solid var(--_fokus); outline-offset: 2px; }
.fb-map__knopf[hidden], .fb-map__link[hidden] { display: none; }

/* --- Quellenangabe in der Kartenecke (Paket L) ---------------------- */
/* Deckend weiß statt MapLibres halbtransparentem Grund: Kontrast hängt nicht von der Karte ab
   (#1f2933 auf #fff = 14,9:1), Schrift 12 px (≥ 11 px), Links unterstrichen. */
.fb-map .maplibregl-ctrl-attrib.maplibregl-compact { margin: 10px; border: 0; background-color: #fff; color: #1f2933; font-size: 12px; line-height: 18px; }
.fb-map .maplibregl-ctrl-attrib a { padding: 0; color: #1f2933; text-decoration: underline; text-underline-offset: 0.15em; }
.fb-map .maplibregl-ctrl-attrib-button:focus-visible { outline: 3px solid #1f2933; outline-offset: 1px; }
.fb-map .maplibregl-ctrl-bottom-right { max-width: calc(100% - 10px); }

/* --- Bildunterschrift ------------------------------------------------- */

.fb-map__caption { margin-top: 0.5rem; font-size: 0.8125rem; line-height: 1.5; }
.fb-map__adresse { display: block; font-size: 0.875rem; }
.fb-map__route { display: inline-block; margin-top: 0.15rem; font-weight: 600; font-size: 0.875rem; }
.fb-map__quellzeile { display: block; margin-top: 0.15rem; color: var(--_leise); }
.fb-map__credit { color: var(--_leise); }
/* Agentur (Option „agentur“): hinter der Quellenangabe, bleibt stehen, wenn die Kartenecke die Quellen übernimmt */
.fb-map__agentur { color: var(--_leise); white-space: nowrap; }
.fb-map__credit + .fb-map__agentur::before { content: " · "; }
.fb-map__agentur a { color: inherit; text-decoration: underline; text-underline-offset: 0.15em; }
.fb-map__agentur a:focus-visible { outline: 3px solid var(--_fokus, currentColor); outline-offset: 2px; }
.fb-map--quelle-in-karte .fb-map__credit + .fb-map__agentur::before { content: none; }
/* Quellenangabe einmal (Paket B, OSMF): Sind alle Karten der Seite geladen, trägt die Kartenecke sie –
   die Bildunterschrift verschwindet (steht nur sie darin, die ganze Unterschrift). Vor dem Laden bleibt sie. */
.fb-map--quelle-in-karte .fb-map__credit,
.fb-map--quelle-in-karte .fb-map__caption--nur-quelle { display: none; }

/* --- Liste unter der Karte ------------------------------------------- */

.fb-map__orte {
  --_rahmen: var(--fb-map-rahmen, #dde3e8);
  --_leise: var(--fb-map-text-leise, #5f6b76);
  margin: 16px 0 0;
  font-family: var(--fb-map-kaertchen-schrift, inherit);
  font-size: 15px; line-height: 22px; color: #1f2933;
}
.fb-map__orte .fb-map__liste {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 16px;
  /* Mindestbreite 320 px: „Route planen“ + zwei Symbolknöpfe passen in eine Zeile – auch am Finger (44 px) */
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}
.fb-map__ort {
  position: relative;   /* Bezug für „Auf der Karte zeigen“ in der Ecke */
  display: flex; flex-direction: column; gap: 8px;
  padding: 16px; box-sizing: border-box;
  border: 1px solid var(--_rahmen); border-radius: calc(var(--_k-radius) + 4px);
  background: #fff; box-shadow: 0 1px 2px rgb(16 24 40 / 0.05);
  scroll-margin-top: 6rem;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.fb-map__orte .fb-map__ort { margin: 0; }   /* Theme: li { margin … } */
.fb-map__orte .fb-map__ort p { margin: 0; }   /* Zeilen ohne Außenabstand (Theme: p, .text p) – auch der Hinweis, früher !important */
.fb-map__ort:hover { box-shadow: 0 4px 16px rgb(16 24 40 / 0.08); }
/* Hervorhebung ohne dickeren Rahmen – nichts verschiebt sich */
.fb-map__ort--fokus { border-color: var(--_kontur); box-shadow: 0 0 0 1px var(--_kontur); }
.fb-map__ort--fokus:hover { box-shadow: 0 0 0 1px var(--_kontur), 0 4px 16px rgb(16 24 40 / 0.08); }
.fb-map__ort:target, .fb-map__ort--gewaehlt { box-shadow: 0 0 0 3px var(--_kontur); }   /* gewählt: Popup offen (karte.js) */
.fb-map__ort-kopf { display: flex; align-items: center; gap: 8px; min-height: 24px; }
.fb-map__nr {
  flex: none; display: grid; place-items: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--_akzent, var(--fb-map-akzent, #33404d)); color: var(--_akzent-text, #fff);
  font-size: 12px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums;
}
.fb-map__ort-kat {
  display: flex; align-items: center; gap: 6px; min-width: 0;
  font-size: 12px; font-weight: 700; line-height: 16px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--_leise);
}
.fb-map__ort-name { font-size: 17px; font-weight: 700; line-height: 24px; }
.fb-map__ort .fb-map__infos .fb-map__ui { margin-top: 3px; }
.fb-map__ort .fb-map__aktionen { margin-top: auto; padding-top: 8px; }
/* „Auf der Karte zeigen“ steht oben rechts auf Höhe der Kopfzeile statt als vierter Knopf in der Aktionsleiste –
   sonst bricht die Leiste in schmalen Kärtchen um (Nacharbeit Paket B). Nur per CSS: Im DOM bleibt der Knopf
   hinter „Route planen“ (Tab-Reihenfolge, Vorlagen im Projekt), und er erscheint erst mit JS (hidden). */
/* 0.9.5: beschriftet („Auf der Karte“) mit Rahmen in der Linkfarbe – als reines Symbol wurde er übersehen. */
.fb-map__ort .fb-map__ort-kopf { padding-right: 132px; }
.fb-map__ort .fb-map__aktionen [data-zeige] {
  position: absolute; top: 10px; right: 10px;
  height: 32px; padding: 0 12px 0 10px; gap: 6px; font-size: 13px;
  color: var(--_link); background: #fff; border-color: currentColor;
}
.fb-map__ort .fb-map__aktionen [data-zeige]:hover { color: var(--_akzent-text); background: var(--_akzent); border-color: var(--_akzent); }
.fb-map__ort .fb-map__aktionen [data-zeige] .fb-map__ui { flex: none; }
/* Route verlässt die Website: kleines ↗ hinter dem Text */
.fb-map__extern { flex: none; margin-left: -2px; opacity: 0.85; }

.fb-map__symbol { flex: none; vertical-align: -0.15em; }
.fb-map__sprite { position: absolute; width: 0; height: 0; overflow: hidden; }   /* SVG-Sprite (0.9.7): nicht display:none – sonst zeichnen manche Browser die <use> nicht */
.fb-map__vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --- In der Nähe ------------------------------------------------------ */

.fb-map__naehe {
  margin: 0.75rem 0 0; padding: 0.75rem 1rem;
  border: 1px solid var(--_rahmen); border-radius: var(--fb-map-radius, 8px); background: #fff;
}
.fb-map__naehe > summary { cursor: pointer; padding: 0; font-size: inherit; font-weight: 700; }
.fb-map__anzahl { font-weight: 400; color: var(--_leise); }
.fb-map__naehe[open] > summary { margin-bottom: 0.25rem; }

/* Filter der Liste (0.9.7): dieselben Chips wie auf der Karte, umbrechend statt Wischzeile – alles im Blick */
.fb-map__naehe-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0.6rem 0 0.25rem; }
.fb-map__naehe-filter[hidden] { display: none; }
.fb-map__naehe-filter .fb-map__chip:hover { background: #f4f6f8; border-color: #9aa5b1; }
.fb-map__naehe-filter .fb-map__chip[aria-pressed="true"] { color: var(--_akzent-text); background: var(--_akzent); border-color: var(--_kontur); }
.fb-map__naehe-filter .fb-map__chip[aria-pressed="true"]:hover { box-shadow: 0 0 0 2px var(--_kontur); }
/* „Jetzt geöffnet“: Schalter mit grünem Punkt (wie das Schild „Geöffnet“) – aus = weiß, an = Fläche */
.fb-map__punkt { width: 8px; height: 8px; border-radius: 50%; background: #2b8a3e; flex: none; }
.fb-map__chip--offen[aria-pressed="true"] .fb-map__punkt { background: currentColor; }
.fb-map .fb-map__filter .fb-map__chip--offen:first-of-type { margin-left: 4px; }

/* Abschnitte je Gegend bzw. Filtergruppe */
.fb-map__abschnitt { margin: 1rem 0 0; }
.fb-map__abschnitt[hidden] { display: none; }
.fb-map__orte .fb-map__abschnitt-titel {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px;
  margin: 0 0 0.25rem; padding: 0 0 0.35rem; border-bottom: 1px solid var(--_rahmen);
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #3b4652;
}
.fb-map__abschnitt-weg {
  display: inline-flex; align-items: center; gap: 4px;
  font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--_leise);
}
.fb-map__abschnitt-weg[hidden] { display: none; }
.fb-map__abschnitt-zahl {
  margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: 10px; box-sizing: border-box;
  background: #eef1f3; color: #3b4652; font-size: 11px; line-height: 18px; text-align: center; letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.fb-map__naehe-symbol {
  flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin-top: 1px;
  border-radius: 50%; background: var(--farbe, #495057); color: #fff;
}
.fb-map__naehe-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px;
  color: var(--_leise); font-size: 13px; line-height: 20px;
}
/* Zeile: Kopf (Symbol, Name, Kategorie · Wegzeit · Schild) zum Aufklappen, rechts „Auf der Karte“ und „Route“ */
.fb-map__orte .fb-map__naehe-liste { list-style: none; margin: 0; padding: 0; }
.fb-map__orte .fb-map__naehe-liste .fb-map__nah {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start;
  margin: 0; padding: 0; border-top: 1px solid #eef1f3; border-radius: 6px;
  transition: background-color 0.15s;
}
.fb-map__orte .fb-map__naehe-liste .fb-map__nah:first-child { border-top: 0; }
.fb-map__orte .fb-map__naehe-liste .fb-map__nah:is([hidden], .fb-map__nah--weiter) { display: none; }
.fb-map__nah:hover, .fb-map__nah.fb-map__nah--gewaehlt { background: #f6f8f9; }
.fb-map__nah.fb-map__nah--gewaehlt { box-shadow: inset 3px 0 0 var(--_kontur); }
.fb-map__nah-details { grid-column: 1 / -1; grid-row: 1; min-width: 0; }
.fb-map__nah-kopf {
  display: flex; gap: 0.6rem; align-items: flex-start;
  padding: 0.5rem var(--_aktionen, 13.5rem) 0.5rem 0.25rem;
  list-style: none; cursor: pointer; border-radius: 6px;
}
.fb-map__nah-kopf::-webkit-details-marker { display: none; }
.fb-map__nah-kopf:focus-visible { outline: 3px solid var(--_fokus); outline-offset: -3px; }
.fb-map__nah-details[data-leer] > .fb-map__nah-kopf { cursor: default; }
.fb-map__nah-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.fb-map__nah-name { font-weight: 600; line-height: 1.35; }
.fb-map__nah-pfeil { flex: none; margin-top: 3px; color: var(--_leise); transition: transform 0.15s; }
.fb-map__nah-details[open] .fb-map__nah-pfeil { transform: rotate(180deg); }
.fb-map__nah-mehr { padding: 0 0.25rem 0.75rem calc(24px + 0.85rem); }
.fb-map__nah-mehr .fb-map__infos { margin: 0.25rem 0 0; }
.fb-map__nah-mehr .fb-map__hinweis { margin: 0.5rem 0 0; }
.fb-map__nah-kontakt { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0.5rem 0 0; font-size: 14px; }
.fb-map__nah-kontakt a { display: inline-flex; align-items: center; gap: 6px; color: var(--_link); font-weight: 600; text-underline-offset: 2px; }
.fb-map__nah-aktionen {
  grid-column: 2; grid-row: 1; z-index: 1; display: flex; gap: 6px; padding: 0.45rem 0.25rem 0 0;
}
.fb-map__nah-knopf {
  display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 10px; box-sizing: border-box;
  border: 1px solid #c4ccd3; border-radius: 999px; background: #fff;
  font: inherit; font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap;
  color: var(--_link); text-decoration: none; cursor: pointer;
}
.fb-map__nah-knopf[hidden] { display: none; }
:is(.fb-map__orte) a.fb-map__nah-knopf:is(:link, :visited, :hover, :focus) { color: var(--_link); text-decoration: none; }
.fb-map__nah-knopf:hover { border-color: var(--_kontur); box-shadow: 0 0 0 1px var(--_kontur); }
.fb-map__nah-knopf:focus-visible { outline: 3px solid var(--_fokus); outline-offset: 2px; }
.fb-map__mehr { display: block; margin: 0.4rem 0 0 calc(24px + 0.85rem); padding: 6px 0; }
.fb-map__mehr[hidden] { display: none; }
.fb-map__naehe-leer { margin: 1rem 0 0.25rem; color: var(--_leise); }
.fb-map__naehe-leer[hidden] { display: none; }
.fb-map__naehe-leer p { margin: 0 0 0.25rem; }

.fb-map__weg { display: inline-flex; align-items: center; gap: 4px; }
.fb-map__weg[hidden], .fb-map__weg-ab[hidden] { display: none; }
.fb-map__orte .fb-map__weg-ab { margin: 8px 0 0; font-size: 13px; line-height: 20px; color: var(--_leise); }
.fb-map__link {
  padding: 0; border: 0; background: none; font: inherit; font-weight: 600;
  color: var(--_link); text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
/* Marker, über dessen Zeile die Maus steht: größer, mit Ring, obenauf */
.maplibregl-marker.fb-map__poi--hervor { z-index: 5; }
.fb-map__poi--hervor svg { transform: scale(1.25); }
.fb-map__poi.fb-map__poi--hervor { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--_kontur); }

/* Schmal (Handy): Knöpfe nur als Symbol (Name für Screenreader/Tooltip), Kopf rückt nach */
@media (max-width: 640px) {
  .fb-map__nah-kopf { --_aktionen: 6.25rem; }
  .fb-map__nah-knopf { width: 40px; padding: 0; justify-content: center; }
  .fb-map__nah-knopf > span[aria-hidden] { display: none; }
  .fb-map__naehe { padding: 0.75rem 0.75rem; }
  .fb-map__nah-mehr { padding-left: calc(24px + 0.85rem); }
}
@media (min-width: 641px) { .fb-map__nah-kopf { --_aktionen: 14rem; } }

/* Finger statt Maus: 44 px Tippflächen (Apple HIG, WCAG 2.2 AAA) */
@media (pointer: coarse) {
  .fb-map__knopf, .fb-map__betrieb { height: 44px; }
  .fb-map__knopf--symbol { width: 44px; }
  .fb-map__ort .fb-map__aktionen [data-zeige] { top: 6px; right: 6px; height: 36px; }   /* 36 + Abstand = 44 px Ziel */
  .fb-map .maplibregl-ctrl-group button { width: 36px; height: 36px; }
  .fb-map__chip, .fb-map__filter--zeile .fb-map__chip { height: 44px; padding: 0 16px; }
  .fb-map__nah-knopf { height: 44px; min-width: 44px; }
  .fb-map__nah-kopf { padding-top: 0.75rem; padding-bottom: 0.75rem; }
  .fb-map__nah-aktionen { padding-top: 0.4rem; }
  .fb-map__naehe-filter .fb-map__chip { height: 44px; padding: 0 16px; }
  .fb-map__mehr { padding: 12px 0; }
}

/* Weniger Bewegung: keine Übergänge und Animationen in Karte, Standort-Leiste und Liste – auch nicht die des Themes
   („* { transition: all … }“) oder von MapLibre (Marker, Warte-Kreisel des Standort-Knopfs, Spezifität bis 0,5,1).
   :not(#fb-map-ruhig) trifft jedes Element und zählt wie eine ID (1,1,0): stärker als jede Klassen-Regel – dafür
   stand früher !important. */
@media (prefers-reduced-motion: reduce) {
  :is(.fb-map, .fb-map__orte, .fb-map__betriebe) :not(#fb-map-ruhig) { transition: none; animation: none; }
}
