{{-- 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. --}} @php $variant = in_array($variant, ['standard', 'highlight', 'stage', 'editorial'], true) ? $variant : 'standard'; $headingTag = ! empty($first) ? 'h1' : 'h2'; $loading = ! empty($first) ? 'loading="eager" fetchpriority="high"' : 'loading="lazy"'; @endphp
$imageUrl, 'hero-text-left' => $variant === 'stage' && $textSide === 'left', ]) style="--hero-focus: {{ $focus }}"> @if ($imageUrl && $variant === 'stage')
{{ $data['alt'] ?? '' }}
@endif
@if ($variant === 'stage' || $variant === 'highlight') @endif <{{ $headingTag }}>{{ $data['heading'] ?? '' }} @if (filled($data['text'] ?? null))

{{ $data['text'] }}

@endif @if ($actions !== []) @endif
@if ($imageUrl && $variant !== 'stage')
{{ $data['alt'] ?? '' }} @if ($variant === 'standard') @endif
@endif