Zusammenführen: neu-fernbedienung (Nur Kino, QR-Kopplung, Fernbedienung)
Co-Authored-By: Claude Opus 5.5 <[email protected]> # Conflicts: # server/pruef-reaktion.mjs # server/workspace-aufbewahrung.js # server/workspace-reaktion.js # workspace/reaktion.html
This commit is contained in:
@@ -0,0 +1,128 @@
|
||||
/* =====================================================================
|
||||
FERNBEDIENUNG UND KOPPEL-SEITE (04.11.2026, Neuplan M9)
|
||||
Fürs Handy gebaut: große Tippziele (mindestens 64 px bei den
|
||||
Reaktionen, 44 px überall sonst), dunkel und ruhig im Hausstil.
|
||||
Bewegt wird nur `transform` (der kurze Druck auf einem Knopf), und bei
|
||||
„weniger Bewegung“ gar nichts.
|
||||
===================================================================== */
|
||||
body.sg { margin: 0; min-height: 100dvh; }
|
||||
.fb {
|
||||
max-width: 560px; margin: 0 auto;
|
||||
padding: max(14px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom));
|
||||
display: grid; gap: 14px;
|
||||
}
|
||||
.fb__kopf { display: flex; align-items: center; gap: 12px; }
|
||||
.fb__titel { flex: 1 1 auto; min-width: 0; }
|
||||
.fb__titel h1 { margin: 0; font-size: 1.25rem; }
|
||||
.fb__titel p { margin: 2px 0 0; font-size: .86rem; color: var(--c-leise); overflow-wrap: anywhere; }
|
||||
.fb__stand {
|
||||
flex: none; padding: 4px 10px; border-radius: 999px;
|
||||
font-size: .8rem; font-weight: 600;
|
||||
border: 1px solid var(--c-kante); color: var(--c-leise);
|
||||
}
|
||||
.fb__stand[data-stand="live"] { color: #ffe9ea; border-color: rgba(255, 77, 109, .55); background: rgba(255, 77, 109, .14); }
|
||||
.fb__stand[data-stand="gleich"] { color: var(--c-warn); border-color: rgba(255, 210, 122, .45); }
|
||||
.fb__hinweis {
|
||||
margin: 0; padding: 10px 12px; border-radius: 12px;
|
||||
background: rgba(255, 210, 122, .08); border: 1px solid rgba(255, 210, 122, .3);
|
||||
font-size: .9rem; color: var(--c-text);
|
||||
}
|
||||
.fb__hinweis[hidden] { display: none; }
|
||||
.fb__teil {
|
||||
background: var(--c-karte); border: 1px solid var(--c-kante); border-radius: 16px;
|
||||
padding: 12px 14px; display: grid; gap: 10px;
|
||||
}
|
||||
.fb__teil[hidden] { display: none; }
|
||||
.fb__teil h2 { margin: 0; font-size: .95rem; color: var(--c-leise); font-weight: 600; }
|
||||
|
||||
/* ---- Die großen Knöpfe -------------------------------------------- */
|
||||
.fb__reaktionen, .fb__mit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
|
||||
.fb__reaktion {
|
||||
min-height: 76px; border-radius: 14px;
|
||||
display: grid; place-items: center; align-content: center; gap: 4px;
|
||||
background: rgba(143, 211, 255, .06); border: 1px solid var(--c-kante);
|
||||
color: var(--c-text); font: inherit; cursor: pointer;
|
||||
touch-action: manipulation; -webkit-tap-highlight-color: transparent;
|
||||
transition: transform .12s ease;
|
||||
}
|
||||
.fb__reaktion:disabled { opacity: .45; cursor: not-allowed; }
|
||||
.fb__reaktion[data-gedrueckt="ja"] { transform: scale(.93); }
|
||||
.fb__reaktion:focus-visible { outline: 2px solid var(--c-blau); outline-offset: 2px; }
|
||||
.fb__reaktion-zeichen { font-size: 1.9rem; line-height: 1; }
|
||||
.fb__reaktion-wort { font-size: .78rem; color: var(--c-leise); }
|
||||
|
||||
/* ---- Dogen ---------------------------------------------------------- */
|
||||
.fb__dogen { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
|
||||
.fb__doge {
|
||||
min-height: 56px; border-radius: 12px; padding: 8px 10px;
|
||||
display: grid; place-items: center; align-content: center; gap: 2px;
|
||||
border: 1px solid rgba(168, 123, 255, .45); background: rgba(168, 123, 255, .08);
|
||||
color: var(--c-text); text-decoration: none;
|
||||
}
|
||||
.fb__doge-zahl { font-weight: 700; }
|
||||
.fb__doge-preis { font-size: .78rem; color: var(--c-leise); }
|
||||
.fb__nach { display: grid; gap: 8px; }
|
||||
.fb__nach[hidden] { display: none; }
|
||||
|
||||
/* ---- Chat ----------------------------------------------------------- */
|
||||
.fb__liste {
|
||||
list-style: none; margin: 0; padding: 0;
|
||||
max-height: 38dvh; overflow-y: auto; overscroll-behavior: contain;
|
||||
display: grid; gap: 6px; align-content: start;
|
||||
}
|
||||
.fb__beitrag { display: grid; gap: 1px; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, .03); }
|
||||
.fb__beitrag[data-eigen="ja"] { background: rgba(143, 211, 255, .08); }
|
||||
.fb__wer { font-size: .76rem; font-weight: 600; color: var(--c-blau); }
|
||||
.fb__text { font-size: .95rem; overflow-wrap: anywhere; }
|
||||
.fb__leer { margin: 0; font-size: .86rem; color: var(--c-leise); }
|
||||
.fb__leer[hidden] { display: none; }
|
||||
.fb__form { display: flex; gap: 8px; }
|
||||
.fb__feld { flex: 1 1 auto; min-width: 0; min-height: 48px; font-size: 1rem; }
|
||||
.fb__senden { min-height: 48px; }
|
||||
|
||||
/* ---- Sätze, Wahl, Fuß, Meldung -------------------------------------- */
|
||||
.fb__satz { margin: 0; font-size: 1rem; line-height: 1.5; }
|
||||
.fb__wahl { display: flex; flex-wrap: wrap; gap: 10px; }
|
||||
.fb__wahl[hidden] { display: none; }
|
||||
.fb__wahl .btn { min-height: 48px; }
|
||||
.fb__fuss { margin: 0; font-size: .8rem; color: var(--c-gedimmt); text-align: center; }
|
||||
.fb__meldung {
|
||||
position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%);
|
||||
max-width: min(92vw, 480px); margin: 0; padding: 10px 14px; border-radius: 12px;
|
||||
background: rgba(14, 18, 34, .96); border: 1px solid var(--c-kante); color: var(--c-text);
|
||||
font-size: .9rem; box-shadow: 0 12px 30px -12px #000;
|
||||
}
|
||||
.fb__meldung[hidden] { display: none; }
|
||||
.fb--koppeln[data-stand="fehler"] .fb__satz { color: var(--c-warn); }
|
||||
.fb--koppeln[data-stand="gut"] .fb__satz { color: var(--c-ok); }
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.fb__reaktion { transition: none; }
|
||||
.fb__reaktion[data-gedrueckt="ja"] { transform: none; }
|
||||
}
|
||||
|
||||
/* ---- Der Ladefehler-Kasten aus meldung.js ----------------------------
|
||||
meldung.js (Sätze für Serverkennungen) baut im Notfall einen Kasten
|
||||
„Die Seite lädt nicht“ mit Knopf. Gestaltet ist er sonst in module.css
|
||||
und gate.css – beide sind für die Hausseiten gebaut und hier zu schwer
|
||||
(zusammen über 200 KB, mit Element-Regeln für jede Seite). Darum hier
|
||||
dieselben Maße im Stil dieser Seite (pruef-css-klassen). */
|
||||
.ladefehler {
|
||||
display: grid; gap: 8px; justify-items: start;
|
||||
margin: 18px 0; padding: 16px 18px;
|
||||
border: 1px dashed var(--c-kante); border-radius: 12px;
|
||||
background: rgba(255, 255, 255, .02);
|
||||
}
|
||||
.ladefehler__satz { margin: 0; color: var(--c-text); font-weight: 600; }
|
||||
.ladefehler__grund { margin: 0; color: var(--c-leise); font-size: .9rem; }
|
||||
.knopf {
|
||||
display: inline-flex; align-items: center; justify-content: center;
|
||||
padding: 0 16px; border-radius: 12px; cursor: pointer;
|
||||
border: 1px solid var(--c-kante-stark); background: rgba(143, 211, 255, .1);
|
||||
color: var(--c-text); font: inherit; font-weight: 600;
|
||||
}
|
||||
.knopf--klein { font-size: .9rem; }
|
||||
.ladefehler__knopf { min-height: 44px; margin-top: 4px; }
|
||||
@media (forced-colors: active) {
|
||||
.ladefehler { border: 1px solid CanvasText; }
|
||||
}
|
||||
@@ -0,0 +1,105 @@
|
||||
/* =====================================================================
|
||||
NUR KINO UND DAS HANDY ALS FERNBEDIENUNG (04.11.2026, Neuplan M9)
|
||||
|
||||
„Nur Kino“ ist eine PERSÖNLICHE Ansicht (jeder für sich, gemerkt auf
|
||||
diesem Gerät) – nicht die Anordnung der Regie und nicht die
|
||||
Bühnenquelle für OBS (`?nur=buehne`). Deshalb ein eigenes Merkmal
|
||||
(`body[data-kino="nur"]`) statt `data-nur="buehne"`: Die Bühnenquelle
|
||||
legt Fährte und Kameras bewusst ÜBER das Bild (Sendebild), und das
|
||||
darf für Zuschauer über einem YouTube-Player nicht sein (`bildFrei()`
|
||||
in reaktion.js bleibt hier wahr – die Gesichter stehen in ihrer Spur
|
||||
unter dem Video).
|
||||
|
||||
Ausgeblendet wird, was wie bei der Bühnenquelle Bedienung ist – dazu
|
||||
Chat, Ziel/Werbung und Spendenkarten („Bild und Gesichter, sonst
|
||||
nichts“). Der Ton-Knopf bleibt: Ohne ihn säße jemand vor stummem Bild.
|
||||
|
||||
Die Leiste unten ist ein eigenes Kind des Körpers (der eine Spalte
|
||||
ist): Sie nimmt ihren Platz, der Saal bekommt den Rest. Nichts liegt
|
||||
über dem Video – auch nicht der QR-Kasten, der die Leiste nur höher
|
||||
macht.
|
||||
===================================================================== */
|
||||
body[data-kino="nur"] .kopfleiste,
|
||||
body[data-kino="nur"] .schiene,
|
||||
body[data-kino="nur"] .regieleiste,
|
||||
body[data-kino="nur"] .pult,
|
||||
body[data-kino="nur"] .buehne-schild,
|
||||
body[data-kino="nur"] .senderleiste,
|
||||
body[data-kino="nur"] .spendentafel,
|
||||
body[data-kino="nur"] .saalinfo,
|
||||
body[data-kino="nur"] .transport {
|
||||
display: none !important;
|
||||
}
|
||||
/* Dieselbe Rasterkorrektur wie bei der Bühnenquelle: Pultspalte und
|
||||
Chatspalte belegen keinen Platz mehr. */
|
||||
body[data-kino="nur"] .saal,
|
||||
body[data-kino="nur"] .saal:has(.pult[data-auf="ja"]) {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
grid-template-areas: none;
|
||||
}
|
||||
body[data-kino="nur"] .saal .raum,
|
||||
body[data-kino="nur"] .saal:has(.pult[data-auf="ja"]) .raum { grid-area: auto; grid-row: 2; grid-column: 1; }
|
||||
body[data-kino="nur"] .raum { grid-template-columns: 1fr; }
|
||||
|
||||
/* ---- Der Schalter im Chatkopf ------------------------------------- */
|
||||
.kino-knopf { gap: 6px; }
|
||||
.kino-knopf svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
|
||||
.kino-knopf[hidden] { display: none; }
|
||||
/* Am Handy hochkant ist das Handy selbst der Bildschirm – dort gibt es
|
||||
den Schalter nicht. */
|
||||
@media (max-width: 860px) and (orientation: portrait) {
|
||||
.kino-knopf { display: none !important; }
|
||||
}
|
||||
|
||||
/* ---- Die Leiste unten ---------------------------------------------- */
|
||||
.kinoleiste {
|
||||
flex: none;
|
||||
/* EIGENE EBENE (gemessen 04.11.2026): Der Hausgrund (`body.start >
|
||||
.schleier`, fest, z-index 0, pointer-events none) malte sonst ÜBER
|
||||
die nicht positionierte Leiste – Klicks gingen durch, das Bild zeigte
|
||||
den Grund statt des QR-Codes. */
|
||||
position: relative; z-index: 1;
|
||||
display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
|
||||
gap: 10px 14px;
|
||||
padding: 8px 14px;
|
||||
background: #07060d;
|
||||
border-top: 1px solid var(--c-kante, rgba(143, 211, 255, .28));
|
||||
color: var(--c-text, #f4f6ff);
|
||||
}
|
||||
.kinoleiste[hidden] { display: none; }
|
||||
.kinoleiste__wort { font-size: .8rem; color: var(--c-leise, #9aa4c7); }
|
||||
@media (pointer: coarse) {
|
||||
.kinoleiste .btn { min-height: 44px; }
|
||||
}
|
||||
|
||||
/* ---- Der QR-Kasten (in der Leiste, nie über dem Bild) ---------------- */
|
||||
.kino-koppeln {
|
||||
flex: 1 1 100%;
|
||||
display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
|
||||
gap: 14px 22px;
|
||||
padding: 6px 0 4px;
|
||||
}
|
||||
.kino-koppeln[hidden] { display: none; }
|
||||
/* Ein QR-Code braucht hellen Grund und dunkle Punkte, sonst liest ihn
|
||||
keine Kamera. Gedämpftes Weiß statt Reinweiß – augenschonend, und die
|
||||
Leser kommen damit tadellos zurecht (Kontrast ~17 : 1). */
|
||||
.kino-koppeln__qr {
|
||||
width: 176px; height: 176px; flex: none;
|
||||
border-radius: 12px; overflow: hidden;
|
||||
background: #e9eef7;
|
||||
display: grid; place-items: center;
|
||||
}
|
||||
.kino-koppeln__qr svg { width: 100%; height: 100%; display: block; }
|
||||
.kino-koppeln__qr[data-zustand="weg"] svg { opacity: .12; }
|
||||
.kino-koppeln__text { max-width: 360px; display: grid; gap: 6px; }
|
||||
.kino-koppeln__text strong { font-size: 1rem; }
|
||||
.kino-koppeln__text .btn { justify-self: start; }
|
||||
.kino-koppeln__satz { margin: 0; font-size: .86rem; color: var(--c-leise, #9aa4c7); }
|
||||
.kino-koppeln__rest { font-variant-numeric: tabular-nums; color: var(--c-text, #f4f6ff); }
|
||||
.kino-koppeln__sagt { margin: 0; font-size: .9rem; min-height: 1.3em; }
|
||||
.kino-koppeln__sagt[data-art="gut"] { color: var(--c-ok, #7cf0c0); }
|
||||
.kino-koppeln__sagt[data-art="fehler"] { color: var(--c-warn, #ffd27a); }
|
||||
/* Am Fingergerät gibt es keine Esc-Taste – dann auch keinen Hinweis darauf. */
|
||||
@media (pointer: coarse) {
|
||||
.kinoleiste__wort { display: none; }
|
||||
}
|
||||
Reference in New Issue
Block a user