:root {
  --glass-strong: rgba(8, 11, 16, 0.92);
  --ov-bg: #0a0d12;
  --ov-pill: rgba(15, 19, 24, 0.9);
  --ov-stat: #141a22;
  --cyan2-dim: rgba(34, 211, 238, 0.08);
  --bg: #080b10;
  --sur: #0d1117;
  --glass: rgba(13, 17, 23, 0.9);
  --glass2: rgba(18, 24, 33, 0.94);
  --card: #111820;
  --card2: #162030;
  --bord: rgba(255, 255, 255, 0.06);
  --bord2: rgba(255, 255, 255, 0.11);
  --acc: #ff9f00;
  --acc-dim: rgba(255, 159, 0, 0.1);
  --acc-glow: rgba(255, 159, 0, 0.28);
  --cyan: #00e5ff;
  --cyan-dim: rgba(0, 229, 255, 0.08);
  --cyan-glow: rgba(0, 229, 255, 0.28);
  --green: #00e676;
  --red: #ff1744;
  --text: #dce8f0;
  --muted: #4a6070;
  --muted2: #7a98aa;
  /* Taktische Tiefen-Schatten */
  --shadow-acc: 0 0 18px rgba(255, 159, 0, 0.22);
  --shadow-cyan: 0 0 14px rgba(0, 229, 255, 0.18);
  --inset: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
:root[data-theme="light"] {
  --glass-strong: rgba(244, 246, 248, 0.92);
  --ov-bg: #f4f6f8;
  --ov-pill: rgba(255, 255, 255, 0.92);
  --ov-stat: #eef1f4;
  --cyan2-dim: rgba(14, 165, 196, 0.08);
  --bg: #f4f6f8;
  --sur: #ffffff;
  --glass: rgba(255, 255, 255, 0.9);
  --glass2: rgba(245, 247, 249, 0.94);
  --card: #ffffff;
  --card2: #eef1f4;
  --bord: rgba(0, 0, 0, 0.08);
  --bord2: rgba(0, 0, 0, 0.14);
  --acc: #ff9f00;
  --acc-dim: rgba(255, 159, 0, 0.12);
  --acc-glow: rgba(255, 159, 0, 0.35);
  --cyan: #0ea5c4;
  --cyan-dim: rgba(14, 165, 196, 0.1);
  --cyan-glow: rgba(14, 165, 196, 0.3);
  --green: #00a854;
  --red: #e0192f;
  --text: #1a2530;
  --muted: #9aa8b3;
  --muted2: #5c6b78;
  --shadow-acc: 0 0 18px rgba(255, 159, 0, 0.18);
  --shadow-cyan: 0 0 14px rgba(14, 165, 196, 0.15);
  --inset: inset 0 1px 0 rgba(0, 0, 0, 0.03);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html,
body {
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Outfit", sans-serif;
}

#map {
  position: absolute;
  inset: 0;
}

/* Filter NUR auf den WebGL-Canvas – Marker (DOM) bleiben unberührt.
       invert(0.88) + hue-rotate(180deg) = Liberty-Details in Dark-Optik.
       ── Stellschrauben ──────────────────────────────────────────────
       brightness: 0.75 sehr dunkel ← → 0.95 fast hell
       saturate:   0.75 gedämpft   ← → 1.1  satt
       invert:     0.82 weicher    ← → 0.92 harter Kontrast          */
.maplibregl-canvas-container {
  filter: invert(0.88) hue-rotate(180deg) brightness(0.8) saturate(0.85);
}

/* ── LIGHT MODE: Map ohne Invert, leicht aufgehellt ── */
:root[data-theme="light"] .maplibregl-canvas-container {
  filter: brightness(1.04) saturate(0.92);
}

/* Light Mode: Grid-Overlay in dunklem Amber statt hellem */
:root[data-theme="light"] #mapGrid {
  background-image:
    linear-gradient(rgba(180,100,0,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180,100,0,0.06) 1px, transparent 1px);
}

/* Light Mode: Marker-Halos anpassen (dunkler Rand statt dunklem Halo) */
:root[data-theme="light"] .my-spot-marker::before {
  box-shadow:
    0 0 0 3px rgba(255,255,255,0.85),
    0 0 18px rgba(255,159,0,1),
    0 0 36px rgba(255,159,0,0.4);
}
:root[data-theme="light"] .other-spot-marker {
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.9),
    0 0 8px rgba(60,80,100,0.35);
}

/* Light Mode: User-Marker grün statt weiß */
:root[data-theme="light"] .user-marker {
  background: var(--green);
  border-color: rgba(255,255,255,0.95);
  box-shadow:
    0 0 0 3px rgba(255,255,255,0.9),
    0 0 16px rgba(0,168,84,0.6);
}
:root[data-theme="light"] .user-marker::before {
  border-color: rgba(0,168,84,0.45);
}
:root[data-theme="light"] .user-marker::after {
  border-color: rgba(0,168,84,0.2);
}
.maplibregl-ctrl-attrib,
.maplibregl-ctrl-logo {
  display: none !important;
}

/* Lucide SVG-Icon Größe in Rail + Topbar */
.nav-icon {
  width: 17px;
  height: 17px;
  stroke-width: 1.6;
  display: block;
  pointer-events: none;
}

/* News Teaser */
#newsOverlay {
  position: fixed;
  inset: 0;
  z-index: 920;
  background: var(--glass-strong);
  backdrop-filter: blur(6px);
  display: none;
  align-items: flex-end;
  justify-content: center;
}
#newsOverlay.active {
  display: flex;
}
.news-card {
  background: var(--card);
  border: 1px solid var(--bord2);
  border-radius: 22px 22px 0 0;
  width: 100%;
  max-width: 480px;
  padding: 1.5rem 1.25rem max(1.5rem, env(safe-area-inset-bottom));
  animation: newsSlideUp 0.3s ease;
}
@keyframes newsSlideUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.news-emoji {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.news-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.news-body {
  font-size: 0.9rem;
  color: var(--muted2);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}
.news-body b,
.news-body strong {
  color: var(--text);
}
.news-close-btn {
  width: 100%;
  padding: 0.8rem;
  border: none;
  border-radius: 13px;
  background: var(--acc);
  color: #080b10;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
}

/* ── KATEGORIE-FILTER STRIP (unter der Topbar) ─────────────────────── */
.filter-strip {
  position: fixed;
  top: calc(max(0.65rem, env(safe-area-inset-top)) + 0.65rem + 34px + 1px);
  left: 54px;
  right: 0;
  z-index: 190;
  display: none;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--glass-strong);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bord2);
  scrollbar-width: none;
}
.filter-strip::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--bord2);
  color: var(--muted2);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.18s;
}
.filter-pill:hover {
  color: var(--text);
  border-color: rgba(255, 159, 0, 0.2);
}
.filter-pill.active {
  background: var(--acc-dim);
  border-color: var(--acc-glow);
  color: var(--acc);
}
.pill-count {
  font-family: "Space Mono", monospace;
  font-size: 0.68rem;
  opacity: 0.75;
}
.all-pill {
  font-weight: 700;
}

/* ── NAV-RAIL (links, scrollbar, taktisch) ─────────────────────────── */
#navRail {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 54px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: max(0.5rem, env(safe-area-inset-top));
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
  background-color: var(--glass-strong);
  backdrop-filter: blur(24px);
  border-right: 1px solid var(--bord2);
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.4);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  /* Subtiles Grid in der Rail */
  background-image:
    linear-gradient(rgba(255, 159, 0, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 159, 0, 0.025) 1px, transparent 1px);
  background-size: 27px 27px;
  background-color: var(--glass-strong);
}
#navRail::-webkit-scrollbar {
  display: none;
}

/* Logo-Mark oben in der Rail */
.rail-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--acc);
  color: #080b10;
  font-family: "Space Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 0.5rem;
  box-shadow:
    0 0 18px rgba(255, 159, 0, 0.55),
    0 0 6px rgba(255, 159, 0, 0.8);
  letter-spacing: -0.02em;
}

/* Separator */
.rail-sep {
  width: 26px;
  height: 1px;
  background: var(--bord2);
  margin: 5px 0 8px;
  flex-shrink: 0;
}

/* Icon-Button in der Rail */
.nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: none;
  color: var(--muted2); /* heller als vorher */
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  position: relative;
  flex-shrink: 0;
  margin-bottom: 3px;
}
.nav-btn:hover {
  color: var(--text);
  background: rgba(255, 159, 0, 0.07);
  border-color: rgba(255, 159, 0, 0.15);
  box-shadow: 0 0 10px rgba(255, 159, 0, 0.12);
}
.nav-btn:active {
  transform: scale(0.91);
}
.nav-btn.active {
  background: var(--acc-dim);
  border-color: var(--acc-glow);
  color: var(--acc);
  box-shadow:
    0 0 14px rgba(255, 159, 0, 0.35),
    inset 0 0 10px rgba(255, 159, 0, 0.08);
}
.nav-btn .badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 15px;
  height: 15px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 1.5px solid var(--bg);
}

/* ── HEADER-BAR (oben, rechts neben Rail) ──────────────────────────── */
.topbar {
  position: fixed;
  top: 0;
  left: 54px;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  padding: max(0.65rem, env(safe-area-inset-top)) 0.85rem 0.65rem;
  background-color: var(--glass-strong);
  background-image:
    linear-gradient(rgba(255, 159, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 159, 0, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--bord2);
  box-shadow: var(--inset);
  gap: 0.5rem;
}
.topbar > * {
  pointer-events: all;
}

/* Kleine Action-Buttons in der Topbar */
.topbar-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--bord2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted2);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.topbar-btn:hover {
  color: var(--text);
  border-color: rgba(255, 159, 0, 0.2);
  box-shadow: 0 0 10px rgba(255, 159, 0, 0.15);
}
.topbar-btn:active,
.topbar-btn.active {
  background: var(--acc-dim);
  border-color: var(--acc-glow);
  color: var(--acc);
  box-shadow:
    0 0 16px rgba(255, 159, 0, 0.4),
    inset 0 0 8px rgba(255, 159, 0, 0.08);
}
.logo {
  font-family: "Space Mono", monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--acc);
  letter-spacing: 0.05em;
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.logo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 10px var(--acc);
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.7);
  }
}
.logo-sub {
  font-family: "Outfit", sans-serif;
  font-weight: 300;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.15em;
}

.icon-btn {
  width: 45px;
  height: 45px;
  border-radius: 11px;
  border: 1px solid var(--bord2);
  background: var(--glass);
  backdrop-filter: blur(16px);
  color: var(--muted2);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  position: relative;
}
.icon-btn:active,
.icon-btn.active {
  background: var(--acc-dim);
  border-color: var(--acc-glow);
  color: var(--acc);
}
.badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 2px solid var(--bg);
}

.stats-strip {
  position: absolute;
  top: 52px;
  left: calc(54px + 0.85rem);
  right: 0.85rem;
  z-index: 100;
  display: flex;
  gap: 0.5rem;
  pointer-events: none;
}
.stat-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.65rem;
  background: var(--glass-strong);
  backdrop-filter: blur(16px);
  border: 1px solid var(--bord2);
  border-radius: 100px;
  font-size: 0.68rem;
  color: var(--muted2);
  font-family: "Space Mono", monospace;
  box-shadow: var(--inset);
}
.stat-pill .val {
  color: var(--acc);
  font-weight: 700;
}

.fab-wrap {
  position: absolute;
  bottom: 100px;
  right: 1rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.fab {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: none;
  background: var(--acc);
  color: #080b10;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-acc);
  transition: all 0.2s;
}
.fab:active {
  transform: scale(0.9);
}
.fab.active {
  background: var(--red);
  box-shadow: 0 4px 24px rgba(255, 23, 68, 0.4);
}
.fab-label {
  font-size: 0.58rem;
  font-family: "Space Mono", monospace;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

.crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 250;
  pointer-events: none;
  display: none;
}
.crosshair.show {
  display: block;
}
.crosshair::before,
.crosshair::after {
  content: "";
  position: absolute;
  background: var(--acc);
}
.crosshair::before {
  width: 2px;
  height: 24px;
  top: -12px;
  left: -1px;
}
.crosshair::after {
  width: 24px;
  height: 2px;
  top: -1px;
  left: -12px;
}

.place-mode-bar {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 300;
  background: var(--glass2);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 16px;
  padding: 1rem 1.5rem;
  text-align: center;
  display: none;
}
.place-mode-bar.show {
  display: block;
}
.place-mode-bar .pm-icon {
  font-size: 2rem;
  margin-bottom: 0.4rem;
}
.place-mode-bar .pm-text {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
}
.place-mode-bar .pm-sub {
  font-size: 0.72rem;
  color: var(--muted2);
  margin-top: 0.2rem;
}

.dock {
  position: absolute;
  bottom: 0;
  left: 54px;
  right: 0;
  z-index: 200;
  padding: 0.6rem 0.85rem;
  padding-bottom: max(0.6rem, env(safe-area-inset-bottom));
  background: var(--glass-strong);
  backdrop-filter: blur(24px);
  border-top: 1px solid var(--bord2);
  box-shadow: var(--inset);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.dock-btn {
  flex: 1;
  padding: 0.6rem 0.5rem;
  border-radius: 10px;
  border: 1px solid var(--bord);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted2);
  font-size: 0.68rem;
  font-weight: 600;
  font-family: "Outfit", sans-serif;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  transition: all 0.2s;
  white-space: nowrap;
}
.dock-btn .di {
  font-size: 1rem;
}
.dock-btn:active,
.dock-btn.active {
  border-color: var(--acc-glow);
  background: var(--acc-dim);
  color: var(--acc);
  box-shadow:
    0 0 16px rgba(255, 159, 0, 0.3),
    inset 0 0 8px rgba(255, 159, 0, 0.06);
}

.drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.drawer-overlay.show {
  opacity: 1;
  pointer-events: all;
}
.drawer {
  position: absolute;
  bottom: 0;
  left: 54px;
  right: 0;
  z-index: 500;
  background: var(--sur);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  border-top: 1px solid var(--bord2);
  max-height: 72vh;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 -4px 40px rgba(0, 0, 0, 0.5);
}
.drawer.open {
  transform: translateY(0);
}
.drawer-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--bord2);
  margin: 0.75rem auto 0;
  flex-shrink: 0;
}
.drawer-head {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid var(--bord);
  flex-shrink: 0;
}
.drawer-title {
  font-family: "Space Mono", monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--acc);
  letter-spacing: 0.06em;
  flex: 1;
}
.drawer-close {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid var(--bord2);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 1rem 1.5rem;
}

.spot-card {
  background: var(--card);
  border: 1px solid var(--bord);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.sc-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--acc-dim);
  border: 1px solid var(--acc-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.sc-info {
  flex: 1;
  min-width: 0;
}
.sc-name {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sc-detail {
  font-size: 0.72rem;
  color: var(--muted2);
  margin-top: 3px;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.sc-tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 100px;
  background: var(--acc-dim);
  border: 1px solid var(--acc-glow);
  color: var(--acc);
  font-size: 0.65rem;
  font-weight: 600;
  font-family: "Space Mono", monospace;
}
.sc-actions {
  display: flex;
  gap: 0.3rem;
  flex-shrink: 0;
}
.sc-btn {
  height: 32px;
  padding: 0 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--bord2);
  background: var(--card2);
  color: var(--muted2);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
  font-family: "Outfit", sans-serif;
}
.sc-btn:active {
  opacity: 0.7;
}
.sc-btn.primary {
  background: var(--acc);
  border-color: var(--acc);
  color: #0a0d12;
}
.sc-btn.navigate {
  background: rgba(34, 211, 238, 0.1);
  border-color: rgba(34, 211, 238, 0.3);
  color: var(--cyan);
}
.sc-btn.danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--red);
}
.sc-btn.success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--green);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 3px 8px;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 600;
  font-family: "Space Mono", monospace;
}
.status-pill.pending {
  background: rgba(245, 158, 11, 0.1);
  color: var(--acc);
  border: 1px solid var(--acc-glow);
}
.status-pill.accepted {
  background: rgba(16, 185, 129, 0.1);
  color: var(--green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.status-pill.now {
  background: rgba(16, 185, 129, 0.2);
  color: var(--green);
  border: 1px solid rgba(16, 185, 129, 0.4);
  animation: glow-green 1.5s ease infinite;
}
@keyframes glow-green {
  0%,
  100% {
    box-shadow: none;
  }
  50% {
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
  }
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 600;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.modal-overlay.show {
  opacity: 1;
  pointer-events: all;
}
.modal {
  width: 100%;
  max-width: 480px;
  background: var(--sur);
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  border-top: 1px solid var(--bord2);
  padding: 1.25rem;
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  transform: translateY(30px);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 85vh;
  overflow-y: auto;
}
.modal-overlay.show .modal {
  transform: translateY(0);
}
.modal-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 auto 1rem;
}
.modal-title {
  font-family: "Space Mono", monospace;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--acc);
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}
.finp {
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--card);
  border: 1px solid var(--bord2);
  border-radius: 11px;
  color: var(--text);
  font-family: "Outfit", sans-serif;
  font-size: 0.92rem;
  outline: none;
  margin-bottom: 0.6rem;
}
.finp:focus {
  border-color: rgba(245, 158, 11, 0.5);
}
.finp-label {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
  display: block;
  font-weight: 500;
}
.modal-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.8rem;
}
.modal-actions button {
  flex: 1;
}
.btn-primary {
  padding: 0.8rem;
  border-radius: 12px;
  border: none;
  background: var(--acc);
  color: #0a0d12;
  font-weight: 700;
  font-size: 0.9rem;
  font-family: "Outfit", sans-serif;
  cursor: pointer;
}
.btn-ghost {
  padding: 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--bord2);
  background: transparent;
  color: var(--muted2);
  font-weight: 600;
  font-size: 0.9rem;
  font-family: "Outfit", sans-serif;
  cursor: pointer;
}

.profile-avatar-lg {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--acc), #f472b6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 auto 0.75rem;
  overflow: hidden;
  border: 2px solid var(--acc-glow);
}
.profile-avatar-lg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--acc-dim);
  border: 1px solid var(--acc-glow);
  color: var(--acc);
  font-size: 0.7rem;
  margin: 2px;
}
.profile-chip.offer {
  background: var(--cyan2-dim);
  border-color: rgba(34, 211, 238, 0.25);
  color: var(--cyan);
}

#spotDetailMap {
  width: 100%;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid var(--bord2);
}
.spot-detail-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--acc), #f472b6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--acc-glow);
}
.spot-detail-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.radius-choice {
  padding: 0.75rem 0.5rem;
  border-radius: 12px;
  border: 1px solid var(--bord2);
  background: var(--card);
  color: var(--muted2);
  font-family: "Space Mono", monospace;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.radius-choice.selected {
  background: var(--acc-dim);
  border-color: var(--acc-glow);
  color: var(--acc);
}

/* Kategorie-Pills im Radius-Modal */
.rs-cat-strip {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  margin-bottom: 0.75rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.rs-cat-strip::-webkit-scrollbar {
  display: none;
}
.rs-cat-pill {
  flex-shrink: 0;
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  border: 1px solid var(--bord2);
  background: var(--card);
  color: var(--muted2);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  font-family: "Outfit", sans-serif;
  white-space: nowrap;
}
.rs-cat-pill.active {
  background: var(--acc-dim);
  border-color: var(--acc-glow);
  color: var(--acc);
}
.rs-cat-pill:active {
  opacity: 0.7;
}

/* Ergebniskarte im Radius-Drawer: Wetter-Badge */
.sc-weather {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border-radius: 100px;
  background: var(--cyan2-dim);
  border: 1px solid rgba(34, 211, 238, 0.2);
  color: var(--cyan);
  font-size: 0.65rem;
  font-weight: 600;
  font-family: "Space Mono", monospace;
}

/* ── Navigation Overlay ──────────────────────────────────────── */
#naviOverlay {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: var(--ov-bg);
  display: none;
  flex-direction: column;
}
#naviOverlay.active {
  display: flex;
}
#naviMap {
  width: 100%;
  height: 100%;
}
.maplibregl-ctrl-attrib,
.maplibregl-ctrl-logo {
  display: none !important;
}

.navi-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: max(0.85rem, env(safe-area-inset-top)) 1rem 0.85rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(to bottom, var(--ov-bg) 0%, transparent 100%);
  pointer-events: none;
}
.navi-topbar > * {
  pointer-events: auto;
}
.navi-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ov-pill);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.navi-spot-label {
  flex: 1;
  min-width: 0;
}
.navi-spot-label-name {
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.navi-spot-label-sub {
  font-size: 0.68rem;
  color: #64748b;
  font-family: "Space Mono", monospace;
  margin-top: 1px;
}
.navi-recenter-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ov-pill);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #22d3ee;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.navi-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: var(--ov-pill);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px 22px 0 0;
  padding: 1rem 1.1rem;
  padding-bottom: max(1.1rem, env(safe-area-inset-bottom));
}
.navi-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.navi-stat {
  background: var(--ov-stat);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 0.55rem 0.5rem;
  text-align: center;
}
.navi-stat-val {
  font-family: "Space Mono", monospace;
  font-size: 0.88rem;
  font-weight: 700;
  color: #22d3ee;
  line-height: 1.2;
}
.navi-stat-val.amber {
  color: #f59e0b;
}
.navi-stat-label {
  font-size: 0.6rem;
  color: #64748b;
  margin-top: 2px;
}
.navi-legend {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.65rem;
  font-size: 0.68rem;
  color: #64748b;
  align-items: center;
}
.navi-legend-dot {
  display: inline-block;
  width: 14px;
  height: 3px;
  border-radius: 2px;
  vertical-align: middle;
  margin-right: 4px;
}
.navi-stop-btn {
  width: 100%;
  padding: 0.75rem;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  color: #ef4444;
  font-family: "Outfit", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
}
.navi-stop-btn:active {
  transform: scale(0.97);
}
#weeklyCreateMap {
  width: 100%;
  height: 175px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  border: 1px solid var(--bord2);
}
.weekly-share-url {
  background: var(--card);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 11px;
  padding: 0.75rem 1rem;
  font-family: "Space Mono", monospace;
  font-size: 0.7rem;
  color: var(--cyan);
  word-break: break-all;
  margin: 0.75rem 0;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.weekly-countdown {
  font-family: "Space Mono", monospace;
  font-size: 0.72rem;
  color: var(--acc);
  text-align: center;
  padding: 0.35rem 0 0.1rem;
}
.weekly-card {
  background: var(--card);
  border: 1px solid var(--bord);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.5rem;
}
.weekly-card-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}
.weekly-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--cyan2-dim);
  border: 1px solid rgba(34, 211, 238, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.weekly-card-name {
  font-weight: 600;
  font-size: 0.9rem;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.weekly-card-meta {
  font-size: 0.7rem;
  color: var(--muted2);
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.55rem;
  align-items: center;
}
.weekly-card-actions {
  display: flex;
  gap: 0.4rem;
}
.weekly-tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 100px;
  background: var(--cyan2-dim);
  border: 1px solid rgba(34, 211, 238, 0.2);
  color: var(--cyan);
  font-size: 0.65rem;
  font-weight: 600;
  font-family: "Space Mono", monospace;
}

.match-screen {
  position: absolute;
  inset: 0;
  z-index: 800;
  background: var(--ov-bg);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}
.match-screen.show {
  display: flex;
}
.match-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid var(--acc-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  position: relative;
}
.match-ring::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: var(--acc);
  animation: spin 1.5s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.match-label {
  font-family: "Space Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--acc);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.match-name {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.match-spot {
  font-size: 0.85rem;
  color: var(--muted2);
  margin-bottom: 2rem;
}
.match-btn {
  padding: 0.9rem 2.5rem;
  border-radius: 14px;
  border: none;
  background: var(--acc);
  color: #0a0d12;
  font-weight: 700;
  font-size: 1rem;
  font-family: "Outfit", sans-serif;
  cursor: pointer;
}

.toast {
  position: absolute;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--glass2);
  backdrop-filter: blur(20px);
  border: 1px solid var(--bord2);
  border-radius: 100px;
  padding: 0.5rem 1.2rem;
  font-size: 0.82rem;
  font-weight: 500;
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── MAP GRID OVERLAY ────────────────────────────────────────────── */
#mapGrid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 159, 0, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 159, 0, 0.035) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* ── TACTICAL MARKER: Amber Diamond + Radar Ping ────────────────── */
.my-spot-marker {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}
/* Dunkler Halo – hebt Marker vom Kartenhintergrund ab */
.my-spot-marker::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--acc);
  transform: rotate(45deg);
  border-radius: 3px;
  box-shadow:
    0 0 0 3px rgba(8, 11, 16, 0.7),
    0 0 18px rgba(255, 159, 0, 1),
    0 0 36px rgba(255, 159, 0, 0.55);
  z-index: 2;
}
/* Radar-Ping Ring */
.my-spot-marker::after {
  content: "";
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255, 159, 0, 0.8);
  animation: radar-ping 2.4s ease-out infinite;
}
@keyframes radar-ping {
  0% {
    transform: scale(0.3);
    opacity: 1;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

/* ── FREMDE SPOTS ────────────────────────────────────────────────── */
.other-spot-marker {
  width: 16px;
  height: 16px;
  background: #7a98aa;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 0 0 2px rgba(8, 11, 16, 0.6),
    0 0 10px rgba(100, 140, 160, 0.6);
  cursor: pointer;
  position: relative;
}
.other-spot-marker.is-online {
  background: var(--cyan);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 0 0 2px rgba(8, 11, 16, 0.6),
    0 0 16px rgba(0, 229, 255, 0.85);
}
.other-spot-marker.is-online::after {
  content: "";
  position: absolute;
  top: -4px;
  right: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  border: 1.5px solid #080b10;
  box-shadow: 0 0 7px rgba(0, 230, 118, 1);
  animation: online-pulse 2s ease infinite;
}
@keyframes online-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.6;
  }
}

/* ── EIGENE GPS POSITION ─────────────────────────────────────────── */
.user-marker {
  width: 16px;
  height: 16px;
  background: #ffffff;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 0 0 3px rgba(8, 11, 16, 0.7),
    0 0 20px rgba(255, 255, 255, 0.7);
  position: relative;
}
.user-marker::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  animation: user-ring 2.2s ease-out infinite;
}
.user-marker::after {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  animation: user-ring 2.2s ease-out 0.9s infinite;
}
@keyframes user-ring {
  0% {
    transform: scale(0.4);
    opacity: 1;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

/* ── NEUE SPOTS ──────────────────────────────────────────────────── */
.new-spot-marker {
  width: 18px;
  height: 18px;
  background: var(--green);
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 0 0 2px rgba(8, 11, 16, 0.6),
    0 0 16px rgba(0, 230, 118, 0.9);
  cursor: pointer;
  position: relative;
}
.new-spot-marker::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(0, 230, 118, 0.7);
  animation: new-spot-ring 1.6s ease-out infinite;
}
@keyframes new-spot-ring {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.empty-state .es-icon {
  font-size: 2.5rem;
  margin-bottom: 0.6rem;
  opacity: 0.5;
}

/* Fullscreen Bild */
.img-fullscreen {
  position: absolute;
  inset: 0;
  z-index: 950;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.img-fullscreen.show {
  display: flex;
}
.img-fullscreen img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

/* ── Chat Drawer ─────────────────────────────────────────────────────── */
.chat-wrap {
  display: flex;
  flex-direction: column;
  height: 52vh; /* passt sich dem Drawer an */
}
.chat-partner-bar {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  color: var(--acc);
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--bord);
  margin-bottom: 0.5rem;
  flex-shrink: 0;
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-bottom: 0.5rem;
}
/* Eigene Nachrichten: rechts in Orange */
.chat-bubble {
  max-width: 78%;
  padding: 0.5rem 0.75rem;
  border-radius: 14px;
  font-size: 0.85rem;
  line-height: 1.45;
  word-break: break-word;
}
.chat-bubble.mine {
  align-self: flex-end;
  background: var(--acc);
  color: #0a0d12;
  border-bottom-right-radius: 4px;
}
/* Partner-Nachrichten: links in Dunkel */
.chat-bubble.theirs {
  align-self: flex-start;
  background: var(--card2);
  color: var(--text);
  border: 1px solid var(--bord2);
  border-bottom-left-radius: 4px;
}
.chat-bubble-author {
  font-size: 0.62rem;
  color: var(--muted);
  margin-bottom: 3px;
  display: block;
}
.chat-bubble-time {
  font-size: 0.6rem;
  opacity: 0.55;
  margin-top: 3px;
  text-align: right;
}
.chat-input-row {
  display: flex;
  gap: 0.4rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--bord);
  flex-shrink: 0;
}
.chat-input {
  flex: 1;
  padding: 0.6rem 0.9rem;
  background: var(--card);
  border: 1px solid var(--bord2);
  border-radius: 100px;
  color: var(--text);
  font-family: "Outfit", sans-serif;
  font-size: 0.88rem;
  outline: none;
}
.chat-input:focus {
  border-color: rgba(245, 158, 11, 0.5);
}
.chat-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--acc);
  color: #0a0d12;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chat-send-btn:active {
  opacity: 0.7;
}

/* Chat-Badge – blaue Variante um ihn vom orangen Einladungs-Badge zu unterscheiden */
#chatBadge {
  background: #22d3ee; /* Cyan – passt zum Farbschema der App */
  color: #0a0d12;
}

/* Sanfte Puls-Animation wenn neue Chat-Nachrichten da sind */
/* Der Nutzer sieht sofort dass etwas Neues angekommen ist */
#chatHeaderBtn.has-new {
  animation: chatPulse 2s ease-in-out infinite;
}

@keyframes chatPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

/* ── Bevorstehende Treffen Modal ────────────────────────────────────── */
.meetings-modal {
  max-height: 80vh;
  overflow-y: auto;
}
.meeting-card {
  background: var(--card);
  border: 1px solid var(--bord);
  border-radius: 14px;
  padding: 0.85rem;
  margin-bottom: 0.75rem;
  position: relative;
  overflow: hidden;
}
/* Farbiger linker Rand zeigt Dringlichkeit auf einen Blick */
.meeting-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 14px 0 0 14px;
}
.meeting-card.urgent::before {
  background: #ef4444;
} /* < 2h  → Rot    */
.meeting-card.today::before {
  background: #f59e0b;
} /* heute → Orange */
.meeting-card.upcoming::before {
  background: #10b981;
} /* >heute→ Grün   */

.meeting-spot {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}
.meeting-time {
  font-size: 0.75rem;
  color: var(--muted2);
  margin-bottom: 0.35rem;
}
.meeting-countdown {
  display: inline-block;
  font-size: 0.68rem;
  font-family: "Space Mono", monospace;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 100px;
  margin-bottom: 0.5rem;
}
.meeting-card.urgent .meeting-countdown {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}
.meeting-card.today .meeting-countdown {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}
.meeting-card.upcoming .meeting-countdown {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.meeting-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.6rem;
}
/* Persistenter Toast für dringende Treffen */
#urgentToast {
  position: fixed;
  top: 72px;
  left: 1rem;
  right: 1rem;
  z-index: 1100;
  background: rgba(239, 68, 68, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(239, 68, 68, 0.5);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  color: #fff;
  font-size: 0.82rem;
  display: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
}
#urgentToast.show {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.weather-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  background: var(--card);
  border: 1px solid var(--bord);
  border-radius: 10px 10px 0 0; /* oben rund, unten gerade → geht in Vorhersage über */
  font-size: 0.78rem;
  color: var(--muted2);
}
.weather-bar-standalone {
  border-radius: 10px; /* wenn keine Vorhersage folgt */
  margin-bottom: 0.75rem;
}
.weather-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}
.weather-temp {
  font-family: "Space Mono", monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
}
.weather-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.weather-desc {
  font-size: 0.72rem;
  color: var(--muted2);
}
.weather-wind {
  font-size: 0.65rem;
  color: var(--muted);
}

/* Vorhersage-Leiste – horizontal scrollbar unter dem aktuellen Wetter */
.weather-forecast {
  display: flex;
  gap: 0;
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--bord);
  border-top: none; /* teilt die Trennlinie mit .weather-bar */
  border-radius: 0 0 10px 10px;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0.25rem;
  scrollbar-width: none; /* Firefox: kein Scrollbar sichtbar */
  -ms-overflow-style: none; /* IE */
}
.weather-forecast::-webkit-scrollbar {
  display: none;
} /* Chrome/Safari */

/* Eine einzelne Stunden-Karte in der Vorhersage */
.wf-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0.4rem 0.6rem;
  min-width: 52px;
  flex-shrink: 0;
  border-right: 1px solid var(--bord);
}
.wf-card:last-child {
  border-right: none;
}

/* Aktuelle Stunde hervorheben */
.wf-card.now {
  background: var(--acc-dim);
  border-radius: 8px;
}
.wf-hour {
  font-size: 0.6rem;
  color: var(--muted);
  font-family: "Space Mono", monospace;
}
.wf-emoji {
  font-size: 1.1rem;
}
.wf-temp {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text);
  font-family: "Space Mono", monospace;
}
/* Regenwahrscheinlichkeit – nur anzeigen wenn > 0% */
.wf-rain {
  font-size: 0.58rem;
  color: var(--cyan);
  font-family: "Space Mono", monospace;
}

.weather-loading {
  padding: 0.5rem 0.85rem;
  font-size: 0.72rem;
  color: var(--muted);
  font-family: "Space Mono", monospace;
}

/* ── Favoriten ──────────────────────────────────────────────────────── */
/* Stern-Button am Spot-Detail */
#spotFavoriteBtn {
  background: none;
  border: 1px solid var(--bord2);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font-size: 1rem;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.2s;
  flex-shrink: 0;
}
#spotFavoriteBtn.active {
  background: var(--acc-dim);
  border-color: rgba(245, 158, 11, 0.4);
  color: var(--acc);
}
/* Favoriten-Karte in der Drawer-Liste */
.fav-card {
  background: var(--card);
  border: 1px solid var(--bord);
  border-radius: 12px;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.fav-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}
.fav-info {
  flex: 1;
  min-width: 0;
}
.fav-name {
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 2px;
}
.fav-meta {
  font-size: 0.68rem;
  color: var(--muted);
}
.fav-checkin {
  font-size: 0.65rem;
  color: var(--cyan);
  font-family: "Space Mono", monospace;
  margin-top: 2px;
}
/* Benachrichtigungs-Badge für neue Favoriten-Check-ins */
#favBadge {
  background: var(--acc);
  color: #0a0d12;
}

/* ── HELP PAGE OVERLAY ───────────────────────────────────────────────────── */
#helpPageOverlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
#helpPageOverlay.show {
  opacity: 1;
  pointer-events: all;
}

#helpPageCard {
  width: 82%;
  height: 82vh;
  max-width: 480px;
  background: var(--sur);
  border: 1px solid rgba(255, 159, 0, 0.2);
  border-radius: 22px;
  box-shadow:
    0 0 0 1px rgba(255, 159, 0, 0.06),
    0 32px 80px rgba(0, 0, 0, 0.7),
    0 0 60px rgba(255, 159, 0, 0.06);
  position: relative;
  overflow: hidden;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.32s cubic-bezier(0.17, 0.67, 0.35, 1.1);
  display: flex;
  flex-direction: column;
}
#helpPageOverlay.show #helpPageCard {
  transform: translateY(0) scale(1);
}

#helpPageClose {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--glass-strong);
  border: 1px solid var(--bord2);
  color: var(--muted2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s;
}
#helpPageClose:hover {
  background: var(--card2);
  color: var(--text);
}

#helpPageFrame {
  flex: 1;
  width: 100%;
  border: none;
  border-radius: 22px;
  background: transparent;
}

/* Long-press Ring */
.help-longpress-ring {
  position: fixed;
  pointer-events: none;
  z-index: 1050;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--acc);
  box-shadow: 0 0 14px rgba(255, 159, 0, 0.5);
  transform: translate(-50%, -50%) scale(0);
  transition:
    transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.5s;
  opacity: 0;
}
.help-longpress-ring.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* ── LIVE SPOT MARKER ─────────────────────────────────────────────────────── */
.live-spot-marker {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}
.live-spot-marker::before {
  content: "📡";
  font-size: 1.15rem;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 8px rgba(0, 230, 118, 1))
    drop-shadow(0 0 3px rgba(0, 0, 0, 0.9));
}
.live-spot-marker::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(0, 230, 118, 0.8);
  animation: live-ring 1.8s ease-out infinite;
}
@keyframes live-ring {
  0% {
    transform: scale(0.5);
    opacity: 1;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}
