/* 3D-Karte der begehbaren Welt (24.11.2026), gehört zu assets/js/welt-karte3d.js. Grimmsigil-Nacht: Nachtblau, Gold. Das Bildkarussell (.wk__kar) kommt aus welt-karte.css. */
.wk3 { position: absolute; inset: 0; z-index: 9; background: #07090e; color: #efe4cc; font-family: var(--gs-font, system-ui, sans-serif); outline: none; overflow: hidden; touch-action: none; -webkit-user-select: none; user-select: none; }
.wk3[hidden] { display: none; }
.wk3__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; outline: none; touch-action: none; }
.wk3--ziehen .wk3__canvas { cursor: grabbing; }
.wk3__vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 75% 70% at 50% 55%, transparent 55%, rgba(3, 4, 8, .72) 100%); }

.wk3__kopf { position: absolute; left: 0; right: 0; top: 0; z-index: 4; padding: 14px 64px 22px 18px; background: linear-gradient(rgba(7, 9, 14, .85), rgba(7, 9, 14, 0)); pointer-events: none; }
.wk3__titel { margin: 0; font-family: var(--gs-font-heading, Georgia, serif); font-size: clamp(1.1rem, 3.4vw, 1.6rem); letter-spacing: .08em; color: #f3ead8; text-shadow: 0 2px 10px rgba(0, 0, 0, .9); }
.wk3__hinweis { margin: .25rem 0 0; font-size: .8rem; color: #b9ae96; max-width: 52ch; text-shadow: 0 1px 4px #000; transition: opacity .8s; }
.wk3__zu { position: absolute; right: 14px; top: 12px; z-index: 5; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(201, 168, 76, .55); background: rgba(8, 9, 13, .75); color: #efe4cc; font-size: 22px; line-height: 1; cursor: pointer; }
.wk3__zu[hidden] { display: none; }
.wk3__zu:hover, .wk3__zu:focus-visible { border-color: #dbb95c; color: #fff; outline: none; }
.wk3__zoom { position: absolute; right: 14px; bottom: 54px; z-index: 4; display: flex; flex-direction: column; gap: 8px; }
.wk3__zoom button, .wk3__2d { min-width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(201, 168, 76, .45); background: rgba(8, 9, 13, .78); color: #efe4cc; font-size: 20px; line-height: 1; cursor: pointer; }
.wk3__nord { font: 600 13px/1 var(--gs-font-heading, Georgia, serif) !important; }
.wk3__2d { position: absolute; left: 14px; bottom: 14px; z-index: 4; border-radius: 999px; padding: 0 16px; font-size: .82rem; letter-spacing: .04em; }
.wk3__2d[hidden] { display: none; }
.wk3__zoom button:hover, .wk3__zoom button:focus-visible, .wk3__2d:hover, .wk3__2d:focus-visible { border-color: #dbb95c; color: #fff; outline: none; }
.wk3__quelle { position: absolute; right: 14px; bottom: 14px; z-index: 4; margin: 0; max-width: calc(100% - 150px); text-align: right; font-size: .66rem; color: rgba(169, 159, 138, .8); text-shadow: 0 1px 2px #000; }
.wk3__quelle a { color: inherit; }
.wk3__lade { position: absolute; inset: 0; z-index: 6; display: flex; align-items: center; justify-content: center; margin: 0; font-family: var(--gs-font-heading, Georgia, serif); letter-spacing: .12em; color: #dbb95c; background: #07090e; transition: opacity 1.2s; }
.wk3__lade.weg { opacity: 0; pointer-events: none; }

/* Beschriftungen: Position per Script (Fußpunkt = Spitze des Strichs) */
.wk3__labels { position: absolute; inset: 0; z-index: 3; pointer-events: none; transition: opacity .4s; }
.wk3__labels.weg { opacity: 0; }
.wk3__label { position: absolute; left: 0; top: 0; pointer-events: auto; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px; border: 0; padding: 0; background: none; color: inherit; font: inherit; transition: opacity .35s; }
.wk3__label span { white-space: nowrap; padding: 5px 11px; border-radius: 999px; background: rgba(8, 9, 13, .8); border: 1px solid rgba(201, 168, 76, .35); font-size: 12.5px; line-height: 1.2; color: #efe4cc; box-shadow: 0 4px 16px rgba(0, 0, 0, .5); }
.wk3__label i { width: 1px; height: 18px; background: linear-gradient(rgba(201, 168, 76, .8), transparent); }
.wk3__label--begehbar span { border-color: #c9a84c; color: #f6e2a8; font-family: var(--gs-font-heading, Georgia, serif); font-weight: 600; letter-spacing: .04em; font-size: 13.5px; box-shadow: 0 0 18px rgba(201, 168, 76, .35), 0 4px 16px rgba(0, 0, 0, .5); }
.wk3__label--max span { border-color: rgba(111, 183, 255, .6); }
.wk3__label--max i { background: linear-gradient(rgba(111, 183, 255, .8), transparent); }
.wk3__label--bald { cursor: default; }
.wk3__label--bald span { color: #9a9486; border-color: rgba(154, 148, 134, .3); font-size: 11.5px; }
.wk3__label:hover span, .wk3__label:focus-visible span { border-color: #e6cc7f; color: #fff; outline: none; }
.wk3__label--bald:hover span { color: #9a9486; border-color: rgba(154, 148, 134, .3); }
.wk3__label.verdeckt { opacity: 0; pointer-events: none; }

/* Karte zum Ort */
.wk3__karte { position: absolute; left: 50%; bottom: max(70px, calc(env(safe-area-inset-bottom) + 64px)); z-index: 6; transform: translateX(-50%); width: min(360px, calc(100% - 32px)); box-sizing: border-box; padding: 16px 18px 18px; border-radius: 14px; background: rgba(10, 11, 16, .94); border: 1px solid rgba(201, 168, 76, .45); box-shadow: 0 18px 60px rgba(0, 0, 0, .7); animation: wk3auf .3s ease; }
.wk3__karte[hidden] { display: none; }
@keyframes wk3auf { from { opacity: 0; transform: translate(-50%, 12px); } }
.wk3__karte h3 { margin: 0 0 6px; font-family: var(--gs-font-heading, Georgia, serif); font-size: 1.15rem; color: #f3ead8; }
.wk3__karte p { margin: 0 0 14px; font-size: .86rem; line-height: 1.5; color: #b9ae96; }
.wk3__karte p[hidden] { display: none; }
.wk3__karte-knoepfe { display: flex; gap: 8px; }
.wk3__knopf { flex: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 999px; border: 1px solid rgba(201, 168, 76, .45); background: rgba(8, 9, 13, .78); color: #efe4cc; font: inherit; font-size: .9rem; text-decoration: none; cursor: pointer; }
.wk3__knopf--haupt { background: linear-gradient(#caa94e, #9a7a28); color: #1a140a; border-color: #e6cc7f; font-weight: 600; }
.wk3__knopf--max { border-color: rgba(111, 183, 255, .6); color: #cfe4ff; }
.wk3__knopf:hover, .wk3__knopf:focus-visible { filter: brightness(1.12); outline: none; }

/* Übergang in die begehbare Welt */
.wk3__schwarz { position: absolute; inset: 0; z-index: 30; background: #000; opacity: 0; pointer-events: none; transition: opacity .9s ease; display: flex; align-items: center; justify-content: center; }
.wk3__schwarz.an { opacity: 1; pointer-events: auto; }
.wk3__schwarz p { margin: 0; padding: 0 20px; text-align: center; font-family: var(--gs-font-heading, Georgia, serif); font-size: clamp(1.3rem, 3.5vw, 2rem); letter-spacing: .08em; color: #e6cc7f; opacity: 0; transition: opacity .8s ease .3s; }
.wk3__schwarz.an p { opacity: 1; }

@media (max-width: 600px) {
    .wk3__hinweis { display: none; }
    .wk3__label span { font-size: 11.5px; padding: 4px 9px; }
    .wk3__quelle { font-size: .6rem; }
}
