/* Bärner Bärgloufcup – Strecken-Grafik */
.bbc-strecke{container-type:inline-size;margin:0 0 24px;font-family:inherit}
.bbc-st{
  --bbc-teal:#1CA3A8;--bbc-deep:#0b6b70;--bbc-ink:#1b2b2c;--bbc-mute:#5d6d6e;
  --bbc-panel:#f3f9f9;--bbc-line:#dbe9ea;--bbc-grid:#e3eeee;
  display:grid;grid-template-columns:minmax(0,1fr);
  background:var(--bbc-panel);border-radius:16px;overflow:hidden;color:var(--bbc-ink);
  line-height:1.4;
}
.bbc-st *{box-sizing:border-box}
.bbc-st__map{position:relative;height:320px;background:#e9eeee}
.bbc-st__side{display:flex;flex-direction:column;padding:14px 16px 14px}
.bbc-st__read{display:flex;flex-wrap:wrap;gap:4px 20px;min-height:48px}
.bbc-st__read div{display:flex;flex-direction:column}
.bbc-st__read b{font-size:19px;font-weight:600;white-space:nowrap;line-height:1.2}
.bbc-st__read span{font-size:12px;color:var(--bbc-mute)}
.bbc-st__prof{position:relative;height:190px;margin-top:6px}
.bbc-st__prof svg{position:absolute;inset:0;width:100%;height:100%;touch-action:pan-y;cursor:crosshair;overflow:visible;outline:none}
.bbc-st__prof svg:focus-visible{outline:2px solid var(--bbc-deep);outline-offset:4px;border-radius:4px}
.bbc-st .bbc-g{stroke:var(--bbc-grid);stroke-width:1}
.bbc-st .bbc-t{font-size:11px;fill:var(--bbc-mute);font-family:inherit}
.bbc-st .bbc-line{stroke:var(--bbc-deep);stroke-width:2.2;stroke-linejoin:round}
.bbc-st .bbc-cl{stroke:var(--bbc-ink);stroke-width:1;stroke-dasharray:3 3}
.bbc-st .bbc-cc{fill:#fff;stroke:var(--bbc-ink);stroke-width:2.5}
.bbc-st__foot{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin-top:10px}
.bbc-st__toggle{display:inline-flex;gap:4px}
.bbc-st__toggle button{font:inherit;font-size:13px;font-weight:500;line-height:1.2;border:0;border-radius:6px;cursor:pointer;
  padding:6px 12px;min-height:32px;background:rgba(28,163,168,.10);color:var(--bbc-deep);transition:background-color .15s}
.bbc-st__toggle button:hover{background:rgba(28,163,168,.18)}
.bbc-st__toggle button[aria-pressed="true"]{background:var(--bbc-teal);color:#fff}
.bbc-st__toggle button:focus-visible{outline:2px solid var(--bbc-deep);outline-offset:2px}
.bbc-st__toggle button:disabled{opacity:.4;cursor:default}
.bbc-st__legend{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:12px;color:var(--bbc-mute)}
.bbc-st__legend i{display:inline-block;width:14px;height:7px;border-radius:2px;margin-right:6px;vertical-align:middle}

/* Gesamtansicht: Buttons im Stil der Webseite (Outfit, Radius 6 px, Türkis), aber kleiner */
.bbc-strecken-alle{margin:0 0 24px;font-family:inherit}
.bbc-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px}
.bbc-tab{font:inherit;font-size:14px;font-weight:500;line-height:1.2;border:0;border-radius:6px;cursor:pointer;
  padding:7px 14px;min-height:34px;background:rgba(28,163,168,.10);color:#0b6b70;transition:background-color .15s,color .15s}
.bbc-tab:hover{background:rgba(28,163,168,.18)}
.bbc-tab[aria-selected="true"]{background:#1CA3A8;color:#fff}
.bbc-tab:focus-visible{outline:2px solid #0b6b70;outline-offset:2px}
.bbc-strecke--panel{margin:0}

/* Kartenmarker */
.bbc-st__km{width:22px;height:22px;border-radius:50%;background:#fff;border:1.5px solid var(--bbc-deep,#0b6b70);
  color:#0b6b70;font:600 11px/19px system-ui,sans-serif;text-align:center;box-shadow:0 1px 3px rgba(0,0,0,.18)}
.bbc-st__pin{background:#1CA3A8;color:#fff;font:600 12px/1 system-ui,sans-serif;padding:5px 9px;border-radius:999px;
  box-shadow:0 1px 4px rgba(0,0,0,.25);white-space:nowrap}
.bbc-st__pin--ziel{background:#0b6b70}
.bbc-st__end{width:12px;height:12px;border-radius:50%;background:#fff;border:3px solid #0b6b70;box-shadow:0 1px 3px rgba(0,0,0,.25)}
.bbc-st__dot{width:16px;height:16px;border-radius:50%;background:#fff;border:3.5px solid #1b2b2c;
  box-shadow:0 0 0 6px rgba(28,163,168,.28);pointer-events:none}
.bbc-st__map--fail{display:flex;align-items:center;justify-content:center;text-align:center;padding:20px;color:#5d6d6e;font-size:14px}
.bbc-st__map--fail a{color:#0b6b70}
.bbc-st .maplibregl-ctrl-attrib{font-size:11px}
.bbc-st .maplibregl-cooperative-gesture-screen{font-size:16px}

/* Schmale Spalten (Handy): Werte auf einer Zeile halten */
@container (max-width:440px){
  .bbc-st__read{display:grid;grid-template-columns:1fr 1fr;gap:8px 14px}
  .bbc-st__read b{font-size:16px}
  .bbc-st__map{height:300px}
}
/* Tablet und breiter: nebeneinander, gemessen an der Breite der Spalte */
@container (min-width:600px){
  .bbc-st__map{height:380px}
  .bbc-st__side{padding:18px 22px}
  .bbc-st__prof{height:220px}
}
@container (min-width:860px){
  .bbc-st{grid-template-columns:minmax(0,11fr) minmax(0,9fr)}
  .bbc-st__map{height:auto;min-height:440px}
  .bbc-st__side{padding:20px 24px 18px}
  .bbc-st__read b{font-size:22px}
  .bbc-st__prof{flex:1;height:auto;min-height:240px}
}
/* Fallback für Browser ohne Container Queries */
@supports not (container-type:inline-size){
  @media (min-width:980px){
    .bbc-st{grid-template-columns:minmax(0,11fr) minmax(0,9fr)}
    .bbc-st__map{height:auto;min-height:440px}
    .bbc-st__prof{flex:1;height:auto;min-height:240px}
  }
}
