Compare commits

...
Author SHA1 Message Date
LarsandClaude Opus 5.5 d2f53ceb84 Theme Seebad 0.4.0: menu panels; fix missing chevron icons; render test for all themes
- Menu panels: arrow next to each main menu item opens a panel with the page description (SEO text),
  jump links to the headed sections and a cartouche with booking and phone; Escape/outside click closes,
  focus returns; without JavaScript the menu stays plain links
- Header: booking button hidden between 1280 and 1535 px (too narrow with the arrows), desktop phone removed
- Fix: offers carousel and menu used outline chevron icons that do not exist (500 as soon as offers are shown);
  now mini chevrons
- New test: every installed theme renders all pages with reviews and offers in every display mode
- Wish: menu photo per page (ZUSAMMENARBEIT §5)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 12:33:11 +02:00
LarsandClaude Opus 5.5 d9e52c4789 Status: design theme section (open points, plan for new sections)
Deploy / test (push) Failing after 2s
Deploy / deploy (push) Skipped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 10:08:03 +02:00
Lars 3621f7e924 Merge branch 'theme/seebad' (Seebad 0.3.0: all sections)
Deploy / test (push) Failing after 2s
Deploy / deploy (push) Skipped
2026-10-23 10:02:11 +02:00
LarsandClaude Opus 5.5 6930d3ab0f Theme Seebad 0.3.0: own gallery, offers, reviews, FAQ, contact, booking and rich text
- All 15 sections now in Seebad style: offers and contact framed with terrace-brace brackets,
  reviews with large average and serif quotes, FAQ with large toggles, gallery with captions on focus
- Booking page offers the phone number ("Lieber persönlich?")

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 10:01:58 +02:00
14 changed files with 423 additions and 15 deletions

No files matched your search

+29
View File
@@ -101,3 +101,32 @@ ## 5. Schnellreferenz Code
| Befehle | `users:create`, `photos:import`, `photos:strip-metadata`, `backup:database`, `themes:make/check/preview`, `channels:sync`, `bookings:expire-holds` |
| Zeitpläne | `routes/console.php` (jede Minute Postfach, alle 5 Min. Fristen/Abgleich, täglich Erinnerungen, Bewertungen, Anonymisierung 03:00, Backup 02:30) |
| Einstellungen | `config/fewo.php` (Frist, Löschfristen, Backup, Mail-Umleitung), `config/content.php` (bearbeitbare Texte) |
## 6. Design-Theme „Seebad“ (Abschnitt der Design-Session)
Stand: 23.10.2026 · Theme 0.3.0 auf stommer.info **aktiv** · Konzept: [DESIGN-KONZEPT.md](DESIGN-KONZEPT.md) (Richtung A) · Theme-Doku: `resources/themes/seebad/README.md`
**Fertig:** alle 15 Bausteine, Kopf/Fuß/Banner/mobile Buchungsleiste, Logo aus `styles/satz4` (SVG-Master + WebP), Favicon (Eckbau mit Rundbogengaube), Bäderstil-Details des Hauses (Rundbogen mit Fasche und Schlussstein, Rundbogengaube, Kopfbänder als Eckkonsolen, Balkongeländer), Farben aus dem Logo, Schriften selbst gehostet. Gearbeitet wird im eigenen Worktree auf `theme/seebad`, ausgeliefert nur über `main`.
**Offen (Design):**
- Ziffer 0 mit Schrägstrich (Schrift Atkinson Hyperlegible) in Preisen und Daten – Entscheidung Lars: lassen oder Preise/Daten in anderer Schrift.
- Seite „Kühlungsborn“ wirkt leer, bis es den Baustein „Tipps der Gastgeberin“ gibt (Vignetten liegen bereit: `motifs/vignette-*.svg`).
- Bewertungen und Sonderangebote nur lokal mit Testdaten geprüft – auf stommer.info gibt es noch keine (Admin: Angebot anlegen bzw. Bewertung freigeben, dann ansehen).
- Mail-Logo und Vertrags-PDF nutzen noch `public/brand/logo-600.png` → beim Mandanten-Umbau (Marke je Website, MANDANTEN-ANFORDERUNGEN A14/A22) auf `styles/satz4/svg/logo-voll.svg` umstellen.
- Hauptmenü mit Bildtafeln (Entwurf im Canvas) – rein im Theme machbar, noch nicht gebaut.
- SVG-Master des Logos für Druck/Markenanmeldung von einem Grafiker glätten lassen (leichte Fleckigkeit in Wellen und Sonne).
**Neue Bausteine („Widgets“) – wo sie gebaut werden:**
| Baustein | Daten / Admin | Darstellung | Abhängig von |
|---|---|---|---|
| Interaktiver Grundriss | je Wohnung: Grundriss (SVG/Bild) + Räume (Name, Text, Fotos, Fläche als Polygon in %); Editor im Admin | Inline-SVG, Räume antippen → Foto/Text; ohne JS als Liste | Mandanten-Umbau Phase 1 (Daten je Wohnung/Mandant) |
| Tipps der Gastgeberin | eigene Liste je Website (Ort, Kategorie, Weg/Gehzeit, Text, Foto, Karten-Link, Saison) | Liste mit Vignette je Kategorie | Bildwelt (Vignetten je Kategorie) |
| Gut zu wissen | strukturierte Felder an der Wohnung (Zugang, Dusche, Haustiere, An-/Abreise, Parken) – auch für Angebot/Mail/JSON-LD | Kartusche | – (klein) |
| Belegungs-/Preiskalender (nur ansehen) | vorhandene Daten (`AvailabilityChecker`, `PriceCalculator`) | Monatsansicht, Livewire oder statisch gerendert | – |
| Ein Tag an der Ostsee (Erzählstrecke) | Kapitel (Tageszeit, Text, Foto) | Scroll-Abschnitte, Bewegung nur ohne „reduce motion“ | Theme-Optionen |
| Video (selbst gehostet) | Video + Standbild je Baustein | stumm, Poster, nicht bei „Datensparen“ | Speicherplatz Strato |
| Wetter / Wassertemperatur | externe Quelle (Lizenz klären, z. B. DWD Open Data), serverseitig abgerufen und zwischengespeichert | kleine Anzeige | Lizenzfrage |
Bauort: Jeder Baustein ist **Anwendung + Theme**: Klasse in `app/Themes/Sections` (Admin-Formular, Datenaufbereitung) + ggf. Modell/Migration/Filament-Ressource (`FollowsAdminMode`) + Eintrag in `config/themes.php` + Pflicht-Vorlage im Basis-Theme `ostsee-licht` (Test erzwingt das) + eigene Vorlage in `seebad`. Interaktion nur als kleine Verbesserung in `theme.js` (ohne Framework) bzw. Livewire, wenn der Server rechnen muss. Gebaut auf eigenem Branch `feature/bausteine` **nach Phase 1 des Mandanten-Umbaus**, damit neue Tabellen gleich mandantenfähig angelegt werden (vorher: nur Konzept und Admin-Entwürfe). Reihenfolge-Vorschlag: Gut zu wissen → Tipps der Gastgeberin → Grundriss → Kalender → Erzählstrecke/Video → Wetter.
+1
View File
@@ -76,6 +76,7 @@ ## 5. Wünsche der Design-Session an die Anwendung
| 23.10.2026 | **Baustein „Gut zu wissen“**: strukturierte Angaben (Zugang/Stufen, Dusche, Rollstuhl, Haustiere, An-/Abreisezeiten, Parken) an der Wohnung; Seebad stellt ihn in der Kartusche dar (DESIGN-KONZEPT §7 Nr. 5) | offen |
| 23.10.2026 | **Bildwelt-System** (MANDANTEN-ANFORDERUNGEN A18–A20): Seebad nutzt schon Plätze über `partials/motif` (`mark`, `divider`, `closing`, `crest`, `gulls`, `vignette.*`) | offen |
| 23.10.2026 | Hilfetext „*Wort* wird hervorgehoben“ im Titelbereich ist theme-abhängig (Seebad hebt nicht hervor) – Hinweis neutral formulieren | offen |
| 23.10.2026 | **Menübild je Seite** (Feld an der Seite, Auswahl aus den Fotos, `PhotoSelect`) und optional ein kurzer **Menütext** – Seebad zeigt beides in den Menü-Tafeln; heute nur SEO-Beschreibung und Sprunglinks | offen |
## 6. Änderungsprotokoll Vorlagen-Vertrag
+10 -3
View File
@@ -30,7 +30,7 @@ ## Eigene Vorlagen
| Datei | Zweck |
|---|---|
| `layouts/app` | Grundgerüst (größere Grundschrift, Lightbox mit großer Schließen-Fläche) |
| `partials/header` | Logo-Bildmarke, Menü, Telefon (ab 1536 px), „Verfügbarkeit prüfen“; Handy-Menü als dunkle Tafel mit großen Links, Anruf-Taste und Seebrücken-Band |
| `partials/header` | Logo-Bildmarke, Menü mit **Menü-Tafeln** (Pfeil neben dem Menüpunkt: Seitenbeschreibung aus dem SEO-Text, Sprunglinks zu den Abschnitten mit Überschrift, Kartusche mit Buchung und Telefon; Escape/Klick daneben schließt; ohne JS normale Links), „Verfügbarkeit prüfen“ (bis 1279 px und ab 1536 px – dazwischen zu eng, Buchung dann im Titelbereich und in den Tafeln); Handy-Menü als dunkle Tafel mit großen Links, Anruf-Taste und Seebrücken-Band |
| `partials/footer` | Seebrücken-Band, Bildmarke, Kontakt, Rechtliches |
| `partials/banner` | Hinweis-Banner mit Möwen |
| `partials/mobile-booking-bar` | „Verfügbarkeit prüfen“ und Anruf-Taste |
@@ -41,10 +41,17 @@ ## Eigene Vorlagen
| `sections/text_image` | Magazin-Raster (großes Bild + zwei kleine) |
| `sections/location` | Lage auf weißer Fläche, Fotos mit Bildunterschrift in Serifenschrift |
| `sections/host` | Zitat der Gastgeberin auf dunklem Band, gleitende Möwen; Porträt optional |
| `sections/cta` | Abschluss in der Kartusche mit Muschel, Foto optional daneben |
| `sections/cta` | Abschluss in der Kartusche mit Rundbogengaube und Kopfbändern, Foto optional daneben |
| `sections/amenities` | Ausstattung mit Bereichs-Überschriften in Serifenschrift und Häkchen |
| `sections/prices` | Nebenkosten als Liste, Saisontabelle mit großer Schrift; auf dem Handy Zeitraum unter der Saison |
| `sections/gallery` | Raster mit großem Titelfoto, Bildbeschreibung beim Antippen/Fokus, Lightbox |
| `sections/offers` | Angebote als Rahmen mit Kopfband-Konsolen; Vorteil, Termin, Bedingungen mit Häkchen, Preis groß; alle drei Darstellungen |
| `sections/reviews` | Durchschnitt groß, Kategorien, Zitate in Serifen-Kursiv; Echtheitshinweis (§ 5b UWG) in normaler Textgröße |
| `sections/faq` | Fragen in Serifenschrift, große Plus-Schaltfläche |
| `sections/contact` | zwei Kartuschen mit Kopfbändern |
| `sections/booking` | zusätzlich „Lieber persönlich?“ mit Telefonnummer |
| `sections/rich_text` | Fließtext mit Zwischenüberschriften (Impressum, Datenschutz) |
Menü: ausgeschrieben ab 1280 px, darunter Menü-Taste (sonst überdeckt der Name das Menü).
Übrige Bausteine (Galerie, Angebote, Buchung, Bewertungen, FAQ, Kontakt, Fließtext) kommen noch vom Eltern-Theme und übernehmen Schriften, Farben und Basis-Klassen.
Damit hat Seebad alle 15 Bausteine selbst. Vom Eltern-Theme kommen nur noch `page` und `partials/image`; die Buchungs- und Bewertungsformulare sind für alle Themes gemeinsam.
+44
View File
@@ -6,3 +6,47 @@ import '../ostsee-licht/theme.js';
// Logo, favicon (resources/themes/seebad/img) – addressed in Blade via Vite::asset().
import.meta.glob(['./img/**'], { eager: true, query: '?url' });
/**
* Menu panels (partials/header): the arrow next to a menu item opens a panel with jump links into the page.
* Without JavaScript the arrows stay hidden and the menu items are plain links.
*/
function initMenuPanels() {
const header = document.querySelector('[data-menu]');
const toggles = [...document.querySelectorAll('[data-menu-toggle]')];
if (!header || toggles.length === 0) {
return;
}
const panelOf = (toggle) => document.getElementById(toggle.getAttribute('aria-controls'));
const close = (toggle) => {
toggle.setAttribute('aria-expanded', 'false');
panelOf(toggle).hidden = true;
};
toggles.forEach((toggle) => {
toggle.hidden = false;
toggle.addEventListener('click', () => {
const open = toggle.getAttribute('aria-expanded') === 'true';
toggles.filter((other) => other !== toggle).forEach(close);
toggle.setAttribute('aria-expanded', String(!open));
panelOf(toggle).hidden = open;
});
});
document.addEventListener('keydown', (event) => {
const open = toggles.find((toggle) => toggle.getAttribute('aria-expanded') === 'true');
if (event.key === 'Escape' && open) {
close(open);
open.focus();
}
});
document.addEventListener('click', (event) => {
if (!header.contains(event.target)) {
toggles.forEach(close);
}
});
window.matchMedia('(min-width: 80rem)').addEventListener('change', () => toggles.forEach(close));
}
initMenuPanels();
+1 -1
View File
@@ -1,7 +1,7 @@
{
"key": "seebad",
"name": "Seebad",
"version": "0.2.0",
"version": "0.4.0",
"parent": "ostsee-licht",
"description": "Ruhiges Magazin für Paare: Logo und Bäderstil-Details des Hauses (Rundbogengaube, Balkongeländer, Kopfbänder), große gut lesbare Schrift",
"assets": {
@@ -1,5 +1,23 @@
@php($phone = (string) config('fewo.owner.phone'))
<header class="relative z-20">
@php
$phone = (string) config('fewo.owner.phone');
// Menu panels: jump links to the headed sections of each page (sections limited to appearances are left out).
$menuEntries = $theme->menu('main')->values()->map(fn ($page, $position) => [
'page' => $page,
'panel' => 'menu-panel-'.$position,
'anchors' => collect($page->sections ?? [])
->map(fn ($section, $index) => [
'label' => $section['data']['heading'] ?? null,
'id' => ($section['type'] ?? '').'-'.$index.'-title',
'type' => $section['type'] ?? '',
'limited' => ! empty($section['data']['appearances'] ?? []),
])
->filter(fn ($anchor) => filled($anchor['label']) && ! $anchor['limited']
&& ! in_array($anchor['type'], ['hero', 'booking', 'contact', 'rich_text', 'offers', 'reviews'], true))
->take(6)
->values(),
]);
@endphp
<header class="relative z-20" data-menu>
<div class="mx-auto flex max-w-7xl items-center justify-between gap-6 px-4 py-4 sm:px-8 lg:py-5">
<a href="{{ route('home') }}" class="flex min-w-0 items-center gap-3 sm:shrink-0" aria-label="{{ $theme->site->name }} – Startseite">
@include('theme::partials.logo', ['class' => 'h-12 w-auto shrink-0 lg:h-16', 'sizes' => '(min-width: 1024px) 9.5rem, 7rem'])
@@ -7,20 +25,24 @@
</a>
<nav aria-label="Hauptnavigation" class="hidden xl:block">
<ul class="flex gap-6 text-lg whitespace-nowrap xl:gap-7">
@foreach ($theme->menu('main') as $item)
<li><a href="{{ $item->url() }}" @class(['underline-offset-8 hover:underline', 'underline decoration-accent decoration-2' => url()->current() === $item->url()]) @if (url()->current() === $item->url()) aria-current="page" @endif>{{ $item->label() }}</a></li>
<ul class="flex gap-4 text-lg whitespace-nowrap 2xl:gap-6">
@foreach ($menuEntries as $entry)
@php($item = $entry['page'])
<li class="flex items-center gap-0.5">
<a href="{{ $item->url() }}" @class(['underline-offset-8 hover:underline', 'underline decoration-accent decoration-2' => url()->current() === $item->url()]) @if (url()->current() === $item->url()) aria-current="page" @endif>{{ $item->label() }}</a>
@if ($entry['anchors']->isNotEmpty())
<button type="button" data-menu-toggle aria-controls="{{ $entry['panel'] }}" aria-expanded="false" aria-label="Übersicht „{{ $item->label() }}“" hidden
class="flex size-9 items-center justify-center rounded-md hover:bg-ink/5 aria-expanded:bg-ink/5 aria-expanded:[&_svg]:rotate-180">
<x-heroicon-m-chevron-down class="size-5 transition" aria-hidden="true" />
</button>
@endif
</li>
@endforeach
</ul>
</nav>
<div class="flex items-center gap-2 sm:gap-4">
@if ($phone)
<a href="tel:{{ preg_replace('/[^0-9+]/', '', $phone) }}" class="hidden items-center gap-2 font-semibold whitespace-nowrap hover:text-accent 2xl:flex">
<x-heroicon-o-phone class="size-5" aria-hidden="true" />{{ $phone }}
</a>
@endif
<a href="{{ route('booking.create') }}" class="btn-accent hidden whitespace-nowrap sm:inline-flex">Verfügbarkeit prüfen</a>
<a href="{{ route('booking.create') }}" class="btn-accent hidden whitespace-nowrap sm:inline-flex xl:hidden 2xl:inline-flex">Verfügbarkeit prüfen</a>
<details class="group xl:hidden">
<summary class="flex size-12 cursor-pointer list-none items-center justify-center rounded-md border border-line bg-surface [&::-webkit-details-marker]:hidden" aria-label="Menü">
@@ -48,4 +70,35 @@
</details>
</div>
</div>
@foreach ($menuEntries->filter(fn ($entry) => $entry['anchors']->isNotEmpty()) as $entry)
@php($item = $entry['page'])
<div id="{{ $entry['panel'] }}" data-menu-panel hidden class="absolute inset-x-0 top-full border-y border-line bg-surface shadow-lg shadow-ink/10">
<div class="mx-auto grid max-w-7xl grid-cols-[1.15fr_1fr_0.9fr] items-start gap-12 px-8 pt-10 pb-12">
<div>
<p class="font-display text-[2.25rem] leading-tight">{{ $item->label() }}</p>
@if ($item->seo_description)<p class="mt-3 max-w-[42ch] text-muted">{{ $item->seo_description }}</p>@endif
<a href="{{ $item->url() }}" class="mt-5 inline-block border-b-2 border-accent pb-0.5 font-semibold hover:text-accent">Zur Seite „{{ $item->label() }}“</a>
</div>
<nav aria-label="Auf der Seite „{{ $item->label() }}“">
<p class="eyebrow">Auf dieser Seite</p>
<ul class="divide-y divide-line border-y border-line">
@foreach ($entry['anchors'] as $anchor)
<li><a href="{{ $item->url() }}#{{ $anchor['id'] }}" class="block py-2.5 text-lg hover:text-accent">{{ $anchor['label'] }}</a></li>
@endforeach
</ul>
</nav>
<div class="cartouche mt-6 px-6 pt-12 pb-7 text-center">
<span class="absolute -top-8 left-1/2 -translate-x-1/2 bg-surface px-2" aria-hidden="true">@include('theme::partials.motif', ['slot' => 'crest', 'class' => 'h-12 w-auto'])</span>
<span class="absolute -top-0.5 -left-0.5" aria-hidden="true">@include('theme::partials.motif', ['slot' => 'bracket', 'class' => 'size-9'])</span>
<span class="absolute -top-0.5 -right-0.5 -scale-x-100" aria-hidden="true">@include('theme::partials.motif', ['slot' => 'bracket', 'class' => 'size-9'])</span>
<p class="font-display text-[1.625rem] leading-tight">Ihr Wunschtermin?</p>
<a href="{{ route('booking.create') }}" class="btn-accent mt-4">Verfügbarkeit prüfen</a>
@if ($phone)
<a href="tel:{{ preg_replace('/[^0-9+]/', '', $phone) }}" class="mt-3 flex items-center justify-center gap-2 font-semibold hover:text-accent"><x-heroicon-o-phone class="size-5" aria-hidden="true" />{{ $phone }}</a>
@endif
</div>
</div>
</div>
@endforeach
</header>
@@ -0,0 +1,18 @@
<section class="mx-auto max-w-7xl px-4 py-12 sm:px-8 sm:py-16" aria-labelledby="{{ $sectionId }}-title">
@if ($heading)<h1 id="{{ $sectionId }}-title" class="heading-display">{{ $heading }}</h1>@endif
@if ($text)<p class="mt-4 max-w-[62ch] text-muted">{{ $text }}</p>@endif
@php($phone = (string) config('fewo.owner.phone'))
@if ($phone)
<p class="mt-4 flex flex-wrap items-center gap-x-3 gap-y-1">
<span class="text-muted">Lieber persönlich?</span>
<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 ($property)
<livewire:booking-request :property="$property" />
@else
<p class="text-muted">Derzeit ist keine Wohnung buchbar.</p>
@endif
</div>
</section>
@@ -0,0 +1,27 @@
<section class="mx-auto max-w-5xl px-4 py-16 sm:px-8 sm:py-20" aria-labelledby="{{ $sectionId }}-title">
<h1 id="{{ $sectionId }}-title" class="heading-display">{{ $heading }}</h1>
@if ($text)<p class="mt-4 max-w-[60ch] text-muted">{{ $text }}</p>@endif
<div class="mt-14 grid gap-12 sm:grid-cols-2 sm:gap-8">
<div class="cartouche px-7 pt-12 pb-8">
<span class="absolute -top-0.5 -left-0.5" aria-hidden="true">@include('theme::partials.motif', ['slot' => 'bracket', 'class' => 'size-10'])</span>
<span class="absolute -top-0.5 -right-0.5 -scale-x-100" aria-hidden="true">@include('theme::partials.motif', ['slot' => 'bracket', 'class' => 'size-10'])</span>
<h2 class="eyebrow">Gastgeberin</h2>
<p class="font-display text-[1.75rem] leading-tight">{{ $owner['name'] }}</p>
<p class="mt-1 text-muted">{{ $owner['street'] }}<br>{{ $owner['city'] }}</p>
<p class="mt-6 space-y-2">
<a href="tel:{{ preg_replace('/[^0-9+]/', '', (string) $owner['phone']) }}" class="flex items-center gap-3 font-semibold hover:text-accent"><x-heroicon-o-phone class="size-5 text-accent" aria-hidden="true" />{{ $owner['phone'] }}</a>
<a href="mailto:{{ $owner['email'] }}" class="flex items-center gap-3 font-semibold hover:text-accent"><x-heroicon-o-envelope class="size-5 text-accent" aria-hidden="true" />{{ $owner['email'] }}</a>
</p>
</div>
@if ($address)
<div class="cartouche px-7 pt-12 pb-8">
<span class="absolute -top-0.5 -left-0.5" aria-hidden="true">@include('theme::partials.motif', ['slot' => 'bracket', 'class' => 'size-10'])</span>
<span class="absolute -top-0.5 -right-0.5 -scale-x-100" aria-hidden="true">@include('theme::partials.motif', ['slot' => 'bracket', 'class' => 'size-10'])</span>
<h2 class="eyebrow">Ferienwohnung</h2>
<p class="font-display text-[1.75rem] leading-tight">{{ $theme->site->name }}</p>
<p class="mt-1 text-muted">{{ $address }}</p>
<a href="{{ route('booking.create') }}" class="btn-accent mt-6">Freie Termine und Preise</a>
</div>
@endif
</div>
</section>
@@ -0,0 +1,24 @@
@if ($faqs->isNotEmpty())
<section class="mx-auto max-w-4xl px-4 py-16 sm:px-8 sm:py-20" aria-labelledby="{{ $sectionId }}-title">
<h2 id="{{ $sectionId }}-title" class="heading-display mb-8">{{ $heading }}</h2>
<div class="divide-y divide-line border-y-2 border-ink">
@foreach ($faqs as $faq)
<details class="group">
<summary class="flex min-h-16 cursor-pointer list-none items-center justify-between gap-6 py-4 font-display text-[1.375rem] leading-snug [&::-webkit-details-marker]:hidden">
{{ $faq->question }}
<span aria-hidden="true" class="flex size-10 shrink-0 items-center justify-center rounded-full border-2 border-accent text-accent transition group-open:rotate-45"><x-heroicon-o-plus class="size-5" /></span>
</summary>
<div class="prose-theme pb-6">{{ $answers[$faq->id] }}</div>
</details>
@endforeach
</div>
</section>
@push('head')
<script type="application/ld+json">{!! json_encode([
'@context' => 'https://schema.org',
'@type' => 'FAQPage',
'mainEntity' => $faqs->map(fn ($faq) => ['@type' => 'Question', 'name' => $faq->question, 'acceptedAnswer' => ['@type' => 'Answer', 'text' => strip_tags($faq->answer)]])->values(),
], JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_HEX_TAG) !!}</script>
@endpush
@endif
@@ -0,0 +1,22 @@
@if ($photos->isNotEmpty())
<section class="mx-auto max-w-7xl px-4 py-16 sm:px-8 sm:py-20" @if ($heading) aria-labelledby="{{ $sectionId }}-title" @else aria-label="Bildergalerie" @endif>
<div class="mb-8 flex flex-wrap items-end justify-between gap-x-8 gap-y-2">
@if ($heading)<h2 id="{{ $sectionId }}-title" class="heading-display">{{ $heading }}</h2>@endif
<p class="text-muted">{{ $photos->count() }} {{ $photos->count() === 1 ? 'Foto' : 'Fotos' }}, zum Vergrößern antippen</p>
</div>
<ul class="grid auto-rows-[9.5rem] grid-cols-2 gap-3 sm:auto-rows-[12rem] sm:gap-4 lg:grid-cols-4">
@foreach ($photos as $index => $photo)
<li @class(['reveal', 'col-span-2 row-span-2' => $index === 0, 'lg:row-span-2' => $index === 5])>
<a href="{{ $photo->url('lg') }}" data-lightbox data-alt="{{ $photo->alt_text }}" class="group relative block h-full overflow-hidden rounded">
@include('theme::partials.image', [
'photo' => $photo,
'sizes' => $index === 0 ? '(min-width: 1024px) 50vw, 100vw' : '(min-width: 1024px) 25vw, 50vw',
'class' => 'h-full w-full object-cover transition duration-500 group-hover:scale-[1.03]',
])
<span class="pointer-events-none absolute inset-x-0 bottom-0 bg-black/55 px-3 py-2 text-[0.9375rem] leading-snug text-white opacity-0 transition group-hover:opacity-100 group-focus-visible:opacity-100">{{ $photo->alt_text }}</span>
</a>
</li>
@endforeach
</ul>
</section>
@endif
@@ -0,0 +1,76 @@
{{-- Contract: $heading, $display (grid|list|rotating), $offers (Collection of App\Pricing\AdvertisedOffer) --}}
@if ($offers->isNotEmpty())
@php($layout = $display === 'rotating' && $offers->count() === 1 ? 'grid' : $display)
@php($rotating = $layout === 'rotating')
@php($wide = $layout === 'list' || $rotating)
<section class="mx-auto max-w-7xl px-4 py-16 sm:px-8 sm:py-20" aria-labelledby="{{ $sectionId }}-title"
@if ($rotating) data-rotator aria-roledescription="Karussell" @endif>
<div class="mb-10 flex items-end justify-between gap-4">
<h2 id="{{ $sectionId }}-title" class="heading-display">{{ $heading }}</h2>
@if ($rotating)
<div class="flex gap-2">
<button type="button" data-rotator-prev class="flex size-12 items-center justify-center rounded-md border-2 border-ink hover:bg-ink/5" aria-label="Vorheriges Angebot"><x-heroicon-m-chevron-left class="size-5" aria-hidden="true" /></button>
<button type="button" data-rotator-next class="flex size-12 items-center justify-center rounded-md border-2 border-ink hover:bg-ink/5" aria-label="Nächstes Angebot"><x-heroicon-m-chevron-right class="size-5" aria-hidden="true" /></button>
</div>
@endif
</div>
<ul @class([
'grid gap-8 sm:grid-cols-2 lg:grid-cols-3' => $layout === 'grid',
'grid gap-8' => $layout === 'list',
'relative' => $rotating,
]) @if ($rotating) data-rotator-track aria-live="polite" @endif>
@foreach ($offers as $advertised)
<li data-offer="{{ $advertised->key() }}" @class([
'reveal relative flex flex-col border-2 border-ink bg-surface px-6 pt-9 pb-7 sm:px-8',
'sm:flex-row sm:items-center sm:gap-10' => $wide,
]) @if ($rotating) data-rotator-slide @if (! $loop->first) hidden @endif aria-label="Angebot {{ $loop->iteration }} von {{ $offers->count() }}" @endif>
<span class="absolute -top-0.5 -left-0.5" aria-hidden="true">@include('theme::partials.motif', ['slot' => 'bracket', 'class' => 'size-9'])</span>
<span class="absolute -top-0.5 -right-0.5 -scale-x-100" aria-hidden="true">@include('theme::partials.motif', ['slot' => 'bracket', 'class' => 'size-9'])</span>
<div class="flex-1">
<p class="inline-block bg-accent px-3 py-1 font-semibold text-accent-ink">{{ $advertised->advantage }}</p>
<p class="mt-4 font-display text-[1.875rem] leading-tight">{{ $advertised->title }}</p>
@if ($advertised->arrival)
<p class="mt-2 font-semibold">
{{ $advertised->arrival->locale('de')->isoFormat('dd, DD.MM.') }} bis {{ $advertised->departure->locale('de')->isoFormat('dd, DD.MM.YYYY') }}
<span class="font-normal text-muted">({{ $advertised->nights() }} {{ $advertised->nights() === 1 ? 'Nacht' : 'Nächte' }})</span>
</p>
@endif
@if ($advertised->description)<p class="mt-3 text-muted">{{ $advertised->description }}</p>@endif
@if ($advertised->conditions)
<ul class="mt-4 space-y-1 text-muted">
@foreach ($advertised->conditions as $condition)
<li class="flex gap-2"><x-heroicon-o-check class="mt-1 size-5 shrink-0 text-accent" aria-hidden="true" />{{ $condition }}</li>
@endforeach
</ul>
@endif
</div>
<div @class(['mt-6', 'border-t border-line pt-5' => $advertised->quote, 'sm:mt-0 sm:min-w-56 sm:border-t-0 sm:pt-0 sm:text-right' => $wide, 'sm:border-l sm:pl-10' => $wide && $advertised->quote])>
@if ($advertised->quote)
<p>
<span class="font-display text-[2rem] leading-none">{{ \App\Support\Money::format($advertised->quote->total()) }}</span>
@if ($advertised->regularTotal() > $advertised->quote->total())
<span class="block text-muted">statt <s>{{ \App\Support\Money::format($advertised->regularTotal()) }}</s></span>
@endif
</p>
<p class="text-muted">für {{ $advertised->quote->guests }} {{ $advertised->quote->guests === 1 ? 'Person' : 'Personen' }}, inkl. Endreinigung</p>
@endif
<a href="{{ $advertised->bookingUrl() }}" class="btn-accent mt-4">
{{ $advertised->arrival ? 'Diesen Termin anfragen' : 'Preis berechnen' }}
</a>
</div>
</li>
@endforeach
</ul>
@if ($rotating)
<div class="mt-6 flex justify-center gap-1" role="tablist" aria-label="Angebote">
@foreach ($offers as $advertised)
<button type="button" data-rotator-dot="{{ $loop->index }}" role="tab" aria-label="Angebot {{ $loop->iteration }}"
aria-selected="{{ $loop->first ? 'true' : 'false' }}" class="group flex size-11 items-center justify-center"><span class="size-3 rounded-full bg-line group-aria-selected:bg-accent"></span></button>
@endforeach
</div>
@endif
<p class="mt-6 text-muted">Angebote werden bei der Preisberechnung automatisch berücksichtigt – Sie erhalten immer das für Sie günstigste.</p>
</section>
@endif
@@ -0,0 +1,34 @@
@if ($reviews->isNotEmpty())
<section class="mx-auto max-w-7xl px-4 py-16 sm:px-8 sm:py-20" aria-labelledby="{{ $sectionId }}-title">
<div class="flex flex-wrap items-end justify-between gap-x-10 gap-y-6">
<h2 id="{{ $sectionId }}-title" class="heading-display">{{ $heading }}</h2>
<p class="flex items-center gap-4">
<span class="font-display text-[3.5rem] leading-none">{{ number_format($average, 1, ',', '') }}</span>
<span class="text-muted">von 5<br>{{ $count }} {{ $count === 1 ? 'Bewertung' : 'Bewertungen' }}</span>
</p>
</div>
@if ($categories->isNotEmpty())
<dl class="mt-8 grid grid-cols-2 gap-x-8 gap-y-3 border-y border-line py-5 sm:grid-cols-3 lg:grid-cols-6">
@foreach ($categories as $category)
<div class="flex flex-col-reverse"><dt class="text-muted">{{ $category['label'] }}</dt><dd class="font-display text-[1.75rem] leading-tight">{{ number_format($category['average'], 1, ',', '') }}</dd></div>
@endforeach
</dl>
@endif
<ul class="mt-10 grid gap-x-10 gap-y-12 sm:grid-cols-2 lg:grid-cols-3">
@foreach ($reviews as $review)
<li class="reveal">
<figure class="h-full border-t-2 border-ink pt-6">
<p class="text-xl tracking-widest text-accent" aria-label="{{ $review->rating }} von 5 Sternen">{{ str_repeat('★', $review->rating) }}<span class="text-line">{{ str_repeat('★', 5 - $review->rating) }}</span></p>
@if ($review->title)<p class="mt-3 font-semibold">{{ $review->title }}</p>@endif
@if ($review->body)<blockquote class="mt-3 font-display text-[1.375rem] leading-snug italic">„{{ $review->body }}“</blockquote>@endif
<figcaption class="mt-5 font-semibold">{{ $review->display_name }}@if ($review->stayed_on)<span class="font-normal text-muted">, {{ $review->stayed_on->translatedFormat('F Y') }}</span>@endif</figcaption>
@if ($review->response)
<p class="mt-4 border-l-2 border-accent pl-4 text-muted"><span class="font-semibold text-ink">Antwort der Gastgeberin:</span> {{ $review->response }}</p>
@endif
</figure>
</li>
@endforeach
</ul>
<p class="mt-10 text-muted">Bewertungen über unsere Webseite können nur Gäste mit einer Buchung bei uns abgeben. Übernommene Bewertungen anderer Portale sind mit ihrer Quelle gekennzeichnet.</p>
</section>
@endif
@@ -0,0 +1,8 @@
<section class="mx-auto max-w-3xl px-4 py-16 sm:px-8 sm:py-20" @if ($heading) aria-labelledby="{{ $sectionId }}-title" @endif>
@if ($heading)<h1 id="{{ $sectionId }}-title" class="heading-display mb-10">{{ $heading }}</h1>@endif
@if ($text)
<div class="prose-theme [&_h2]:mt-10 [&_h2]:text-[1.75rem] [&_h3]:mt-8 [&_li]:mb-1">{{ $text }}</div>
@else
<p class="text-muted">Dieser Text wird gerade überarbeitet.</p>
@endif
</section>
@@ -0,0 +1,65 @@
<?php
namespace Tests\Feature;
use App\Enums\ReviewStatus;
use App\Models\Page;
use App\Models\Property;
use App\Models\Review;
use App\Models\Site;
use App\Models\SpecialOffer;
use App\Themes\ThemeRegistry;
use Carbon\CarbonImmutable;
use Database\Seeders\PropertySeeder;
use Database\Seeders\SiteSeeder;
use Database\Seeders\WebsiteContentSeeder;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
/**
* Every installed theme must render every page with real content in every display mode – a template that only
* breaks when data exists (e.g. offers shown as a carousel) would otherwise go unnoticed until it is live.
*/
class InstalledThemesRenderTest extends TestCase
{
use RefreshDatabase;
private const PAGES = ['/', '/wohnung', '/kuehlungsborn', '/buchen', '/kontakt', '/impressum', '/datenschutz'];
protected function setUp(): void
{
parent::setUp();
$this->travelTo(CarbonImmutable::parse('2026-10-22 10:00'));
$this->seed([PropertySeeder::class, WebsiteContentSeeder::class, SiteSeeder::class]);
$this->withoutVite();
$property = Property::sole();
Review::factory()->for($property)->count(2)->create(['status' => ReviewStatus::Approved]);
SpecialOffer::factory()->for($property)->create(['name' => 'Herbstwochen', 'is_featured' => true]);
SpecialOffer::factory()->for($property)->create(['name' => 'Ab 5 Nächten', 'min_nights' => 5]);
}
public function test_every_installed_theme_renders_all_pages_with_offers_in_every_display_mode(): void
{
$site = Site::sole();
$home = Page::query()->where('slug', Page::HOME)->sole();
foreach (array_keys(app(ThemeRegistry::class)->all()) as $themeKey) {
$site->update(['theme' => $themeKey]);
foreach (['grid', 'list', 'rotating'] as $display) {
$home->update(['sections' => array_map(
fn (array $section): array => $section['type'] === 'offers' ? [...$section, 'data' => [...$section['data'], 'display' => $display]] : $section,
$home->sections,
)]);
$this->get('/')->assertOk()->assertSee('Herbstwochen');
}
foreach (self::PAGES as $path) {
$this->get($path)->assertOk();
}
}
}
}