html, body { height: 100%; margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
#bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 1000;
  min-height: 44px; display: flex; align-items: center; gap: 14px; padding: 0 14px; flex-wrap: wrap;
  background: rgba(24, 28, 34, 0.94); color: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4);
}
#title { font-weight: 700; letter-spacing: .3px; color: #fff; text-decoration: none; }
#summary { font-size: 14px; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
#nav { display: flex; align-items: center; gap: 14px; font-size: 14px; margin-left: auto; }
#nav a { color: #fff; text-decoration: none; opacity: .9; }
#nav a:hover { opacity: 1; text-decoration: underline; }
#langsw { display: inline-flex; align-items: center; gap: 4px; margin-left: 4px; }
#langsw .sep { opacity: .5; }
.lang-btn { background: none; border: 0; color: #fff; opacity: .55; font: inherit; font-size: 13px; cursor: pointer; padding: 2px 4px; }
.lang-btn.active { opacity: 1; font-weight: 700; border-bottom: 2px solid #1e88e5; }
@media (max-width: 560px) {
  #bar { padding: 6px 10px; gap: 8px; }
  #summary { order: 3; flex-basis: 100%; font-size: 13px; }
  #nav { font-size: 13px; gap: 10px; }
  #map { top: 66px !important; }
}
#map { position: absolute; top: 44px; bottom: 0; left: 0; right: 0; }
#legend {
  position: absolute; bottom: 22px; left: 10px; z-index: 1000;
  background: rgba(255,255,255,.94); border-radius: 6px; padding: 8px 10px;
  font-size: 13px; line-height: 1.6; box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.35); }
.dot.hop { background: #1e88e5; }
.dot.end { background: #e53935; }
.dot.unknown { background: #9e9e9e; }
.hop-marker {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff;
  color: #fff; font-weight: 700; font-size: 13px; line-height: 22px; text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.hop-marker.hop { background: #1e88e5; }
.hop-marker.end { background: #e53935; }
.hop-marker.unknown { background: #9e9e9e; }
.leaflet-popup-content { font-size: 13px; line-height: 1.5; }
.leaflet-popup-content b { font-size: 14px; }
.leaflet-popup-content .hop-head { display: block; font-size: 15px; color: #1e88e5; margin-bottom: 2px; }
.leaflet-popup-content .hop-head.unknown { color: #757575; }
.leaflet-popup-content code { background: #eee; padding: 0 4px; border-radius: 3px; }
#notice {
  position: absolute; top: 56px; left: 50%; transform: translateX(-50%); z-index: 1000;
  background: rgba(255,255,255,.96); border-left: 4px solid #1e88e5; border-radius: 6px;
  padding: 10px 14px; font-size: 14px; line-height: 1.5; max-width: 90vw; box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
#notice code { background: #eee; padding: 0 4px; border-radius: 3px; }

/* Rechtsseiten */
body.doc { background: #f4f5f7; color: #1c1f24; }
body.doc #bar { position: sticky; }
main.doc {
  max-width: 800px; margin: 24px auto 48px; padding: 28px 32px; background: #fff;
  border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.08); line-height: 1.6; font-size: 15.5px;
}
main.doc h1 { font-size: 26px; margin: 0 0 6px; }
main.doc h2 { font-size: 18px; margin: 26px 0 8px; color: #1e88e5; }
main.doc p, main.doc ul { margin: 8px 0; }
main.doc .note { font-size: 13.5px; color: #666; border-left: 3px solid #ccc; padding-left: 10px; }
main.doc address { font-style: normal; }
main.doc a { color: #1565c0; }
@media (max-width: 560px) { main.doc { margin: 12px; padding: 18px; } }
