Titelvideo, Rundgang mit Kapiteln, naechste freie Termine, ruhigere Buchungsseite

- Webseite > Videos (Datei, Standbild, Kapitel mit Raum im Grundriss); Upload bis 100 MB
- Titelbereich: Video statt Foto (stumme Schleife, respektiert Bewegung reduzieren/Save-Data)
  und naechste freie Termine mit Gesamtpreis (NextFreeStays)
- Neuer Baustein Rundgang (Video) mit waehlbarer Anordnung; Grundriss springt ins Video
- Buchungsseite: Preis unter dem Kalender, Formular rechts, Ablauf als Grafik
- Seebad: Fahrkarten, Fahrplan-Kapitel, Sonnenaufgang als einmaliges Ereignis

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
LarsandClaude Opus 5.5 committed 2026-10-30 11:01:52 +01:00
1 parent f5f18cd984
commit d42c42059c
38 files changed
+1279 -23

No files matched your search

@@ -1,6 +1,17 @@
<section class="mx-auto max-w-7xl px-4 py-12 sm:px-8" aria-labelledby="{{ $sectionId }}-title">
@if ($heading)<h1 id="{{ $sectionId }}-title" class="heading-display">{{ $heading }}</h1>@endif
@if ($text)<p class="mt-3 max-w-2xl text-muted">{{ $text }}</p>@endif
@if ($showSteps ?? false)
<ol class="mt-8 grid gap-4 sm:grid-cols-3" aria-label="So läuft Ihre Buchung ab">
@foreach ($steps as $title => $explanation)
<li class="rounded border border-line bg-surface p-4">
<span class="font-display text-2xl text-accent">{{ $loop->iteration }}</span>
<strong class="mt-1 block">{{ $title }}</strong>
<span class="text-sm text-muted">{{ $explanation }}</span>
</li>
@endforeach
</ol>
@endif
<div class="mt-8">
@if ($property)
<livewire:booking-request :property="$property" />
@@ -1,6 +1,8 @@
{{--
Contract: $heading, $text, $photo (App\Models\Photo, the plan picture), $rooms (Collection of arrays: key, name,
description, hint, points = "x,y x,y …" in percent of the picture, photos = Collection<Photo>, amenities = Collection<string>).
description, hint, points = "x,y x,y …" in percent of the picture, photos = Collection<Photo>, amenities = Collection<string>,
videoChapter = chapter of a tour video showing the room: seconds, time, label – or null). The link [data-tour-link] stays
hidden unless a tour section (data-tour) is on the same page.
Base version without JavaScript: the areas on the plan jump to the room descriptions below.
--}}
@if ($photo && $rooms->isNotEmpty())
@@ -35,6 +37,9 @@
</ul>
@endif
@if ($room['hint'])<p class="mt-3 border-l-2 border-accent pl-3 text-sm">{{ $room['hint'] }}</p>@endif
@if ($room['videoChapter'] ?? null)
<a href="#" hidden data-tour-link="{{ $room['videoChapter']['seconds'] }}" class="mt-3 inline-flex min-h-12 items-center gap-2 font-semibold underline underline-offset-4"><x-heroicon-s-play class="size-5" aria-hidden="true" />Im Rundgang ansehen ({{ $room['videoChapter']['time'] }})</a>
@endif
</li>
@endforeach
</ul>
@@ -1,6 +1,10 @@
<section class="mx-auto max-w-[86rem] px-4" aria-labelledby="{{ $sectionId }}-title">
<div class="relative overflow-hidden rounded">
@include('theme::partials.image', ['photo' => $photo, 'class' => 'h-[30rem] w-full object-cover sm:h-[40rem]', 'eager' => true])
@if ($video ?? null)
@include('theme::partials.video-loop', ['video' => $video, 'class' => 'h-[30rem] w-full object-cover sm:h-[40rem]', 'buttonClass' => 'absolute top-4 right-4'])
@else
@include('theme::partials.image', ['photo' => $photo, 'class' => 'h-[30rem] w-full object-cover sm:h-[40rem]', 'eager' => true])
@endif
<div class="bg-ground p-7 sm:absolute sm:bottom-12 sm:left-12 sm:max-w-xl sm:p-11 sm:pb-9">
@if ($eyebrow)<p class="eyebrow">{{ $eyebrow }}</p>@endif
<h1 id="{{ $sectionId }}-title" class="font-display text-[2.5rem] leading-[1.02] font-medium sm:text-[3.5rem]">{!! preg_replace('/\*(.+?)\*/u', '<em>$1</em>', e($title)) !!}</h1>
@@ -16,6 +20,9 @@
</span>
</a>
@endif
@if ($freeStays ?? [])
<div class="mt-5">@include('theme::partials.free-stays', ['freeStays' => $freeStays])</div>
@endif
</div>
</div>
</section>
@@ -0,0 +1,34 @@
{{--
Contract: $eyebrow, $heading, $text, $video (App\Models\Video|null), $chapters (list: seconds, time, label, room),
$layout (wide|left|right). The video has native controls and loads only when started (preload="none").
theme.js (initTours): [data-tour], [data-tour-start] (start overlay), [data-tour-seek="<seconds>"] (chapter buttons,
hidden without JavaScript). Floor plan rooms link here with [data-tour-link="<seconds>"].
--}}
@if ($video)
<section class="mx-auto max-w-7xl px-4 py-16 sm:px-8" aria-labelledby="{{ $sectionId }}-title" data-tour>
<div @class(['grid items-center gap-10', 'lg:grid-cols-[3fr_2fr]' => $layout === 'left', 'lg:grid-cols-[2fr_3fr]' => $layout === 'right'])>
<div @class(['relative overflow-hidden rounded bg-ink', 'lg:order-2' => $layout === 'right'])>
<video class="aspect-video w-full" controls playsinline preload="none" poster="{{ $video->posterUrl() }}" aria-label="Video: {{ $video->title }}">
<source src="{{ $video->url() }}" type="{{ $video->mimeType() }}">
</video>
<button type="button" data-tour-start hidden class="absolute inset-0 flex items-center justify-center bg-ink/20 hover:bg-ink/30">
<span class="inline-flex min-h-14 items-center gap-3 rounded-full bg-ground px-7 font-semibold text-ink"><x-heroicon-s-play class="size-6" aria-hidden="true" />Rundgang starten</span>
</button>
</div>
<div @class(['lg:order-1' => $layout === 'right', 'order-first' => $layout === 'wide'])>
@if ($eyebrow)<p class="eyebrow">{{ $eyebrow }}</p>@endif
@if ($heading)<h2 id="{{ $sectionId }}-title" class="font-display text-[2rem] leading-tight sm:text-[2.5rem]">{{ $heading }}</h2>@endif
@if ($text)<p class="mt-4 max-w-[60ch] text-muted">{{ $text }}</p>@endif
@if ($chapters !== [])
<ul class="mt-6 flex flex-wrap gap-2" hidden data-tour-chapters aria-label="Kapitel">
@foreach ($chapters as $chapter)
<li><button type="button" data-tour-seek="{{ $chapter['seconds'] }}" class="inline-flex min-h-12 items-center gap-2 rounded border border-line bg-surface px-4 hover:border-accent aria-[current=true]:border-accent aria-[current=true]:bg-accent aria-[current=true]:text-accent-ink">
<span class="text-sm tabular-nums text-muted">{{ $chapter['time'] }}</span> {{ $chapter['label'] }}
</button></li>
@endforeach
</ul>
@endif
</div>
</div>
</section>
@endif