Files
dogfather-universe/workspace/assets/css/cockpit.css
T
DogFatherGitandClaude Opus 5.5 a164a121be Feinschliff nach dem Zusammenführen: Meldungen, Backstage-Zeile, Stempel
- Fehlersätze der Tipp-Runde, Backstage, Nochmal, Puls und Zeichnen in die
  Haustabelle (meldung.js); tipprunde.js liest sie über sagWas statt einer
  eigenen Tabelle (pruef-meldungen)
- Seitliches Pult: Die Backstage-Zeile bekommt eine eigene Rasterzeile,
  sonst lag "Dein Spiel zeigen" über "bereit ✓" und ✋ (gemessen 1440)
- Stempel 202611041450+

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 14:55:07 +01:00

138 lines
6.9 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* =====================================================================
DAS COCKPIT (03.11.2026) – siehe cockpit.js
Ruhig und augenschonend: keine Signalfarben-Flächen, nur Punkte. Die
einzige Bewegung ist das Füllen beim Halten – über `transform`, also
Arbeit des Compositors (Hausregel 15.10.2026).
===================================================================== */
.cockpit {
position: relative;
display: flex; align-items: center; flex-wrap: wrap;
gap: 8px 10px;
margin-left: auto;
}
.cockpit [hidden],
.cockpit-backstage[hidden] { display: none !important; }
.cockpit-kurve { width: 72px; height: 22px; flex: none; }
.cockpit-kurve polyline { stroke: #8fd3ff; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; opacity: .85; }
.cockpit-kurve[data-leer="ja"] { opacity: .35; }
.cockpit-ampel {
appearance: none; cursor: pointer;
display: inline-flex; align-items: center; gap: 8px;
min-height: 36px; padding: 0 12px;
border: 1px solid var(--rand-hell); border-radius: 999px;
background: rgba(255, 255, 255, .03);
color: var(--schrift); font: inherit; font-size: .8rem; font-weight: 700;
}
.cockpit-ampel__punkte { display: inline-flex; gap: 3px; }
.cockpit-ampel__punkt { width: 8px; height: 8px; border-radius: 50%; background: #5d5a6e; display: block; }
.cockpit-ampel__punkt[data-stufe="gut"] { background: #6fcf97; }
.cockpit-ampel__punkt[data-stufe="knapp"] { background: #e6c35c; }
.cockpit-ampel__punkt[data-stufe="problem"] { background: #ef7b7b; }
.cockpit-ampel[data-stufe="unbekannt"] .cockpit-ampel__wort { color: var(--schrift-leise); }
.cockpit-ampel__tafel {
position: absolute; right: 0; top: calc(100% + 8px); z-index: 5;
min-width: 260px; padding: 10px 12px;
border: 1px solid var(--rand-hell); border-radius: 12px;
background: #0d0c16; box-shadow: 0 20px 50px -20px #000;
display: grid; gap: 6px;
}
.cockpit-ampel__zeile { display: flex; justify-content: space-between; gap: 14px; font-size: .82rem; }
.cockpit-ampel__name { color: var(--schrift-leise); }
.cockpit-ampel__zeile[data-stufe="problem"] .cockpit-ampel__wert { color: #ef9a9a; }
.cockpit-ampel__zeile[data-stufe="knapp"] .cockpit-ampel__wert { color: #ecd38a; }
.cockpit-ampel__zeile[data-stufe="unbekannt"] .cockpit-ampel__wert { color: var(--schrift-leise); }
.cockpit-moment kbd, .cockpit-beenden kbd { margin-left: 4px; font-size: .72rem; opacity: .75; }
.cockpit-moment__zahl {
margin-left: 2px; padding: 0 6px; border-radius: 999px;
background: rgba(230, 195, 92, .16); color: #ecd38a; font-size: .74rem;
}
@media (prefers-reduced-motion: no-preference) {
.cockpit-moment--blitz { animation: cockpit-blitz .5s ease-out; }
@keyframes cockpit-blitz { from { opacity: .55; } to { opacity: 1; } }
}
/* Mit Kennung davor: Die Hausregel `:is(.sg, .sg-teil) .btn` ist stärker
als eine einzelne Klasse und nahm dem Knopf sonst Rand und Farbe. */
#cockpit .cockpit-beenden {
position: relative; overflow: hidden;
border: 1px solid rgba(239, 123, 123, .45);
background: rgba(239, 123, 123, .06);
color: #f3b3b3;
touch-action: none;
user-select: none; -webkit-user-select: none;
}
.cockpit-beenden__wort { position: relative; }
.cockpit-beenden__fuell {
position: absolute; inset: 0;
background: rgba(239, 123, 123, .28);
transform: scaleX(0); transform-origin: left center;
}
.cockpit-beenden[data-halten="ja"] .cockpit-beenden__fuell { transform: scaleX(1); transition: transform 1s linear; }
#cockpit .cockpit-beenden:disabled { opacity: .45; }
/* Momente auf der Transportleiste: dünne, gedeckte gelbe Striche. */
#transport .transport__schiene { position: relative; }
.cockpit-zeitmarken { position: absolute; top: 50%; height: 14px; transform: translateY(-50%); pointer-events: none; }
.cockpit-zeitmarke { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; border-radius: 1px; background: #e6c35c; opacity: .85; }
.cockpit-sagt { font-size: .78rem; color: var(--schrift-leise); min-height: 1em; }
.cockpit-sagt:empty { display: none; }
.cockpit-backstage {
display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px;
padding: 8px 16px;
border-bottom: 1px solid var(--rand);
font-size: .82rem;
}
.cockpit-backstage__titel { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--schrift-leise); }
.cockpit-backstage__liste { display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; margin: 0; padding: 0; flex: 1 1 auto; }
.cockpit-backstage__person { display: inline-flex; gap: 6px; align-items: baseline; }
.cockpit-backstage__person span { color: var(--schrift-leise); }
.cockpit-backstage__person[data-art="dabei"] strong { color: #8fd3ff; }
/* Mit dem Finger gibt es keine Tasten. */
@media (pointer: coarse) { .cockpit kbd { display: none; } }
/* AM HANDY ZÄHLT JEDE ZEILE. Gemessen (pruef-reaktion-schmal, 320×568 mit
Lasthinweis): Eine eigene Ampelzeile im geschlossenen Saal schob die drei
großen Knöpfe aus dem Fenster. Deshalb erscheint das Cockpit dort erst,
wenn es etwas zu führen gibt, und in EINER kompakten Zeile. */
@media (max-width: 860px) {
.cockpit { margin-left: 0; width: 100%; flex-wrap: nowrap; gap: 6px; }
.cockpit[data-stand="zu"] { display: none; }
.cockpit-ampel__wort, .cockpit-kurve { display: none; }
.cockpit-ampel, .cockpit .btn { min-height: 44px; }
.cockpit .btn { padding-inline: 10px; }
.cockpit-sagt { position: absolute; left: 0; top: calc(100% + 4px); z-index: 5; background: #0d0c16; padding: 4px 8px; border-radius: 8px; }
}
/* Kurze Handys (SE, 568 px): Mit aufgeklappter Regie stehen dort die drei
großen Knöpfe samt „Beenden“ – das Cockpit wartet, bis sie zu ist. */
@media (max-width: 860px) and (max-height: 700px) {
.pult[data-auf="ja"] .cockpit { display: none; }
}
/* TABLET QUER (04.11.2026, pruef-breiten 1024 x 768): Das Pult reicht dort
ueber die ganze Breite und liegt auf dem Kopf der Chatspalte. Im
geschlossenen Saal stand die Ampel allein ganz rechts – genau ueber den
Chatstufen-Knoepfen. Vor der Sendung hilft ohnehin Startklar in der
Werkstatt; auf Tablets quer ruht das Cockpit deshalb, solange der Saal zu
ist (der Zustand ist damit wie vor dem Cockpit). */
@media (min-width: 861px) and (max-width: 1100px) {
.cockpit[data-stand="zu"] { display: none; }
}
/* ==== DIE BACKSTAGE-ZEILE BEKOMMT IHRE EIGENE RASTERZEILE (04.11.2026) =====
Das seitliche Pult hat zwei Zeilen: Kopf (auto) und Inhalt (minmax(0,1fr)).
cockpit.js setzt die Backstage-Zeile ZWISCHEN beide – sie landete damit in
der dehnbaren Zeile mit Höhe null, und die Tafel „Dein Spiel zeigen“ lag
über „bereit ✓“ und ✋ (gemessen auf 1440 × 900). Steht sie da, hat das Pult
drei Zeilen. Dieselben Breiten wie das seitliche Pult (reaktion.css). */
@media (min-width: 1100px), (min-width: 861px) and (orientation: landscape) {
.saal:has(.pult[data-auf="ja"]) .pult:has(> .cockpit-backstage:not([hidden])) {
grid-template-rows: auto auto minmax(0, 1fr);
}
}