Theme-System mit Basis-Theme Ostsee-Licht, Bausteinen und saisonalen Erscheinungsbildern

- Sites (Domain, Theme, Farben; mehrfähig für weitere Vermieter), Seiten aus Bausteinen mit Menüs, Erscheinungsbilder mit jährlichem Zeitplan, Priorität und signierter Vorschau
- Theme-Kern (app/Themes): Manifest, Registry, Vererbung (Child-Themes), Token-Farben als CSS-Variablen, Bausteinkatalog als Registry (config/themes.php)
- 15 Bausteine: Titelbereich mit Suche, Eckdaten, Text mit Bildern, Galerie, Ausstattung, Lage, Preise, Angebote, Kalender & Anfrage, Bewertungen, Gastgeber, FAQ, Abschluss, Kontakt, Fließtext
- Theme Ostsee-Licht: Layout, Kopf/Fuß, Banner, mobile Buchungsleiste, Lightbox, selbst gehostete Schriften, Reduced Motion
- Seiten Start, Wohnung, Kühlungsborn, Preise & Buchung, Kontakt, Impressum, Datenschutz; Sitemap, robots.txt, JSON-LD
- Admin: Seiten-Baukasten, Erscheinungsbilder, Websites
- Dokumentation docs/THEMES.md inkl. Übergabe für die Design-Sitzung

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Lars StommerandClaude Opus 5.5 committed 2026-10-22 15:04:21 +02:00
1 parent f2c48013ad
commit 66e82d61f5
119 files changed
+4066 -481

No files matched your search

@@ -1,6 +1,6 @@
<div>
@if ($booking)
<div class="rounded-2xl border border-emerald-200 bg-emerald-50 p-8" role="status">
<div class="rounded border border-emerald-200 bg-emerald-50 p-8" role="status">
<h2 class="text-2xl font-semibold text-emerald-900">Vielen Dank, {{ $booking->guest->first_name }}!</h2>
<p class="mt-3 text-emerald-900">
Ihre Anfrage <strong>{{ $booking->reference }}</strong> ist eingegangen. Wir haben den Zeitraum
@@ -13,22 +13,22 @@
<div class="grid gap-8 lg:grid-cols-5">
{{-- Calendar --}}
<section class="lg:col-span-3" aria-labelledby="calendar-heading">
<div class="rounded-2xl border border-slate-200 bg-white p-5 shadow-sm">
<div class="rounded border border-line bg-surface p-5">
<div class="flex items-center justify-between">
<h2 id="calendar-heading" class="text-lg font-semibold text-sea-900">Belegung</h2>
<h2 id="calendar-heading" class="text-lg font-semibold text-ink">Belegung</h2>
<div class="flex gap-2">
<button type="button" wire:click="previousMonth" class="rounded-lg border border-slate-200 px-3 py-1.5 text-sm hover:bg-slate-50" aria-label="Vorheriger Monat">‹</button>
<button type="button" wire:click="nextMonth" class="rounded-lg border border-slate-200 px-3 py-1.5 text-sm hover:bg-slate-50" aria-label="Nächster Monat">›</button>
<button type="button" wire:click="previousMonth" class="rounded-lg border border-line px-3 py-1.5 text-sm hover:bg-accent/10" aria-label="Vorheriger Monat">‹</button>
<button type="button" wire:click="nextMonth" class="rounded-lg border border-line px-3 py-1.5 text-sm hover:bg-accent/10" aria-label="Nächster Monat">›</button>
</div>
</div>
<div class="mt-4 grid gap-6 sm:grid-cols-2">
@foreach ($this->calendar as $month)
<div wire:key="month-{{ $month['label'] }}">
<h3 class="mb-2 text-center text-sm font-semibold text-slate-700">{{ $month['label'] }}</h3>
<h3 class="mb-2 text-center text-sm font-semibold text-ink">{{ $month['label'] }}</h3>
<table class="w-full table-fixed text-center text-sm">
<thead>
<tr class="text-xs text-slate-400">
<tr class="text-xs text-muted">
@foreach (['Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa', 'So'] as $weekday)
<th scope="col" class="pb-1 font-medium">{{ $weekday }}</th>
@endforeach
@@ -47,11 +47,11 @@
aria-label="{{ \Carbon\CarbonImmutable::parse($day['date'])->translatedFormat('l, d. F Y') }}{{ $day['free'] ? '' : ' (Nacht belegt)' }}"
@class([
'aspect-square w-full rounded-lg text-sm transition',
'cursor-not-allowed text-slate-300' => $day['past'],
'bg-sea-700 font-semibold text-white' => $day['selected'],
'bg-sea-100 text-sea-900' => $day['inRange'] && ! $day['selected'],
'cursor-not-allowed text-muted/40' => $day['past'],
'bg-accent font-semibold text-accent-ink' => $day['selected'],
'bg-accent/15 text-ink' => $day['inRange'] && ! $day['selected'],
'bg-rose-100 text-rose-800 line-through decoration-rose-300' => ! $day['free'] && ! $day['past'] && ! $day['selected'],
'hover:bg-sea-50' => $day['free'] && ! $day['past'] && ! $day['selected'] && ! $day['inRange'],
'hover:bg-accent/10' => $day['free'] && ! $day['past'] && ! $day['selected'] && ! $day['inRange'],
])>
{{ $day['day'] }}
</button>
@@ -66,25 +66,25 @@
@endforeach
</div>
<div class="mt-4 flex flex-wrap gap-4 text-xs text-slate-500">
<span class="flex items-center gap-1.5"><span class="inline-block size-3 rounded bg-white ring-1 ring-slate-300"></span> frei</span>
<div class="mt-4 flex flex-wrap gap-4 text-xs text-muted">
<span class="flex items-center gap-1.5"><span class="inline-block size-3 rounded bg-surface ring-1 ring-line"></span> frei</span>
<span class="flex items-center gap-1.5"><span class="inline-block size-3 rounded bg-rose-100"></span> Nacht belegt (Abreise möglich)</span>
<span class="flex items-center gap-1.5"><span class="inline-block size-3 rounded bg-sea-700"></span> Ihre Auswahl</span>
<span class="flex items-center gap-1.5"><span class="inline-block size-3 rounded bg-accent"></span> Ihre Auswahl</span>
</div>
</div>
<div class="mt-4 grid gap-4 sm:grid-cols-3">
<label class="block text-sm">
<span class="font-medium text-slate-700">Anreise</span>
<input type="date" wire:model.live="arrival" min="{{ today()->toDateString() }}" class="mt-1 w-full rounded-lg border-slate-300">
<span class="font-medium text-ink">Anreise</span>
<input type="date" wire:model.live="arrival" min="{{ today()->toDateString() }}" class="mt-1 w-full rounded-lg border-line">
</label>
<label class="block text-sm">
<span class="font-medium text-slate-700">Abreise</span>
<input type="date" wire:model.live="departure" min="{{ $arrival ?? today()->toDateString() }}" class="mt-1 w-full rounded-lg border-slate-300">
<span class="font-medium text-ink">Abreise</span>
<input type="date" wire:model.live="departure" min="{{ $arrival ?? today()->toDateString() }}" class="mt-1 w-full rounded-lg border-line">
</label>
<label class="block text-sm">
<span class="font-medium text-slate-700">Personen</span>
<select wire:model.live="guests" class="mt-1 w-full rounded-lg border-slate-300">
<span class="font-medium text-ink">Personen</span>
<select wire:model.live="guests" class="mt-1 w-full rounded-lg border-line">
@for ($count = 1; $count <= $this->property->max_guests; $count++)
<option value="{{ $count }}">{{ $count }}</option>
@endfor
@@ -97,15 +97,15 @@
{{-- Price and form --}}
<section class="lg:col-span-2" aria-labelledby="price-heading">
<div class="rounded-2xl border border-slate-200 bg-white p-5 shadow-sm" aria-live="polite">
<h2 id="price-heading" class="text-lg font-semibold text-sea-900">Ihr Preis</h2>
<div class="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)
@if ($pricing['error'])
<p class="mt-3 rounded-lg bg-amber-50 p-3 text-sm text-amber-900">{{ $pricing['error'] }}</p>
@elseif ($pricing['quote'])
@php($quote = $pricing['quote'])
<p class="mt-1 text-sm text-slate-500">
<p class="mt-1 text-sm text-muted">
{{ $quote->arrival->format('d.m.Y') }} – {{ $quote->departure->format('d.m.Y') }} · {{ $quote->nights() }} Nächte · {{ $quote->guests }} {{ $quote->guests === 1 ? 'Person' : 'Personen' }}
<button type="button" wire:click="clearDates" class="ml-1 underline">ändern</button>
</p>
@@ -116,32 +116,32 @@
<dd class="tabular-nums">{{ \App\Support\Money::format($line->amount) }}</dd>
</div>
@endforeach
<div class="flex justify-between gap-4 border-t border-slate-200 pt-2 text-base font-semibold text-sea-900">
<div class="flex justify-between gap-4 border-t border-line pt-2 text-base font-semibold text-ink">
<dt>Gesamtpreis</dt>
<dd class="tabular-nums">{{ \App\Support\Money::format($quote->total()) }}</dd>
</div>
</dl>
<p class="mt-2 text-xs text-slate-500">
<p class="mt-2 text-xs text-muted">
Anzahlung {{ \App\Support\Money::format($quote->deposit()) }}, Rest bis {{ $quote->balanceDueOn->format('d.m.Y') }}. Kurtaxe wird vor Ort berechnet.
</p>
@if ($quote->promoCodeApplied === false)
<p class="mt-2 text-sm text-amber-800">Der Aktionscode ist für diesen Zeitraum nicht gültig.</p>
@endif
@else
<p class="mt-3 text-sm text-slate-500">Bitte wählen Sie im Kalender Anreise und Abreise.</p>
<p class="mt-3 text-sm text-muted">Bitte wählen Sie im Kalender Anreise und Abreise.</p>
@endif
@if ($this->availableExtras->isNotEmpty())
<fieldset class="mt-5 border-t border-slate-100 pt-4">
<legend class="text-sm font-medium text-slate-700">Zusatzleistungen</legend>
<fieldset class="mt-5 border-t border-line pt-4">
<legend class="text-sm font-medium text-ink">Zusatzleistungen</legend>
<div class="mt-2 space-y-2">
@foreach ($this->availableExtras as $extra)
<label class="flex items-center justify-between gap-3 text-sm" wire:key="extra-{{ $extra->id }}">
<span>
{{ $extra->name }} <span class="text-slate-500">({{ \App\Support\Money::format($extra->price) }})</span>
@if ($extra->description)<br><span class="text-xs text-slate-500">{{ $extra->description }}</span>@endif
{{ $extra->name }} <span class="text-muted">({{ \App\Support\Money::format($extra->price) }})</span>
@if ($extra->description)<br><span class="text-xs text-muted">{{ $extra->description }}</span>@endif
</span>
<select wire:model.live="extras.{{ $extra->id }}" class="w-20 rounded-lg border-slate-300 text-sm">
<select wire:model.live="extras.{{ $extra->id }}" class="w-20 rounded-lg border-line text-sm">
@for ($quantity = 0; $quantity <= $this->property->max_guests; $quantity++)
<option value="{{ $quantity }}">{{ $quantity }}</option>
@endfor
@@ -153,13 +153,13 @@
@endif
<label class="mt-4 block text-sm">
<span class="font-medium text-slate-700">Aktionscode</span>
<input type="text" wire:model.live.debounce.600ms="promoCode" autocomplete="off" class="mt-1 w-full rounded-lg border-slate-300">
<span class="font-medium text-ink">Aktionscode</span>
<input type="text" wire:model.live.debounce.600ms="promoCode" autocomplete="off" class="mt-1 w-full rounded-lg border-line">
</label>
</div>
<form wire:submit="submit" class="mt-6 rounded-2xl border border-slate-200 bg-white p-5 shadow-sm" novalidate>
<h2 class="text-lg font-semibold text-sea-900">Unverbindlich anfragen</h2>
<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>
<div class="mt-4 grid gap-4 sm:grid-cols-2">
@foreach ([
@@ -172,18 +172,18 @@
['city', 'Ort', 'text', 'address-level2', false],
] as [$field, $label, $type, $autocomplete, $required])
<label class="block text-sm" wire:key="field-{{ $field }}">
<span class="font-medium text-slate-700">{{ $label }}@if ($required)<span class="text-rose-600" aria-hidden="true"> *</span>@endif</span>
<span class="font-medium text-ink">{{ $label }}@if ($required)<span class="text-rose-600" aria-hidden="true"> *</span>@endif</span>
<input type="{{ $type }}" wire:model="{{ $field }}" autocomplete="{{ $autocomplete }}" @required($required)
@error($field) aria-invalid="true" aria-describedby="{{ $field }}-error" @enderror
class="mt-1 w-full rounded-lg border-slate-300">
class="mt-1 w-full rounded-lg border-line">
@error($field) <span id="{{ $field }}-error" class="mt-1 block text-xs text-rose-700">{{ $message }}</span> @enderror
</label>
@endforeach
</div>
<label class="mt-4 block text-sm">
<span class="font-medium text-slate-700">Wie sind Sie auf uns aufmerksam geworden?</span>
<select wire:model="referralSource" class="mt-1 w-full rounded-lg border-slate-300">
<span class="font-medium text-ink">Wie sind Sie auf uns aufmerksam geworden?</span>
<select wire:model="referralSource" class="mt-1 w-full rounded-lg border-line">
<option value="">Bitte wählen (optional)</option>
@foreach (\App\Enums\ReferralSource::cases() as $source)
<option value="{{ $source->value }}">{{ $source->getLabel() }}</option>
@@ -192,8 +192,8 @@ class="mt-1 w-full rounded-lg border-slate-300">
</label>
<label class="mt-4 block text-sm">
<span class="font-medium text-slate-700">Nachricht</span>
<textarea wire:model="message" rows="3" class="mt-1 w-full rounded-lg border-slate-300"></textarea>
<span class="font-medium text-ink">Nachricht</span>
<textarea wire:model="message" rows="3" class="mt-1 w-full rounded-lg border-line"></textarea>
</label>
<div class="hidden" aria-hidden="true">
@@ -201,24 +201,24 @@ class="mt-1 w-full rounded-lg border-slate-300">
</div>
<label class="mt-4 flex items-start gap-2 text-sm">
<input type="checkbox" wire:model="privacyAccepted" class="mt-0.5 rounded border-slate-300">
<input type="checkbox" wire:model="privacyAccepted" class="mt-0.5 rounded border-line">
<span>Ich bin einverstanden, dass meine Angaben zur Bearbeitung der Anfrage gespeichert werden (siehe Datenschutzerklärung).<span class="text-rose-600" aria-hidden="true"> *</span></span>
</label>
@error('privacyAccepted') <p class="mt-1 text-xs text-rose-700">{{ $message }}</p> @enderror
<label class="mt-3 flex items-start gap-2 text-sm text-slate-600">
<input type="checkbox" wire:model="marketingOptIn" class="mt-0.5 rounded border-slate-300">
<label class="mt-3 flex items-start gap-2 text-sm text-muted">
<input type="checkbox" wire:model="marketingOptIn" class="mt-0.5 rounded border-line">
<span>Ja, informieren Sie mich gelegentlich per E-Mail über freie Termine und Angebote (optional, jederzeit abbestellbar).</span>
</label>
<button type="submit"
@disabled(! $pricing['quote'])
wire:loading.attr="disabled"
class="mt-5 w-full rounded-xl bg-sea-700 px-4 py-3 font-semibold text-white shadow-sm transition hover:bg-sea-800 disabled:cursor-not-allowed disabled:opacity-50">
class="mt-5 w-full rounded-xl bg-accent px-4 py-3 font-semibold text-accent-ink transition hover:opacity-90 disabled:cursor-not-allowed disabled:opacity-50">
<span wire:loading.remove wire:target="submit">Termin vormerken &amp; Angebot erhalten</span>
<span wire:loading wire:target="submit">Wird gesendet …</span>
</button>
<p class="mt-2 text-center text-xs text-slate-500">Kostenlos und unverbindlich. Verbindlich wird die Buchung erst mit unserer Bestätigung.</p>
<p class="mt-2 text-center text-xs text-muted">Kostenlos und unverbindlich. Verbindlich wird die Buchung erst mit unserer Bestätigung.</p>
</form>
</section>
</div>