/* Rundgang durch die Verwaltung: Bühne 1280 × 800 (wird von der Webseite skaliert eingebettet).
   Das Aussehen der Konsole kommt aus amt.css – hier nur Bühne, Zeiger, Erzähler und Steuerung. */
body.rg { height: 100vh; overflow: hidden; display: grid; grid-template-rows: 1fr 58px; background: var(--paper); }
.rg-rahmen { display: grid; min-height: 0; } /* Landmark um Bühne und Erzählung – füllt die obere Zeile */
.rg-buehne { position: relative; overflow: hidden; min-height: 0; }
.rg .shell { min-height: 0; height: 100%; }
.rg .side { overflow: hidden; }
.rg .nav a { cursor: default; }
.rg .main { overflow: hidden; }
.rg .content { max-width: none; padding-right: 300px; } /* rechts steht der Amtsschimmel */
.rg .tabs { flex-wrap: nowrap; }
.rg .tabs a { padding: 10px 6px; font-size: 12.5px; white-space: nowrap; }

/* Zeiger und Klick */
.rg-zeiger { position: absolute; z-index: 50; left: 900px; top: 640px; width: 30px; height: 30px; pointer-events: none;
  transition: left .75s cubic-bezier(.4, .1, .2, 1), top .75s cubic-bezier(.4, .1, .2, 1); filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .35)); }
.rg-zeiger::before { content: ""; position: absolute; inset: -14px; border-radius: 50%; background: radial-gradient(circle, rgba(200, 50, 42, .28), rgba(200, 50, 42, 0) 65%); }
.rg-zeiger.klick::after { content: ""; position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--stamp); animation: rg-klick .5s ease-out forwards; }
@keyframes rg-klick { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.rg-gedrueckt { transform: translateY(1px) scale(.97); filter: brightness(.92); }
.rg-neu { animation: rg-rein .45s ease-out both; }
@keyframes rg-rein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.rg-markiert { outline: 3px solid var(--stamp); outline-offset: 3px; border-radius: 8px; transition: outline-color .3s; }
.rg .input.rg-tippt { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(20, 32, 58, .12); }

/* Erzähler: Amtsschimmel mit Sprechblase */
.rg-schimmel { position: absolute; right: 18px; bottom: 70px; z-index: 70; width: 300px; display: flex; flex-direction: column; align-items: flex-end; pointer-events: none; }
.rg-schimmel img { width: 150px; height: auto; filter: drop-shadow(0 12px 18px rgba(20, 32, 58, .25)); transition: transform .3s; }
.rg-schimmel img.wechsel { transform: translateY(4px) rotate(-2deg); }
.rg-blase { position: relative; margin: 0 0 12px; padding: 14px 16px; background: var(--paper-2); border: 1.5px solid var(--ink); border-radius: 14px;
  font: 500 16px/1.45 var(--sans); color: var(--ink); box-shadow: var(--shadow); min-height: 3em; }
.rg-blase::after { content: ""; position: absolute; right: 56px; bottom: -10px; width: 18px; height: 18px; background: var(--paper-2);
  border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); }

/* Start und Ende */
.rg-start, .rg-ende { position: absolute; inset: 0 0 58px 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: rgba(20, 32, 58, .55); color: #fff; text-align: center; }
.rg-start[hidden], .rg-ende[hidden] { display: none; }
.rg-start p { margin: 0; padding: 6px 14px; border-radius: 999px; background: var(--ink); font: 500 15px/1.4 var(--mono); letter-spacing: .04em; color: #fff; } /* eigener dunkler Grund: die Konsole dahinter ist hell */
.rg-los { display: inline-flex; align-items: center; gap: 12px; padding: 18px 30px; border: 0; border-radius: 999px; background: var(--stamp); color: #fff;
  font: 700 22px/1 var(--sans); cursor: pointer; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .6); }
.rg-los:focus-visible, .rg-spiel:focus-visible, .rg-kapitel button:focus-visible, .rg-ende .btn:focus-visible { outline: 3px solid #F5B92E; outline-offset: 3px; }
.rg-ende-titel { margin: 0; font: 800 54px/1 var(--serif); letter-spacing: -.02em; }
.rg-ende { background: rgba(20, 32, 58, .78); }
.rg-ende .btn.ghost { color: #fff; background: var(--ink); border-color: rgba(255, 255, 255, .7); }

/* Steuerung */
.rg-steuerung { display: flex; align-items: center; gap: 12px; padding: 0 16px; background: var(--ink); color: #fff; }
.rg-spiel { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--stamp); color: #fff; font-size: 16px; cursor: pointer; flex: none; }
.rg-kapitel { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; flex: 1; }
.rg-kapitel li { flex: 1; }
.rg-kapitel button { width: 100%; min-height: 40px; padding: 4px 8px 8px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .85);
  font: 500 13px/1.2 var(--sans); cursor: pointer; text-align: left; position: relative; }
.rg-kapitel button b { font: 500 11px/1 var(--mono); color: rgba(255, 255, 255, .6); margin-right: 6px; }
.rg-kapitel button[aria-current="step"] { background: rgba(255, 255, 255, .16); color: #fff; }
.rg-kapitel .fort { position: absolute; left: 8px; right: 8px; bottom: 4px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.rg-kapitel .fort i { display: block; height: 100%; width: 0; background: var(--stamp); }

/* Nachgebaute Teile, die es in amt.css so nicht gibt */
.rg-raster { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.rg-raster span { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font: 600 12px/1 var(--mono); }
.rg-raster span.pause { background: var(--paper-3); border-style: dashed; color: var(--ink-3); }
.rg-stempel { position: absolute; right: 360px; top: 90px; z-index: 30; padding: 8px 16px 6px; border: 4px solid var(--stamp); border-radius: 8px; color: var(--stamp);
  font: 800 30px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; transform: rotate(-8deg); animation: rg-stempeln .5s cubic-bezier(.2, .9, .3, 1.3) both; }
@keyframes rg-stempeln { from { transform: rotate(-8deg) scale(2.2); opacity: 0; } to { transform: rotate(-8deg) scale(1); opacity: .92; } }
.rg-zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.rg-qr { width: 120px; height: 120px; border-radius: 6px; background:
  conic-gradient(from 90deg at 25% 25%, var(--ink) 25%, transparent 0) 0 0 / 24px 24px,
  conic-gradient(from 90deg at 75% 75%, var(--ink) 25%, transparent 0) 0 0 / 16px 16px, #fff; border: 8px solid #fff; outline: 1px solid var(--line-2); }
.rg-tablet { background: #1b2233; border-radius: 26px; padding: 14px; box-shadow: var(--shadow); }
.rg-tablet-innen { background: #fff; border-radius: 14px; padding: 14px; min-height: 330px; }
.rg-tablet-kopf { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 13px; }
.rg-tablet-reiter { display: flex; gap: 6px; margin-bottom: 10px; }
.rg-tablet-reiter span { padding: 7px 10px; border-radius: 8px; background: var(--paper); font-size: 13px; font-weight: 600; }
.rg-tablet-reiter span.an { background: var(--ink); color: #fff; }
.rg-gast { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.rg-gast small { display: block; color: var(--ink-3); font-size: 12px; }
.rg-balken { display: grid; grid-template-columns: 220px 1fr 44px; gap: 10px; align-items: center; margin: 7px 0; font-size: 14px; }
.rg-balken .spur { height: 14px; border-radius: 7px; background: var(--paper-3); overflow: hidden; }
.rg-balken .spur i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 7px; transition: width 1.1s cubic-bezier(.3, .8, .3, 1); }
.rg-balken b { font: 600 13px/1 var(--mono); text-align: right; }
.rg .matrix .zelle { cursor: default; transition: background-color .25s, color .25s; }

/* Teile in der Kapitelleiste: Grundlagen · Werkzeug */
.rg-kapitel .rg-teil { flex: none; display: flex; align-items: center; max-width: 92px; padding: 0 2px 0 4px; font: 500 10px/1.15 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.rg-kapitel .rg-teil:not(:first-child) { margin-left: 6px; padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, .28); }

.rg-mitte { text-align: center; }
.rg .input.rg-bedingungen { font-size: 12.5px; line-height: 1.45; resize: none; }
.rg-geschenk { display: inline-block; width: 34px; height: 34px; border-radius: 6px; background:
  linear-gradient(90deg, transparent 44%, var(--stamp) 44% 56%, transparent 56%),
  linear-gradient(transparent 38%, var(--stamp) 38% 50%, transparent 50%), var(--paper-3); }

/* Ihr Look: Farben aus dem CD-Kit und die Gästeseite im kleinen Handy */
.rg-farben { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 8px; }
.rg-farbe { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px 5px 5px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; font: 600 12px/1 var(--mono); }
.rg-farbe i { width: 24px; height: 24px; border-radius: 5px; border: 1px solid rgba(0, 0, 0, .12); }
.rg-farbe .rg-f1 { background: #1F4E46; }
.rg-farbe .rg-f2 { background: #C9962B; }
.rg-handy { --h: #14203A; --a: #C8322A; width: 236px; margin: 0 auto 8px; padding: 10px; border-radius: 30px; background: #1b2233; box-shadow: var(--shadow); }
.rg-handy--cd { --h: #1F4E46; --a: #C9962B; }
.rg-handy-innen { border-radius: 22px; overflow: hidden; background: #EFE8DA; min-height: 380px; font-size: 12px; color: #14203A; }
.rg-handy-kopf { padding: 24px 14px 14px; background: var(--h); color: #fff; transition: background-color .9s; }
.rg-handy-kopf small { display: block; font: 600 9px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.rg-handy-kopf b { display: block; margin-top: 4px; font: 700 18px/1.1 var(--serif); }
.rg-handy-logo { display: inline-block; margin-bottom: 8px; padding: 3px 8px; border-radius: 5px; background: #fff; color: var(--h); font: 700 10px/1.2 var(--serif); }
.rg-handy-logo[hidden] { display: none; }
.rg-handy-leib { display: grid; gap: 8px; padding: 12px; }
.rg-handy-karte { padding: 9px 10px; border: 1px solid #DDD3C1; border-top: 3px solid var(--a); border-radius: 8px; background: #FBF8F2; transition: border-color .9s; }
.rg-handy-knopf { margin-top: 4px; padding: 9px; border-radius: 8px; background: var(--h); color: #fff; font-weight: 700; text-align: center; transition: background-color .9s; }

/* Leinwand (nachgebaut wie app./leinwand): Bühne in der Hausfarbe, weiße Karten */
.rg-lw { position: relative; aspect-ratio: 16 / 9; overflow: hidden; container-type: inline-size; border-radius: 8px; background: #14203A; color: #F8F4EC; box-shadow: var(--shadow); }
.rg-buehne-lw { max-width: 700px; }
.rg-lw-kopf { display: flex; align-items: center; gap: 2cqw; padding: 1.8cqw 3cqw; border-bottom: 1px solid rgba(248, 244, 236, .25); font-size: 1.9cqw; }
.rg-lw-kunde { padding: .3em .7em; border-radius: 5px; background: #FBF8F2; color: #14203A; font: 700 1em/1.2 var(--serif); }
.rg-lw-event { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rg-lw-lose { display: inline-flex; align-items: center; gap: .4em; padding: .25em .8em; border-radius: 999px; background: #FBF8F2; color: #14203A; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rg-lw-lose::before { content: ""; width: .6em; height: .6em; border-radius: 50%; background: #1B7153; }
.rg-lw-buehne { position: absolute; inset: 9cqw 4cqw 3cqw; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.8cqw; text-align: center; }
.rg-lw-mitmachen { align-self: stretch; display: flex; flex-direction: column; gap: 2.4cqw; text-align: left; }
.rg-lw-kicker { margin: 0; font-size: 1.7cqw; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.rg-lw-titel { margin: 0; font: 800 5.2cqw/1.05 var(--serif); letter-spacing: -.02em; }
.rg-lw-reihe { display: flex; align-items: center; gap: 3cqw; }
.rg-lw-qr { display: block; width: 21cqw; height: auto; aspect-ratio: 1; padding: 1cqw; border-radius: 1cqw; background: #fff; }
.rg-lw-schritte { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4cqw; counter-reset: lw; }
.rg-lw-schritte li { counter-increment: lw; display: flex; align-items: center; gap: .6em; font: 700 2.5cqw/1.2 var(--serif); }
.rg-lw-schritte li::before { content: counter(lw); display: grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%; background: #FBF8F2; color: #14203A; font-size: .85em; }
.rg-lw-karte { display: grid; gap: .6cqw; min-width: 46cqw; padding: 2cqw 3cqw; border-radius: 1.4cqw; background: #FBF8F2; color: #14203A; }
.rg-lw-karte small { font: 600 1.5cqw/1 var(--mono); color: #5D6477; }
.rg-lw-karte b { font: 700 3cqw/1.15 var(--serif); }
.rg .btn.rg-lw-knopf { font-size: 2.3cqw; padding: .6em 1.4em; background: #FBF8F2; color: #14203A; border-color: #FBF8F2; }
.rg .btn.ghost.rg-lw-knopf { background: transparent; color: #F8F4EC; border-color: rgba(248, 244, 236, .7); }
.rg-lw-aktionen { display: flex; gap: 1.6cqw; margin-top: 1cqw; }
.rg-lw-klein { margin: 0; font-size: 2.8cqw; }
.rg-lw-name { margin: 0; font: 800 9.5cqw/1 var(--serif); letter-spacing: -.02em; min-height: 1em; }
.rg-lw-wirbel { font-family: var(--mono); letter-spacing: .04em; }
.rg-lw-chip { margin: 0; padding: .5cqw 1.6cqw; border-radius: 1cqw; background: #FBF8F2; color: #14203A; font: 700 2.3cqw/1.2 var(--serif); }
.rg-lw-gewinner { list-style: none; margin: 1cqw 0 0; padding: 0; display: grid; gap: 1.2cqw; width: 80%; }
.rg-lw-gewinner li { display: flex; justify-content: space-between; gap: 2cqw; padding: 1.2cqw 2cqw; border-radius: 1.2cqw; background: #FBF8F2; color: #14203A; font-size: 2.2cqw; text-align: left; }
.rg-lw-gewinner b { font-family: var(--serif); }

/* Lagezentrum (Disaster Craps) – nachgebaut wie app./lagezentrum; QR-Code zum Mitmachen in der Ecke */
.rg-lz .rg-lw-buehne { inset: 9cqw 13cqw 3cqw; }
.rg-lz-qr { position: absolute; right: 2.2cqw; bottom: 2.2cqw; width: 9cqw; height: auto; padding: .6cqw; border-radius: .8cqw; background: #fff; }
.rg .row.rg-mitte { justify-content: center; margin-top: 12px; }
.rg-lz-wuerfel { display: flex; justify-content: center; gap: 3cqw; }
.rg-lz-w { display: grid; justify-items: center; gap: .8cqw; width: 16cqw; padding: 2cqw 1cqw 1.4cqw; border-radius: 2cqw; background: #FBF8F2; color: #14203A; box-shadow: 0 1cqw 2.4cqw rgba(0, 0, 0, .35); }
.rg-lz-w span { min-height: 1.2em; font: 700 1.8cqw/1.2 var(--serif); }
.rg-lz-w.rollt { animation: rg-rollen .22s ease-in-out infinite alternate; }
@keyframes rg-rollen { from { transform: rotate(-9deg) translateY(-.6cqw); } to { transform: rotate(9deg) translateY(.6cqw); } }
.rg-csym { width: 10cqw; height: 10cqw; }
.rg-lz-bescheid { position: relative; display: grid; gap: 1cqw; min-width: 52cqw; padding: 2.4cqw 3.4cqw 6.4cqw; border-radius: 1.4cqw; background: #FBF8F2; color: #14203A; text-align: left; }
.rg-lz-bescheid .rg-lw-kicker { color: #5D6477; }
.rg-lz-bescheid dl { display: grid; grid-template-columns: auto 1fr; gap: .6cqw 2.4cqw; margin: 0; }
.rg-lz-bescheid dt { align-self: center; font: 600 1.5cqw/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #5D6477; }
.rg-lz-bescheid dd { margin: 0; font: 700 3.4cqw/1.15 var(--serif); }
.rg-lz-stempel { position: absolute; right: 2cqw; bottom: 2cqw; padding: .5cqw 1.2cqw; border: .45cqw solid var(--stamp); border-radius: .8cqw; color: var(--stamp);
  font: 800 1.6cqw/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; transform: rotate(-8deg); animation: rg-stempeln .5s cubic-bezier(.2, .9, .3, 1.3) both; }
.rg-lz-stempel--titel { position: relative; right: auto; bottom: auto; display: inline-block; margin-left: 2cqw; vertical-align: middle; border-color: #F8F4EC; color: #F8F4EC; }
.rg-lz-leiste { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2cqw; }
.rg-lz-leiste span { display: inline-flex; align-items: center; gap: .5em; padding: .3em .9em .3em .35em; border-radius: 999px; background: rgba(248, 244, 236, .14); font: 700 1.8cqw/1.2 var(--serif); }
.rg-lz-leiste .rg-csym { width: 3.4cqw; height: 3.4cqw; padding: .3cqw; border-radius: 50%; background: #FBF8F2; color: #14203A; }
.rg-lz .rg-lw-titel.rg-lz-frage { font-size: 4cqw; }
.rg-lz-wand { list-style: none; margin: 0; padding: 0; display: grid; gap: .9cqw; width: 100%; }
.rg-lz-wand li { display: flex; justify-content: space-between; align-items: center; gap: 2cqw; padding: 1cqw 1.8cqw; border-radius: 1cqw; background: #FBF8F2; color: #14203A; font: 600 1.9cqw/1.25 var(--sans); text-align: left; }
.rg-lz-wand small { flex: none; font: 700 1.7cqw/1 var(--mono); }
.rg-lz-wand small::before { content: "▲ "; color: var(--stamp); }
.rg-zwei.rg-mod { grid-template-columns: 1.15fr 1fr; }
.rg-mod .kopfzeile { flex-wrap: nowrap; }
/* Kleines Lagezentrum neben der Warteschlange: Wand größer und einzeilig, damit sie lesbar bleibt */
@container (max-width: 460px) {
  .rg-lz .rg-lw-buehne { inset: 8cqw 12cqw 3cqw 4cqw; gap: 1.4cqw; }
  .rg-lz .rg-lw-titel.rg-lz-frage { font-size: 5.4cqw; }
  .rg-lz-leiste span { font-size: 2.8cqw; }
  .rg-lz-wand li { padding: 1.2cqw 2cqw; font-size: 3.2cqw; }
  .rg-lz-wand li, .rg-lz-wand li * { white-space: nowrap; }
  .rg-lz-wand li { overflow: hidden; text-overflow: ellipsis; display: block; position: relative; padding-right: 7cqw; }
  .rg-lz-wand small { position: absolute; right: 2cqw; top: 50%; transform: translateY(-50%); font-size: 2.8cqw; }
}
.rg-lz-ergebnis { width: 100%; margin: 0; padding-left: 1.4em; display: grid; gap: .8cqw; font: 600 2cqw/1.3 var(--sans); text-align: left; }

@media (prefers-reduced-motion: reduce) {
  .rg-zeiger, .rg-balken .spur i { transition: none; }
  .rg-neu, .rg-stempel, .rg-lz-stempel, .rg-lz-w.rollt, .rg-zeiger.klick::after { animation: none; }
}
