/* The demonstrations (showcase.py, showcase.js): what one does on the left, what happens on the right. The real
   pages come scaled down in frames (phones 360 × 720, the tablet display 1280 × 720 - showcase.js sets --s); the
   DJ's app window is rebuilt as on deckbase.de's start page (desktop/ui/app.css: colours, sizes, spacing). Colours
   only from app.css's tokens; no gradients, no glow. */

/* -- the page --------------------------------------------------------------------------------------------------- */

body.showcase { min-height: 0; }
body.showcase.brand-feiermit {
  --accent: #ffb547; --on-accent: #231705; --accent-text: #ffc56f;
  --accent-soft: rgba(255, 181, 71, .14); --accent-line: rgba(255, 181, 71, .5);
}
.sc-head { max-width: 1180px; margin: 0 auto; padding: 1.6rem 16px .4rem; }
/* The way back to the website, big above everything on the demo's own page (1.82.1; showcase.py home_button - never
   in a website's frame) */
.sc-home {
  display: flex; width: max-content; max-width: 100%; min-height: 3.1rem; margin: 0 0 1.3rem; padding: .7rem 1.3rem;
  gap: .55rem; font-size: 1.05rem; font-weight: 700;
}
.sc-home .icon { width: 1.3rem; height: 1.3rem; }
.sc-eyebrow { margin: 0 0 .35rem; color: var(--accent-text); font-size: .9rem; font-weight: 650; }
.sc-head h1 { margin: 0; font-size: clamp(1.5rem, 4.2vw, 2.2rem); }
.sc-lead { max-width: 62ch; margin: .5rem 0 0; color: var(--muted); }
body.single .sc-head { display: none; }
/* All of them in a website's own page (?eingebettet=1, deckbase.de/vorfuehrung/, feiermit.app/vorfuehrung/): the
   website says what they are - only the tabs stay, on top of the card the frame is (as with one alone) */
body.embedded .sc-head { max-width: none; padding: 1.1rem 1.1rem 0; }
body.embedded .sc-eyebrow, body.embedded .sc-head h1, body.embedded .sc-lead { display: none; }
body.embedded .sc-tabs-row { margin: 0; }
body.embedded .sc-tabs { padding-bottom: .9rem; border-bottom: 1px solid var(--border); }
.sc-tabs-row { position: relative; margin: 1.1rem 0 0; }
.sc-tabs { display: flex; flex-wrap: wrap; gap: .4rem; }
/* The arrows at the ends of the row: only on a phone, where the row scrolls sideways (below) */
.sc-tabs-go { display: none; }
.sc-tab {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 2.5rem; padding: .45rem .9rem;
  font-family: inherit; font-size: .92rem; font-weight: 650; color: var(--muted); cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
}
.sc-tab:hover { color: var(--text); border-color: var(--border-strong); }
.sc-tab.on { color: var(--on-accent); background: var(--accent); border-color: transparent; }
.sc-tab:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
main.sc-main { max-width: 1180px; margin: 0 auto; padding: 1rem 16px 1.5rem; }
body.single main.sc-main, body.embedded main.sc-main { max-width: none; padding: 0; }

/* -- a demonstration: left, an arrow, right; the sentence below ------------------------------------------------- */

.sc-show { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1.1rem; }
/* One demonstration in a website's frame: the frame is the card (its corners and line come from the website - a
   frame in another colour scheme gets an opaque background, so nothing of the page may show around the card) */
body.showcase.single, body.showcase.embedded { background: var(--surface); }
body.single .sc-show, body.embedded .sc-show { border: 0; border-radius: 0; }
.sc-sides { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.15fr); gap: 1rem; align-items: start; }
.sc-show-musikwunsch .sc-sides, .sc-show-leinwand .sc-sides, .sc-show-fotospiel .sc-sides, .sc-show-gaestebuch .sc-sides {
  grid-template-columns: minmax(0, 300px) auto minmax(0, 1fr);
}
.sc-side { min-width: 0; }
.sc-side-label { display: flex; align-items: center; gap: .4rem; margin: 0 0 .6rem; color: var(--muted); font-size: .88rem; font-weight: 650; }
.sc-side-label .icon { color: var(--accent-text); }
.sc-arrow { align-self: center; color: var(--border-strong); }
.sc-arrow .icon { width: 1.6rem; height: 1.6rem; }
.sc-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1rem;
  margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--border);
}
.sc-caption { flex: 1 1 22rem; min-height: 2.9em; margin: 0; font-size: 1rem; font-weight: 600; color: var(--text); }
.sc-bar-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; }
.sc-auto { display: flex; align-items: center; gap: .3rem; margin: 0; color: var(--muted); font-size: .85rem; }
.sc-auto .icon { color: var(--accent-text); }
.sc-more { display: inline-flex; align-items: center; gap: .25rem; font-weight: 650; text-decoration: none; }
.sc-more:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .sc-show-musikwunsch .sc-guest, .sc-show-leinwand .sc-guest, .sc-show-fotospiel .sc-guest, .sc-show-gaestebuch .sc-guest {
    max-width: 300px; margin: 0 auto;
  }
  /* The three phones below the panel: as wide as on a phone, also on a tablet upright - the panel above keeps its
     share of the screen (showcase.js, steady.stacked) */
  .sc-crowd { max-width: 27rem; margin-inline: auto; }
  /* The sentence between what one does and what happens (in view with both; it links them, the arrow's room goes to
     the panel), "Mit deinem Handy …" and the tools below: the two rows of the frame give their parts to one column */
  .sc-show { display: flex; flex-direction: column; gap: 1rem; }
  .sc-sides, .sc-bar { display: contents; }
  .sc-arrow { display: none; }
  .sc-left { order: 1; }
  .sc-caption { order: 2; flex: none; }
  .sc-right { order: 3; }
  .sc-bar-tools { order: 4; padding-top: .9rem; border-top: 1px solid var(--border); }
}
@media (max-width: 480px) {
  .sc-show { padding: .8rem; border-radius: 12px; }
  main.sc-main { padding-left: 10px; padding-right: 10px; }
}
/* On a phone the tabs are one row that scrolls sideways, edge to edge (1.81.0): wrapped they took three rows, and in a
   website's page with all of them (?eingebettet=1) steering and phones were no longer on one screen. What stands above
   the demonstration takes from its share of the screen (showcase.js, steady.stacked); the tab shown scrolls into view. */
@media (max-width: 600px) {
  .sc-tabs-row { margin-inline: -16px; }
  body.embedded .sc-tabs-row { margin-inline: -1.1rem; }
  .sc-tabs { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; padding-inline: 16px; }
  body.embedded .sc-tabs { padding: 0 1.1rem .6rem; }
  .sc-tab { flex: none; min-height: 2.25rem; padding: .35rem .75rem; font-size: .88rem; }
  /* Each end of the row that has more shows an arrow over the tabs there (showcase.js paintGo; 1.82.2, Nutzer-Meldung
     "Man sieht am Handy kaum, dass man hier seitlich scrollen kann" - a tab cut at the screen's edge said too little):
     the tabs pass under a strip in the page's colour, a tap moves the row on (moveTabs) */
  .sc-tabs-row.more-back .sc-tabs-back, .sc-tabs-row.more-forth .sc-tabs-forth { display: flex; }
  .sc-tabs-go {
    position: absolute; top: 0; bottom: 0; z-index: 1; width: 3.1rem; padding: 0; align-items: center;
    justify-content: center; color: var(--accent-text); background: var(--bg); border: 0; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  body.embedded .sc-tabs-go { bottom: calc(.6rem + 1px); background: var(--surface); }
  .sc-tabs-back { left: 0; }
  .sc-tabs-forth { right: 0; }
  .sc-tabs-knob {
    display: flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem;
    background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 999px;
  }
  .sc-tabs-knob .icon { width: 1.25rem; height: 1.25rem; }
  /* Everything from the tabs to the phones shares the room under the website's head line (1.82.1, "Am Handy ist die
     Demo verdeckt oben"): less room between the parts, the label above the panel on one line - its second half
     ("– genauso in der Desktop-App") only where it fits */
  body.embedded .sc-head { padding-top: .7rem; }
  .sc-show { gap: .65rem; }
  .sc-caption { font-size: .95rem; }
  .sc-side-label { margin-bottom: .4rem; }
  .sc-side-more { display: none; }
}
@media (max-width: 600px) and (pointer: coarse) {
  .sc-tabs { scrollbar-width: none; }
  .sc-tabs::-webkit-scrollbar { display: none; }
}

/* -- devices: the real pages, scaled down ------------------------------------------------------------------------ */

.sc-slot { --s: .5; min-width: 0; display: flex; justify-content: center; }
.sc-device { position: relative; flex: none; overflow: hidden; background: #000; }
.sc-phone { --w: 360; --h: 720; width: calc(var(--w) * var(--s) * 1px); height: calc(var(--h) * var(--s) * 1px);
  border-radius: calc(36px * var(--s)); box-shadow: 0 0 0 4px #050505, 0 0 0 5px var(--border-strong); }
.sc-display { --w: 1280; --h: 720; width: calc(var(--w) * var(--s) * 1px); height: calc(var(--h) * var(--s) * 1px);
  border-radius: 8px; box-shadow: 0 0 0 6px #050505, 0 0 0 7px var(--border-strong); }
.sc-frame {
  position: absolute; left: 0; top: 0; width: calc(var(--w) * 1px); height: calc(var(--h) * 1px);
  border: 0; transform: scale(var(--s)); transform-origin: 0 0; background: var(--bg);
}
.sc-crowd { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; padding: 5px; }
.sc-guest { padding: 5px; }
.sc-screen { padding: 7px; }
.sc-slot-display { margin-bottom: 1rem; }

/* The tablet display's controls: which question runs. The row for "Beenden"/"Ausblenden" keeps its room while it is
   empty - the demonstration's height stays (showcase.js, steady) */
.sc-dj { display: grid; gap: .5rem; }
.sc-dj-label { margin: 0; color: var(--muted); font-size: .86rem; font-weight: 650; }
.sc-dj-chips .chip-toggle { text-align: left; }
.sc-dj > .row { min-height: 2rem; }
/* The photo game's tasks under the display, as the dashboard's tab "Fotos" lists them: done with a tick (open ones
   with an empty circle of the same size - a tick never makes a chip wider) */
.sc-photo-count { font-weight: 500; }
.sc-photo-tasks { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.sc-photo-tasks li {
  display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .65rem; font-size: .82rem; line-height: 1.3;
  color: var(--muted); background: var(--bg); border: 1px solid var(--border); border-radius: 999px;
}
.sc-photo-tasks li.done { color: var(--text); background: var(--accent-soft); border-color: var(--accent-line); }
.sc-photo-tasks li .icon { flex: none; width: .95em; height: .95em; }
.sc-photo-tasks li.done .icon { color: var(--accent-text); }

/* The audio guestbook (gaestebuch) as the dashboard's tab: while the party runs only how many messages came, the morning
   after each one to listen to. Both in one place (a grid cell, the other one unseen): switching never changes the
   height, and the list keeps its own (it scrolls) - a new message never moves the demonstration */
.sc-book { max-width: 36rem; }
.sc-gb-board { gap: .7rem; padding: .9rem 1rem 1rem; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); }
.sc-gb-board h3 { margin: .1rem 0 .3rem; font-size: 1rem; }
.sc-gb-phase { display: flex; gap: 4px; padding: 3px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.sc-gb-phase button {
  flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-width: 0; min-height: 2.3rem;
  padding: .35rem .6rem; font-family: inherit; font-size: .88rem; font-weight: 650; line-height: 1.25; color: var(--muted);
  background: transparent; border: 0; border-radius: 7px; cursor: pointer;
}
.sc-gb-phase button:hover { color: var(--text); }
.sc-gb-phase button[aria-pressed="true"] { color: var(--on-accent); background: var(--accent); }
.sc-gb-phase button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sc-gb-phase .icon { flex: none; }
.sc-gb-views { display: grid; }
.sc-gb-views > section { grid-area: 1 / 1; min-width: 0; }
.sc-gb-views > section.off { visibility: hidden; }
.sc-gb-board .gb-figures { margin: 0 0 .5rem; font-size: 1rem; }
.sc-gb-board .hint { margin: 0 0 .4rem; }
.sc-gb-board .gb-downloads { margin: .3rem 0 .6rem; }
.sc-gb-tally { display: flex; align-items: baseline; gap: .5rem; margin: .2rem 0 .4rem; }
.sc-gb-tally strong { font-size: 3.2rem; line-height: 1; font-variant-numeric: tabular-nums; color: var(--accent-text); }
.sc-gb-tally span { color: var(--muted); font-weight: 650; }
.sc-gb-tally.bump strong { animation: sc-gb-bump .5s ease-out; }
@keyframes sc-gb-bump { 40% { transform: scale(1.18); } }
@media (prefers-reduced-motion: reduce) { .sc-gb-tally.bump strong { animation: none; } }
.sc-gb-items { height: 13rem; margin-top: .3rem; overflow-y: auto; align-content: start; overscroll-behavior: contain; scrollbar-width: thin; }
.sc-gb-items .gb-item.mine { border-color: var(--accent-line); }
.sc-gb-items .gb-item.playing { border-color: var(--accent); }
.sc-gb-mine {
  display: inline-block; margin-left: .45rem; padding: 0 .4rem; font-size: .74rem; font-weight: 700; color: var(--accent-text);
  border: 1px solid var(--accent-line); border-radius: 5px;
}
.sc-gb-bar { height: 4px; overflow: hidden; background: var(--surface-2); border-radius: 99px; }
.sc-gb-bar span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left center; }
@media (max-width: 860px) { .sc-book { margin-inline: auto; } .sc-gb-items { height: 10.5rem; } }

/* The panels on the left (light-panel.js, polls-admin.js) as in the dashboard */
.sc-panel .card { margin-bottom: 0; background: var(--bg); }
.sc-panel .light-panel h2 { margin-top: 0; }
/* The messages of the tab "Dienstleister" (crew-admin.js): the list keeps one height - a new message never moves the
   demonstration (in the dashboard it is 55 % of the screen; in a frame as tall as its content that would grow with it) */
.sc-messages .team-messages { height: 11rem; max-height: none; }
@media (max-width: 860px) { .sc-messages .team-messages { height: 7.5rem; } }
/* On a website, a panel that grows while the demonstration plays itself keeps its room (showcase.js, steady): the
   play rolls it to what it taps (reveal), a finger or a wheel passing over it moves the website - a tap takes over
   and shows everything */
.sc-held { overflow: hidden; }

/* -- the visitor's own phone ------------------------------------------------------------------------------------- */

.sc-own { margin-top: 1rem; }
.sc-own .hint { margin: .5rem 0 0; }
.sc-own:has(.sc-own-qr) {
  display: flex; align-items: center; gap: 1rem; padding: .8rem;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
}
.sc-own-qr { flex: none; width: 132px; height: 132px; padding: 6px; background: #fff; border-radius: 8px; }
.sc-own-qr svg { display: block; width: 100%; height: 100%; }
.sc-own-text { min-width: 0; }
.sc-own-text p { margin: .3rem 0 0; color: var(--muted); font-size: .9rem; }
.sc-own-text .sc-own-url { color: var(--text); font-size: .82rem; overflow-wrap: anywhere; }
.sc-own-count.on { color: var(--ok); font-weight: 650; }
@media (max-width: 420px) {
  .sc-own:has(.sc-own-qr) { flex-direction: column; align-items: flex-start; }
}

/* -- a tap the page makes by itself (the play): a ring where the finger is --------------------------------------- */

.sc-tap {
  position: fixed; z-index: 3000; width: 46px; height: 46px; margin: -23px 0 0 -23px; pointer-events: none;
  border: 3px solid var(--accent); border-radius: 50%; opacity: 0; animation: sc-tap .7s ease-out;
}
@keyframes sc-tap { 0% { opacity: .95; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.25); } }
@media (prefers-reduced-motion: reduce) { .sc-tap { animation-duration: .01s; } }

/* -- the DJ's app window (as deckbase.de's start page: desktop/ui/app.css) --------------------------------------- */

/* Colours and parts as the real app, everything a size smaller (Nutzerwunsch „Man sieht nur zwei Tracks, lieber kleiner
   machen, dafür mehr Zeilen“, 1.81.0; then „es kann gerne kleiner sein, und höher“, 1.82.0): at a computer narrow and
   as tall as the guest's phone beside it, five wishes at a glance (the rules for the music wish below) */
.sc-app { padding: 0; }
.app-sim {
  --as-bg: #121212; --as-surface: #1b1b1b; --as-surface-2: #252525; --as-border: #303030; --as-border-strong: #4a4a4a;
  --as-text: #f3f3f0; --as-muted: #a6a69f;
  --as-accent: #ff8a3d; --as-on-accent: #1b1108; --as-accent-soft: rgba(255, 138, 61, .14); --as-accent-line: rgba(255, 138, 61, .5);
  --as-ok: #4cc38a;
  position: relative; max-width: 440px; margin: 0 auto; overflow: hidden; container-type: inline-size;
  background: var(--as-bg); color: var(--as-text);
  border: 1px solid var(--as-border); border-radius: 10px; box-shadow: 0 30px 70px rgba(0, 0, 0, .55);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 13px; line-height: 1.35; text-align: left;
}
.as-top { border-bottom: 1px solid var(--as-border); }
.as-bar { display: flex; align-items: center; justify-content: space-between; padding: 6px 6px 4px 12px; }
.as-brand { min-width: 0; font-weight: 800; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-brand span { color: var(--as-accent); }
.as-mark { width: 15px; height: 15px; vertical-align: -3px; margin-right: 5px; }
.as-tools { display: flex; flex: none; align-items: center; }
.as-icon {
  display: inline-grid; place-items: center; flex: none; width: 25px; height: 25px; margin-right: 3px; font-size: .82rem;
  color: var(--as-muted); background: var(--as-surface); border: 1px solid var(--as-border); border-radius: 7px;
}
.as-icon.on { color: var(--as-accent); border-color: var(--as-accent-line); background: var(--as-accent-soft); }
.as-win { display: inline-grid; place-items: center; flex: none; width: 23px; height: 25px; font-size: .85rem; color: var(--as-muted); }
.as-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 0; padding: 1px 4px 6px; }
.as-tab { flex: 1 1 auto; text-align: center; white-space: nowrap; font-size: .7rem; font-weight: 600; color: var(--as-muted); border-radius: 7px; padding: 4px 5px; }
.as-tab.active { background: var(--as-text); color: var(--as-bg); }
@container (max-width: 300px) { .as-tab { flex-basis: 40%; } }
.as-count:not(:empty) {
  display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; padding: 0 .4em; margin-left: 4px; border-radius: 99px;
  font-size: .64rem; font-weight: 700; line-height: 1; vertical-align: 1px; background: var(--as-accent); color: var(--as-on-accent);
}
.as-dot { flex: none; width: 8px; height: 8px; margin: 0 4px; border-radius: 50%; background: var(--as-ok); }
.as-main { padding: 8px; }
.as-event-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 6px; }
.as-event-row .as-icon { width: 27px; margin-right: 0; }
.as-select {
  position: relative; flex: 1 1 120px; min-width: 0; padding: 5px 26px 5px 9px; font-size: .8rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: var(--as-bg); border: 1px solid var(--as-border); border-radius: 7px;
}
.as-select::after {
  content: ""; position: absolute; right: 11px; top: 50%; width: 6px; height: 6px;
  border-right: 2px solid var(--as-muted); border-bottom: 2px solid var(--as-muted); transform: translateY(-70%) rotate(45deg);
}
.as-switch {
  display: flex; align-items: center; gap: 6px; margin-right: auto; padding: 4px 8px 4px 5px; white-space: nowrap;
  font-size: .74rem; font-weight: 700; background: var(--as-surface); border: 1px solid rgba(76, 195, 138, .5); border-radius: 7px;
}
.as-track { position: relative; width: 28px; height: 16px; border-radius: 99px; background: var(--as-ok); }
.as-knob { position: absolute; top: 2.5px; left: 14.5px; width: 11px; height: 11px; border-radius: 50%; background: var(--as-text); }
.as-view { display: flex; gap: 4px; margin: 5px 0 6px; padding: 2px; background: var(--as-surface); border: 1px solid var(--as-border); border-radius: 8px; }
.as-view span { flex: 1; text-align: center; font-size: .74rem; font-weight: 700; color: var(--as-muted); border-radius: 6px; padding: 3px 6px; }
.as-view span.on { color: var(--as-text); background: var(--as-surface-2); }
.as-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; }
/* A window of its own size, as the real app: the list scrolls inside, the window stays as tall as the guest's phone
   beside it (or as a few wishes, one above the other) - so a new wish never moves the page around the demonstration */
.sc-show-musikwunsch { container: sc-music / inline-size; }
.sc-show-musikwunsch .sc-sides { align-items: stretch; }
.sc-show-musikwunsch .sc-right, .sc-show-musikwunsch .sc-app, .sc-show-musikwunsch .app-sim, .sc-show-musikwunsch .as-main {
  display: flex; flex-direction: column; min-height: 0;
}
.sc-show-musikwunsch .sc-app, .sc-show-musikwunsch .app-sim, .sc-show-musikwunsch .as-main { flex: 1 1 auto; }
.sc-show-musikwunsch .app-sim { width: 100%; }
.sc-show-musikwunsch .as-list, .sc-show-musikwunsch .as-empty { flex: 1 1 auto; min-height: 17rem; contain: size; }
.sc-show-musikwunsch .as-list { align-content: start; overflow-y: auto; scrollbar-width: thin; padding-bottom: 6px; }
.sc-show-musikwunsch .as-list:empty { display: none; }
/* With the room for it (a computer; sc-music is the demonstration's width), narrow and tall as the real app and from the
   top of the guest's phone to its bottom - "Mit deinem Handy mitmachen" beside the window: below it, it took a fifth of
   the window's height, and the list showed two or three wishes (1.82.0) */
@container sc-music (min-width: 1020px) {
  .sc-show-musikwunsch .sc-sides { grid-template-columns: minmax(0, 320px) auto minmax(0, 1fr); }
  .sc-show-musikwunsch .sc-right {
    display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr);
    column-gap: 1.5rem;
  }
  .sc-show-musikwunsch .sc-right > .sc-side-label { grid-column: 1 / -1; }
  .sc-show-musikwunsch .app-sim { max-width: none; margin: 0; }
  .sc-show-musikwunsch .sc-own { align-self: start; margin-top: 0; }
  .sc-show-musikwunsch .sc-own:has(.sc-own-qr) { flex-direction: column; align-items: flex-start; }
}
.as-wish { background: var(--as-surface); border: 1px solid var(--as-border); border-radius: 8px; padding: 5px 8px 6px; }
.as-wish.fresh { border-color: var(--as-accent); animation: as-fresh 2s ease-out; }
.as-wish.is-next { border-color: var(--as-accent); box-shadow: 0 0 0 1px var(--as-accent) inset; }
@keyframes as-fresh { from { background-color: #3b2a20; } to { background-color: var(--as-surface); } }
.as-wish-head { display: flex; align-items: center; gap: 7px; }
.as-votes { flex: none; display: grid; place-items: center; min-width: 23px; height: 23px; border-radius: 6px; background: var(--as-surface-2); font-size: .8rem; font-weight: 800; }
.as-wish-main { flex: 1; min-width: 0; line-height: 1.3; }
.as-wish-title { font-weight: 700; font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-wish-sub { color: var(--as-muted); font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-flag {
  display: inline-block; margin-top: 4px; padding: 0 6px; font-size: .68rem; font-weight: 700;
  color: var(--as-accent); border: 1px solid var(--as-accent-line); border-radius: 5px;
}
.as-voters { font-size: .72rem; margin-top: 2px; color: #d3d3cd; }
.as-voter + .as-voter { margin-top: 1px; }
.as-actions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.app-sim .as-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 3px;
  padding: 3px 8px; font-family: inherit; font-size: .72rem; font-weight: 600; line-height: 1.35; white-space: nowrap;
  color: var(--as-on-accent); background: var(--as-accent); border: 1px solid transparent; border-radius: 7px; cursor: pointer;
}
.app-sim .as-btn.ok { flex: 1 1 auto; color: #ecfff4; background: #1f6f4a; }
.app-sim .as-btn.bad { flex: 1 1 auto; color: #ffeded; background: #8a2626; }
.app-sim .as-btn.next { flex: 0 0 auto; color: var(--as-text); background: transparent; border-color: var(--as-border); }
.app-sim .as-btn.next[aria-pressed="true"] { color: var(--as-on-accent); background: var(--as-accent); border-color: transparent; }
.app-sim .as-btn.ghost { flex: 0 0 auto; padding: 3px 7px; color: var(--as-text); background: transparent; border-color: var(--as-border); }
.app-sim .as-btn:hover { filter: brightness(1.07); }
.app-sim .as-btn.next:not([aria-pressed="true"]):hover, .app-sim .as-btn.ghost:hover { filter: none; border-color: var(--as-border-strong); }
.app-sim .as-btn:focus-visible { outline: 2px solid var(--as-text); outline-offset: 2px; }
.as-empty { margin: 0; padding: 26px 10px; text-align: center; color: var(--as-muted); }
.as-foot { padding: 2px 10px 9px; text-align: center; font-size: .7rem; color: var(--as-muted); }
.as-toast {
  position: absolute; left: 50%; bottom: 10px; z-index: 2; width: max-content; max-width: calc(100% - 24px);
  padding: 8px 11px; font-size: .8rem; line-height: 1.4; text-align: left;
  background: var(--as-surface-2); border: 1px solid var(--as-border); border-radius: 9px; box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
  opacity: 0; transform: translate(-50%, 20px); transition: opacity .2s, transform .2s; pointer-events: none;
}
.as-toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.app-sim .as-toast-action {
  margin-left: 8px; padding: 2px 4px; font-family: inherit; font-size: inherit; font-weight: 700; color: var(--as-accent);
  background: none; border: 0; text-decoration: underline; cursor: pointer;
}
@media (prefers-reduced-motion: reduce) { .as-wish.fresh { animation: none; } }
@media (max-width: 420px) {
  .as-main { padding: 7px; }
  .as-wish { padding: 5px 7px 6px; }
  .app-sim .as-btn { padding: 3px 6px; font-size: .7rem; }
  .app-sim .as-btn.ghost { padding: 3px 5px; }
}

/* -- a phone of the demonstrations (showcase-phone.html) --------------------------------------------------------- */

body.showcase-phone { min-height: 0; }
.sc-waiting { margin-top: 1rem; }
.sc-list-label:empty { display: none; }
.sc-list-label { margin: .2rem 0 .5rem; }
.sc-phone-foot { padding: .5rem 16px 1.2rem; text-align: center; color: var(--muted); font-size: .78rem; }
.sc-phone-foot a { color: var(--muted); }
/* The all-demonstrations page's footer (the website's privacy page and legal notice); in a website's frame the website
   has its own */
body.showcase .sc-foot { padding: 1.5rem 16px 2.5rem; }
body.showcase.single .sc-foot, body.showcase.embedded .sc-foot { display: none; }
body.showcase-phone.light-on .sc-phone-foot { display: none; }
/* A phone in the page has no browser bar to make small: no swipe tip, no extra height */
body.showcase-phone.sim .light-scroll-tip { display: none !important; }
body.showcase-phone.sim.light-on.light-scrolls { min-height: 0; overflow: hidden; }
/* A service provider's page (dienstleister): its tabs are a picture of the real ones (team.html) */
.sc-team .team-tab { cursor: default; }
.sc-team-who { margin: -.2rem 0 .6rem; }
/* The page's phones are a third of a phone wide: the messages a size bigger, the list as tall as the screen leaves */
body.showcase-phone.sim .sc-team .team-messages { max-height: 25rem; }
body.showcase-phone.sim .sc-team .team-msg { max-width: 94%; }
body.showcase-phone.sim .sc-team .team-msg header { font-size: 1.1rem; }
body.showcase-phone.sim .sc-team .team-msg p { font-size: 1.4rem; line-height: 1.3; }
body.showcase-phone.sim .sc-team-who { font-size: 1.1rem; }
/* The photo game (fotospiel): the sample photos instead of the camera, three in a row */
.sc-samples-hint { margin: .3rem 0 .5rem; }
.sc-samples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.sc-sample {
  aspect-ratio: 1; padding: 0; overflow: hidden; background: var(--surface); border: 2px solid var(--border);
  border-radius: var(--radius); cursor: pointer;
}
.sc-sample img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sc-sample:hover, .sc-sample:focus-visible { border-color: var(--accent); }
.sc-sample:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* The audio guestbook (gaestebuch): the sample recordings instead of the microphone, two in a row, and the sample's
   words while it "records" - all there from the start (the ones still to come faint), so the box keeps its size */
.sc-voices-hint { margin: .2rem 0 .5rem; }
.sc-voices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin-bottom: 1rem; }
.sc-voice {
  display: grid; gap: .1rem; min-width: 0; padding: .55rem .7rem; text-align: left; font-family: inherit; font-size: .95rem;
  line-height: 1.3; color: var(--text); background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius); cursor: pointer;
}
.sc-voice strong { overflow-wrap: anywhere; }
.sc-voice small { color: var(--muted); font-size: .8rem; }
.sc-voice[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); }
.sc-voice:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sc-words-note { margin: 0 0 .4rem; color: var(--muted); font-size: .85rem; text-align: center; }
.sc-words {
  margin: 0 0 1rem; padding: .8rem 1rem; font-size: 1.05rem; line-height: 1.5; background: var(--surface);
  border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; overflow-wrap: anywhere;
}
.sc-words .later { opacity: .28; }
/* A new message as the phone's notification: over the page at the top, gone after a moment */
.sc-push {
  position: fixed; left: 10px; right: 10px; top: 10px; z-index: 60; display: flex; align-items: flex-start; gap: .6rem;
  padding: .75rem .9rem; font-size: .95rem; line-height: 1.35; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 16px; box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
}
.sc-push.in { animation: sc-push .35s ease-out; }
@keyframes sc-push { from { opacity: 0; transform: translateY(-120%); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sc-push.in { animation: none; } }
.sc-push-icon { flex: none; color: var(--accent-text); }
.sc-push-text { display: grid; gap: .1rem; min-width: 0; }
.sc-push-text span { overflow-wrap: anywhere; }
body.showcase-phone.sim .sc-push { font-size: 1.3rem; }
/* The page's phones are pictures to look at: no scrollbar inside them */
body.showcase-phone.sim { scrollbar-width: none; }
body.showcase-phone.sim::-webkit-scrollbar { display: none; }
