Loheide-eu-mitarbeiterplatt.../resources/css/app.css
Friederich Loheide 38f47f98e2
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 14m38s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 14m13s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 11m56s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 11m44s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 56m9s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 1h2m6s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 10m30s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 47s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m16s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 9m13s
Oberfläche Mitarbeiter-App umschaltbar (0.52.0)
Einstellung interface (classic|app) im Erscheinungsbild; data-ui am Wurzelelement,
warme Tokens, Karten mit Schatten, Menüpunkte als Pillen; Startseite dreispaltig.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-29 19:17:23 +00:00

316 lines
9.8 KiB
CSS
Raw Permalink 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.

@import "tailwindcss";
@import "tw-animate-css";
@import "./fonts.css";
@plugin "@tailwindcss/typography";
@custom-variant dark (&:is(.dark *));
/*
* Design-Tokens des Portals.
* Neutrale Flächen, die Markenfarbe nur als Akzent. Die Markenfarbe und ihre
* Abstufungen (--brand, --brand-50 … --brand-950) setzt der Server in
* resources/views/app.blade.php – aus der Einstellung „Erscheinungsbild“.
*/
:root {
--radius: 0.5rem;
--background: #f4f5f7;
--foreground: #1a1d21;
--card: #ffffff;
--card-foreground: #1a1d21;
--popover: #ffffff;
--popover-foreground: #1a1d21;
--muted: #f1f2f4;
--muted-foreground: #5f6670;
--accent: #f1f2f4;
--accent-foreground: #1a1d21;
--secondary: #eef0f2;
--secondary-foreground: #1a1d21;
--border: #e3e5e8;
--input: #d5d8dd;
--destructive: #c62828;
--primary: var(--brand);
--primary-foreground: var(--brand-foreground);
--ring: var(--brand-400);
/* Akzenttext (Links, Kategorien) – auf Weiß gut lesbar. Das Erscheinungsbild
setzt hier bei zu hellen Markenfarben automatisch eine dunklere Stufe. */
--brand-text: var(--brand-600);
/* Zweite Akzentfarbe (optional) – ohne eigene Angabe die Markenfarbe. */
--accent2: var(--brand);
--accent2-foreground: var(--brand-foreground);
--accent2-text: var(--brand-text);
/* Schriften – aus dem Erscheinungsbild, lokal ausgeliefert. */
--font-body: "Inter Variable", ui-sans-serif, system-ui, sans-serif;
--font-heading: var(--font-body);
--brand-soft: var(--brand-50);
--brand-soft-foreground: var(--brand-700);
}
.dark {
--background: #0f1114;
--foreground: #e8eaed;
--card: #171a1e;
--card-foreground: #e8eaed;
--popover: #1c1f24;
--popover-foreground: #e8eaed;
--muted: #22262b;
--muted-foreground: #9aa1ab;
--accent: #22262b;
--accent-foreground: #e8eaed;
--secondary: #22262b;
--secondary-foreground: #e8eaed;
--border: #2a2e34;
--input: #353a41;
--destructive: #ef5350;
--brand-text: var(--brand-300);
--brand-soft: color-mix(in oklab, var(--brand) 22%, transparent);
--brand-soft-foreground: var(--brand-200);
}
@theme inline {
--font-sans: var(--font-body);
--radius-sm: calc(var(--radius) - 4px);
--radius-md: calc(var(--radius) - 2px);
--radius-lg: var(--radius);
--radius-xl: calc(var(--radius) * 1.5);
--radius-2xl: calc(var(--radius) * 2);
/* „Pille“: voll gerundet – außer bei „Eckig“ im Erscheinungsbild (dann 0) */
--radius-pill: calc(var(--radius) * 1000);
--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-brand: var(--brand);
--color-brand-foreground: var(--brand-foreground);
--color-brand-text: var(--brand-text);
--color-accent2: var(--accent2);
--color-accent2-foreground: var(--accent2-foreground);
--color-accent2-text: var(--accent2-text);
--color-brand-soft: var(--brand-soft);
--color-brand-soft-foreground: var(--brand-soft-foreground);
--color-brand-50: var(--brand-50);
--color-brand-100: var(--brand-100);
--color-brand-200: var(--brand-200);
--color-brand-300: var(--brand-300);
--color-brand-400: var(--brand-400);
--color-brand-500: var(--brand-500);
--color-brand-600: var(--brand-600);
--color-brand-700: var(--brand-700);
--color-brand-800: var(--brand-800);
--color-brand-900: var(--brand-900);
--color-brand-950: var(--brand-950);
}
@layer base {
* {
@apply border-border outline-ring/50;
}
/* Sichtbarer Fokus für die Tastatur – auch bei Elementen ohne eigenen Fokusring */
:where(a, button, input, select, textarea, summary, [tabindex]:not([tabindex='-1']), [role='button']):focus-visible {
outline: 2px solid var(--color-ring);
outline-offset: 2px;
}
/* Systemeinstellung „Bewegung reduzieren“ respektieren */
@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;
}
}
body {
@apply bg-background text-foreground antialiased;
font-feature-settings: "cv11", "ss01";
}
h1, h2, h3, h4, .font-heading {
font-family: var(--font-heading);
}
}
/* Fließtext aus dem Editor (Neuigkeiten, Termine) */
.prose {
/* Lange Wörter, Links oder Zeichenketten ohne Leerzeichen umbrechen statt überlaufen */
overflow-wrap: anywhere;
--tw-prose-body: var(--foreground);
--tw-prose-headings: var(--foreground);
--tw-prose-links: var(--brand-text);
--tw-prose-bold: var(--foreground);
--tw-prose-quotes: var(--foreground);
--tw-prose-quote-borders: var(--brand-300);
--tw-prose-bullets: var(--muted-foreground);
--tw-prose-counters: var(--muted-foreground);
--tw-prose-hr: var(--border);
--tw-prose-th-borders: var(--border);
--tw-prose-td-borders: var(--border);
}
/* Anführungszeichen setzt die Redaktion selbst – keine automatischen zusätzlich. */
.prose :where(blockquote p:first-of-type)::before,
.prose :where(blockquote p:last-of-type)::after {
content: none;
}
/* Text in farbigen Boxen des Pagebuilders übernimmt die Farbe der Box. */
.pb-box .prose {
--tw-prose-body: currentColor;
--tw-prose-bold: currentColor;
--tw-prose-links: currentColor;
--tw-prose-bullets: currentColor;
--tw-prose-headings: currentColor;
}
/* Kopfleiste in Markenfarbe oder dunkel (Erscheinungsbild): Tokens nur im Header umstellen. */
header[data-header="brand"] {
--foreground: var(--brand-foreground);
--accent: color-mix(in oklab, var(--brand-foreground) 14%, transparent);
--muted-foreground: color-mix(in oklab, var(--brand-foreground) 75%, transparent);
background: var(--brand);
border-color: transparent;
color: var(--foreground);
}
header[data-header="dark"] {
--foreground: #eef0f2;
--accent: rgb(255 255 255 / 0.1);
--muted-foreground: #a3aab3;
background: #16191d;
border-color: #262a30;
color: var(--foreground);
}
/* Suchfeld in farbiger bzw. dunkler Kopfleiste: halbtransparent statt weiß. */
header[data-header="brand"] input,
header[data-header="dark"] input {
background: color-mix(in oklab, var(--foreground) 14%, transparent);
border-color: transparent;
color: var(--foreground);
}
header[data-header="brand"] input::placeholder,
header[data-header="dark"] input::placeholder {
color: var(--muted-foreground);
}
header[data-header="brand"] .nav-underline,
header[data-header="dark"] .nav-underline {
background: currentColor;
}
/*
* Oberfläche „Mitarbeiter-App“ (Erscheinungsbild → Farben → Oberfläche): warme Flächen,
* Karten mit weichem Schatten statt Rand, Menüpunkte als Pillen. Nur Tokens und wenige
* Regeln – Seiten und Plugins ziehen dadurch von selbst mit.
*/
[data-ui="app"] {
--background: #f7f4ef;
--foreground: #1f1b17;
--card-foreground: #1f1b17;
--popover-foreground: #1f1b17;
--muted: #f3efe9;
--muted-foreground: #6d655c;
--accent: #f1ece5;
--accent-foreground: #1f1b17;
--secondary: #f1ece5;
--secondary-foreground: #1f1b17;
--border: #ebe4da;
--input: #ddd4c8;
--card-shadow: 0 1px 2px rgb(60 40 20 / 0.05), 0 8px 24px rgb(60 40 20 / 0.045);
}
[data-ui="app"].dark {
--background: #13110f;
--foreground: #ece7e1;
--card: #1c1916;
--card-foreground: #ece7e1;
--popover: #221e1b;
--popover-foreground: #ece7e1;
--muted: #26221e;
--muted-foreground: #a69d93;
--accent: #2a2521;
--accent-foreground: #ece7e1;
--secondary: #2a2521;
--secondary-foreground: #ece7e1;
--border: #2f2a25;
--input: #3a342e;
--card-shadow: none;
}
/* Karten: weicher Schatten statt Rand (hell); im Dunkeln trägt die Flächenfarbe */
[data-ui="app"] .bg-card:where(.border) {
border-color: transparent;
box-shadow: var(--card-shadow);
}
[data-ui="app"].dark .bg-card:where(.border) {
border-color: var(--border);
}
/* Kopfleiste: Menüpunkte als Pillen, Suche rund */
[data-ui="app"] header .nav-item {
margin-block: 14px;
padding-inline: 14px;
border-radius: var(--radius-pill);
}
[data-ui="app"] header .nav-item:hover {
background: var(--accent);
}
[data-ui="app"] header .nav-item.is-active {
background: var(--brand-soft);
color: var(--brand-soft-foreground);
}
[data-ui="app"] header[data-header="brand"] .nav-item.is-active,
[data-ui="app"] header[data-header="dark"] .nav-item.is-active {
background: color-mix(in oklab, var(--foreground) 16%, transparent);
color: var(--foreground);
}
[data-ui="app"] .nav-underline {
display: none;
}
[data-ui="app"] header input[type="search"],
[data-ui="app"] header input[role="combobox"] {
border-radius: var(--radius-pill);
background: var(--muted);
border-color: transparent;
box-shadow: none;
}
/* Tabellen in Inhalten scrollen waagerecht statt die Seite zu verbreitern */
.prose table {
display: block;
max-width: 100%;
overflow-x: auto;
}