@font-face { font-family: "Newsreader"; src: url("schriften/newsreader-normal-latin.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; src: url("schriften/newsreader-normal-latin-ext.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; src: url("schriften/newsreader-italic-latin.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("schriften/cinzel-latin.woff2") format("woff2"); font-weight: 400 900; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Cinzel"; src: url("schriften/cinzel-latin-ext.woff2") format("woff2"); font-weight: 400 900; font-display: swap; unicode-range: U+0100-02AF, U+1E00-1EFF; }

:root {
  --nacht: #070706;
  --flaeche: #131310;
  --tafel: rgba(9, 9, 8, .94);
  --elfenbein: #f0ece2;
  --elfenbein-leise: rgba(240, 236, 226, .72);
  --elfenbein-still: rgba(240, 236, 226, .56);
  --gold: #ddb880;
  --gold-linie: rgba(221, 184, 128, .42);
  --gold-hauch: rgba(221, 184, 128, .16);
  --tinte: #1a1714;
  --schaltaus: #5c5953;
  --serif: "Newsreader", Georgia, serif;
  --titel: "Cinzel", "Newsreader", serif;
  --rand: 14px;
  --kurve: cubic-bezier(.16, 1, .3, 1);
  --zier: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ddb880' stroke-width='1.1'%3E%3Cpath d='M1 23V8.5C1 4.4 4.4 1 8.5 1H23'/%3E%3Cpath d='M5 23V11c0-3.3 2.7-6 6-6h12' opacity='.55'/%3E%3Cpath d='M8.5 12.5c0-2.3 1.6-4 3.6-4 1.4 0 2.4 1 2.4 2.2s-1 2-2 2'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--nacht); color: var(--elfenbein); }
body { font: 400 16px/1.5 var(--serif); -webkit-font-smoothing: antialiased; overflow: hidden; }
::selection { background: var(--gold); color: var(--nacht); }
input { caret-color: var(--gold); }
button, input, a { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { text-decoration: none; }
:focus-visible { outline: 1.5px solid var(--gold); outline-offset: 2px; }
[hidden] { display: none !important; }

.wk-i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Gerüst ---------- */
.wk { height: 100vh; height: 100dvh; display: grid; grid-template-rows: minmax(0, 1fr) auto; background: var(--nacht); }
.wk.ist-eingebettet { border: 1px solid var(--gold); padding: 6px; }
.wk.ist-eingebettet .wk-buehne { box-shadow: inset 0 0 0 1px var(--gold-linie); }
.wk.ist-eingebettet .wk-leiste { border: 1px solid var(--gold-linie); border-top: 0; }
/* Eingebettet: die Karte behält ihr Format, die Ortsleiste kommt darunter dazu (Höhe meldet weltkarte.js an die Seite). */
.wk.ist-eingebettet { height: auto; grid-template-rows: auto auto; }
.wk.ist-eingebettet .wk-buehne { aspect-ratio: 16 / 9; }
:root:fullscreen .wk { height: 100vh; height: 100dvh; grid-template-rows: minmax(0, 1fr) auto; border: 0; padding: 0; }
:root:fullscreen .wk-buehne { aspect-ratio: auto; touch-action: none; }
.wk.ist-eingebettet .wk-buehne { touch-action: pan-y; }

.wk-buehne { position: relative; overflow: hidden; overflow: clip; background: radial-gradient(ellipse at center, #15140f 0%, var(--nacht) 75%); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.wk-buehne.zieht { cursor: grabbing; }
.wk-buehne:focus-visible { outline-offset: -3px; }
.wk-welt { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.wk-bild { display: block; width: 1600px; height: 1600px; max-width: none; pointer-events: none; }
.wk-orte { position: absolute; inset: 0; pointer-events: none; }

/* ---------- Ortsmarken ---------- */
.wk-ort { position: absolute; left: 0; top: 0; width: 30px; height: 30px; margin: -15px 0 0 -15px; display: grid; place-items: center; pointer-events: auto; border-radius: 50%; }
.wk-ort::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--tinte); box-shadow: 0 0 0 2px var(--gold), 0 1px 3px rgba(0,0,0,.45); transition: transform .3s var(--kurve); }
.wk-ort::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--gold); opacity: 0; transform: scale(.5); transition: opacity .3s var(--kurve), transform .4s var(--kurve); box-shadow: 0 0 0 1px rgba(26,23,20,.35); }
.wk-ort:hover::before { transform: scale(1.25); }
.wk-ort.ist-gewaehlt::after { opacity: 1; transform: scale(1); }
.wk-ort.ist-gewaehlt::before { background: var(--gold); box-shadow: 0 0 0 2px var(--tinte); }
.wk.ohne-orte .wk-ort { display: none; }

/* ---------- Zier: Doppelrahmen mit Eckornamenten ---------- */
.wk-zier { background: var(--tafel); border: 1px solid var(--gold); box-shadow: 0 10px 28px rgba(0,0,0,.42), 0 2px 6px rgba(0,0,0,.3); position: absolute; }
.wk-zier::before { content: ""; position: absolute; inset: 4px; border: 1px solid var(--gold-linie); pointer-events: none; }
/* Ecken als eigene Elemente, weil jede Ecke gespiegelt werden muss (setzt weltkarte.js). */
.wk-zier > .wk-ecke { position: absolute; width: 16px; height: 16px; background: var(--zier) center / contain no-repeat; pointer-events: none; }
.wk-ecke.o-l { top: 2px; left: 2px; }
.wk-ecke.o-r { top: 2px; right: 2px; transform: scaleX(-1); }
.wk-ecke.u-l { bottom: 2px; left: 2px; transform: scaleY(-1); }
.wk-ecke.u-r { bottom: 2px; right: 2px; transform: scale(-1); }

/* ---------- Ebenenkasten ---------- */
.wk-kasten { top: var(--rand); left: var(--rand); width: 252px; z-index: 4; cursor: default; transition: width .7s var(--kurve); }
.wk-kasten-kopf { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px 16px 9px; position: relative; }
.wk-kompass { width: 22px; height: 22px; fill: var(--gold); stroke: var(--gold); stroke-width: .6; transition: width .7s var(--kurve), height .7s var(--kurve); }
.wk-kasten-titel { font: 500 21px/1.1 var(--titel); letter-spacing: .1em; color: var(--gold); text-transform: uppercase; transition: font-size .7s var(--kurve); }
.wk-kasten-pfeil { position: absolute; right: 12px; bottom: 12px; width: 16px; height: 16px; color: var(--gold); transform: rotate(180deg); transition: transform .35s var(--kurve); }
.wk-kasten-inhalt { padding: 0 16px 8px; max-height: 380px; transition: max-height .7s var(--kurve), opacity .35s var(--kurve), padding .7s var(--kurve); }
.wk-kasten-inhalt::before { content: ""; display: block; height: 1px; background: var(--gold-linie); margin: 0 0 11px; }

.wk-kasten.ist-klein { width: 168px; }
.wk-kasten.ist-klein .wk-kasten-kopf { flex-direction: row; justify-content: flex-start; gap: 9px; padding: 9px 34px 9px 14px; }
.wk-kasten.ist-klein .wk-kompass { width: 18px; height: 18px; }
.wk-kasten.ist-klein .wk-kasten-titel { font-size: 15px; letter-spacing: .14em; }
.wk-kasten.ist-klein .wk-kasten-pfeil { bottom: auto; top: 50%; margin-top: -8px; transform: none; }
.wk-kasten.ist-klein .wk-kasten-inhalt { max-height: 0; opacity: 0; padding-bottom: 0; overflow: hidden; pointer-events: none; visibility: hidden; transition: max-height .7s var(--kurve), opacity .35s var(--kurve), padding .7s var(--kurve), visibility 0s .7s; }
.wk-kasten.ist-klein .wk-ecke { width: 11px; height: 11px; }

.wk-suche { position: relative; display: flex; align-items: center; gap: 9px; height: 34px; padding: 0 13px; border: 1px solid var(--gold-linie); border-radius: 999px; color: var(--gold); background: rgba(0,0,0,.25); }
.wk-suche:focus-within { border-color: var(--gold); }
.wk-suche input, .wk-feld input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--elfenbein); font-size: 16px; padding: 0; -webkit-appearance: none; appearance: none; }
.wk-suche input::placeholder, .wk-feld input::placeholder { color: var(--elfenbein-still); }
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.wk-treffer { position: absolute; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 4px; list-style: none; background: var(--flaeche); border: 1px solid var(--gold-linie); border-radius: 8px; box-shadow: 0 12px 24px rgba(0,0,0,.45); z-index: 6; }
.wk-treffer button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 5px; color: var(--elfenbein); text-align: left; }
.wk-treffer button:hover, .wk-treffer button.ist-aktiv { background: var(--gold-hauch); }
.wk-treffer svg { width: 22px; height: 19px; color: var(--gold); }
.wk-treffer .leer { padding: 8px 10px; color: var(--elfenbein-still); font-style: italic; }

.wk-ebenen { list-style: none; margin: 6px 0 0; padding: 0; }
.wk-ebenen li + li { border-top: 1px solid var(--gold-linie); }
.wk-anzeige-hinweis { margin: 6px 0 2px; font-size: 13px; font-style: italic; line-height: 1.4; color: var(--elfenbein-still); }
.wk-ebene { width: 100%; display: flex; align-items: center; gap: 13px; padding: 6px 0; text-align: left; }
.wk-ebene .wk-symbol { width: 26px; height: 22px; color: var(--gold); }
.wk-ebene span { flex: 1; white-space: nowrap; font-size: 16px; color: var(--elfenbein); }
.wk-schalter { width: 38px; height: 21px; border-radius: 999px; border: 1px solid var(--gold-linie); position: relative; flex: none; transition: border-color .25s; }
.wk-schalter::after { content: ""; position: absolute; top: 3px; left: 3px; width: 13px; height: 13px; border-radius: 50%; background: var(--schaltaus); transition: transform .3s var(--kurve), background .25s; }
.wk-ebene[aria-checked="true"] .wk-schalter { border-color: var(--gold); }
.wk-ebene[aria-checked="true"] .wk-schalter::after { transform: translateX(17px); background: var(--gold); }

/* ---------- Oben rechts ---------- */
.wk-oben-rechts { position: absolute; top: var(--rand); right: var(--rand); display: flex; gap: 8px; z-index: 4; cursor: default; }
.wk-knopf { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 16px; background: var(--tafel); border: 1px solid var(--gold-linie); border-radius: 6px; box-shadow: inset 0 0 0 3px rgba(9,9,8,.94), inset 0 0 0 4px var(--gold-hauch), 0 6px 18px rgba(0,0,0,.35); color: var(--elfenbein); font-size: 16px; transition: border-color .2s; }
.wk-knopf svg { color: var(--gold); width: 20px; height: 20px; }
.wk-knopf:hover { border-color: var(--gold); }
.wk-suche-rechts { height: 42px; width: 230px; border-radius: 6px; background: var(--tafel); box-shadow: inset 0 0 0 3px rgba(9,9,8,.94), inset 0 0 0 4px var(--gold-hauch), 0 6px 18px rgba(0,0,0,.35); }
/* Eine Suche zur Zeit: groß sucht der Ebenenkasten, klein übernimmt das Feld rechts oben. */
.wk:not(.kasten-klein) .wk-suche-rechts { display: none; }
.wk.register-offen .wk-oben-rechts { display: none; }

/* ---------- Ortsregister ---------- */
.wk-register { position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 100%); z-index: 5; display: flex; flex-direction: column; background: rgba(10, 10, 9, .97); border-left: 1px solid var(--gold-linie); box-shadow: -14px 0 32px rgba(0,0,0,.4); cursor: default; padding: 20px 22px 0; animation: register-rein .45s var(--kurve); }
@keyframes register-rein { from { transform: translateX(24px); opacity: 0; } }
.wk-register-kopf { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.wk-register h2 { margin: 0; font: 500 22px/1.1 var(--titel); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.wk-rund { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: var(--gold); }
.wk-rund:hover { background: var(--gold-hauch); }
.wk-rund .wk-i { width: 16px; height: 16px; }
.wk-feld { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border: 1px solid var(--gold-linie); color: var(--gold); }
.wk-feld:focus-within { border-color: var(--gold); }
.wk-register-koerper { flex: 1; min-height: 0; display: grid; grid-template-columns: 26px 1fr; gap: 10px; margin-top: 14px; }
.wk-abc { display: flex; flex-direction: column; overflow-y: auto; scrollbar-width: none; border-right: 1px solid var(--gold-linie); padding-right: 6px; }
.wk-abc button { font: 500 11px/1 var(--titel); padding: 4px 0; border-radius: 2px; color: var(--elfenbein-leise); }
.wk-abc button:disabled { color: rgba(240,236,226,.22); cursor: default; }
.wk-abc button.ist-aktiv { background: var(--gold-hauch); color: var(--gold); }
.wk-register-liste { position: relative; list-style: none; margin: 0; padding: 0 2px 20px 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--gold-linie) transparent; }
.wk-register-liste li { border-bottom: 1px solid var(--gold-linie); }
.wk-eintrag-kopf { width: 100%; display: flex; align-items: center; gap: 14px; padding: 13px 4px; text-align: left; color: var(--elfenbein); }
.wk-eintrag-kopf svg:first-child { width: 24px; height: 21px; color: var(--gold); flex: none; }
.wk-eintrag-kopf span { flex: 1; font-size: 19px; letter-spacing: .02em; transition: font-size .3s var(--kurve); }
.wk-eintrag-kopf .wk-i { color: var(--gold); width: 16px; height: 16px; transition: transform .3s var(--kurve); }
.wk-eintrag-kopf:hover span { color: var(--gold); }
.wk-register-liste li.ist-offen .wk-eintrag-kopf span { font-size: 24px; }
.wk-eintrag-inhalt { padding: 0 4px 16px 42px; }
.wk-eintrag-inhalt p { margin: 0 0 14px; font-size: 15.5px; line-height: 1.55; color: var(--elfenbein); }
.wk-eintrag-inhalt p.leer { color: var(--elfenbein-still); font-style: italic; }
.wk-eintrag-knoepfe { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wk-rahmenknopf { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--gold-linie); font: 500 11px/1 var(--titel); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); transition: border-color .2s, background .2s; }
.wk-rahmenknopf:hover { border-color: var(--gold); background: var(--gold-hauch); }
.wk-rahmenknopf .wk-i { width: 14px; height: 14px; }
.wk-register-liste .keine { padding: 16px 4px; color: var(--elfenbein-still); font-style: italic; border: 0; }

/* ---------- Zoom ---------- */
.wk-zoom { position: absolute; right: var(--rand); bottom: var(--rand); display: flex; flex-direction: column; background: var(--tafel); border: 1px solid var(--gold-linie); border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,.35); z-index: 3; cursor: default; overflow: hidden; }
.wk-zoom button { width: 38px; height: 38px; display: grid; place-items: center; color: var(--gold); }
.wk-zoom button + button { border-top: 1px solid var(--gold-linie); }
.wk-zoom button:hover { background: var(--gold-hauch); }
.wk-zoom button:disabled { color: rgba(221,184,128,.3); cursor: default; background: none; }
.wk.register-offen .wk-zoom { right: calc(min(360px, 100%) + var(--rand)); }
/* Ist neben dem Register kein Platz, treten die Zoomknöpfe zurück, statt abgeschnitten zu werden. */
@media (max-width: 760px) { .wk.register-offen .wk-zoom { display: none; } }

/* ---------- Ortskartusche ---------- */
.wk-kartusche { width: 300px; padding: 18px 20px 18px; z-index: 2; pointer-events: auto; cursor: default; animation: kartusche-rein .4s var(--kurve); }
@keyframes kartusche-rein { from { opacity: 0; transform: translateY(6px); } }
.wk-kartusche-kopf { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--gold-linie); }
.wk-kartusche-symbol { width: 30px; height: 26px; fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wk-kartusche h3 { flex: 1; margin: 0; font: 500 17px/1.2 var(--titel); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.wk-kartusche-zu { width: 28px; height: 28px; margin: -6px -8px 0 0; }
.wk-kartusche > p { margin: 12px 0 16px; font-size: 16px; line-height: 1.55; color: var(--elfenbein); }
.wk-kartusche > p.leer { color: var(--elfenbein-still); font-style: italic; }
.wk-kartusche-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wk-pille { display: grid; place-items: center; height: 36px; border: 1px solid var(--gold-linie); border-radius: 999px; font: 500 11px/1 var(--titel); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); transition: border-color .2s, background .2s; }
.wk-pille:hover { border-color: var(--gold); background: var(--gold-hauch); }
.wk-kartusche { left: 0; top: 0; }
.wk-spitze { position: absolute; bottom: -8px; width: 15px; height: 15px; background: #090908; border: solid var(--gold); border-width: 0 1px 1px 0; transform: translateX(-50%) rotate(45deg); }
.wk-kartusche.spitze-oben .wk-spitze { bottom: auto; top: -8px; border-width: 1px 0 0 1px; }

/* ---------- Mehr ---------- */
.wk-mehr { position: absolute; left: 0; right: 0; bottom: 0; max-height: 78%; z-index: 6; overflow-y: auto; background: rgba(9,9,8,.97); border-top: 1px solid var(--gold); box-shadow: 0 -16px 40px rgba(0,0,0,.45); cursor: default; animation: mehr-rein .5s var(--kurve); }
@keyframes mehr-rein { from { transform: translateY(28px); opacity: 0; clip-path: inset(30% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
.wk-mehr-innen { position: relative; max-width: 68ch; margin: 0 auto; padding: 30px 28px 32px; }
.wk-mehr-zu { position: absolute; top: 16px; right: 12px; }
.wk-mehr-art { margin: 0 0 6px; font: 500 12px/1 var(--titel); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.wk-mehr h2 { margin: 0 0 14px; font: 400 36px/1.1 var(--serif); letter-spacing: -.01em; color: var(--elfenbein); }
.wk-mehr-text { margin: 0 0 22px; font-size: 18px; line-height: 1.6; color: var(--elfenbein); max-width: 65ch; }
.wk-mehr-text.leer { color: var(--elfenbein-still); font-style: italic; }

/* ---------- Ortsleiste ---------- */
.wk-leiste { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(150px, 210px) minmax(0, 620px) auto minmax(0, 1fr) auto; align-items: stretch; min-height: 92px; background: #0b0b0a; border-top: 1px solid var(--gold-linie); }
.wk-leiste > * { display: flex; align-items: center; padding: 0 20px; position: relative; }
.wk-leiste > .wk-schritt { padding: 0 18px; }
.wk-leiste > * + *::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 1px; background: var(--gold-linie); }
.wk-schritt { gap: 10px; font: 500 12px/1 var(--titel); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); transition: color .2s; }
.wk-schritt .wk-i { width: 16px; height: 16px; transition: transform .3s var(--kurve); }
.wk-leiste::before, .wk-leiste::after { content: ""; }
.wk-leiste::before { grid-column: 2; grid-row: 1; }
.wk-leiste::after { grid-column: 6; grid-row: 1; }
.wk-zurueck { grid-column: 1; grid-row: 1; } .wk-leiste-name { grid-column: 3; grid-row: 1; } .wk-leiste-text { grid-column: 4; grid-row: 1; }
.wk-leiste-aktionen { grid-column: 5; grid-row: 1; } .wk-weiter { grid-column: 7; grid-row: 1; }
.wk-zurueck:hover .wk-i { transform: translateX(-3px); }
.wk-weiter:hover .wk-i { transform: translateX(3px); }
.wk-leiste-name { gap: 14px; }
.wk-leiste-symbol { width: 28px; height: 24px; fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wk-leiste-zaehler { margin: 0 0 5px; font: 500 11px/1 var(--titel); letter-spacing: .2em; text-transform: uppercase; color: var(--elfenbein-leise); font-variant-numeric: lining-nums; }
.wk-leiste-titel { margin: 0; font: 600 19px/1.15 var(--titel); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.wk-leiste-text { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--elfenbein); }
.wk-leiste-text span { max-width: 64ch; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.wk-leiste-text.leer { color: var(--elfenbein-still); font-style: italic; }
.wk-leiste-aktionen { flex-direction: column; align-items: flex-start !important; justify-content: center; gap: 12px; }
.wk-link { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1 var(--titel); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.wk-link .wk-i { width: 15px; height: 15px; transition: transform .3s var(--kurve); }
.wk-link:hover .wk-i { transform: translateX(3px); }

.wk-hinweis { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; padding: 12px 18px; background: rgba(9,9,8,.88); border: 1px solid var(--gold-linie); border-radius: 6px; color: var(--elfenbein); font-size: 15px; pointer-events: none; opacity: 0; transition: opacity .35s; z-index: 7; }
.wk-hinweis.ist-sichtbar { opacity: 1; }

/* ---------- Smartphone ---------- */
@media (max-width: 640px) {
  :root { --rand: 10px; }
  .wk.ist-eingebettet { padding: 4px; }
  .wk.ist-eingebettet .wk-buehne { aspect-ratio: 4 / 5; }
  .wk-kasten { width: min(236px, calc(100% - 80px)); }
  .wk-kasten.ist-klein { width: 146px; }
  .wk-kasten-titel { font-size: 22px; }
  .wk-suche-rechts { display: none !important; }
  .wk-register-knopf { width: 42px; padding: 0; justify-content: center; }
  .wk-register-knopf span { display: none; }
  .wk-register { top: auto; left: 0; width: 100%; height: 78%; border-left: 0; border-top: 1px solid var(--gold); border-radius: 14px 14px 0 0; padding: 14px 18px 0; animation-name: blatt-rein; }
  .wk-register::before { content: ""; position: absolute; top: 6px; left: 50%; width: 36px; height: 3px; margin-left: -18px; border-radius: 3px; background: var(--gold-linie); }
  @keyframes blatt-rein { from { transform: translateY(40px); opacity: 0; } }
  .wk.register-offen .wk-zoom { right: var(--rand); }
  .wk-kartusche { display: none; }
  .wk-zoom button { width: 40px; height: 40px; }

  .wk-leiste { grid-template-columns: auto 1fr auto; grid-template-areas: "zurueck name weiter" "text text text" "aktionen aktionen aktionen"; min-height: 0; padding: 4px 0 12px; }
  .wk-leiste > * { padding: 0 14px; }
  .wk-leiste > * + *::before { display: none; }
  .wk-leiste::before, .wk-leiste::after { display: none; }
  .wk-zurueck { grid-area: zurueck; padding: 12px 10px 12px 14px !important; }
  .wk-weiter { grid-area: weiter; padding: 12px 14px 12px 10px !important; }
  .wk-schritt span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .wk-schritt .wk-i { width: 20px; height: 20px; }
  .wk-leiste-name { grid-area: name; justify-content: center; gap: 10px; padding: 8px 0 !important; }
  .wk-leiste-symbol { width: 24px; height: 21px; }
  .wk-leiste-titel { font-size: 17px; }
  .wk-leiste-zaehler { font-size: 10px; }
  .wk-leiste-text { grid-area: text; font-size: 15px; padding-top: 2px !important; }
  .wk-leiste-aktionen { grid-area: aktionen; flex-direction: row; gap: 22px; padding-top: 12px !important; }
  .wk-mehr h2 { font-size: 28px; }
  .wk-mehr-innen { padding: 24px 18px 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Kartenmotor (NeverlandForge, AT47): Aethrandor unter der Bedienung; Ortsknöpfe bleiben als Trefferfläche, die Symbole zeichnet der Motor. */
.wk-motor { position: absolute; inset: 0; overflow: hidden; }
.ist-motor .wk-ort::before { opacity: 0; }
