@import url('./welt.css');
/* Main menu, shared by every page with a `.weltkopf` header (see weltnavigation.js).
   Desktop: a rail on the left. Phone: a bar at the bottom. Its size lives only in these variables;
   page layouts reserve the space with --welt-links (left) and --welt-unten (bottom). */
:root{
  --welt-menue-breite:84px;--welt-menue-hoehe:calc(60px + env(safe-area-inset-bottom));
  --welt-links:var(--welt-menue-breite);--welt-unten:0px;
}
@media(max-width:960px){:root{--welt-links:0px;--welt-unten:var(--welt-menue-hoehe)}}
body:has(.topbar.weltkopf):not(.welt-szenenseite){box-sizing:border-box;padding-left:var(--welt-links);padding-bottom:var(--welt-unten)}
.cinematic.director-clean{--welt-links:0px;--welt-unten:0px}
.cinematic.director-clean .topbar.weltkopf{display:none!important}
.topbar.weltkopf{
  position:fixed;z-index:40;inset:0 auto 0 0;width:var(--welt-menue-breite);height:auto;min-height:0;margin:0;padding:8px 0;
  box-sizing:border-box;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0;
  overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;
  background:var(--w-flaeche);color:var(--w-tinte);border:0;border-right:1px solid var(--w-linie);box-shadow:none;font-family:var(--w-schrift)
}
.weltkopf .welt-symbol{display:block;width:22px;height:22px;flex:none}
.weltkopf .welt-symbol svg{display:block;width:22px;height:22px}
.weltkopf .weltmarke{flex:none;display:flex;align-items:center;justify-content:center;height:56px;margin-bottom:4px;color:var(--w-akzent);text-decoration:none}
.weltkopf .weltmarke .welt-symbol,.weltkopf .weltmarke .welt-symbol svg{width:28px;height:28px}
.weltkopf .weltziele{display:flex;flex-direction:column;flex:none;margin:0;padding:0;border:0}
.weltkopf .welt-werkzeuge{flex:none;margin-top:auto;position:static;min-width:0}
.weltkopf .weltziele a,.weltkopf .welt-werkzeuge summary{
  flex:none;box-sizing:border-box;height:66px;min-height:44px;width:auto;margin:0;padding:0 2px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;
  color:var(--w-leise);background:transparent;border:0;border-radius:0;box-shadow:inset 3px 0 0 transparent;
  font:600 11px/1.15 var(--w-schrift);letter-spacing:0;text-align:center;text-decoration:none;white-space:nowrap;cursor:pointer;list-style:none
}
.welt-werkzeuge summary::-webkit-details-marker{display:none}
.weltkopf .weltziele a:hover,.weltkopf .welt-werkzeuge summary:hover{color:var(--w-tinte)}
.weltkopf .weltziele a[aria-current=page],
body:not(.welt-start):has(#live-network.active) .weltkopf .welt-bahn,
.cinematic .weltkopf .welt-bahn,
.weltkopf .welt-werkzeuge[open] summary{
  background:var(--w-mulde);color:var(--w-tinte);font-weight:800;box-shadow:inset 3px 0 0 var(--w-akzent)
}
.weltkopf :is(a,button,select,summary):focus-visible{outline:2px solid var(--w-akzent);outline-offset:-2px;border-radius:var(--w-ecke)}
.weltkopf .welt-werkzeuge:not([open])>.welt-aktionen{display:none}
.weltkopf .welt-aktionen{
  position:fixed;z-index:41;left:var(--welt-menue-breite);bottom:8px;width:16rem;max-width:calc(100vw - var(--welt-menue-breite) - 8px);
  max-height:calc(100dvh - 16px);overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box;
  display:flex;flex-direction:column;align-items:stretch;gap:2px;padding:6px;margin:0;
  background:var(--w-flaeche);color:var(--w-tinte);border:1px solid var(--w-rand);border-radius:var(--w-ecke);box-shadow:0 8px 22px var(--w-schatten)
}
.weltkopf .welt-aktionen .nav-button{
  display:flex;align-items:center;gap:.7rem;min-height:44px;padding:.55rem .65rem;margin:0;box-sizing:border-box;
  color:var(--w-tinte);background:transparent;border:0;border-radius:var(--w-ecke);
  font:700 .9rem/1.25 var(--w-schrift);text-align:left;text-decoration:none;white-space:normal;cursor:pointer
}
.weltkopf .welt-aktionen :is(.nav-button:hover,.nav-button.active){background:var(--w-mulde);color:var(--w-akzent)}
.weltkopf .nav-button:disabled{cursor:wait;opacity:.5}
.weltkopf .welt-aktionen .current-mode{display:flex;align-items:center;gap:.4rem;border:0;background:none;color:var(--w-leise);padding:.65rem;font-size:.72rem}
.weltkopf .mode-dot{background:var(--w-akzent);box-shadow:none;width:5px;height:5px}
.valley-mode .weltkopf .welt-aktionen :is(#return-ride,.current-mode){display:none}
.weltkopf .welt-aktionen .place-trigger>span:last-child,.weltkopf .welt-aktionen #live-network svg{display:block}
@media(max-width:960px){
  .topbar.weltkopf{
    inset:auto 0 0 0;width:auto;height:var(--welt-menue-hoehe);flex-direction:row;padding:0 0 env(safe-area-inset-bottom);
    overflow:visible;border-right:0;border-top:1px solid var(--w-rand)
  }
  .weltkopf .weltmarke{display:none}
  .weltkopf .weltziele{display:contents}
  .weltkopf .weltziele a,.weltkopf .welt-werkzeuge{flex:1 1 0;min-width:0;margin:0}
  .weltkopf .weltziele a,.weltkopf .welt-werkzeuge summary{height:100%;gap:3px;padding:0 1px;box-shadow:inset 0 2px 0 transparent}
  .weltkopf .weltziele a[aria-current=page],
  body:not(.welt-start):has(#live-network.active) .weltkopf .welt-bahn,
  .cinematic .weltkopf .welt-bahn,
  .weltkopf .welt-werkzeuge[open] summary{background:transparent;box-shadow:inset 0 2px 0 var(--w-akzent)}
  .weltkopf .welt-werkzeuge summary{width:100%}
  .weltkopf .welt-aktionen{left:auto;right:8px;bottom:calc(var(--welt-menue-hoehe) + 8px);width:min(18rem,calc(100vw - 16px));max-width:none;max-height:calc(100dvh - var(--welt-menue-hoehe) - 16px)}
}
/* Schmale Telefone (320 bis 400 px): Gleiche Breiten je Punkt (sechs Punkte, 53 px bei 320 px) schneiden „Unterkünfte“
   an; die Punkte teilen die Leiste nach der Länge ihrer Beschriftung, der Rest verteilt sich gleich als Abstand. */
@media(max-width:400px){
  .weltkopf .weltziele a,.weltkopf .welt-werkzeuge{flex:1 1 auto}
  .weltkopf .weltziele a,.weltkopf .welt-werkzeuge summary{padding:0 3px}
}
.cinematic:not(.director-clean) {display:flex;flex-direction:column;height:100dvh}
.cinematic:not(.director-clean) .topbar.weltkopf {display:flex!important;flex:none}
.cinematic:not(.director-clean) .app {flex:1;min-height:0;height:auto}
.cinematic:not(.director-clean) .observatory,.cinematic:not(.director-clean) .stage {height:100%;min-height:0}
.cinematic .welt-aktionen #return-ride {display:none}

:root{--welt-papier:var(--w-flaeche);--welt-text:var(--w-tinte);--welt-rand:var(--w-rand);--welt-kupfer:var(--w-akzent);--welt-gold:var(--w-akzent)}
.welt-szenenseite{--szenen-titel:88px;background:var(--welt-papier);color:var(--welt-text);overflow:hidden}
/* These scenes place their layers absolutely; the body is the frame beside or above the menu.
   The look of the Umstieg scene itself lives in umstieg.css. */
body.welt-szenenseite{position:fixed;inset:0 0 var(--welt-unten) var(--welt-links);width:auto;height:auto;margin:0}
body.welt-umstieg.clean-view{inset:0}
.welt-umstieg.clean-view .weltkopf{display:none}
body:has(main.app):not(.cinematic){
  --page:var(--w-flaeche);--panel:var(--welt-papier);--line:var(--welt-rand);--text:var(--welt-text);
  --muted:var(--w-leise);--display:var(--w-schrift)
}
body:has(main.app) :is(.traffic-head .search,.filters button,.rail-status,.map-button,.views,.layers-panel,.train-detail,.world-feedback,.timeline-actions button){
  background:var(--welt-papier);border-color:var(--welt-rand);color:var(--welt-text);box-shadow:none
}
body:has(main.app) :is(.traffic .eyebrow,.traffic .count,.train-row small,.row-type,.rail-status b,.detail-top small,.detail-route,.stop-list,.stop-list time,.detail-foot small,.timeline-clock small,.time-ticks,.views button,.compass-button b){color:var(--w-leise)}
body:has(main.app) :is(.traffic .count,.detail-moment,.filters [aria-pressed=true],.train-row.selected,.views button[aria-pressed=true]){background:var(--w-mulde);color:var(--w-tinte);border-color:var(--w-rand)}
body:has(main.app) .train-row:hover{background:var(--w-mulde)}
body:has(main.app) .traffic-title h1{font:400 2rem/1.1 var(--w-titel)}

/* Vollbild (weltnavigation.js) ist der letzte Knopf der Werkzeugleiste der Bühne und trägt deren Knopfgestalt;
   ohne Leiste steht er als eigenes Feld in der Ecke. Am breiten Fenster mit Maus zeigen ihn nur Einzelszenen
   (.scene) und die Ortskarte. */
.welt-vollbild{display:grid;place-items:center;font:650 22px/1 var(--w-schrift);cursor:pointer}
.welt-vollbild:where(:not(.map-tools,.vp-tools,[data-vollbild-leiste])>*){position:absolute;z-index:10;right:max(10px,env(safe-area-inset-right));top:10px;height:44px;min-width:44px;padding:0;border:1px solid var(--w-rand);border-radius:var(--w-ecke);background:var(--w-flaeche);color:var(--w-tinte);box-shadow:0 1px 5px var(--w-schatten)}
@media(min-width:961px) and (pointer:fine){body:not(.village-plan,.welt-gross) .welt-vollbild:not(.scene>*,[data-vollbild-leiste]>*){display:none}}
@media(max-width:960px),(pointer:coarse){
  .stage>.tools{right:63px}
  .welt-umstieg main>.welt-vollbild{top:calc(var(--szenen-titel) + 8px)}
  .welt-umstieg .venue{top:calc(var(--szenen-titel) + 58px)}
}
body.welt-gross{overflow:hidden;overscroll-behavior:none}
body.welt-gross .welt-flaeche{position:fixed!important;inset:0!important;width:100%!important;height:100dvh!important;min-height:0!important;max-height:none!important;border:0;border-radius:0;z-index:100}
body.welt-gross .weltkopf,body.welt-gross .welt-flaeche>:is(.view-heading,.map-id,.map-top,.valley-tools,.ride-ui,.vp-map-caption,.show-details,.map-bottom,.map-foot),body.welt-gross .welt-flaeche .result-dock{display:none!important}
body.welt-gross .welt-vollbild{display:grid!important}
body.welt-gross .welt-vollbild:where(:not(.map-tools,.vp-tools,[data-vollbild-leiste])>*){position:fixed!important;inset:max(10px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) auto auto!important;margin:0!important;z-index:110}
body.welt-gross .welt-flaeche>:is(.map-tools,.vp-tools){position:absolute;inset:max(10px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) auto auto;margin:0;grid-area:auto}
body.welt-gross .welt-flaeche .walk-steps{bottom:max(12px,env(safe-area-inset-bottom))}

.weltkopf .welt-aktionen .welt-jahreszeit{justify-content:space-between;cursor:default}
.welt-jahreszeit select{
  min-height:44px;min-width:0;padding:0 .4rem;color:var(--w-tinte);background:var(--w-mulde);
  border:1px solid var(--w-rand);border-radius:var(--w-ecke);font:inherit;
}
