/* Einstiegsseite «Übersicht» (pages/uebersicht.py) – alles unter #ueb-root
   abgegrenzt, damit keine andere Seite beeinflusst wird. */

#ueb-root {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 1fr);
  /* 52px Navbar + 28px Footer (app.py), wie die Streckenansicht */
  height: calc(100vh - 52px - 28px);
  font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f5f5f7;
  color: #1d1d1f;
}

#ueb-root .ueb-map-wrap { position: relative; min-height: 320px; }

#ueb-root .ueb-side { padding: 24px 24px 16px; overflow-y: auto; }
#ueb-root .ueb-title { font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 4px; }
#ueb-root .ueb-sub { margin: 0 0 18px; color: #6e6e73; font-size: 14px; }

#ueb-root .ueb-card {
  background: #fff; border: 1px solid rgba(29,29,31,.10); border-radius: 18px;
  padding: 14px 16px; margin-bottom: 12px;
  transition: box-shadow .15s ease, transform .15s ease;
}
#ueb-root .ueb-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.10); transform: translateY(-1px); }

#ueb-root .ueb-head { display: flex; align-items: center; gap: 10px; }
#ueb-root .ueb-dot { display: inline-block; border-radius: 50%; flex: none; }
#ueb-root .ueb-name { font-weight: 600; font-size: 16px; color: inherit; text-decoration: none; }
#ueb-root .ueb-name:hover { text-decoration: underline; }
#ueb-root .ueb-verdict { margin-left: auto; font-weight: 600; font-size: 14px; text-align: right; }

#ueb-root .ueb-dirs { margin: 10px 0 8px; border-top: 1px solid rgba(29,29,31,.08); padding-top: 8px; }
#ueb-root .ueb-row { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 2px 0; }
#ueb-root .ueb-dir { font-weight: 600; min-width: 36px; }
#ueb-root .ueb-dir-label { color: #6e6e73; }
#ueb-root .ueb-dir-avg { margin-left: auto; color: #6e6e73; font-variant-numeric: tabular-nums; }

#ueb-root .ueb-links { display: flex; gap: 16px; font-size: 13px; }
#ueb-root .ueb-links a { color: #1d1d1f; text-decoration: none; font-weight: 600; }
#ueb-root .ueb-links a:hover { text-decoration: underline; }

#ueb-root .ueb-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: #6e6e73; margin-top: 6px; }
#ueb-root .ueb-legend .ueb-dot { margin-right: 5px; vertical-align: -1px; }
#ueb-root .ueb-ts { margin-top: 10px; font-size: 11px; font-family: monospace; color: rgba(0,0,0,.4); }

/* Handy / schmale Fenster: Karte oben, Kacheln darunter, Seite scrollt */
@media (max-width: 760px) {
  #ueb-root { grid-template-columns: 1fr; height: auto; }
  #ueb-root .ueb-map-wrap { height: 300px; }
  #ueb-root .ueb-side { padding: 16px; overflow: visible; }
}

/* Marker sind klickbar (springen zur Streckenansicht) */
#ueb-root path.ueb-marker { cursor: pointer; }
