Files
laraundfelix/resources/css/tokens.css
T
LarsandClaude Sonnet 5.5 0022fd50cb
CI Feature / test (push) Successful in 3m52s
Füge Markensymbole und Material-Tags des Brand-Kits hinzu
Stufe 1 und 2 des Vorschlags in KIT_ERGAENZUNG_v2.1_kleingrafiken.md.
- 16 Symbole inline (x-brand.symbol): Titel, ID und feste Größe werden beim
  Einbetten entfernt, aria-hidden, unbekannte Namen sind ein Fehler
- Material-Tags als HTML/CSS (x-brand.tag) mit Zeichen und echtem Text,
  neue Tokens --lf-tag-*, Kontraste gemessen
- MaterialTag ordnet nach Ausgabeklasse und Kennung der redaktionellen Art
  zu, nicht nach Beschriftung; unklare Fälle bleiben Text
- Eingebaut in die öffentliche Premium-Karte für Medien
- brand-rays/-underline und der Mitgliederbereich bleiben unverändert
  (siehe Dokument, Abschnitt 1a)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 11:52:21 +01:00

290 lines
14 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;
/* Material-Tags (Brand-Kit 16). Text je Paar mit mindestens 4,5:1, Zeichen mit mindestens 3:1 gegen die Fläche. */
--lf-tag-film-bg: #cce4fb;
--lf-tag-film-glyph: #145c9a;
--lf-tag-exercise-bg: #d9eacd;
--lf-tag-exercise-ink: #28580f;
--lf-tag-combo-bg: #e3eecf;
--lf-tag-combo-ink: #28580f;
--lf-tag-pdf-bg: #ffdad9;
--lf-tag-pdf-ink: #781a24;
--lf-tag-pdf-glyph: #a8212b;
--lf-tag-package-bg: #e8d9f4;
--lf-tag-package-ink: #4f2d68;
/* 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);
/* Schriftvariablen der Kit-Komponenten (Brand-UI-Kit v1.6) zeigen auf die gemeinsamen Schriften. */
--lf-font-display: var(--font-display);
--lf-font-ui: var(--font-reading);
--lf-muted: #46556b;
/*
* Größenskala (ADR-44). Zehn Basiswerte in Pixel als Zahl; alles Weitere leitet dieses Stylesheet daraus ab.
* Die Verwaltung („Website → Design → Größen“) überschreibt abweichende Werte mit einem Inline-Stylesheet
* (App\Domain\Design\DesignSettings::styleTag) nach diesem Stylesheet. Die Standardwerte hier und in
* App\Domain\Design\DesignScale müssen gleich sein (Test DesignScaleTest). Ableitungsregeln stehen nur hier.
* Umgerechnet wird in rem, damit die Textgröße des Browsers wirkt. Trefferflächen (--touch-target) und die
* Untergrenze 16 px für Fließtext sind nicht einstellbar.
*/
--ds-body: 17;
--ds-h1: 40;
--ds-h2: 28;
--ds-display: 52;
--ds-space: 8;
--ds-section: 48;
--ds-card-pad: 20;
--ds-header: 80;
--ds-width: 1312;
--ds-media: 320;
/*
* Fließende Interpolation: --fl ist 0 bei 22,5 rem (360 px) Fensterbreite und 1 rem bei 75 rem (1200 px). Ein Wert
* zwischen Minimum und Maximum (Zahlen in px) lautet clamp(min, min + (max − min) / 16 × --fl, max).
*/
--fl: calc((100vw - 22.5rem) / 52.5);
/* Typografie. Minimum auf kleinen Bildschirmen, Maximum ab 75 rem. Überschriften bleiben stets größer als der Text. */
--font-reading: var(--font-sans);
--n-body-min: max(16, calc(var(--ds-body) - 1));
--n-h3-max: min(calc(var(--ds-body) * 1.18), calc(var(--ds-h2) * 0.8));
--n-h3-min: min(calc(var(--ds-body) * 1.06), var(--n-h3-max));
--n-h2-min: max(calc(var(--n-body-min) * 1.15), calc(var(--ds-h2) * 0.79));
--n-h1-min: max(calc(var(--n-h2-min) * 1.15), calc(var(--ds-h1) * 0.7));
--n-display-min: max(calc(var(--n-h1-min) * 1.1), calc(var(--ds-display) * 0.62));
--text-body: clamp(calc(var(--n-body-min) / 16 * 1rem), calc(var(--n-body-min) / 16 * 1rem + (var(--ds-body) - var(--n-body-min)) / 16 * var(--fl)), calc(var(--ds-body) / 16 * 1rem));
--text-small: max(0.875rem, calc(var(--ds-body) * 0.85 / 16 * 1rem));
--text-button: max(0.9375rem, calc(var(--ds-body) * 0.88 / 16 * 1rem));
--text-lede: clamp(calc(var(--n-body-min) * 1.06 / 16 * 1rem), calc(var(--n-body-min) * 1.06 / 16 * 1rem + (var(--ds-body) * 1.12 - var(--n-body-min) * 1.06) / 16 * var(--fl)), calc(var(--ds-body) * 1.12 / 16 * 1rem));
--text-h3: clamp(calc(var(--n-h3-min) / 16 * 1rem), calc(var(--n-h3-min) / 16 * 1rem + (var(--n-h3-max) - var(--n-h3-min)) / 16 * var(--fl)), calc(var(--n-h3-max) / 16 * 1rem));
--text-h2: clamp(calc(var(--n-h2-min) / 16 * 1rem), calc(var(--n-h2-min) / 16 * 1rem + (var(--ds-h2) - var(--n-h2-min)) / 16 * var(--fl)), calc(var(--ds-h2) / 16 * 1rem));
--text-h1: clamp(calc(var(--n-h1-min) / 16 * 1rem), calc(var(--n-h1-min) / 16 * 1rem + (var(--ds-h1) - var(--n-h1-min)) / 16 * var(--fl)), calc(var(--ds-h1) / 16 * 1rem));
--text-display: clamp(calc(var(--n-display-min) / 16 * 1rem), calc(var(--n-display-min) / 16 * 1rem + (var(--ds-display) - var(--n-display-min)) / 16 * var(--fl)), calc(var(--ds-display) / 16 * 1rem));
--leading-body: 1.55;
--leading-heading: 1.15;
--measure: 70ch;
/* Abstände: Vielfache des Basisabstands (bei 8 px: 4, 8, 12, 16, 24, 32, 48, 64, 96 px) */
--space-1: calc(var(--ds-space) * 0.5 / 16 * 1rem);
--space-2: calc(var(--ds-space) / 16 * 1rem);
--space-3: calc(var(--ds-space) * 1.5 / 16 * 1rem);
--space-4: calc(var(--ds-space) * 2 / 16 * 1rem);
--space-5: calc(var(--ds-space) * 3 / 16 * 1rem);
--space-6: calc(var(--ds-space) * 4 / 16 * 1rem);
--space-7: calc(var(--ds-space) * 6 / 16 * 1rem);
--space-8: calc(var(--ds-space) * 8 / 16 * 1rem);
--space-9: calc(var(--ds-space) * 12 / 16 * 1rem);
/*
* Innenabstände von Flächen. --pad-card: Karten (kleine Bildschirme 80 %). --pad-surface: Obergrenze für große
* Flächen (Einstieg, Bild und Text, Handlungsaufruf); diese wachsen mit dem Platz (cqi) zwischen beiden Werten.
*/
--pad-card: clamp(calc(var(--ds-card-pad) * 0.8 / 16 * 1rem), calc(var(--ds-card-pad) * 0.8 / 16 * 1rem + var(--ds-card-pad) * 0.2 / 16 * var(--fl)), calc(var(--ds-card-pad) / 16 * 1rem));
--pad-surface: calc(var(--ds-card-pad) * 2.4 / 16 * 1rem);
/* 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);
/*
* Stufen der Abschnittsabstände (oben, unten) und des Widget-Abstands im Abschnittsraster (SectionStyle::SPACINGS),
* abgeleitet aus --ds-section (Normal auf Desktop; Kompakt zwei Drittel, Großzügig das Anderthalbfache) und
* --ds-space. Auf kleinen Bildschirmen jeweils kleiner.
*/
--section-space-none: 0px;
--section-space-compact: clamp(calc(var(--ds-section) * 0.5 / 16 * 1rem), calc(var(--ds-section) * 0.5 / 16 * 1rem + var(--ds-section) * 0.1667 / 16 * var(--fl)), calc(var(--ds-section) * 0.6667 / 16 * 1rem));
--section-space-normal: clamp(calc(var(--ds-section) * 0.75 / 16 * 1rem), calc(var(--ds-section) * 0.75 / 16 * 1rem + var(--ds-section) * 0.25 / 16 * var(--fl)), calc(var(--ds-section) / 16 * 1rem));
--section-space-large: clamp(calc(var(--ds-section) / 16 * 1rem), calc(var(--ds-section) / 16 * 1rem + var(--ds-section) * 0.5 / 16 * var(--fl)), calc(var(--ds-section) * 1.5 / 16 * 1rem));
--section-gap-none: 0px;
--section-gap-compact: clamp(calc(var(--ds-space) * 1.5 / 16 * 1rem), calc(var(--ds-space) * 1.5 / 16 * 1rem + var(--ds-space) * 0.5 / 16 * var(--fl)), calc(var(--ds-space) * 2 / 16 * 1rem));
--section-gap-normal: clamp(calc(var(--ds-space) * 2 / 16 * 1rem), calc(var(--ds-space) * 2 / 16 * 1rem + var(--ds-space) * 1.5 / 16 * var(--fl)), calc(var(--ds-space) * 3.5 / 16 * 1rem));
--section-gap-large: clamp(calc(var(--ds-space) * 3 / 16 * 1rem), calc(var(--ds-space) * 3 / 16 * 1rem + var(--ds-space) * 2 / 16 * var(--fl)), calc(var(--ds-space) * 5 / 16 * 1rem));
--grid-gap: var(--section-gap-normal);
--width-reading: 44rem;
--width-standard: calc(var(--ds-width) / 16 * 1rem);
--width-wide: calc(var(--ds-width) * 1.17 / 16 * 1rem);
/*
* Mediengröße. --media-h: Höhe des Bildes neben dem Text (Bild und Text, Variante Standard). Die Dichtestufen der
* Größenvarianten (Einstieg: kompakt, normal, groß; Bild und Text: kompakt, normal, großzügig) skalieren über
* --dens (Kompakt 0,75, Standard 1, Großzügig 1,3) Bildhöhe, Mindesthöhe und Innenabstände.
*/
--media-h: calc(var(--ds-media) / 16 * 1rem);
--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: calc(var(--ds-header) * 0.8 / 16 * 1rem);
--header-height-initial: calc(var(--ds-header) * 0.8 / 16 * 1rem);
--touch-target: 2.75rem;
/*
* Mitgliederbereich (ADR-45): Mindestbreite einer Inhaltskarte im Raster. Leitet sich aus der Bildhöhe ab,
* damit die Kartenbreite mit der Größenskala wächst und schrumpft (bei 320 px Bildhöhe 256 px). Keine eigenen Basiswerte.
*/
--card-min: calc(var(--ds-media) * 0.8 / 16 * 1rem);
}
@media (min-width: 75rem) {
:root {
--header-height-initial: calc(var(--ds-header) / 16 * 1rem);
}
}
/* Dichtestufen der Größenvarianten (gespeicherte Schlüssel bleiben compact, normal, large bzw. spacious). */
.lf-hero,
.lf-bt {
--dens: 1;
}
.lf-hero--height-compact,
.lf-bt--height-compact {
--dens: 0.75;
}
.lf-hero--height-large,
.lf-bt--height-spacious {
--dens: 1.3;
}
/* 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);
}