Files
laraundfelix/resources/css/components.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

300 lines
6.8 KiB
CSS

/*
* Gemeinsame Grundkomponenten (Standardmuster, nur mit Tokens eingefärbt). Sie werden von Website,
* Anmeldung und Mitgliederbereich verwendet und können später gezielt veredelt werden.
*/
/* Container */
.ui-container {
width: min(var(--container-standard), 100% - 2 * var(--gutter));
margin-inline: auto;
}
.ui-container-wide {
width: min(var(--container-wide), 100% - 2 * var(--gutter));
}
/* Schaltflächen und Schaltflächen-Links: Haupt, Neben, Text. Mindestgröße 44 px. */
.button,
.ui-button {
display: inline-flex;
align-items: center;
justify-content: center;
gap: var(--space-2);
min-height: var(--touch-target);
padding: 0.55rem 1.25rem;
border: 2px solid transparent;
border-radius: var(--radius-pill);
background: var(--color-action);
color: var(--color-action-text);
font: inherit;
font-weight: 700;
line-height: 1.2;
text-decoration: none;
cursor: pointer;
transition: background-color 0.15s ease, border-color 0.15s ease;
}
.button:hover,
.ui-button:hover {
background: var(--color-action-hover);
color: var(--color-action-text);
text-decoration: none;
}
/* Markenschaltfläche: Gelb mit dunkelblauer Schrift (11:1), für die wichtigste Handlung im Seiteneinstieg. */
.button-brand {
background: var(--lf-yellow);
color: var(--lf-navy);
}
.button-brand:hover {
background: #ffe05c;
color: var(--lf-navy);
}
.button-secondary,
.ui-button-secondary {
background: transparent;
border-color: var(--color-border-strong);
color: var(--color-action-secondary-text);
}
.button-secondary:hover,
.ui-button-secondary:hover {
background: transparent;
border-color: currentColor;
color: var(--color-action-secondary-text);
}
.button-quiet,
.ui-button-quiet {
background: transparent;
color: var(--color-link);
padding-inline: var(--space-2);
text-decoration: underline;
}
.button-quiet:hover,
.ui-button-quiet:hover {
background: transparent;
color: var(--color-link-hover);
}
.button[disabled],
.ui-button[disabled],
.ui-button[aria-disabled='true'] {
background: var(--color-disabled-surface);
border-color: transparent;
color: var(--color-disabled);
cursor: not-allowed;
}
/* Formulare: sichtbare Beschriftung, Fehlertext am Feld. */
.form {
display: grid;
gap: var(--space-4);
max-width: 28rem;
}
.form label,
.ui-field {
display: grid;
gap: var(--space-1);
font-weight: 600;
}
.form input,
.form select,
.form textarea,
.ui-input {
font: inherit;
font-weight: 400;
min-height: var(--touch-target);
padding: 0.5rem 0.75rem;
border: 1px solid var(--color-border-strong);
border-radius: var(--radius-small);
background: var(--lf-white);
color: var(--lf-ink);
width: 100%;
}
.form input[aria-invalid='true'],
.ui-input[aria-invalid='true'] {
border-color: var(--color-danger);
}
.form button {
width: fit-content;
}
.form button:not(.button-quiet):not(.button-secondary) {
display: inline-flex;
align-items: center;
min-height: var(--touch-target);
padding: 0.55rem 1.25rem;
border: 0;
border-radius: var(--radius-pill);
background: var(--color-action);
color: var(--color-action-text);
font: inherit;
font-weight: 700;
cursor: pointer;
}
.check {
display: grid;
grid-template-columns: auto 1fr;
align-items: start;
gap: var(--space-2);
font-weight: 400;
}
.check input {
width: 1.25rem;
height: 1.25rem;
min-height: 0;
margin-top: 0.2rem;
}
.ui-field-error {
color: var(--color-danger);
font-weight: 400;
font-size: var(--text-small);
}
/* Statusanzeigen: Farbe, Symbol und Text tragen gemeinsam (nie Farbe allein). */
.status,
.errors,
.ui-notice {
display: block;
border-left: 4px solid currentColor;
border-radius: var(--radius-small);
padding: var(--space-3) var(--space-4);
margin: 0 0 var(--space-5);
max-width: var(--measure);
}
.status,
.ui-notice-success {
background: var(--color-success-surface);
color: var(--color-success);
}
.errors,
.ui-notice-danger {
background: var(--color-danger-surface);
color: var(--color-danger);
}
.ui-notice-warning {
background: var(--color-warning-surface);
color: var(--color-warning);
}
.ui-notice-info {
background: var(--color-info-surface);
color: var(--color-info);
}
.ui-notice-title {
font-weight: 700;
}
.errors ul {
margin: var(--space-2) 0 0;
padding-left: 1.2rem;
}
/* Karten-Grundkomponente */
.ui-card,
.empty {
background: var(--color-surface-raised);
border: 1px solid var(--color-border);
border-radius: var(--radius-card);
padding: var(--space-5);
}
.empty {
max-width: var(--measure);
}
/* Dialog (natives dialog-Element) */
.ui-dialog {
border: 0;
border-radius: var(--radius-panel);
padding: var(--space-6);
max-width: min(36rem, 100% - 2rem);
background: var(--lf-white);
color: var(--lf-ink);
box-shadow: var(--shadow-raised);
}
.ui-dialog::backdrop {
background: rgb(3 37 81 / 55%);
}
/* Kennzeile über Überschriften */
.ui-flag {
display: inline-flex;
align-items: center;
gap: var(--space-2);
font-size: 0.8125rem;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--color-text-muted);
}
.ui-flag::before {
content: '';
width: 1.6rem;
height: 4px;
border-radius: 4px;
background: var(--color-accent);
}
/* Themensignatur: Nummer und Name tragen die Unterscheidung; Symbol erst nach Freigabe. */
.ui-theme-signature {
display: inline-flex;
align-items: center;
gap: var(--space-2);
font-weight: 600;
}
.ui-theme-signature-mark {
display: inline-grid;
place-items: center;
min-width: 2rem;
height: 2rem;
border-radius: var(--radius-small);
border: 1px solid var(--color-border-strong);
background: var(--theme-tint, var(--color-surface-subtle));
color: var(--lf-navy);
font-family: var(--font-display);
font-weight: 800;
}
.ui-theme-signature[data-theme='1'] { --theme-tint: var(--color-theme-1); }
.ui-theme-signature[data-theme='2'] { --theme-tint: var(--color-theme-2); }
.ui-theme-signature[data-theme='3'] { --theme-tint: var(--color-theme-3); }
.ui-theme-signature[data-theme='4'] { --theme-tint: var(--color-theme-4); }
.ui-theme-signature[data-theme='5'] { --theme-tint: var(--color-theme-5); }
/* Redaktionelle Hinweise in der Vorschau (öffentlich nie sichtbar). */
.preview-note,
.preview-banner {
background: var(--color-warning-surface);
color: var(--color-warning);
border-left: 4px solid currentColor;
border-radius: var(--radius-small);
font-size: var(--text-small);
padding: var(--space-2) var(--space-3);
margin: var(--space-2) 0 0;
}
.preview-banner {
margin: 0;
border-radius: 0;
text-align: center;
}