Nach der fünften Sichtung auf luf-test: - Einheitliche Größenstufen (small, medium, large, xlarge = 2,5 / 3,5 / 5 / 7 rem) als Tokens --lf-symbol-* und als HeadingAccent::STEPS. Überschrift, Einstieg, Bild und Text, Handlungsaufruf, Fließtext und Merkmalszeile verwenden dieselben Schlüssel und Werte. Die früheren Stufen Groß und Sehr groß neben dem Absatz waren zur Breite skaliert (bis 7 und 10 rem) und sind jetzt fest 5 und 7 rem; neu ist Klein. - Einstieg und Bild und Text: Größe (symbol_size) und senkrechte Ausrichtung (symbol_align) neben dem ganzen Textblock, auch auf Navy und auf dem Navy-Einstieg (weiße Scheibe). - Fließtext: Symbol neben dem Text, Vorgabe Mittel. - Handlungsaufruf: zusätzlich der Pinselstrich unter der Überschrift. - Ausrichtung "Oben": die Korrektur der Oberkante rechnet mit der tatsächlichen Zeilenhöhe je Widget (Einstieg 1,06, Bild und Text 1,14, Fließtext Source Sans 3). Am gerenderten Bild gemessen liegen Symbol und Schrift bei allen Widgets auf etwa einen Pixel genau auf einer Linie. - HeadingAccent::lead() bündelt, was eine Ansicht für Symbol und Absatz braucht. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
332 lines
10 KiB
CSS
332 lines
10 KiB
CSS
/*
|
||
* Markensymbole und Material-Tags (Brand-Kit 16_Lara-Felix-Kleingrafiken).
|
||
* Nur Tokens aus tokens.css. Symbole sind dekorativ (aria-hidden); Tags tragen immer Text.
|
||
*/
|
||
/*
|
||
* Die Symbole werden beim Einbetten auf ihre sichtbare Zeichnung zugeschnitten (App\Support\Brand\Symbols::bounds) und
|
||
* tragen Breite und Höhe dieser Zeichnung als --sym-w und --sym-h. --sym-s ist die Kantenlänge des Quadrats, in das die
|
||
* Zeichnung passen soll; die längere Seite füllt es, die kürzere folgt dem Seitenverhältnis. So gibt es keinen
|
||
* unsichtbaren Rand mehr, und die Oberkante der Zeichnung sitzt exakt an der Oberkante des Elements. Im Fließtext steht
|
||
* die Zeichnung auf Höhe der Mitte der Großbuchstaben.
|
||
*/
|
||
.brand-symbol {
|
||
--sym-s: 1.5em;
|
||
--sym-bw: calc(var(--sym-s) * min(1, var(--sym-w, 1) / var(--sym-h, 1)));
|
||
--sym-bh: calc(var(--sym-s) * min(1, var(--sym-h, 1) / var(--sym-w, 1)));
|
||
display: inline-block;
|
||
inline-size: var(--sym-bw);
|
||
block-size: var(--sym-bh);
|
||
flex: none;
|
||
vertical-align: calc(0.34em - var(--sym-bh) / 2);
|
||
overflow: visible;
|
||
}
|
||
|
||
.brand-tag {
|
||
--brand-tag-bg: var(--lf-tag-combo-bg);
|
||
--brand-tag-ink: var(--lf-tag-combo-ink);
|
||
--brand-tag-glyph: var(--brand-tag-ink);
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 0.4em;
|
||
max-inline-size: 100%;
|
||
padding: 0.28em 0.8em 0.28em 0.55em;
|
||
border-radius: var(--radius-pill);
|
||
background: var(--brand-tag-bg);
|
||
color: var(--brand-tag-ink);
|
||
font-size: 0.875rem;
|
||
font-weight: 700;
|
||
line-height: 1.25;
|
||
overflow-wrap: anywhere;
|
||
}
|
||
|
||
.brand-tag__glyph {
|
||
inline-size: 1.45em;
|
||
block-size: 1.45em;
|
||
flex: none;
|
||
color: var(--brand-tag-glyph);
|
||
}
|
||
|
||
.brand-tag--film {
|
||
--brand-tag-bg: var(--lf-tag-film-bg);
|
||
--brand-tag-ink: var(--lf-navy);
|
||
--brand-tag-glyph: var(--lf-tag-film-glyph);
|
||
}
|
||
|
||
.brand-tag--uebung {
|
||
--brand-tag-bg: var(--lf-tag-exercise-bg);
|
||
--brand-tag-ink: var(--lf-tag-exercise-ink);
|
||
}
|
||
|
||
.brand-tag--pdf {
|
||
--brand-tag-bg: var(--lf-tag-pdf-bg);
|
||
--brand-tag-ink: var(--lf-tag-pdf-ink);
|
||
--brand-tag-glyph: var(--lf-tag-pdf-glyph);
|
||
}
|
||
|
||
.brand-tag--paket {
|
||
--brand-tag-bg: var(--lf-tag-package-bg);
|
||
--brand-tag-ink: var(--lf-tag-package-ink);
|
||
}
|
||
|
||
/*
|
||
* Gestaltung im Text (CMS): Symbol vor der Überschrift, Pinselstrich, Merkmalszeile.
|
||
* Die Symbole haben feste Markenfarben mit viel Navy; auf dunklen Flächen stehen sie deshalb auf einer weißen Scheibe,
|
||
* sonst verschwänden die Linien.
|
||
*/
|
||
.lf-heading-symbol {
|
||
--sym-s: 1.2em;
|
||
margin-inline-end: 0.35em;
|
||
}
|
||
|
||
.lf-heading-brush {
|
||
display: block;
|
||
inline-size: 7rem;
|
||
max-inline-size: 60%;
|
||
block-size: auto;
|
||
margin-block: 0.2rem var(--space-2);
|
||
}
|
||
|
||
.scope-dark .lf-heading-symbol,
|
||
.scope-accent .lf-heading-symbol,
|
||
.lf-bt--navy .lf-heading-symbol,
|
||
.lf-hero--editorial-solid .lf-heading-symbol,
|
||
.scope-dark .lf-features__symbol,
|
||
.scope-accent .lf-features__symbol,
|
||
.scope-dark .lf-lead__symbol,
|
||
.scope-accent .lf-lead__symbol,
|
||
.lf-bt--navy .lf-lead__symbol,
|
||
.lf-hero--editorial-solid .lf-lead__symbol {
|
||
--sym-chip: calc(var(--sym-s) * 0.2);
|
||
box-sizing: content-box;
|
||
/* Die Scheibe ist immer rund: Das Quadrat um die Zeichnung ist Kantenlänge + 2 × Rand, unabhängig vom Seitenverhältnis. */
|
||
padding-inline: calc((var(--sym-s) - var(--sym-bw)) / 2 + var(--sym-chip));
|
||
padding-block: calc((var(--sym-s) - var(--sym-bh)) / 2 + var(--sym-chip));
|
||
border-radius: 50%;
|
||
background: var(--lf-white);
|
||
}
|
||
|
||
.scope-dark .lf-heading-symbol,
|
||
.scope-accent .lf-heading-symbol,
|
||
.lf-bt--navy .lf-heading-symbol,
|
||
.lf-hero--editorial-solid .lf-heading-symbol {
|
||
vertical-align: calc(0.34em - (var(--sym-s) + 2 * var(--sym-chip)) / 2);
|
||
}
|
||
|
||
.lf-features {
|
||
display: grid;
|
||
grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
|
||
gap: var(--space-5) var(--space-4);
|
||
margin: 0;
|
||
padding: 0;
|
||
list-style: none;
|
||
}
|
||
|
||
/* Ein einzelnes Merkmal wird nicht über die ganze Breite gezogen; zentriert oder rechts steht auch die Spalte so. */
|
||
.lf-features--1 {
|
||
grid-template-columns: minmax(0, 28rem);
|
||
}
|
||
|
||
.lf-features--1.lf-features--center { justify-content: center; }
|
||
.lf-features--1.lf-features--right { justify-content: end; }
|
||
|
||
.lf-features__item {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: stretch;
|
||
gap: var(--space-2);
|
||
min-inline-size: 0;
|
||
}
|
||
|
||
/*
|
||
* Ausrichtung der Merkmale (Einstellung „Ausrichtung“): links (Vorgabe), zentriert, rechts. Texte folgen text-align; das
|
||
* Symbol und die auf Lesebreite begrenzten Absätze rücken über align-self und automatische Ränder mit.
|
||
*/
|
||
.lf-features--center .lf-features__item { text-align: center; }
|
||
.lf-features--center .lf-features__symbol { align-self: center; }
|
||
.lf-features--center .lf-features__text { margin-inline: auto; }
|
||
|
||
.lf-features--right .lf-features__item { text-align: right; }
|
||
.lf-features--right .lf-features__symbol { align-self: flex-end; }
|
||
.lf-features--right .lf-features__text { margin-inline-start: auto; }
|
||
|
||
/* Größe der Symbole (Einstellung „Größe der Symbole“): Kantenlänge des Quadrats, in das die Zeichnung passt. */
|
||
.lf-features--size-small .lf-features__symbol { --sym-s: var(--lf-symbol-small); }
|
||
.lf-features--size-large .lf-features__symbol { --sym-s: var(--lf-symbol-large); }
|
||
.lf-features--size-xlarge .lf-features__symbol { --sym-s: var(--lf-symbol-xlarge); }
|
||
|
||
/*
|
||
* Trennstrich (Einstellung „Trennstrich“): Jedes Merkmal trägt links und oben einen Strich in der Mitte der Lücke. Die Liste
|
||
* schneidet alles außerhalb ihres Rahmens ab; so entfallen die Striche am linken Rand und in der ersten Zeile von selbst,
|
||
* egal wie viele Spalten die Breite zulässt. Der Rand von 0,375 rem außen bleibt für Fokusrahmen frei (ausgeglichen durch
|
||
* den negativen Außenabstand).
|
||
*/
|
||
.lf-features--lines {
|
||
overflow: hidden;
|
||
overflow: clip;
|
||
margin: -0.375rem;
|
||
padding: 0.375rem;
|
||
}
|
||
|
||
.lf-features--lines .lf-features__item {
|
||
position: relative;
|
||
}
|
||
|
||
.lf-features--lines .lf-features__item::before,
|
||
.lf-features--lines .lf-features__item::after {
|
||
content: "";
|
||
position: absolute;
|
||
pointer-events: none;
|
||
}
|
||
|
||
.lf-features--lines .lf-features__item::before {
|
||
inset-block: 0;
|
||
inset-inline-start: calc(var(--space-4) / -2);
|
||
border-inline-start: 1px solid var(--color-border);
|
||
}
|
||
|
||
.lf-features--lines .lf-features__item::after {
|
||
inset-inline: 0;
|
||
inset-block-start: calc(var(--space-5) / -2);
|
||
border-block-start: 1px solid var(--color-border);
|
||
}
|
||
|
||
/*
|
||
* Alle Symbole einer Zeile bekommen dieselbe Höhe, damit die Titel auf einer Linie stehen; die Zeichnung sitzt oben links
|
||
* (preserveAspectRatio xMinYMin), die Oberkante bleibt bündig. Auf dunklem Grund sorgt die runde Scheibe selbst für gleiche
|
||
* Höhen (siehe oben), dort gilt die Höhe der Zeichnung.
|
||
*/
|
||
.lf-features__symbol {
|
||
--sym-s: 3.5rem;
|
||
block-size: var(--sym-s);
|
||
flex: none;
|
||
overflow: visible;
|
||
}
|
||
|
||
.scope-dark .lf-features__symbol,
|
||
.scope-accent .lf-features__symbol {
|
||
block-size: var(--sym-bh);
|
||
}
|
||
|
||
.lf-features__title {
|
||
margin: 0;
|
||
color: var(--color-heading);
|
||
font-size: var(--text-h3);
|
||
font-weight: 700;
|
||
line-height: 1.25;
|
||
overflow-wrap: anywhere;
|
||
}
|
||
|
||
.lf-features__text {
|
||
margin: 0;
|
||
max-inline-size: var(--measure);
|
||
overflow-wrap: anywhere;
|
||
}
|
||
|
||
.lf-features__more {
|
||
margin: var(--space-1) 0 0;
|
||
}
|
||
|
||
/* Link der Merkmale: kleiner Textlink (Vorgabe) oder Pille. */
|
||
.lf-features__link {
|
||
font-weight: 700;
|
||
overflow-wrap: anywhere;
|
||
}
|
||
|
||
.lf-features__link--text {
|
||
color: var(--color-link);
|
||
font-size: 0.9375rem;
|
||
text-decoration: underline;
|
||
text-underline-offset: 0.2em;
|
||
}
|
||
|
||
.lf-features__link--text:hover {
|
||
color: var(--color-link-hover, var(--color-link));
|
||
}
|
||
|
||
.lf-features__link--pill {
|
||
display: inline-block;
|
||
padding: 0.5em 1.1em;
|
||
border-radius: var(--radius-pill);
|
||
background: var(--color-action);
|
||
color: var(--color-action-text);
|
||
font-size: 0.9375rem;
|
||
line-height: 1.25;
|
||
text-decoration: none;
|
||
}
|
||
|
||
.lf-features__link--pill:hover {
|
||
background: var(--color-action-hover);
|
||
}
|
||
|
||
.lf-features__link:focus-visible {
|
||
outline: 3px solid var(--color-focus, var(--lf-focus));
|
||
outline-offset: 3px;
|
||
}
|
||
|
||
/*
|
||
* Symbol links neben dem ganzen Absatz (Einstellung „Größe des Symbols“ = Mittel, Groß, Sehr groß): Überschrift, Text
|
||
* und Schaltfläche stehen in einer Spalte rechts. Die senkrechte Lage (oben, Mitte, unten) wählt die Einstellung
|
||
* „Ausrichtung des Symbols“. Bei wenig Platz im Slot steht das Symbol darüber, links ausgerichtet.
|
||
*/
|
||
.lf-lead {
|
||
display: flex;
|
||
align-items: flex-start;
|
||
gap: var(--space-4);
|
||
}
|
||
|
||
.lf-lead--top { align-items: flex-start; }
|
||
.lf-lead--center { align-items: center; }
|
||
/* Unten: Unterkante des Symbols auf der Grundlinie der letzten Textzeile; ältere Browser nehmen die Unterkante des Blocks. */
|
||
.lf-lead--bottom {
|
||
align-items: flex-end;
|
||
align-items: last baseline;
|
||
}
|
||
|
||
.cta .lf-lead--bottom { align-items: flex-end; }
|
||
|
||
.lf-lead__symbol {
|
||
--sym-s: var(--lf-symbol-medium);
|
||
flex: none;
|
||
overflow: visible;
|
||
}
|
||
|
||
.lf-lead--small .lf-lead__symbol { --sym-s: var(--lf-symbol-small); }
|
||
.lf-lead--large .lf-lead__symbol { --sym-s: var(--lf-symbol-large); }
|
||
.lf-lead--xlarge .lf-lead__symbol { --sym-s: var(--lf-symbol-xlarge); }
|
||
|
||
.lf-lead__body {
|
||
flex: 1 1 0;
|
||
min-inline-size: 0;
|
||
}
|
||
|
||
.lf-lead__body > :first-child {
|
||
margin-block-start: 0;
|
||
}
|
||
|
||
/*
|
||
* Oben: Die Überschrift hat über den Großbuchstaben Luft (halber Zeilenabstand plus der Abstand zwischen Oberkante der
|
||
* Zeile und Oberkante der Großbuchstaben). Dieser Abstand wird hochgezogen, damit die Oberkante der Buchstaben bündig
|
||
* mit der Oberkante des Symbols abschließt. Bei Nunito reichen die Großbuchstaben 0,4 em unter die Hälfte des
|
||
* Zeilenabstands (Zeilenhöhe 1,15, am gerenderten Bild nachgemessen): Verschiebung = 0,4 em − Zeilenabstand / 2.
|
||
*/
|
||
.lf-lead--top .lf-lead__body > :is(h1, h2):first-child {
|
||
margin-block-start: calc((0.4 - var(--lead-lh, var(--leading-heading, 1.15)) / 2) * 1em);
|
||
}
|
||
|
||
/* Überschriften mit eigener Zeilenhöhe: Einstieg 1,06, Bild und Text 1,14. */
|
||
.lf-lead__body > .lf-hero__title { --lead-lh: 1.06; }
|
||
.lf-lead__body > .lf-bt__headline { --lead-lh: 1.14; }
|
||
|
||
/* Fließtext ohne Überschrift: dasselbe für den ersten Absatz in Source Sans 3 (Zeilenhöhe 1,55, nachgemessen: 0,459 em). */
|
||
.lf-lead--top .lf-lead__body > .prose > p:first-child {
|
||
margin-block-start: calc((0.459 - var(--leading-body, 1.55) / 2) * 1em);
|
||
}
|
||
|
||
@container slot (max-width: 24rem) {
|
||
.lf-lead,
|
||
.cta .lf-lead--bottom {
|
||
flex-direction: column;
|
||
align-items: flex-start;
|
||
}
|
||
}
|