/* OpenWorldSource – sh1 (25.11.2026): Infofenster verdecken den gewählten Punkt nicht mehr.
   Handy: kompaktes Fenster unten (bottom sheet), nach oben ziehbar, nach unten wegwischbar.
   Computer: seitliches Fenster wie bisher; die Karte schiebt den Punkt daneben.
   Gewählter Punkt: deutlicher Ring. Nur Zusatz, ändert app.js nicht. MIT. */

/* Markierung des gewählten Punkts (Handy und Computer) */
#owsSelRing{position:absolute;left:0;top:0;width:0;height:0;z-index:4;pointer-events:none;display:none;will-change:transform}
#owsSelRing.on{display:block}
#owsSelRing i{position:absolute;left:-22px;top:-22px;width:44px;height:44px;border-radius:50%;
  border:2.5px solid #f2c75c;box-shadow:0 0 0 2px rgba(0,0,0,.55),0 0 14px rgba(242,199,92,.65),inset 0 0 0 2px rgba(0,0,0,.35)}
#owsSelRing b{position:absolute;left:-22px;top:-22px;width:44px;height:44px;border-radius:50%;border:2px solid rgba(242,199,92,.85);
  animation:owsSelPulse 1.8s cubic-bezier(.2,.6,.3,1) infinite}
#owsSelRing u{position:absolute;left:-4px;top:-4px;width:8px;height:8px;border-radius:50%;background:#f2c75c;box-shadow:0 0 0 2px rgba(0,0,0,.6)}
@keyframes owsSelPulse{0%{transform:scale(.7);opacity:.95}100%{transform:scale(1.9);opacity:0}}
@media (prefers-reduced-motion:reduce){#owsSelRing b{animation:none;opacity:0}}

/* Handy: Bottom-Sheet */
@media (max-width:760px){
  html body.ows-sheet-on #card,
  html body.ows-sheet-on #card.glass{
    position:fixed!important;left:0!important;right:0!important;top:auto!important;
    bottom:0!important;width:auto!important;margin:0!important;
    max-height:var(--ows-sheet-h,40vh)!important;
    border-radius:22px 22px 0 0!important;
    padding:22px 16px calc(14px + env(safe-area-inset-bottom,0px))!important;
    z-index:30!important;overflow-y:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
    transform:translate3d(0,var(--ows-sheet-dy,0px),0)!important;
    transition:transform .32s cubic-bezier(.2,.8,.2,1),max-height .32s cubic-bezier(.2,.8,.2,1)!important;
    animation:owsSheetIn .34s cubic-bezier(.2,.8,.2,1) both!important;
    touch-action:pan-y;contain:layout paint;
    background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,0) 40%),rgba(14,16,20,.94)!important}
  html body.ows-sheet-on.ows-sheet-full #card{max-height:calc(100% - 72px - env(safe-area-inset-top,0px))!important}
  html body.ows-sheet-on.ows-sheet-drag #card{transition:none!important}
  html body.ows-sheet-on #card::before{content:"";position:absolute;left:50%;top:8px;width:40px;height:5px;margin-left:-20px;border-radius:5px;background:rgba(255,255,255,.34)}
  /* Schließen-Knopf bleibt beim Scrollen sichtbar */
  html body.ows-sheet-on #card > .x{position:sticky!important;top:-8px;right:auto!important;float:right;
    width:44px;height:44px;margin:-14px -8px -30px 8px;display:grid;place-items:center;z-index:5;
    font-size:22px;line-height:1;border-radius:50%;background:rgba(30,32,38,.86);border:1px solid rgba(255,255,255,.18);color:#fff}
  html body.ows-sheet-on #card h3{padding-right:44px}
  /* Leiste unten, 3D- und Admin-Knopf treten zurück, solange das Fenster offen ist */
  html body.ows-sheet-on .ows-dock,
  html body.ows-sheet-on .ows-3d,
  html body.ows-sheet-on #ows3dBtn,
  html body.ows-sheet-on .g3-switch,
  html body.ows-sheet-on #owsAdminStats,
  html body.ows-sheet-on #aiLaunch,
  html body.ows-sheet-on #panelToggle,
  html body.ows-sheet-on #timeline,
  html body.ows-sheet-on #mapHud,
  html body.ows-sheet-on #attrShort,
  html body.ows-sheet-on .maplibregl-ctrl-bottom-right,
  html body.ows-sheet-on .maplibregl-ctrl-bottom-left{opacity:0!important;pointer-events:none!important;transition:opacity .2s}
}
@keyframes owsSheetIn{from{transform:translate3d(0,40%,0);opacity:.6}to{transform:translate3d(0,var(--ows-sheet-dy,0px),0);opacity:1}}

/* Handy quer (z. B. iPhone 17 Pro Max 956 × 440): schmales Fenster rechts, Karte links frei */
@media (orientation:landscape) and (max-height:500px) and (min-width:761px){
  html body.ows-sheet-side #card,
  html body.ows-sheet-side #card.glass{
    position:fixed!important;left:auto!important;right:max(8px,env(safe-area-inset-right,0px))!important;
    top:calc(var(--ows-top-h,52px) + 16px + env(safe-area-inset-top,0px))!important;
    bottom:calc(var(--ows-dock-h,60px) + 22px + env(safe-area-inset-bottom,0px))!important;
    width:min(340px,40vw)!important;max-height:none!important;margin:0!important;
    border-radius:20px!important;padding:12px 14px 12px!important;z-index:30!important;
    overflow-y:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
    background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,0) 40%),rgba(14,16,20,.94)!important}
  html body.ows-sheet-side #card > .x{position:sticky!important;top:-4px;right:auto!important;float:right;
    width:44px;height:44px;margin:-4px -6px -30px 8px;display:grid;place-items:center;z-index:5;
    font-size:22px;line-height:1;border-radius:50%;background:rgba(30,32,38,.86);border:1px solid rgba(255,255,255,.18);color:#fff}
  html body.ows-sheet-side #card h3{padding-right:44px}
  html body.ows-sheet-side .ows-3d,html body.ows-sheet-side #ows3dBtn,html body.ows-sheet-side #owsAdminStats{opacity:0!important;pointer-events:none!important}
}

/* Suche aktiv: im Ebenenblatt nur die Treffer zeigen, nicht zusätzlich die Ebenenliste */
body.ows-searching #panelBody > :not(#results){display:none!important}
