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

+95
View File
@@ -68,3 +68,98 @@ document.querySelectorAll('[data-rotator]').forEach((rotator) => {
setInterval(() => { if (!paused && !document.hidden) show(current + 1); }, 7000);
}
});
const reducedMotion = () => window.matchMedia('(prefers-reduced-motion: reduce)').matches;
// Silent video loops (partials/video-loop): loaded only with motion allowed and without Save-Data, playing while
// visible; the button pauses and resumes. Otherwise the poster stays and nothing is downloaded.
document.querySelectorAll('[data-video-loop]').forEach((box) => {
const video = box.querySelector('video');
const toggle = box.querySelector('[data-video-toggle]');
if (!video?.dataset.src || reducedMotion() || navigator.connection?.saveData) {
return;
}
let stopped = false;
const play = () => video.play().catch(() => {});
video.src = video.dataset.src;
video.preload = 'auto';
toggle.hidden = false;
toggle.addEventListener('click', () => {
stopped = !stopped;
stopped ? video.pause() : play();
const label = stopped ? 'Video abspielen' : 'Video anhalten';
toggle.setAttribute('aria-pressed', String(stopped));
toggle.setAttribute('aria-label', label);
toggle.title = label;
toggle.querySelector('[data-icon-pause]').classList.toggle('hidden', stopped);
toggle.querySelector('[data-icon-play]').classList.toggle('hidden', !stopped);
});
new IntersectionObserver(([entry]) => {
entry.isIntersecting && !stopped ? play() : video.pause();
}).observe(video);
});
// Video tour (sections/tour): start overlay, chapter buttons, highlighting the current chapter; floor plan rooms
// with [data-tour-link] jump into the tour on the same page. Without JavaScript the native controls remain.
const tour = document.querySelector('[data-tour]');
if (tour) {
const video = tour.querySelector('video');
const start = tour.querySelector('[data-tour-start]');
const seeks = [...tour.querySelectorAll('[data-tour-seek]')];
const playFrom = (seconds) => {
start.hidden = true;
const go = () => {
if (seconds !== null) {
video.currentTime = seconds;
}
video.play().catch(() => {});
};
video.readyState >= 1 ? go() : video.addEventListener('loadedmetadata', go, { once: true });
if (video.readyState < 1) {
video.load();
}
};
start.hidden = false;
start.addEventListener('click', () => playFrom(null));
video.addEventListener('play', () => { start.hidden = true; });
tour.querySelector('[data-tour-chapters]')?.removeAttribute('hidden');
seeks.forEach((button) => button.addEventListener('click', () => playFrom(Number(button.dataset.tourSeek))));
video.addEventListener('timeupdate', () => {
const current = seeks.filter((button) => Number(button.dataset.tourSeek) <= video.currentTime + 0.25).pop();
seeks.forEach((button) => (button === current ? button.setAttribute('aria-current', 'true') : button.removeAttribute('aria-current')));
});
document.querySelectorAll('[data-tour-link]').forEach((link) => {
link.hidden = false;
link.addEventListener('click', (event) => {
event.preventDefault();
tour.scrollIntoView({ behavior: reducedMotion() ? 'auto' : 'smooth', block: 'center' });
playFrom(Number(link.dataset.tourLink));
});
});
}
// One-time reveal of a graphic when it scrolls into view (e.g. the sunrise of theme Seebad): the theme's CSS
// styles [data-reveal="ready"] (start) and the transition to [data-reveal="shown"]. Without JavaScript or with
// reduced motion the graphic is simply shown.
if (!reducedMotion() && 'IntersectionObserver' in window) {
const reveal = new IntersectionObserver((entries) => {
entries.filter((entry) => entry.isIntersecting).forEach((entry) => {
entry.target.dataset.reveal = 'shown';
reveal.unobserve(entry.target);
});
}, { threshold: 0.6 });
document.querySelectorAll('[data-reveal]').forEach((element) => {
if (element.getBoundingClientRect().top < window.innerHeight * 0.85) {
element.dataset.reveal = 'ready';
requestAnimationFrame(() => requestAnimationFrame(() => { element.dataset.reveal = 'shown'; }));
return;
}
element.dataset.reveal = 'ready';
reveal.observe(element);
});
}
@@ -0,0 +1,18 @@
{{--
Next free dates of the hero section. Variables: $freeStays (list of arrival, departure, nights, total, url).
--}}
@if ($freeStays !== [])
<div>
<h2 class="text-sm font-semibold text-muted">Nächste freie Termine</h2>
<ul class="mt-2 flex flex-wrap gap-2">
@foreach ($freeStays as $stay)
<li>
<a href="{{ $stay['url'] }}" class="inline-flex min-h-12 flex-col justify-center rounded border border-line bg-surface px-4 py-1.5 hover:border-accent">
<span class="font-semibold">{{ $stay['arrival']->format('d.m.') }}–{{ $stay['departure']->format('d.m.') }}</span>
<span class="text-sm text-muted">{{ $stay['nights'] }} Nächte · {{ \App\Support\Money::format($stay['total']) }}</span>
</a>
</li>
@endforeach
</ul>
</div>
@endif
@@ -0,0 +1,15 @@
{{--
Silent video loop in place of a photo (hero). Variables: $video (App\Models\Video), $class (sizes the <video>),
$wrapperClass and $buttonClass (optional: sizes the wrapper, positions the pause button). theme.js loads and
plays it; with "reduce motion", Save-Data or without JavaScript only the poster is shown – nothing is downloaded.
--}}
<div class="relative {{ $wrapperClass ?? '' }}" data-video-loop>
<video class="{{ $class ?? '' }}" muted loop playsinline disablepictureinpicture preload="none"
poster="{{ $video->posterUrl() }}" data-src="{{ $video->url() }}" data-type="{{ $video->mimeType() }}"
aria-label="Video: {{ $video->title }}"></video>
<button type="button" data-video-toggle hidden aria-pressed="false" aria-label="Video anhalten" title="Video anhalten"
class="{{ $buttonClass ?? 'absolute right-4 bottom-4' }} inline-flex size-12 items-center justify-center rounded-full bg-ink/70 text-ground backdrop-blur-sm hover:bg-ink focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ground">
<x-heroicon-s-pause class="size-5" data-icon-pause aria-hidden="true" />
<x-heroicon-s-play class="hidden size-5" data-icon-play aria-hidden="true" />
</button>
</div>
@@ -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
+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
@@ -93,11 +93,9 @@
</div>
@error('arrival') <p class="mt-2 text-sm text-rose-700" role="alert">{{ $message }}</p> @enderror
@error('departure') <p class="mt-2 text-sm text-rose-700" role="alert">{{ $message }}</p> @enderror
</section>
{{-- Price and form --}}
<section class="lg:col-span-2" aria-labelledby="price-heading">
<div class="rounded border border-line bg-surface p-5" aria-live="polite">
{{-- Price next to the calendar it depends on; the form fills the other column (no half-empty page). --}}
<div class="mt-6 rounded border border-line bg-surface p-5" aria-live="polite">
<h2 id="price-heading" class="text-lg font-semibold text-ink">Ihr Preis</h2>
@php($pricing = $this->pricing)
@@ -157,9 +155,12 @@
<input type="text" wire:model.live.debounce.600ms="promoCode" autocomplete="off" class="mt-1 w-full rounded-lg border-line">
</label>
</div>
</section>
<form wire:submit="submit" class="mt-6 rounded border border-line bg-surface p-5" novalidate>
<h2 class="text-lg font-semibold text-ink">Unverbindlich anfragen</h2>
{{-- Request form --}}
<section class="lg:sticky lg:top-6 lg:col-span-2 lg:self-start" aria-labelledby="request-heading">
<form wire:submit="submit" class="rounded border border-line bg-surface p-5" novalidate>
<h2 id="request-heading" class="text-lg font-semibold text-ink">Unverbindlich anfragen</h2>
<div class="mt-4 grid gap-4 sm:grid-cols-2">
@foreach ([