/* „Umsehen“: Vollbild-Ansicht eines Ortes (viewer.js) – Bild oder 360°-Aufnahme, Pfeile zu Nachbarorten, kleine Karte.
   Dazu: Bild mit Zähler in der Fundort-Karte und die Bildergalerie auf der Seite eines Fundorts. */

html.gvv-open { overflow: hidden; }
.gvv { position: fixed; inset: 0; z-index: 180; background: #050508; color: var(--ink-2); overflow: hidden; overscroll-behavior: contain; animation: gvv-in .22s var(--ease); }
@keyframes gvv-in { from { opacity: 0; } to { opacity: 1; } }

/* Bühne */
.gvv__stage { position: absolute; inset: 0; transition: opacity .2s; }
.gvv.is-jump .gvv__stage { animation: gvv-jump .26s var(--ease); }
@keyframes gvv-jump { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
.gvv__bg { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); max-width: none; object-fit: cover; filter: blur(34px) brightness(.42) saturate(1.2); pointer-events: none; }
.gvv__pane { position: absolute; inset: 0; background: transparent; }
.gvv__pane .gmap__img { border-radius: 6px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.gvv__pane--map { background: #091019; }
.gvv__pane--map .gmap__img { border-radius: 0; box-shadow: none; filter: brightness(.6); }
.gvv__pane--map .mk { pointer-events: none; }
.gvv__pano { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; outline: none; }
.gvv__pano.is-drag { cursor: grabbing; }
.gvv__pano:focus-visible { box-shadow: inset 0 0 0 2px var(--pink); }
.gvv__note { position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%); max-width: min(440px, calc(100% - 40px)); padding: 12px 18px; border-radius: 14px; text-align: center; font: 600 14px/1.45 var(--font); color: var(--ink); background: rgba(12, 12, 18, .82); border: 1px solid var(--line-2); backdrop-filter: blur(10px); pointer-events: none; }
.gvv__note.is-wait { background: none; border-color: transparent; color: var(--ink-3); backdrop-filter: none; }
.gvv__note.is-none { top: auto; bottom: 150px; transform: translateX(-50%); }

/* Kopf */
.gvv__top { position: absolute; inset: 0 0 auto 0; z-index: 5; display: flex; align-items: flex-start; gap: 12px; padding: max(16px, env(safe-area-inset-top)) 18px 46px; background: linear-gradient(180deg, rgba(5, 5, 8, .88), rgba(5, 5, 8, 0)); pointer-events: none; }
.gvv__top > * { pointer-events: auto; }
.gvv__info { flex: 1; min-width: 0; pointer-events: none; }
.gvv__cat { display: flex; align-items: center; gap: 7px; font: 600 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--c, var(--ink-3)); }
.gvv__title { margin-top: 4px; font: 800 clamp(20px, 3vw, 30px)/1.15 var(--font); letter-spacing: -.02em; color: var(--ink); overflow-wrap: anywhere; text-shadow: 0 2px 14px rgba(0, 0, 0, .7); }
.gvv__tools { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.gvv__tools .btn--ghost { background: rgba(14, 14, 20, .7); backdrop-filter: blur(8px); }
.gvv__x { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: rgba(14, 14, 20, .78); border: 1px solid var(--line-2); backdrop-filter: blur(8px); transition: background .2s; }
.gvv__x:hover { background: rgba(255, 255, 255, .16); }

/* Bilder durchblättern */
.gvv__nav { position: absolute; top: 50%; z-index: 4; width: 48px; height: 48px; margin-top: -24px; display: none; place-items: center; border-radius: 50%; color: var(--ink); background: rgba(14, 14, 20, .72); border: 1px solid var(--line-2); backdrop-filter: blur(8px); transition: background .2s, transform .2s; }
.gvv.has-many .gvv__nav { display: grid; }
.gvv__nav:hover { background: rgba(255, 255, 255, .16); transform: scale(1.06); }
.gvv__nav--prev { left: 16px; }
.gvv__nav--next { right: 16px; }
.gvv__hint { position: absolute; left: 50%; top: 92px; z-index: 3; transform: translateX(-50%); padding: 5px 12px; border-radius: var(--pill); font: 600 12px/1.3 var(--font); color: var(--ink-2); background: rgba(12, 12, 18, .6); pointer-events: none; white-space: nowrap; }
.gvv__hint:empty { display: none; }

/* Fuß: Vorschaubilder */
.gvv__bottom { position: absolute; inset: auto 0 0 0; z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 40px 18px max(14px, env(safe-area-inset-bottom)); background: linear-gradient(0deg, rgba(5, 5, 8, .9), rgba(5, 5, 8, 0)); pointer-events: none; }
.gvv__thumbs { display: flex; gap: 8px; max-width: min(100%, 720px); padding: 4px; overflow-x: auto; scrollbar-width: none; pointer-events: auto; }
.gvv__thumbs::-webkit-scrollbar { display: none; }
.gvv__thumb { position: relative; flex: none; width: 84px; height: 54px; overflow: hidden; border-radius: 9px; border: 2px solid transparent; background: var(--surface-2); opacity: .62; transition: opacity .2s, border-color .2s, transform .2s; }
.gvv__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gvv__thumb:hover { opacity: 1; }
.gvv__thumb.is-on { opacity: 1; border-color: var(--pink); transform: translateY(-2px); }
.gvv__thumb b { position: absolute; inset: auto 4px 4px auto; padding: 1px 5px; border-radius: 5px; font: 700 10px/1.4 var(--mono); color: #0b0b10; background: var(--amber); }
.gvv__credit { min-height: 14px; font: 500 11px/1.3 var(--font); color: var(--ink-3); }

/* Pfeile zu den Nachbarorten (liegen in ihrer Himmelsrichtung um einen Ring) */
.gvv__move { --r: 78px; position: absolute; left: 50%; bottom: 190px; z-index: 4; width: 0; height: 0; }
.gvv__move::before { content: ''; position: absolute; left: calc(var(--r) * -1); top: calc(var(--r) * -1); width: calc(var(--r) * 2); height: calc(var(--r) * 2); border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .22); background: radial-gradient(closest-side, rgba(5, 5, 8, .5), rgba(5, 5, 8, 0)); pointer-events: none; }
.gvv__go { position: absolute; left: calc(var(--sx) * var(--r)); top: calc(var(--cy) * var(--r)); transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 3px; color: var(--ink); }
.gvv__go i { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: #0b0b10; background: #fff; box-shadow: 0 8px 22px rgba(0, 0, 0, .55); transition: background .2s, scale .2s; }
.gvv__go.is-plain i { background: rgba(255, 255, 255, .62); }
.gvv__go:hover i, .gvv__go:focus-visible i { background: var(--amber); scale: 1.12; }
.gvv__go:focus-visible { outline: none; }
.gvv__go span { position: absolute; top: calc(100% + 2px); max-width: 130px; padding: 2px 8px; border-radius: var(--pill); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 11.5px/1.5 var(--font); background: rgba(8, 8, 12, .82); pointer-events: none; }

/* Kleine Karte */
.gvv__mini { position: absolute; right: 16px; bottom: 96px; z-index: 6; width: 210px; height: 210px; overflow: hidden; border-radius: 16px; border: 1px solid var(--line-3); box-shadow: 0 18px 44px rgba(0, 0, 0, .6); transition: width .25s var(--ease), height .25s var(--ease); }
.gvv__mini.is-big { width: min(680px, calc(100vw - 32px)); height: min(560px, calc(100vh - 200px)); }
.gvv__minimap { position: absolute; inset: 0; }
.gvv__grow { position: absolute; left: 8px; top: 8px; z-index: 2; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; color: var(--ink); background: rgba(12, 12, 18, .82); border: 1px solid var(--line-2); }
.gvv__grow:hover { background: rgba(255, 255, 255, .16); }
.gvd { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #0d0d13; border: 2px solid var(--c, #fff); opacity: .75; transition: transform .15s; }
.gvd::after { content: ''; position: absolute; inset: -8px; }
.gvd.has-view { background: var(--c, #fff); opacity: 1; }
.gvd:hover, .gvd:focus-visible { transform: scale(1.5); z-index: 3; outline: none; opacity: 1; }
.gvd.is-cur { width: 18px; height: 18px; margin: -9px 0 0 -9px; z-index: 4; opacity: 1; background: #fff; border-color: #fff; box-shadow: 0 0 0 6px rgba(255, 255, 255, .28), 0 0 0 1px #0b0b10; }

@media (max-width: 720px) {
  .gvv__top { flex-wrap: wrap; padding-inline: 12px; }
  .gvv__info { flex-basis: calc(100% - 52px); }
  .gvv__tools { order: 3; flex-basis: 100%; justify-content: flex-start; }
  .gvv__hint { top: 136px; }
  .gvv__nav { width: 42px; height: 42px; }
  .gvv__nav--prev { left: 8px; }
  .gvv__nav--next { right: 8px; }
  .gvv__move { --r: 58px; left: 88px; bottom: 164px; }
  .gvv__go i { width: 40px; height: 40px; }
  .gvv__go span { max-width: 92px; font-size: 10.5px; }
  .gvv__mini { right: 10px; bottom: 92px; width: 132px; height: 132px; border-radius: 13px; }
  .gvv__mini.is-big { width: calc(100vw - 20px); height: min(64vh, 460px); }
  .gvv__thumb { width: 68px; height: 46px; }
  .gvv__note.is-none { bottom: 250px; }
}
@media (prefers-reduced-motion: reduce) { .gvv, .gvv.is-jump .gvv__stage { animation: none; } .gvv__mini, .gvv__thumb, .gvv__go i { transition: none; } }
@media print { .gvv { display: none !important; } }

/* ── Fundort-Karte: Bild zum Antippen mit Zähler ── */
.mappop__look { position: relative; display: block; width: calc(100% + 32px); margin: -16px -16px 14px; overflow: hidden; border-radius: 17px 17px 0 0; background: var(--surface-2); cursor: zoom-in; }
.mappop__look .mappop__img { width: 100%; margin: 0; border-radius: 0; transition: transform .35s var(--ease); }
.mappop__look:hover .mappop__img { transform: scale(1.05); }
.mappop__look em { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--pill); font: 700 12px/1.4 var(--font); font-style: normal; color: var(--ink); background: rgba(8, 8, 12, .78); backdrop-filter: blur(6px); }
.mappop__look em b { color: var(--amber); font-weight: 800; }

/* ── Seite eines Fundorts: Galerie ── */
.locgal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.locgal__item { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface-2); cursor: zoom-in; }
.locgal__item:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; border-radius: var(--r-lg); }
.locgal__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.locgal__item:hover img { transform: scale(1.04); }
.locgal__item b { position: absolute; left: 10px; top: 10px; padding: 2px 8px; border-radius: 6px; font: 700 11px/1.5 var(--mono); color: #0b0b10; background: var(--amber); }
.locgal__more { position: absolute; inset: 0; display: grid; place-items: center; font: 800 22px/1 var(--font); color: var(--ink); background: rgba(5, 5, 8, .62); }
.locgal__credit { margin-top: 8px; font-size: 12px; color: var(--ink-3); }
.locgal__credit a { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 720px) { .locgal { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } }

/* Punkte anderer Fundorte in der Karte der Fundort-Seite sind Links */
a.gvd { display: block; }
