Sprint 8: modernes Design-System für die React-PWA
CI / backend-tests (push) Successful in 54s
CI / frontend-build (push) Successful in 1m43s

Gemeinsames Stylesheet (Tokens, Karten, Buttons, Badges, Formulare) plus
AppShell (Kopfzeile mit Navigation/Logout) statt Inline-Styles je Screen.
Kein UI-Framework als neue Abhängigkeit - schlankes eigenes CSS, damit
Build/Deploy-Weg unverändert bleibt.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L85hmKbvX7Cqkq47KnQhFt
This commit is contained in:
2026-09-04 00:38:02 +02:00
co-authored by Claude Sonnet 5
parent a97886defd
commit e3ed5e0f28
8 changed files with 598 additions and 162 deletions
+323
View File
@@ -0,0 +1,323 @@
:root {
--color-bg: #f4f6f8;
--color-surface: #ffffff;
--color-border: #e2e5e9;
--color-text: #1a1f24;
--color-text-muted: #66707a;
--color-primary: #0b5394;
--color-primary-hover: #084174;
--color-danger: #c62828;
--color-danger-bg: #fdecea;
--color-warning: #b8860b;
--color-warning-bg: #fff8e1;
--color-success: #2e7d32;
--color-success-bg: #e8f5e9;
--color-muted-bg: #eef0f2;
--radius: 10px;
--shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* {
box-sizing: border-box;
}
html,
body,
#root {
height: 100%;
}
body {
margin: 0;
font-family: var(--font-sans);
background: var(--color-bg);
color: var(--color-text);
-webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
margin: 0 0 0.75rem;
line-height: 1.2;
}
p {
margin: 0 0 0.75rem;
}
/* -- Layout ------------------------------------------------------------- */
.app-shell {
min-height: 100%;
display: flex;
flex-direction: column;
}
.topbar {
background: var(--color-surface);
border-bottom: 1px solid var(--color-border);
padding: 0.75rem 1.25rem;
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
position: sticky;
top: 0;
z-index: 10;
}
.topbar-brand {
font-weight: 700;
font-size: 1.1rem;
color: var(--color-primary);
text-decoration: none;
}
.topbar-nav {
display: flex;
align-items: center;
gap: 0.5rem;
flex-wrap: wrap;
}
.topbar-nav a {
color: var(--color-text-muted);
text-decoration: none;
padding: 0.4rem 0.7rem;
border-radius: var(--radius);
font-size: 0.95rem;
}
.topbar-nav a:hover,
.topbar-nav a.active {
background: var(--color-muted-bg);
color: var(--color-text);
}
.page {
flex: 1;
width: 100%;
max-width: 640px;
margin: 0 auto;
padding: 1.25rem;
}
.page-narrow {
max-width: 380px;
}
/* -- Cards ---------------------------------------------------------------- */
.card {
background: var(--color-surface);
border: 1px solid var(--color-border);
border-radius: var(--radius);
box-shadow: var(--shadow);
padding: 1rem;
margin-bottom: 0.75rem;
}
.card-list {
list-style: none;
padding: 0;
margin: 0;
display: flex;
flex-direction: column;
gap: 0.6rem;
}
.card-link {
display: block;
text-decoration: none;
color: inherit;
}
.card-link:hover {
border-color: var(--color-primary);
}
.card-title-row {
display: flex;
justify-content: space-between;
align-items: center;
gap: 0.5rem;
}
.card-subtitle {
font-size: 0.85rem;
color: var(--color-text-muted);
margin-top: 0.15rem;
}
/* -- Forms ------------------------------------------------------------ */
.field {
display: flex;
flex-direction: column;
gap: 0.3rem;
margin-bottom: 1rem;
}
.field label {
font-size: 0.9rem;
color: var(--color-text-muted);
font-weight: 600;
}
.input,
select.input,
textarea.input {
width: 100%;
font-size: 1rem;
padding: 0.65rem 0.75rem;
border: 1px solid var(--color-border);
border-radius: var(--radius);
background: var(--color-surface);
color: var(--color-text);
font-family: inherit;
}
.input:focus,
select.input:focus {
outline: none;
border-color: var(--color-primary);
box-shadow: 0 0 0 3px rgba(11, 83, 148, 0.15);
}
.input-search {
font-size: 1.05rem;
padding: 0.85rem 1rem;
}
/* -- Buttons ------------------------------------------------------------ */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.4rem;
font-size: 1rem;
font-weight: 600;
padding: 0.65rem 1.1rem;
border-radius: var(--radius);
border: 1px solid transparent;
cursor: pointer;
transition: background-color 0.15s ease, opacity 0.15s ease;
font-family: inherit;
}
.btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.btn-primary {
background: var(--color-primary);
color: #fff;
}
.btn-primary:hover:not(:disabled) {
background: var(--color-primary-hover);
}
.btn-secondary {
background: var(--color-surface);
color: var(--color-text);
border-color: var(--color-border);
}
.btn-secondary:hover:not(:disabled) {
background: var(--color-muted-bg);
}
.btn-danger {
background: var(--color-surface);
color: var(--color-danger);
border-color: var(--color-danger);
}
.btn-danger:hover:not(:disabled) {
background: var(--color-danger-bg);
}
.btn-block {
width: 100%;
}
/* -- Badges / Alerts ------------------------------------------------------ */
.badge {
display: inline-flex;
align-items: center;
font-size: 0.8rem;
font-weight: 700;
padding: 0.2rem 0.6rem;
border-radius: 999px;
white-space: nowrap;
}
.badge-neutral {
background: var(--color-muted-bg);
color: var(--color-text-muted);
}
.badge-warning {
background: var(--color-warning-bg);
color: var(--color-warning);
}
.badge-success {
background: var(--color-success-bg);
color: var(--color-success);
}
.badge-danger {
background: var(--color-danger-bg);
color: var(--color-danger);
}
.alert {
border-radius: var(--radius);
padding: 0.75rem 1rem;
margin-bottom: 1rem;
font-size: 0.95rem;
}
.alert-warning {
background: var(--color-warning-bg);
color: #6b5200;
}
.alert-danger {
background: var(--color-danger-bg);
color: var(--color-danger);
}
.text-muted {
color: var(--color-text-muted);
}
.stack {
display: flex;
flex-direction: column;
gap: 0.6rem;
}
.row {
display: flex;
gap: 0.6rem;
align-items: center;
}
.row-between {
display: flex;
justify-content: space-between;
align-items: center;
gap: 0.6rem;
}
.section {
margin-bottom: 2rem;
}