/* 0.30 „Die Welt“ (Test): begehbare Stadt. Wird überall geladen (erw_style), wirkt aber nur unter body.welt-seite bzw. .welt.
   Größe und Lage der Bühne setzt welt.js per CSSOM (--welt-oben/--welt-unten), keine Inline-Styles im Markup (CSP). */
body.welt-seite { overflow: hidden; overscroll-behavior: none; }
body.welt-seite .fuss, body.welt-seite main > .ziel-leiste, body.welt-seite main > .bereich-reiter, body.welt-seite main > .hinweis { display: none; }
body.welt-seite .wrap { max-width: none; padding: 0; }

.welt-buehne { position: fixed; left: 0; right: 0; top: var(--welt-oben, 64px); bottom: var(--welt-unten, 0px); z-index: 5; overflow: hidden; background: #1e1b4b;
  font-family: Inter, "Segoe UI", system-ui, sans-serif; -webkit-user-select: none; user-select: none; touch-action: none; -webkit-tap-highlight-color: transparent; }
.welt-canvas { display: block; position: absolute; left: 0; top: 0; width: 100%; height: 100%; cursor: pointer; }
.welt-vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 80% 70% at 50% 46%, rgba(20,14,50,0) 62%, rgba(20,14,50,.22) 100%); }
.welt-vignette.innen { background: radial-gradient(ellipse 78% 64% at 50% 44%, rgba(20,14,50,0) 58%, rgba(20,14,50,.34) 100%); }
.welt-vignette.keller { background: radial-gradient(ellipse 70% 56% at 50% 40%, rgba(12,10,30,0) 46%, rgba(12,10,30,.55) 100%); }

/* Ziel-Leiste (roter Faden) */
.welt-ziel { position: absolute; left: 8px; right: 8px; top: 8px; z-index: 3; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 14px 6px 8px;
  border: 0; border-radius: 16px; background: rgba(255,255,255,.97); color: #1e1b4b; font: inherit; text-align: left; cursor: pointer; box-shadow: 0 4px 16px rgba(30,27,75,.22); }
.welt-ziel-marke { position: relative; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #4f46e5; color: #fff; font-weight: 900; font-size: 15px; }
.welt-ziel-marke span { grid-area: 1 / 1; transition: opacity .25s, transform .3s; }
.welt-ziel-haken { opacity: 0; transform: scale(.4); }
.welt-ziel.erledigt .welt-ziel-marke { background: #059669; }
.welt-ziel.erledigt .welt-ziel-pfeil { opacity: 0; }
.welt-ziel.erledigt .welt-ziel-haken { opacity: 1; transform: scale(1.15); }
.welt-ziel-text { display: grid; gap: 1px; min-width: 0; font-weight: 700; font-size: 14px; line-height: 1.25; }
.welt-ziel-text small { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #6366f1; }
.welt-ziel-text span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.welt-kopf { position: absolute; left: 8px; right: 8px; top: 62px; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 8px; pointer-events: none; }
.welt-ort { background: rgba(255,255,255,.94); border-radius: 999px; padding: 5px 12px 5px 10px; font-weight: 800; font-size: 13px; color: #1e1b4b; box-shadow: 0 3px 12px rgba(30,27,75,.18);
  display: inline-flex; align-items: center; gap: 7px; min-width: 0; max-width: calc(100% - 190px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.welt-ort::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4f46e5; box-shadow: 0 0 0 3px #e0e7ff; flex: none; }
.welt-knoepfe { display: flex; gap: 6px; pointer-events: auto; }
.welt-chip { white-space: nowrap; border: 0; border-radius: 999px; padding: 6px 10px; background: #fff; color: #4f46e5; font: inherit; font-weight: 800; font-size: 12px; box-shadow: 0 3px 12px rgba(30,27,75,.18); cursor: pointer; }
.welt-chip.leise { color: #4b5563; }
.welt-chip[aria-pressed="true"] { background: #4f46e5; color: #fff; }

/* Textbox unten */
.welt-box { position: absolute; left: 8px; right: 8px; bottom: 10px; z-index: 4; max-height: 62%; overflow-y: auto; -webkit-overflow-scrolling: touch; touch-action: pan-y;
  background: #fff; border-radius: 18px; border-top: 4px solid #4f46e5; box-shadow: 0 12px 34px rgba(30,27,75,.32); padding: 13px 16px 18px; font-size: 17px; line-height: 1.42; color: #111827;
  -webkit-user-select: text; user-select: text; }
.welt-box[hidden] { display: none; }
.welt-box.geschichte { border-top-color: #f59e0b; }
.welt-wer { display: inline-block; color: #4338ca; background: #eef2ff; border-radius: 999px; padding: 2px 10px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.welt-box.geschichte .welt-wer { background: #fef3c7; color: #92400e; }
.welt-satz { margin: 0; }
.welt-satz.klein { font-size: 14px; color: #4b5563; margin-top: 6px; }
.welt-weiter { position: absolute; right: 14px; bottom: 6px; font-size: 12px; color: #4f46e5; animation: welt-hupf .8s ease-in-out infinite; }
.welt-probe-ok { display: inline-block; margin-bottom: 6px; padding: 2px 9px; border-radius: 999px; background: #dcfce7; color: #166534; font-size: 12px; font-weight: 800; }
.welt-wahl { display: grid; gap: 8px; margin-top: 12px; }
.welt-wahl.raster { grid-template-columns: 1fr 1fr; }
.welt-wahl button, .welt-wahl a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; padding: 9px 14px; border: 0; border-radius: 13px; font: inherit; font-size: 15.5px;
  font-weight: 800; text-align: left; text-decoration: none; cursor: pointer; background: #eef2ff; color: #3730a3; box-shadow: 0 3px 0 #c7d2fe; }
.welt-wahl .primaer { background: #4f46e5; color: #fff; box-shadow: 0 3px 0 #3730a3; }
.welt-wahl .leise { background: transparent; color: #4b5563; box-shadow: none; justify-content: center; font-weight: 700; }
.welt-wahl .gesperrt { background: #f3f4f6; color: #6b7280; box-shadow: 0 3px 0 #e5e7eb; }
.welt-wahl .info { display: block; font-size: 12.5px; font-weight: 600; opacity: .8; margin-top: 2px; }
.welt-wahl .etikett-probe { flex: none; font-size: 11.5px; font-weight: 900; padding: 2px 7px; border-radius: 8px; background: #e0e7ff; color: #3730a3; }
.welt-wahl .gesperrt .etikett-probe { background: #e5e7eb; color: #4b5563; }
.welt-wahl .primaer .etikett-probe { background: rgba(255,255,255,.2); color: #fff; }
.welt-wahl .text { display: grid; }
@keyframes welt-hupf { 50% { transform: translateY(-3px); } }

/* Steuerkreuz und A-Knopf */
.welt-pad { position: absolute; left: 12px; bottom: 14px; z-index: 3; width: 150px; height: 150px; }
.welt-pad[hidden], .welt-a[hidden] { display: none; }
.welt-pad button, .welt-a { position: absolute; width: 52px; height: 52px; border-radius: 16px; border: 0; background: rgba(255,255,255,.94); font-size: 20px; font-weight: 900; color: #4f46e5;
  box-shadow: 0 4px 14px rgba(30,27,75,.25); touch-action: none; cursor: pointer; }
.welt-pad .o { left: 49px; top: 0; } .welt-pad .u { left: 49px; bottom: 0; } .welt-pad .l { left: 0; top: 49px; } .welt-pad .r { right: 0; top: 49px; }
.welt-a { right: 20px; bottom: 44px; z-index: 3; width: 70px; height: 70px; border-radius: 50%; background: #4f46e5; color: #fff; font-size: 26px; box-shadow: 0 5px 0 #3730a3, 0 8px 20px rgba(30,27,75,.3); }

.welt-blende { position: absolute; inset: 0; z-index: 6; background: #1e1b4b; opacity: 0; pointer-events: none; transition: opacity .2s; }
.welt-blende.an { opacity: 1; }

/* Einstellungszusage über der Welt (Optik aus intro.css, hier auf dunklem Grund) */
.welt-ueber { position: fixed; inset: 0; z-index: 60; overflow-y: auto; -webkit-overflow-scrolling: touch; touch-action: pan-y; padding: 64px 14px 48px; box-sizing: border-box;
  background: radial-gradient(ellipse at 50% 30%, rgba(49,46,129,.82), rgba(15,12,40,.93)); opacity: 0; transition: opacity .3s; -webkit-user-select: text; user-select: text; }
.welt-ueber.an { opacity: 1; }
.welt-ueber[hidden] { display: none; }
.welt-ueber-zu { position: fixed; top: 12px; right: 12px; z-index: 61; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: #4f46e5; font-size: 20px; font-weight: 900;
  box-shadow: 0 4px 14px rgba(0,0,0,.3); cursor: pointer; }
.welt-ueber .intro { color: #fff; }
.welt-ueber .intro h1 { color: #fff; font-size: 24px; margin: 0 0 6px; }
.welt-ueber .intro-hinweis { color: #e0e7ff; }
.welt-ueber .intro-skip .knopf { color: #c7d2fe; }

@media (prefers-reduced-motion: reduce) {
  .welt-weiter { animation: none; }
  .welt-blende, .welt-ueber, .welt-ziel-marke span { transition: none; }
}
@media (min-width: 720px) {
  .welt-ziel { left: 50%; right: auto; transform: translateX(-50%); width: min(640px, calc(100% - 16px)); }
  .welt-box { left: 50%; right: auto; transform: translateX(-50%); width: min(620px, calc(100% - 16px)); }
}
/* Schalter auf der klassischen Stadtkarte */
.welt-schalter { display: flex; justify-content: center; }
