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

+55
View File
@@ -105,6 +105,33 @@ @layer components {
}
}
/*
* Fahrkarte der Bäderbahn: nächste freie Termine im Titelbereich. Seitliche Kerben und Perforation
* machen aus einem Link eine Karte, die man „lösen“ möchte.
*/
.ticket {
@apply relative flex min-h-14 flex-wrap items-baseline gap-x-4 gap-y-0.5 border-2 border-ink bg-surface py-3 pr-4 pl-7 transition hover:bg-ink/5 focus-visible:outline-3 focus-visible:outline-offset-2 focus-visible:outline-accent;
mask: radial-gradient(circle 0.5rem at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
radial-gradient(circle 0.5rem at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
}
.ticket::before {
@apply absolute top-2 bottom-2 left-3.5 border-l-2 border-dashed border-[var(--brand-reed)] content-[''];
}
/* Fahrplan: Kapitel des Rundgangs mit Uhrzeit, Punktlinie und Halt. */
.timetable-stop {
@apply flex min-h-12 w-full items-baseline gap-3 py-2 text-left text-lg hover:text-accent;
}
.timetable-stop::after {
@apply order-2 min-w-6 flex-1 border-b-2 border-dotted border-line content-[''];
}
.timetable-stop[aria-current='true'] {
@apply font-semibold text-accent;
}
/* Kartusche: Doppelrahmen, Rundbogengaube als Kopf, Kopfbänder der Terrassen als Eckkonsolen. */
.cartouche {
@apply relative border-2 border-ink bg-surface outline outline-1 -outline-offset-[10px] outline-[var(--brand-reed)];
@@ -113,6 +140,34 @@ @layer components {
/* Ruhige Bewegung der Bildwelt – nur ohne „Bewegung reduzieren“. */
@media (prefers-reduced-motion: no-preference) {
/*
* Sonnenaufgang (Trenner unter dem Titelbereich), einmal beim Hinscrollen: theme.js setzt data-reveal="ready"
* und später "shown". Ohne JavaScript steht die Grafik fertig da.
*/
/* cy, not transform: the horizon clip-path lives in the circle's own coordinates and would move along. */
[data-reveal='ready'] .motif-sunrise circle {
cy: 150px;
}
[data-reveal='ready'] .motif-sunrise > path {
clip-path: inset(0 50% 0 50%);
}
[data-reveal='ready'] .motif-sunrise g {
opacity: 0;
}
[data-reveal] .motif-sunrise circle {
transition: cy 2.4s cubic-bezier(0.22, 1, 0.36, 1) 0.5s;
}
[data-reveal] .motif-sunrise > path {
transition: clip-path 1.8s cubic-bezier(0.65, 0, 0.35, 1);
}
[data-reveal] .motif-sunrise g {
transition: opacity 1.2s ease 1.6s;
}
.motif-drift {
animation: motif-drift 16s ease-in-out infinite alternate;
}
@@ -0,0 +1,19 @@
{{--
Next free dates as tickets of the Bäderbahn (seebad). Variables: $freeStays (list of arrival, departure, nights, total, url).
--}}
@if ($freeStays !== [])
<div>
<h2 class="text-lg font-semibold">Nächste freie Termine</h2>
<ul class="mt-3 grid gap-2.5">
@foreach ($freeStays as $stay)
<li class="@container">
<a href="{{ $stay['url'] }}" class="ticket" aria-label="{{ $stay['arrival']->format('d.m.') }} bis {{ $stay['departure']->format('d.m.Y') }}, {{ $stay['nights'] }} Nächte, {{ \App\Support\Money::format($stay['total']) }} – anfragen">
<span class="font-display text-[1.375rem] leading-tight whitespace-nowrap">{{ $stay['arrival']->format('d.m.') }}–{{ $stay['departure']->format('d.m.') }}</span>
<span class="order-3 basis-full text-muted @sm:order-none @sm:basis-auto">{{ $stay['nights'] }} Nächte</span>
<span class="ml-auto font-semibold whitespace-nowrap">{{ \App\Support\Money::format($stay['total']) }}</span>
</a>
</li>
@endforeach
</ul>
</div>
@endif
@@ -8,7 +8,22 @@
<a href="tel:{{ preg_replace('/[^0-9+]/', '', $phone) }}" class="inline-flex items-center gap-2 font-semibold underline underline-offset-4 hover:text-accent"><x-heroicon-o-phone class="size-5" aria-hidden="true" />{{ $phone }}</a>
</p>
@endif
<div class="mt-10">
@if ($showSteps ?? false)
{{-- The booking path as a line with three stations – a real sequence, so the numbers carry meaning. --}}
<ol class="relative mt-10 grid gap-7 sm:grid-cols-3 sm:gap-6" aria-label="So läuft Ihre Buchung ab">
<span class="absolute top-7 right-[16.66%] left-[16.66%] hidden h-1.5 border-y-2 border-ink sm:block" aria-hidden="true"></span>
@foreach ($steps as $title => $explanation)
<li class="relative flex gap-4 sm:flex-col sm:items-center sm:text-center">
<span class="flex size-14 shrink-0 items-center justify-center rounded-full border-2 border-ink bg-surface font-display text-[1.75rem] leading-none outline outline-1 -outline-offset-[6px] outline-[var(--brand-reed)]">{{ $loop->iteration }}</span>
<span>
<strong class="block text-lg">{{ $title }}</strong>
<span class="block max-w-[32ch] text-muted">{{ $explanation }}</span>
</span>
</li>
@endforeach
</ol>
@endif
<div class="mt-12">
@if ($property)
<livewire:booking-request :property="$property" />
@else
@@ -52,6 +52,9 @@ class="inline-flex min-h-12 items-center rounded-full border-2 border-ink bg-sur
</ul>
@endif
@if ($room['hint'])<p class="mt-5 border-l-[3px] border-accent bg-ground px-4 py-3">{{ $room['hint'] }}</p>@endif
@if ($room['videoChapter'] ?? null)
<a href="#" hidden data-tour-link="{{ $room['videoChapter']['seconds'] }}" class="btn-outline mt-5 gap-2"><x-heroicon-s-play class="size-5" aria-hidden="true" />Im Rundgang ansehen <span class="font-normal tabular-nums">{{ $room['videoChapter']['time'] }}</span></a>
@endif
@if ($room['photos']->count() > 1)
<ul class="mt-5 grid grid-cols-3 gap-2">
@foreach ($room['photos']->skip(1) as $more)
@@ -1,6 +1,10 @@
<section class="mx-auto flex max-w-7xl flex-wrap items-stretch gap-x-12 gap-y-7 px-4 pt-2 pb-6 sm:px-8" aria-labelledby="{{ $sectionId }}-title">
<div class="relative min-w-0 flex-[999_1_28rem] p-2">
@include('theme::partials.image', ['photo' => $photo, 'sizes' => '(min-width: 1024px) 60vw, 100vw', 'class' => 'arch h-[21rem] w-full object-cover sm:h-[30rem] lg:h-[38rem]', 'eager' => true])
<div class="relative flex min-w-0 flex-[999_1_28rem] flex-col p-2">
@if ($video ?? null)
@include('theme::partials.video-loop', ['video' => $video, 'class' => 'arch block h-[21rem] w-full object-cover sm:h-[30rem] lg:h-full lg:min-h-[38rem]', 'wrapperClass' => 'lg:flex-1', 'buttonClass' => 'absolute right-5 bottom-5'])
@else
@include('theme::partials.image', ['photo' => $photo, 'sizes' => '(min-width: 1024px) 60vw, 100vw', 'class' => 'arch h-[21rem] w-full object-cover sm:h-[30rem] lg:h-auto lg:min-h-[38rem] lg:flex-1', 'eager' => true])
@endif
<span class="keystone" aria-hidden="true"></span>
</div>
@@ -21,6 +25,8 @@
</a>
@endif
@include('theme::partials.free-stays', ['freeStays' => $freeStays ?? []])
@if ($showSearch)
<form action="{{ route('booking.create') }}" method="get" data-availability-search aria-label="Verfügbarkeit prüfen"
class="relative grid grid-cols-2 items-end gap-3.5 border-2 border-ink bg-surface p-5 pt-7 sm:p-7 sm:pt-8">
@@ -45,6 +51,6 @@ class="relative grid grid-cols-2 items-end gap-3.5 border-2 border-ink bg-surfac
</div>
</section>
<div class="overflow-hidden" aria-hidden="true">
@include('theme::partials.motif', ['slot' => 'divider', 'class' => 'motif-drift -ml-[40%] block h-auto w-[180%] max-w-none sm:mx-auto sm:w-full sm:max-w-7xl'])
<div class="overflow-hidden" aria-hidden="true" data-reveal>
@include('theme::partials.motif', ['slot' => 'divider', 'class' => 'motif-sunrise -ml-[40%] block h-auto w-[180%] max-w-none sm:mx-auto sm:w-full sm:max-w-7xl'])
</div>
@@ -0,0 +1,50 @@
{{--
Contract: see ostsee-licht/views/sections/tour.blade.php. Seebad: heading and text span the width, below them the
video in the double frame of the house next to the chapters as a timetable of the Bäderbahn (stop, dots, time) –
both about the same height, so neither column leaves a gap.
--}}
@if ($video)
<section class="mx-auto max-w-7xl px-4 py-14 sm:px-8 sm:py-20" aria-labelledby="{{ $sectionId }}-title" data-tour>
<div class="flex flex-wrap items-end gap-x-14 gap-y-4">
<div class="min-w-0 flex-[1_1_26rem]">
@if ($eyebrow)<p class="eyebrow">{{ $eyebrow }}</p>@endif
@if ($heading)<h2 id="{{ $sectionId }}-title" class="heading-display">{{ $heading }}</h2>@endif
</div>
@if ($text)<p class="min-w-0 max-w-[52ch] flex-[1_1_22rem] text-muted">{{ $text }}</p>@endif
</div>
<div class="mt-10 flex flex-wrap items-start gap-x-12 gap-y-8">
<div @class(['relative min-w-0 border-2 border-ink bg-surface p-2.5 sm:p-3.5', 'flex-[999_1_34rem]' => $layout !== 'wide', 'w-full' => $layout === 'wide', 'order-2' => $layout === 'right'])>
<span class="absolute -top-0.5 -left-0.5 z-10" aria-hidden="true">@include('theme::partials.motif', ['slot' => 'bracket', 'class' => 'size-10'])</span>
<span class="absolute -top-0.5 -right-0.5 z-10 -scale-x-100" aria-hidden="true">@include('theme::partials.motif', ['slot' => 'bracket', 'class' => 'size-10'])</span>
<div class="relative bg-ink">
<video class="block 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="group absolute inset-0 flex flex-col items-center justify-center gap-4 bg-ink/25 text-ground transition hover:bg-ink/35">
<span class="flex size-20 items-center justify-center rounded-full bg-ground text-ink shadow-lg transition group-hover:scale-105 sm:size-24">
<x-heroicon-s-play class="ml-1 size-9 sm:size-11" aria-hidden="true" />
</span>
<span class="sr-only rounded-full bg-ink/75 px-5 py-2 text-lg font-semibold sm:not-sr-only">Rundgang starten</span>
</button>
</div>
</div>
@if ($chapters !== [])
<div @class(['min-w-0', 'flex-[1_1_18rem]' => $layout !== 'wide', 'w-full' => $layout === 'wide']) hidden data-tour-chapters>
<h3 class="text-base font-semibold text-muted">Springen Sie zu</h3>
<ol @class(['mt-2 border-t-2 border-ink', 'gap-x-10 sm:columns-2 lg:columns-3' => $layout === 'wide'])>
@foreach ($chapters as $chapter)
<li class="break-inside-avoid border-b border-line">
<button type="button" class="timetable-stop" data-tour-seek="{{ $chapter['seconds'] }}">
<span class="order-1">{{ $chapter['label'] }}</span>
<span class="order-3 font-display tabular-nums">{{ $chapter['time'] }}</span>
</button>
</li>
@endforeach
</ol>
</div>
@endif
</div>
</section>
@endif