umbau(boxwart): neue Oberflaeche im Cockpit-Stil (Richtung A), Werkzeuge angehoben

Drei Seiten statt zehn: Start, Updates, Modelle — am PC mit Kopfnavigation, am Handy
mit Leiste unten. Umsetzung von Mockup A („Cockpit“), vom User am 23.09. gewaehlt.

- Start: Hauptwarnleuchte + 8 Warnlampen, Rundinstrumente mit Live-Werten aus dem
  Strom (Speicher, Temperatur, Platte) und Laufzeit-Zaehlwerk, Checkliste der
  Waechter-Hinweise mit ihren Knoepfen, Flugplan (heute gelaufen / geplant), Radar-Kasten.
- Updates: Bausteine mit „Laeuft → Neu“ und Zusammenfassung, laufende Auftraege,
  Verlauf der Sonntagslaeufe (neu: GET /api/updates/verlauf), Sicherungen samt
  Zurueckspielen mit Rueckfrage.
- Modelle: Speicherbalken, Rollen Hirn/Coder/Dritte Rolle, wer die Modelle nutzt
  (7 Tage + 24 h je Stunde), Modell-Radar, weitere Eintraege, Modelle selbst suchen.
- Schubladen: Dienste mit Protokoll und Neustart, Einstellungen (HF-Zugang), Hermes-Link.
- Werkzeuge: Vite 8, React 19.3 mit React Compiler 1.0 (Babel), vitest 5, Tailwind 4.3,
  shadcn 4 (Radix) fuer Dialog/Schublade/Knopf, Schriften Barlow/Barlow Condensed/
  JetBrains Mono. Entfernt: recharts, cmdk, Kraftgraph, zustand, Inter, Space Grotesk.
- Startbuendel 115 KB gzip (Budget 140); Updates/Modelle/Schubladen laden bei Bedarf.
- 16 Oberflaechen-Tests (Instrument-Bogen, Hauptleuchte, Zeitformate, Versionen).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Hitonabi
2026-09-23 21:39:07 +02:00
co-authored by Claude Opus 5.5
parent 3d2c9549fb
commit 907289d7dc
223 changed files with 8572 additions and 15393 deletions
+153 -238
View File
@@ -1,256 +1,171 @@
@import "tailwindcss";
@import "tw-animate-css";
@import "shadcn/tailwind.css";
@import "@fontsource/barlow/400.css";
@import "@fontsource/barlow/500.css";
@import "@fontsource/barlow/600.css";
@import "@fontsource/barlow-condensed/500.css";
@import "@fontsource/barlow-condensed/600.css";
@import "@fontsource/barlow-condensed/700.css";
@import "@fontsource/jetbrains-mono/400.css";
@import "@fontsource/jetbrains-mono/500.css";
/* Fonts lokal gebündelt (@fontsource) — die Box-UI braucht kein Internet für Schrift.
Bewusst KEINE Sammel-Importe (`@fontsource/inter/400.css`): die ziehen alle Subsets
(latin-ext, griechisch, kyrillisch) UND je eine WOFF-1-Fassung mit — 112 Dateien,
1,58 MB, davon 57 % WOFF 1, das kein Browser dieser App je abruft. Hier stehen
deshalb die @font-face-Regeln selbst: nur `latin`, nur WOFF 2, nur die Schnitte,
die im Code wirklich vorkommen (geprüft per grep über die font-*-Klassen).
Neuen Schnitt gebraucht? Zeile ergänzen — nicht auf den Sammel-Import zurückfallen. */
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 400;
src: url("@fontsource/inter/files/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 500;
src: url("@fontsource/inter/files/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 600;
src: url("@fontsource/inter/files/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 700;
src: url("@fontsource/inter/files/inter-latin-700-normal.woff2") format("woff2"); }
/*
* Cockpit (Box-Wart-Umbau 09/2026, Richtung A): dunkles Instrumentenbrett.
* Bernstein = Achtung (Hinweise, Hauptknöpfe), Grün = läuft, Cyan = Info/Anzeige,
* Rot = Störung. Farbe erscheint nur, wenn etwas ist — im Normalfall bleibt es ruhig.
* Nur ein dunkles Design (User-Entscheid 23.09.), daher alle Werte direkt auf :root.
*/
/* Space Grotesk trägt nur Überschriften (font-space): 400 als Grundschnitt, 600/700 benutzt. */
@font-face { font-family: "Space Grotesk"; font-style: normal; font-display: swap; font-weight: 400;
src: url("@fontsource/space-grotesk/files/space-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-display: swap; font-weight: 600;
src: url("@fontsource/space-grotesk/files/space-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-display: swap; font-weight: 700;
src: url("@fontsource/space-grotesk/files/space-grotesk-latin-700-normal.woff2") format("woff2"); }
/* JetBrains Mono: 600 und 700 gab es bisher NICHT — die 19 `font-mono font-bold/semibold`
Stellen wurden vom Browser synthetisch fettgerechnet (verschmiert). Bei Monospace ist die
Laufweite über alle Schnitte gleich, das Nachrüsten verschiebt also kein Layout. */
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 400;
src: url("@fontsource/jetbrains-mono/files/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 500;
src: url("@fontsource/jetbrains-mono/files/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 600;
src: url("@fontsource/jetbrains-mono/files/jetbrains-mono-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 700;
src: url("@fontsource/jetbrains-mono/files/jetbrains-mono-latin-700-normal.woff2") format("woff2"); }
/* Design-System: EINE Akzentfarbe Teal, bewusst dark-only (Glassmorphismus-Look).
Karten-Optik lebt in .mc-card / .mc-card-sm (unten) — Komponenten sagen es explizit,
statt dass CSS Utility-Klassen-Kombinationen errät. */
:root {
--background: 224 30% 6%;
--foreground: 210 20% 92%;
--card: 224 25% 10%;
--card-foreground: 210 20% 94%;
--popover: 224 28% 9%;
--popover-foreground: 210 20% 94%;
--primary: 172 72% 50%;
--primary-foreground: 224 47% 8%;
--muted: 220 16% 14%;
--muted-foreground: 215 14% 64%;
--accent: 220 16% 16%;
--accent-foreground: 210 20% 94%;
--border: 222 18% 23%;
--input: 222 18% 23%;
--ring: 172 72% 50%;
--radius: 0.75rem;
color-scheme: dark;
}
@custom-variant dark (&:is(.dark *));
@theme inline {
--color-background: hsl(var(--background));
--color-foreground: hsl(var(--foreground));
--color-card: hsl(var(--card));
--color-card-foreground: hsl(var(--card-foreground));
--color-popover: hsl(var(--popover));
--color-popover-foreground: hsl(var(--popover-foreground));
--color-primary: hsl(var(--primary));
--color-primary-foreground: hsl(var(--primary-foreground));
--color-muted: hsl(var(--muted));
--color-muted-foreground: hsl(var(--muted-foreground));
--color-accent: hsl(var(--accent));
--color-accent-foreground: hsl(var(--accent-foreground));
--color-border: hsl(var(--border));
--color-input: hsl(var(--input));
--color-ring: hsl(var(--ring));
--font-sans: "Barlow", "Segoe UI", system-ui, sans-serif;
--font-heading: "Barlow Condensed", "Barlow", "Segoe UI", sans-serif;
--font-anzeige: "Barlow Condensed", "Barlow", "Segoe UI", sans-serif;
--font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
--color-background: var(--background);
--color-foreground: var(--foreground);
--color-card: var(--card);
--color-card-foreground: var(--card-foreground);
--color-popover: var(--popover);
--color-popover-foreground: var(--popover-foreground);
--color-primary: var(--primary);
--color-primary-foreground: var(--primary-foreground);
--color-secondary: var(--secondary);
--color-secondary-foreground: var(--secondary-foreground);
--color-muted: var(--muted);
--color-muted-foreground: var(--muted-foreground);
--color-accent: var(--accent);
--color-accent-foreground: var(--accent-foreground);
--color-destructive: var(--destructive);
--color-border: var(--border);
--color-input: var(--input);
--color-ring: var(--ring);
--color-panel: var(--panel);
--color-erhaben: var(--erhaben);
--color-linie: var(--linie);
--color-linie-stark: var(--linie-stark);
--color-text-2: var(--text-2);
--color-text-3: var(--text-3);
--color-bernstein: var(--bernstein);
--color-bernstein-hell: var(--bernstein-hell);
--color-bernstein-grund: var(--bernstein-grund);
--color-bernstein-lampe: var(--bernstein-lampe);
--color-gruen: var(--gruen);
--color-gruen-text: var(--gruen-text);
--color-gruen-grund: var(--gruen-grund);
--color-gruen-rand: var(--gruen-rand);
--color-cyan: var(--cyan);
--color-cyan-text: var(--cyan-text);
--color-cyan-grund: var(--cyan-grund);
--color-cyan-rand: var(--cyan-rand);
--color-rot: var(--rot);
--color-rot-text: var(--rot-text);
--color-rot-grund: var(--rot-grund);
--color-rot-rand: var(--rot-rand);
--color-aus-grund: var(--aus-grund);
--color-aus-rand: var(--aus-rand);
--color-aus-text: var(--aus-text);
--radius-sm: calc(var(--radius) * 0.6);
--radius-md: calc(var(--radius) * 0.8);
--radius-lg: var(--radius);
--radius-md: calc(var(--radius) - 2px);
--radius-sm: calc(var(--radius) - 4px);
--font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
--font-space: "Space Grotesk", sans-serif;
--radius-xl: calc(var(--radius) * 1.4);
--radius-2xl: calc(var(--radius) * 1.8);
}
/* Feste Viewport-Höhe: die App scrollt intern (main), nicht als Seite.
100dvh statt 100% — auf Mobilbrowsern mit einfahrender Adressleiste ist 100 % nicht
die sichtbare Höhe, der untere Rand (Statuszeile) verschwand darunter.
Die 100%-Zeile bleibt als Rückfall für Browser ohne dvh-Einheit stehen. */
html,
body,
#root {
height: 100%;
height: 100dvh;
overflow: hidden;
:root {
color-scheme: dark;
--radius: 0.625rem;
--background: #0e1012;
--foreground: #e6eaee;
--card: #15181b;
--card-foreground: #e6eaee;
--popover: #15181b;
--popover-foreground: #e6eaee;
--primary: #ffb020;
--primary-foreground: #1a1300;
--secondary: #1c2126;
--secondary-foreground: #e6eaee;
--muted: #1c2126;
--muted-foreground: #8b949e;
--accent: #1c2126;
--accent-foreground: #e6eaee;
--destructive: #ff5a4f;
--border: #262b30;
--input: #3a4148;
--ring: #5cc8ff;
--panel: #15181b;
--erhaben: #1c2126;
--linie: #262b30;
--linie-stark: #3a4148;
--text-2: #aeb6bf;
--text-3: #8b949e;
--bernstein: #ffb020;
--bernstein-hell: #ffc24d;
--bernstein-grund: #2a1e05;
--bernstein-lampe: #3a2a08;
--gruen: #3ddc8a;
--gruen-text: #7cc9a0;
--gruen-grund: #0f2319;
--gruen-rand: #1f5a3b;
--cyan: #5cc8ff;
--cyan-text: #93d5f8;
--cyan-grund: #0c2230;
--cyan-rand: #2f7fb0;
--rot: #ff5a4f;
--rot-text: #ff9a92;
--rot-grund: #2e0f0d;
--rot-rand: #a33a33;
--aus-grund: #171b1f;
--aus-rand: #2e343a;
--aus-text: #9aa3ad;
}
body {
margin: 0;
background-color: hsl(var(--background));
color: hsl(var(--foreground));
font-family: var(--font-sans);
-webkit-font-smoothing: antialiased;
}
* {
border-color: hsl(var(--border) / 0.85);
outline-color: hsl(var(--primary) / 0.5);
}
/* Sichtbarer Fokus für Tastatur-Nutzer auf allen interaktiven Elementen. */
:focus-visible {
outline: 2px solid hsl(var(--primary) / 0.7);
outline-offset: 2px;
}
/* Eingabefelder: Teal-Fokus statt Browser-Default (ungeschichtet → gewinnt ohne !important). */
input:focus, textarea:focus, select:focus {
border-color: hsl(var(--primary));
box-shadow: 0 0 0 2px hsl(var(--primary) / 0.15);
outline: none;
}
/* Schmale Teal-Scrollbars im Glas-Look (EINE Definition). */
::-webkit-scrollbar {
width: 6px;
height: 6px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: hsl(var(--primary) / 0.25);
border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
background: hsl(var(--primary) / 0.5);
}
/* ==========================================================================
Karten-Optik (ehem. „HUD 3.0"-Layer, jetzt explizite Klassen ohne !important;
ungeschichtete Regeln schlagen Tailwind-Utilities von selbst)
========================================================================== */
/* Große Inhalts-Karte: Glas-Grund, Farbverlaufs-Linie oben, sanftes Anheben bei Hover. */
.mc-card {
position: relative;
overflow: hidden;
border-radius: 1rem;
border: 1px solid hsl(var(--border) / 0.95);
background-color: hsl(var(--card) / 0.85);
box-shadow: 0 10px 30px -15px rgb(0 0 0 / 0.45), inset 0 1px 0 0 rgb(255 255 255 / 0.05);
transition:
transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mc-card::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
height: 3.5px;
background: linear-gradient(90deg, hsl(var(--primary)), #6366f1, #a855f7);
opacity: 0.75;
transition: opacity 0.3s ease;
}
.mc-card:hover {
transform: translateY(-3px);
background-color: hsl(var(--card) / 0.92);
border-color: hsl(var(--primary) / 0.35);
box-shadow: 0 20px 40px -20px rgb(0 0 0 / 0.65), 0 0 18px 2px hsl(var(--primary) / 0.05);
}
.mc-card:hover::before {
opacity: 1;
}
/* Kleine Karte / Listen-Container: ruhiger, ohne Verlaufs-Linie und Anheben. */
.mc-card-sm {
border-radius: 0.75rem;
border: 1px solid hsl(var(--border) / 0.9);
background-color: hsl(var(--card) / 0.88);
transition: background-color 0.2s ease, border-color 0.2s ease;
}
.mc-card-sm:hover {
background-color: hsl(var(--card) / 0.95);
border-color: hsl(var(--primary) / 0.3);
}
/* Aktiver Navigations-Eintrag in der Sidebar (ausgeklappt / eingeklappt). */
.nav-active {
background: linear-gradient(90deg, hsl(var(--primary) / 0.18), rgb(99 102 241 / 0.12));
color: hsl(var(--primary));
border-left: 3.5px solid hsl(var(--primary));
border-radius: 0 var(--radius) var(--radius) 0;
padding-left: calc(0.75rem - 3.5px);
box-shadow: inset 0 1px 0 0 rgb(255 255 255 / 0.02);
}
.nav-active-collapsed {
background: hsl(var(--primary) / 0.18);
color: hsl(var(--primary));
box-shadow: 0 0 12px 1px hsl(var(--primary) / 0.1);
border: 1px solid hsl(var(--primary) / 0.3);
}
/* SVG-Fluss-Animation (Modell-Cockpit-Verdrahtung). */
@keyframes flow-cyan {
0% {
stroke-dasharray: 6 3;
stroke-dashoffset: 18;
@layer base {
* {
@apply border-border outline-ring/50;
}
100% {
stroke-dasharray: 6 3;
stroke-dashoffset: 0;
}
}
.animate-flow-cyan {
animation: flow-cyan 1.2s linear infinite;
}
/* Bewegungs-Sensibilität respektieren: Animationen/Transitions praktisch aus. */
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}
/* WQHD & 4K Monitor Responsive Scaling (Fluid Typography & UI Scaling) */
@media (min-width: 1440px) {
html {
font-size: 16.5px;
@apply font-sans;
-webkit-font-smoothing: antialiased;
}
body {
@apply bg-background text-foreground;
margin: 0;
}
:focus-visible {
outline: 2px solid var(--cyan);
outline-offset: 2px;
}
}
@media (min-width: 1920px) {
html {
font-size: 17.5px;
@layer utilities {
/* Beschriftung wie auf einem Instrumentenbrett: schmal, groß, gesperrt. */
.schild {
font-family: var(--font-anzeige);
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.16em;
}
.ziffern {
font-family: var(--font-mono);
font-variant-numeric: tabular-nums;
}
}
@media (min-width: 2560px) {
html {
font-size: 19px;
}
/* Leuchtende Lampen: nur ein ruhiges Atmen, und nur wenn das System Bewegung erlaubt. */
@keyframes lampe-atmen {
0%, 100% { box-shadow: 0 0 10px color-mix(in srgb, var(--bernstein) 25%, transparent); }
50% { box-shadow: 0 0 22px color-mix(in srgb, var(--bernstein) 45%, transparent); }
}
@media (min-width: 3440px) {
html {
font-size: 20px;
}
@media (prefers-reduced-motion: no-preference) {
.lampe-atmet { animation: lampe-atmen 3.2s ease-in-out infinite; }
}