/* OpenWorldSource ui-20261125b (pkg2). MIT.
   Mangel 2: Ebenenliste ganz erreichbar, sichtbarer Scroll-Hinweis, am Rand als schmale Leiste.
   Mangel 9: Globus im Querformat, ISS-Beschriftung oberhalb des Docks.
   Mangel 10: Desktop-Ebenenblatt schmal (max. 300 px, hoechstens 38 vw).
   layoutSheets in ui-einfach setzt Breite und Hoehe per Inline-Stil; dieses CSS stuetzt das JS. */

/* Blatt als Spalte, damit nur der Rumpf scrollt */
body.ows-simple #panel.sheet-half,
body.ows-simple #panel.sheet-full,
body.ows-simple #panel.open,
body.ows-simple.panel-open #panel {
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  min-height: 0 !important;
}
body.ows-simple #panel #panelHead,
body.ows-simple #panel .sheet-head {
  flex: 0 0 auto;
}
body.ows-simple #panel #panelBody,
body.ows-simple #panel .sheet-body {
  flex: 1 1 auto;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-bottom: 56px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.5) rgba(255,255,255,.1);
}
body.ows-simple #panel #panelBody::-webkit-scrollbar,
body.ows-simple #panel .sheet-body::-webkit-scrollbar {
  width: 5px;
}
body.ows-simple #panel #panelBody::-webkit-scrollbar-track,
body.ows-simple #panel .sheet-body::-webkit-scrollbar-track {
  background: rgba(255,255,255,.08);
  border-radius: 99px;
}
body.ows-simple #panel #panelBody::-webkit-scrollbar-thumb,
body.ows-simple #panel .sheet-body::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.45);
  border-radius: 99px;
}

/* Sichtbarer Hinweis, nach Argos als schmale Leiste am Rand plus Verlauf */
body.ows-simple #panel .ows-panel-scroll-hint {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  pointer-events: none;
  height: 40px;
  padding: 16px 12px 6px;
  text-align: center;
  font: 600 11px/1.2 system-ui, sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(245,242,235,.88);
  text-shadow: 0 1px 6px rgba(0,0,0,.7);
  background: linear-gradient(180deg, rgba(12,14,18,0) 0%, rgba(12,14,18,.78) 55%, rgba(12,14,18,.92) 100%);
}
body.ows-simple #panel.ows-panel-more .ows-panel-scroll-hint {
  display: block;
}
body.ows-simple #panel.ows-panel-rail {
  border-radius: 18px !important;
}

/* Desktop und Querformat: schmale Leiste am linken Rand (Argos-Vorbild).
   Die tatsaechliche Breite setzt das JS, weil layoutSheets sonst width:auto !important setzt. */
@media (min-width: 761px) {
  body.ows-simple #panel,
  body.ows-simple #panel.open,
  body.ows-simple.panel-open #panel,
  body.ows-simple #panel.sheet-half,
  body.ows-simple #panel.sheet-full {
    width: min(300px, 38vw) !important;
    max-width: 300px !important;
    right: auto !important;
    left: max(12px, var(--ows-pad-left, 16px)) !important;
  }
  body.ows-simple .ows-counters-mini { grid-template-columns: 1fr 1fr; }
}
@media (max-height: 500px) and (min-width: 700px) {
  body.ows-simple #panel,
  body.ows-simple #panel.open,
  body.ows-simple.panel-open #panel,
  body.ows-simple #panel.sheet-half,
  body.ows-simple #panel.sheet-full {
    width: min(260px, 38vw) !important;
    max-width: 260px !important;
    right: auto !important;
    left: max(10px, var(--ows-pad-left, 12px)) !important;
  }
}

/* Karten-Polster als CSS-Variablen (Globus-Hilfsrahmen, Credits, ISS-HTML) */
body.ows-simple .maplibregl-ctrl-bottom-left,
body.ows-simple .maplibregl-ctrl-bottom-right {
  bottom: calc(var(--ows-map-pad-bottom, var(--ows-dock-h, 64px)) + 4px) !important;
}
body.ows-simple .maplibregl-ctrl-top-left,
body.ows-simple .maplibregl-ctrl-top-right {
  top: calc(var(--ows-map-pad-top, var(--ows-top-h, 56px)) + 4px) !important;
}

/* Ladezeit: Schrift darf den ersten Farbauftrag nicht blockieren */
@font-face {
  font-family: "Exo 2";
  src: url(fonts/exo2-500-latin.woff) format("woff");
  font-weight: 500;
  font-display: swap;
}
img.ki-bg { content-visibility: auto; }
