Files
alpenwerk-hr/app/globals.css
Maximilian Stubhan 324698ce33 GO-Gastro-Stand: herstellerneutral, lokale Anmeldung, synthetische Daten
- Alle Bezuege auf den bisherigen Kunden entfernt (Logo, Farben, Gesellschaft,
  Texte, Tests); Marke Alpenwerk HR neutral
- Lokale Anmeldung ohne Passwort fuer den Betrieb auf dem eigenen Rechner
  (LOKALE_ANMELDUNG, nie auf einem Server setzen)
- Kollektivvertrag Gastgewerbe
- scripts/seed-go-gastro.mjs: synthetische Testdaten in Struktur und Groesse
  von GO Gastro, keine Echtdaten
- CSP ohne eval-Fehler; Datenkatalog und Workshop-Rueckfragen unter docs/

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-04 20:03:49 +01:00

186 lines
6.4 KiB
CSS

@import "tailwindcss";
/* ═══ Farben ═══════════════════════════════════════════════════════════
Neutrales Farbschema: ein dunkles Blau traegt alle Bedienelemente
(Knopf, Link, Fokusring), ein helles Blaugrau traegt Flaechen.
Weiss auf brand-500 und brand-500 auf Weiss erreichen beide AAA; auf
accent-500 steht immer dunkle Schrift (brand-700 oder ink). */
@theme {
/* ── Blau: alles, was man anfassen kann ── */
--color-brand-50: #eef3f9;
--color-brand-100: #d9e3f0;
--color-brand-200: #adc0dc;
--color-brand-500: #1f4f8f;
--color-brand-600: #193f72;
--color-brand-700: #133158;
/* ── Akzent: Flaechen, auf denen dunkle Schrift steht ── */
--color-accent-50: #f0f6fb;
--color-accent-100: #dceaf5;
--color-accent-200: #bcd6ec;
--color-accent-500: #a9cbe8;
--color-accent-600: #4a7fae;
--color-accent-700: #2f5f8a;
--color-surface: #f6f8fb;
--color-border: #dde4ec;
--color-border-subtle: #edf1f6;
/* Fuer die Umrandung von Eingabefeldern. Der dekorative Kartenrahmen
darueber darf blass sein; die Grenze eines Bedienelements muss nach
WCAG 1.4.11 3:1 erreichen, und das tut dieser Ton mit 3.56:1 gegen
Weiss und 3.34:1 gegen die Seitenflaeche. */
--color-border-strong: #7b8794;
/* Ein weiches Schwarz statt reinem Schwarz. */
--color-ink: #1f2329;
--color-ink-body: #444b55;
--color-ink-muted: #6b7380;
/* ── Funktionsfarben ──
Sie bleiben, was sie sind: Rot heisst Fehler, weil die Benutzerin das mitbringt,
nicht weil es jemand entworfen hat. In einem System, in dem ein Knopf
einen Austritt erfasst, waere eine markenkonforme Fehlerfarbe kein
Stil, sondern ein Mangel.
`info` bleibt bewusst tuerkis statt blau zu werden: Blau heisst
„hier kann man klicken", und ein Hinweischip in derselben Farbe
saehe bedienbar aus. Gemessen kommt dazu, dass ein blaues info dem
violetten Chip zu nahe kaeme (dE 6.8 — nicht unterscheidbar). */
--color-success-bg: #dff6dd;
--color-success-text: #0e700e;
--color-danger-bg: #fde7e9;
--color-danger-text: #b10e1c;
--color-danger-solid: #c50f1f;
--color-warning-bg: #fff4ce;
--color-warning-text: #835b00;
--color-info-bg: #d7f0f0;
--color-info-text: #00666d;
/* Kraeftig genug, um sich vom Fehler-Chip abzuheben: dE 15.0 bei 7.9:1
Kontrast. Ein blasserer Ton (etwa #f0ecf7, dE 8.0) liesse „Austritt" und
„Befoerderung" im Vorbeigehen als dieselbe blasse Flaeche erscheinen. */
--color-purple-bg: #e4d9f5;
--color-purple-text: #54277f;
/* A bare `--radius` in Tailwind v4 collapses the whole scale onto one
value — `rounded` and `rounded-lg` would both come out at 8px, so a chip, an
input and a card could not be told apart. Named steps restore the
gradation; 8px stays the default so nothing shifts unintentionally. */
--radius-sm: 4px;
--radius: 6px;
--radius-md: 8px;
--radius-lg: 12px;
--radius-xl: 16px;
/* Kept shallow — this is a data-dense admin UI, the depth only has to
separate a card from the page. */
--shadow-card: 0 1px 2px rgb(30 50 80 / 0.05), 0 1px 3px rgb(30 50 80 / 0.07);
--shadow-card-hover: 0 2px 4px rgb(30 50 80 / 0.07), 0 4px 12px rgb(30 50 80 / 0.09);
--shadow-overlay: 0 8px 32px rgb(31 35 41 / 0.18);
/* Siehe app/layout.tsx: geladen wird Barlow. Die Ersatzkette bleibt neutral — faellt der Webfont aus, soll
keine gerundete Systemschrift einspringen. */
--font-sans: var(--font-din), "Segoe UI", system-ui, sans-serif;
}
body {
background-color: var(--color-surface);
color: var(--color-ink);
/* iOS bounce-scrolls the whole document behind fixed overlays (drawer,
modal) and shows the white page edge; contain keeps the rubber band
inside the scroller that actually overflowed. */
overscroll-behavior-y: none;
}
/* Mobile browsers zoom the page when a focused input is under ~16px. Every
form control in this app is text-sm (14px), so without this, tapping any
field on iOS Safari jumps the layout. */
@media (max-width: 767px) {
input,
select,
textarea {
font-size: 16px;
}
}
/* Touch devices have no hover, so the grey flash Chrome/Safari paint on tap
is the only press feedback — but their default is a hard blue box. */
@media (hover: none) {
* {
-webkit-tap-highlight-color: color-mix(in srgb, var(--color-brand-500) 12%, transparent);
}
}
/* ── React Flow chrome ─────────────────────────────────────────────
The library ships a generic grey control panel; these bring it onto the
app's own palette and give the buttons a real touch target. */
.orgchart-canvas .react-flow__controls {
gap: 2px;
border-radius: var(--radius);
border: 1px solid var(--color-border);
background: #fff;
box-shadow: 0 2px 10px rgb(45 28 38 / 0.08);
overflow: hidden;
}
.orgchart-canvas .react-flow__controls-button {
width: 32px;
height: 32px;
border: none;
border-bottom: 1px solid var(--color-border-subtle);
background: #fff;
color: var(--color-ink-body);
}
.orgchart-canvas .react-flow__controls-button:last-child {
border-bottom: none;
}
.orgchart-canvas .react-flow__controls-button:hover {
background: var(--color-brand-100);
color: var(--color-brand-700);
}
.orgchart-canvas .react-flow__controls-button svg {
fill: currentColor;
max-width: 14px;
max-height: 14px;
}
.orgchart-canvas .react-flow__minimap {
border-radius: var(--radius);
border: 1px solid var(--color-border);
background: #fff;
box-shadow: 0 2px 10px rgb(45 28 38 / 0.08);
}
/* Node selection has to stay enabled (it is what gives the card pointer
events at all — see GraphOrgChart), but the card carries its own hover and
match styling, so React Flow's default selected/focus outline is noise. */
.orgchart-canvas .react-flow__node.selected,
.orgchart-canvas .react-flow__node:focus,
.orgchart-canvas .react-flow__node:focus-visible {
outline: none;
box-shadow: none;
}
.orgchart-canvas .react-flow__attribution {
background: transparent;
font-size: 10px;
}
.orgchart-canvas .react-flow__attribution a {
color: var(--color-ink-muted);
}
/* The minimap costs more screen than it earns on a phone. */
@media (max-width: 1023px) {
.orgchart-canvas .react-flow__minimap {
display: none;
}
}