Integriere die Premium-Karten v1.7 als Themen-, Medien- und Programmkarte.
CI Feature / test (push) Successful in 46s
Deploy Test / test (push) Successful in 39s
Deploy Test / deploy (push) Successful in 29s

- Drei Widget-Arten (topic_card, media_card, program_card) auf gemeinsamer Basis, eine Karte je Platz im
  bestehenden Abschnittsraster; kein zweites Kartenraster.
- Titel, Kurzbeschreibung, Art, Zusatzangaben und Linkziel kommen zur Laufzeit aus Thema, Inhaltselement
  bzw. Programm/Modul; im CMS stehen nur Kennungen, Bild, Bildausschnitt, Beschriftung und Hinweis.
- Medienkarten sind öffentlich nur als Bestandteil eines öffentlichen Programms (PublicMaterialReader),
  Module nur in der Redaktionsvorschau; keine Bibliotheksbilder, kein Preis, keine Kaufaktion.
- Gleiche Höhe je Zeile über die gemeinsame Höhe „fill“; Raster 1 + 1 + 2 und 2 + 1 + 1 ergänzt.
- Tests zu Raster- und Widgetliste bewusst um die neuen Raster und Arten erweitert.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
LarsandClaude Opus 5.5 committed 2026-11-18 13:25:06 +01:00
1 parent cca069be48
commit 127ea86817
16 files changed
+1579 -3

No files matched your search

@@ -0,0 +1,266 @@
/*
* Premium-Karten (Themen-, Medien-, Programmkarte) – übernommen aus
* docs/Brand-UI-Kit/13_premium_karten_v1.7_entwurf/components/lf-premium-card.css (Entwurf zur visuellen Freigabe).
*
* Anpassungen an das Repository:
* - Eine Karte je Platz im bestehenden Abschnittsraster. Das Beispielraster des Kits (.lf-pc-grid, .lf-pc-section,
* Spannweiten-Klassen) wird bewusst nicht übernommen; Spalten und Abstände bestimmt der Abschnitt.
* - Breitenumschaltung bei 520 px über den Platz-Container „slot“ (eine Karte füllt ihren Platz), nicht über das Fenster.
* - Gleiche Höhe je Zeile über die gemeinsame Höhe „fill“ (widgets.css), Aktion dann am unteren Rand.
* - Schriften und Farben ausschließlich über vorhandene Tokens (tokens.css); keine neuen Schriften.
* - Die Karte hat ihre eigene helle Fläche und setzt dafür die hellen Bedeutungswerte, auch in dunklen Abschnitten.
* - Kein line-clamp, keine feste Höhe: lange Titel und Texte brechen um.
*/
.lf-pc,
.lf-pc * {
box-sizing: border-box;
}
.lf-pc {
--color-heading: var(--lf-navy);
--color-text: var(--lf-ink);
--color-text-muted: var(--lf-ink-muted);
--color-border: var(--lf-line);
--color-focus: var(--lf-focus);
--pc-surface: var(--lf-white);
--pc-subtle: var(--lf-cream);
--pc-action: var(--lf-green-deep);
--pc-action-hover: #2f6407;
--pc-action-text: var(--lf-white);
--pc-accent: var(--lf-yellow);
--pc-ratio: 16 / 9;
display: grid;
grid-template-columns: minmax(0, 1fr);
grid-template-rows: auto 1fr;
min-inline-size: 0;
inline-size: 100%;
color: var(--color-text);
background: var(--pc-surface);
border: 1px solid var(--color-border);
border-radius: var(--radius-panel);
box-shadow: var(--shadow-raised);
font: 400 1rem/1.55 var(--font-reading);
overflow-wrap: anywhere;
}
.lf-pc--square { --pc-ratio: 1 / 1; }
.lf-pc--portrait { --pc-ratio: 3 / 4; }
.lf-pc--landscape { --pc-ratio: 16 / 9; }
.lf-pc--without-visual { grid-template-rows: 1fr; }
/* Gleiche Höhe je Zeile (Höhe „An die Zeile angleichen“): Karte füllt den gestreckten Platz. */
.widget-height-fill > .lf-pc {
flex: 1 1 auto;
}
.lf-pc__visual {
position: relative;
min-inline-size: 0;
align-self: start;
margin: 10px 10px 0;
}
.lf-pc__image {
display: block;
inline-size: 100%;
block-size: auto;
aspect-ratio: var(--pc-ratio);
object-fit: cover;
object-position: var(--pc-focus-x, 66%) var(--pc-focus-y, 45%);
border-radius: var(--radius-card);
background: var(--pc-subtle);
}
.lf-pc--contain .lf-pc__image {
object-fit: contain;
padding: 8px;
}
.lf-pc__badge {
position: absolute;
inset: 12px auto auto 12px;
max-inline-size: calc(100% - 24px);
padding: 5px 10px;
border-radius: var(--radius-pill);
color: var(--lf-navy);
background: var(--lf-white);
font-size: 0.75rem;
font-weight: 600;
line-height: 1.45;
}
.lf-pc__body {
display: flex;
flex-direction: column;
align-items: start;
min-inline-size: 0;
padding: clamp(20px, 4.5cqi, 32px);
gap: 12px;
}
.lf-pc__kind {
margin: 0;
color: var(--pc-action);
font-size: 0.75rem;
font-weight: 600;
letter-spacing: 0.06em;
text-transform: uppercase;
}
.lf-pc .lf-pc__title {
margin: 0;
color: var(--color-heading);
font: 800 clamp(1.35rem, 4.6cqi, 1.75rem) / 1.18 var(--font-display);
letter-spacing: -0.025em;
text-wrap: balance;
}
.lf-pc__summary {
margin: 0;
color: var(--color-text-muted);
}
.lf-pc__meta {
display: flex;
flex-wrap: wrap;
gap: 6px 14px;
list-style: none;
padding: 0;
margin: 0;
color: var(--color-text-muted);
font-size: 0.875rem;
}
.lf-pc__meta li {
min-inline-size: 0;
margin: 0;
}
.lf-pc__footer {
margin-block-start: auto;
padding-block-start: 10px;
inline-size: 100%;
display: flex;
flex-direction: column;
gap: 12px;
align-items: start;
}
.lf-pc__note {
margin: 0;
color: var(--color-text-muted);
font-size: 0.8125rem;
}
.lf-pc__cta {
display: inline-flex;
align-items: center;
justify-content: center;
min-block-size: 44px;
max-inline-size: 100%;
padding: 10px 18px;
border: 1px solid transparent;
border-radius: var(--radius-pill);
background: var(--pc-action);
color: var(--pc-action-text);
font-weight: 600;
font-size: 0.9375rem;
line-height: 1.4;
text-decoration: none;
text-align: center;
white-space: normal;
transition: background-color 0.15s ease;
}
.lf-pc__cta:visited { color: var(--pc-action-text); }
.lf-pc__cta:hover { background: var(--pc-action-hover); color: var(--pc-action-text); }
.lf-pc__cta:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 4px; }
/* Redaktionell: ruhige Textverlinkung mit gelber Unterstreichung. */
.lf-pc--editorial .lf-pc__cta {
padding-inline: 0;
background: transparent;
color: var(--color-heading);
border-radius: 4px;
text-align: start;
text-decoration: underline;
text-decoration-color: var(--pc-accent);
text-decoration-thickness: 3px;
text-underline-offset: 7px;
}
.lf-pc--editorial .lf-pc__cta:visited { color: var(--color-heading); }
.lf-pc--editorial .lf-pc__cta:hover { background: transparent; color: var(--color-heading); text-decoration-color: currentColor; }
/* Medien und Material: Metadatenband, grüne Aktion. */
.lf-pc--media .lf-pc__meta {
padding-block: 10px;
inline-size: 100%;
border-block: 1px solid var(--color-border);
}
/* Programm und Modul: Navy-Tafel mit Art und gelbem Akzent, auch ohne Foto vollständig; Navy-Aktion. */
.lf-pc__panel {
display: flex;
flex-direction: column;
justify-content: space-between;
gap: 20px;
min-block-size: 140px;
margin: 10px 10px 0;
padding: 24px;
border-radius: var(--radius-card);
background: var(--lf-navy);
color: var(--lf-white);
}
.lf-pc__panel-label {
font: 800 1.6rem / 1.15 var(--font-display);
}
.lf-pc__panel-accent {
display: block;
inline-size: 72px;
block-size: 10px;
color: var(--pc-accent);
}
.lf-pc--catalog .lf-pc__kind { color: var(--color-heading); }
.lf-pc--catalog .lf-pc__cta { background: var(--lf-navy); color: var(--lf-white); }
.lf-pc--catalog .lf-pc__cta:visited { color: var(--lf-white); }
.lf-pc--catalog .lf-pc__cta:hover { background: var(--lf-navy-deep); color: var(--lf-white); }
/* Nur in der Redaktionsvorschau sichtbare Karte: gestrichelter Rand als Hinweis. */
.lf-pc--internal { border-style: dashed; }
/* Ab 520 px Kartenbreite (= Platzbreite) Bild oder Tafel neben dem Text, außer in der Variante „Bild immer oben“. */
@container slot (min-width: 520px) {
.lf-pc:not(.lf-pc--without-visual, .lf-pc--stacked) {
grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
grid-template-rows: 1fr;
}
.lf-pc:not(.lf-pc--stacked) .lf-pc__visual {
margin: 10px 0 10px 10px;
align-self: center;
display: flex;
}
.lf-pc:not(.lf-pc--stacked) .lf-pc__panel {
margin: 10px 0 10px 10px;
min-block-size: 220px;
}
.lf-pc--contain:not(.lf-pc--stacked) .lf-pc__visual {
align-items: center;
background: var(--pc-subtle);
border-radius: var(--radius-card);
}
.lf-pc__body { padding: clamp(22px, 4cqi, 36px); }
.lf-pc .lf-pc__title { font-size: clamp(1.45rem, 3.4cqi, 2rem); }
}
@media (prefers-reduced-motion: reduce) {
.lf-pc__cta { transition: none; }
}