/*
 * Öffentliche Pubquiz-Seite: Galerie mit animierten Szenen (frontend/js/pubquizGallery/). Rahmen: Tabs, Bildfläche mit fester Seitenlage,
 * Text und Steuerung. Die Bildfläche behält ihr Seitenverhältnis bei jedem Szenenwechsel (nichts verschiebt die Seite); die Tab-Leiste
 * scrollt auf kleinen Displays in sich, nie die Seite. Bedienflächen mindestens 44 x 44 px, kein Hover nötig.
 * Szenen-eigene Stile kommen mit den Szenen (Klassen `pqg-*`).
 */

.pq-gallery {
  min-width: 0;
  margin: 2.25rem 0;
}
.pq-gallery[hidden],
.pq-gallery [hidden] {
  display: none !important;
}
.pq-gallery__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.4rem, 3.6vw, 2rem);
  line-height: 1.2;
}
.pq-gallery__intro {
  margin: 0 0 1rem;
  max-width: 46rem;
  line-height: 1.5;
}

/* Tab-Leiste: immer sichtbar, scrollt in sich */
.pq-gallery__tabs {
  display: flex;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0.25rem 0.25rem 0.5rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}
.pq-gallery__tab {
  flex: none;
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 2px solid var(--line, rgba(31, 42, 68, 0.2));
  border-radius: 999px;
  background: transparent;
  color: var(--ink, #1a1d23);
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}
.pq-gallery__tab[aria-selected="true"] {
  border-color: #1f2a44;
  background: #1f2a44;
  color: #fff;
}
[data-theme="dark"] .pq-gallery__tab[aria-selected="true"] {
  border-color: #4db6c0;
  background: #4db6c0;
  color: #12141a;
}

/* Panel: Bildfläche links, Text rechts; schmal untereinander */
.pq-gallery__panel {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 1.25rem 1.75rem;
  align-items: start;
}
@media (max-width: 760px) {
  .pq-gallery__panel {
    grid-template-columns: minmax(0, 1fr);
  }
}
.pq-gallery__figure {
  min-width: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #1f2a44;
  box-shadow: 0 18px 40px -24px rgba(31, 42, 68, 0.75);
}
.pq-gallery__canvas {
  position: relative;
  container: pqgstage / inline-size;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
@media (max-width: 520px) {
  .pq-gallery__canvas {
    aspect-ratio: 4 / 5;
  }
}
.pq-gallery__side {
  min-width: 0;
}
.pq-gallery__scene-title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  line-height: 1.25;
}
.pq-gallery__body {
  margin: 0 0 0.75rem;
  line-height: 1.55;
}
.pq-gallery__benefit {
  margin: 0 0 1rem;
  font-weight: 700;
  line-height: 1.4;
}

/* Steuerung */
.pq-gallery__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}
.pq-gallery__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.4rem 1rem;
  border: 2px solid #1f2a44;
  border-radius: 999px;
  background: #1f2a44;
  color: #fff;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}
[data-theme="dark"] .pq-gallery__btn {
  border-color: #4db6c0;
  background: #4db6c0;
  color: #12141a;
}
.pq-gallery__btn--arrow {
  padding: 0.4rem 0;
  background: transparent;
  color: var(--ink, #1a1d23);
  font-size: 1.5rem;
}
[data-theme="dark"] .pq-gallery__btn--arrow {
  background: transparent;
  color: var(--ink, #f4f6f8);
}
.pq-gallery__btn[aria-disabled="true"] {
  opacity: 0.4;
  cursor: default;
}
.pq-gallery__nav {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.pq-gallery__counter {
  min-width: 4.5rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.pq-gallery__tab:focus-visible,
.pq-gallery__btn:focus-visible {
  outline: 3px solid #4db6c0;
  outline-offset: 2px;
}

.pq-gallery__note {
  margin: 1rem 0 0;
  color: var(--muted, #4a5263);
  font-size: 0.9rem;
}

/* Statusmeldung nur für Screenreader (eigene Regel, unabhängig vom Tailwind-Bündel) */
.pq-gallery__status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================================================================
 * Szene „Heimvorteil? Zeigt mal!“ (frontend/js/pubquizGallery/sceneGeo.js): Karte links, Frage, Handy und Regionenübersicht rechts.
 * Die Karte trägt die Stile aus pubquiz-geo.css (.geo-*); hier nur Anordnung und Einblendung. Größen über --pq-k der Bildfläche.
 * Alles ist fertig gezeichnet und wird per .is-on eingeblendet; .is-still (Schlussbild) schaltet Bewegung ab, .is-paused hält sie an.
 * ======================================================================================================================== */
.pqg-geo {
  --pq-k: max(4.8px, 0.85cqw);
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  background: #0b1830;
  color: #fff;
}
.pqg-geo__left {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
}
.pqg-geo__map {
  position: relative;
  min-width: 0;
  min-height: 0;
}
.pqg-geo__strip {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  min-height: calc(22 * var(--pqg-fk));
  padding: 0.3rem 0.6rem 0.4rem;
  --pqg-fk: max(1.6px, 0.32cqw);
}
.pqg-fig {
  position: relative;
  flex: none;
  width: calc(23 * var(--pqg-fk));
  height: calc(16 * var(--pqg-fk));
  margin-bottom: 0.95rem;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.pqg-fig.is-on {
  opacity: 1;
}
.pqg-fig .pq-figure {
  --pq-k: var(--pqg-fk);
  position: absolute;
  left: 0;
  bottom: 0;
}
.pqg-fig__jump {
  opacity: 0;
}
.pqg-fig.is-cheer .pqg-fig__jump {
  opacity: 1;
}
.pqg-fig.is-cheer .pqg-fig__idle {
  opacity: 0;
}
.pqg-fig__nick {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  max-width: 140%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.3;
}
.pqg-fig::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -0.1rem;
  height: 3px;
  border-radius: 2px;
  background: var(--c, #fff);
}
.pqg-geo:not(.is-still) .pqg-fig.is-cheer {
  animation: pqg-hop 0.6s ease-in-out 3;
}
.pqg-bubble {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 0 0.95rem 0.4rem;
  padding: 0.45rem 0.7rem;
  border-radius: 14px;
  background: #fff;
  color: #14161f;
  font-size: clamp(0.78rem, 1.9cqw, 1rem);
  font-weight: 800;
  line-height: 1.25;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.pqg-bubble.is-on {
  opacity: 1;
  transform: none;
}
.pqg-bubble::before {
  content: "";
  position: absolute;
  left: -6px;
  bottom: 10px;
  border: 6px solid transparent;
  border-left: 0;
  border-right-color: #fff;
}

/* Einblendung der Kartenelemente */
.pqg-step {
  opacity: 0;
  transition: opacity 0.35s ease;
}
.pqg-step.is-on {
  opacity: 1;
}
.pqg-geo:not(.is-still) .geo-pin.is-on .geo-pin__svg {
  animation: geo-drop 560ms cubic-bezier(0.25, 1.35, 0.45, 1) both;
}
.pqg-geo .geo-tag {
  font-size: max(10px, calc(2 * var(--geo-k)));
}
.pqg-geo .geo-tag--target {
  font-size: max(10px, calc(2.1 * var(--geo-k)));
  border-left-width: 4px;
}
.pqg-tag__res {
  display: none;
  padding: 0.05em 0.5em;
  border-radius: 999px;
  background: var(--geo-gold);
  color: #3a2700;
  font-size: 0.8em;
  font-style: normal;
}
.pqg-tag__res.is-on {
  display: inline;
}
.pqg-edge {
  position: absolute;
  width: calc(1.7 * var(--geo-k));
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 2px solid #ff3d6e;
  border-radius: 50%;
  background: #fff;
  z-index: 5;
}
.pqg-fallback {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.7rem;
  padding: 1rem;
  text-align: center;
}
.pqg-fallback__shape {
  width: 52%;
  max-height: 60%;
  fill: #f5ebcf;
  stroke: #c79f55;
  stroke-width: 1.5px;
}
.pqg-fallback__text {
  margin: 0;
  max-width: 28rem;
  font-size: clamp(0.8rem, 2cqw, 1rem);
  line-height: 1.4;
}

/* Rechte Seite: Frage und Handy, danach die Regionenübersicht */
.pqg-geo__right {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.6rem;
  min-width: 0;
  min-height: 0;
  padding: 0.9rem 0.9rem 0.9rem 0.3rem;
}
.pqg-geo__head {
  display: grid;
}
.pqg-q,
.pqg-packs-label {
  grid-area: 1 / 1;
  margin: 0;
  font-size: clamp(0.9rem, 2.3cqw, 1.3rem);
  font-weight: 800;
  line-height: 1.25;
  transition: opacity 0.4s ease;
}
.pqg-packs-label {
  opacity: 0;
}
.pqg-geo[data-mode="packs"] .pqg-q {
  opacity: 0;
}
.pqg-geo[data-mode="packs"] .pqg-packs-label {
  opacity: 1;
}
.pqg-geo__body {
  position: relative;
  min-height: 0;
}
.pqg-phone,
.pqg-tiles {
  position: absolute;
  inset: 0;
  transition: opacity 0.4s ease, visibility 0.4s;
}
.pqg-geo[data-mode="packs"] .pqg-phone,
.pqg-geo[data-mode="ask"] .pqg-tiles {
  opacity: 0;
  visibility: hidden;
}

/* Handy-Attrappe */
.pqg-phone {
  display: flex;
  align-items: center;
  justify-content: center;
}
.pqg-phone__screen {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
  max-width: 100%;
  aspect-ratio: 9 / 15;
  padding: 0.55rem;
  border: 3px solid #2a3a5c;
  border-radius: 20px;
  background: #101e3a;
}
.pqg-phone__map {
  position: relative;
  flex: 1 1 auto;
  border-radius: 12px;
  background: radial-gradient(circle at 2px 2px, rgb(122 94 48 / 0.35) 1.2px, transparent 1.6px) 0 0 / 14px 14px, #f5ebcf;
}
.pqg-phone__cross {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  border: 2px solid #e8173a;
  border-radius: 50%;
}
.pqg-phone__cross::before,
.pqg-phone__cross::after {
  content: "";
  position: absolute;
  background: #e8173a;
}
.pqg-phone__cross::before {
  left: 50%;
  top: -7px;
  bottom: -7px;
  width: 2px;
  margin-left: -1px;
}
.pqg-phone__cross::after {
  top: 50%;
  left: -7px;
  right: -7px;
  height: 2px;
  margin-top: -1px;
}
.pqg-phone__send {
  display: grid;
  place-items: center;
  min-height: 2.4rem;
  border-radius: 999px;
  background: #4db6c0;
  color: #0b1830;
  font-size: 1rem;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease;
}
.pqg-phone.is-hot .pqg-phone__send {
  box-shadow: 0 0 0 3px rgb(77 182 192 / 0.45);
}
.pqg-geo:not(.is-still) .pqg-phone.is-hot .pqg-phone__send {
  animation: pqg-pulse 1.1s ease-in-out infinite;
}
.pqg-phone__send.is-sent {
  background: #ffc83d;
  transform: scale(0.94);
  animation: none !important;
}

/* Regionenübersicht: 14 Kacheln */
.pqg-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pqg-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  min-height: 0;
  padding: 0.3rem 0.2rem 0.2rem;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 10px;
  background: rgb(255 255 255 / 0.06);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.35s ease calc(var(--i, 0) * 70ms), transform 0.35s ease calc(var(--i, 0) * 70ms);
}
.pqg-tile.is-on {
  opacity: 1;
  transform: none;
}
.pqg-tile__shape {
  flex: 1 1 0;
  width: 100%;
  min-height: 0;
  fill: #f5ebcf;
  opacity: 0.85;
}
.pqg-tile__abbr {
  margin-top: 0.15rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
  white-space: nowrap;
}
.pqg-tile__name {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.pqg-tile.is-current {
  border: 2px solid var(--geo-gold, #ffc83d);
  background: rgb(255 200 61 / 0.18);
}
.pqg-tile.is-current .pqg-tile__shape {
  fill: #ffc83d;
  opacity: 1;
}
.pqg-tile__tag {
  position: absolute;
  left: 50%;
  top: -0.5rem;
  transform: translateX(-50%);
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: #ffc83d;
  color: #3a2700;
  font-size: 0.6rem;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
}

@keyframes pqg-hop {
  0%, 100% { transform: translateY(0); }
  45% { transform: translateY(-14%); }
}
@keyframes pqg-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgb(77 182 192 / 0.45); }
  50% { box-shadow: 0 0 0 8px rgb(77 182 192 / 0); }
}

/* Schlussbild: nichts bewegt sich; Pause: laufende Bewegung steht */
.pqg-geo.is-still *,
.pqg-geo.is-still *::before,
.pqg-geo.is-still *::after {
  animation: none !important;
  transition: none !important;
}
.pqg-geo.is-paused *,
.pqg-geo.is-paused *::before,
.pqg-geo.is-paused *::after {
  animation-play-state: paused !important;
}

/* Schmale Bildfläche: Karte oben, darunter Frage, Handy und Kacheln */
@container pqgstage (max-width: 420px) {
  .pqg-geo {
    --pq-k: max(4.2px, 1cqw);
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1.35fr) minmax(0, 1fr);
  }
  .pqg-geo__strip {
    --pqg-fk: 1.5px;
    padding-bottom: 0.2rem;
  }
  .pqg-fig {
    margin-bottom: 0.85rem;
  }
  .pqg-geo__right {
    gap: 0.35rem;
    padding: 0 0.7rem 0.6rem;
  }
  .pqg-tiles {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
  .pqg-tile__abbr {
    font-size: 0.6rem;
  }
  .pqg-tile__tag {
    font-size: 0.6rem;
  }
  .pqg-phone__screen {
    flex-direction: row;
    width: 100%;
    max-width: 18rem;
    aspect-ratio: auto;
    padding: 0.4rem;
  }
  .pqg-phone__map {
    flex: 1 1 60%;
  }
  .pqg-phone__send {
    flex: 0 0 34%;
    align-self: center;
  }
}

/* ========================================================================================================================
 * Szene Buzzer (sceneBuzzer.js): links die Leinwand mit zwei Teams, rechts zwei Handys. Figuren und Spruch teilen sich die Klassen
 * .pqg-fig und .pqg-bubble mit der Kartenszene. Alles liegt fertig da und wird per .is-on eingeblendet; .is-still schaltet Bewegung ab.
 * ======================================================================================================================== */
.pqg-buz {
  --pqg-fk: max(1.6px, 0.3cqw);
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  background: #0b1830;
  color: #fff;
}
.pqg-buz__stage {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
  min-height: 0;
  padding: 0.8rem 0.4rem 0.7rem 0.8rem;
}
.pqg-buz__q {
  margin: 0;
  font-size: clamp(0.85rem, 2.1cqw, 1.2rem);
  font-weight: 800;
  line-height: 1.25;
}
.pqg-buz__callbox {
  min-height: 3.6em;
}
.pqg-buz__quip {
  margin: 0.15rem 0 0;
  color: #fff;
  font-size: clamp(0.66rem, 1.45cqw, 0.9rem);
  font-weight: 700;
  line-height: 1.25;
}
.pqg-buz__call {
  margin: 0;
  color: #b9c4dc;
  font-size: clamp(0.8rem, 1.9cqw, 1.1rem);
  font-weight: 800;
  line-height: 1.25;
}
.pqg-buz__call.is-go {
  color: #ffc83d;
}
.pqg-buz__lane {
  flex: 1 1 0;
  min-height: 0;
  min-width: 0;
  padding: 0.25rem 0.5rem 0.1rem;
  overflow: hidden;
  border-left: 5px solid var(--c, #fff);
  border-radius: 6px;
  background: rgb(255 255 255 / 0.07);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.pqg-buz__lane.is-holding,
.pqg-buz__lane.is-won {
  background: rgb(255 255 255 / 0.14);
  box-shadow: 0 0 0 2px var(--c, #fff);
}
.pqg-buz__lanehead {
  display: flex;
  align-items: center;
  gap: 0.15rem 0.4rem;
  min-height: 1.3rem;
  white-space: nowrap;
}
.pqg-buz__team {
  font-size: clamp(0.8rem, 1.7cqw, 1rem);
}
.pqg-buz__buzzed,
.pqg-buz__pot {
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  background: #fff;
  color: #14161f;
  font-size: clamp(0.62rem, 1.35cqw, 0.8rem);
  font-weight: 800;
  line-height: 1.35;
}
.pqg-buz__pot {
  background: #ffc83d;
}
.pqg-buz__row {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  padding-top: 0.2rem;
}
.pqg-buz .pqg-fig {
  width: calc(34 * var(--pqg-fk));
  margin-bottom: 1rem;
}
.pqg-buz .pqg-fig .pq-figure {
  left: calc((100% - 23 * var(--pqg-fk)) / 2);
}
.pqg-buz .pqg-fig__nick {
  max-width: none;
}
.pqg-buz .pqg-fig.is-tap {
  filter: drop-shadow(0 0 6px var(--c, #fff));
}
.pqg-buz:not(.is-still) .pqg-fig.is-cheer {
  animation: pqg-hop 0.6s ease-in-out 3;
}

/* Handys */
.pqg-buz__phones {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  min-width: 0;
  min-height: 0;
  padding: 0.8rem 0.8rem 0.8rem 0.3rem;
}
.pqg-bphone {
  display: grid;
  flex: 1 1 0;
  grid-template-rows: auto auto 1fr;
  justify-items: center;
  align-content: start;
  gap: 0.4rem;
  min-width: 0;
  padding: 0.5rem 0.35rem;
  border: 3px solid #2a3a5c;
  border-radius: 18px;
  background: #101e3a;
  text-align: center;
}
.pqg-buz .pqg-bphone__btn {
  width: min(100%, 9rem);
  border-width: 0.25rem;
  box-shadow: 0 0.3rem 0 #12142a, 0 0.5rem 1rem rgb(18 20 42 / 0.3);
  box-shadow: 0 0.3rem 0 color-mix(in srgb, var(--pq-team, #007cc1) 50%, #12142a), 0 0.5rem 1rem rgb(18 20 42 / 0.3);
  font-size: clamp(0.75rem, 2.2cqw, 1.25rem);
  cursor: default;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.3s ease;
}
.pqg-buz .pqg-bphone__btn.is-pressed {
  transform: translateY(0.25rem);
  box-shadow: none;
}
.pqg-buz .pqg-bphone__btn.is-off {
  filter: grayscale(0.85) opacity(0.5);
  box-shadow: none;
}
.pqg-buz .pqg-bphone__status {
  margin: 0;
  min-height: 3.6em;
  font-size: clamp(0.64rem, 1.4cqw, 0.85rem);
  line-height: 1.25;
}
.pqg-buz .pqg-bphone__gap {
  margin: 0;
  color: #ffc83d;
  font-size: clamp(0.64rem, 1.4cqw, 0.85rem);
  font-weight: 800;
  line-height: 1.25;
}

.pqg-buz.is-still *,
.pqg-buz.is-still *::before,
.pqg-buz.is-still *::after {
  animation: none !important;
  transition: none !important;
}
.pqg-buz.is-paused *,
.pqg-buz.is-paused *::before,
.pqg-buz.is-paused *::after {
  animation-play-state: paused !important;
}

/* Schmale Bildfläche: Leinwand oben, die zwei Handys nebeneinander darunter */
@container pqgstage (max-width: 420px) {
  .pqg-buz {
    --pqg-fk: 1.3px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1.5fr) minmax(0, 1fr);
  }
  .pqg-buz__stage {
    gap: 0.25rem;
    padding: 0.5rem 0.6rem 0.2rem;
  }
  .pqg-buz__q {
    font-size: 0.8rem;
  }
  .pqg-buz .pqg-fig {
    width: calc(40 * var(--pqg-fk));
  }
  .pqg-buz__callbox {
    min-height: 3.2em;
  }
  .pqg-buz__call {
    font-size: 0.75rem;
  }
  .pqg-buz__quip {
    font-size: 0.66rem;
  }
  .pqg-buz__phones {
    padding: 0.3rem 0.6rem 0.6rem;
  }
  .pqg-buz .pqg-bphone__btn {
    width: min(100%, 3.4rem);
    border-width: 0.18rem;
    font-size: 0.62rem;
  }
  .pqg-buz .pqg-bphone__status,
  .pqg-buz .pqg-bphone__gap {
    font-size: 0.65rem;
  }
  .pqg-buz .pqg-bphone__status {
    min-height: 2.6em;
  }
  .pqg-bphone {
    gap: 0.25rem;
    padding: 0.35rem 0.3rem;
  }
}
@container pqgstage (max-width: 340px) {
  .pqg-buz {
    --pqg-fk: 1.1px;
    grid-template-rows: minmax(0, 1.8fr) minmax(0, 1fr);
  }
  .pqg-buz__q {
    font-size: 0.75rem;
  }
  .pqg-buz__callbox {
    min-height: 1.3em;
  }
  .pqg-buz__call {
    font-size: 0.75rem;
  }
  .pqg-buz__quip {
    display: none;
  }
  .pqg-buz__team {
    font-size: 0.7rem;
  }
  .pqg-buz .pqg-fig {
    width: calc(58 * var(--pqg-fk));
    margin-bottom: 0.85rem;
  }
  .pqg-buz .pqg-fig__nick {
    font-size: 0.62rem;
  }
  .pqg-buz__phones {
    gap: 0.35rem;
    padding: 0.2rem 0.45rem 0.45rem;
  }
  .pqg-bphone {
    gap: 0.15rem;
    padding: 0.3rem 0.2rem 0.2rem;
  }
  .pqg-buz .pqg-bphone__btn {
    width: min(100%, 2.4rem);
    border-width: 0.12rem;
    font-size: 0.55rem;
    letter-spacing: 0;
  }
  .pqg-buz .pqg-bphone__status,
  .pqg-buz .pqg-bphone__gap {
    font-size: 0.65rem;
  }
  .pqg-buz .pqg-bphone__status {
    min-height: 0;
  }
  .pqg-buz__row {
    gap: 0.2rem;
  }
}

/* ========================================================================================================================
 * Szene Weihnachtsstube (sceneXmas.js): die echte Weihnachts-Kulisse (.pq-stagetheme) und Animationsebene (.pq-themeanim) im Szenenrahmen.
 * Beide sind auf der Leinwand fixed (Fenster); hier liegen sie absolut in der Bildfläche. Der Stapelkontext (isolation) hält ihre negativen
 * z-index im Rahmen. Die Ebene selbst wird nie mit .is-still abgeschaltet: Ihr Standbild regelt sie selbst (.is-static).
 * ======================================================================================================================== */
.pqg-xmas {
  --pqg-fk: max(1.8px, 0.45cqw);
  position: absolute;
  inset: 0;
  isolation: isolate;
  overflow: hidden;
  background: #17233d;
  color: #fff;
}
.pqg-xmas .pq-stagetheme,
.pqg-xmas .pq-themeanim {
  position: absolute;
}
/* Eigener Container an der Ebene: Der Zug der Bescherung (themeAnim/christmas, sonst in vh/vw) rechnet hier in cqh/cqw der Bildfläche. */
.pqg-xmas .pq-themeanim {
  container-type: size;
}
.pqg-xmas .xma-fin__fly {
  top: 12cqh;
  /* Zug etwa 5,1 mal so breit wie hoch: auf schmaler Bildfläche höchstens 77 % der Breite. */
  height: min(22cqh, 15cqw);
}
.pqg-xmas .xma-show.is-on .xma-fin__fly {
  animation-name: pqg-fin-fly;
}
.pqg-xmas .xma-show.is-on .xma-fin__bob {
  animation-name: pqg-fin-bob;
}
@keyframes pqg-fin-fly {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(100cqw); }
  100% { transform: translateX(-100%); }
}
@keyframes pqg-fin-bob {
  from { transform: translateY(-0.6cqh) rotate(-0.5deg); }
  to { transform: translateY(0.6cqh) rotate(0.5deg); }
}
.pqg-xmas .xma-fin__bubble {
  width: 15cqh;
  height: 5.6cqh;
  border-width: 0.3cqh;
  border-radius: 2.7cqh;
  font-size: 2.6cqh;
}
.pqg-xmas .xma-fin__bubble::after {
  left: 1.2cqh;
  bottom: -1.3cqh;
  width: 2cqh;
  height: 2cqh;
  border-width: 0 0.3cqh 0.3cqh 0;
}
/* Standbild-Schlitten des Schlussbilds: derselbe Zug, ohne Flug und ohne Bewegung; Container wie die Ebene. */
.pqg-xmas__sleigh {
  position: absolute;
  inset: 0;
  container-type: size;
  pointer-events: none;
}
.pqg-xmas__sleigh .xma-fin__fly {
  top: 12cqh;
  height: min(22cqh, 15cqw);
  left: 50%;
  transform: translateX(-50%);
}
.pqg-xmas__sleigh[hidden] {
  display: none;
}
.pqg-xmas.is-still .pqg-xmas__sleigh *,
.pqg-xmas.is-still .pqg-xmas__sleigh *::before,
.pqg-xmas.is-still .pqg-xmas__sleigh *::after {
  animation: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .pqg-xmas__sleigh * {
    animation: none !important;
  }
}
/* Podium der Szene trägt die Marker der Siegerfolie (pq-cel-podium/-place), damit die Ebene die Figuren findet; deren Stile hier aufheben. */
.pqg-xmas__podium.pq-cel-podium {
  padding: 0;
}
.pqg-xmas__place.pq-cel-place {
  container-type: normal;
  flex: none;
}
.pqg-xmas__frame {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.6rem 0.6rem 0;
}
.pqg-xmas__step,
.pqg-xmas__progress,
.pqg-xmas__unlock {
  margin: 0;
  border-radius: 999px;
  background: rgb(23 35 61 / 0.88);
  color: #fff;
  font-size: clamp(0.7rem, 1.6cqw, 0.95rem);
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
}
.pqg-xmas__step {
  padding: 0.25rem 0.8rem;
  max-width: 100%;
}
.pqg-xmas__progress {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  padding: 0.25rem 0.7rem;
  background: #ffc83d;
  color: #2b1d00;
}
.pqg-xmas__card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(46%, 22rem);
  transform: translate(-50%, -50%);
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  background: rgb(255 255 255 / 0.94);
  color: #1d1a24;
}
.pqg-xmas__q {
  margin: 0 0 0.4rem;
  font-size: clamp(0.8rem, 1.9cqw, 1.1rem);
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}
.pqg-xmas__opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pqg-xmas__opt {
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  background: var(--o, #444);
  color: #fff;
  font-size: clamp(0.7rem, 1.5cqw, 0.9rem);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}
.pqg-xmas__card.is-reveal .pqg-xmas__opt:not(.is-right) {
  opacity: 0.45;
}
.pqg-xmas__podium {
  position: absolute;
  left: 50%;
  bottom: 2.7rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: calc(3 * var(--pqg-fk));
  transform: translateX(-50%);
}
.pqg-xmas__place {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pqg-xmas__fig {
  position: relative;
  width: calc(23 * var(--pqg-fk));
  height: calc(16 * var(--pqg-fk));
}
.pqg-xmas__fig .pq-figure {
  --pq-k: var(--pqg-fk);
  position: absolute;
  left: 0;
  bottom: 0;
}
.pqg-xmas__place--1 .pqg-xmas__fig {
  margin-bottom: calc(5 * var(--pqg-fk));
}
.pqg-xmas__rank {
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  background: rgb(23 35 61 / 0.88);
  font-size: clamp(0.62rem, 1.3cqw, 0.8rem);
  font-weight: 800;
  line-height: 1.35;
  white-space: nowrap;
}
.pqg-xmas__unlock {
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  bottom: 0.5rem;
  padding: 0.2rem 0.7rem;
  font-size: clamp(0.62rem, 1.3cqw, 0.8rem);
  font-weight: 700;
}
@container pqgstage (max-width: 420px) {
  .pqg-xmas {
    --pqg-fk: max(1.6px, 0.6cqw);
  }
  .pqg-xmas__card {
    width: 82%;
  }
  /* Schmal steht der Fortschrittschip unter dem Schrittchip: der Zug fliegt darunter. */
  .pqg-xmas .xma-fin__fly,
  .pqg-xmas__sleigh .xma-fin__fly {
    top: 26cqh;
  }
  .pqg-xmas__step {
    font-size: 0.68rem;
  }
  .pqg-xmas__progress {
    position: static;
    margin-top: 0.3rem;
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
  }
  .pqg-xmas__opt {
    font-size: 0.7rem;
  }
  .pqg-xmas__q {
    font-size: 0.8rem;
  }
}
.pqg-xmas.is-still .pqg-xmas__opt,
.pqg-xmas.is-still .pqg-xmas__card {
  transition: none !important;
}

/* Finale: Einleitung und Teilnahme-Link unter den Knöpfen */
.pq-finale__lead { margin: 0.5rem auto 1rem; max-width: 36rem; text-align: center; }
.pq-finale__how { margin: 0.75rem 0 0; text-align: center; }

/* Pause und Schlussbild: nichts läuft, auch nicht, wenn die Ebene beim Tabwechsel ihre eigene Klasse (is-paused) zurücksetzt. Die Regel hängt an der Szenenwurzel. */
.pqg-xmas.is-paused *,
.pqg-xmas.is-paused *::before,
.pqg-xmas.is-paused *::after,
.pqg-xmas.is-still *,
.pqg-xmas.is-still *::before,
.pqg-xmas.is-still *::after {
  animation-play-state: paused !important;
}

/* ========================================================================================================================
 * Szene Wissen (sceneQuiz.js): links die Leinwand mit Frage, Restzeit, vier Antworten und drei Figuren, rechts zwei Handys.
 * Figuren teilen sich .pqg-fig mit den anderen Szenen. Alles liegt fertig da und wird per .is-on eingeblendet; .is-still schaltet Bewegung ab.
 * ======================================================================================================================== */
.pqg-quiz {
  --pqg-fk: max(2px, 0.42cqw);
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  background: #0b1830;
  color: #fff;
}
.pqg-quiz__stage {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  min-height: 0;
  padding: 0.8rem 0.4rem 0.7rem 0.8rem;
}
.pqg-quiz__q {
  margin: 0;
  font-size: clamp(0.85rem, 2.1cqw, 1.2rem);
  font-weight: 800;
  line-height: 1.25;
}
.pqg-quiz__time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(0.65rem, 1.4cqw, 0.85rem);
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}
.pqg-quiz__bar {
  flex: 1 1 auto;
  height: 0.4rem;
  min-width: 2rem;
  border-radius: 999px;
  background: linear-gradient(#ffc83d, #ffc83d) left / calc(var(--f, 1) * 100%) 100% no-repeat, rgb(255 255 255 / 0.15);
}
.pqg-quiz__opts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pqg-quiz__opt {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.1rem 0.4rem;
  min-width: 0;
  padding: 0.3rem 0.5rem;
  border-radius: 8px;
  background: var(--o, #1f4e9c);
  color: #fff;
  font-size: clamp(0.75rem, 1.8cqw, 1.05rem);
  font-weight: 800;
  line-height: 1.2;
  transition: opacity 0.4s ease, box-shadow 0.3s ease;
}
.pqg-quiz__letter {
  display: inline-grid;
  place-items: center;
  width: 1.4em;
  height: 1.4em;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.22);
  font-size: 0.85em;
}
.pqg-quiz__opt.is-dim {
  opacity: 0.6;
}
.pqg-quiz__opt.is-correct {
  box-shadow: 0 0 0 3px #fff;
}
.pqg-quiz__mark {
  grid-column: 1 / -1;
  color: #fff;
  font-size: 0.8em;
  font-weight: 800;
  line-height: 1.2;
}
.pqg-quiz__mark b {
  font-size: 1.1em;
}
.pqg-quiz__row {
  display: flex;
  flex: 1 1 auto;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.4rem;
  min-height: 0;
}
.pqg-quiz__tip {
  display: grid;
  justify-items: center;
  min-width: 0;
}
.pqg-quiz__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2rem;
  min-height: 1.3rem;
  margin-bottom: 0.15rem;
}
.pqg-quiz__pick,
.pqg-quiz__pts {
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  background: var(--o, #fff);
  color: #fff;
  font-size: clamp(0.65rem, 1.35cqw, 0.8rem);
  font-weight: 800;
  line-height: 1.35;
  white-space: nowrap;
}
.pqg-quiz__pts {
  background: #ffc83d;
  color: #14161f;
}
.pqg-quiz__pts.is-zero {
  background: rgb(255 255 255 / 0.2);
  color: #fff;
}
.pqg-quiz .pqg-fig {
  width: calc(34 * var(--pqg-fk));
  margin-bottom: 1rem;
}
.pqg-quiz .pqg-fig .pq-figure {
  left: calc((100% - 23 * var(--pqg-fk)) / 2);
}
.pqg-quiz .pqg-fig__nick {
  max-width: none;
}
.pqg-quiz:not(.is-still) .pqg-fig.is-cheer {
  animation: pqg-hop 0.6s ease-in-out 3;
}

/* Handys */
.pqg-quiz__phones {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  min-width: 0;
  min-height: 0;
  padding: 0.8rem 0.8rem 0.8rem 0.3rem;
}
.pqg-qphone {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  padding: 0.5rem 0.35rem;
  border: 3px solid #2a3a5c;
  border-radius: 18px;
  background: #101e3a;
  font-size: clamp(0.65rem, 1.3cqw, 0.85rem);
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
}
.pqg-qphone__nick {
  max-width: 100%;
  overflow: hidden;
  color: #b9c4dc;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pqg-qphone__tile {
  display: grid;
  place-items: center;
  width: 2.6em;
  height: 2.6em;
  border-radius: 10px;
  background: var(--o, #1f4e9c);
  font-size: 1.4em;
}
.pqg-qphone__res {
  display: grid;
  gap: 0.15rem;
  margin: 0;
}
.pqg-qphone.is-right .pqg-qphone__res strong {
  color: #7be3a0;
}
.pqg-qphone.is-wrong .pqg-qphone__res strong {
  color: #ffb3a8;
}
.pqg-qphone.is-right .pqg-qphone__res span {
  color: #ffc83d;
}

.pqg-quiz.is-still *,
.pqg-quiz.is-still *::before,
.pqg-quiz.is-still *::after {
  animation: none !important;
  transition: none !important;
}
.pqg-quiz.is-paused *,
.pqg-quiz.is-paused *::before,
.pqg-quiz.is-paused *::after {
  animation-play-state: paused !important;
}

/* Schmale Bildfläche: Leinwand oben, die zwei Handys nebeneinander darunter */
@container pqgstage (max-width: 420px) {
  .pqg-quiz {
    --pqg-fk: 1.9px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
  }
  .pqg-quiz__stage {
    gap: 0.25rem;
    padding: 0.5rem 0.6rem 0.2rem;
  }
  .pqg-quiz__q {
    font-size: 0.8rem;
  }
  .pqg-quiz__time {
    font-size: 0.65rem;
  }
  .pqg-quiz__opts {
    gap: 0.25rem;
  }
  .pqg-quiz__opt {
    padding: 0.2rem 0.35rem;
    font-size: 0.75rem;
  }
  .pqg-quiz__mark {
    font-size: 0.65rem;
  }
  .pqg-quiz .pqg-fig {
    width: calc(38 * var(--pqg-fk));
    margin-bottom: 0.85rem;
  }
  .pqg-quiz .pqg-fig__nick {
    font-size: 0.65rem;
  }
  .pqg-quiz__phones {
    padding: 0.2rem 0.6rem 0.55rem;
  }
  .pqg-qphone {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.15rem 0.4rem;
    padding: 0.3rem 0.3rem;
    border-radius: 14px;
    font-size: 0.65rem;
  }
  .pqg-qphone__nick {
    flex: 1 0 100%;
  }
  .pqg-qphone__tile {
    width: 2em;
    height: 2em;
    font-size: 1em;
  }
}
@container pqgstage (max-width: 340px) {
  .pqg-quiz {
    --pqg-fk: 1.7px;
  }
  .pqg-quiz .pqg-fig {
    width: calc(50 * var(--pqg-fk));
  }
  .pqg-quiz__pick,
  .pqg-quiz__pts {
    padding: 0.02rem 0.3rem;
  }
}

/* ========================================================================================================================
 * Szene Schätzen (sceneEstimate.js): links die Leinwand mit Frage, Zahlenstrahl (je Tipp eine Bahn) und drei Figuren, rechts zwei Handys.
 * Figuren und Handys teilen sich .pqg-fig und .pqg-qphone mit der Szene Wissen. Alles liegt fertig da und wird per .is-on eingeblendet.
 * ======================================================================================================================== */
.pqg-est {
  --pqg-fk: max(2px, 0.42cqw);
  --lh: 1.2rem;
  --top: 1.7rem;
  --foot: 1.7rem;
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  background: #0b1830;
  color: #fff;
}
.pqg-est__stage {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
  min-height: 0;
  padding: 0.8rem 0.4rem 0.7rem 0.8rem;
}
.pqg-est__q {
  margin: 0;
  font-size: clamp(0.85rem, 2.1cqw, 1.2rem);
  font-weight: 800;
  line-height: 1.25;
}

/* Zahlenstrahl: Fahne mit dem richtigen Wert oben, darunter die Achse, die Zone mit Punkten und je Tipp eine Bahn */
.pqg-est__line {
  position: relative;
  flex: none;
  height: calc(var(--top) + var(--lanes) * var(--lh) + var(--foot));
  margin: 0 0.3rem;
}
.pqg-est__axis {
  position: absolute;
  top: calc(var(--top) - 0.15rem);
  right: 0;
  left: 0;
  height: 2px;
  background: rgb(255 255 255 / 0.55);
}
.pqg-est__band {
  position: absolute;
  top: calc(var(--top) - 0.15rem);
  right: var(--b);
  bottom: 0;
  left: var(--a);
  border: 1px dashed rgb(255 255 255 / 0.4);
  border-radius: 6px;
  background: rgb(255 255 255 / 0.1);
}
.pqg-est__bandtext {
  position: absolute;
  right: 0.2rem;
  bottom: 0.1rem;
  left: 0.2rem;
  color: #d3e2ff;
  font-size: clamp(0.65rem, 1.3cqw, 0.8rem);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}
.pqg-est__guide {
  position: absolute;
  top: calc(var(--top) - 0.15rem);
  bottom: var(--foot);
  left: var(--x);
  border-left: 2px dashed #fff;
}
.pqg-est__flag {
  position: absolute;
  top: 0;
  left: var(--x);
  padding: 0.1rem 0.5rem;
  border-radius: 6px;
  background: #fff;
  color: #14161f;
  font-size: clamp(0.7rem, 1.5cqw, 0.9rem);
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
  transform: translateX(-50%);
}
.pqg-est__flag b {
  color: #1b6b3a;
}
.pqg-est__lane {
  position: absolute;
  top: calc(var(--top) + var(--i) * var(--lh));
  right: 0;
  left: 0;
  height: var(--lh);
}
.pqg-est__seg {
  position: absolute;
  top: 50%;
  left: var(--l);
  width: var(--w);
  height: 0.3rem;
  border-radius: 999px;
  background: var(--o, #fff);
  transform: translateY(-50%) scaleX(0);
  transition: opacity 0.35s ease, transform 0.6s ease;
}
.pqg-est__seg.from-left {
  transform-origin: left center;
}
.pqg-est__seg.from-right {
  transform-origin: right center;
}
.pqg-est__seg.is-on {
  transform: translateY(-50%) scaleX(1);
}
.pqg-est__pin {
  position: absolute;
  top: 50%;
  left: var(--x);
  width: 0;
  height: 0;
}
.pqg-est__dot {
  position: absolute;
  top: -0.4rem;
  left: -0.4rem;
  box-sizing: border-box;
  width: 0.8rem;
  height: 0.8rem;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--o, #fff);
}
.pqg-est__val {
  position: absolute;
  top: 0;
  color: #fff;
  font-size: clamp(0.7rem, 1.5cqw, 0.9rem);
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  transform: translateY(-50%);
}
.pqg-est__pin.is-before .pqg-est__val {
  right: 0.7rem;
}
.pqg-est__pin.is-after .pqg-est__val {
  left: 0.7rem;
}

/* Figuren mit Tipp, Abstand und Punkten */
.pqg-est__row {
  display: flex;
  flex: 1 1 auto;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.4rem;
  min-height: 0;
}
.pqg-est__tip {
  display: grid;
  justify-items: center;
  min-width: 0;
}
.pqg-est__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2rem;
  min-height: 1.3rem;
  margin-bottom: 0.15rem;
}
.pqg-est__pick,
.pqg-est__off,
.pqg-est__pts {
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  background: var(--o, #fff);
  color: #fff;
  font-size: clamp(0.65rem, 1.35cqw, 0.8rem);
  font-weight: 800;
  line-height: 1.35;
  white-space: nowrap;
}
.pqg-est__off {
  background: rgb(255 255 255 / 0.2);
}
.pqg-est__pts {
  background: #ffc83d;
  color: #14161f;
}
.pqg-est__pts.is-zero {
  background: rgb(255 255 255 / 0.2);
  color: #fff;
}
.pqg-est .pqg-fig {
  width: calc(34 * var(--pqg-fk));
  margin-bottom: 1rem;
}
.pqg-est .pqg-fig .pq-figure {
  left: calc((100% - 23 * var(--pqg-fk)) / 2);
}
.pqg-est .pqg-fig__nick {
  max-width: none;
}
.pqg-est:not(.is-still) .pqg-fig.is-cheer {
  animation: pqg-hop 0.6s ease-in-out 3;
}

/* Handys */
.pqg-est__phones {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  min-width: 0;
  min-height: 0;
  padding: 0.8rem 0.8rem 0.8rem 0.3rem;
}

.pqg-est.is-still *,
.pqg-est.is-still *::before,
.pqg-est.is-still *::after {
  animation: none !important;
  transition: none !important;
}
.pqg-est.is-paused *,
.pqg-est.is-paused *::before,
.pqg-est.is-paused *::after {
  animation-play-state: paused !important;
}

/* Schmale Bildfläche: Leinwand oben, die zwei Handys nebeneinander darunter */
@container pqgstage (max-width: 420px) {
  .pqg-est {
    --pqg-fk: 1.9px;
    --lh: 1.05rem;
    --top: 1.55rem;
    --foot: 1.2rem;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
  }
  .pqg-est__stage {
    gap: 0.25rem;
    padding: 0.5rem 0.6rem 0.2rem;
  }
  .pqg-est__q {
    font-size: 0.8rem;
  }
  .pqg-est__flag {
    font-size: 0.7rem;
  }
  .pqg-est__val {
    font-size: 0.7rem;
  }
  .pqg-est .pqg-fig {
    width: calc(38 * var(--pqg-fk));
    margin-bottom: 0.85rem;
  }
  .pqg-est .pqg-fig__nick {
    font-size: 0.65rem;
  }
  .pqg-est__phones {
    padding: 0.2rem 0.6rem 0.55rem;
  }
  .pqg-est .pqg-qphone {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.15rem 0.4rem;
    padding: 0.3rem 0.3rem;
    border-radius: 14px;
    font-size: 0.65rem;
  }
  .pqg-est .pqg-qphone__nick {
    flex: 1 0 100%;
  }
  .pqg-est .pqg-qphone__tile {
    width: 2em;
    height: 2em;
    font-size: 1em;
  }
}
@container pqgstage (max-width: 340px) {
  .pqg-est {
    --pqg-fk: 1.7px;
  }
  .pqg-est .pqg-fig {
    width: calc(50 * var(--pqg-fk));
  }
  .pqg-est__chips {
    gap: 0.15rem 0.12rem;
  }
  .pqg-est__pick,
  .pqg-est__off,
  .pqg-est__pts {
    padding: 0.02rem 0.22rem;
  }
}

/* ========================================================================================================================
 * Szene Teams (sceneTeams.js): zwei Teams in Teamfarbe nebeneinander. Je Team Name, Figuren mit Antwort und Punkten, darunter die Teamsumme; die Walze der
 * Captain-Wahl liegt zeitweise über den Figuren des Teams (Klassen .pq-reel-* aus pubquiz-captain.css, hier nur Größe über Container-Einheiten).
 * Figuren teilen sich .pqg-fig mit den anderen Szenen. Alles liegt fertig da und wird per .is-on eingeblendet; .is-still schaltet Bewegung ab.
 * ======================================================================================================================== */
.pqg-tm {
  --pqg-fk: max(2px, 0.55cqw);
  --pqg-rk: max(2.2px, 0.5cqw);
  --bg-elev: #14233f;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.8rem 0.8rem 0.7rem;
  background: #0b1830;
  color: #fff;
}
.pqg-tm__step {
  margin: 0;
  min-height: 1.3em;
  color: #ffc83d;
  font-size: clamp(0.8rem, 1.9cqw, 1.1rem);
  font-weight: 800;
  line-height: 1.25;
}
.pqg-tm__lanes {
  display: grid;
  flex: 1 1 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.6rem;
  min-height: 0;
}
.pqg-tm__lane {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  padding: 0.3rem 0.5rem 0.4rem;
  border-left: 5px solid var(--c, #fff);
  border-radius: 6px;
  background: rgb(255 255 255 / 0.07);
}
.pqg-tm__team {
  font-size: clamp(0.8rem, 1.7cqw, 1rem);
}
.pqg-tm__body {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: flex-end;
  min-height: calc(42 * var(--pqg-rk) + 0.4rem);
}
.pqg-tm__row {
  display: flex;
  flex: 1 1 auto;
  align-items: flex-end;
  justify-content: space-around;
  gap: 0.3rem;
  min-width: 0;
}
.pqg-tm__tip {
  display: grid;
  flex: 1 1 0;
  justify-items: center;
  min-width: 0;
}
.pqg-tm__chips {
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  min-height: 2.7rem;
  margin-bottom: 0.15rem;
  align-content: end;
}
.pqg-tm__pick,
.pqg-tm__pts {
  min-width: 1.5em;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: var(--o, #fff);
  color: #fff;
  font-size: clamp(0.65rem, 1.35cqw, 0.8rem);
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  white-space: nowrap;
}
.pqg-tm__pts {
  background: #ffc83d;
  color: #14161f;
}
.pqg-tm__pts.is-zero {
  background: rgb(255 255 255 / 0.2);
  color: #fff;
}
.pqg-tm .pqg-fig {
  width: 100%;
  margin-bottom: 1rem;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.pqg-tm .pqg-fig.from-left {
  transform: translateX(-1.4rem);
}
.pqg-tm .pqg-fig.from-right {
  transform: translateX(1.4rem);
}
.pqg-tm .pqg-fig.is-on {
  transform: none;
}
.pqg-tm .pqg-fig .pq-figure {
  left: calc((100% - 23 * var(--pqg-fk)) / 2);
}
.pqg-tm .pqg-fig__nick {
  max-width: 100%;
}
/* Die Figur mit Krone liegt als zweiter Satz daneben und ersetzt die Figur ohne Krone, sobald die Walze gehalten hat. */
.pqg-tm .pqg-fig__crowned {
  display: none;
}
.pqg-tm .pqg-fig.is-crowned .pqg-fig__crowned {
  display: block;
}
.pqg-tm .pqg-fig.is-crowned .pqg-fig__plain {
  display: none;
}
.pqg-tm:not(.is-still) .pqg-fig.is-cheer {
  animation: pqg-hop 0.6s ease-in-out 3;
}
.pqg-tm__sum {
  margin: 0;
  color: #fff;
  font-size: clamp(0.65rem, 1.4cqw, 0.85rem);
  font-weight: 800;
  line-height: 1.3;
  min-height: 2.6em;
  text-align: center;
}

/* Walze über den Figuren des Teams: Fenster aus pubquiz-captain.css, Zeilenhöhe und Köpfe nach der Bildfläche */
.pqg-tm__reel {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.pqg-tm .pq-reel-window {
  --pq-reel-cell: calc(14 * var(--pqg-rk));
  width: 92%;
  margin-top: 0;
}
.pqg-tm .pq-reel-cell {
  gap: 0.5rem;
  padding-inline: 0.5rem;
}
.pqg-tm .pq-reel-cell .pq-cap-head {
  --pq-k: var(--pqg-rk);
}
.pqg-tm .pq-reel-cell__name {
  font-size: clamp(0.65rem, 1.5cqw, 0.95rem);
}

.pqg-tm.is-still *,
.pqg-tm.is-still *::before,
.pqg-tm.is-still *::after {
  animation: none !important;
  transition: none !important;
}
.pqg-tm.is-paused *,
.pqg-tm.is-paused *::before,
.pqg-tm.is-paused *::after {
  animation-play-state: paused !important;
}

/* Schmale Bildfläche: weniger Rand, kleinere Figuren */
@container pqgstage (max-width: 420px) {
  .pqg-tm {
    --pqg-fk: 2.4px;
    gap: 0.35rem;
    padding: 0.5rem 0.5rem 0.5rem;
  }
  .pqg-tm__step {
    min-height: 2.5em;
    font-size: 0.8rem;
  }
  .pqg-tm__lanes {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.4rem;
  }
  .pqg-tm__lane {
    display: grid;
    grid-template-areas: "head sum" "body body";
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    align-content: center;
    padding: 0.25rem 0.3rem 0.3rem;
    border-left-width: 4px;
  }
  .pqg-tm__head {
    grid-area: head;
  }
  .pqg-tm__body {
    grid-area: body;
  }
  .pqg-tm__row {
    gap: 0.1rem;
  }
  .pqg-tm .pqg-fig.from-left,
  .pqg-tm .pqg-fig.from-right {
    transform: translateY(0.6rem);
  }
  .pqg-tm .pqg-fig {
    margin-bottom: 0.9rem;
  }
  .pqg-tm .pqg-fig__nick {
    font-size: 0.65rem;
  }
  .pqg-tm__pick,
  .pqg-tm__pts {
    padding: 0.02rem 0.25rem;
    font-size: 0.65rem;
  }
  .pqg-tm__sum {
    grid-area: sum;
    align-self: center;
    min-height: 0;
    padding-left: 0.4rem;
    font-size: 0.65rem;
    text-align: right;
  }
  .pqg-tm .pq-reel-window {
    width: 70%;
    border-width: 2px;
  }
  .pqg-tm .pq-reel-cell {
    gap: 0.25rem;
    padding-inline: 0.25rem;
  }
  .pqg-tm .pq-reel-cell__name {
    font-size: 0.65rem;
  }
}

/* ========================================================================================================================
 * Szene Themenwelten (sceneThemes.js): dieselbe Frage in Neutral, Irish Pub und Festzelt. Kulisse (.pq-stagetheme) und Ebene (.pq-themeanim, nur Festzelt) sind
 * auf der Leinwand fixed; hier liegen sie absolut in der Bildfläche. Container-Einheiten statt vh/vw. Pause und Schlussbild: nichts läuft.
 * ======================================================================================================================== */
.pqg-thm {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #1c2433;
  color: #fff;
}
.pqg-thm__stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  isolation: isolate;
  overflow: hidden;
}
.pqg-thm .pq-stagetheme,
.pqg-thm .pq-themeanim {
  position: absolute;
}
.pqg-thm .pq-themeanim {
  container-type: size;
}
.pqg-thm__frame {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.6rem 0;
}
.pqg-thm__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem;
  max-width: 100%;
}
.pqg-thm__chip {
  margin: 0;
  padding: 0.2rem 0.7rem;
  border: 0;
  border-radius: 999px;
  background: rgb(23 35 61 / 0.7);
  color: rgb(255 255 255 / 0.8);
  font: inherit;
  font-size: clamp(0.7rem, 1.6cqw, 0.9rem);
  font-weight: 800;
  line-height: 1.3;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.pqg-thm__chip.is-on {
  background: #ffc83d;
  color: #2b1d00;
}
.pqg-thm__step {
  margin: 0;
  border-radius: 999px;
  background: rgb(23 35 61 / 0.88);
  color: #fff;
  font-size: clamp(0.7rem, 1.6cqw, 0.95rem);
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
}
.pqg-thm__step {
  padding: 0.25rem 0.8rem;
  max-width: 100%;
}
.pqg-thm__card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(50%, 24rem);
  transform: translate(-50%, -50%);
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  background: rgb(255 255 255 / 0.94);
  color: #1d1a24;
}
.pqg-thm__q {
  margin: 0 0 0.4rem;
  font-size: clamp(0.8rem, 1.9cqw, 1.1rem);
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}
.pqg-thm__opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pqg-thm__opt {
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  background: var(--o, #444);
  color: #fff;
  font-size: clamp(0.7rem, 1.5cqw, 0.9rem);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}
.pqg-thm__unlock {
  flex: none;
  margin: 0;
  padding: 0.3rem 0.7rem;
  background: rgb(23 35 61 / 0.96);
  color: #fff;
  font-size: clamp(0.62rem, 1.3cqw, 0.8rem);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}
@container pqgstage (max-width: 420px) {
  .pqg-thm__card {
    width: 84%;
  }
  .pqg-thm__step {
    font-size: 0.68rem;
  }
  .pqg-thm__opt {
    font-size: 0.7rem;
  }
  .pqg-thm__q {
    font-size: 0.8rem;
  }
}
.pqg-thm.is-still .pqg-thm__chip {
  transition: none !important;
}
.pqg-thm.is-paused *,
.pqg-thm.is-paused *::before,
.pqg-thm.is-paused *::after,
.pqg-thm.is-still *,
.pqg-thm.is-still *::before,
.pqg-thm.is-still *::after {
  animation-play-state: paused !important;
}

/* ========================================================================================================================
 * Szene Vorbereitung (scenePrep.js, Tab „Euer Abend“): links der Plan mit Rundenkarten (jede Karte liegt auf ihrem Platz `--s`, Platzwechsel per Übergang auf transform),
 * rechts Dauer, Startprüfung und das Beispielbild der Einladung. Alles liegt fertig da und wird per .is-on eingeblendet; .is-still schaltet Bewegung ab.
 * Die p-Elemente tragen `.pqg-pp` davor: `.about-page p` (marketing.css) setzt sonst einen Außenabstand.
 * ======================================================================================================================== */
.pqg-pp {
  --rh: clamp(1.7rem, 4.6cqw, 2.3rem);
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.8rem 0.8rem 0.7rem;
  background: #0b1830;
  color: #fff;
}
.pqg-pp .pqg-pp__step {
  margin: 0;
  min-height: 1.3em;
  color: #ffc83d;
  font-size: clamp(0.8rem, 1.9cqw, 1.1rem);
  font-weight: 800;
  line-height: 1.25;
}
.pqg-pp__main {
  display: grid;
  flex: 1 1 0;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 0.8rem;
  min-height: 0;
}
.pqg-pp__plan {
  position: relative;
  height: calc(var(--n) * var(--rh));
  align-self: center;
  min-width: 0;
}
.pqg-pp__card {
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  height: calc(var(--rh) - 0.3rem);
  padding: 0 0.6rem 0 0.35rem;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #1b2f55;
  opacity: 0;
  transform: translateY(calc(var(--s, 0) * var(--rh)));
  transition: transform 0.7s cubic-bezier(0.3, 0.9, 0.3, 1), opacity 0.35s ease, border-color 0.3s ease, background-color 0.3s ease;
}
.pqg-pp__card.is-on {
  opacity: 1;
}
.pqg-pp__card.is-move {
  border-color: #ffc83d;
}
.pqg-pp__card.is-gap {
  border-color: #ff8a65;
  border-style: dashed;
}
.pqg-pp__card.is-pause {
  background: #2a3f66;
  color: #ffe9a8;
  font-style: italic;
}
.pqg-pp__num {
  flex: none;
  min-width: 1.4em;
  border-radius: 999px;
  background: #ffc83d;
  color: #2b1d00;
  font-size: clamp(0.65rem, 1.4cqw, 0.85rem);
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
}
.pqg-pp__num:empty {
  visibility: hidden;
}
.pqg-pp__name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  font-size: clamp(0.7rem, 1.7cqw, 1rem);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pqg-pp__kind {
  flex: none;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.14);
  font-size: clamp(0.65rem, 1.3cqw, 0.8rem);
  font-weight: 700;
  line-height: 1.5;
}
.pqg-pp__side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  min-width: 0;
}
.pqg-pp .pqg-pp__dur {
  margin: 0;
  min-height: 1.3em;
  font-size: clamp(0.75rem, 1.7cqw, 1rem);
  font-weight: 800;
  line-height: 1.3;
  transition: opacity 0.35s ease, color 0.3s ease;
}
.pqg-pp__dur.is-hot {
  color: #ffc83d;
}
.pqg-pp__check {
  padding: 0.4rem 0.6rem;
  border-left: 5px solid rgb(255 255 255 / 0.4);
  border-radius: 6px;
  background: rgb(255 255 255 / 0.08);
}
.pqg-pp__checklabel {
  display: block;
  color: rgb(255 255 255 / 0.75);
  font-size: clamp(0.65rem, 1.3cqw, 0.8rem);
  font-weight: 700;
  line-height: 1.3;
}
.pqg-pp .pqg-pp__status {
  margin: 0.1rem 0 0;
  font-size: clamp(0.75rem, 1.7cqw, 1rem);
  font-weight: 800;
  line-height: 1.3;
}
.pqg-pp .pqg-pp__status[data-state="blocked"] {
  color: #ffab91;
}
.pqg-pp .pqg-pp__status[data-state="ok"] {
  color: #9be7a6;
}
.pqg-pp__notes {
  display: grid;
}
.pqg-pp .pqg-pp__problem,
.pqg-pp .pqg-pp__incomplete {
  grid-area: 1 / 1;
  margin: 0.15rem 0 0;
  font-size: clamp(0.65rem, 1.3cqw, 0.8rem);
  line-height: 1.3;
}
.pqg-pp .pqg-pp__problem {
  opacity: 0;
  color: #ffccbc;
  font-weight: 700;
  transition: opacity 0.35s ease;
}
.pqg-pp__problem.is-on {
  opacity: 1;
}
.pqg-pp .pqg-pp__incomplete {
  color: rgb(255 255 255 / 0.7);
}
.pqg-pp__invite {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.pqg-pp__qr {
  flex: none;
  box-sizing: border-box;
  width: clamp(3rem, 9cqw, 5.5rem);
  aspect-ratio: 1;
  padding: 0.25rem;
  border-radius: 6px;
  background: #fff;
  color: #14233f;
}
.pqg-pp__qrsvg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentcolor;
}
.pqg-pp__qrhole {
  fill: #fff;
}
.pqg-pp__invitetext {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.pqg-pp__invitetitle {
  font-size: clamp(0.7rem, 1.5cqw, 0.9rem);
  line-height: 1.3;
}
.pqg-pp__invitenote {
  color: rgb(255 255 255 / 0.7);
  font-size: clamp(0.65rem, 1.2cqw, 0.75rem);
  line-height: 1.3;
}
.pqg-pp.is-still *,
.pqg-pp.is-still *::before,
.pqg-pp.is-still *::after {
  animation: none !important;
  transition: none !important;
}
.pqg-pp.is-paused *,
.pqg-pp.is-paused *::before,
.pqg-pp.is-paused *::after {
  animation-play-state: paused !important;
}

/* Schmale Bildfläche: Plan oben, Prüfung und Einladung darunter */
@container pqgstage (max-width: 420px) {
  .pqg-pp {
    --rh: 1.3rem;
    gap: 0.35rem;
    padding: 0.5rem 0.5rem 0.5rem;
  }
  .pqg-pp .pqg-pp__step {
    min-height: 2.5em;
    font-size: 0.7rem;
  }
  .pqg-pp__main {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    gap: 0.4rem;
  }
  .pqg-pp__plan {
    align-self: start;
  }
  .pqg-pp__card {
    height: calc(var(--rh) - 0.25rem);
    gap: 0.3rem;
    padding: 0 0.4rem 0 0.25rem;
  }
  .pqg-pp__name,
  .pqg-pp__kind,
  .pqg-pp__num {
    font-size: 0.65rem;
  }
  .pqg-pp__side {
    justify-content: flex-start;
    gap: 0.25rem;
  }
  .pqg-pp .pqg-pp__problem,
  .pqg-pp .pqg-pp__incomplete {
    align-self: start;
    margin-top: 0;
  }
  .pqg-pp .pqg-pp__dur,
  .pqg-pp .pqg-pp__status {
    font-size: 0.7rem;
  }
  .pqg-pp__check {
    padding: 0.25rem 0.4rem;
    border-left-width: 4px;
  }
  .pqg-pp__checklabel,
  .pqg-pp .pqg-pp__problem,
  .pqg-pp .pqg-pp__incomplete,
  .pqg-pp__invitetitle,
  .pqg-pp__invitenote {
    font-size: 0.65rem;
  }
  .pqg-pp__qr {
    width: 2.6rem;
    padding: 0.15rem;
  }
  .pqg-pp__invite {
    gap: 0.4rem;
  }
}

/* ========================================================================================================================
 * Szene Abschluss (sceneFinale.js, Tab „Euer Abend“): Endstand auf dem Podium mit Auszeichnung, Urkunde am Handy, daneben „Für die Spielleitung“ und abgesetzt
 * „Im mobilen Pubquiz“ (Revanche-Frage, nur Anzeige). Alles liegt fertig da und wird per .is-on eingeblendet; .is-still schaltet Bewegung ab.
 * Die p-Elemente tragen `.pqg-fin` davor: `.about-page p` (marketing.css) setzt sonst einen Außenabstand.
 * ======================================================================================================================== */
.pqg-fin {
  --pqg-fk: max(1.4px, 0.3cqw);
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.8rem 0.8rem 0.7rem;
  background: #0b1830;
  color: #fff;
}
.pqg-fin .pqg-fin__step {
  margin: 0;
  min-height: 1.3em;
  color: #ffc83d;
  font-size: clamp(0.8rem, 1.9cqw, 1.1rem);
  font-weight: 800;
  line-height: 1.25;
}
.pqg-fin__grid {
  display: grid;
  flex: 1 1 0;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 0.8rem;
  min-height: 0;
}
.pqg-fin__col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.6rem;
  min-width: 0;
}
.pqg-fin__stand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  min-width: 0;
}
.pqg-fin__label {
  display: block;
  color: rgb(255 255 255 / 0.75);
  font-size: clamp(0.65rem, 1.3cqw, 0.8rem);
  font-weight: 700;
  line-height: 1.3;
}
/* Podium trägt die Marker der Siegerfolie (pq-cel-podium/-place); deren Stile hier aufheben. */
.pqg-fin__podium.pq-cel-podium {
  align-items: flex-end;
  justify-content: center;
  gap: 0.35rem;
  padding: 0;
}
.pqg-fin__place.pq-cel-place {
  container-type: normal;
  flex: none;
  align-items: center;
  min-width: 0;
  border-radius: 6px;
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition: outline-color 0.3s ease, opacity 0.35s ease;
}
.pqg-fin__place.is-award {
  outline-color: #ffc83d;
}
.pqg-fin__fig {
  position: relative;
  width: calc(23 * var(--pqg-fk));
  height: calc(16 * var(--pqg-fk));
}
.pqg-fin__fig .pq-figure {
  --pq-k: var(--pqg-fk);
  position: absolute;
  left: 0;
  bottom: 0;
}
.pqg-fin__rank {
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-width: 4.2em;
  padding: 0.15rem 0.5rem 0;
  border-radius: 6px 6px 0 0;
  color: #1c1400;
  font-size: clamp(0.65rem, 1.3cqw, 0.8rem);
  font-weight: 800;
  line-height: 1.35;
  white-space: nowrap;
}
.pqg-fin__place--1 .pqg-fin__rank {
  height: 2rem;
  background: linear-gradient(180deg, #ffe07a, #f2b705);
}
.pqg-fin__place--2 .pqg-fin__rank {
  height: 1.5rem;
  background: linear-gradient(180deg, #eef1f5, #c3cad4);
}
.pqg-fin__place--3 .pqg-fin__rank {
  height: 1.05rem;
  background: linear-gradient(180deg, #f0be8d, #d0884a);
}
.pqg-fin__nick {
  max-width: 100%;
  overflow: hidden;
  font-size: clamp(0.65rem, 1.4cqw, 0.85rem);
  font-weight: 800;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pqg-fin__pts {
  color: rgb(255 255 255 / 0.75);
  font-size: clamp(0.65rem, 1.2cqw, 0.75rem);
  line-height: 1.3;
  white-space: nowrap;
}
.pqg-fin .pqg-fin__award {
  margin: 0;
  padding: 0.3rem 0.6rem;
  border-left: 5px solid #ffc83d;
  border-radius: 6px;
  background: rgb(255 255 255 / 0.08);
  font-size: clamp(0.65rem, 1.4cqw, 0.85rem);
  line-height: 1.3;
}
.pqg-fin__awardname {
  color: #ffc83d;
  font-size: clamp(0.75rem, 1.7cqw, 1rem);
}
.pqg-fin__awarddesc {
  color: rgb(255 255 255 / 0.85);
}
.pqg-fin__phone {
  align-self: center;
  justify-self: center;
  box-sizing: border-box;
  width: min(100%, 11rem);
  padding: 0.4rem 0.35rem;
  border: 3px solid #3a4d73;
  border-radius: 14px;
  background: #101f3a;
}
.pqg-fin__cert {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.45rem 0.3rem;
  border: 2px double #c99a2e;
  border-radius: 6px;
  background: #fff8e0;
  color: #3a2a00;
  text-align: center;
}
.pqg-fin__certtitle {
  font-size: clamp(0.65rem, 1.4cqw, 0.85rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.pqg-fin__certnick {
  font-size: clamp(0.75rem, 1.7cqw, 1rem);
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.pqg-fin__certline {
  font-size: clamp(0.65rem, 1.2cqw, 0.75rem);
  line-height: 1.3;
}
.pqg-fin__certaward {
  padding: 0 0.4rem;
  border-radius: 999px;
  background: #f2b705;
  color: #2b1d00;
  font-size: clamp(0.65rem, 1.2cqw, 0.75rem);
  font-weight: 800;
  line-height: 1.5;
}
.pqg-fin__host {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.4rem 0.6rem;
  border-left: 5px solid rgb(255 255 255 / 0.4);
  border-radius: 6px;
  background: rgb(255 255 255 / 0.08);
}
.pqg-fin__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.pqg-fin__rowtext {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.pqg-fin__rowmain {
  font-size: clamp(0.65rem, 1.4cqw, 0.85rem);
  font-weight: 700;
  line-height: 1.3;
}
.pqg-fin__rowsub {
  color: rgb(255 255 255 / 0.7);
  font-size: clamp(0.65rem, 1.2cqw, 0.75rem);
  line-height: 1.3;
}
.pqg-fin__qr {
  flex: none;
  box-sizing: border-box;
  width: clamp(2.6rem, 6cqw, 3.6rem);
  aspect-ratio: 1;
  padding: 0.2rem;
  border-radius: 6px;
  background: #fff;
  color: #14233f;
}
.pqg-fin__pdf {
  flex: none;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: clamp(2.6rem, 6cqw, 3.6rem);
  padding: 0.25rem 0;
  border-radius: 6px;
  background: #e8edf7;
  color: #14233f;
  font-size: clamp(0.65rem, 1.3cqw, 0.8rem);
  font-weight: 800;
  line-height: 1.3;
}
/* Abgesetzt: gestrichelt, weiter unten, ohne die Farbe der Spielleitung */
.pqg-fin__mobile {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-top: 0.5rem;
  border-top: 2px dashed rgb(255 255 255 / 0.35);
}
.pqg-fin__ask {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.6rem;
  padding: 0.35rem 0.5rem;
  border-radius: 10px;
  background: #fff;
  color: #14233f;
}
.pqg-fin__asktitle {
  font-size: clamp(0.7rem, 1.5cqw, 0.9rem);
  font-weight: 800;
}
.pqg-fin__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.pqg-fin__btn {
  padding: 0 0.6rem;
  border: 2px solid #14233f;
  border-radius: 999px;
  font-size: clamp(0.65rem, 1.3cqw, 0.8rem);
  font-weight: 700;
  line-height: 1.6;
}
.pqg-fin__btn.is-yes {
  background: #14233f;
  color: #fff;
}
.pqg-fin.is-still *,
.pqg-fin.is-still *::before,
.pqg-fin.is-still *::after {
  animation: none !important;
  transition: none !important;
}
.pqg-fin.is-paused *,
.pqg-fin.is-paused *::before,
.pqg-fin.is-paused *::after {
  animation-play-state: paused !important;
}

/* Schmale Bildfläche: Endstand oben, darunter Urkunde und Spielleitung, zuletzt das mobile Pubquiz */
@container pqgstage (max-width: 420px) {
  .pqg-fin {
    --pqg-fk: 1.2px;
    gap: 0.3rem;
    padding: 0.5rem;
  }
  .pqg-fin .pqg-fin__step {
    min-height: 2.5em;
    font-size: 0.7rem;
  }
  .pqg-fin__grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    grid-template-areas:
      "stand stand"
      "phone host"
      "mobile mobile";
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 0.4rem;
  }
  .pqg-fin__col {
    display: contents;
  }
  .pqg-fin__stand {
    grid-area: stand;
  }
  .pqg-fin__phone {
    grid-area: phone;
  }
  .pqg-fin__host {
    grid-area: host;
  }
  .pqg-fin__mobile {
    grid-area: mobile;
    align-self: start;
  }
  .pqg-fin__stand {
    justify-content: flex-start;
    gap: 0.2rem;
  }
  .pqg-fin__rank,
  .pqg-fin__nick,
  .pqg-fin__pts,
  .pqg-fin__label,
  .pqg-fin__rowmain,
  .pqg-fin__rowsub,
  .pqg-fin__certtitle,
  .pqg-fin__certline,
  .pqg-fin__certaward,
  .pqg-fin__btn,
  .pqg-fin .pqg-fin__award,
  .pqg-fin__awardname,
  .pqg-fin__asktitle {
    font-size: 0.65rem;
  }
  .pqg-fin__certnick {
    font-size: 0.7rem;
  }
  .pqg-fin__place--1 .pqg-fin__rank {
    height: 1.7rem;
  }
  .pqg-fin__place--2 .pqg-fin__rank {
    height: 1.3rem;
  }
  .pqg-fin__place--3 .pqg-fin__rank {
    height: 0.95rem;
  }
  .pqg-fin .pqg-fin__award {
    padding: 0.15rem 0.4rem;
  }
  .pqg-fin__phone {
    align-self: start;
    padding: 0.3rem 0.2rem;
    border-width: 2px;
  }
  .pqg-fin__cert {
    padding: 0.35rem 0.15rem;
    gap: 0.1rem;
  }
  .pqg-fin__host {
    gap: 0.25rem;
    padding: 0.25rem 0.4rem;
    border-left-width: 4px;
  }
  .pqg-fin__row {
    gap: 0.35rem;
  }
  .pqg-fin__qr,
  .pqg-fin__pdf {
    width: 2rem;
  }
  .pqg-fin__qr {
    padding: 0.12rem;
  }
  .pqg-fin__mobile {
    padding-top: 0.3rem;
  }
  .pqg-fin__ask {
    padding: 0.2rem 0.4rem;
  }
}

/* FAQ „Welche Variante passt zu uns?“ (aufklappbar, Tastatur: Enter/Leertaste auf der Überschrift) */
.about-page .pq-faq .pq-faq__item {
  margin: 0 0 0.5rem;
  border: 1px solid var(--border, rgba(127, 127, 127, 0.35));
  border-radius: 0.6rem;
}
.about-page .pq-faq .pq-faq__item summary {
  min-height: 44px;
  padding: 0.6rem 0.9rem;
  display: flex;
  align-items: center;
  list-style: none;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}
.about-page .pq-faq .pq-faq__item summary::-webkit-details-marker {
  display: none;
}
.about-page .pq-faq .pq-faq__item summary::before {
  content: "▸";
  flex: none;
  width: 1.2em;
  margin-right: 0.4rem;
}
.about-page .pq-faq .pq-faq__item[open] > summary::before {
  content: "▾";
}
.about-page .pq-faq .pq-faq__item summary:focus-visible {
  outline: 3px solid var(--primary-color, #007cc1);
  outline-offset: 2px;
}
.about-page .pq-faq .pq-faq__item p {
  margin: 0;
  padding: 0 0.9rem 0.8rem;
  font-size: 1rem;
  line-height: 1.5;
}

/* Außenabstand der Absätze in den Szenen: `.about-page p` (marketing.css, 0,75 rem oben und unten) schlägt das einfache `margin` der Szenenklassen. Mit dem Vorfahren
   `.about-page .pq-gallery` davor gelten wieder die Werte der Szenen (dieselben wie dort, wo sie stehen). */
.about-page .pq-gallery :is(.geo-map__attr, .pqg-q, .pqg-packs-label, .pqg-quiz__q, .pqg-qphone__res, .pqg-est__q, .pqg-buz__q, .pqg-buz__call, .pqg-tm__step, .pqg-tm__sum, .pqg-thm__step, .pqg-thm__unlock, .pqg-xmas__step, .pqg-xmas__progress, .pqg-xmas__unlock) {
  margin: 0;
}
.about-page .pq-gallery :is(.pqg-thm__q, .pqg-xmas__q) {
  margin: 0 0 0.4rem;
}
.about-page .pq-gallery .pqg-bubble {
  margin: 0 0 0.95rem 0.4rem;
}
.about-page .pq-gallery .pqg-buz__quip {
  margin: 0.15rem 0 0;
}
