Pult: Handy als Stream Deck mit Soundboard und Szenenwechsel
Paket bauen und veroeffentlichen / paket (push) Failing after 1m21s

- /pult als installierbare Web-App (Manifest, Service Worker, Symbole)
- Soundboard: Sounds vom Handy hochladen, bearbeiten, im Stream spielen
  ueber die neue Browser-Source /sounds
- Szenen, Clip und Stummschalter: der Stream-PC waehlt sich mit eigenem
  Schluessel beim Hub ein (fern:verbinden), Befehle warten auf OBS
- Browser-Sources melden, welche Seite sie sind

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ZeasyAlexandClaude Opus 5.5 committed 2026-10-26 11:51:48 +01:00
1 parent 70448967f5
commit 8be195d938
29 files changed
+2935 -28

No files matched your search

+408
View File
@@ -0,0 +1,408 @@
/* Das Pult. Fuers Handy gebaut, nicht fuer OBS: anders als die
* Browser-Sources hat es einen deckenden Hintergrund und will angefasst
* werden. Farben wie in theme.css, damit Pult und Overlay zusammengehoeren.
*
* Grundregel fuer alles, was man im Stream mit einem Daumen trifft: eine
* Taste ist mindestens 48 px hoch, und was passiert ist, sieht man an der
* Taste selbst - nicht nur in einer Meldung am Rand. */
:root {
color-scheme: dark;
--grund: #0d0b14;
--flaeche: #171327;
--flaeche-2: #1f1a33;
--linie: #2c2642;
--linie-stark: #3a3352;
--schrift: #ece9f6;
--leise: #9b94b3;
--lila: #a970ff;
--lila-tief: #6441a5;
--tuerkis: #4fd1c5;
--pink: #ff4fa3;
--gold: #ffc53d;
--gruen: #4ade80;
--rot: #ef4444;
--blau: #60a5fa;
--grau: #8b84a3;
--rund: 16px;
--kopf-h: 56px;
--reiter-h: 64px;
--oben: env(safe-area-inset-top, 0px);
--unten: env(safe-area-inset-bottom, 0px);
--font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
--font-zahl: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--grund); }
body {
margin: 0;
min-height: 100vh;
min-height: 100dvh;
background: var(--grund);
color: var(--schrift);
font: 16px/1.45 var(--font);
-webkit-font-smoothing: antialiased;
-webkit-tap-highlight-color: transparent;
overscroll-behavior-y: contain;
}
a { color: var(--lila); }
code {
font: .85em "Cascadia Mono", ui-monospace, Consolas, monospace;
background: var(--flaeche-2); padding: .1em .35em; border-radius: 6px;
}
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2;
stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }
/* ------------------------------------------------------------ Kopf */
.kopf {
position: sticky; top: 0; z-index: 20;
display: flex; align-items: center; justify-content: space-between; gap: 12px;
height: calc(var(--kopf-h) + var(--oben));
padding: var(--oben) 16px 0;
background: rgba(13, 11, 20, .88);
backdrop-filter: blur(14px);
-webkit-backdrop-filter: blur(14px);
border-bottom: 1px solid var(--linie);
}
.kanal { display: flex; align-items: center; gap: 12px; min-width: 0; }
.marke { font: 600 17px/1 var(--font-zahl); letter-spacing: -.01em; }
.marke b { color: var(--lila); font-weight: 700; }
.live {
display: inline-flex; align-items: center; gap: 6px;
padding: 4px 10px; border-radius: 999px;
font: 600 13px/1.2 var(--font-zahl); font-variant-numeric: tabular-nums;
background: rgba(239, 68, 68, .16); color: #ffb3b3;
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--rot);
animation: puls 1.6s ease-in-out infinite; flex: none; }
.live.aus { background: var(--flaeche-2); color: var(--leise); }
.live.aus i { background: var(--grau); animation: none; }
.kopf-rechts { display: flex; align-items: center; gap: 8px; }
.rund {
display: grid; place-items: center; width: 40px; height: 40px;
border-radius: 50%; border: 1px solid var(--linie); background: transparent;
color: var(--leise); cursor: pointer;
}
.rund[aria-pressed="true"] { color: var(--gold); border-color: rgba(255, 197, 61, .45);
background: rgba(255, 197, 61, .1); }
.netz { display: grid; place-items: center; width: 24px; height: 40px; }
.netz i { width: 10px; height: 10px; border-radius: 50%; background: var(--rot);
box-shadow: 0 0 0 4px rgba(239, 68, 68, .15); }
.netz.an i { background: var(--gruen); box-shadow: 0 0 0 4px rgba(74, 222, 128, .14); }
.banner {
position: sticky; top: calc(var(--kopf-h) + var(--oben)); z-index: 19;
padding: 10px 16px; font-size: 14px;
background: #3b1d1d; color: #ffd0d0; border-bottom: 1px solid #5c2a2a;
}
@keyframes puls { 50% { opacity: .35; } }
/* ------------------------------------------------------------ Inhalt */
main {
padding: 16px 16px calc(var(--reiter-h) + var(--unten) + 88px);
max-width: 980px; margin: 0 auto;
}
.tab { display: none; }
.tab.an { display: block; animation: rein .18s ease-out; }
@keyframes rein { from { opacity: 0; transform: translateY(4px); } }
.leiste { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.luecke { flex: 1; }
.abschnitt {
display: flex; align-items: center; gap: 8px;
margin: 26px 0 10px; font: 600 13px/1 var(--font); letter-spacing: .08em;
text-transform: uppercase; color: var(--leise);
}
.abschnitt:first-child { margin-top: 4px; }
.klein { font-size: 13px; color: var(--leise); margin: 10px 0; }
.klein.mitte { text-align: center; }
.karte {
background: var(--flaeche); border: 1px solid var(--linie);
border-radius: var(--rund); padding: 16px; margin-bottom: 16px;
}
.karte .abschnitt { margin-top: 0; }
.hinweis {
border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; font-size: 14px;
background: var(--flaeche); border: 1px solid var(--linie);
}
.hinweis.warn { background: rgba(255, 197, 61, .08); border-color: rgba(255, 197, 61, .4);
color: #ffe2a0; }
.hinweis.warn a { color: var(--gold); }
/* ------------------------------------------------------------ Knoepfe */
.knopf {
display: inline-flex; align-items: center; justify-content: center; gap: 8px;
min-height: 44px; padding: 0 16px;
font: 600 15px/1 var(--font); color: var(--schrift);
background: var(--flaeche-2); border: 1px solid var(--linie-stark);
border-radius: 12px; cursor: pointer; user-select: none; -webkit-user-select: none;
text-decoration: none; touch-action: manipulation;
transition: transform .08s, background .15s, border-color .15s;
}
.knopf:active { transform: scale(.96); }
.knopf:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.knopf.primaer { background: var(--lila-tief); border-color: var(--lila); color: #fff; }
.knopf.warnung { color: #ffb3b3; border-color: rgba(239, 68, 68, .5); background: rgba(239, 68, 68, .1); }
.knopf.gross { min-height: 52px; padding: 0 22px; font-size: 16px; }
.knopf.breit { width: 100%; }
.knopf[aria-pressed="true"] { background: var(--schrift); color: var(--grund); border-color: var(--schrift); }
.knopf.wartet { opacity: .7; pointer-events: none; }
.knopf:focus-visible, .kachel:focus-visible, .szene:focus-visible, .rund:focus-visible,
.reiter button:focus-visible { outline: 2px solid var(--lila); outline-offset: 2px; }
/* ------------------------------------------------------------ Soundraster */
.raster {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
gap: 10px;
}
@media (min-width: 640px) { .raster { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; } }
.kachel {
--c: var(--lila);
position: relative;
display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
aspect-ratio: 1; padding: 10px 8px; min-width: 0;
border-radius: 18px; cursor: pointer; overflow: hidden;
color: #fff; font: 600 14px/1.2 var(--font); text-align: center;
background:
radial-gradient(120% 90% at 30% 0%, color-mix(in oklab, var(--c) 42%, transparent), transparent 70%),
color-mix(in oklab, var(--c) 14%, var(--flaeche));
border: 1px solid color-mix(in oklab, var(--c) 45%, transparent);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
touch-action: manipulation; user-select: none; -webkit-user-select: none;
transition: transform .08s ease-out;
}
.kachel:active { transform: scale(.93); }
.kachel .emoji { font-size: 34px; line-height: 1; }
.kachel .name {
display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
overflow: hidden; overflow-wrap: anywhere; max-width: 100%;
text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}
.kachel.ohne-emoji .name { font-size: 16px; -webkit-line-clamp: 3; }
.kachel::after {
content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
background: color-mix(in oklab, var(--c) 70%, #fff); opacity: 0;
}
.kachel.knall::after { animation: knall .6s ease-out; }
@keyframes knall { 0% { opacity: .55; } 100% { opacity: 0; } }
.kachel.knall { animation: wippen .35s ease-out; }
@keyframes wippen { 40% { transform: scale(1.04); } }
.raster.bearbeiten .kachel { animation: zittern .5s ease-in-out infinite alternate; }
.raster.bearbeiten .kachel:nth-child(2n) { animation-delay: -.25s; }
@keyframes zittern { from { transform: rotate(-.8deg); } to { transform: rotate(.8deg); } }
.raster.bearbeiten .kachel::before {
content: "✎"; position: absolute; top: 6px; right: 8px; font-size: 14px; opacity: .85;
}
.kachel[data-farbe="lila"], .farbe[data-farbe="lila"] { --c: var(--lila); }
.kachel[data-farbe="tuerkis"], .farbe[data-farbe="tuerkis"] { --c: var(--tuerkis); }
.kachel[data-farbe="pink"], .farbe[data-farbe="pink"] { --c: var(--pink); }
.kachel[data-farbe="gold"], .farbe[data-farbe="gold"] { --c: var(--gold); }
.kachel[data-farbe="gruen"], .farbe[data-farbe="gruen"] { --c: var(--gruen); }
.kachel[data-farbe="rot"], .farbe[data-farbe="rot"] { --c: var(--rot); }
.kachel[data-farbe="blau"], .farbe[data-farbe="blau"] { --c: var(--blau); }
.kachel[data-farbe="grau"], .farbe[data-farbe="grau"] { --c: var(--grau); }
.kachel.laedt { opacity: .55; pointer-events: none; }
.kachel.laedt .name::after { content: " …"; }
.leer { text-align: center; padding: 32px 12px; color: var(--leise); }
.leer h2 { color: var(--schrift); font-size: 20px; margin: 18px 0 6px; }
.leer p { max-width: 34ch; margin: 0 auto 20px; }
.leer-bild { display: inline-grid; grid-template-columns: repeat(3, 34px); gap: 6px; }
.leer-bild span { aspect-ratio: 1; border-radius: 9px; border: 1.5px dashed var(--linie-stark); }
.leer-bild span:nth-child(2) { border-color: var(--lila); background: rgba(169, 112, 255, .12); }
.leer-bild span:nth-child(6) { border-color: var(--tuerkis); background: rgba(79, 209, 197, .1); }
/* ------------------------------------------------------------ Szenen */
.szenen { display: grid; gap: 8px; }
@media (min-width: 640px) { .szenen { grid-template-columns: repeat(2, 1fr); } }
.szene {
display: flex; align-items: center; justify-content: space-between; gap: 12px;
min-height: 64px; padding: 0 18px; width: 100%;
font: 600 17px/1.2 var(--font); color: var(--schrift); text-align: left;
background: var(--flaeche); border: 1px solid var(--linie-stark); border-radius: var(--rund);
cursor: pointer; touch-action: manipulation; transition: transform .08s, background .15s;
}
.szene:active { transform: scale(.98); }
.szene .szene-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.szene .marke-an {
font: 700 11px/1 var(--font); letter-spacing: .1em; text-transform: uppercase;
padding: 5px 8px; border-radius: 6px; background: rgba(255, 255, 255, .16); display: none;
}
.szene.aktiv { background: var(--lila-tief); border-color: var(--lila); }
.szene.aktiv .marke-an { display: inline-block; }
.szene.wartet { opacity: .6; }
.knopf.clip {
width: 100%; min-height: 64px; font-size: 17px; border-radius: var(--rund);
background: rgba(255, 79, 163, .14); border-color: rgba(255, 79, 163, .55); color: #ffd1e8;
}
.knopf.clip svg { width: 24px; height: 24px; }
.ton { display: grid; gap: 8px; }
.ton-zeile {
display: flex; align-items: center; gap: 12px; width: 100%;
min-height: 56px; padding: 0 14px 0 16px;
font: 500 15px/1.2 var(--font); color: var(--schrift); text-align: left;
background: var(--flaeche); border: 1px solid var(--linie); border-radius: 14px; cursor: pointer;
}
.ton-zeile .ton-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ton-zeile .ton-stand {
font: 600 12px/1 var(--font); letter-spacing: .06em; text-transform: uppercase;
padding: 7px 10px; border-radius: 8px; background: rgba(74, 222, 128, .14); color: var(--gruen);
}
.ton-zeile.stumm { border-color: rgba(239, 68, 68, .45); }
.ton-zeile.stumm .ton-stand { background: rgba(239, 68, 68, .16); color: #ffb3b3; }
.ton-zeile.stumm svg { color: #ffb3b3; }
.leer-karte { text-align: center; padding: 28px 18px; }
.leer-karte h2 { font-size: 18px; margin: 0 0 8px; }
.leer-karte p { color: var(--leise); margin: 0; font-size: 14px; }
/* ------------------------------------------------------------ Stream */
.lz-zahlen { display: flex; gap: 28px; margin: 4px 0 16px; }
.lz-zahlen div { display: flex; flex-direction: column; }
.lz-zahlen b { font: 700 52px/1 var(--font-zahl); font-variant-numeric: tabular-nums; }
.lz-zahlen span { color: var(--leise); font-size: 13px; margin-top: 4px; }
.lz-zahlen .gemacht b { color: var(--gruen); }
.lz-knoepfe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lz-knoepfe .knopf { min-height: 56px; font-size: 18px; font-variant-numeric: tabular-nums; }
.zaehler {
display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
border-radius: 999px; background: var(--pink); color: #fff; font-size: 12px; letter-spacing: 0;
}
.wartend { display: grid; gap: 10px; margin-bottom: 12px; }
.wartend .leer-zeile { color: var(--leise); font-size: 14px; }
.nachricht { background: var(--flaeche-2); border-radius: 12px; padding: 12px; }
.nachricht .wer { font-weight: 600; color: var(--tuerkis); font-size: 14px; }
.nachricht .was { margin: 4px 0 10px; overflow-wrap: anywhere; }
.nachricht .reihe { display: flex; gap: 8px; }
.nachricht .reihe .knopf { flex: 1; }
.knopf.panik {
width: 100%; min-height: 64px; margin-top: 8px; font-size: 18px; border-radius: var(--rund);
background: var(--rot); border-color: var(--rot); color: #fff;
}
.knopf.panik svg { width: 24px; height: 24px; }
/* ------------------------------------------------------------ Test */
.gruppe { margin-bottom: 4px; }
.gruppe .knoepfe { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.gruppe .knopf { min-height: 48px; font-weight: 500; font-size: 14px; padding: 0 10px; }
/* ------------------------------------------------------------ Reiter */
.reiter {
position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
display: grid; grid-template-columns: repeat(4, 1fr);
height: calc(var(--reiter-h) + var(--unten));
padding-bottom: var(--unten);
background: rgba(18, 14, 29, .94);
backdrop-filter: blur(14px);
-webkit-backdrop-filter: blur(14px);
border-top: 1px solid var(--linie);
}
.reiter button {
position: relative;
display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
background: none; border: 0; color: var(--leise); cursor: pointer;
font: 500 12px/1 var(--font); touch-action: manipulation;
}
.reiter button svg { width: 24px; height: 24px; }
.reiter button.an { color: var(--schrift); }
.reiter button.an svg { color: var(--lila); }
.reiter .punkt { position: absolute; top: 10px; left: calc(50% + 10px); width: 9px; height: 9px;
border-radius: 50%; background: var(--pink); border: 2px solid var(--grund); }
/* ------------------------------------------------------------ Meldung */
.meldung {
position: fixed; left: 50%; z-index: 40;
bottom: calc(var(--reiter-h) + var(--unten) + 14px);
transform: translate(-50%, 12px);
max-width: min(92vw, 460px); padding: 12px 16px; border-radius: 12px;
background: #241f35; border: 1px solid var(--linie-stark); color: var(--schrift);
font-size: 15px; box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.meldung.an { opacity: 1; transform: translate(-50%, 0); }
.meldung.ok { border-color: rgba(74, 222, 128, .5); }
.meldung.fehler { border-color: rgba(255, 197, 61, .6); color: #ffe2a0; }
/* ------------------------------------------------------------ Blatt */
.blatt {
width: 100%; max-width: 560px; margin: auto auto 0; padding: 0;
border: 1px solid var(--linie-stark); border-bottom: 0; border-radius: 22px 22px 0 0;
background: var(--flaeche); color: var(--schrift);
}
@media (min-width: 640px) { .blatt { margin: auto; border-radius: 22px; border-bottom: 1px solid var(--linie-stark); } }
.blatt::backdrop { background: rgba(5, 4, 9, .65); backdrop-filter: blur(2px); }
.blatt[open] { animation: hoch .22s ease-out; }
@keyframes hoch { from { transform: translateY(40px); opacity: 0; } }
.blatt form { padding: 10px 18px calc(18px + var(--unten)); display: grid; gap: 16px; }
.griff { width: 40px; height: 4px; border-radius: 4px; background: var(--linie-stark); margin: 0 auto; }
.blatt-kopf { display: flex; gap: 10px; }
.blatt input:not([type=range]) {
font: inherit; color: var(--schrift); background: var(--flaeche-2);
border: 1px solid var(--linie-stark); border-radius: 12px; min-height: 52px; padding: 0 14px;
}
.blatt input:focus { outline: 2px solid var(--lila); outline-offset: 0; }
.emoji-feld { width: 64px; text-align: center; font-size: 26px !important; padding: 0 !important; }
.name-feld { flex: 1; min-width: 0; font-size: 17px !important; }
.schnell { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.schnell button {
flex: none; width: 42px; height: 42px; border-radius: 10px; font-size: 22px;
background: var(--flaeche-2); border: 1px solid var(--linie); cursor: pointer;
}
.feld { display: grid; gap: 10px; }
.feld-name { font-size: 13px; color: var(--leise); display: flex; justify-content: space-between; }
.feld-name b { color: var(--schrift); font-variant-numeric: tabular-nums; }
.farben { display: flex; gap: 8px; flex-wrap: wrap; }
.farbe {
--c: var(--lila);
width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
background: var(--c); border: 3px solid var(--flaeche); box-shadow: 0 0 0 1px var(--linie-stark);
}
.farbe[aria-checked="true"] { box-shadow: 0 0 0 2px var(--schrift); }
input[type=range] { width: 100%; accent-color: var(--lila); height: 32px; }
.blatt-reihe { display: flex; gap: 8px; align-items: center; }
.blatt-reihe #b-hoeren { flex: 1; }
/* ------------------------------------------------------------ Abgemeldet */
.abgemeldet {
position: fixed; inset: 0; z-index: 50; display: grid; place-items: center;
background: rgba(13, 11, 20, .96); text-align: center; padding: 24px;
}
.abgemeldet p { color: var(--leise); max-width: 32ch; margin: 8px auto 22px; }
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { animation: none !important; transition: none !important; }
}