/* Fotokarte: Bühne, Marken, Einstieg, Nahansicht */
#buehne { position: fixed !important; inset: 0; width: 100vw; height: 100vh; height: 100dvh; background: var(--tiefsee); }
#buehne .openseadragon-canvas:focus-visible { outline: none; }

/* Marken im Stil einer Seekarten-Beschriftung */
.marke { position: relative; width: 0; height: 0; }
.marke button {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%);
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
}
.marke button::before { /* Ring */
  content: ""; position: absolute; inset: 2px; border-radius: 50%;
  border: 2px solid var(--gold); background: rgba(13, 34, 48, .35);
  box-shadow: 0 0 0 4px rgba(13,34,48,.18), 0 2px 10px rgba(3,14,22,.5);
  transition: transform 200ms var(--kurve);
}
.marke button::after { /* Kern */
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; position: relative;
}
.marke button:hover::before, .marke.aktiv button::before { transform: scale(1.35); background: rgba(200,169,110,.35); }
.marke .linie {
  position: absolute; left: 6px; bottom: 6px; width: 34px; height: 1px; background: rgba(255,255,255,.85);
  transform-origin: left center; transform: rotate(-38deg); pointer-events: none;
  box-shadow: 0 0 6px rgba(3,14,22,.6);
}
.marke .name {
  position: absolute; left: 28px; bottom: 16px; white-space: nowrap; pointer-events: none;
  font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 22px; line-height: 1;
  color: #fff; text-shadow: 0 1px 2px rgba(3,14,22,.8);
  padding: 4px 10px 6px; border-radius: 7px; background: rgba(13,34,48,.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: opacity 240ms var(--kurve);
}
.marke.links .linie { left: auto; right: 6px; transform-origin: right center; transform: rotate(38deg); }
.marke.links .name { left: auto; right: 28px; }
.marke.unten .linie { bottom: auto; top: 6px; transform: rotate(38deg); }
.marke.unten .name { bottom: auto; top: 16px; }
.marke.links.unten .linie { transform: rotate(-38deg); }
/* Kein Platz: nur der Punkt, der Name erscheint beim Darüberfahren oder wenn der Ort geöffnet ist */
.marke.still .name, .marke.still .linie { opacity: 0; }
.marke.still:hover .name, .marke.still:hover .linie, .marke.still.aktiv .name, .marke.still.aktiv .linie { opacity: 1; }
.marke .linie { transition: opacity 240ms var(--kurve); }
.marke:hover, .marke.aktiv { z-index: 5; }
.marke.aktiv .name { color: var(--gold-hell); }
body.leise-marken .marke:not(.aktiv) .name { opacity: 0; }
body.leise-marken .marke:not(.aktiv) .linie { opacity: 0; }

/* Unterkünfte: kleiner heller Punkt, sachliche Schrift, erst beim Heranzoomen */
/* OpenSeadragon setzt display am Overlay selbst, deshalb werden die Kinder ausgeblendet */
.marke.unterkunft > * { display: none; }
body.u-punkte .marke.unterkunft > *, .marke.unterkunft.aktiv > * { display: block; }
.marke.unterkunft > button { display: none; }
body.u-punkte .marke.unterkunft > button, .marke.unterkunft.aktiv > button { display: grid; }
body.ohne-unterkuenfte .marke.unterkunft:not(.aktiv) > * { display: none; }
.marke.unterkunft button { width: 16px; height: 16px; }
.marke.unterkunft button::before { inset: 1px; border: 2px solid var(--gischt); background: rgba(22, 52, 70, .85); box-shadow: 0 1px 6px rgba(3,14,22,.55); }
.marke.unterkunft button::after { width: 4px; height: 4px; background: var(--gischt); }
.marke.unterkunft:hover button::before, .marke.unterkunft.aktiv button::before { background: rgba(200,169,110,.55); border-color: var(--gold-hell); transform: scale(1.3); }
.marke.unterkunft .name { font-family: var(--sans); font-style: normal; font-weight: 500; font-size: 13px; padding: 4px 8px 5px; left: 22px; bottom: 12px; }
.marke.unterkunft.links .name { left: auto; right: 22px; }
.marke.unterkunft.unten .name { bottom: auto; top: 12px; }
.marke.unterkunft .linie { width: 22px; }
.marke.unterkunft.korrigiert button::before { border-color: var(--gold-hell); }
.karte .hinweis-lage { margin: 4px 0 14px; font-size: 14px; color: var(--nebel); }

/* Prüfansicht */
.pruefen { position: fixed; left: 50%; bottom: calc(var(--rand) + 34px); transform: translateX(-50%); z-index: 40;
  display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px;
  background: rgba(13,34,48,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 6px 24px rgba(3,14,22,.4); }
.pruefen button { width: 40px; height: 40px; border-radius: 50%; font-size: 24px; line-height: 1; }
.pruefen button:hover { background: var(--tiefsee-2); }
.pruefen .stand { padding: 0 10px; font-size: 14px; white-space: nowrap; max-width: 52vw; overflow: hidden; text-overflow: ellipsis; }
.pruefen .kopieren { width: auto; font-size: 13px; padding: 0 14px; border-radius: 999px; background: var(--gold); color: var(--tiefsee); }
.pruefen .kopieren:hover { background: var(--gold-hell); }
.pruefen-hilfe { position: fixed; left: 50%; bottom: calc(var(--rand) + 4px); transform: translateX(-50%); z-index: 40; margin: 0;
  font-size: 13px; color: rgba(255,255,255,.85); text-shadow: 0 1px 8px rgba(3,14,22,.9); white-space: nowrap; }
body.pruefung .nachweis { display: none; }
@media (max-width: 720px) { .pruefen { bottom: 84px; } .pruefen-hilfe { bottom: 62px; } }

/* Einstieg */
.einstieg {
  position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end;
  padding: var(--rand); padding-bottom: calc(var(--rand) * 2.4);
  background: linear-gradient(180deg, rgba(13,34,48,.15) 0%, rgba(13,34,48,.35) 45%, rgba(13,34,48,.88) 100%);
  transition: opacity 900ms var(--kurve), visibility 0s linear 900ms;
}
.einstieg.weg { opacity: 0; visibility: hidden; }
.einstieg .block { max-width: 640px; }
.einstieg h1 { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(64px, 11vw, 168px); line-height: .86; letter-spacing: -0.01em; }
.einstieg h1 .punkt { color: var(--gold); }
.einstieg p { margin: 18px 0 26px; max-width: 46ch; font-size: 17px; color: rgba(238,242,243,.9); }
.einstieg .knopf { font-size: 15px; padding: 13px 22px; text-decoration: none; }
.einstieg .wahl { display: flex; gap: 12px; flex-wrap: wrap; }
.einstieg .knopf.leise { background: rgba(13,34,48,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.einstieg .knopf.leise:hover { background: var(--tiefsee-2); }
.einstieg .recht { margin: 28px 0 0; font-size: 13px; display: flex; gap: 18px; }
.einstieg .recht a { color: rgba(238,242,243,.7); }
.einstieg .recht a:hover { color: var(--gold-hell); }

/* Nahansicht */
.nah {
  position: fixed; inset: 0; z-index: 70; background: var(--tiefsee);
  opacity: 0; visibility: hidden; transition: opacity var(--dauer) var(--kurve), visibility 0s linear var(--dauer);
}
.nah.offen { opacity: 1; visibility: visible; transition-delay: 0s; }
.nah #nahbuehne { position: absolute !important; inset: 0; width: 100%; height: 100%; }
.nah .kopf {
  position: absolute; z-index: 2; top: var(--rand); left: var(--rand); right: var(--rand);
  display: flex; align-items: center; gap: 16px; pointer-events: none;
}
.nah .kopf > * { pointer-events: auto; }
.nah .kopf h2 { margin: 0; padding: 4px 14px 7px; border-radius: 10px; background: rgba(13,34,48,.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-family: var(--serif); font-weight: 300; font-size: clamp(24px, 2.8vw, 34px); }
.nah .kopf .knopf { flex: none; }
.nah .hinweis { position: absolute; z-index: 2; left: 50%; bottom: var(--rand); transform: translateX(-50%); font-size: 13px; color: rgba(255,255,255,.8); text-shadow: 0 1px 8px rgba(3,14,22,.9); }
.etikett {
  white-space: nowrap; pointer-events: none; text-align: center;
  font-family: var(--serif); font-style: italic; font-size: 21px; color: #fff;
  text-shadow: 0 1px 2px rgba(3,14,22,.9), 0 0 16px rgba(3,14,22,.8);
}
.etikett span { display: inline-block; padding: 3px 9px 5px; border-radius: 7px; background: rgba(13,34,48,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-weight: 500; text-shadow: none; }
.etikett::after { content: ""; display: block; width: 8px; height: 8px; margin: 6px auto -4px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(13,34,48,.45); }

@media (max-width: 720px) {
  .marke .name { font-size: 19px; }
  .einstieg { padding-bottom: calc(var(--rand) * 5); }
}

/* Während des Einstiegs keine doppelte Wortmarke */
body.im-einstieg .wortmarke, body.im-einstieg .leiste, body.im-einstieg .nachweis, body.im-einstieg .marke { opacity: 0; pointer-events: none; }
.marke { transition: opacity 700ms var(--kurve) 300ms; }
.wortmarke, .leiste, .nachweis { transition: opacity 700ms var(--kurve); }
