Layoutvertrag (ADR-38) in der bestehenden Registry: Jede Widget-Art erklärt zulässige Rasterbreiten (supportedUnits), Höhen aus einem gemeinsamen Vokabular (heights, gespeichert als settings.height), Darstellungsmodi und Verhalten bei wenig Platz. Unzulässige Breiten werden beim Speichern verständlich abgewiesen; Höhe „fill“ streckt den Handlungsaufruf auf die Abschnittszeile. Premium-Widgets nach Brand-UI-Kit v1.6: - hero Version 2: photo_split/editorial_solid, Höhen compact/normal/ large, Label, Überschriftenebene, Akzent, Bildfokus in Prozent, zwei Schaltflächen; nur 3 oder 4 Einheiten. Upgrade aus Version 1. - image_text Version 3: Fläche cream/clear/navy, Höhen compact/normal/ spacious, Label, zwei Schaltflächen, Bildfokus; 1 bis 4 Einheiten. Upgrade aus Version 2 (format entfällt, Fokus in Prozent). - Kit-CSS ersetzt das bisherige Hero- und Bild-und-Text-CSS; der Randlos-Mechanismus der Designiteration 1 entfällt. Editor: Reiter Inhalt/Medien/Darstellung aus der Registry, Auswahl- knöpfe mit Symbolen, Schieberegler für den Bildfokus und eine Live- Vorschau im Dialog mit demselben Renderer in wählbarer Platzbreite. Tests bewusst angepasst: Einstieg braucht jetzt 3 oder 4 Einheiten (vorher Mindestbreite 2), image_text ist Version 3, Klassen der neuen Ansichten; die Hero-/Bild-Tests der Designiteration 1 sind durch CmsPremiumWidgetsTest ersetzt. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
195 lines
7.2 KiB
CSS
195 lines
7.2 KiB
CSS
/*
|
||
* 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);
|
||
|
||
/* 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;
|
||
|
||
/* 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);
|
||
}
|