/* W4 – einfaches Startbild: Globus, Zeitregler 0–12 h, Frage-Leiste. */
html.ows-w4 body.ows-simple .ows-dock,
html.ows-w4 body.ows-simple .ows-3d,
html.ows-w4 body.ows-simple .ows-acct,
html.ows-w4 body.ows-simple .ows-ki,
html.ows-w4 body.ows-simple .g3-switch,
html.ows-w4 body.ows-simple #miniMap,
html.ows-w4 body.ows-simple #hudLL,
html.ows-w4 body.ows-simple #mapHud,
html.ows-w4 body.ows-simple #owsBeta,
html.ows-w4 body.ows-simple #owsBugBtn,
html.ows-w4 body.ows-simple #timeline,
html.ows-w4 #owszkPanel {
  display: none !important;
}
html.ows-w4.ows-w4-quellen #owszkPanel {
  display: flex !important;
}
html.ows-w4.ows-w4-profi body.ows-simple .ows-dock,
html.ows-w4.ows-w4-profi body.ows-simple .ows-3d,
html.ows-w4.ows-w4-profi body.ows-simple .ows-acct,
html.ows-w4.ows-w4-profi body.ows-simple .ows-ki,
html.ows-w4.ows-w4-profi body.ows-simple .g3-switch {
  display: flex !important;
}
html.ows-w4.ows-w4-profi body.ows-simple #miniMap {
  display: block !important;
}

#owsW4Zeit {
  position: fixed;
  z-index: 25;
  left: max(10px, env(safe-area-inset-left, 0px));
  right: max(10px, env(safe-area-inset-right, 0px));
  bottom: max(8px, env(safe-area-inset-bottom, 0px));
  padding: 6px 12px 4px;
  border-radius: 16px;
  background: rgba(10, 14, 26, .72);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
  color: #eef2ff;
  font: 13px/1.2 system-ui, -apple-system, sans-serif;
}
html.ows-w4.ows-w4-profi #owsW4Zeit {
  bottom: calc(var(--ows-dock-h, 58px) + env(safe-area-inset-bottom, 0px) + 8px);
}
#owsW4Zeit .w4-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
#owsW4Zeit .w4-lab {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: .01em;
  min-width: 0;
  flex: 1 1 auto;
}
#owsW4Zeit .w4-lab small {
  font-size: 11px;
  font-weight: 500;
  opacity: .72;
  margin-left: 6px;
}
#owsW4Zeit input[type=range] {
  width: 100%;
  margin: 0;
  accent-color: #7aa2ff;
  height: 24px;
}
#owsW4Zeit .w4-scale {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  opacity: .65;
  margin-top: -2px;
}
#owsW4Zeit .w4-hinweis {
  margin: 0;
  font-size: 10px;
  opacity: .75;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#owsW4Zeit .w4-actions {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}
#owsW4Zeit .w4-actions button {
  all: unset;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  min-height: 28px;
  white-space: nowrap;
}
#owsW4Zeit .w4-actions button[aria-pressed="true"] {
  background: #2b4b8a;
}
#owsW4Zeit .w4-badge {
  font: 600 10px/1.2 system-ui, sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #f4e6a6;
  opacity: .95;
  margin: 0 0 4px;
}
html.ows-w4 .maplibregl-ctrl-bottom-left,
html.ows-w4 .maplibregl-ctrl-bottom-right,
html.ows-w4 #attrBtn,
html.ows-w4 .attr-btn {
  bottom: calc(var(--ows-w4-zeit-h, 88px) + env(safe-area-inset-bottom, 0px) + 18px) !important;
}
html.ows-w4.ows-w4-profi .maplibregl-ctrl-bottom-left,
html.ows-w4.ows-w4-profi .maplibregl-ctrl-bottom-right,
html.ows-w4.ows-w4-profi #attrBtn,
html.ows-w4.ows-w4-profi .attr-btn {
  bottom: calc(var(--ows-w4-zeit-h, 88px) + var(--ows-dock-h, 58px) + env(safe-area-inset-bottom, 0px) + 18px) !important;
}
@media (max-width: 280px) {
  #owsW4Zeit { padding: 5px 8px 3px; }
  #owsW4Zeit .w4-lab { font-size: 13px; }
  #owsW4Zeit .w4-lab small { display: none; }
  #owsW4Zeit .w4-actions button { min-height: 26px; font-size: 10px; padding: 3px 7px; }
  /* voller Hinweis, kein „Keine War…“ */
  #owsW4Zeit .w4-hinweis {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    line-height: 1.25;
  }
}

/* Platz für den Such-Platzhalter bei schmaler Ansicht (200 %). Schrift bleibt 16px (kein iOS-Zoom). */
@media (max-width: 280px) {
  html.ows-w4 body.ows-simple .ows-search-wrap {
    padding-left: 8px !important;
    padding-right: 6px !important;
    min-height: 48px;
  }
  html.ows-w4 body.ows-simple .ows-search-wrap #search .mag {
    margin-right: 4px;
  }
  html.ows-w4 body.ows-simple .ows-search-wrap #q {
    padding-right: 12px !important;
  }
}
/* placeholder-fit */
