Files
laraundfelix/resources/css/tokens.css
T
LarsandClaude Opus 5.5 33aaf64024
CI Feature / test (push) Successful in 36s
Deploy Test / test (push) Successful in 32s
Deploy Test / deploy (push) Successful in 32s
Stabilisiere den Website-Rahmen und veredele die zentralen Widgets.
Designiteration 1 auf Grundlage des Brand-UI-Kits (vorläufige Werte):
- Kopfzeile mit konstanter Box und zwei Zuständen (großzügig, kompakt
  beim Scrollen) ohne Layoutsprung; Navigation bricht nie um, sondern
  verkürzt erst den Kontozugang und schaltet dann in den Menümodus.
  Scrollbalken-Reserve, gemeinsames Breitenmodell (Lesebereich,
  Standard, Breit, Vollbreite), Wortmarke und Inhalt fluchten.
- Fokusfalle im Mobilmenü schließt auch den Weg von der
  Menü-Schaltfläche in den Inhalt.
- Fußbereich mit Grundzeile für rechtliche Links und grünem Bogen.
- Markenakzente (Unterstreichung, Strahlen, Bogen) als Komponenten.
- Hero: Varianten Markenbühne (randlos) und Editorial, zweite
  Schaltfläche, Bildausschnitt. Bild und Text: Bildformat und
  Ausschnitt. Karten: hervorgehobene erste Karte, ganze Karte klickbar.
  Programmkarten mit Markentafel. Alles additiv, ohne neue Version.

Testanpassungen: Die Website-Wortmarke trägt jetzt brand-lockup, die
erste Hero-Schaltfläche button-brand (beabsichtigte Gestaltung).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 06:43:13 +01:00

190 lines
7.0 KiB
CSS
Raw 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.
/*
* Lara & Felix – gemeinsames Designsystem, Ebene 1 und 2 (ADR-36, Website-Zielkonzept 7.1).
*
* VORLÄUFIG: Die Markenwerte stammen aus docs/Brand-UI-Kit/02_design_tokens (Entwurf vom 15.11.2026,
* aus den Originalmotiven abgeleitet, nicht freigegeben). Schriften nach Website-Zielkonzept 7.2
* (Empfehlung, nicht freigegeben). Eine Freigabe ändert nur diese Datei.
*
* Regeln:
* - Komponenten und Widgets verwenden ausschließlich Bedeutungswerte (--color-text, --color-surface, …).
* - Markengelb nie als Textfarbe auf hellem Grund; Markengrün #5b8625 nur für Flächen ohne Text.
* - Abschnittsflächen (.section-bg-*) und Komponenten mit eigener Fläche setzen die Bedeutungswerte neu.
*/
@theme {
--font-sans: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
--font-display: 'Nunito', 'Trebuchet MS', 'Segoe UI', system-ui, sans-serif;
}
:root {
/* Ebene 1: Markenwerte (vorläufig) */
--lf-navy: #032551;
--lf-navy-deep: #01244c;
--lf-green: #5b8625;
--lf-green-deep: #3b7b09;
--lf-yellow: #fcd10a;
--lf-cream: #f7f6f2;
--lf-white: #ffffff;
--lf-ink: #15243a;
/* Ergänzende UI-Werte (eigene Ableitung, Kontrast geprüft) */
--lf-ink-muted: #3e4c5c;
--lf-line: #d5ddd6;
--lf-line-strong: #8a9a92;
--lf-focus: #1769aa;
--lf-green-tint: #e8f0de;
--lf-yellow-tint: #fff4d6;
/* Ebene 2: Bedeutungswerte (heller Grund) */
--color-text: var(--lf-ink);
--color-text-muted: var(--lf-ink-muted);
--color-heading: var(--lf-navy);
--color-link: var(--lf-navy);
--color-link-hover: var(--lf-green-deep);
--color-surface: var(--lf-white);
--color-surface-subtle: var(--lf-cream);
--color-surface-raised: var(--lf-white);
--color-border: var(--lf-line);
--color-border-strong: var(--lf-line-strong);
--color-focus: var(--lf-focus);
--color-accent: var(--lf-yellow);
--color-action: var(--lf-green-deep);
--color-action-hover: #2f6407;
--color-action-text: var(--lf-white);
--color-action-secondary-text: var(--lf-navy);
--color-success: #1b5e32;
--color-success-surface: #e5f4ec;
--color-warning: #6b4a00;
--color-warning-surface: var(--lf-yellow-tint);
--color-danger: #8e1b24;
--color-danger-surface: #fbe9ea;
--color-info: var(--lf-navy);
--color-info-surface: #e8eef6;
--color-disabled: #6b7682;
--color-disabled-surface: #eceeec;
/* Themensignaturen der fünf Themenbereiche: vorbereitet, Tönungen und Symbole sind nicht freigegeben.
Bis zur Freigabe tragen Nummer und Name die Unterscheidung; alle Tönungen sind neutral. */
--color-theme-1: var(--color-surface-subtle);
--color-theme-2: var(--color-surface-subtle);
--color-theme-3: var(--color-surface-subtle);
--color-theme-4: var(--color-surface-subtle);
--color-theme-5: var(--color-surface-subtle);
/* Typografie (Website-Zielkonzept 7.2: Fließtext 17 → 18 px, H1 34 → 52 px) */
--font-reading: var(--font-sans);
--text-small: 0.9375rem;
--text-body: clamp(1.0625rem, 1.03rem + 0.15vw, 1.125rem);
--text-lede: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
--text-h3: clamp(1.25rem, 1.16rem + 0.4vw, 1.375rem);
--text-h2: clamp(1.625rem, 1.35rem + 1.2vw, 2.125rem);
--text-h1: clamp(2.125rem, 1.6rem + 2.4vw, 3.25rem);
--leading-body: 1.6;
--leading-heading: 1.15;
--measure: 70ch;
/* Abstände (Grundmaß 4 px) */
--space-1: 0.25rem;
--space-2: 0.5rem;
--space-3: 0.75rem;
--space-4: 1rem;
--space-5: 1.5rem;
--space-6: 2rem;
--space-7: 3rem;
--space-8: 4rem;
--space-9: 6rem;
/* Rundungen und Schatten */
--radius-small: 8px;
--radius-card: 14px;
--radius-panel: 22px;
--radius-pill: 999px;
--shadow-raised: 0 10px 28px rgb(3 37 81 / 8%);
/*
* Breitenmodell (Designiteration 1). Vier semantische Stufen; die Abschnittsbreiten des Editors
* (narrow, standard, wide, full) zeigen auf sie. Hintergründe reichen immer über die ganze Fensterbreite,
* nur der Inhalt wird begrenzt.
* - Lesebereich: lange Texte, Formulare
* - Standard: Grundraster der Website; Kopfzeile, Fußbereich und Seiteninhalt fluchten hier
* - Breit: bildstarke Kompositionen auf großen Bildschirmen
* - Vollbreite: Inhalt bis an den Seitenrand (mit Randabstand)
*/
--gutter: clamp(1rem, 4vw, 2.5rem);
--grid-gap: clamp(1.25rem, 2.5vw, 2.25rem);
--width-reading: 44rem;
--width-standard: 82rem;
--width-wide: 96rem;
--container-narrow: var(--width-reading);
--container-standard: var(--width-standard);
--container-wide: var(--width-wide);
/* Linker Rand des Grundrasters innerhalb einer fensterbreiten Fläche (ohne 100vw, daher ohne Scrollbalken-Fehler). */
--frame-inset: max(var(--gutter), (100% - var(--width-standard)) / 2);
/*
* Kopfzeile: zwei Zustände bei unveränderter Box (kein Layoutsprung). Die Kopfzeile ist
* --header-height-initial hoch und klebt mit negativem Abstand, sodass beim Scrollen nur die
* kompakte Leiste (--header-height) sichtbar bleibt. Auf Smartphones sind beide Werte gleich.
*/
--header-height: 4rem;
--header-height-initial: 4rem;
--touch-target: 2.75rem;
}
@media (min-width: 75rem) {
:root {
--header-height: 4.5rem;
--header-height-initial: 6.5rem;
}
}
/* Dunkle Fläche: helle Schrift, gelber Fokus (Navy/Weiß 15:1). */
.scope-dark {
--color-text: #f4f6f8;
--color-text-muted: #d3dde8;
--color-heading: var(--lf-white);
--color-link: var(--lf-white);
--color-link-hover: var(--lf-yellow);
--color-surface: var(--lf-navy);
--color-border: rgb(255 255 255 / 28%);
--color-border-strong: rgb(255 255 255 / 55%);
--color-focus: var(--lf-yellow);
--color-action: var(--lf-yellow);
--color-action-hover: #ffe05c;
--color-action-text: var(--lf-navy);
--color-action-secondary-text: var(--lf-white);
}
/* Markenakzent: dunkles Grün mit weißer Schrift (5,2:1). */
.scope-accent {
--color-text: var(--lf-white);
--color-text-muted: #eef4e8;
--color-heading: var(--lf-white);
--color-link: var(--lf-white);
--color-link-hover: var(--lf-yellow);
--color-surface: var(--lf-green-deep);
--color-border: rgb(255 255 255 / 35%);
--color-border-strong: rgb(255 255 255 / 65%);
--color-focus: var(--lf-yellow);
--color-action: var(--lf-white);
--color-action-hover: var(--lf-cream);
--color-action-text: var(--lf-navy);
--color-action-secondary-text: var(--lf-white);
}
/* Heller Grund, zum Beispiel Karten auf dunklen Abschnitten. */
.scope-light {
--color-text: var(--lf-ink);
--color-text-muted: var(--lf-ink-muted);
--color-heading: var(--lf-navy);
--color-link: var(--lf-navy);
--color-link-hover: var(--lf-green-deep);
--color-border: var(--lf-line);
--color-border-strong: var(--lf-line-strong);
--color-focus: var(--lf-focus);
--color-action: var(--lf-green-deep);
--color-action-hover: #2f6407;
--color-action-text: var(--lf-white);
--color-action-secondary-text: var(--lf-navy);
}