/* ============================================================
   MAP-TAB — Brand-Redesign (Discover-DNA, OFFENES Konzept)
   - randlose Karte (Full-Bleed via 100dvh in modern.css)
   - KEIN umrandeter Box-Container: Inhalt schwebt offen über der
     Karte auf einem Scrim-Verlauf (wie Discover/Los-geht's)
   - Top-Controls oben links: Credits + Info + Personality
   - Start-Button mit bewegter Audio-Wave (Guide redet gleich)
   - Navbar bei aktiver Tour ausgeblendet
   Wird in index.html NACH modern.css/discover-tab.css/navbar.css
   geladen und überschreibt die alten .nav-*-Styles.
   ============================================================ */

/* ---- Aktive Tour: Navbar + Pre-Start-Chrome weg ---- */
body.tour-active .custom-tab-bar { display: none !important; }
body.tour-active #navTopControls { display: none !important; }
/* Pre-Start-Karte (Titel · Stopps · Startpunkt) schien im Live-View unten durch
   und wirkte wie eine Navbar unter den Controls — im Live-View komplett weg. */
body.tour-active #navigationPanel { display: none !important; }

/* ---- Top-Controls (oben auf der Karte, zentriert + beschriftet) ---- */
.nav-top-controls {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  left: 0;
  right: 0;
  z-index: var(--z-sticky, 1020);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 14px;
}

/* Einheitliche Pill für alle 3 Top-Controls (Icon + Label) */
.nav-top-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 15px;
  border-radius: 19px;
  background: rgba(10, 11, 18, 0.72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--dsc-bd, rgba(165, 178, 255, 0.16));
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-top-pill svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: var(--dsc-mut, rgba(226, 229, 255, 0.7));
}
.nav-top-pill:active { background: rgba(20, 22, 34, 0.85); }

/* Credits-Pill */
.nav-credits-chip { font-weight: 700; }
.nav-credits-chip-icon {
  color: var(--brand-gold, #FFD60A) !important;
  flex-shrink: 0;
}
#navCreditsCount { font-weight: 700; color: #fff; }
/* Ladezustand: leer statt Platzhalterzeichen im HTML; hält die Breite des
   späteren "—"/Stands, damit die Pille nicht springt. */
#navCreditsCount:empty { display: inline-block; min-width: 1em; }
.nav-credits-chip.purchased #navCreditsCount {
  color: var(--brand-light, #B8D4FF);
  font-size: 12.5px;
  letter-spacing: 0.4px;
}

/* Task C: Low-Credit-Badge (<30 Credits) — amber Färbung + einmaliger Pulse */
.nav-credits-chip.low-credit {
  background: rgba(176, 88, 0, 0.88);
  border-color: rgba(255, 170, 40, 0.65);
}
.nav-credits-chip.low-credit .nav-credits-chip-icon,
.nav-credits-chip.low-credit #navCreditsCount {
  color: #FFD60A;
}
.nav-credits-chip.low-credit-pulse {
  animation: navCreditsLowPulse 0.42s ease-in-out 3;
}
@keyframes navCreditsLowPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 170, 40, 0); }
  50%      { box-shadow: 0 0 0 5px rgba(255, 170, 40, 0.45); }
}
@media (prefers-reduced-motion: reduce) {
  .nav-credits-chip.low-credit-pulse { animation: none; }
}

/* ---- Pre-Start-Overlay: OFFEN, kein Box-Container ---- */
.navigation-panel {
  background: linear-gradient(
    to top,
    rgba(8, 9, 15, 0.96) 30%,
    rgba(8, 9, 15, 0.9) 62%,
    rgba(8, 9, 15, 0) 100%
  ) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-top: none !important;
  box-shadow: none !important;
  padding: 40px 20px 0 !important;
  bottom: calc(70px + var(--safe-area-bottom)) !important; /* im Pre-Start über der Navbar */
}
/* Abstände über Margins statt flex-gap: showNavigationPrompt() setzt
   inline style.display='block' auf .nav-full-content, damit greift gap nie
   (Befund 04.10.: Feld und Knopf klebten ohne Abstand aneinander). */
.nav-full-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding-bottom: 16px;
}
.nav-full-content > .nav-dropdown-container { margin-top: 10px !important; }
.nav-full-content > .nav-start-button { margin-top: 12px !important; }

/* Meta-Zeile: Stadt · Stops · km · Dauer */
.nav-meta-text {
  font-size: 13px;
  color: var(--dsc-mut, rgba(226, 229, 255, 0.6));
  font-weight: 500;
}
.nav-meta-text #navTourTitle { color: #fff; font-weight: 700; }
.nav-meta-dot { opacity: 0.4; margin: 0 4px; }
.nav-meta-dot::before { content: "·"; }  /* Trenner per CSS: kein Platzhaltertext im HTML */

/* Startpunkt: tippbare Zeile (nativer iOS-Picker), wie Discover-Suchfeld */
.nav-dropdown-container { margin: 0; width: 100%; }
.nav-dropdown-label {
  display: block !important;
  font-size: 11px !important;
  line-height: 14px;
  font-weight: 700 !important;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--dsc-mut2, rgba(226, 229, 255, 0.42)) !important;
  margin-bottom: 6px !important;
}
.nav-dropdown {
  display: block;
  width: 100%;
  height: 44px;
  box-sizing: border-box;
  padding: 0 40px 0 14px !important;
  line-height: 42px;
  border-radius: 14px !important;
  border: 1px solid var(--dsc-bd, rgba(165, 178, 255, 0.16)) !important;
  background-color: #151724 !important; /* deckend: keine Marker scheinen durch */
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='16' height='16' fill='none' stroke='%23A5B2FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 16px !important;
}
.nav-dropdown:focus {
  outline: none;
  border-color: var(--brand-mid, #6B7FE8) !important;
  box-shadow: 0 0 0 3px rgba(107, 127, 232, 0.18) !important;
}

/* Continuation-Pfad (fortgesetzte Tour) */
.nav-continuation-container { display: flex; flex-direction: column; gap: 0; }
.nav-starting-point-text {
  background: #151729 !important; /* deckend, leicht violett getönt */
  border: 1px solid rgba(123, 137, 255, 0.22) !important;
  border-radius: 14px !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85) !important;
}
/* Tippfläche 44 px; negativer Unterrand, damit der sichtbare Abstand
   zum Start-Knopf wie beim Auswahlfeld ~12 px bleibt. */
.nav-reset-link {
  min-height: 44px;
  padding: 0 !important;
  margin-bottom: -12px;
  font-size: 13px;
  color: var(--brand-light, #B8D4FF) !important;
}
.nav-reset-link:hover { color: #fff !important; }

/* ---- Großer Start-Button mit bewegter Audio-Wave ---- */
.nav-start-button {
  width: 100% !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  box-sizing: border-box;
  padding: 0 20px !important;
  background: var(--brand-cta, linear-gradient(135deg, #6B7FE8, #4F46E5)) !important;
  border: none !important;
  border-radius: 14px !important;
  color: #fff !important;
  font-family: Verdana, -apple-system, sans-serif;
  font-size: 16px !important;
  font-weight: 800 !important;
  letter-spacing: 0.2px;
  cursor: pointer;
  box-shadow: 0 8px 26px rgba(79, 70, 229, 0.5) !important;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.nav-start-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(79, 70, 229, 0.6) !important;
}
.nav-start-button:active { transform: translateY(0); }
.nav-start-button:disabled { opacity: 0.75; cursor: default; }

/* Audio-Wave im Button */
.nav-start-wave {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 20px;
  flex-shrink: 0;
}
.nav-start-wave i {
  width: 3px;
  border-radius: 3px;
  background: #fff;
  animation: navStartWave 1s ease-in-out infinite;
}
.nav-start-wave i:nth-child(1) { height: 8px;  animation-delay: 0s; }
.nav-start-wave i:nth-child(2) { height: 16px; animation-delay: 0.12s; }
.nav-start-wave i:nth-child(3) { height: 20px; animation-delay: 0.24s; }
.nav-start-wave i:nth-child(4) { height: 13px; animation-delay: 0.36s; }
.nav-start-wave i:nth-child(5) { height: 9px;  animation-delay: 0.48s; }
@keyframes navStartWave {
  0%, 100% { transform: scaleY(0.4); opacity: 0.7; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* Minimized: kleine schwebende Pille (selten genutzt) */
.navigation-panel.minimized .nav-minimized-content { display: flex !important; justify-content: center; }
.nav-minimized-content { margin: 0; }
.nav-minimized-layout {
  background: rgba(12, 13, 20, 0.82);
  backdrop-filter: blur(28px) saturate(170%);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  border: 1px solid var(--dsc-bd, rgba(165, 178, 255, 0.16));
  border-radius: 16px;
  width: 100%;
}
.nav-minimized-icon svg { color: var(--dsc-mut, rgba(226, 229, 255, 0.6)); }

/* ============================================================
   GUIDE-PERSONALITY-PANEL — Brand-Override (war noch Blau #007AFF)
   ============================================================ */
.personality-panel-content {
  background: #0c0d14 !important;
  border: 1px solid var(--dsc-bd, rgba(165, 178, 255, 0.16)) !important;
  border-bottom: none !important;
}
.personality-panel-header h3 {
  font-family: Verdana, -apple-system, sans-serif;
  letter-spacing: -0.3px;
}
.personality-section-label {
  color: var(--dsc-mut2, rgba(226, 229, 255, 0.42)) !important;
  letter-spacing: 1.2px !important;
}
.personality-option.selected {
  border-color: var(--brand-mid, #6B7FE8) !important;
  background: rgba(107, 127, 232, 0.15) !important;
}
.length-option.selected {
  border-color: var(--brand-mid, #6B7FE8) !important;
  background: rgba(107, 127, 232, 0.15) !important;
  color: #fff !important;
}
.personality-save-btn {
  background: var(--brand-cta, linear-gradient(135deg, #6B7FE8, #4F46E5)) !important;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4) !important;
}
.personality-save-btn:hover {
  filter: brightness(1.05);
  box-shadow: 0 10px 28px rgba(79, 70, 229, 0.5) !important;
}
.personality-save-btn:active { filter: brightness(0.96); }

/* ---- Map-Kamera-Controls (oben rechts): Übersicht + Follow ----
   Aufgebaut in navigationService.addCameraControls() (früher ein per JS
   injiziertes <style>-Tag). Sitzt unter Top-Bar + Turn-Card, sichtbar nur
   während aktiver Navigation ([hidden] steuert der Service). ---- */
.camera-controls {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 140px);
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1005;
}
.camera-controls[hidden] { display: none; }

.camera-control-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
  background: rgba(10, 11, 18, 0.72);
  border: 1px solid var(--dsc-bd, rgba(165, 178, 255, 0.16));
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}
.camera-control-btn svg { width: 20px; height: 20px; }
.camera-control-btn:active { transform: scale(0.96); }
.camera-control-btn.active {
  background: rgba(107, 127, 232, 0.22);
  border-color: var(--brand-mid, #6B7FE8);
  color: var(--brand-light, #9AA6FF);
}
/* Navigation ohne GPS-Freigabe: Folgen ist unmöglich (Übersicht bleibt nutzbar) */
.camera-control-btn:disabled {
  opacity: 0.4;
  cursor: default;
}
.camera-control-btn:disabled:active { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .camera-control-btn { transition: none; }
  .camera-control-btn:active { transform: none; }
}

/* ============================================================
   NAVIGATION-INTRO-MODAL — Brand-Override (war Blau #0066FF)
   ============================================================ */
.nav-intro-content {
  background: #0c0d14 !important;
  border: 1px solid var(--dsc-bd, rgba(165, 178, 255, 0.16)) !important;
}
.nav-intro-features li strong { color: var(--brand-light, #B8D4FF) !important; }
.nav-intro-cta {
  background: var(--brand-cta, linear-gradient(135deg, #6B7FE8, #4F46E5)) !important;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4) !important;
}
.nav-intro-cta:hover { filter: brightness(1.05); }

/* ============================================================
   STOPP-MARKER (Foto-Kreis + Zahlen-Badge) + STOPP-POPUP
   Gebaut in src/modules/stopMarkers.js (Design v3_zoom_hybrid_nah,
   Dan 2026-10-04). Größe folgt dem Zoom über --stop-marker-size am
   Kartencontainer (28 px herausgezoomt … 46 px nah). Die Tippfläche
   ist immer mindestens 44 x 44 px.
   ============================================================ */
.stop-marker {
  --smk-size: var(--stop-marker-size, 40px);
  --smk-ring: rgba(255, 255, 255, 0.95);
  width: max(44px, var(--smk-size));
  height: max(44px, var(--smk-size));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
.stop-marker.is-current { --smk-size: calc(var(--stop-marker-size, 40px) * 1.16); }

.stop-marker__photo {
  position: relative;
  width: var(--smk-size);
  height: var(--smk-size);
  border-radius: 50%;
  overflow: hidden;
  background: var(--brand-mid, #6B7FE8);
  box-shadow: 0 0 0 2px var(--smk-ring), 0 4px 12px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.2s ease, filter 0.2s ease, opacity 0.2s ease;
}
.stop-marker__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
}
/* Zahl im Kreis nur ohne Foto (Fallback = heutiger Zahlenkreis) */
.stop-marker__num { display: none; }

.stop-marker__badge {
  position: absolute;
  left: calc(50% + var(--smk-size) * 0.18);
  top: calc(50% + var(--smk-size) * 0.12);
  min-width: max(17px, calc(var(--smk-size) * 0.46));
  height: max(17px, calc(var(--smk-size) * 0.46));
  padding: 0 3px;
  box-sizing: border-box;
  border-radius: 999px;
  background: var(--brand-mid, #6B7FE8);
  border: 2px solid #fff;
  color: #fff;
  font: 700 max(10px, calc(var(--smk-size) * 0.25))/1 var(--font-system, -apple-system, BlinkMacSystemFont, sans-serif);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

/* Besucht: Häkchen ZUSÄTZLICH zur Zahl, Foto leicht gedämpft */
.stop-marker__check {
  display: none;
  position: absolute;
  left: calc(50% + var(--smk-size) * 0.16);
  top: calc(50% - var(--smk-size) * 0.62);
  width: max(15px, calc(var(--smk-size) * 0.36));
  height: max(15px, calc(var(--smk-size) * 0.36));
  padding: 2px;
  box-sizing: border-box;
  border-radius: 50%;
  background: #fff;
  color: var(--brand-indigo, #4F46E5);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}
.stop-marker.is-visited .stop-marker__check { display: flex; }
.stop-marker.is-visited .stop-marker__photo { filter: saturate(0.35) brightness(0.8); }
.stop-marker.is-visited .stop-marker__badge { background: #5b6170; }

/* Nächster/aktueller Stopp: violetter Doppelring, größer, obenauf */
.stop-marker.is-current .stop-marker__photo {
  box-shadow: 0 0 0 2px #fff, 0 0 0 5px var(--brand-mid, #6B7FE8),
              0 0 0 8px rgba(107, 127, 232, 0.35), 0 6px 16px rgba(0, 0, 0, 0.5);
}
/* Angetippt/ausgewählt: hellblauer Ring (ändert NIE den Tourstopp) */
.stop-marker.is-selected .stop-marker__photo {
  box-shadow: 0 0 0 2px #fff, 0 0 0 5px var(--brand-light, #B8D4FF), 0 6px 16px rgba(0, 0, 0, 0.5);
}
.stop-marker.is-current.is-selected .stop-marker__photo {
  box-shadow: 0 0 0 2px #fff, 0 0 0 5px var(--brand-mid, #6B7FE8),
              0 0 0 8px var(--brand-light, #B8D4FF), 0 6px 16px rgba(0, 0, 0, 0.5);
}
.stop-marker:focus-visible .stop-marker__photo {
  box-shadow: 0 0 0 2px #fff, 0 0 0 5px var(--brand-light, #B8D4FF);
}

/* Fallback ohne Foto: der bisherige violette Zahlenkreis */
.stop-marker.no-photo { --smk-size: clamp(28px, var(--stop-marker-size, 32px), 34px); }
.stop-marker.no-photo.is-current { --smk-size: calc(clamp(28px, var(--stop-marker-size, 32px), 34px) * 1.16); }
/* nur die Fläche — Ringe/Schatten der Zustände (aktuell/ausgewählt) gelten
   unverändert auch für den Zahlenkreis */
.stop-marker.no-photo .stop-marker__photo { background: rgba(107, 127, 232, 0.95); }
.stop-marker.no-photo.is-visited .stop-marker__photo { background: #5b6170; filter: none; }
.stop-marker.no-photo .stop-marker__num {
  display: block;
  color: #fff;
  font: 600 14px/1 var(--font-system, -apple-system, BlinkMacSystemFont, sans-serif);
}
.stop-marker.no-photo .stop-marker__badge { display: none; }

/* Nutzerposition bleibt über den Stopp-Markern */
.mapboxgl-marker.user-location-marker { z-index: 50; }

@media (prefers-reduced-motion: reduce) {
  .stop-marker__photo { transition: none; }
}

/* ---- Stopp-Popup: dunkle Karte wie die Navigationskarte ---- */
.mapboxgl-popup.stop-popup { z-index: 60; }
.mapboxgl-popup.stop-popup .mapboxgl-popup-content {
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 18px;
}
.stop-popup__card {
  /* Breite = STOP_POPUP_WIDTH in stopMarkers.js (Ankerwahl rechnet damit) */
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 240px;
  padding: 8px;
  box-sizing: border-box;
  background: rgba(10, 11, 18, 0.88);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(107, 127, 232, 0.6);
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  color: #fff;
  font-family: var(--font-system, -apple-system, BlinkMacSystemFont, sans-serif);
}
.stop-popup__head {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding-left: 4px;
}
.stop-popup__name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  /* Lange Namen umbrechen (max. 2 Zeilen über die Schriftgröße aus
     stopPopupNameSize), nie abschneiden — der Name muss lesbar bleiben. */
  overflow-wrap: anywhere;
  hyphens: auto;
}
.stop-popup__img {
  /* Foto immer GANZ zeigen, nie zuschneiden (Dan 2026-10-04): Seitenverhältnis
     = --stop-photo-ar (vom Bild nach "load" gesetzt, davor 500/281 als
     Platzhalter). Breite = Innenbreite, Höhe höchstens --stop-photo-max
     (JS: min(52vh, 420px, freier Bereich)); Hochformat wird dafür
     proportional schmaler und mittig gesetzt. */
  display: block;
  width: min(100%, calc(var(--stop-photo-max, min(52vh, 420px)) * var(--stop-photo-ar, 500 / 281)));
  aspect-ratio: var(--stop-photo-ar, 500 / 281);
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.06);
}
.stop-popup__img.is-loaded { background: transparent; }
/* Popup musste zum Einpassen vom Marker weg verschoben werden → Spitze
   würde ins Leere zeigen */
.stop-popup.stop-popup--detached .mapboxgl-popup-tip { display: none; }
.stop-popup__close {
  flex: 0 0 auto;
  align-self: flex-start;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.stop-popup__close:active { background: rgba(255, 255, 255, 0.08); }
/* Spitze in Kartenfarbe (je nach Anker) */
.stop-popup.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip,
.stop-popup.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-tip,
.stop-popup.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-tip { border-top-color: rgba(107, 127, 232, 0.85); }
.stop-popup.mapboxgl-popup-anchor-top .mapboxgl-popup-tip,
.stop-popup.mapboxgl-popup-anchor-top-left .mapboxgl-popup-tip,
.stop-popup.mapboxgl-popup-anchor-top-right .mapboxgl-popup-tip { border-bottom-color: rgba(107, 127, 232, 0.85); }
.stop-popup.mapboxgl-popup-anchor-left .mapboxgl-popup-tip { border-right-color: rgba(107, 127, 232, 0.85); }
.stop-popup.mapboxgl-popup-anchor-right .mapboxgl-popup-tip { border-left-color: rgba(107, 127, 232, 0.85); }

/* ---- "Kein GPS"-Pille (links oben unter der Turn-by-Turn-Card) ----
   Aufgebaut in src/modules/gpsPill.js, nur während laufender Tour ohne GPS.
   top wird per JS an die Unterkante von #tourNavPanel gelegt; der Wert hier
   ist der Fallback (gleiche Höhe wie die Kamera-Controls rechts). ---- */
.gps-status-pill {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 140px);
  left: 12px;
  z-index: 1005;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 15px 0 12px;
  border-radius: 22px;
  color: #fff;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  background: rgba(10, 11, 18, 0.72);
  border: 1px solid var(--dsc-bd, rgba(165, 178, 255, 0.16));
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  transition: transform 0.18s ease, background 0.18s ease;
}
.gps-status-pill[hidden] { display: none; }
.gps-status-pill:active { transform: scale(0.96); background: rgba(20, 22, 34, 0.85); }
.gps-status-pill-icon { display: inline-flex; width: 19px; height: 19px; flex-shrink: 0; }
.gps-status-pill-icon svg { width: 19px; height: 19px; }
.gps-status-pill[data-state="denied"] .gps-status-pill-icon,
.gps-status-pill[data-state="prompt"] .gps-status-pill-icon { color: #FFB4A8; }
.gps-status-pill[data-state="searching"] .gps-status-pill-icon {
  color: var(--brand-light, #9AA6FF);
  animation: gps-pill-pulse 1.4s ease-in-out infinite;
}
@keyframes gps-pill-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ---- Freigabe-Hilfe (Bottom-Sheet, nur auf Tipp bei gesperrtem Standort) ---- */
.gps-help-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(4, 5, 10, 0.55);
}
.gps-help-sheet {
  width: 100%;
  max-width: 480px;
  box-sizing: border-box;
  padding: 22px 20px calc(env(safe-area-inset-bottom, 0px) + 18px);
  border-radius: 22px 22px 0 0;
  background: rgba(16, 17, 28, 0.97);
  border: 1px solid var(--dsc-bd, rgba(165, 178, 255, 0.16));
  border-bottom: none;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
  color: #fff;
  max-height: 85dvh;
  overflow-y: auto;
}
.gps-help-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.gps-help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
  color: #FFB4A8;
  background: rgba(255, 140, 120, 0.12);
}
.gps-help-icon svg { width: 22px; height: 22px; }
.gps-help-title { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.3; color: #fff; }
.gps-help-intro { margin: 0 0 14px; font-size: 14.5px; line-height: 1.45; color: rgba(226, 229, 255, 0.78); }
.gps-help-steps { margin: 10px 0 4px; padding-left: 22px; font-size: 14px; line-height: 1.5; color: #fff; }
.gps-help-steps li + li { margin-top: 8px; }
.gps-help-steps.single { padding-left: 0; }
.gps-help-steps.single p { margin: 0; }
.gps-help-status { margin: 10px 0 0; font-size: 13.5px; line-height: 1.4; color: #FFB4A8; }
.gps-help-status[hidden] { display: none; }
.gps-help-retry,
.gps-help-reload,
.gps-help-close {
  display: block;
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  font: inherit;
  font-size: 15.5px;
  font-weight: 650;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.gps-help-retry {
  border: none;
  color: #fff;
  background: var(--brand-cta, linear-gradient(135deg, #6B7FE8 0%, #4F46E5 100%));
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
}
.gps-help-retry:disabled { opacity: 0.6; cursor: default; }
/* Schritt 2: gleich gross wie Schritt 1; nach erneuter Abweisung (.next) hervorgehoben. */
.gps-help-step-reload { margin-top: 16px; }
.gps-help-reload-hint { margin: 0 0 10px; font-size: 13.5px; line-height: 1.45; color: rgba(226, 229, 255, 0.78); }
.gps-help-reload {
  border: 1px solid rgba(154, 166, 255, 0.55);
  color: #fff;
  background: rgba(107, 127, 232, 0.22);
}
.gps-help-step-reload.next .gps-help-reload {
  border-color: transparent;
  background: var(--brand-cta, linear-gradient(135deg, #6B7FE8 0%, #4F46E5 100%));
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
}
.gps-help-manual { margin-top: 14px; font-size: 14px; color: rgba(226, 229, 255, 0.78); }
.gps-help-manual summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  color: rgba(226, 229, 255, 0.9);
  -webkit-tap-highlight-color: transparent;
}
.gps-help-manual summary::-webkit-details-marker { display: none; }
.gps-help-manual summary::before {
  content: '';
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  margin-left: 2px;
  border-right: 2px solid rgba(154, 166, 255, 0.9);
  border-bottom: 2px solid rgba(154, 166, 255, 0.9);
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
}
.gps-help-manual[open] summary::before { transform: rotate(45deg); }
.gps-help-close {
  margin-top: 8px;
  border: none;
  background: transparent;
  color: rgba(226, 229, 255, 0.72);
}
@media (prefers-reduced-motion: reduce) {
  .gps-status-pill { transition: none; }
  .gps-status-pill:active { transform: none; }
  .gps-status-pill[data-state="searching"] .gps-status-pill-icon { animation: none; }
}
