Files
laraundfelix/resources/css/tokens.css
LarsandClaude Opus 5.5 480d55989b
CI Feature / test (push) Failing after 20s
Führe Abschnitte mit Raster, gemeinsames Designsystem und globales Website-Gerüst ein.
- Seite → Abschnitte → Plätze → Widgets: sechs Raster mit höchstens vier Einheiten,
  Hintergrund, Breite, Abstand und Trenner als Aufzählungswerte; je Platz ein Widget
  aus dem bestehenden Register. Neue Spalte page_revisions.sections (ergänzend);
  blocks erhält weiterhin alle Widgets in Lesereihenfolge als Rollback-Fassung.
- Widgets erhalten Mindest- und Vorzugsbreite; Darstellung über Container-Abfragen.
- Editor: Abschnitts-Repeater mit grafischer Rasterauswahl, Plätzen im Rasterverhältnis,
  breiter Arbeitsfläche, kompakten Vorschauen ohne Bildlaufleiste, Meldungen mit
  Abschnitt und Platz; Rasterwechsel entfernt nie ein Widget. Seite duplizieren.
- Designsystem: Marken- und Bedeutungs-Tokens (vorläufig), gemeinsame Grundkomponenten,
  Nunito/Source Sans 3 lokal; Mitgliederbereich nutzt dieselben Tokens und die Wortmarke.
- Kopfzeile, mobile Navigation, Untermenü (parent_id, ergänzend), Fußbereichsgruppen,
  vorbereiteter Warenkorbzugang (abgeschaltet). Öffentliche Seiten gleich für alle Besucher.
- cms:revert-published als Wiederherstellungsweg vor einem Code-Rollback.

Die Editor-Tests der ersten Iteration sind bewusst auf den neuen Formularzustand
(sections statt blocks) umgestellt; ihre Prüfungen gelten unverändert für die Widgets.
Der Vorschautest erwartet keine anmeldeabhängige Kopfzeile mehr (ADR-32).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 20:34:06 +01:00

169 lines
5.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.
/*
* 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%);
/* Layoutmaße */
--gutter: clamp(1rem, 4vw, 2rem);
--grid-gap: clamp(1.25rem, 2.5vw, 2rem);
--container-narrow: 45rem;
--container-standard: 75rem;
--container-wide: 90rem;
--header-height: 4rem;
--touch-target: 2.75rem;
}
@media (min-width: 75rem) {
:root {
--header-height: 4.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);
}