/*
 * Hoehenprofil unter der Einzelkarte (Inline-SVG aus den GPX-Daten, kein Drittanbieter). Liegt seit 20.11.2026 in der Karte, Knopf links.
 * Eigene Datei, weil WP Rocket minifizierte Alt-Fassungen bestehender CSS-Dateien weiter ausliefert.
 * Hoehe ist fest reserviert: Platzhalter -> SVG ohne Layout-Sprung (CLS 0).
 */
.mtb-elev {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: 140px;
  margin: 8px 0 0;
  overflow: hidden;
  color: #000;
  background: #f2eee6;
  touch-action: pan-y;
}
.mtb-elev__hint {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin: 0;
  padding: 0 12px;
  font-size: .875rem;
  line-height: 1.4;
  color: #6b665d;
  text-align: center;
}
.mtb-elev__svg {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}
.mtb-elev__svg text {
  font-family: inherit;
  font-size: 11px;
  fill: #4a463f;
}
.mtb-elev__guide {
  stroke: #000;
  stroke-width: 1;
  stroke-dasharray: 3 3;
  pointer-events: none;
}
.mtb-elev__dot {
  fill: #fff;
  stroke: #000;
  stroke-width: 2;
  pointer-events: none;
}
.mtb-elev__tip {
  position: absolute;
  top: 4px;
  left: 0;
  z-index: 2;
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  color: #fff;
  background: #000;
  pointer-events: none;
}
.mtb-elev__tip[hidden] { display: none; }
.mtb-elev__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 767px) {
  .mtb-elev { height: 120px; }
}

/* Seit 20.11.2026 in der Karte: unter der Karte nie sichtbar (auch kein Platzhalter, also kein Layout-Sprung);
   das Karten-Skript haengt das Profil unten in die Karte und setzt .mtb-elev--in-map. Knopf links: #elevToggleBtn. */
.mtb-elev:not(.mtb-elev--in-map) { display: none; }
.mtb-elev.mtb-elev--in-map {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 800; /* ueber Kacheln/Linien/Popups (bis 700), unter den Leaflet-Knoepfen (1000) */
  margin: 0;
  background: rgba(242, 238, 230, .9);
  box-shadow: 0 -1px 4px rgba(0, 0, 0, .15);
  cursor: default;
}
.mtb-elev.mtb-elev--in-map.is-hidden { display: none; }
#elevToggleBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  background: #fff;
}
#elevToggleBtn svg { pointer-events: none; }
#elevToggleBtn:not(.is-on) { color: #9a958c; }
/* Untere Leaflet-Steuerung (Wasserzeichen-Logo) über dem Profil statt darauf */
.mtb-has-elev .leaflet-bottom { bottom: 140px; }
@media (max-width: 767px) { .mtb-has-elev .leaflet-bottom { bottom: 120px; } }
