/* Stadt der Gefundenen und Gasse der Fundstücke. Baut auf stil.css auf. */
html.seite-offen { overflow: hidden; }
#ort-bild { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; opacity: 0; transition: opacity 1.2s; }
body.bereit #ort-bild { opacity: 1; }
.ort-schleier { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 55%, transparent 52%, rgba(2,4,9,.62) 100%), linear-gradient(rgba(4,6,11,.62), transparent 22%); }
.ort-kopf { position: fixed; top: 0; left: 0; right: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 18px clamp(16px, 3vw, 44px); }
.ort-kopf .marke { margin-right: auto; }
.ort-kopf .knopf { padding: 11px 18px; }

.ort-text { position: fixed; left: clamp(16px, 3vw, 44px); top: 84px; z-index: 5; max-width: 440px; padding: 18px 20px; border-radius: 14px; background: rgba(5,8,14,.56); backdrop-filter: blur(8px); transition: opacity .5s; }
.ort-text .vorzeile { margin-bottom: 8px; }
.ort-text h1 { margin: 0 0 8px; font: 400 clamp(32px, 4vw, 52px)/1.02 var(--serif); }
.ort-text h1 em { color: var(--gold); }
.ort-text p:last-child { margin: 0; font-size: 15px; color: rgba(243,238,228,.82); }
body[data-modus="flug"] .ort-text, body[data-modus="laden"] .ort-text { opacity: 0; pointer-events: none; }

.marken { position: fixed; inset: 0; z-index: 6; pointer-events: none; visibility: hidden; }
.marken.an { visibility: visible; }
.marke-laden { position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; pointer-events: auto; }
.marke-laden::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: #fff3d6; box-shadow: 0 0 0 2px rgba(255,190,100,.95), 0 0 14px 5px rgba(255,190,100,.8); transition: transform .2s; }
.marke-laden::after { content: ""; position: absolute; inset: 3px; border: 1.5px solid rgba(255,225,170,.9); border-radius: 50%; animation: ring 2.6s ease-out infinite; }
@keyframes ring { 0% { transform: scale(.55); opacity: .95; } 80%, 100% { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .marke-laden::after { animation: none; opacity: .8; } }
.marke-laden:hover::before, .marke-laden:focus-visible::before { transform: scale(1.7); }
.marke-laden:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.ort-karte { position: fixed; left: -125px; top: -86px; z-index: 8; width: 250px; padding: 10px 14px; border-radius: 10px; background: rgba(6,9,15,.9); border: 1px solid rgba(255,220,160,.3); pointer-events: none; font-size: 14px; }
.ort-karte b { display: block; font: 400 22px/1.1 var(--serif); }
.ort-karte span { display: block; color: rgba(243,238,228,.78); }
.ort-karte em { font-style: normal; color: var(--gold); font-weight: 600; }

.spalt { position: fixed; left: 0; top: 0; z-index: 6; display: block; width: 0; height: 0; color: #a8e4ff; text-decoration: none; font: 400 12px/1.2 var(--mono); }
.spalt[hidden] { display: none; }
.spalt i { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: #62ccff; box-shadow: 0 0 18px 7px rgba(70,190,255,.7); }
.spalt span { position: absolute; left: 16px; top: -8px; white-space: nowrap; padding: 3px 7px; border-radius: 6px; background: rgba(4,8,14,.72); }

.laden-tafel { position: fixed; left: 50%; bottom: 20px; z-index: 10; transform: translateX(-50%); display: none; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; width: max-content; max-width: calc(100vw - 32px); padding: 12px 16px; border-radius: 16px; background: rgba(5,8,14,.86); border: 1px solid rgba(255,220,160,.22); }
body[data-modus="laden"] .laden-tafel { display: flex; }
.laden-tafel b { display: block; font: 400 24px/1.1 var(--serif); }
.laden-tafel span { font-size: 14px; color: rgba(243,238,228,.8); }
.laden-tafel .knopf { padding: 11px 16px; }
.laden-glas { position: fixed; z-index: 7; display: none; padding: 0; border: 0; background: none; cursor: zoom-in; }
body[data-modus="laden"] .laden-glas { display: block; }

.marke-wand { position: fixed; z-index: 6; display: none; padding: 0; border: 0; background: none; cursor: zoom-in; pointer-events: auto; }
.marke-wand.an { display: block; }
.marke-wand span { position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 4px); opacity: 0; padding: 7px 11px; white-space: nowrap; border-radius: 9px; background: rgba(5,8,14,.88); transition: opacity .2s, transform .2s; }
.marke-wand:hover span, .marke-wand:focus-visible span { opacity: 1; transform: translate(-50%, -6px); }
.marke-wand b { display: block; font: 400 21px/1.1 var(--serif); color: var(--papier); }
.marke-wand em { font: 400 11px/1.2 var(--mono); font-style: normal; color: var(--gold); }
.marke-wand:focus-visible { outline: 2px solid #fff; }

body[data-ort="gasse"] .gasse-text { position: absolute; }
.gasse-weg { pointer-events: none; }
.gasse-zaehler { position: fixed; left: 50%; bottom: 14px; z-index: 5; transform: translateX(-50%); margin: 0; padding: 4px 11px; border-radius: 99px; background: rgba(5,8,14,.6); font: 400 12px/1.4 var(--mono); }
.gasse-ende { position: fixed; left: 50%; top: 50%; z-index: 9; display: flex; flex-direction: column; align-items: center; gap: 10px; transform: translate(-50%, -50%); padding: 22px 26px; border-radius: 16px; background: rgba(5,8,14,.8); opacity: 0; visibility: hidden; transition: opacity .4s; }
.gasse-ende p { margin: 0; font: 400 26px/1.15 var(--serif); }
body.am-ende .gasse-ende { opacity: 1; visibility: visible; }

.ort-liste { position: fixed; right: clamp(16px, 3vw, 44px); bottom: 14px; z-index: 11; max-width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 100px); overflow: auto; border-radius: 12px; background: rgba(5,8,14,.82); font-size: 14px; }
.ort-liste summary { padding: 7px 13px; cursor: pointer; }
.ort-liste ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 0; padding: 4px 13px 12px; list-style: none; }
.ort-liste a:not(.knopf) { display: block; color: var(--papier); text-decoration: none; }
.ort-liste img { display: block; width: 100%; height: auto; border-radius: 6px; }
.ort-liste b { display: block; margin-top: 5px; font: 400 19px/1.1 var(--serif); }
.ort-liste span { color: rgba(243,238,228,.75); font-size: 13px; }
.ort-liste p { margin: 0 13px 13px; }
body[data-modus="laden"] .ort-liste, body[data-modus="flug"] .ort-liste { display: none; }

.ort-fuss { position: fixed; left: clamp(16px, 3vw, 44px); bottom: 14px; z-index: 4; display: flex; flex-wrap: wrap; gap: 4px 14px; max-width: 38vw; font-size: 12px; color: rgba(243,238,228,.65); }
.ort-fuss a { color: inherit; }
body[data-modus="laden"] .ort-fuss, body[data-modus="flug"] .ort-fuss { display: none; }

.seite { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; background: #000; opacity: 0; transition: opacity .35s; }
.seite.da { opacity: 1; }
.seite[hidden] { display: none; }
.seite-leiste { display: flex; align-items: center; gap: 16px; padding: 8px 16px; background: #05070c; font-size: 14px; }
.seite-leiste b { margin-right: auto; font: 400 20px/1 var(--serif); }
.seite-leiste a { color: var(--papier); }
.seite-leiste .knopf { padding: 8px 16px; }
.seite iframe { flex: 1; width: 100%; border: 0; background: #fff; }

/* Handy, schwache Geräte, ohne WebGL: ein ruhiges Bild und die Liste */
.ohne3d .nur3d, .ohne3d .spalt, .ohne3d #ort-bild, .ohne3d .marken, .ohne3d .laden-tafel, .ohne3d .gasse-zaehler, .ohne3d .gasse-ende, .ohne3d .gasse-weg { display: none; }
.ohne3d .ort-text, .ohne3d body[data-ort="gasse"] .gasse-text, .ohne3d .ort-liste, .ohne3d .ort-fuss { position: static; max-width: none; max-height: none; background: none; backdrop-filter: none; }
.ohne3d main { padding: 72px 16px 16px; }
.ohne3d .ort-kopf { position: absolute; }
.ohne3d .ort-kopf .knopf-leise { display: none; }
.ohne3d .ort-fuss { padding: 14px 16px 24px; }
.ohne3d .ort-text { padding: 0 0 16px; }
.ohne3d .ort-liste summary { padding: 0 0 8px; }
.ohne3d .ort-liste ul, .ohne3d .ort-liste p { padding: 0; margin: 0 0 12px; }
@media (max-width: 760px) { .ort-kopf .marke { font-size: 19px; } .ort-kopf .knopf { padding: 9px 12px; font-size: 11px; white-space: nowrap; } .ort-kopf .knopf-leise { display: none; } .ort-liste ul { grid-template-columns: 1fr 1fr; } }
.ohne3d .ton-knopf { display: none; }

/* 15.11.2026: Umschalter Liste / 3D (Handy) */
.ansicht-wahl { position: fixed; left: 16px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 40; padding: 10px 14px; font-size: 12px; }
.ohne3d .ansicht-wahl { position: static; display: inline-block; margin: 0 0 18px; }
/* Handy in 3D: unten aufgeräumt – Knopf + Zähler in einer Reihe, Rechtslinks als eine Zeile ganz unten, Liste über den Knopf */
@media (max-width: 760px), (max-height: 500px) and (pointer: coarse) {
  html:not(.ohne3d) .ort-liste { display: none; }
  html:not(.ohne3d) .ort-fuss { left: 16px; right: 16px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); max-width: none; flex-wrap: nowrap; gap: 12px; font-size: 11px; white-space: nowrap; overflow: hidden; }
  html:not(.ohne3d) .ort-fuss [data-fassungen], html:not(.ohne3d) .ort-fuss a[href="./"] { display: none; }
  html:not(.ohne3d) .ansicht-wahl { bottom: calc(34px + env(safe-area-inset-bottom, 0px)); }
  html:not(.ohne3d) .gasse-zaehler { left: auto; right: 16px; transform: none; bottom: calc(38px + env(safe-area-inset-bottom, 0px)); }
}
/* 15.11.2026: Hochformat – Karte mit dem ganzen Seitenbild der Wand an der Station */
.wand-karte { position: fixed; left: 16px; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 12; border-radius: 12px; overflow: hidden;
  background: rgba(5,8,14,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 12px 40px rgba(0,0,0,.5); animation: wk-ein .35s ease-out; }
.wk-bild { aspect-ratio: 16 / 10; background: #05070c; cursor: pointer; }
.wk-bild video { display: block; width: 100%; height: 100%; object-fit: contain; }
.wk-text { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 12px; }
.wk-text b { display: block; font: 400 20px/1.1 var(--serif); }
.wk-text em { font-style: normal; font-size: 12px; color: rgba(243,238,228,.7); }
.wk-text .knopf { flex: none; padding: 9px 14px; font-size: 11px; }
@keyframes wk-ein { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { .wand-karte { animation: none; } }
body[data-modus="laden"] .wand-karte, .ohne3d .wand-karte { display: none; }
/* Hinweis Querformat (nur Hochformat sichtbar) */
.quer-hinweis { position: fixed; left: 50%; top: 76px; z-index: 13; transform: translateX(-50%); display: none; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid rgba(255,200,120,.35);
  border-radius: 99px; background: rgba(5,8,14,.78); color: var(--papier); font-size: 12px; white-space: nowrap; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); cursor: pointer; }
.quer-symbol { width: 12px; height: 18px; border: 1.5px solid var(--gold, #ffc878); border-radius: 3px; animation: quer-dreh 2.4s ease-in-out infinite; }
@keyframes quer-dreh { 0%, 30% { transform: rotate(0); } 55%, 85% { transform: rotate(-90deg); } 100% { transform: rotate(0); } }
@media (orientation: portrait) { .quer-hinweis { display: inline-flex; } }
@media (prefers-reduced-motion: reduce) { .quer-symbol { animation: none; } }
body[data-modus="laden"] .quer-hinweis { display: none; }
@media (orientation: portrait) and (max-width: 760px) { html:not(.ohne3d) .ort-text { top: 122px; } }
