Biete in Bild und Text einen Bildanteil, Bild ohne Text und ein Video auf dem Bild an
Deploy Test / test (push) Successful in 5m44s
CI Feature / test (push) Successful in 6m17s
Deploy Test / deploy (push) Successful in 41s

Neue Einstellung "Bildanteil" (Bild zu Text von 1:2 bis 2:1, nur im zweispaltigen Stand ab 900 px; ohne Wert bleibt die bisherige Verteilung). Der Text ist nur noch Pflicht, solange kein Bild gewählt ist; ein Bild darf allein über die ganze Breite stehen. Optional ein Video (refs.video, ein Film aus dem Medienmanager, gewählt über den gemeinsamen Picker): Der für die Website freigegebene Clip spielt auf dem Bild beim Überfahren stumm und per Klick mit Ton wie auf der Medienkarte (CardClip, card-clip.js). Ohne Versionssprung; gespeicherte Seiten bleiben unverändert.

Die Pflichtregel für den Text wird bewusst gelockert: "Bitte einen Text eingeben" gilt nur noch ohne Bild.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
LarsandClaude Sonnet 5.5 committed 2026-11-26 11:02:18 +01:00
1 parent 3cf3e822b8
commit 5233b96c42
15 files changed
+603 -19

No files matched your search

+36
View File
@@ -182,6 +182,28 @@ .lf-bt--height-compact .lf-bt__image { aspect-ratio: 16 / 9; }
.lf-bt--height-spacious .lf-bt__image { aspect-ratio: 4 / 3; }
.lf-bt--without-image { grid-template-columns: minmax(0, 1fr); }
/*
* Bildanteil (Einstellung „Bildanteil“): Verhältnis der Bild- zur Textspalte, nur im zweispaltigen Stand (ab 900 px, siehe
* unten). Ohne Einstellung bleibt die bisherige Verteilung. Die Klassen erscheinen nur mit Bild und Text.
*/
.lf-bt--share-third { --bt-img: 1fr; --bt-txt: 2fr; }
.lf-bt--share-two_fifths { --bt-img: 2fr; --bt-txt: 3fr; }
.lf-bt--share-half { --bt-img: 1fr; --bt-txt: 1fr; }
.lf-bt--share-three_fifths { --bt-img: 3fr; --bt-txt: 2fr; }
.lf-bt--share-two_thirds { --bt-img: 2fr; --bt-txt: 1fr; }
/* Ohne Text steht das Bild allein über die ganze Breite (Bildanteil entfällt). */
.lf-bt--without-text { grid-template-columns: minmax(0, 1fr); }
/*
* Video auf dem Bild (CardClip, resources/js/card-clip.js, Bausteine der Premium-Karte): Der Clip liegt über dem Bild, mit
* demselben Ausschnitt und denselben Ecken, und blendet erst mit dem ersten Bild ein; bis dahin bleibt das Bild stehen.
*/
.lf-bt__media > .lf-pc__clip {
object-position: var(--bt-focus-x) var(--bt-focus-y);
border-radius: clamp(0.78rem, 1.8cqi, 1.3rem);
}
/* Schmale Plätze: vollständiger Text und Links, keine erzwungene Höhe. */
@container lf-bt (max-width: 539.99px) {
.lf-bt__actions { display: grid; grid-template-columns: minmax(0, 1fr); }
@@ -218,6 +240,20 @@ @container lf-bt (min-width: 900px) {
.lf-bt--image-left .lf-bt__media { order: -1; }
.lf-bt__image { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; max-block-size: none; aspect-ratio: auto; }
.lf-bt--without-image { grid-template-columns: minmax(0, 1fr); }
/* Bildanteil: erste Spur ist die linke; bei „Bild links“ ist das die Bildspalte, sonst die Textspalte. */
.lf-bt--shared.lf-bt--image-left { grid-template-columns: minmax(0, var(--bt-img)) minmax(0, var(--bt-txt)); }
.lf-bt--shared.lf-bt--image-right { grid-template-columns: minmax(0, var(--bt-txt)) minmax(0, var(--bt-img)); }
/*
* Bild ohne Text: Eine Spalte über die volle Breite. Das Bild bestimmt hier seine Höhe selbst (Seitenverhältnis nach
* der Höhen-Einstellung), statt eine Fläche neben dem Text zu füllen.
*/
.lf-bt--without-text { grid-template-columns: minmax(0, 1fr); }
.lf-bt--without-text .lf-bt__media { min-block-size: 0; }
.lf-bt--without-text .lf-bt__image { position: static; inset: auto; block-size: auto; max-block-size: none; aspect-ratio: 21 / 9; }
.lf-bt--without-text.lf-bt--height-compact .lf-bt__image { aspect-ratio: 3 / 1; }
.lf-bt--without-text.lf-bt--height-spacious .lf-bt__image { aspect-ratio: 16 / 9; }
}
@media (prefers-reduced-motion: reduce) {