Design an flessinglabs.com angelehnt

- Schrift Geist / Geist Mono (wie flessinglabs.com) statt Inter
- Dunkelmodus mit den Website-Farben (#05060a / #0b0d14 / #121622, Ränder
  weiß 8 %, Text #f5f7ff, gedämpft #9aa4b5)
- Seitenleiste immer im FlessingLabs-Dunkel mit blauem Lichtschein
- Primärbuttons, Avatar und Akzentleiste im Markenverlauf Cyan → Blau →
  Violett; Buttonverlauf abgedunkelt, damit weißer Text >= 4,5:1 erreicht
- Anmeldeseiten mit Gitter und Lichtschein wie die Website-Startseite
- Radien 10/12/16 px wie auf der Website

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Kundencenter 2026-10-05 13:58:55 +02:00
parent 6dc54786fa
commit 277d038669
2 changed files with 37 additions and 29 deletions

View file

@ -1,27 +1,34 @@
/* Designsystem v3 "KeyControl": dunkles Navy als vertrauenswürdige, dauerhaft sichtbare Seitenleiste,
klares Blau als Primärfarbe, helle Arbeitsfläche mit klar getrennten Bereichen. Hell/Dunkel automatisch
über prefers-color-scheme, zusätzlich manuell über [data-theme] umschaltbar (siehe ThemeToggle). */
/* Designsystem v4 „FlessingLabs“: angelehnt an flessinglabs.com – Schrift Geist, Markenverlauf Cyan → Blau → Violett,
fast schwarze Flächen mit hauchdünnen Rändern. Die Seitenleiste ist immer im FlessingLabs-Dunkel; die Arbeitsfläche
folgt prefers-color-scheme oder der manuellen Wahl über [data-theme] (siehe ThemeToggle).
Primärbuttons nutzen eine abgedunkelte Variante des Markenverlaufs, damit weißer Text überall >= 4,5:1 erreicht. */
:root {
--bg: #f4f6fa; --surface: #ffffff; --surface-2: #eef1f6; --border: #e3e8f0; --text: #172033; --muted: #5b6472;
--accent: #2f62c9; --accent2: #0f766e; --accent-contrast: #ffffff; --focus: #2f62c9; --border-strong: #7a8599;
--bg: #f5f7fb; --surface: #ffffff; --surface-2: #eef1f7; --border: #e3e7ef; --text: #111522; --muted: #5b6475;
--accent: #1a5fd0; --accent2: #0a7ea8; --accent-contrast: #ffffff; --focus: #1a5fd0; --border-strong: #7a8599;
--ok: #17784c; --ok-bg: #e4f5ec; --info: #2257c4; --info-bg: #e7f1fc; --warn: #8a5300; --warn-bg: #fdf1dc; --err: #b52f47; --err-bg: #fbe7ea; --lock: #4b5563; --lock-bg: #eceef2;
--nav-bg: #173568; --nav-text: #dbe4f7; --nav-muted: #8fa4d4; --nav-border: #24417f; --nav-hover: #1f4084; --nav-active-bg: #2a4d93; --nav-active-text: #ffffff;
--shadow-sm: 0 1px 2px rgba(23, 32, 51, .04), 0 1px 1px rgba(23, 32, 51, .04);
--shadow-md: 0 8px 20px rgba(23, 32, 51, .06), 0 2px 6px rgba(23, 32, 51, .04);
--radius: 12px; --radius-lg: 14px; --radius-sm: 8px; --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 40px;
--font: var(--font-inter), system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
--nav-bg: #0b0d14; --nav-text: #c9d1e0; --nav-muted: #7b8599; --nav-border: rgba(255, 255, 255, .08); --nav-hover: #121622; --nav-active-bg: #171c2b; --nav-active-text: #ffffff;
--shadow-sm: 0 1px 2px rgba(17, 21, 34, .05);
--shadow-md: 0 10px 28px rgba(17, 21, 34, .08), 0 2px 6px rgba(17, 21, 34, .04);
--glow: rgba(37, 132, 255, .12);
--brand-gradient: linear-gradient(135deg, #20d4f5 0%, #2584ff 48%, #7028ff 100%);
--brand-btn: linear-gradient(135deg, #0a7ea8 0%, #1a66e0 48%, #6a24f0 100%);
--radius: 12px; --radius-lg: 16px; --radius-sm: 10px; --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 40px;
--font: var(--font-geist), system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
--font-mono: var(--font-geist-mono), ui-monospace, SFMono-Regular, Menlo, monospace;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) {
--bg: #0d1117; --surface: #161b22; --surface-2: #1c2129; --border: #262c36; --text: #e6edf3; --muted: #8b98a5; --accent: #6e8dff; --accent2: #2dd4bf; --accent-contrast: #0d1117; --focus: #6e8dff; --border-strong: #5f6b7c;
--ok: #34d399; --ok-bg: #10281d; --info: #8ab4f8; --info-bg: #16283d; --warn: #f5b84d; --warn-bg: #3a2b0c; --err: #f1798d; --err-bg: #3b1620; --lock: #b7c0cc; --lock-bg: #232932;
--nav-bg: #0a1220; --nav-text: #cdd9f0; --nav-muted: #7c8bb0; --nav-border: #1c2740; --nav-hover: #131f36; --nav-active-bg: #1d3358; --nav-active-text: #ffffff;
--shadow-sm: 0 1px 2px rgba(0, 0, 0, .45); --shadow-md: 0 10px 24px rgba(0, 0, 0, .5), 0 2px 8px rgba(0, 0, 0, .35);
--bg: #05060a; --surface: #0b0d14; --surface-2: #121622; --border: rgba(255, 255, 255, .08); --text: #f5f7ff; --muted: #9aa4b5; --accent: #4d9dff; --accent2: #20d4f5; --accent-contrast: #ffffff; --focus: #20d4f5; --border-strong: #5f6b7c;
--ok: #34d399; --ok-bg: #0d2219; --info: #8ab4f8; --info-bg: #111d33; --warn: #f5b84d; --warn-bg: #2e220a; --err: #f1798d; --err-bg: #2f121a; --lock: #b7c0cc; --lock-bg: #181c26;
--nav-bg: #05060a; --nav-text: #c9d1e0; --nav-muted: #7b8599; --nav-border: rgba(255, 255, 255, .08); --nav-hover: #0f121b; --nav-active-bg: #121622; --nav-active-text: #ffffff;
--shadow-sm: none; --shadow-md: 0 10px 30px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .04);
--glow: rgba(37, 132, 255, .16);
} }
:root[data-theme='dark'] {
--bg: #0d1117; --surface: #161b22; --surface-2: #1c2129; --border: #262c36; --text: #e6edf3; --muted: #8b98a5; --accent: #6e8dff; --accent2: #2dd4bf; --accent-contrast: #0d1117; --focus: #6e8dff; --border-strong: #5f6b7c;
--ok: #34d399; --ok-bg: #10281d; --info: #8ab4f8; --info-bg: #16283d; --warn: #f5b84d; --warn-bg: #3a2b0c; --err: #f1798d; --err-bg: #3b1620; --lock: #b7c0cc; --lock-bg: #232932;
--nav-bg: #0a1220; --nav-text: #cdd9f0; --nav-muted: #7c8bb0; --nav-border: #1c2740; --nav-hover: #131f36; --nav-active-bg: #1d3358; --nav-active-text: #ffffff;
--shadow-sm: 0 1px 2px rgba(0, 0, 0, .45); --shadow-md: 0 10px 24px rgba(0, 0, 0, .5), 0 2px 8px rgba(0, 0, 0, .35);
--bg: #05060a; --surface: #0b0d14; --surface-2: #121622; --border: rgba(255, 255, 255, .08); --text: #f5f7ff; --muted: #9aa4b5; --accent: #4d9dff; --accent2: #20d4f5; --accent-contrast: #ffffff; --focus: #20d4f5; --border-strong: #5f6b7c;
--ok: #34d399; --ok-bg: #0d2219; --info: #8ab4f8; --info-bg: #111d33; --warn: #f5b84d; --warn-bg: #2e220a; --err: #f1798d; --err-bg: #2f121a; --lock: #b7c0cc; --lock-bg: #181c26;
--nav-bg: #05060a; --nav-text: #c9d1e0; --nav-muted: #7b8599; --nav-border: rgba(255, 255, 255, .08); --nav-hover: #0f121b; --nav-active-bg: #121622; --nav-active-text: #ffffff;
--shadow-sm: none; --shadow-md: 0 10px 30px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .04);
--glow: rgba(37, 132, 255, .16);
}
* { box-sizing: border-box; }
html { color-scheme: light dark; }
@ -33,7 +40,7 @@ a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset:
.skip { position: absolute; left: -999px; } .skip:focus { left: var(--s3); top: var(--s3); background: var(--surface); padding: var(--s2) var(--s3); z-index: 10; }
.shell { display: grid; grid-template-columns: 288px minmax(0, 1fr); min-height: 100vh; }
.nav { background: var(--nav-bg); border-right: 1px solid var(--nav-border); padding: var(--s4) var(--s3) var(--s3); display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.nav { background: radial-gradient(420px 260px at 0% 0%, rgba(37, 132, 255, .14), transparent 70%), var(--nav-bg); border-right: 1px solid var(--nav-border); padding: var(--s4) var(--s3) var(--s3); display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brandlink { display: block; padding: 0 var(--s2) var(--s4); text-decoration: none; color: #fff; border-radius: var(--radius-sm); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; }
.brandmark { display: block; width: 34px; height: 34px; flex: none; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(60, 90, 255, .35)); }
@ -44,7 +51,7 @@ a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset:
.nav a:hover { background: var(--nav-hover); color: #fff; }
.nav a[aria-current='page'] { background: var(--nav-active-bg); color: var(--nav-active-text); font-weight: 600; }
.nav a[aria-current='page'] .icon { opacity: 1; }
.nav a[aria-current='page']::before { content: ''; position: absolute; left: -8px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: #7fb0ff; }
.nav a[aria-current='page']::before { content: ''; position: absolute; left: -8px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--brand-gradient); }
.nav .group { margin: 0; }
.nav .group > summary { list-style: none; cursor: pointer; margin: var(--s3) var(--s1) 2px; padding: 6px var(--s2); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--nav-muted); display: flex; align-items: center; justify-content: space-between; border-radius: var(--radius-sm); }
.nav .group > summary::-webkit-details-marker { display: none; }
@ -57,7 +64,7 @@ a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset:
.nav .who > .small { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.nav .who .name { color: #fff; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav .who .role { color: var(--nav-muted); }
.avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--nav-active-bg); color: #fff; font-weight: 700; font-size: .85rem; flex: none; }
.avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand-btn); color: #fff; font-weight: 700; font-size: .85rem; flex: none; }
.navactions { display: flex; gap: var(--s2); padding: 0 var(--s1); }
.nav .btn { background: transparent; border-color: var(--nav-border); color: var(--nav-text); box-shadow: none; flex: 1; }
.nav .btn:hover { background: var(--nav-hover); color: #fff; transform: none; box-shadow: none; }
@ -84,8 +91,8 @@ a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset:
.btn { font: inherit; font-weight: 500; padding: 10px 18px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; min-height: 44px; box-shadow: var(--shadow-sm); }
.btn:hover { background: var(--surface-2); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn.primary { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); font-weight: 600; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.primary { background: var(--brand-btn); color: #fff; border-color: transparent; font-weight: 600; }
.btn.primary:hover { background: var(--brand-btn); filter: brightness(1.1); box-shadow: 0 6px 20px rgba(37, 132, 255, .3); }
.btn.danger { color: var(--err); border-color: var(--err); } .btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; } .btn.small { min-height: 36px; padding: 6px 12px; font-size: .9rem; }
.field { display: grid; gap: 6px; margin-bottom: var(--s3); } .field label { font-weight: 600; font-size: .9rem; }
input, select, textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); min-height: 44px; width: 100%; }
@ -106,16 +113,16 @@ td a { text-decoration: none; font-weight: 500; } td a:hover { text-decoration:
.productgrid { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.productcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s4); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 6px; }
.productcard h3 { margin: 0; font-size: 1.05rem; }
.productcard .id { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82rem; color: var(--muted); }
.productcard .id { font-family: var(--font-mono); font-size: .82rem; color: var(--muted); }
.center { min-height: 100vh; display: grid; place-items: center; padding: var(--s3); } .auth { width: 100%; max-width: 420px; }
body:not(:has(.shell)) { display: flex; flex-direction: column; min-height: 100vh; background: radial-gradient(1200px 500px at 50% -10%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%), var(--bg); }
body:not(:has(.shell)) { display: flex; flex-direction: column; min-height: 100vh; background: radial-gradient(900px 480px at 50% 0%, var(--glow), transparent 70%), linear-gradient(rgba(127, 140, 170, .05) 1px, transparent 1px) 0 0 / 56px 56px, linear-gradient(90deg, rgba(127, 140, 170, .05) 1px, transparent 1px) 0 0 / 56px 56px, var(--bg); }
body:not(:has(.shell)) > .center { flex: 1; min-height: 0; }
body:not(:has(.shell)) .auth.card { box-shadow: var(--shadow-md); padding: var(--s5) var(--s4); }
.site-header { display: flex; justify-content: center; padding: var(--s5) var(--s3) 0; color: var(--text); }
body:has(.shell) > .site-header, body:has(.shell) > .site-footer { display: none; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px var(--s2); padding: var(--s4) var(--s3); font-size: .85rem; color: var(--muted); }
.main > .site-footer { justify-content: flex-start; padding: var(--s5) 0 0; margin-top: auto; border-top: 0; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; word-break: break-all; } .codes { columns: 2; background: var(--surface-2); padding: var(--s3); border-radius: var(--radius-sm); }
code, .mono { font-family: var(--font-mono); font-size: .9em; word-break: break-all; } .codes { columns: 2; background: var(--surface-2); padding: var(--s3); border-radius: var(--radius-sm); }
.icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.18em; }
.impersonate { position: sticky; top: 0; z-index: 100; width: 100%; background: var(--warn-bg); color: var(--warn); border-bottom: 2px solid var(--warn); padding: 8px 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

View file

@ -1,15 +1,16 @@
import type { Metadata } from 'next';
import type { ReactNode } from 'react';
import { Inter } from 'next/font/google';
import { Geist, Geist_Mono } from 'next/font/google';
import './globals.css';
import { SessionProvider } from '@/lib/session';
import { Brand, SiteFooter } from '@/components/Brand';
const inter = Inter({ subsets: ['latin'], variable: '--font-inter', display: 'swap' });
const geist = Geist({ subsets: ['latin'], variable: '--font-geist', display: 'swap' });
const geistMono = Geist_Mono({ subsets: ['latin'], variable: '--font-geist-mono', display: 'swap' });
export const metadata: Metadata = { title: { default: 'Kundencenter', template: '%s · Kundencenter' }, robots: { index: false } };
// Verhindert einen kurzen Blitz der falschen Darstellung: setzt die gespeicherte Wahl (falls vorhanden), bevor die Seite gemalt wird.
const themeInit = "try{var t=localStorage.getItem('kc-theme');if(t==='light'||t==='dark')document.documentElement.setAttribute('data-theme',t);}catch(e){}";
export default function RootLayout({ children }: { children: ReactNode }) {
return <html lang="de" className={inter.variable}><head><script dangerouslySetInnerHTML={{ __html: themeInit }} /></head>
return <html lang="de" className={`${geist.variable} ${geistMono.variable}`}><head><script dangerouslySetInnerHTML={{ __html: themeInit }} /></head>
<body><a className="skip" href="#main">Zum Inhalt springen</a><header className="site-header"><Brand /></header><SessionProvider>{children}</SessionProvider><SiteFooter /></body></html>;
}