/* ══════════════════════════════════════════════════════════════
   Wingcast – Flugwetter Dashboard
   Professional UX: scannable, accessible, polished.
   ══════════════════════════════════════════════════════════════ */

/* ── Container ──────────────────────────────────────────────── */

.bf {
  max-width: 920px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-5) var(--space-16);
  color: var(--color-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Header ──────────────────────────────────────────────── */

.bf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) 0 var(--space-5);
  margin-bottom: var(--space-5);
  border-bottom: none;
  position: relative;
  flex-wrap: wrap;
}

.bf-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary) 40%, var(--color-border) 100%);
  border-radius: 1px;
}

.bf-header-left {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  min-width: 0;
}

.bf-logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--color-primary);
  margin: 0;
  white-space: nowrap;
}

.bf-date-range {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  white-space: nowrap;
  font-weight: 500;
}

.bf-header-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.bf-timestamp {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.bf-btn-gen {
  padding: 8px 20px;
  font-family: inherit;
  font-weight: 600;
  font-size: var(--text-sm);
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 180ms ease, box-shadow 180ms ease, transform 120ms ease;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(3, 105, 161, 0.2);
  letter-spacing: 0.01em;
}

.bf-btn-gen:hover {
  background: var(--color-primary-vivid);
  box-shadow: 0 3px 10px rgba(3, 105, 161, 0.3);
  transform: translateY(-1px);
}

.bf-btn-gen:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.bf-btn-gen:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.bf-btn-gen:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ── Wetterlage (Synoptik-Block, 1x/Tag generiert) ──────── */
/* Erscheint zuoberst im Cast (vor Fazit + Tag-Tabs). Initial nur die
 * Kurzfassung sichtbar; "Detail"-Toggle blendet die Langfassung ein.
 * Bei fehlendem llm_overview wird der Block ausgeblendet (renderWetterlage). */

.bf-wetterlage {
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-4);
  /* Palette v3.2 "Royal Premium" (Mai 2026): Violet-Accent — alignt mit Rating-5-
     Violet (Premium-Tier). Wetterlage ist der wichtigste Info-Block oben. */
  background: linear-gradient(135deg, var(--color-bg-elevated) 0%, rgba(167, 139, 250, 0.08) 100%);
  border: 1px solid var(--color-border);
  border-left: 3px solid #6d28d9;
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  line-height: 1.6;
  box-shadow: var(--shadow-sm);
}

.bf-wetterlage[hidden] { display: none; }

.bf-wetterlage-head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.bf-wetterlage-icon {
  font-size: 16px;
  color: #6d28d9;
  opacity: 0.85;
}

.bf-wetterlage-label {
  font-weight: 700;
  color: var(--color-text);
  font-size: var(--text-md);
  letter-spacing: -0.01em;
}

.bf-wetterlage-summary {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: 1.7;
}

.bf-wetterlage-summary p {
  margin: 0 0 var(--space-2);
}

.bf-wetterlage-summary p:last-child {
  margin-bottom: 0;
}

/* Legacy-Klasse: bleibt fuer alte gecachte Renderings, gleicher Look. */
.bf-wetterlage-short {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: 1.7;
}

.bf-wetterlage-toggle {
  margin-top: var(--space-2);
  padding: 4px 12px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  transition: border-color 150ms, color 150ms;
}

.bf-wetterlage-toggle:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.bf-wetterlage-chevron {
  font-size: 10px;
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.bf-wetterlage.is-open .bf-wetterlage-chevron {
  transform: rotate(180deg);
}

.bf-wetterlage-long {
  margin: var(--space-3) 0 0;
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: 1.7;
}

.bf-wetterlage-long[hidden] { display: none; }

.bf-wetterlage-long p {
  margin: 0 0 var(--space-2);
}

.bf-wetterlage-long p:last-child {
  margin-bottom: 0;
}

.bf-wetterlage-lead {
  font-weight: 500;
  color: var(--color-text);
}

.bf-wetterlage-day strong {
  color: var(--color-text);
}

.bf-wetterlage-day-block {
  margin: 0 0 var(--space-3);
}
.bf-wetterlage-day-block:last-child {
  margin-bottom: 0;
}
.bf-wetterlage-day-block > p {
  margin: 0;
}

.bf-wetterlage-hint {
  margin: 4px 0 0 !important;
  padding: 4px 10px;
  font-size: 0.92em;
  font-style: italic;
  color: var(--color-text);
  background: rgba(125, 211, 252, 0.10);
  border-left: 3px solid #38bdf8;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.bf-wetterlage-hint-icon {
  color: #0ea5e9;
  font-style: normal;
  margin-right: 4px;
}

/* ── Day Tabs ────────────────────────────────────────────── */

.bf-day-tabs {
  display: flex;
  gap: 8px;
  padding: 6px 2px var(--space-4);
  margin-bottom: var(--space-4);
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.bf-day-tabs::-webkit-scrollbar { display: none; }

.bf-day-tab {
  all: unset;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--color-border);
  background: var(--color-bg-elevated);
  cursor: pointer;
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
  flex: 1 1 0;
  min-width: 64px;
  text-align: center;
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.bf-day-tab:hover {
  border-color: var(--color-primary);
  background: #f0f9ff;
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.bf-day-tab:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.bf-day-tab.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(3, 105, 161, 0.25);
  transform: translateY(-2px);
}

.bf-day-tab.is-active .bf-tab-weekday,
.bf-day-tab.is-active .bf-tab-date,
.bf-day-tab.is-active .bf-tab-count { color: #fff; }

.bf-day-tab.is-active .bf-tab-weekday { opacity: 0.7; }

.bf-tab-weekday {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  line-height: 1;
}

.bf-tab-date {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1;
  letter-spacing: -0.03em;
}

.bf-tab-dots {
  display: flex;
  gap: 3px;
  margin-top: 3px;
}

.bf-tab-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.bf-tab-dot.violet { background: var(--color-fly-violet); } /* legacy: top-stars */
.bf-tab-dot.top    { background: #1d4ed8; }                 /* RATING_CONCEPT v1.3: ★4+ */
.bf-tab-dot.green  { background: #22c55e; }
.bf-tab-dot.amber  { background: #f59e0b; }

.bf-day-tab.is-active .bf-tab-dot.violet { background: #c4b5fd; }
.bf-day-tab.is-active .bf-tab-dot.top    { background: #93c5fd; }
.bf-day-tab.is-active .bf-tab-dot.green  { background: #86efac; }
.bf-day-tab.is-active .bf-tab-dot.amber  { background: #fcd34d; }

.bf-tab-count {
  font-size: 10px;
  color: var(--color-text-muted);
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* ── Filter Bar (Region / Qualität / Rating) ─────────────── */

.bf-filters {
  margin-bottom: var(--space-5);
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bf-filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.bf-filter-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--color-text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  user-select: none;
  min-width: 52px;
}

.bf-filter-group-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
}

.bf-filter-quality-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 10px;
  border-top: 1px dashed var(--color-border);
}

.bf-filter-group--quality {
  flex: 1 1 auto;
  min-width: 0;
}

.bf-filter-group--rating {
  flex: 1 1 240px;
  min-width: 0;
}

/* Legacy filter-row kept for backward compat */
.bf-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.bf-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.bf-filter-chip {
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 12px;
  background: var(--color-bg-elevated);
  color: var(--color-text-secondary);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 180ms ease;
  white-space: nowrap;
  line-height: 1.2;
}

.bf-filter-chip:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: #f0f9ff;
  box-shadow: 0 1px 3px rgba(3, 105, 161, 0.08);
}

.bf-filter-chip:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}

.bf-filter-chip.is-active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 1px 4px rgba(3, 105, 161, 0.2);
}

.bf-filter-chip.is-active:hover {
  background: var(--color-primary-vivid);
  border-color: var(--color-primary-vivid);
}

.bf-filter-reset {
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 12px;
  background: transparent;
  color: var(--color-text-muted);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 180ms ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.bf-filter-reset:hover:not(:disabled) {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: #f0f9ff;
}

.bf-filter-reset.is-active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.bf-filter-reset.is-active:hover {
  background: var(--color-primary-vivid);
  border-color: var(--color-primary-vivid);
}

.bf-filter-reset:disabled { opacity: 0.35; cursor: default; }

.bf-filter-map-btn {
  all: unset;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--color-text-muted);
  background: var(--color-bg-elevated);
  flex-shrink: 0;
  transition: all 180ms ease;
}

.bf-filter-map-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: #f0f9ff;
}

.bf-filter-map-btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}

.bf-filter-map-btn.is-active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.bf-filter-map {
  width: 100%;
  height: 280px;
  margin-top: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #f3f1ec;
  position: relative;
  z-index: 0;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
}

.bf-filter-map[hidden] { display: none; }

/* ── Tier + Rating Filter ───────────────────────────────── */

.bf-tier-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
}

.bf-tier-chip {
  all: unset;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  background: var(--color-bg-elevated);
  color: var(--color-text-secondary);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
  white-space: nowrap;
  line-height: 1.2;
  user-select: none;
  min-height: 32px;
  box-sizing: border-box;
}

.bf-tier-chip:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}

.bf-tier-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-text-muted);
  flex-shrink: 0;
  transition: background 180ms ease, box-shadow 180ms ease;
}

.bf-tier-chip--violet .bf-tier-dot { background: var(--color-fly-violet); } /* legacy */
.bf-tier-chip--green  .bf-tier-dot { background: var(--color-fly-green); }  /* legacy */
.bf-tier-chip--conditional .bf-tier-dot { background: #f59e0b; }            /* legacy */
/* RATING_CONCEPT v1.3 — Glyph-basierte Chips ersetzen Dots */
.bf-tier-chip .gc-glyph { flex-shrink: 0; }

/* Hover: show the tier accent even when inactive */
.bf-tier-chip:hover { border-color: var(--color-text-secondary); color: var(--color-text); }

/* Active state: full tier-coloured chip */
.bf-tier-chip.is-active {
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.bf-tier-chip.is-active .bf-tier-dot {
  background: #fff;
  box-shadow: 0 0 0 2px currentColor inset;
}

.bf-tier-chip--violet.is-active {
  background: var(--color-fly-violet);
  color: #fff;
  border-color: var(--color-fly-violet);
}
.bf-tier-chip--green.is-active {
  background: var(--color-fly-green);
  color: #fff;
  border-color: var(--color-fly-green);
}
.bf-tier-chip--conditional.is-active {
  background: #f59e0b;
  color: #fff;
  border-color: #f59e0b;
}
/* RATING_CONCEPT v1.3 — Safety-Band-Chips */
.bf-tier-chip--amber.is-active {
  background: #f59e0b;
  color: #fff;
  border-color: #92400e;
}
.bf-tier-chip--red.is-active {
  background: #ef4444;
  color: #fff;
  border-color: #991b1b;
}

/* Inactive state: faded but identifiable by dot colour */
.bf-tier-chip:not(.is-active) {
  opacity: 0.85;
}
.bf-tier-chip:not(.is-active):hover {
  opacity: 1;
  background: var(--color-bg);
}

/* ── Rating slider ──────────────────────────────────────── */

/* Rating-Slider — gleicher Stil wie Account (intuitiver: Pill-Badge fuer Wert,
   immer sichtbarer Gradient-Fortschritt). HTML-Struktur unveraendert. */
.bf-rating-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  min-height: 32px;
  box-sizing: border-box;
  flex: 1 1 220px;
  min-width: 0;
  /* Bei langem Wert-Badge ("≥ 6 / 10 · Regionen und Spots") darf der Slider
     auf eine zweite Zeile umbrechen, statt den Container zu sprengen. */
  flex-wrap: wrap;
  row-gap: 6px;
}

.bf-rating-value {
  display: inline-block;
  min-width: 60px;
  max-width: 100%;
  padding: 4px 12px;
  background: var(--color-primary-light);
  color: var(--color-primary-vivid);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  flex-shrink: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bf-rating-slider {
  -webkit-appearance: none;
  appearance: none;
  flex: 1 1 140px;
  width: auto;
  min-width: 0;
  height: 6px;
  /* Gradient-Fill ueber CSS-Variable --fill (von briefing.js gesetzt) */
  background: linear-gradient(to right,
      var(--color-primary) 0%,
      var(--color-primary) var(--fill, 0%),
      var(--color-border) var(--fill, 0%),
      var(--color-border) 100%);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
}

.bf-rating-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--color-primary);
  cursor: grab;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  transition: transform 0.1s ease;
}
.bf-rating-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.bf-rating-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.2);
  box-shadow: 0 2px 8px rgba(3,105,161,0.35);
}

.bf-rating-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--color-primary);
  cursor: grab;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  transition: transform 0.1s ease;
}
.bf-rating-slider::-moz-range-thumb:hover { transform: scale(1.15); }

.bf-rating-slider::-moz-range-track {
  height: 6px;
  background: transparent;
  border-radius: 3px;
  border: none;
}

.bf-rating-slider:focus-visible::-webkit-slider-thumb {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ── Empty-state extras ─────────────────────────────────── */

.bf-empty-msg {
  font-size: var(--text-md);
  color: var(--color-text);
  margin-bottom: 4px;
}

.bf-empty-counts {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
  font-variant-numeric: tabular-nums;
}

.bf-empty-reset {
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 9px 18px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 1px 3px rgba(3,105,161,0.2);
}

.bf-empty-reset:hover {
  background: var(--color-primary-vivid);
  box-shadow: 0 3px 8px rgba(3,105,161,0.3);
}

.bf-filter-map .leaflet-container {
  height: 100%;
  width: 100%;
  background: #f3f1ec;
  font-family: inherit;
  outline: none;
}

.bf-filter-map .leaflet-interactive { cursor: pointer; }

.bf-filter-map .bf-region-label {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  pointer-events: none;
  border-radius: 4px;
}

/* ── Day Info Bar ────────────────────────────────────────── */

.bf-day-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
  padding: var(--space-3) 0 var(--space-4);
  margin-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
}

.bf-day-info:empty { display: none; }

/* ── Risk-Reward-Matrix (2-Achsen Scatter, Spot-Ebene) ──────────────
   X = Reward (Experience-Score), Y = Sicherheit (Safety-Score, top = sicher).
   Bubble-Farbe = Region (kategorial), Größe = Sterne.
   Sweet-Spot rechts oben hervorgehoben. not_safe ausgefiltert. */
.bf-bubble-matrix {
  margin-bottom: var(--space-5);
  background: var(--color-bg-subtle, #f8fafc);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  position: relative;
}
.bf-bubble-matrix-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
  flex-wrap: wrap;
}
.bf-bubble-matrix-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.bf-bubble-matrix-legend-meta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 10.5px;
  color: var(--color-text-light);
  flex-wrap: wrap;
}
.bf-bubble-matrix-legend-meta .legend-item--size { color: var(--color-text-light); }
.bf-bubble-matrix-svg-wrap {
  position: relative;
}
.bf-bubble-matrix svg {
  width: 100%;
  height: auto;
  display: block;
  font-family: inherit;
  overflow: visible;
}
/* Quadranten-Hintergrund */
.bf-bubble-matrix .quad--sweet   { fill: rgba(34, 197, 94, 0.09); }
.bf-bubble-matrix .quad--low     { fill: rgba(148, 163, 184, 0.05); }
.bf-bubble-matrix .quad--caution { fill: rgba(245, 158, 11, 0.07); }
.bf-bubble-matrix .quad--bad     { fill: rgba(15, 23, 42, 0.04); }
.bf-bubble-matrix .quad-label {
  font-size: 10px;
  font-weight: 700;
  fill: #16a34a;
  letter-spacing: 0.3px;
  pointer-events: none;
}
/* Achsen */
.bf-bubble-matrix .grid {
  stroke: var(--color-border);
  stroke-width: 1;
  stroke-dasharray: 2 3;
  opacity: 0.5;
}
.bf-bubble-matrix .tick-label {
  font-size: 10px;
  fill: var(--color-text-light);
  font-variant-numeric: tabular-nums;
}
.bf-bubble-matrix .axis-title {
  font-size: 10.5px;
  fill: var(--color-text-secondary);
  font-weight: 600;
  letter-spacing: 0.3px;
}
/* Bubbles */
.bf-bubble-matrix .bubble {
  cursor: pointer;
  outline: none;
}
.bf-bubble-matrix .bubble circle {
  transition: r 140ms ease, stroke-width 140ms ease, filter 140ms ease, opacity 140ms ease;
  stroke-width: 1.5;
  fill-opacity: 0.78;
}
.bf-bubble-matrix .bubble:hover circle,
.bf-bubble-matrix .bubble:focus-visible circle {
  stroke-width: 3;
  fill-opacity: 1;
  filter: drop-shadow(0 1px 4px rgba(15, 23, 42, 0.3));
}
.bf-bubble-matrix .bubble.is-faded circle { opacity: 0.18; }
/* Region-Legende */
.bf-region-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-border);
}
.bf-region-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px 3px 6px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 11px;
  color: var(--color-text);
  cursor: pointer;
  transition: background 120ms, border-color 120ms;
  font-family: inherit;
}
.bf-region-chip:hover {
  background: var(--color-bg-subtle, #f1f5f9);
  border-color: var(--color-text-light);
}
.bf-region-chip.is-dim { opacity: 0.65; }
.bf-region-chip-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.bf-region-chip-name { font-weight: 500; }
.bf-region-chip-count {
  font-size: 10px;
  color: var(--color-text-light);
  font-variant-numeric: tabular-nums;
  background: var(--color-bg-subtle, #f1f5f9);
  padding: 1px 5px;
  border-radius: 999px;
  margin-left: 2px;
}
.bf-bubble-matrix-hidden {
  color: var(--color-text-secondary);
  background: rgba(15, 23, 42, 0.04);
  padding: 2px 8px;
  border-radius: var(--radius-sm, 4px);
  font-weight: 500;
}
/* Tooltip */
.bf-bubble-tooltip {
  position: absolute;
  z-index: 20;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.96);
  color: #fff;
  padding: 8px 10px;
  border-radius: var(--radius-md, 6px);
  font-size: 11.5px;
  line-height: 1.35;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  min-width: 140px;
  max-width: 220px;
}
.bf-bubble-tooltip[hidden] { display: none; }
.bf-bubble-tooltip-name {
  font-weight: 700;
  font-size: 12.5px;
  margin-bottom: 1px;
}
.bf-bubble-tooltip-region {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 6px;
}
.bf-bubble-tooltip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 10px;
  margin-bottom: 6px;
  padding: 4px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.bf-bubble-tooltip-cell {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.bf-bubble-tooltip-cell .lbl {
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.bf-bubble-tooltip-cell .val {
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.bf-bubble-tooltip-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}
.bf-bubble-tooltip-stars {
  color: #fbbf24;
  letter-spacing: 1px;
  font-size: 11px;
}
.bf-bubble-tooltip-score {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.bf-bubble-tooltip-band {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.bf-bubble-tooltip-band--green { background: #22c55e; color: #052e16; }
.bf-bubble-tooltip-band--amber { background: #f59e0b; color: #422006; }

@media (prefers-reduced-motion: reduce) {
  .bf-bubble-matrix .bubble circle { transition: none; }
}

@media (max-width: 640px) {
  .bf-bubble-matrix { padding: var(--space-3); }
  .bf-bubble-matrix-legend .legend-item--size { display: none; }
}

.bf-day-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.bf-day-stats {
  display: flex;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  flex-wrap: wrap;
  font-variant-numeric: tabular-nums;
}

.bf-day-stats strong {
  font-weight: 700;
  color: var(--color-text);
}

.bf-stat-violet strong { color: var(--color-fly-violet); } /* legacy */
.bf-stat-green strong { color: var(--color-fly-green); }   /* legacy */
.bf-stat-bronze strong { color: var(--color-fly-gray); }   /* legacy */

/* RATING_CONCEPT v1.3 — Day-Stat-Pills nach safety_band + Top-Sterne */
.bf-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.bf-stat--green strong { color: #15803d; }
.bf-stat--amber strong { color: #b45309; }
.bf-stat--red   strong { color: #b91c1c; }
.bf-stat--top   strong { color: #1d4ed8; }
.bf-stat--top   { color: #1d4ed8; font-weight: 600; }

/* ── Content Area ────────────────────────────────────────── */

.bf-content-empty {
  padding: var(--space-16) var(--space-6);
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--text-md);
  line-height: 1.7;
}

/* ── Focus-Banner (Deep-Link aus E-Mail auf einen Spot) ─────── */

.bf-focus-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-5);
  background: var(--color-surface-2, #f1f5f9);
  border: 1px solid var(--color-border, #e5e7eb);
  border-left: 3px solid var(--color-accent, #6d28d9);
  border-radius: var(--radius-md, 8px);
  font-size: var(--text-sm, 0.9rem);
  color: var(--color-text, #111827);
}

.bf-focus-text strong {
  font-weight: 700;
}

.bf-focus-clear {
  appearance: none;
  border: 1px solid var(--color-border, #d1d5db);
  background: var(--color-bg, #ffffff);
  color: var(--color-text, #111827);
  border-radius: var(--radius-sm, 6px);
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
}

.bf-focus-clear:hover {
  background: var(--color-surface-2, #f1f5f9);
}

/* ── Region Section ──────────────────────────────────────── */

/* Bulk-Toggle: alle Regionen mit einem Klick auf-/zuklappen.
   Diskreter Text-Button rechts, hoehere Touch-Hitfläche per Padding. */
.bf-bulk-toggle-bar {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 var(--space-3);
}

.bf-bulk-toggle {
  appearance: none;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-bg-elevated);
  color: var(--color-text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  min-height: 36px;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.bf-bulk-toggle:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.bf-bulk-toggle:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.bf-bulk-toggle-icon {
  font-size: 14px;
  line-height: 1;
  display: inline-block;
  width: 14px;
  text-align: center;
}

.bf-region {
  margin-bottom: var(--space-8);
}

/* Region-Header bewusst minimal (UI/UX-Pro-Max Prinzipien: visual-hierarchy via
   Spacing/Typography statt Farbe; whitespace-balance — Region ist struktureller
   Divider, Spots sind der Inhalt. Bewertung ausschliesslich auf Spot-Ebene). */
.bf-region-head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-2) var(--space-3);
  margin-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: background 150ms, border-color 150ms;
}

/* Inline-Pill direkt nach Region-Name — Landingpage-Stil. Farben inline
   (regionPillSpec in briefing.js), Palette synchron zu region-map.js. */
.bf-region-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--color-border, #cbd5e1);
  background: rgba(15, 23, 42, 0.04);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  max-width: 24ch;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: help;
  flex-shrink: 0;
}

/* Spacer schiebt Spot-Count + Share + Chevron ans rechte Ende. */
.bf-region-spacer { flex: 1 1 auto; }

@media (max-width: 640px) {
  .bf-region-name { flex: 0 1 auto; max-width: 45%; }
  .bf-region-pill { font-size: 10.5px; padding: 2px 7px; max-width: 16ch; }
}

.bf-region-head:hover {
  background: var(--color-surface-2, rgba(0, 0, 0, 0.03));
}

.bf-region-head:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.bf-region-name {
  flex: 0 1 auto;
  min-width: 0;
  font-weight: 800;
  color: var(--color-text);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.bf-region-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 11px;
  background: var(--color-surface-2, #eef2f7);
  color: var(--color-text-secondary, #475569);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.bf-region-rating { /* legacy — superseded by bf-region-glyph + bf-region-dist */
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

/* RATING_CONCEPT v1.3 — Region-Header: Glyph + Verteilung statt Rating-Zahl */
.bf-region-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.bf-region-glyph .gc-glyph { display: block; }

.bf-region-dist {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-secondary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.bf-region-dist-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.bf-region-dist-item::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.bf-region-dist-item--green::before { background: #22c55e; }
.bf-region-dist-item--amber::before { background: #f59e0b; }
.bf-region-dist-item--red::before   { background: #ef4444; }
.bf-region-dist-item--green { color: #15803d; }
.bf-region-dist-item--amber { color: #b45309; }
.bf-region-dist-item--red   { color: #b91c1c; }

.bf-region-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1), background 150ms;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.bf-region-head:hover .bf-region-chevron {
  background: var(--color-primary-dark, var(--color-primary));
  transform: scale(1.05);
}

.bf-region.is-collapsed .bf-region-chevron {
  transform: rotate(-90deg);
}

.bf-region.is-collapsed .bf-region-head {
  border-bottom-style: dashed;
  border-bottom-color: var(--color-border, #cbd5e1);
  margin-bottom: 0;
}

.bf-region.is-collapsed .bf-spot-list {
  display: none;
}

/* ── Spot Row ────────────────────────────────────────────── */

.bf-spot-list {
  list-style: none;
  padding: 4px 2px;
  margin: 0 -2px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bf-spot {
  display: block;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 200ms ease, border-color 200ms ease, transform 150ms ease;
}

.bf-spot.tier-green { border-left-color: var(--color-fly-green); }      /* legacy */
.bf-spot.tier-violet {                                                  /* legacy */
  border-left-color: var(--color-fly-violet);
  background: linear-gradient(135deg, var(--color-fly-violet-bg) 0%, #faf8ff 100%);
}
.bf-spot.tier-bronze {                                                  /* legacy */
  border-left-color: var(--color-fly-gray);
  background: linear-gradient(135deg, var(--color-fly-gray-bg) 0%, #faf8f4 100%);
}

/* RATING_CONCEPT v1.4 — Spot-Border + Hintergrund skalieren mit Rating.
   --bf-rating-fill = rating/10 (linear, 0..1). Moderater Dynamikbereich.
   Premium-Marker "violet" fuer safe + rating>=8: deutliches Lila statt Gruen. */
.bf-spot {
  --bf-rating-fill: 0;
  /* Border-Breite 3-7 px — sichtbarer Sprung, aber nicht extrem. */
  border-left-width: calc(3px + var(--bf-rating-fill) * 4px);
}

.bf-spot.safety-green {
  border-left-color: rgba(34, 197, 94, calc(0.20 + var(--bf-rating-fill) * 0.80));
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, calc(var(--bf-rating-fill) * 0.30)) 0%,
    rgba(34, 197, 94, calc(var(--bf-rating-fill) * 0.06)) 100%
  );
}
.bf-spot.safety-amber {
  border-left-color: rgba(245, 158, 11, calc(0.20 + var(--bf-rating-fill) * 0.80));
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, calc(0.04 + var(--bf-rating-fill) * 0.30)) 0%,
    rgba(254, 252, 232, calc(0.30 + var(--bf-rating-fill) * 0.30)) 100%
  );
}
.bf-spot.safety-violet {
  border-left-color: rgba(139, 92, 246, calc(0.30 + var(--bf-rating-fill) * 0.70));
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, calc(var(--bf-rating-fill) * 0.32)) 0%,
    rgba(139, 92, 246, calc(var(--bf-rating-fill) * 0.08)) 100%
  );
}
.bf-spot.safety-red {
  border-left-color: #ef4444;
  background: linear-gradient(135deg, #fef2f2 0%, #fff1f1 100%);
}
.bf-spot.safety-no_data { border-left-color: #9ca3af; }

/* Glyph in der Spot-Zeile — gleiche Anatomie wie Karte, nur kleiner */
.bf-spot-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.bf-spot-glyph .gc-glyph { display: block; }

.bf-spot:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-hover);
  transform: translateY(-1px);
}

.bf-spot.is-expanded {
  box-shadow: var(--shadow-lg);
  border-color: var(--color-border-hover);
}

/* Toggle (clickable header area) */
.bf-spot-toggle {
  all: unset;
  display: block;
  width: 100%;
  padding: 14px 16px;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 120ms ease;
}

.bf-spot-toggle:hover { background: rgba(0, 0, 0, 0.02); }

.bf-spot-toggle:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
  border-radius: var(--radius-lg);
}

/* Top line: name + metrics + rating */
.bf-spot-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}

.bf-spot-name {
  font-weight: 700;
  font-size: var(--text-md);
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex-shrink: 1;
  letter-spacing: -0.01em;
}

.bf-spot-spacer { flex: 1; }

/* ── Status-Leiste (Chips) ──────────────────────────────── */

.bf-spot-status {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
  align-items: center;
}

.bf-chip {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  line-height: 1.3;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text-secondary);
  letter-spacing: 0.01em;
}

/* Safety chips */
.bf-chip--safe {
  background: #ecfdf5;
  border-color: #86efac;
  color: #166534;
}

.bf-chip--cond {
  background: #fffbeb;
  border-color: #fcd34d;
  color: #92400e;
}

.bf-chip--warn {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #78350f;
  font-weight: 500;
  font-size: 10.5px;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Info chips */
.bf-chip--window {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1e40af;
  font-variant-numeric: tabular-nums;
}

.bf-chip--type {
  border-color: transparent;
  background: none;
  color: var(--color-text-muted);
  padding-left: 0;
  font-weight: 500;
}

.bf-chip--climb {
  font-variant-numeric: tabular-nums;
  color: #15803d;
  background: #f0fdf4;
  border-color: #bbf7d0;
}

/* Score-Pillen (Safety / Experience / Comfort) */
.bf-spot-scores {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 5px 0 0;
}

.bf-score-pill {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--color-border);
  background: var(--color-bg-secondary, #f8fafc);
  color: var(--color-text-muted);
}

.bf-score-pill--safety {
  background: #f0f9ff;
  border-color: #bae6fd;
  color: #0369a1;
}

/* Tier accents on chips */
.bf-spot.tier-violet .bf-chip--safe {
  background: var(--color-fly-violet-bg);
  border-color: var(--color-fly-violet);
  color: var(--color-fly-violet-text);
}

/* Divider between toggle and details */
.bf-spot-divider {
  display: none;
}

.bf-spot.is-expanded .bf-spot-divider {
  display: block;
  height: 1px;
  background: var(--color-border);
  margin: 0;
}

.bf-spot-rating {
  font-weight: 800;
  font-size: 1.35rem;
  min-width: 2.2em;
  text-align: right;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--color-text);
  flex-shrink: 0;
}

.bf-spot.tier-violet .bf-spot-rating { color: var(--color-fly-violet-text); }
.bf-spot.tier-green .bf-spot-rating { color: var(--color-fly-green-text); }

.bf-spot-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-surface-2, #eef2f7);
  color: var(--color-primary);
  font-size: 13px;
  line-height: 1;
  flex-shrink: 0;
  margin-left: 2px;
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1), background 150ms, color 150ms;
  border: 1.5px solid transparent;
}

.bf-spot-toggle:hover .bf-spot-chevron {
  background: var(--color-primary);
  color: #fff;
  transform: scale(1.05);
}
.bf-spot.is-expanded .bf-spot-chevron {
  transform: rotate(180deg);
  background: var(--color-primary);
  color: #fff;
}

/* Subtle pulse to attract attention until user has expanded something */
@keyframes bfChevronPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
  50% { box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.18); }
}
body:not(.bf-hint-seen) .bf-spot:not(.is-expanded) .bf-spot-chevron,
body:not(.bf-hint-seen) .bf-region:not(.is-collapsed) .bf-region-chevron {
  animation: bfChevronPulse 2s ease-in-out 2;
}

/* Map link */
.bf-spot-map-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  text-decoration: none;
  white-space: nowrap;
  transition: all 180ms ease;
  flex-shrink: 0;
}

.bf-spot-map-link:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 2px 6px rgba(3, 105, 161, 0.2);
}

/* Share button (spot row + region header) */
.bf-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 180ms ease;
  flex-shrink: 0;
  font-family: inherit;
}

.bf-share-btn:hover,
.bf-share-btn:focus-visible {
  background: #25D366;
  border-color: #25D366;
  color: #fff;
  outline: none;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.35);
}

.bf-share-btn svg {
  width: 14px;
  height: 14px;
}

.bf-share-btn--region {
  margin-left: auto;
}

/* ── Spot Details (expanded) ─────────────────────────────── */

.bf-spot-details {
  padding: var(--space-4) var(--space-5) var(--space-5);
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-elevated) 100%);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  animation: bfSlideIn 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes bfSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.bf-spot-details[hidden] { display: none; }

/* ── Detail: Top row (labels left, rec right) ────────────── */

.bf-detail-top {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.bf-detail-top > .bf-detail-labels {
  flex: 1;
  min-width: 0;
}

/* ── Detail: Structured Labels ─────────────── */

.bf-detail-labels {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bf-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.5;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  border-left: 3px solid transparent;
}

.bf-label-icon {
  flex-shrink: 0;
  width: 16px;
  text-align: center;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.4;
}

.bf-label-text {
  color: var(--color-text-secondary);
  min-width: 0;
}

/* Good */
.bf-label--good { background: #f0fdf4; border-left-color: #22c55e; }
.bf-label--good .bf-label-icon { color: #16a34a; }
.bf-label--good .bf-label-text { color: #15803d; }

/* Warning */
.bf-label--warn { background: #fffbeb; border-left-color: #f59e0b; }
.bf-label--warn .bf-label-icon { color: #d97706; }
.bf-label--warn .bf-label-text { color: #92400e; }

/* Bad / No-go */
.bf-label--bad { background: #fef2f2; border-left-color: #ef4444; }
.bf-label--bad .bf-label-icon { color: #dc2626; }
.bf-label--bad .bf-label-text { color: #991b1b; font-weight: 500; }

/* Info */
.bf-label--info { background: #eff6ff; border-left-color: #3b82f6; }
.bf-label--info .bf-label-icon { color: #2563eb; }
.bf-label--info .bf-label-text { color: #1e40af; font-weight: 600; }

/* Tier accents */
.bf-spot.tier-violet .bf-label--good { background: #f5f3ff; border-left-color: #a78bfa; }
.bf-spot.tier-violet .bf-label--good .bf-label-icon { color: #7c3aed; }
.bf-spot.tier-violet .bf-label--good .bf-label-text { color: #5b21b6; }

.bf-spot.tier-violet .bf-label--info { background: #f5f3ff; border-left-color: #a78bfa; }
.bf-spot.tier-violet .bf-label--info .bf-label-icon { color: #7c3aed; }
.bf-spot.tier-violet .bf-label--info .bf-label-text { color: #5b21b6; }

/* ─── Tag-System v4 — siehe docs/TAGS.md ───────────────────────── */

/* WINDOW (Startfenster-Zeitleiste) — Corporate Design:
   - Karten-Pattern: weisse Surface, Soft Shadow, 12px Radius (passend zu .bf-spot)
   - Safety-Tokens (--color-safety-*) statt raw Hex
   - Lucide-SVG-Icons (currentColor) statt Unicode-Glyphs
   - 8px-Spacing-System (--space-*) */
.bf-window {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-3);
}

.bf-window-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.bf-window-title {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.bf-window-summary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-md);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  min-width: 0;
}

.bf-window-summary-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  color: #fff;
}

.bf-window-summary-icon svg {
  width: 13px;
  height: 13px;
  display: block;
}

.bf-window-summary--is-good { color: var(--color-safety-excellent-text); }
.bf-window-summary--is-good .bf-window-summary-icon { background: var(--color-safety-excellent); }

.bf-window-summary--is-warn { color: var(--color-safety-marginal-text); }
.bf-window-summary--is-warn .bf-window-summary-icon { background: var(--color-safety-marginal); }

.bf-window-summary--is-bad { color: var(--color-safety-critical-text); }
.bf-window-summary--is-bad .bf-window-summary-icon { background: var(--color-safety-critical); }

.bf-window-duration {
  margin-left: var(--space-1);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-primary-light);
  color: var(--color-primary-vivid);
  font-size: var(--text-sm);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Kontinuierliche Farbleiste: ein Segment pro Stunde, kein Gap, gerundete Enden,
   subtle inset-shadow am Rand fuer "Track"-Wirkung. */
.bf-window-bar {
  display: flex;
  height: 16px;
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: var(--color-safety-unknown-bg);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.bf-window-seg {
  flex: 1 1 0;
  min-width: 0;
  transition: filter var(--transition-fast);
}

.bf-window-seg--startbar  { background: var(--color-safety-excellent); }
.bf-window-seg--sportlich { background: var(--color-safety-marginal); }
.bf-window-seg--blockiert { background: var(--color-safety-critical); }
.bf-window-seg--neutral   { background: transparent; }

.bf-window-seg:hover { filter: brightness(0.92); }

/* Tick-Achse: gleicher Slot-Raster wie der Bar-Slots (1:1 Mapping) */
.bf-window-axis {
  display: flex;
  font-variant-numeric: tabular-nums;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: -0.02em;
  margin-top: 2px;
}

.bf-window-tick {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  position: relative;
  padding-top: 6px;
}

.bf-window-tick--major::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 4px;
  background: var(--color-border);
  transform: translateX(-50%);
}

/* Sekundaere Info (Sportlich-Hinweis, falls auch Startbar vorhanden) */
.bf-window-secondary {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  font-variant-numeric: tabular-nums;
}

.bf-window-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.bf-window-dot--sportlich { background: var(--color-safety-marginal); }

/* TAG GROUPS (STOP/WARN/GOOD/INFO) */
.bf-tag-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 12px 8px 14px;
  border-left: 4px solid transparent;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  background: transparent;
}

.bf-tag-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bf-tag-group-icon { font-size: 13px; line-height: 1; }
.bf-tag-group-label { line-height: 1; }

.bf-tag-rows { display: flex; flex-direction: column; gap: 2px; }

.bf-tag-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 12px;
  align-items: baseline;
  font-size: 12.5px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

.bf-tag-topic {
  font-weight: 600;
  color: var(--color-text);
}

.bf-tag-value {
  color: var(--color-text-secondary);
  min-width: 0;
}

.bf-rain-glyph {
  display: inline-block;
  vertical-align: -2px;
  margin-right: 4px;
  /* erbt die Tag-Severity-Farbe via currentColor in der SVG */
  color: inherit;
}
/* Tropfen in Severity-Farbe: stop=rot, warn=orange, sonst neutral */
.bf-tag-group--stop .bf-tag-value .bf-rain-glyph { color: #b91c1c; }
.bf-tag-group--warn .bf-tag-value .bf-rain-glyph { color: #c2410c; }

.bf-tag-time {
  color: var(--color-text-muted);
  font-size: 11.5px;
  text-align: right;
}

/* Severity-Farben */
.bf-tag-group--stop {
  background: #fef2f2;
  border-left-color: #ef4444;
}
.bf-tag-group--stop .bf-tag-group-header { color: #dc2626; }
.bf-tag-group--stop .bf-tag-topic { color: #991b1b; }

.bf-tag-group--warn {
  background: #fffbeb;
  border-left-color: #f59e0b;
}
.bf-tag-group--warn .bf-tag-group-header { color: #d97706; }
.bf-tag-group--warn .bf-tag-topic { color: #92400e; }

.bf-tag-group--good {
  background: #f0fdf4;
  border-left-color: #22c55e;
}
.bf-tag-group--good .bf-tag-group-header { color: #16a34a; }
.bf-tag-group--good .bf-tag-topic { color: #15803d; }

/* REDUCER — Fliegbarkeits-Minderer (kein Sicherheitsthema): grau-blau,
 * dezenter als WARN aber sichtbar als eigene Klasse. Siehe docs/TAGS.md. */
.bf-tag-group--reducer {
  background: #f1f5f9;
  border-left-color: #64748b;
}
.bf-tag-group--reducer .bf-tag-group-header { color: #475569; }
.bf-tag-group--reducer .bf-tag-topic { color: #334155; }

/* Legacy-Alias: Backend kann waehrend der Cache-Migration noch alte "info"-
 * Tags liefern (z.B. TURBULENCE info aus altem Cache). Frontend mappt
 * im Renderer auf reducer; CSS-Alias hier garantiert konsistente Optik
 * falls .bf-tag-group--info doch irgendwo gerendert werden sollte. */
.bf-tag-group--info {
  background: #f1f5f9;
  border-left-color: #64748b;
}
.bf-tag-group--info .bf-tag-group-header { color: #475569; }
.bf-tag-group--info .bf-tag-topic { color: #334155; }

/* Mobile (≤480px): kompaktere Window-Visualisierung und Tag-Rows */
@media (max-width: 480px) {
  .bf-window { padding: var(--space-3); gap: var(--space-2); }
  .bf-window-bar { height: 14px; }
  .bf-window-summary { font-size: var(--text-base); }
  .bf-window-summary-icon { width: 20px; height: 20px; }
  .bf-window-summary-icon svg { width: 12px; height: 12px; }
  .bf-tag-row {
    grid-template-columns: 90px 1fr auto;
    gap: 8px;
    font-size: 12px;
  }
  .bf-tag-time { font-size: 10.5px; }
}

/* ── Detail: Assessment sections (Spot-Card-Optik) ─────── */

.bf-detail-assessments {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bf-assessment {
  display: block;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 200ms ease, border-color 200ms ease;
}

.bf-assessment:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-hover);
}

.bf-assessment[open] {
  box-shadow: var(--shadow-lg);
  border-color: var(--color-border-hover);
}

/* Akzentfarben pro Sektion — Palette v3.2 "Royal Premium" (Mai 2026):
   safety = rot (Gefahr-Signal), fly = Lime (Rating-3 Solider Thermiktag), xc =
   Violet (Rating-5 Premium / Legendary). */
.bf-assessment--safety { border-left-color: #ef4444; }
.bf-assessment--fly    { border-left-color: #BEF264; }
.bf-assessment--xc     { border-left-color: #a78bfa; }
.bf-assessment--debug  { border-left-color: #64748b; opacity: 0.85; }

.bf-debug-notes { display: flex; flex-direction: column; gap: 12px; }
.bf-debug-group { display: flex; flex-direction: column; gap: 4px; }
.bf-debug-group-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #94a3b8; padding-bottom: 4px; border-bottom: 1px solid #334155; margin-bottom: 2px; }
.bf-debug-row { display: grid; grid-template-columns: 100px 1fr; gap: 8px; font-size: 12px; line-height: 1.5; }
.bf-debug-key { color: #94a3b8; font-weight: 500; flex-shrink: 0; }
.bf-debug-val { color: #cbd5e1; word-break: break-word; }

.bf-assessment-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 120ms ease;
  box-sizing: border-box;
  min-width: 0;
}

.bf-assessment-toggle::-webkit-details-marker { display: none; }
.bf-assessment-toggle::marker { content: ""; }

.bf-assessment-toggle:hover { background: rgba(0, 0, 0, 0.02); }

.bf-assessment-toggle:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
  border-radius: var(--radius-lg);
}

.bf-assessment-name {
  font-weight: 700;
  font-size: var(--text-md);
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex-shrink: 1;
  letter-spacing: -0.01em;
}

.bf-assessment-spacer { flex: 1; }

.bf-assessment-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.bf-assessment-toggle:hover .bf-assessment-chevron {
  transform: scale(1.05);
}

.bf-assessment[open] .bf-assessment-chevron {
  transform: rotate(180deg);
}

.bf-assessment-body {
  padding: 4px 16px 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  white-space: pre-wrap;
  border-top: 1px solid var(--color-border);
  padding-top: 12px;
}

.bf-detail-empty {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-style: italic;
}

/* ── Section titles (map, meteogram) ──────────────────────── */

.bf-detail-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin: 0;
}

.bf-detail-icon { font-size: 12px; }

/* ── Map & Meteogram in details ──────────────────────────── */

.bf-detail-mapmeteo-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  width: 100%;
}

.bf-detail-mapblock,
.bf-detail-meteoblock {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.bf-spot-minimap {
  width: 100%;
  height: 300px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  background: var(--color-bg-elevated);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.bf-spot-minimap--nodata {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-style: italic;
}

.bf-map-openlink {
  display: inline-block;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  line-height: 1.2;
  transition: all 180ms ease;
}

.bf-map-openlink:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.bf-spot-meteogram {
  width: 100%;
  min-height: 140px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  background: var(--color-bg-elevated);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.bf-meteogram-chart {
  width: 100%;
  min-height: 140px;
  /* Desktop: Original-Verhalten (Scroll erlaubt wenn Chart breiter ist).
     Mobile: hard hidden — siehe Media-Query unten. */
  overflow-x: auto;
  overflow-y: hidden;
}

.bf-meteogram-chart svg { display: block; }

/* MOBILE: Meteogramm IMMER ohne horizontalen Scroll. Doppeltes Sicherheitsnetz —
   JS rendert Chart auf Container-Breite, CSS clippt zusätzlich auf jeder Parent-Ebene. */
@media (max-width: 640px) {
  .bf-meteogram-chart {
    overflow-x: hidden !important;
    max-width: 100%;
  }
  .bf-meteogram-chart svg { max-width: 100%; }
  .bf-spot-meteogram,
  .bf-detail-meteoblock,
  .bf-detail-mapmeteo-row,
  .bf-spot-details,
  .bf-spot,
  .bf-spot-list,
  .bf-region {
    max-width: 100%;
    overflow-x: hidden;
  }
}

/* Numbers-Toggle: Pill rechts oben im Meteogramm-Block.
   Nur Mobile — Desktop zeigt Zahlen immer und braucht keinen Toggle. */
.bf-meteogram-toolbar { display: none; }
@media (max-width: 640px) {
  .bf-meteogram-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin: 0 0 6px;
  }
}
.bf-meteogram-numbers-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--color-border, #cbd5e1);
  background: var(--color-surface, #fff);
  color: var(--color-text-secondary, #475569);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 150ms, color 150ms, border-color 150ms;
  -webkit-tap-highlight-color: transparent;
}
.bf-meteogram-numbers-toggle:hover {
  background: var(--color-surface-2, #f1f5f9);
  border-color: var(--color-text-muted, #94a3b8);
}
.bf-meteogram-numbers-toggle[aria-pressed="true"] {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.bf-meteogram-numbers-toggle-icon {
  font-size: 13px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.bf-meteogram-loading,
.bf-meteogram-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-style: italic;
  text-align: center;
}

.bf-minimap-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-style: italic;
}

/* ── Footer ──────────────────────────────────────────────── */

.bf-footer {
  margin-top: var(--space-12);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: center;
  letter-spacing: 0.02em;
  opacity: 0.7;
}

.bf-footer p { margin: 0; }
.bf-footer p + p { margin-top: var(--space-2); }
.bf-footer-link {
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.bf-footer-link:hover { color: #a78bfa; }

/* ── Discovery-CTA: E-Mail-Briefing abonnieren ────────── */
.bf-cta-subscribe {
  margin-top: var(--space-8);
  padding: var(--space-4) var(--space-5);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(139,92,246,0.14), rgba(139,92,246,0.04));
  border: 1px solid rgba(139,92,246,0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.bf-cta-subscribe__text {
  display: flex; flex-direction: column; gap: 2px;
  min-width: 0; flex: 1 1 260px;
}
.bf-cta-subscribe__text strong {
  font-size: var(--text-sm); color: var(--color-text);
}
.bf-cta-subscribe__text span {
  font-size: var(--text-xs); color: var(--color-text-muted);
}
.bf-cta-subscribe__actions {
  display: flex; gap: var(--space-2); align-items: center; flex-shrink: 0;
}
.bf-cta-subscribe__btn {
  padding: 10px 16px;
  border-radius: 8px;
  background: #7c3aed; color: white;
  text-decoration: none;
  font-size: var(--text-sm); font-weight: 600;
  min-height: 40px;
  display: inline-flex; align-items: center;
}
.bf-cta-subscribe__btn:hover { background: #a78bfa; }
.bf-cta-subscribe__dismiss {
  background: transparent; border: 0;
  color: var(--color-text-muted);
  font-size: 22px; line-height: 1;
  cursor: pointer; padding: 4px 10px;
  border-radius: 6px; min-height: 36px;
}
.bf-cta-subscribe__dismiss:hover { color: var(--color-text); background: rgba(0,0,0,0.04); }

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 640px) {
  .bf {
    padding: var(--space-3) var(--space-3) var(--space-12);
  }

  .bf-header {
    gap: var(--space-2);
    padding: var(--space-3) 0 var(--space-4);
    margin-bottom: var(--space-4);
  }

  .bf-logo { font-size: 1.2rem; }
  .bf-date-range { display: none; }

  /* Timestamp: ausserhalb des Flex-Flows in der oberen rechten Ecke
     der gesamten Briefing-Seite — kein Ueberdecken von Header oder
     Tagesauswahl, klein und unauffaellig. */
  .bf { position: relative; }
  .bf-timestamp {
    position: absolute !important;
    top: 4px;
    right: 8px;
    font-size: 9px !important;
    line-height: 1 !important;
    opacity: 0.55;
    color: var(--color-text-muted);
    white-space: nowrap;
    z-index: 5;
    pointer-events: none;
  }

  .bf-day-tabs { gap: 6px; padding-bottom: var(--space-3); margin-bottom: var(--space-3); }
  .bf-day-tab { min-width: 52px; padding: 10px 10px; border-radius: var(--radius-md); }
  .bf-tab-date { font-size: 1.1rem; }
  .bf-tab-weekday { font-size: 9px; }

  .bf-filters {
    margin-bottom: var(--space-4);
    padding: 10px 12px;
    gap: 8px;
  }
  .bf-filter-chips { gap: 5px; }
  .bf-filter-chip { font-size: 10.5px; padding: 4px 10px; }

  /* Gruppen auf Mobile: Label oben, Controls darunter (vollbreit) */
  .bf-filter-group {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .bf-filter-label {
    font-size: 9.5px;
    min-width: 0;
  }
  .bf-filter-group-actions {
    margin-left: 0;
    justify-content: flex-end;
    gap: 6px;
  }
  .bf-filter-group--region .bf-filter-chips {
    order: 1;
  }
  .bf-filter-group--region .bf-filter-group-actions {
    order: 2;
  }

  .bf-filter-quality-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-top: 8px;
  }

  .bf-tier-chips { gap: 5px; }
  .bf-tier-chip {
    flex: 1 1 0;
    justify-content: center;
    font-size: 11.5px;
    padding: 7px 10px;
    min-height: 36px;
  }
  .bf-tier-label { font-size: 11.5px; }
  .bf-rating-filter {
    width: 100%;
    flex: 1 1 auto;
    justify-content: space-between;
    padding: 6px 14px;
    min-height: 40px;
  }
  .bf-rating-slider {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: 8px;
  }
  .bf-rating-slider::-webkit-slider-thumb { width: 24px; height: 24px; }
  .bf-rating-slider::-moz-range-thumb { width: 24px; height: 24px; }

  .bf-day-info { padding: var(--space-2) 0 var(--space-3); margin-bottom: var(--space-4); }
  .bf-day-title { font-size: 1rem; }

  .bf-region { margin-bottom: var(--space-6); }
  .bf-region-head {
    border-bottom-width: 1.5px;
    padding: 10px 8px;
    margin-bottom: var(--space-2);
    min-height: 48px;
  }
  .bf-region-chevron { width: 32px; height: 32px; font-size: 16px; }
  .bf-region-count { min-width: 24px; height: 24px; font-size: 11.5px; }
  /* Mobile: Verteilungs-Pill kompakter darstellen, lange Listen abkuerzen */
  .bf-region-dist { gap: 6px; font-size: 10.5px; }
  .bf-region-dist-item::before { width: 7px; height: 7px; }
  .bf-spot-chevron { width: 30px; height: 30px; font-size: 15px; }

  .bf-spot { border-radius: var(--radius-md); }
  .bf-spot-toggle { padding: 10px 12px; }
  .bf-spot-name { font-size: var(--text-sm); }
  .bf-spot-status { gap: 4px; margin-top: 6px; }
  .bf-chip { font-size: 10px; padding: 2px 8px; }
  .bf-chip--type { display: none; }
  .bf-chip--warn { max-width: 180px; }
  .bf-spot-scores { gap: 4px; margin-top: 4px; }
  .bf-score-pill { font-size: 9.5px; padding: 1px 7px; }
  .bf-spot-rating { font-size: 1.15rem; }
  .bf-spot:hover { transform: none; }

  .bf-spot-details { padding: var(--space-3) var(--space-3) var(--space-4); }
  .bf-detail-top { flex-direction: column; gap: 10px; }
  .bf-label { font-size: 11.5px; padding: 5px 10px; }
  .bf-label-icon { font-size: 12px; width: 14px; }
  .bf-spot-minimap { height: 220px; }
  .bf-filter-map { height: 220px; }

  .bf-content-empty { padding: var(--space-12) var(--space-4); }
}

/* Tablet-only: side-by-side map+meteogram in detail */
@media (min-width: 641px) and (max-width: 960px) {
  .bf { padding: var(--space-5) var(--space-4) var(--space-12); }
}

/* Extra polish: reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .bf-spot,
  .bf-day-tab,
  .bf-btn-gen,
  .bf-filter-chip,
  .bf-spot-chevron,
  .bf-region-chevron,
  .bf-region-head,
  .bf-spot-details {
    transition: none !important;
    animation: none !important;
  }
}
