Führe einen gemeinsamen Layoutvertrag ein und integriere die Premium-Widgets.
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>
This commit is contained in:
1 parent
3cdb36e7a3
commit
0bfb53463a
38 files changed
+1755
-856
No files matched your search
@@ -10,6 +10,9 @@
|
||||
@import './site.css';
|
||||
@import './sections.css';
|
||||
@import './widgets.css';
|
||||
/* Premium-Widgets nach Brand-UI-Kit v1.6; ersetzen das frühere Hero- und Bild-und-Text-CSS. */
|
||||
@import './components/lf-hero.css';
|
||||
@import './components/lf-bild-text.css';
|
||||
|
||||
/*
|
||||
* Mitgliederbereich: eigene Anwendungsoberfläche mit eigener Navigation. Er verwendet die gemeinsamen
|
||||
|
||||
@@ -29,6 +29,9 @@ .ui-button {
|
||||
font: inherit;
|
||||
font-weight: 700;
|
||||
line-height: 1.2;
|
||||
max-width: 100%;
|
||||
text-align: center;
|
||||
overflow-wrap: anywhere;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
transition: background-color 0.15s ease, border-color 0.15s ease;
|
||||
|
||||
@@ -0,0 +1,226 @@
|
||||
/*
|
||||
* Premium-Bild-und-Text – übernommen aus docs/Brand-UI-Kit/12_premium_widgets_adaptiv_v1.6/components/lf-bild-text.v1.6.css.
|
||||
* Ersetzt das bisherige Bild-und-Text-CSS (nicht parallel laden). Die Darstellung folgt der tatsächlichen
|
||||
* Containerbreite, nicht der Einheitenzahl.
|
||||
*
|
||||
* Anpassungen an das Repository:
|
||||
* - Oberfläche „clear“ übernimmt die Bedeutungswerte des Abschnitts (auch auf dunklen Abschnitten lesbar).
|
||||
* - Überschrift erbt Farbe und Schrift (globale h1–h3-Regeln setzen sonst Navy).
|
||||
* - Fokusfarbe aus den Tokens; Schriften über --lf-font-display und --lf-font-ui.
|
||||
*/
|
||||
.lf-bt-host { container: lf-bt / inline-size; inline-size: 100%; min-inline-size: 0; max-inline-size: 100%; }
|
||||
.lf-bt-host, .lf-bt-host * { box-sizing: border-box; }
|
||||
|
||||
.lf-bt {
|
||||
--bt-navy: var(--lf-navy, #032551);
|
||||
--bt-green: var(--lf-green-deep, #3b7b09);
|
||||
--bt-yellow: var(--lf-yellow, #fcd10a);
|
||||
--bt-cream: var(--lf-cream, #f7f6f2);
|
||||
--bt-muted: var(--lf-muted, #46556b);
|
||||
--bt-eyebrow: #295b08;
|
||||
--bt-focus-x: 64%;
|
||||
--bt-focus-y: 43%;
|
||||
--color-focus: var(--lf-focus);
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
align-items: start;
|
||||
gap: clamp(0.9rem, 2.65cqi, 2rem);
|
||||
padding: clamp(1rem, 2.8cqi, 3.25rem);
|
||||
border-radius: clamp(1rem, 1.8cqi, 1.65rem);
|
||||
min-inline-size: 0;
|
||||
max-inline-size: 100%;
|
||||
background: var(--bt-cream);
|
||||
color: var(--bt-navy);
|
||||
font: 400 1rem/1.6 var(--lf-font-ui);
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
|
||||
.lf-bt--navy {
|
||||
--bt-muted: #f0f4f9;
|
||||
--bt-eyebrow: #fff2b0;
|
||||
--color-focus: var(--lf-yellow);
|
||||
background: var(--bt-navy);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
/* Ohne eigene Fläche: Farben des Abschnitts (hell, dunkel, Markenakzent). */
|
||||
.lf-bt--clear {
|
||||
--bt-muted: var(--color-text-muted);
|
||||
--bt-eyebrow: var(--color-heading);
|
||||
--color-focus: inherit;
|
||||
background: transparent;
|
||||
color: var(--color-heading);
|
||||
padding-inline: 0;
|
||||
}
|
||||
|
||||
.lf-bt__copy { min-inline-size: 0; max-inline-size: 49rem; align-self: center; }
|
||||
|
||||
.lf-bt__eyebrow {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.6rem;
|
||||
margin: 0 0 0.8rem;
|
||||
color: var(--bt-eyebrow);
|
||||
font-size: 0.73rem;
|
||||
line-height: 1.45;
|
||||
font-weight: 800;
|
||||
letter-spacing: 0.065em;
|
||||
text-transform: uppercase;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.lf-bt__eyebrow::before {
|
||||
content: '';
|
||||
flex: 0 0 auto;
|
||||
inline-size: 1.35rem;
|
||||
block-size: 0.25rem;
|
||||
background: var(--bt-yellow);
|
||||
border-radius: 999px;
|
||||
}
|
||||
|
||||
.lf-bt__headline {
|
||||
margin: 0;
|
||||
color: inherit;
|
||||
font-family: var(--lf-font-display);
|
||||
font-size: clamp(1.55rem, 4.5cqi, 3.35rem);
|
||||
line-height: 1.14;
|
||||
letter-spacing: -0.03em;
|
||||
font-weight: 850;
|
||||
overflow-wrap: anywhere;
|
||||
hyphens: manual;
|
||||
text-wrap: balance;
|
||||
}
|
||||
|
||||
.lf-bt__accent {
|
||||
display: block;
|
||||
inline-size: clamp(4.6rem, 12cqi, 7rem);
|
||||
block-size: 0.36rem;
|
||||
margin: clamp(0.55rem, 1.7cqi, 1rem) 0 clamp(0.8rem, 2.3cqi, 1.25rem) 0.12rem;
|
||||
background: var(--bt-yellow);
|
||||
border-radius: 90% 35% 75% 40%;
|
||||
transform: rotate(-1deg);
|
||||
}
|
||||
|
||||
.lf-bt__body { color: var(--bt-muted); font-size: clamp(0.97rem, 1.45cqi, 1.12rem); line-height: 1.62; overflow-wrap: anywhere; }
|
||||
.lf-bt__body > :first-child { margin-block-start: 0; }
|
||||
.lf-bt__body > :last-child { margin-block-end: 0; }
|
||||
.lf-bt__body p { margin: 0 0 0.9em; }
|
||||
.lf-bt__body ul,
|
||||
.lf-bt__body ol { padding-inline-start: 1.35em; margin: 0.6em 0; }
|
||||
.lf-bt__body a { color: inherit; text-decoration: underline; text-underline-offset: 0.15em; }
|
||||
|
||||
.lf-bt__actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0.65rem; margin-block-start: clamp(1rem, 2cqi, 1.5rem); min-inline-size: 0; }
|
||||
|
||||
.lf-bt__button {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 0.5rem;
|
||||
max-inline-size: 100%;
|
||||
min-inline-size: 0;
|
||||
min-block-size: 2.95rem;
|
||||
padding: 0.7rem 1rem;
|
||||
background: var(--bt-green);
|
||||
border: 2px solid var(--bt-green);
|
||||
color: #fff;
|
||||
border-radius: 999px;
|
||||
text-decoration: none;
|
||||
text-align: center;
|
||||
font-size: 0.89rem;
|
||||
font-weight: 800;
|
||||
line-height: 1.33;
|
||||
overflow-wrap: anywhere;
|
||||
white-space: normal;
|
||||
transition: background-color 0.14s ease, transform 0.14s ease;
|
||||
}
|
||||
|
||||
.lf-bt__button:visited { color: #fff; }
|
||||
.lf-bt__button:hover { background: #285a06; color: #fff; transform: translateY(-1px); }
|
||||
.lf-bt__button--secondary,
|
||||
.lf-bt__button--secondary:visited { background: transparent; border-color: currentColor; color: inherit; }
|
||||
.lf-bt__button--secondary:hover { background: rgb(3 37 81 / 6%); color: inherit; }
|
||||
.lf-bt--navy .lf-bt__button--secondary:hover,
|
||||
.scope-dark .lf-bt--clear .lf-bt__button--secondary:hover,
|
||||
.scope-accent .lf-bt--clear .lf-bt__button--secondary:hover { background: rgb(255 255 255 / 12%); }
|
||||
.lf-bt__button:focus-visible,
|
||||
.lf-bt__body a:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
|
||||
|
||||
.lf-bt__media { position: relative; display: block; order: -1; min-inline-size: 0; isolation: isolate; }
|
||||
|
||||
.lf-bt__media::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: auto -0.42rem -0.45rem 1rem;
|
||||
z-index: -1;
|
||||
block-size: 53%;
|
||||
border-radius: 1.1rem;
|
||||
background: #8ab848;
|
||||
transform: rotate(1.5deg);
|
||||
}
|
||||
|
||||
.lf-bt--navy .lf-bt__media::before { background: var(--bt-yellow); }
|
||||
|
||||
.lf-bt__image {
|
||||
display: block;
|
||||
inline-size: 100%;
|
||||
max-inline-size: none;
|
||||
block-size: auto;
|
||||
aspect-ratio: 16 / 10;
|
||||
object-fit: cover;
|
||||
object-position: var(--bt-focus-x) var(--bt-focus-y);
|
||||
border-radius: clamp(0.78rem, 1.8cqi, 1.3rem);
|
||||
box-shadow: 0 10px 28px rgb(3 37 81 / 11%);
|
||||
}
|
||||
|
||||
.lf-bt--height-compact .lf-bt__image { aspect-ratio: 16 / 9; }
|
||||
.lf-bt--height-spacious .lf-bt__image { aspect-ratio: 4 / 3; }
|
||||
.lf-bt--height-compact { gap: clamp(0.75rem, 2cqi, 1.45rem); }
|
||||
.lf-bt--height-spacious { gap: clamp(1.15rem, 3.4cqi, 2.7rem); }
|
||||
.lf-bt--without-image { grid-template-columns: minmax(0, 1fr); }
|
||||
|
||||
/* 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); }
|
||||
.lf-bt__button { inline-size: 100%; }
|
||||
.lf-bt__headline { font-size: clamp(1.42rem, 6.8cqi, 2.2rem); }
|
||||
.lf-bt__eyebrow { letter-spacing: 0.03em; }
|
||||
}
|
||||
|
||||
/* Mittlere Containerbreite (meist zwei Einheiten): flacher Bildstreifen statt gequetschter Zweispaltigkeit. */
|
||||
@container lf-bt (min-width: 540px) and (max-width: 899.99px) {
|
||||
.lf-bt { gap: clamp(0.8rem, 1.6cqi, 1.2rem); padding: clamp(1.1rem, 2.4cqi, 1.65rem); }
|
||||
.lf-bt--clear { padding-inline: 0; }
|
||||
.lf-bt__media { inline-size: 100%; }
|
||||
.lf-bt__image { aspect-ratio: 2.15 / 1; }
|
||||
.lf-bt--height-compact .lf-bt__image { aspect-ratio: 2.5 / 1; }
|
||||
.lf-bt--height-spacious .lf-bt__image { aspect-ratio: 1.8 / 1; }
|
||||
.lf-bt__headline { font-size: clamp(1.65rem, 3.6cqi, 2.28rem); }
|
||||
.lf-bt__body { font-size: 1.01rem; line-height: 1.59; }
|
||||
.lf-bt__actions { margin-block-start: 0.95rem; }
|
||||
.lf-bt__button { flex: 1 1 13rem; }
|
||||
}
|
||||
|
||||
/* Breiter Container: zweispaltige Komposition, Bild links oder rechts. */
|
||||
@container lf-bt (min-width: 900px) {
|
||||
.lf-bt {
|
||||
grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
|
||||
align-items: center;
|
||||
gap: clamp(1.8rem, 4cqi, 4.5rem);
|
||||
padding: clamp(1.8rem, 4cqi, 4.5rem);
|
||||
}
|
||||
|
||||
.lf-bt--clear { padding-inline: 0; }
|
||||
.lf-bt__media { order: 0; align-self: stretch; }
|
||||
.lf-bt--image-left .lf-bt__media { order: -1; }
|
||||
.lf-bt__image { block-size: 100%; min-block-size: 18rem; aspect-ratio: 4 / 3; }
|
||||
.lf-bt--height-compact .lf-bt__image { min-block-size: 14rem; aspect-ratio: 3 / 2; }
|
||||
.lf-bt--height-spacious .lf-bt__image { min-block-size: 24rem; aspect-ratio: 1 / 1; }
|
||||
.lf-bt--height-compact { padding-block: clamp(1.25rem, 2.8cqi, 2.6rem); }
|
||||
.lf-bt--height-spacious { padding-block: clamp(2.15rem, 4.5cqi, 4.75rem); }
|
||||
.lf-bt--without-image { grid-template-columns: minmax(0, 1fr); }
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.lf-bt__button { transition: none; }
|
||||
.lf-bt__button:hover { transform: none; }
|
||||
}
|
||||
@@ -0,0 +1,209 @@
|
||||
/*
|
||||
* Premium-Einstieg – übernommen aus docs/Brand-UI-Kit/12_premium_widgets_adaptiv_v1.6/components/lf-hero.v1.6.css.
|
||||
* Ersetzt das bisherige Hero-CSS (nicht parallel laden).
|
||||
*
|
||||
* Anpassungen an das Repository (dokumentiert in docs/architektur/cms-widget-registry.md):
|
||||
* - Überschrift und Akzent erben Farbe und erhalten Blockdarstellung (die globalen h1–h3-Regeln setzen sonst Navy).
|
||||
* - Akzentwahl underline/rays/none; Strahlen aus resources/views/components/brand/rays.blade.php.
|
||||
* - Fokusfarbe und Schriften über die gemeinsamen Tokens (--lf-font-display, --lf-font-ui, --color-focus).
|
||||
* Die Höhen sind Mindesthöhen ab 860 px Containerbreite; Inhalte vergrößern jede Variante.
|
||||
*/
|
||||
.lf-hero-host { container: lf-hero / inline-size; inline-size: 100%; min-inline-size: 0; max-inline-size: 100%; }
|
||||
.lf-hero-host, .lf-hero-host * { box-sizing: border-box; }
|
||||
|
||||
.lf-hero {
|
||||
--lf-hero-navy: var(--lf-navy, #032551);
|
||||
--lf-hero-green: var(--lf-green-deep, #3b7b09);
|
||||
--lf-hero-yellow: var(--lf-yellow, #fcd10a);
|
||||
--lf-hero-cream: var(--lf-cream, #f7f6f2);
|
||||
--lf-hero-focus-x: 68%;
|
||||
--lf-hero-focus-y: 50%;
|
||||
--color-focus: var(--lf-focus);
|
||||
isolation: isolate;
|
||||
position: relative;
|
||||
display: grid;
|
||||
align-items: center;
|
||||
min-inline-size: 0;
|
||||
min-block-size: 32rem;
|
||||
max-inline-size: 100%;
|
||||
border-radius: clamp(1rem, 1.9cqi, 1.75rem);
|
||||
background: var(--lf-hero-cream);
|
||||
color: var(--lf-hero-navy);
|
||||
font-family: var(--lf-font-display);
|
||||
}
|
||||
|
||||
.lf-hero--height-compact { min-block-size: 25rem; }
|
||||
.lf-hero--height-normal { min-block-size: 32rem; }
|
||||
.lf-hero--height-large { min-block-size: 40rem; }
|
||||
|
||||
.lf-hero__photo {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
z-index: -2;
|
||||
inline-size: 100%;
|
||||
block-size: 100%;
|
||||
max-inline-size: none;
|
||||
object-fit: cover;
|
||||
object-position: var(--lf-hero-focus-x) var(--lf-hero-focus-y);
|
||||
border-radius: inherit;
|
||||
}
|
||||
|
||||
.lf-hero--photo-split::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
z-index: -1;
|
||||
border-radius: inherit;
|
||||
background: linear-gradient(90deg, rgb(250 249 243 / 99%) 0%, rgb(250 249 243 / 98%) 28%, rgb(250 249 243 / 85%) 41%, rgb(250 249 243 / 12%) 69%, transparent 80%);
|
||||
}
|
||||
|
||||
.lf-hero--editorial-solid {
|
||||
--color-focus: var(--lf-yellow);
|
||||
background: var(--lf-hero-navy);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.lf-hero--editorial-solid::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: auto -7% -50% auto;
|
||||
z-index: -1;
|
||||
inline-size: 40%;
|
||||
aspect-ratio: 1;
|
||||
background: var(--lf-hero-green);
|
||||
border-radius: 50%;
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
.lf-hero--editorial-solid { overflow: hidden; }
|
||||
|
||||
.lf-hero__inner {
|
||||
inline-size: 100%;
|
||||
max-inline-size: 1440px;
|
||||
min-inline-size: 0;
|
||||
margin-inline: auto;
|
||||
padding: clamp(1.8rem, 4.3cqi, 5rem);
|
||||
padding-block: clamp(2.1rem, 5cqi, 5rem);
|
||||
}
|
||||
|
||||
.lf-hero__copy { position: relative; max-inline-size: min(660px, 58%); min-inline-size: 0; }
|
||||
.lf-hero--editorial-solid .lf-hero__copy { max-inline-size: 760px; }
|
||||
|
||||
.lf-hero__eyebrow {
|
||||
display: inline-block;
|
||||
margin: 0;
|
||||
padding: 0.35em 0.75em;
|
||||
border-radius: 999px;
|
||||
background: #dff0c0;
|
||||
color: #17370b;
|
||||
font-weight: 800;
|
||||
font-size: clamp(0.78rem, 1.25cqi, 0.95rem);
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.lf-hero__title {
|
||||
margin: 0.25em 0;
|
||||
color: inherit;
|
||||
font-family: inherit;
|
||||
font-size: clamp(2.1rem, 5.4cqi, 4.9rem);
|
||||
line-height: 1.06;
|
||||
letter-spacing: -0.035em;
|
||||
font-weight: 900;
|
||||
text-wrap: balance;
|
||||
overflow-wrap: anywhere;
|
||||
hyphens: manual;
|
||||
}
|
||||
|
||||
.lf-hero__title-accent {
|
||||
display: block;
|
||||
inline-size: clamp(6rem, 15cqi, 15rem);
|
||||
block-size: 0.42rem;
|
||||
margin: 0 0 clamp(1.1rem, 2cqi, 1.5rem);
|
||||
background: var(--lf-hero-yellow);
|
||||
border-radius: 90% 30% 45% 25%;
|
||||
transform: rotate(-1deg);
|
||||
}
|
||||
|
||||
.lf-hero__rays {
|
||||
position: absolute;
|
||||
inset-block-start: -2.4rem;
|
||||
inset-inline-start: -2.2rem;
|
||||
inline-size: clamp(2.6rem, 4.5cqi, 3.6rem);
|
||||
color: var(--lf-hero-yellow);
|
||||
transform: rotate(-24deg);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.lf-hero__description {
|
||||
max-inline-size: 56ch;
|
||||
margin: 0 0 clamp(1.25rem, 2.1cqi, 2rem);
|
||||
font-family: var(--lf-font-ui);
|
||||
font-size: clamp(1.05rem, 1.7cqi, 1.3rem);
|
||||
line-height: 1.5;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.lf-hero__actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0.75rem; min-inline-size: 0; }
|
||||
|
||||
.lf-hero__button {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-inline-size: 0;
|
||||
max-inline-size: 100%;
|
||||
min-block-size: 3rem;
|
||||
padding: 0.77rem 1.2rem;
|
||||
border: 2px solid transparent;
|
||||
border-radius: 999px;
|
||||
font: 800 0.96rem/1.28 var(--lf-font-ui);
|
||||
text-decoration: none;
|
||||
text-align: center;
|
||||
white-space: normal;
|
||||
overflow-wrap: anywhere;
|
||||
transition: transform 0.15s ease, background-color 0.15s ease;
|
||||
}
|
||||
|
||||
.lf-hero__button:hover { transform: translateY(-1px); }
|
||||
.lf-hero__button:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
|
||||
.lf-hero__button--primary,
|
||||
.lf-hero__button--primary:visited { background: var(--lf-hero-green); color: #fff; }
|
||||
.lf-hero__button--primary:hover { background: #285a06; color: #fff; }
|
||||
.lf-hero__button--secondary,
|
||||
.lf-hero__button--secondary:visited { background: rgb(255 255 255 / 95%); color: var(--lf-hero-navy); border-color: var(--lf-hero-navy); }
|
||||
.lf-hero__button--secondary:hover { color: var(--lf-hero-navy); }
|
||||
|
||||
.lf-hero__bottom {
|
||||
position: absolute;
|
||||
inset: auto 0 0;
|
||||
block-size: 15px;
|
||||
border-radius: 0 0 1.5rem 1.5rem;
|
||||
background: linear-gradient(105deg, var(--lf-hero-yellow) 0%, var(--lf-hero-yellow) 22%, var(--lf-hero-green) 72%);
|
||||
clip-path: polygon(0 45%, 30% 90%, 65% 75%, 100% 0, 100% 100%, 0 100%);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
/* Sicherheitsumbruch, wenn der Container physisch zu schmal ist; keine eigene redaktionelle Variante. */
|
||||
@container lf-hero (max-width: 859.99px) {
|
||||
.lf-hero { display: block; min-block-size: 0; }
|
||||
.lf-hero--height-compact,
|
||||
.lf-hero--height-normal,
|
||||
.lf-hero--height-large { min-block-size: 0; }
|
||||
.lf-hero__photo { position: relative; display: block; block-size: auto; aspect-ratio: 16 / 9; }
|
||||
.lf-hero--photo-split::before { display: none; }
|
||||
.lf-hero__inner { padding: clamp(1.2rem, 3.5cqi, 2rem); padding-block-end: 2.4rem; }
|
||||
.lf-hero__copy { max-inline-size: 100%; }
|
||||
.lf-hero__title { font-size: clamp(2rem, 5.5cqi, 3.1rem); }
|
||||
.lf-hero__description { font-size: 1.07rem; }
|
||||
.lf-hero--editorial-solid .lf-hero__copy { max-inline-size: 100%; }
|
||||
.lf-hero__rays { inset-block-start: -1.6rem; inset-inline-start: auto; inset-inline-end: 0; transform: rotate(10deg); }
|
||||
}
|
||||
|
||||
@container lf-hero (max-width: 440px) {
|
||||
.lf-hero__actions { display: grid; grid-template-columns: minmax(0, 1fr); }
|
||||
.lf-hero__button { inline-size: 100%; }
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.lf-hero__button { transition: none; }
|
||||
.lf-hero__button:hover { transform: none; }
|
||||
}
|
||||
@@ -71,6 +71,11 @@ :root {
|
||||
--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;
|
||||
|
||||
+27
-396
@@ -1,11 +1,37 @@
|
||||
/*
|
||||
* Widget-Ansichten (Designiteration 1). Jede Regel verwendet Bedeutungswerte und richtet sich nach der Slotbreite
|
||||
* Widget-Ansichten der Bestandswidgets. Jede Regel verwendet Bedeutungswerte und richtet sich nach der Slotbreite
|
||||
* (Container „slot“), nicht nach dem Fenster. Markenakzente (Unterstreichung, Strahlen) stammen aus
|
||||
* resources/views/components/brand und sind dekorativ.
|
||||
*/
|
||||
|
||||
.widget {
|
||||
min-width: 0;
|
||||
color: var(--color-text);
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
|
||||
/*
|
||||
* Gemeinsamer Layoutvertrag (ADR-38): Höhe „fill“ streckt das Widget auf die Höhe der Abschnittszeile, wenn Plätze
|
||||
* nebeneinander stehen. Gestapelt (schmaler Abschnitt) entspricht das der Inhaltshöhe. Inhalte werden nie begrenzt.
|
||||
*/
|
||||
.section-slot:has(> .widget-height-fill) {
|
||||
align-self: stretch;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.section-slot > .widget-height-fill {
|
||||
flex: 1 1 auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.widget-height-fill > .cta {
|
||||
flex: 1 1 auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.widget > :last-child,
|
||||
@@ -19,406 +45,11 @@ .widget-heading h2 {
|
||||
max-width: 22ch;
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------------------------------------
|
||||
* Einstieg (Hero)
|
||||
* Varianten: standard (Text | Bild), highlight (Markenfläche), stage (Markenbühne), editorial (textbetont).
|
||||
* ---------------------------------------------------------------------------------------------- */
|
||||
.hero {
|
||||
--hero-focus: 50% 50%;
|
||||
position: relative;
|
||||
display: grid;
|
||||
gap: var(--space-6);
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.hero-copy > :is(h1, h2) {
|
||||
font-size: clamp(2.125rem, 1.2rem + 4.4cqi, 4rem);
|
||||
line-height: 1.05;
|
||||
letter-spacing: -0.025em;
|
||||
max-width: 15ch;
|
||||
margin: 0;
|
||||
text-wrap: balance;
|
||||
}
|
||||
|
||||
/* Markenstrich unter der Überschrift: kurze gelbe Unterstreichung, kein Hervorheben einzelner Wörter. */
|
||||
.hero-mark {
|
||||
width: clamp(5.5rem, 4rem + 6cqi, 9rem);
|
||||
height: 0.9rem;
|
||||
margin: var(--space-3) 0 var(--space-5);
|
||||
}
|
||||
|
||||
.hero .lede {
|
||||
max-width: 48ch;
|
||||
margin: 0;
|
||||
font-size: clamp(1.125rem, 1rem + 0.6cqi, 1.3125rem);
|
||||
}
|
||||
|
||||
.hero-actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--space-3);
|
||||
margin-top: var(--space-6);
|
||||
}
|
||||
|
||||
.hero-copy {
|
||||
position: relative;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.hero-figure {
|
||||
position: relative;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.hero-image {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
object-position: var(--hero-focus);
|
||||
}
|
||||
|
||||
.hero-figure .hero-image {
|
||||
aspect-ratio: 4 / 3;
|
||||
border-radius: var(--radius-panel);
|
||||
}
|
||||
|
||||
.hero-rays {
|
||||
position: absolute;
|
||||
width: clamp(2.75rem, 2rem + 3cqi, 4.5rem);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
/* Standard: Bild mit grüner Fläche als Versatz und Signalstrahlen an der Ecke. */
|
||||
.hero-standard .hero-figure::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: 1.25rem -1.25rem -1.25rem 1.25rem;
|
||||
z-index: -1;
|
||||
border-radius: var(--radius-panel);
|
||||
background: var(--lf-green-tint);
|
||||
}
|
||||
|
||||
.hero-standard .hero-rays {
|
||||
top: -2.25rem;
|
||||
left: -1.75rem;
|
||||
transform: rotate(-18deg);
|
||||
}
|
||||
|
||||
@container slot (min-width: 48rem) {
|
||||
.hero-standard.hero-with-image {
|
||||
grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
|
||||
gap: clamp(2.5rem, 6cqi, 5rem);
|
||||
}
|
||||
}
|
||||
|
||||
/* Hervorgehoben: dunkle Markenfläche mit gelben Akzenten. */
|
||||
.hero-highlight {
|
||||
padding: clamp(1.75rem, 6cqi, 4rem);
|
||||
border-radius: var(--radius-panel);
|
||||
background: var(--lf-navy);
|
||||
--color-text: #f4f6f8;
|
||||
--color-heading: var(--lf-white);
|
||||
--color-link: var(--lf-white);
|
||||
--color-link-hover: var(--lf-yellow);
|
||||
--color-focus: var(--lf-yellow);
|
||||
--color-border-strong: rgb(255 255 255 / 60%);
|
||||
--color-action-secondary-text: var(--lf-white);
|
||||
color: var(--color-text);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.hero-highlight .hero-rays {
|
||||
top: clamp(1rem, 3cqi, 2rem);
|
||||
right: clamp(1rem, 4cqi, 2.5rem);
|
||||
}
|
||||
|
||||
.hero-highlight .hero-figure .hero-image {
|
||||
aspect-ratio: 16 / 10;
|
||||
}
|
||||
|
||||
@container slot (min-width: 48rem) {
|
||||
.hero-highlight.hero-with-image {
|
||||
grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
|
||||
gap: clamp(2rem, 5cqi, 4rem);
|
||||
}
|
||||
}
|
||||
|
||||
/* Editorial: großer Text, Beschreibung und Schaltflächen nebeneinander, Bild als breites Band darunter. */
|
||||
.hero-editorial {
|
||||
gap: var(--space-7);
|
||||
}
|
||||
|
||||
.hero-editorial .hero-copy > :is(h1, h2) {
|
||||
font-size: clamp(2.375rem, 1.2rem + 5.6cqi, 5rem);
|
||||
max-width: 18ch;
|
||||
}
|
||||
|
||||
.hero-editorial .hero-figure .hero-image {
|
||||
aspect-ratio: 16 / 9;
|
||||
}
|
||||
|
||||
/* Abgesetzter Markenstrich: liest sich als Abschluss der Überschrift, nicht als Hervorhebung eines Wortes. */
|
||||
.hero-editorial .hero-mark {
|
||||
width: clamp(9rem, 32cqi, 20rem);
|
||||
margin-top: var(--space-5);
|
||||
}
|
||||
|
||||
@container slot (min-width: 56rem) {
|
||||
.hero-editorial .hero-copy {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
|
||||
column-gap: clamp(2rem, 6cqi, 5rem);
|
||||
align-items: end;
|
||||
}
|
||||
|
||||
.hero-editorial .hero-copy > :is(h1, h2),
|
||||
.hero-editorial .hero-mark {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
|
||||
.hero-editorial .hero-actions {
|
||||
margin-top: 0;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.hero-editorial .hero-figure .hero-image {
|
||||
aspect-ratio: 21 / 9;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Markenbühne: Bild über die volle Breite, Text auf einer hellen Tafel (Kontrast unabhängig vom Motiv).
|
||||
* Schmal: Bild oben im festen Format, Tafel überlappt den unteren Bildrand. Breit (ab 56rem): Bild füllt die Bühne,
|
||||
* die Tafel steht im Grundraster links oder rechts. Feste Formate verhindern Layoutverschiebungen beim Laden.
|
||||
*/
|
||||
.hero-stage {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.hero-stage .hero-media {
|
||||
position: relative;
|
||||
aspect-ratio: 4 / 3;
|
||||
overflow: hidden;
|
||||
background: var(--lf-green-tint);
|
||||
}
|
||||
|
||||
.hero-stage .hero-frame {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
padding-inline: var(--gutter);
|
||||
}
|
||||
|
||||
.hero-stage.hero-with-image .hero-frame {
|
||||
margin-top: -3.5rem;
|
||||
}
|
||||
|
||||
.hero-stage .hero-copy {
|
||||
--color-text: var(--lf-ink);
|
||||
--color-heading: var(--lf-navy);
|
||||
--color-link: var(--lf-navy);
|
||||
--color-focus: var(--lf-focus);
|
||||
--color-border-strong: var(--lf-navy);
|
||||
--color-action-secondary-text: var(--lf-navy);
|
||||
color: var(--color-text);
|
||||
background: var(--lf-cream);
|
||||
border-radius: var(--radius-panel);
|
||||
padding: clamp(1.5rem, 1rem + 3cqi, 3rem);
|
||||
box-shadow: 0 18px 40px rgb(3 37 81 / 12%);
|
||||
}
|
||||
|
||||
.hero-stage .hero-rays {
|
||||
top: -1.6rem;
|
||||
right: 1.5rem;
|
||||
}
|
||||
|
||||
/* Ohne Bild: Markenbühne als ruhige Fläche. */
|
||||
.hero-stage:not(.hero-with-image) .hero-copy {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
@container slot (min-width: 56rem) {
|
||||
.hero-stage.hero-with-image {
|
||||
display: grid;
|
||||
min-height: clamp(30rem, 72svh, 46rem);
|
||||
}
|
||||
|
||||
.hero-stage .hero-media {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
aspect-ratio: auto;
|
||||
}
|
||||
|
||||
.hero-stage.hero-with-image .hero-frame {
|
||||
display: grid;
|
||||
align-items: center;
|
||||
justify-items: end;
|
||||
margin-top: 0;
|
||||
padding-block: clamp(3rem, 6cqi, 5.5rem);
|
||||
padding-inline: var(--frame-inset);
|
||||
}
|
||||
|
||||
.hero-stage.hero-text-left .hero-frame {
|
||||
justify-items: start;
|
||||
}
|
||||
|
||||
.hero-stage .hero-copy {
|
||||
width: min(36rem, 46%);
|
||||
}
|
||||
|
||||
.hero-stage .hero-rays {
|
||||
top: -2.25rem;
|
||||
right: auto;
|
||||
left: -2rem;
|
||||
transform: rotate(-18deg);
|
||||
}
|
||||
}
|
||||
|
||||
/* Randlos (SectionRenderer: section-bleed): keine Begrenzung, Abstand nach unten bleibt für die Tafel. */
|
||||
.section-bleed {
|
||||
padding-block: 0;
|
||||
}
|
||||
|
||||
.section-bleed .page-section-inner {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* Schmal: Abstand unter der Tafel bis zum nächsten Abschnitt. */
|
||||
@container slot (max-width: 55.99rem) {
|
||||
.section-bleed .hero-stage .hero-frame {
|
||||
padding-bottom: clamp(2rem, 8cqi, 3.5rem);
|
||||
}
|
||||
}
|
||||
|
||||
/* Nicht randlos (Markenbühne in schmaleren Abschnitten oder Rastern): Bild mit runden Ecken. */
|
||||
.page-section:not(.section-bleed) .hero-stage .hero-media {
|
||||
border-radius: var(--radius-panel);
|
||||
}
|
||||
|
||||
.page-section:not(.section-bleed) .hero-stage .hero-frame {
|
||||
padding-inline: clamp(0.75rem, 4cqi, 2.5rem);
|
||||
}
|
||||
|
||||
/* Fließtext */
|
||||
.widget-prose .prose p {
|
||||
margin: 0 0 var(--space-4);
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------------------------------------
|
||||
* Bild und Text. Varianten: image_left, image_right. Stufen: schmal (gestapelt), ab 36rem nebeneinander,
|
||||
* ab 56rem Bild betont. Formate über Einstellung: Quer-, Hochformat, Quadrat, Original.
|
||||
* ---------------------------------------------------------------------------------------------- */
|
||||
.image-text {
|
||||
--image-focus: 50% 50%;
|
||||
--image-ratio: 4 / 3;
|
||||
display: grid;
|
||||
gap: var(--space-6);
|
||||
}
|
||||
|
||||
.image-format-portrait {
|
||||
--image-ratio: 4 / 5;
|
||||
}
|
||||
|
||||
.image-format-square {
|
||||
--image-ratio: 1 / 1;
|
||||
}
|
||||
|
||||
.image-text-figure {
|
||||
position: relative;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Versetzte Markenfläche hinter dem Bild, auf der Außenseite des Textes. */
|
||||
.image-text-figure::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: 0.6rem -0.6rem -0.6rem 0.6rem;
|
||||
z-index: -1;
|
||||
border-radius: var(--radius-panel);
|
||||
background: var(--lf-yellow-tint);
|
||||
}
|
||||
|
||||
@container slot (min-width: 36rem) {
|
||||
.image-text-figure::before {
|
||||
inset: 1rem 1rem -1rem -1rem;
|
||||
}
|
||||
|
||||
.image-text-right .image-text-figure::before {
|
||||
inset: 1rem -1rem -1rem 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
.scope-dark .image-text-figure::before,
|
||||
.scope-accent .image-text-figure::before {
|
||||
background: rgb(255 255 255 / 12%);
|
||||
}
|
||||
|
||||
.image-text-figure img {
|
||||
display: block;
|
||||
width: 100%;
|
||||
aspect-ratio: var(--image-ratio);
|
||||
object-fit: cover;
|
||||
object-position: var(--image-focus);
|
||||
border-radius: var(--radius-panel);
|
||||
}
|
||||
|
||||
.image-format-original .image-text-figure img {
|
||||
aspect-ratio: auto;
|
||||
}
|
||||
|
||||
.image-text-copy > :first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.image-text-copy h1,
|
||||
.image-text-copy h2 {
|
||||
font-size: clamp(1.75rem, 1.2rem + 2.4cqi, 2.75rem);
|
||||
line-height: 1.1;
|
||||
max-width: 20ch;
|
||||
margin: 0;
|
||||
text-wrap: balance;
|
||||
}
|
||||
|
||||
.image-text-mark {
|
||||
width: 5rem;
|
||||
height: 0.75rem;
|
||||
margin: var(--space-3) 0 var(--space-5);
|
||||
}
|
||||
|
||||
.image-text-copy .prose {
|
||||
font-size: clamp(1.0625rem, 1rem + 0.25cqi, 1.1875rem);
|
||||
}
|
||||
|
||||
@container slot (min-width: 36rem) {
|
||||
.image-text {
|
||||
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
|
||||
align-items: center;
|
||||
gap: clamp(2rem, 5cqi, 4rem);
|
||||
}
|
||||
|
||||
.image-text-right > .image-text-figure {
|
||||
order: 2;
|
||||
}
|
||||
|
||||
.image-text-no-image {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
}
|
||||
|
||||
@container slot (min-width: 56rem) {
|
||||
.image-text-left {
|
||||
grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
|
||||
}
|
||||
|
||||
.image-text-right {
|
||||
grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
|
||||
}
|
||||
|
||||
.image-text-no-image {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------------------------------------
|
||||
* Redaktionelle Karten. Varianten: Raster (cards-grid), kompakte Liste (cards-compact),
|
||||
* erste Karte hervorgehoben (cards-featured). Die ganze Karte ist über den Titellink klickbar.
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
/* Widget-Vorschau: kompakt, ohne eigene Bildlaufleiste; lange Inhalte werden gekürzt angezeigt. */
|
||||
.luf-widget-preview { position: relative; }
|
||||
.luf-widget-preview-frame { display: block; width: 100%; min-height: 3rem; max-height: 22rem; border: 0; overflow: hidden; pointer-events: none; background: #fff; }
|
||||
.luf-widget-preview-frame { display: block; width: 100%; min-height: 3rem; max-height: 28rem; border: 0; overflow: hidden; pointer-events: none; background: #fff; }
|
||||
.luf-widget-preview.is-clipped::after {
|
||||
content: 'Vorschau gekürzt – vollständig in der Seitenvorschau';
|
||||
position: absolute; inset: auto 0 0 0; padding: 2.5rem .75rem .5rem;
|
||||
@@ -18,6 +18,13 @@
|
||||
}
|
||||
.luf-widget-preview-empty { margin: 0; padding: 1rem; font-size: .875rem; opacity: .75; }
|
||||
|
||||
/* Live-Vorschau im Bearbeitungsdialog: feste logische Breite, auf die Dialogbreite verkleinert. */
|
||||
.luf-live-preview { border: 1px solid rgb(0 0 0 / 10%); border-radius: .75rem; padding: .75rem; background: rgb(247 246 242 / 60%); }
|
||||
.luf-live-preview-caption { margin: 0 0 .5rem; font-size: .75rem; opacity: .75; }
|
||||
.luf-live-preview-stage { position: relative; overflow: hidden; background: #fff; border-radius: .5rem; }
|
||||
.luf-live-preview-frame { display: block; border: 0; pointer-events: none; background: #fff; transform-origin: 0 0; }
|
||||
.luf-preview-width .fi-btn-group { flex-wrap: wrap; }
|
||||
|
||||
/* Abschnitte: breite Arbeitsfläche, deutlich abgesetzte Abschnitte */
|
||||
.luf-sections > .fi-fo-repeater-items { gap: 1.25rem; }
|
||||
.luf-sections > .fi-fo-repeater-items > .fi-fo-repeater-item { border-left: 4px solid rgb(3 37 81 / 70%); }
|
||||
@@ -50,8 +57,34 @@
|
||||
</style>
|
||||
<script>
|
||||
// Vorschau-Iframes an ihren Inhalt anpassen (nach Bildern und Schriften erneut), Höhe begrenzen.
|
||||
// Live-Vorschau im Dialog: Inhalt in logischer Breite rendern, dann auf die verfügbare Breite skalieren.
|
||||
window.lufLivePreview = window.lufLivePreview || function (frame) {
|
||||
const stage = frame.parentElement;
|
||||
const width = Number(frame.dataset.width) || 1200;
|
||||
const fit = () => {
|
||||
const doc = frame.contentDocument;
|
||||
if (!doc || !doc.documentElement || !stage) return;
|
||||
const scale = Math.min(1, stage.clientWidth / width);
|
||||
frame.style.width = width + 'px';
|
||||
const height = doc.documentElement.scrollHeight;
|
||||
frame.style.height = height + 'px';
|
||||
frame.style.transform = 'scale(' + scale + ')';
|
||||
stage.style.height = Math.ceil(height * scale) + 'px';
|
||||
};
|
||||
fit();
|
||||
try {
|
||||
const doc = frame.contentDocument;
|
||||
doc.fonts?.ready.then(fit);
|
||||
doc.querySelectorAll('img').forEach((img) => img.complete || img.addEventListener('load', fit, { once: true }));
|
||||
if (window.ResizeObserver) {
|
||||
new ResizeObserver(fit).observe(doc.body);
|
||||
new ResizeObserver(fit).observe(stage);
|
||||
}
|
||||
} catch (error) {}
|
||||
};
|
||||
|
||||
window.lufFitPreview = window.lufFitPreview || function (frame) {
|
||||
const max = 352;
|
||||
const max = 448;
|
||||
const fit = () => {
|
||||
const doc = frame.contentDocument;
|
||||
if (!doc || !doc.documentElement) return;
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
{{--
|
||||
Live-Vorschau im Bearbeitungsdialog eines Widgets. Gerendert wird mit derselben Widget-Ansicht wie auf der
|
||||
öffentlichen Seite (WidgetEditor::renderPreview), in einer festen logischen Breite und auf die Dialogbreite
|
||||
verkleinert. So greifen die Container-Abfragen der Widgets wie auf der Website.
|
||||
--}}
|
||||
@php
|
||||
$document = '<!DOCTYPE html><html lang="de"><head><meta charset="utf-8"><base target="_blank">'
|
||||
.$stylesheets
|
||||
.'<style>html,body{background:#fff;overflow:hidden}html{scrollbar-gutter:auto}body{margin:0;padding:0;min-height:0}main{display:block}</style>'
|
||||
.'</head><body><main class="sheet-preview"><div class="section-slot">'.$html.'</div></main></body></html>';
|
||||
@endphp
|
||||
<div class="luf-live-preview">
|
||||
<p class="luf-live-preview-caption">Vorschau bei {{ $width }} px Platzbreite, verkleinert. Gleiche Darstellung wie auf der Website.</p>
|
||||
@if (trim($html) === '')
|
||||
<p class="luf-widget-preview-empty">Dieses Widget zeigt mit den aktuellen Angaben öffentlich nichts an.</p>
|
||||
@else
|
||||
<div class="luf-live-preview-stage" wire:key="live-preview-{{ md5($document) }}-{{ $width }}">
|
||||
<iframe
|
||||
class="luf-live-preview-frame"
|
||||
title="Live-Vorschau des Widgets"
|
||||
tabindex="-1"
|
||||
scrolling="no"
|
||||
data-width="{{ $width }}"
|
||||
srcdoc="{{ $document }}"
|
||||
onload="window.lufLivePreview && window.lufLivePreview(this)"
|
||||
></iframe>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
@@ -1,52 +1,45 @@
|
||||
{{--
|
||||
Einstieg (Hero). Varianten:
|
||||
- standard: Text neben dem Bild (ältere Instanzen unverändert gültig)
|
||||
- highlight: dunkle Markenfläche
|
||||
- stage: Markenbühne, Bild über die volle Breite, Text auf heller Tafel (randlos, wenn allein im Abschnitt)
|
||||
- editorial: textbetonter Einstieg, Bild optional als breites Band darunter
|
||||
Das Bild des ersten Widgets wird sofort geladen (größtes Element), alle anderen verzögert.
|
||||
Premium-Einstieg (Brand-UI-Kit v1.6, Komponente lf-hero), angepasst an die Widget-Hülle der Registry.
|
||||
Varianten: photo_split (Foto mit heller Textfläche), editorial_solid (Navy-Markenfläche ohne Foto).
|
||||
Höhen compact/normal/large sind Mindesthöhen ab 860 px Containerbreite; darunter Sicherheitsumbruch.
|
||||
Das Bild des ersten Widgets der Seite wird sofort geladen, alle anderen verzögert.
|
||||
--}}
|
||||
@php
|
||||
$variant = in_array($variant, ['standard', 'highlight', 'stage', 'editorial'], true) ? $variant : 'standard';
|
||||
$headingTag = ! empty($first) ? 'h1' : 'h2';
|
||||
$layout = $variant === 'editorial_solid' ? 'editorial-solid' : 'photo-split';
|
||||
$heightClass = in_array($height, ['compact', 'normal', 'large'], true) ? $height : 'normal';
|
||||
$tag = \App\Domain\Cms\Widgets\Support\PremiumFields::headingTag($settings, ! empty($first));
|
||||
$loading = ! empty($first) ? 'loading="eager" fetchpriority="high"' : 'loading="lazy"';
|
||||
@endphp
|
||||
<div @class([
|
||||
'hero',
|
||||
'hero-'.$variant,
|
||||
'hero-with-image' => $imageUrl,
|
||||
'hero-text-left' => $variant === 'stage' && $textSide === 'left',
|
||||
]) style="--hero-focus: {{ $focus }}">
|
||||
@if ($imageUrl && $variant === 'stage')
|
||||
<div class="hero-media">
|
||||
<img class="hero-image" src="{{ $imageUrl }}" alt="{{ $data['alt'] ?? '' }}" {!! $loading !!} decoding="async">
|
||||
</div>
|
||||
@endif
|
||||
<div class="hero-frame">
|
||||
<div class="hero-copy">
|
||||
@if ($variant === 'stage' || $variant === 'highlight')
|
||||
<x-brand.rays class="hero-rays" />
|
||||
@endif
|
||||
<{{ $headingTag }}>{{ $data['heading'] ?? '' }}</{{ $headingTag }}>
|
||||
<x-brand.underline class="hero-mark" />
|
||||
@if (filled($data['text'] ?? null))
|
||||
<p class="lede">{{ $data['text'] }}</p>
|
||||
@endif
|
||||
@if ($actions !== [])
|
||||
<div class="hero-actions">
|
||||
@foreach ($actions as $index => $item)
|
||||
<a @class(['button', 'button-brand' => $index === 0, 'button-secondary' => $index > 0]) href="{{ $item['url'] }}">{{ $item['label'] }}</a>
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
<div class="lf-hero-host">
|
||||
<div class="lf-hero lf-hero--{{ $layout }} lf-hero--height-{{ $heightClass }} lf-hero--accent-{{ $accent }}"
|
||||
style="--lf-hero-focus-x: {{ $focus['x'] }}%; --lf-hero-focus-y: {{ $focus['y'] }}%">
|
||||
@if ($layout === 'photo-split' && $imageUrl)
|
||||
<img class="lf-hero__photo" src="{{ $imageUrl }}" alt="{{ $data['alt'] ?? '' }}" {!! $loading !!} decoding="async">
|
||||
@endif
|
||||
<div class="lf-hero__inner">
|
||||
<div class="lf-hero__copy">
|
||||
@if ($accent === 'rays')
|
||||
<x-brand.rays class="lf-hero__rays" />
|
||||
@endif
|
||||
@if (filled($data['eyebrow'] ?? null))
|
||||
<p class="lf-hero__eyebrow">{{ $data['eyebrow'] }}</p>
|
||||
@endif
|
||||
<{{ $tag }} class="lf-hero__title">{{ $data['heading'] ?? '' }}</{{ $tag }}>
|
||||
@if ($accent !== 'none')
|
||||
<span class="lf-hero__title-accent" aria-hidden="true"></span>
|
||||
@endif
|
||||
@if (filled($data['text'] ?? null))
|
||||
<p class="lf-hero__description">{{ $data['text'] }}</p>
|
||||
@endif
|
||||
@if ($actions !== [])
|
||||
<div class="lf-hero__actions">
|
||||
@foreach ($actions as $index => $item)
|
||||
<a @class(['lf-hero__button', 'lf-hero__button--primary' => $index === 0, 'lf-hero__button--secondary' => $index > 0]) href="{{ $item['url'] }}">{{ $item['label'] }}</a>
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
<span class="lf-hero__bottom" aria-hidden="true"></span>
|
||||
</div>
|
||||
@if ($imageUrl && $variant !== 'stage')
|
||||
<figure class="hero-figure">
|
||||
<img class="hero-image" src="{{ $imageUrl }}" alt="{{ $data['alt'] ?? '' }}" {!! $loading !!} decoding="async">
|
||||
@if ($variant === 'standard')
|
||||
<x-brand.rays class="hero-rays" />
|
||||
@endif
|
||||
</figure>
|
||||
@endif
|
||||
</div>
|
||||
@@ -1,19 +1,47 @@
|
||||
{{-- Bild und Text. Varianten: image_left, image_right. Einstellungen: Bildformat und Bildausschnitt. --}}
|
||||
<div class="image-text image-text-{{ $variant === 'image_right' ? 'right' : 'left' }} @unless ($imageUrl) image-text-no-image @endunless image-format-{{ $format }}" style="--image-focus: {{ $focus }}">
|
||||
@if ($imageUrl)
|
||||
<figure class="image-text-figure">
|
||||
<img src="{{ $imageUrl }}" alt="{{ $data['alt'] ?? '' }}" @if (! empty($first)) loading="eager" fetchpriority="high" @else loading="lazy" @endif decoding="async">
|
||||
</figure>
|
||||
@endif
|
||||
<div class="image-text-copy">
|
||||
@if (filled($data['title'] ?? null))
|
||||
@if (! empty($first))
|
||||
<h1>{{ $data['title'] }}</h1>
|
||||
@else
|
||||
<h2>{{ $data['title'] }}</h2>
|
||||
{{--
|
||||
Premium-Bild-und-Text (Brand-UI-Kit v1.6, Komponente lf-bild-text), angepasst an die Widget-Hülle der Registry.
|
||||
Darstellung nach tatsächlicher Containerbreite: unter 540 px gestapelt, 540–899 px flacher Bildstreifen,
|
||||
ab 900 px zweispaltig mit Bild links oder rechts (Variante). Die Höhe ändert Bildproportion und Abstände,
|
||||
nie die zulässige Textmenge. Der Text ist bereits bereinigter formatierter Text (RichText::sanitize).
|
||||
--}}
|
||||
@php
|
||||
$side = $variant === 'image_left' ? 'left' : 'right';
|
||||
$heightClass = in_array($height, ['compact', 'normal', 'spacious'], true) ? $height : 'normal';
|
||||
$tag = \App\Domain\Cms\Widgets\Support\PremiumFields::headingTag($settings, ! empty($first));
|
||||
@endphp
|
||||
<div class="lf-bt-host">
|
||||
<div @class([
|
||||
'lf-bt',
|
||||
'lf-bt--'.$surface,
|
||||
'lf-bt--image-'.$side,
|
||||
'lf-bt--height-'.$heightClass,
|
||||
'lf-bt--without-image' => ! $imageUrl,
|
||||
]) style="--bt-focus-x: {{ $focus['x'] }}%; --bt-focus-y: {{ $focus['y'] }}%">
|
||||
<div class="lf-bt__copy">
|
||||
@if (filled($data['eyebrow'] ?? null))
|
||||
<p class="lf-bt__eyebrow">{{ $data['eyebrow'] }}</p>
|
||||
@endif
|
||||
<x-brand.underline class="image-text-mark" />
|
||||
@if (filled($data['title'] ?? null))
|
||||
<{{ $tag }} class="lf-bt__headline">{{ $data['title'] }}</{{ $tag }}>
|
||||
<span class="lf-bt__accent" aria-hidden="true"></span>
|
||||
@endif
|
||||
<div class="lf-bt__body">{!! $body !!}</div>
|
||||
@if ($actions !== [])
|
||||
<div class="lf-bt__actions">
|
||||
@foreach ($actions as $index => $item)
|
||||
@if ($index === 0)
|
||||
<a class="lf-bt__button" href="{{ $item['url'] }}">{{ $item['label'] }} <span aria-hidden="true">→</span></a>
|
||||
@else
|
||||
<a class="lf-bt__button lf-bt__button--secondary" href="{{ $item['url'] }}">{{ $item['label'] }}</a>
|
||||
@endif
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
@if ($imageUrl)
|
||||
<div class="lf-bt__media">
|
||||
<img class="lf-bt__image" src="{{ $imageUrl }}" alt="{{ $data['alt'] ?? '' }}" @if (! empty($first)) loading="eager" fetchpriority="high" @else loading="lazy" @endif decoding="async">
|
||||
</div>
|
||||
@endif
|
||||
<div class="prose">{!! $body !!}</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in new issue
Block a user